query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
returns true if the number is in the set, false otherwise. | boolean contains(int n); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean contains(int key) {\n \tfor(int k:set){\n \tif(k==key){\n \t\treturn true;\n \t}\n }\n\t\treturn false;\n }",
"public boolean elementOf(int value){\n for(int element = 0; element < set.length; element++){\n if(set[element] == value)\n ... | [
"0.7427629",
"0.7212852",
"0.71345973",
"0.7111586",
"0.698106",
"0.69511646",
"0.6914571",
"0.69067466",
"0.68778497",
"0.68778497",
"0.6829082",
"0.68135667",
"0.6813035",
"0.6776974",
"0.6726546",
"0.6643",
"0.66086483",
"0.65703565",
"0.652892",
"0.6512451",
"0.648723",
... | 0.6763822 | 14 |
returns the same values as the former method but for every element that is checked it prints its value on screen | boolean containsVerbose(int n); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getCheckedValue();",
"void printCheck();",
"public String getText() {\n // declaring local variables\n String returnValue = \"VALUE\";\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. Returning value '\" + returnValue + \"' ===\"... | [
"0.6076612",
"0.6076206",
"0.5751059",
"0.5747522",
"0.57448673",
"0.56307405",
"0.56090575",
"0.558877",
"0.55835485",
"0.5559633",
"0.5501231",
"0.54897904",
"0.5474946",
"0.54629594",
"0.5450091",
"0.5410352",
"0.5383231",
"0.5357173",
"0.5341962",
"0.53061986",
"0.5288309... | 0.0 | -1 |
returns a string with the value of the elements in the set seperated by commas. | String toString(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String setToString(Set set) {\n Iterator it = set.iterator();\n StringBuffer sb = new StringBuffer();\n\n while (it.hasNext()) {\n if (sb.length() > 0) {\n sb.append(',');\n }\n\n sb.append(it.next());\n }\n\n return sb.t... | [
"0.76119846",
"0.75827116",
"0.7539497",
"0.7052309",
"0.7037097",
"0.686662",
"0.6864057",
"0.685702",
"0.6833083",
"0.658929",
"0.653975",
"0.6515528",
"0.64314765",
"0.6415841",
"0.6395402",
"0.63229513",
"0.6315046",
"0.62370336",
"0.62074125",
"0.6206879",
"0.6203623",
... | 0.0 | -1 |
/ javax.resource.cci.ConnectionFactory Gets a new connection. | @Override
public SessionImpl getConnection(ConnectionSpec connectionSpec) {
return getConnection();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConnectionFactory getConnectionFactory() {\n return connectionFactory;\n }",
"public Connection getConnection() throws ResourceException\n {\n return (Connection)cm.allocateConnection(mcf, null);\n }",
"public static Connection createConnection() {\n\t\treturn new FabricaDeConexoes().... | [
"0.72856504",
"0.7113844",
"0.6979182",
"0.68989426",
"0.6832821",
"0.67858565",
"0.6728844",
"0.6667488",
"0.6650095",
"0.6649137",
"0.6619478",
"0.6619478",
"0.6619478",
"0.65877736",
"0.65677667",
"0.6496262",
"0.6482612",
"0.64788127",
"0.6452214",
"0.64453876",
"0.644028... | 0.0 | -1 |
Gets a new connection. | @Override
public synchronized SessionImpl getConnection() {
if (Framework.getRuntime().isShuttingDown()) {
throw new IllegalStateException("Cannot open connection, runtime is shutting down");
}
SessionPathResolver pathResolver = new SessionPathResolver();
Mapper mapper = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Connection getConnection() {\n return singleInstance.createConnection();\n }",
"ConnectionImpl getNewConnection() {\n if (injectedConnection != null) {\n return injectedConnection;\n }\n return new ConnectionImpl();\n }",
"public Connection getConnection() {\r\n\tConnecti... | [
"0.7783381",
"0.7689798",
"0.7523098",
"0.7474425",
"0.7434112",
"0.7387082",
"0.737559",
"0.7276912",
"0.72583854",
"0.72495234",
"0.7207742",
"0.72003657",
"0.7169744",
"0.7162892",
"0.7100221",
"0.7085937",
"0.70747215",
"0.70213133",
"0.70213133",
"0.7015274",
"0.7015274"... | 0.0 | -1 |
Creates a new mapper. | public Mapper newMapper(PathResolver pathResolver, boolean useInvalidations) {
return backend.newMapper(pathResolver, useInvalidations);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }",
"public Mapper(String name) {\n this(name, null, null);\n }",
"public MappingTy... | [
"0.7522661",
"0.67502576",
"0.6238771",
"0.61920214",
"0.60849714",
"0.6064562",
"0.60025054",
"0.5961811",
"0.59512085",
"0.5927101",
"0.5924635",
"0.58991593",
"0.58702266",
"0.5819829",
"0.58130383",
"0.5787789",
"0.5784833",
"0.57631576",
"0.57299185",
"0.57164013",
"0.57... | 0.69615287 | 1 |
TODO configure in repo descriptor | protected String getLockManagerName() {
return getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithRepoUrl {\n /**\n * Specifies the repoUrl property: The repo url of the source control..\n *\n * @param repoUrl The repo url of the source control.\n * @return the next definition stage.\n */\n WithCreate withRepoUrl(St... | [
"0.71627116",
"0.67350596",
"0.6652154",
"0.6277897",
"0.62600803",
"0.6255765",
"0.6209323",
"0.62075365",
"0.61588794",
"0.61295396",
"0.6092231",
"0.6080944",
"0.60632557",
"0.6043897",
"0.60413694",
"0.6038827",
"0.6030056",
"0.6021136",
"0.601908",
"0.601908",
"0.5984689... | 0.0 | -1 |
TODO pass through or something | @Override
public void processClusterInvalidationsNext() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void interr()... | [
"0.58903885",
"0.58788127",
"0.5872284",
"0.5858521",
"0.57776505",
"0.57373947",
"0.57039446",
"0.565353",
"0.5629285",
"0.5627466",
"0.55692697",
"0.5555302",
"0.55356413",
"0.55348355",
"0.5528552",
"0.5511794",
"0.54935163",
"0.54907286",
"0.54903305",
"0.5472897",
"0.546... | 0.0 | -1 |
/ callback by session at close time | protected void closeSession(SessionImpl session) {
sessions.remove(session);
sessionCount.dec();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@OnClose\n public void onClose(Session session) {\n }",
"void closeSession();",
"void closeSession();",
"public void onSessionDestroyed() {\n }",
"@OnClose\n public void onClose(Session session) {\n if (WebsocketServer.session == session) {\n System.out.println(\"Session \" +ses... | [
"0.75381213",
"0.7532504",
"0.7532504",
"0.74981755",
"0.74361336",
"0.73792297",
"0.7328151",
"0.71633786",
"0.71158695",
"0.70886976",
"0.7058044",
"0.7057651",
"0.7053925",
"0.70282304",
"0.70139945",
"0.69712055",
"0.69672954",
"0.69672745",
"0.6961599",
"0.6961407",
"0.6... | 0.6060367 | 96 |
recyclerView= (RecyclerView) findViewById(R.id.city_recycler); customContactViewControl= (CustomContactViewControl) findViewById(R.id.city_chat); load_view= (LoadingView) findViewById(R.id.load_view); back= (ImageView) findViewById(R.id.city_back); requestPermissions(); | private void initControls() {
Log.e("sha1",sHA1(this));
// back.setOnClickListener(this);
load_view.setOnRetryListener(new LoadingView.OnRetryListener() {
@Override
public void OnRetry() {
requestCarBrandData();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initViews() {\n textViewName = (AppCompatTextView) findViewById(R.id.textViewName);\n //appCompatButtonBack= (AppCompatButton) findViewById(R.id.appCompatButtonBack);\n imageView= (ImageView) findViewById(R.id.imageView);\n recyclerViewUsers = (RecyclerView) findViewById(R.... | [
"0.6981396",
"0.6476437",
"0.646491",
"0.63978255",
"0.63717484",
"0.6346673",
"0.6345794",
"0.6333688",
"0.632982",
"0.62463427",
"0.6198267",
"0.6197094",
"0.6190473",
"0.614854",
"0.6137207",
"0.6128789",
"0.61160713",
"0.61154926",
"0.61114323",
"0.60978407",
"0.6082011",... | 0.64244235 | 3 |
print chunk info from bitmap | public static void printChunkInfo(Bitmap bm) {
byte[] chunk = bm.getNinePatchChunk();
if (null == chunk) {
System.out.println("can't find chunk info from this bitmap(" + bm
+ ")");
return;
}
int xLen = chunk[1];
int yLen = chunk[2];
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String printImage() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {... | [
"0.6082481",
"0.59287816",
"0.58386654",
"0.5813709",
"0.57958865",
"0.576781",
"0.5552311",
"0.5506343",
"0.5484734",
"0.5454571",
"0.5427346",
"0.54235166",
"0.5412586",
"0.538302",
"0.5324432",
"0.52963877",
"0.52814776",
"0.52270573",
"0.52224696",
"0.5216766",
"0.5196669... | 0.83334315 | 0 |
Test add letter tiles. | @Test
public void testAddLetterTiles() {
l.add(new LetterTile('A',1));
Me.addLetterTiles(l);
assertEquals(l,Me.getLetters());
Me.deleteLetterTile(l);
assertEquals(0,Me.getLetters().size());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int[] addRandomLetter(String[][] level, String l) throws Exception{\r\n\t\t\r\n\t\tl = l.substring(0, 1); // FIX TO AVOID CRASHING\r\n\t\tfor(int i = 0; i<300; i++){\r\n\t\t\t// Start at a random tile\r\n\t\t\tint x = rng.nextInt(6);\r\n\t\t\tint y = rng.nextInt(6);\r\n\t\t\r\n\t\t\tif(level[x][y] == \"_\"... | [
"0.6525564",
"0.6461387",
"0.630563",
"0.59203583",
"0.5846265",
"0.58440304",
"0.5788084",
"0.5778757",
"0.57426184",
"0.57258064",
"0.5721535",
"0.56828207",
"0.5682294",
"0.56782234",
"0.5648398",
"0.5643942",
"0.56097484",
"0.55835384",
"0.5570627",
"0.5566175",
"0.554658... | 0.81560767 | 0 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.78847593",
"0.75493765",
"0.74971926",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0... | 0.0 | -1 |
Get the current time | private void generateIndicatorStrategySignal(float price) {
LocalTime currentTime = LocalTime.now();
// Define the start and end times for the range
LocalTime startTime = LocalTime.of(9, 15, 0);
LocalTime endTime = LocalTime.of(15, 30, 0);
if (currentTime.isAfter(startTime) && currentTime.isBefore(endTime))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final String CurrentTime() {\n\t\t\n\t\tfinal SimpleDateFormat DF = new SimpleDateFormat(\"HH:mm:ss\");\n\t\treturn DF.format(new Date());\n\t}",
"public org.ros.message.Time getCurrentTime() {\n return time.getCurrentTime();\n }",
"public static String getCurrentTime()\n\t{\n\t\treturn getTi... | [
"0.8318097",
"0.8313473",
"0.83108675",
"0.82337135",
"0.82277906",
"0.81403023",
"0.80993",
"0.80219185",
"0.8001678",
"0.7978736",
"0.78948724",
"0.78567344",
"0.7851958",
"0.7836044",
"0.78075755",
"0.77894664",
"0.7781425",
"0.7773777",
"0.7720774",
"0.769593",
"0.7659519... | 0.0 | -1 |
/int itemPosition = RC.getChildLayoutPosition(V); Session session = sessions.get(itemPosition); Intent intent = new Intent(context, NewSessActivity.class); intent.putExtra("session_id", session.getId()); intent.putExtra("city", session.getCity()); intent.putExtra("date", session.getStrDate()); intent.putExtra("player_c... | @Override
public void onClick(View V) {
int itemPosition = RC.getChildLayoutPosition(V);
Session session = sessions.get(itemPosition);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, DetailsSessionActivity.class);\n intent.putExtra(\"exercise\", holder.title.getText().toString());\n context.startActivity(intent);\n }",
"@Override\r\n\tpublic void ... | [
"0.69652534",
"0.6919358",
"0.6889374",
"0.6797396",
"0.6733587",
"0.66858697",
"0.66695464",
"0.66689074",
"0.6639803",
"0.66272956",
"0.66165245",
"0.66164625",
"0.6602853",
"0.65749013",
"0.6551972",
"0.65506166",
"0.6534622",
"0.6530623",
"0.649998",
"0.6493354",
"0.64902... | 0.9158887 | 0 |
~ Constructors Import source and destination images into the class. | public AlgorithmPadWithSlices(ModelImage srcImage, int padMode) {
super(null, srcImage);
this.padMode = padMode;
// get local attributes from this.srcImage
Xdim = srcImage.getExtents()[0];
Ydim = srcImage.getExtents()[1];
sliceArea = Xdim * Ydim; // one slice has ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";... | [
"0.6849808",
"0.68442553",
"0.67369455",
"0.6364867",
"0.6337032",
"0.62836415",
"0.627854",
"0.62771827",
"0.604937",
"0.60044205",
"0.5982794",
"0.5949845",
"0.5929183",
"0.58698624",
"0.58676267",
"0.5820381",
"0.57859355",
"0.57774895",
"0.57690406",
"0.57640654",
"0.5760... | 0.0 | -1 |
Import source and destination images into the class. | public AlgorithmPadWithSlices(ModelImage srcImage, ModelImage destImage, int padMode) {
super(destImage, srcImage);
this.padMode = padMode;
// get local attributes from this.srcImage
Xdim = srcImage.getExtents()[0];
Ydim = srcImage.getExtents()[1];
sliceArea = Xdi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";... | [
"0.74990195",
"0.6090731",
"0.5979317",
"0.59336853",
"0.57855856",
"0.57735115",
"0.57539165",
"0.57504815",
"0.5619469",
"0.5595692",
"0.55807686",
"0.55354553",
"0.55271447",
"0.5521282",
"0.5512814",
"0.55023104",
"0.5497528",
"0.5444374",
"0.5436345",
"0.5434408",
"0.542... | 0.0 | -1 |
~ Methods Prepares this class for destruction. | public void finalize() {
super.finalize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void destroy() {\n }",
"@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}",
"@PreDestroy\n public void destroy() {\n LOG.debug(\"destroy\");\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n\n }",
... | [
"0.68820804",
"0.68716156",
"0.6796821",
"0.67777336",
"0.67591125",
"0.67477936",
"0.67477936",
"0.6745638",
"0.6738813",
"0.6738813",
"0.6738813",
"0.6738813",
"0.6738813",
"0.67376715",
"0.67376715",
"0.67376715",
"0.6728521",
"0.6728521",
"0.6728521",
"0.6728521",
"0.6728... | 0.0 | -1 |
Constructs a string of the contruction parameters and outputs the string to the messsage frame if the logging procedure is turned on. | private void constructLog() {
String padStr = new String();
padStr = "Pad with slices ";
if (padMode == PAD_FRONT) {
padStr += " using front slices";
} else if (padMode == PAD_BACK) {
padStr += " using back slices";
} else if (padMode == PAD_HALF)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String paramString() {\n String horizontalAlignmentString;\n if (horizontalAlignment == LEFT) {\n\t horizontalAlignmentString = \"LEFT\";\n\t} else if (horizontalAlignment == CENTER) {\n\t horizontalAlignmentString = \"CENTER\";\n\t} else if (horizontalAlignment == RIGHT) {\n\t hor... | [
"0.56347835",
"0.5550291",
"0.55456156",
"0.55320543",
"0.54476357",
"0.5301558",
"0.5273381",
"0.5207268",
"0.5200782",
"0.5175852",
"0.5171218",
"0.5152429",
"0.51276743",
"0.51120096",
"0.5063502",
"0.5057101",
"0.50330174",
"0.50202215",
"0.50198406",
"0.49963173",
"0.499... | 0.5427879 | 5 |
Calculate the dimension value to power of 2. | private int dimPowerOfTwo(int dim) {
if (dim <= 4) {
return 4;
} else if (dim <= 8) {
return 8;
} else if (dim <= 16) {
return 16;
} else if (dim <= 32) {
return 32;
} else if (dim <= 64) {
return 64;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BigInteger getDimension();",
"public static int dimPowerOfTwo(final int dim) {\r\n\r\n // 128^3 x 4 is 8MB\r\n // 256^3 x 4 is 64MB\r\n if (dim <= 16) {\r\n return 16;\r\n } else if (dim <= 32) {\r\n return 32;\r\n } else if (dim <= 64) {\r\n\r\n ... | [
"0.70281273",
"0.6911608",
"0.63869935",
"0.63032687",
"0.6179712",
"0.6174849",
"0.6137944",
"0.59753156",
"0.59093577",
"0.58840966",
"0.58626425",
"0.5857987",
"0.5654904",
"0.5594097",
"0.55820847",
"0.5578971",
"0.5570787",
"0.5570787",
"0.5547621",
"0.5544682",
"0.55430... | 0.73918504 | 0 |
noarg constructor that creates default triangle | Triangle(){
side1 = 1.0;
side2 = 1.0;
side3 = 1.0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Triangle() {\n this(0,0,0,0,0);\n }",
"public Triangle() {}",
"public Triangle() {\n\t\tsuper.addPoint(new java.awt.Point(0,1));\n\t\tsuper.addPoint(new java.awt.Point(1,0));\n\t\tsuper.addPoint(new java.awt.Point(2,1));\n\t}",
"public Triangle() {\n\t\tsuper();\n\t\tthis.base = 0;\n\t\tthis.he... | [
"0.814425",
"0.8117765",
"0.7716324",
"0.7676494",
"0.7598321",
"0.75864273",
"0.7529701",
"0.7503222",
"0.74329776",
"0.73602873",
"0.70667297",
"0.6970025",
"0.6897429",
"0.68923277",
"0.68785185",
"0.6836715",
"0.6773554",
"0.6700692",
"0.6636303",
"0.6624757",
"0.6566372"... | 0.729237 | 10 |
constructor that creates triangle with specified sides | Triangle (double side1, double side2, double side3){
this.side1 = side1;
this.side2 = side2;
this.side3 = side3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Triangle(){\n side1 = 1.0;\n side2 = 1.0;\n side3 = 1.0;\n }",
"public Triangle(){\n\t\tside1=1.0;\n\t\tside2=1.0;\n\t\tside3=1.0;\n\t}",
"public Triangle(double side1, double side2, double side3) {\n\t\tthis.side1 = side1;\n\t\tthis.side2 = side2;\n\t\tthis.side3 = side3;\n\t}",
"pub... | [
"0.7752919",
"0.76063347",
"0.74542534",
"0.7323447",
"0.725172",
"0.72471505",
"0.7208247",
"0.71128184",
"0.7102549",
"0.6988912",
"0.69617265",
"0.6842803",
"0.6770378",
"0.6756557",
"0.67230237",
"0.6691394",
"0.6684247",
"0.6673214",
"0.66659373",
"0.6605602",
"0.6596479... | 0.755415 | 2 |
accessor methods for data fields | public double getSide1() {return side1;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Datty getDatty();",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"java.lang.String getField1025();",
"public DerivedWord getData() {\n \treturn this.data;\n ... | [
"0.6723231",
"0.6698005",
"0.65180075",
"0.6506967",
"0.65055656",
"0.6499685",
"0.64840746",
"0.64826363",
"0.6444296",
"0.6443529",
"0.6424866",
"0.6420749",
"0.6411735",
"0.640992",
"0.64028627",
"0.63998836",
"0.6398335",
"0.6397374",
"0.6388495",
"0.6383567",
"0.6383339"... | 0.0 | -1 |
method to get the area of a triangle | public double getArea(){
double p = (side1 + side2 + side3) / 2;
return Math.sqrt(p * (p - side1) * (p - side2) * (p - side3));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double TriangleAreaCal()\n\t{\n\t\tdouble x;\n\t\tx = Math.toRadians(60);\n\t\tdouble area = (Math.pow(this.length, 2) * Math.sin(x))/2;\n\t\treturn area;\n\t}",
"double area() {\n System.out.println(\"Inside Area for Triangle.\");\n return dim1 * dim2 / 2;\n }",
"public double triangle... | [
"0.8244033",
"0.8170903",
"0.7932841",
"0.77690023",
"0.7730649",
"0.7721083",
"0.7714762",
"0.7666531",
"0.7543002",
"0.74338734",
"0.74338734",
"0.7419923",
"0.7409636",
"0.73690486",
"0.7336838",
"0.73297507",
"0.7310477",
"0.73023105",
"0.7258661",
"0.72552705",
"0.725453... | 0.7496092 | 9 |
method to get the perimeter of the triangle | public double getPerimeter(){
return side1 + side2 + side3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double perimeter();",
"public double perimeter(){\n perimeter = calcSide(x1,y1,x2,y2)+calcSide(x2,y2,x3,y3)+calcSide(x3,y3,x1,y1);\n \n \n \n return perimeter;\n \n \n }",
"double getPerimeter();",
"double getPerimeter();",
"double getPerimeter();",
"double getPerimeter();",
... | [
"0.8201663",
"0.81797606",
"0.8150989",
"0.8150989",
"0.8150989",
"0.8150989",
"0.81480706",
"0.81088614",
"0.8105604",
"0.8040464",
"0.8040464",
"0.7957732",
"0.7933327",
"0.7929317",
"0.792913",
"0.7883988",
"0.7835836",
"0.7807845",
"0.7800495",
"0.7793613",
"0.77627504",
... | 0.780184 | 18 |
method to return a description of the triangle | public String toString(){
return "Triangle: side1 = " + side1 + " side2 = " + side2 + " side3 = " + side3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString(){\n\t\treturn (\"this triangle has side 1 of length\"+side1+\"side 2 of length\"+side2+\"and side 3 of length\"+side3);\n\t}",
"public String toString() {\n\t\treturn \"Triangle with side1 = \" +side1+ \", side2 = \" +side2+ \", side3 = \" +side3;\n\t}",
"@Override\n\tpublic String toSt... | [
"0.79939765",
"0.77659875",
"0.76291424",
"0.7323589",
"0.72574323",
"0.70141137",
"0.7009361",
"0.6791615",
"0.6747835",
"0.67077446",
"0.6634878",
"0.6606847",
"0.6352676",
"0.63459516",
"0.61947346",
"0.617415",
"0.6165244",
"0.61635953",
"0.6144221",
"0.6137901",
"0.61027... | 0.77044296 | 2 |
Construct a default geometric object | public GeometricObject() {
dateCreated = new java.util.Date();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SimpleGeometricObject() {\r\n this.dateCreated = new java.util.Date();\r\n }",
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}",
"public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new R... | [
"0.74090064",
"0.6964188",
"0.67832166",
"0.66845137",
"0.66342974",
"0.6618957",
"0.63676894",
"0.6304297",
"0.62991273",
"0.6220219",
"0.6155861",
"0.6142974",
"0.6133238",
"0.6093826",
"0.6074191",
"0.6042686",
"0.60119456",
"0.60115606",
"0.5967567",
"0.59605134",
"0.5936... | 0.73166 | 1 |
Construct a geometric object with the specified color and filled value | public GeometricObject(String color, boolean filled) {
dateCreated = new java.util.Date();
this.color = color;
this.filled = filled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SimpleGeometricObject(String color, boolean filled) {\r\n this.dateCreated = new java.util.Date();\r\n this.color = color;\r\n this.filled = filled;\r\n }",
"protected GeometricObject(String color, boolean filled)\n {\n this.color = color;\n this.filled = filled;\n dateCr... | [
"0.77875817",
"0.7667761",
"0.759716",
"0.6587355",
"0.65453035",
"0.64033276",
"0.6383827",
"0.63659346",
"0.6300972",
"0.62499964",
"0.6173199",
"0.6173199",
"0.6173199",
"0.6173199",
"0.614673",
"0.61415607",
"0.6141468",
"0.6138766",
"0.61203307",
"0.6116353",
"0.6082371"... | 0.80386966 | 0 |
Set a new color | public void setColor(String color) {
this.color = color;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setColor(Color c) { color.set(c); }",
"public void setColor(Color newColor) ;",
"public void setColor(Color c);",
"public void setColor(int color);",
"public void setColor(int color);",
"public void setColor(Color color);",
"void setColor(final java.awt.Color color);",
"void setColor(int ... | [
"0.8702798",
"0.8699396",
"0.84274054",
"0.8375796",
"0.8375796",
"0.82696986",
"0.82587135",
"0.82490754",
"0.824763",
"0.8140812",
"0.8135359",
"0.81330115",
"0.80502045",
"0.80423486",
"0.8005072",
"0.7937197",
"0.7915819",
"0.78940004",
"0.78708214",
"0.783026",
"0.781321... | 0.0 | -1 |
Return filled. Since filled is boolean, its getter method is named isFilled | public boolean isFilled() {
return filled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFilled() {\r\n return this.filled;\r\n }",
"public boolean isFilled() \n\t{\n\t\treturn filled;\n\t}",
"public boolean isFilled ( ) {\r\n\t\treturn fill_flag;\r\n\t}",
"public boolean isFilled() {\n return isFilled;\n }",
"public abstract boolean getFilled();",
"public bool... | [
"0.9182887",
"0.91701543",
"0.90693223",
"0.8999132",
"0.8477451",
"0.8223735",
"0.8090551",
"0.79256386",
"0.7922151",
"0.78880286",
"0.7835275",
"0.78322893",
"0.77863383",
"0.76957554",
"0.7451626",
"0.7342446",
"0.72720593",
"0.7180394",
"0.71700656",
"0.71324825",
"0.709... | 0.92573935 | 0 |
Set a new filled | public void setFilled(boolean filled) {
this.filled = filled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setFilled(boolean filled);",
"void setFill(boolean fill);",
"public void setFilled(boolean filled) {\r\n this.filled = filled;\r\n }",
"public void setFilled(boolean filled) \n\t{\n\t\tthis.filled = filled;\n\t}",
"public void setFill(boolean fill) {\n isFilled = fill;\n ... | [
"0.74370563",
"0.7356803",
"0.7316707",
"0.7243825",
"0.68656117",
"0.6848775",
"0.6696169",
"0.6669831",
"0.6537972",
"0.64799166",
"0.6452932",
"0.6443963",
"0.6437526",
"0.63155025",
"0.62979233",
"0.6187394",
"0.6159483",
"0.6099273",
"0.6036375",
"0.5976758",
"0.5953697"... | 0.7230842 | 4 |
Return a string representation of this object | public String toString() {
return "created on " + dateCreated + "\ncolor: " + color +
" and filled: " + filled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toStr... | [
"0.8659833",
"0.8574236",
"0.8574236",
"0.8572564",
"0.8435201",
"0.8415532",
"0.8415172",
"0.8290765",
"0.82616425",
"0.8253227",
"0.82301444",
"0.82131785",
"0.82062167",
"0.8203144",
"0.81555676",
"0.81555676",
"0.8125385",
"0.81197953",
"0.8098057",
"0.8098057",
"0.809805... | 0.0 | -1 |
Created by CMDDJ on 4/17/2018. | public interface HomePresenter {
void showListOutletVerified(String strIdUser, double lat, double lng);
void showListOutletInMap(String strIdUser, double lat, double lng);
void searchListOutletVerifiedByKeyword(String strIdUser, String strKeyword, double lat, double lng);
void searchByFilter(String str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpubl... | [
"0.60953623",
"0.6017447",
"0.5729662",
"0.5717323",
"0.57085824",
"0.5703572",
"0.564836",
"0.564836",
"0.559536",
"0.559536",
"0.559536",
"0.559536",
"0.559536",
"0.559536",
"0.55623776",
"0.5561278",
"0.5559266",
"0.55296",
"0.55288434",
"0.55246854",
"0.55246854",
"0.55... | 0.0 | -1 |
to jest nasza nowa metoda, typ oznaczamy od razu | double objetosc() {
return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();... | [
"0.5978919",
"0.5935302",
"0.5859281",
"0.5801291",
"0.5782294",
"0.57197887",
"0.5694188",
"0.5673311",
"0.5670862",
"0.5616417",
"0.556054",
"0.55475163",
"0.5537387",
"0.55298585",
"0.5520993",
"0.55184656",
"0.5516695",
"0.5513326",
"0.55009395",
"0.54956967",
"0.54850256... | 0.5312412 | 63 |
gdy nie podamy rodzaju metody to jest z automatu publiczna | void setSzerokosc(double szerokosc) {
this.szerokosc = szerokosc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void grabarYleerMedico() {\r\n\r\n\t\tMedico medico = new Medico(\"Manolo\", \"Garcia\", \"62\", \"casa\", \"2\", null);\r\n\t\tDTO<Medico> dtoMedico = new DTO<>(\"src/Almacen/medico.dat\");\r\n\t\tif (dtoMedico.grabar(medico) == true) {\r\n\t\t\tSystem.out.println(medico.getNombre());\r\n\t\t\tSyst... | [
"0.62344736",
"0.6226495",
"0.59902626",
"0.58842194",
"0.58804387",
"0.58326775",
"0.5789099",
"0.57665867",
"0.57595295",
"0.573164",
"0.57250696",
"0.5705439",
"0.56276655",
"0.56265235",
"0.55894613",
"0.5570295",
"0.5566688",
"0.5566612",
"0.55651754",
"0.5541934",
"0.55... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_search, container, false);
inputText = (EditText) view.findViewById(R.id.inputText);
btn_search = (Butto... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
Manipulates the map when it's available. The API invokes this callback when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user receives a pro... | @Override
public void onMapReady(GoogleMap googleMap) {
// Add a marker in Sydney, Australia,
// and move the map's camera to the same location.
LatLng singapore = new LatLng(1.338709, 103.819519);
googleMap.addMarker(new MarkerOptions().position(singapore)
.title("Ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ... | [
"0.7985139",
"0.78534716",
"0.7761275",
"0.7742616",
"0.7733067",
"0.7719542",
"0.7718683",
"0.7686432",
"0.7674385",
"0.76611257",
"0.7654102",
"0.7637689",
"0.76252437",
"0.7623272",
"0.762023",
"0.7619414",
"0.76085573",
"0.7594734",
"0.7594734",
"0.7594734",
"0.7594734",
... | 0.76130986 | 16 |
Creates new form AccountPage | public PropertyClassificationPage() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NewAccountPage openNewAccountPage();",
"public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}",
"Page createPage();",
"Account create();",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Na... | [
"0.78091586",
"0.68852735",
"0.68561125",
"0.6617579",
"0.65811235",
"0.65789014",
"0.6394402",
"0.6320995",
"0.62905544",
"0.6220399",
"0.6214963",
"0.621288",
"0.61881036",
"0.61160874",
"0.6107037",
"0.6065719",
"0.60160416",
"0.6011859",
"0.60049564",
"0.59701174",
"0.594... | 0.0 | -1 |
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. //GENBEGIN:initComponents | private void initComponents() {
jSplitPane1 = new javax.swing.JSplitPane();
jPanel1 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
xActionTextField1 = new com.rameses.rcp.control.XActionTextField();
xDataTable1 = new com.rameses.rcp.control.XDataTable();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public GUIForm() { \... | [
"0.73927325",
"0.73927325",
"0.73927325",
"0.73527867",
"0.73327756",
"0.7330915",
"0.7296258",
"0.72668505",
"0.7226472",
"0.7215484",
"0.7158576",
"0.7155756",
"0.7151662",
"0.71413606",
"0.7136848",
"0.71340644",
"0.7121264",
"0.7120699",
"0.7114474",
"0.7111952",
"0.70889... | 0.0 | -1 |
TODO implement action body | @Override
public void actionPerformed(ActionEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n\tpublic void action() {\n\n\t}",
"@Override\r\n... | [
"0.7250348",
"0.7222103",
"0.7222103",
"0.7222103",
"0.70862347",
"0.6796982",
"0.67616475",
"0.65653044",
"0.6557785",
"0.65481544",
"0.65481544",
"0.65409803",
"0.6538508",
"0.6513568",
"0.6486138",
"0.6486138",
"0.6486138",
"0.6486138",
"0.6486138",
"0.6486138",
"0.6486138... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public Component getToolbarPresenter() {
return new FontPanel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.774459",
"0.7375094",
"0.6966343",
"0.69092405",
"0.67964137",
"0.6772602",
"0.6771236",
"0.66543615",
"0.66388404",
"0.6622955",
"0.6609132",
"0.6609132",
"0.65914214",
"0.6586793",
"0.6555806",
"0.6499168",
"0.6462581",
"0.64486045",
"0.64296424",
"0.6419785",
"0.6382834... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ItemDetailBinding binding = DataBindingUtil.inflate(inflater,
R.layout.fragment_entry_detail,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
realizando el estado de todas las categorias que se tiene registradas | public String listarEstudiante(){
StringBuilder salidaTabla=new StringBuilder();
StringBuilder query=new StringBuilder();
query.append(" select e.idestudiante,e.cod_est,e.nombre,e.apellido,e.ci,c.nombre_curso,g.grado from cursos c ");
query.append(" INNER JOIN estudiante e ON c.idcurso=e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public controladorCategorias() {\r\n }",
"@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRe... | [
"0.68560064",
"0.67601633",
"0.6523535",
"0.6356768",
"0.6150171",
"0.6070368",
"0.5935967",
"0.5892893",
"0.5869687",
"0.5819034",
"0.57954323",
"0.5791613",
"0.57549727",
"0.57442236",
"0.573937",
"0.5716952",
"0.5716208",
"0.5715975",
"0.5714752",
"0.5691938",
"0.56882834"... | 0.0 | -1 |
metodo que permite buscar una categoria por su codigo o llave primaria | public void buscarEstudiante(String codEstudiante){
estudianteModificar=new Estudiante();
estudianteGradoModificar=new EstudianteGrado();
StringBuilder query=new StringBuilder();
query.append("select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getCategoria();",
"public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n Resul... | [
"0.68725044",
"0.65380514",
"0.6515867",
"0.6371667",
"0.6263523",
"0.62329286",
"0.622568",
"0.6197886",
"0.61858916",
"0.61711097",
"0.6146033",
"0.6139956",
"0.6119797",
"0.6097251",
"0.6088286",
"0.6054692",
"0.60363466",
"0.5994492",
"0.5970413",
"0.5970413",
"0.5963626"... | 0.0 | -1 |
Lista de estudiantes por curso | public String listarEstudianteCurso(String codCurso){
StringBuilder salidaTabla=new StringBuilder();
StringBuilder query=new StringBuilder();
query.append(" select e.idestudiante,e.cod_est,e.nombre,e.apellido,e.ci,c.nombre_curso from cursos c ");
query.append(" INNER JOIN estudiante e ON... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Curso> obtenerCursos();",
"public void getAllCursosAvanzado() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT id_curso, nombre_curso, familia.nombre_familia as familia, id_profesor FROM curso \"\n + \"INNER JOIN familia... | [
"0.6769942",
"0.6376002",
"0.63598293",
"0.61630845",
"0.61024314",
"0.59910077",
"0.59393966",
"0.59380186",
"0.59089786",
"0.5886018",
"0.58744574",
"0.58350706",
"0.57993454",
"0.57632864",
"0.5762214",
"0.56242764",
"0.55978256",
"0.5582284",
"0.5573727",
"0.55732864",
"0... | 0.0 | -1 |
metodo que permite un registro de la tabla categoria | public String eliminarEstudiante(HttpServletRequest request,String codEstudiante){
String salida="";
if(request==null){
return "";
}
if(connection!=null && codEstudiante!=null && codEstudiante.length()>0){
try {
StringBuilder query=new StringBuilde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}",
"pr... | [
"0.6823273",
"0.65740895",
"0.6522271",
"0.65177274",
"0.64528024",
"0.63799715",
"0.6363989",
"0.6340423",
"0.6320244",
"0.62697023",
"0.6268147",
"0.62049586",
"0.61785287",
"0.6175683",
"0.617386",
"0.6170649",
"0.6087065",
"0.6081833",
"0.60655653",
"0.60640717",
"0.60591... | 0.0 | -1 |
Generic DB CRUD DAO | public interface DBCRUD<E extends DomainEntity> extends DBDAO<E> {
/**
* TODO comment<br>
*
* @param connection
* @param entity
* @throws DAOException
*/
public void create(Connection connection, E entity) throws DAOException;
/**
* TODO comment<br>
*
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DAO<T> {\n T get(int ID);\n List<T> getAll();\n List<T> findByLastName(String string);\n boolean add(T t);\n boolean update(T t);\n boolean delete(T t);\n\n\n\n \n}",
"CRUDGenerico<?, ?> getDAO(Class<?> entidade) throws ExcecaoGenerica;",
"public interface BaseDao<T , PK> {\n\n /**\n * ... | [
"0.7398741",
"0.7379129",
"0.7331379",
"0.72254837",
"0.72089875",
"0.7193257",
"0.71902627",
"0.71713233",
"0.7137433",
"0.71311843",
"0.70969236",
"0.70810044",
"0.7075319",
"0.70313764",
"0.70049673",
"0.6985724",
"0.69735676",
"0.69728625",
"0.69561946",
"0.69347125",
"0.... | 0.7388585 | 1 |
Handles the calls to the methods in different cases and returns the simulation list. | public static ArrayList<Float> CreateData(int event, int anomaly, String room, float simTime, int amountEvents,
int amountAnomalies) {
if (event == 1 || event == 2) {
if (anomaly == 3 || anomaly == 4 || anomaly == 5 || anomaly == 6) {
if (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static void runningSimulation() {\n Scanner sc = new Scanner(System.in);\n\n try {\n // Getting the simulation type.\n System.out.print(\"Select the Simulation Method : \\n\" +\n \"\\t0 : To Run the Simulation to the Current Waiting Room\\n\" +\n ... | [
"0.57583934",
"0.575126",
"0.5654057",
"0.54342926",
"0.5343244",
"0.5286689",
"0.5245833",
"0.52379113",
"0.5233026",
"0.5171158",
"0.516735",
"0.51454425",
"0.5124647",
"0.51170236",
"0.5115774",
"0.5096593",
"0.5077172",
"0.5054322",
"0.5031903",
"0.50318825",
"0.50059855"... | 0.0 | -1 |
Calculates a periodical increasing and decreasing list of humidity change with planned anomalies. | public static ArrayList<Float> plannedTestWrongMeasure(int anomaly, int amountAnomalies, float time) {
ArrayList<Float> humChangePlanned = new ArrayList<>();
int counter = 1;
// set the values of the optimal room temperature depending on the specifie room
setOptimumHumidity("a");... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Float> plannedTestHumChange(String room, int event, int anomaly, float time,\r\n int amountEvents, int amountAnomalies) {\r\n ArrayList<Float> humChangePlanned = new ArrayList<>();\r\n float timeForEvent = timeForEven... | [
"0.6888475",
"0.5954551",
"0.56980616",
"0.5355463",
"0.5271709",
"0.5158143",
"0.51581055",
"0.5095057",
"0.5091525",
"0.5089194",
"0.50535995",
"0.5035041",
"0.502582",
"0.5022587",
"0.49913466",
"0.49446064",
"0.49272695",
"0.490437",
"0.48547596",
"0.48384845",
"0.4829936... | 0.6177936 | 1 |
Simulates the planned humidity rise/decrease with the right amount of Events and the combination of anomalies. (Periodical increase and decrease until simulation time is reached) | public static ArrayList<Float> plannedTestHumChange(String room, int event, int anomaly, float time,
int amountEvents, int amountAnomalies) {
ArrayList<Float> humChangePlanned = new ArrayList<>();
float timeForEvent = timeForEvent(time, amo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void simulate (\r\n double maxtime,\r\n double arrival_rate,\r\n double service_rate0,\r\n double service_rate1,\r\n double service_rate2, \r\n double service_rate3_1,\r\n double service_rate3_2,\r\n double service_rate3_3,\r\n double p1,... | [
"0.59611535",
"0.59059805",
"0.5799164",
"0.57387537",
"0.57197446",
"0.5659216",
"0.5654562",
"0.5632594",
"0.5589218",
"0.55835307",
"0.5578155",
"0.5572207",
"0.5552564",
"0.5548289",
"0.55002415",
"0.54982316",
"0.54928535",
"0.548996",
"0.54779536",
"0.5407692",
"0.53926... | 0.6749541 | 0 |
Returns the simulation list combined with the anomaly to be simulated. | private static ArrayList<Float> manipulate(Set manipulatePosList, int anomaly, ArrayList<Float> simList) {
for (Object elem : manipulatePosList) {
switch (anomaly) {
case 3:
if ((Integer) elem == 0) {
lowerLimNext = startHum + max_rate... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getOutputs() {\n\t\tif (outputs == null){\r\n\t\t\tif (checkAndGetSensorDescription() && (sensorDescription.getMemberList()!= null)) {\r\n\t\t\t\tfor(Inner_Element_member member : sensorDescription.getMemberList()){\r\n\t\t\t\t\tif (member.get_Process()!= null) {\r\n\t\t\t\t\t\t//Inner_Element_... | [
"0.56275064",
"0.55979407",
"0.5538664",
"0.55048",
"0.5420088",
"0.5361986",
"0.5339742",
"0.53384686",
"0.5313196",
"0.52491015",
"0.51618004",
"0.51615524",
"0.5109233",
"0.50786084",
"0.5064421",
"0.5056768",
"0.50251037",
"0.50241244",
"0.5005989",
"0.49828103",
"0.49793... | 0.5780413 | 0 |
Calculates random numbers for the outliers in the simulation list. | public static int getRandomNumbers(ArrayList simList) {
return r.nextInt(simList.size());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}",
"public List<Float> randomLikelihood() {\n\t\t... | [
"0.62152046",
"0.5991082",
"0.59121037",
"0.5839421",
"0.5816944",
"0.57578766",
"0.5681512",
"0.56589305",
"0.5655604",
"0.56365913",
"0.5617168",
"0.5592721",
"0.55827385",
"0.55670595",
"0.5560543",
"0.5530882",
"0.55287474",
"0.54903334",
"0.5455254",
"0.5436054",
"0.5428... | 0.562844 | 10 |
Generates a Set of different positions for the outliers. | public static Set calcRandomList(int amountAnomalies, ArrayList simList) {
int wrongMeasurePos;
Set randomPosList = new HashSet<>();
for (int i = 0; i < amountAnomalies; i++) {
wrongMeasurePos = getRandomNumbers(simList);
while (randomPosList.contains(wrongMeasureP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n \n PointSET pset = new PointSET();\n System.out.println(\"Empty: \" + pset.isEmpty());\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.6));\n pset.insert(new Poin... | [
"0.5355332",
"0.5274776",
"0.51177794",
"0.5103282",
"0.49775812",
"0.49647278",
"0.49537924",
"0.49297553",
"0.48742503",
"0.48307446",
"0.4827221",
"0.48250332",
"0.48221427",
"0.48126608",
"0.48017728",
"0.4788066",
"0.4785603",
"0.4776634",
"0.47692823",
"0.4756487",
"0.4... | 0.5059774 | 4 |
Calculates the amount of smaples for one event in case of a planned simulation. | private static float timeForEvent(float simulationTime, int amountEvents) {
float humAmount = (amountEvents * 2) - 1;
float timeInMilli = simulationTime * 3600f;
return timeInMilli / humAmount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int calculateSumOfHouse() {\n int sum = 0;\n for (int i = 0; i < pointsHistory.size(); i++) {\n sum += pointsHistory.get(i);\n }\n return sum;\n }",
"int getNumberOfStonesLeftToPlace();",
"private static void calculateTotalHitsRequired()\n {\n totalHit... | [
"0.5766486",
"0.571933",
"0.5695634",
"0.55036944",
"0.5472568",
"0.54203296",
"0.53822774",
"0.5356682",
"0.53499746",
"0.5300862",
"0.52833956",
"0.52715546",
"0.5256914",
"0.5246428",
"0.52434504",
"0.5205779",
"0.5180187",
"0.5168682",
"0.51278496",
"0.51211685",
"0.51189... | 0.0 | -1 |
Calculates the maximum humidity change that can occure in the time for one event. | private static float calcMaxHumChange(float timeForEvent) {
float humChange = timeForEvent * max_rateOfChange;
if (humChange > 15) {
max_rateOfChange = 15 / timeForEvent;
humChange = 15;
}
return humChange;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void temperatureMaxChanged(ValueChangeEvent event) {\n temperatureMax = Integer.valueOf(event.getNewValue().toString());\n updateTemperatureNormalisation();\n }",
"public float getmaxTemp() {\n Reading maxTempReading = null;\n float maxTemp = 0;\n if (readings.size() ... | [
"0.6260593",
"0.6254671",
"0.6104765",
"0.60679364",
"0.6037095",
"0.60309386",
"0.60023534",
"0.59819996",
"0.5980842",
"0.59692085",
"0.5864046",
"0.5845501",
"0.5843879",
"0.5834852",
"0.578199",
"0.57705724",
"0.5761765",
"0.5756138",
"0.5751674",
"0.5749029",
"0.57418424... | 0.81496805 | 0 |
Calculates the random desired humidity value within the specified limits. | private static float calcNextValue(float lowerLimit, float upperLimit) {
tempHumValue = lowerLimit + r.nextFloat() * (upperLimit - lowerLimit);
humValue = (float) (Math.round(tempHumValue * 100) / 100.0);
return humValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getHumidity() {\n\t\treturn (int)(Math.random()*101);//模拟一个随机湿度\n\t}",
"float getRandomValue(float min, float max)\r\n\t{\n\t\tRandom r = new Random(/*SEED!!!*/);\r\n\t\t//get a float between 0 and 1 then multiply it by the min/max difference.\r\n\t\tfloat num = r.nextFloat();\r\n\t\tnum = num * (m... | [
"0.7019098",
"0.6490137",
"0.6489254",
"0.63245946",
"0.614885",
"0.6139878",
"0.6015474",
"0.5964338",
"0.5904121",
"0.59004456",
"0.5899632",
"0.5895548",
"0.5891819",
"0.58211094",
"0.5820704",
"0.5793075",
"0.57779264",
"0.5756175",
"0.57485014",
"0.57381797",
"0.57305825... | 0.6959785 | 1 |
Defines the optimum room humidity for the selected room. | private static void setOptimumHumidity(String room) {
switch (room) {
case "a": // living room
case "b": // office
case "c": // bedroom
optimumRHLL = 40.00f;
optimumRHUL = 60.00f;
break;
case "d": // bathroom... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getMaximumAllowedEnergyInRoom() {\n\n\t\treturn this.maximumEnergyConsumptionAllowedInARoom; \n\t}",
"void setGoalRPM(double goalRPM);",
"public Room (Float temperature, Float humidity, Float illumination) {\n this.temperature = temperature;\n this.humidity = humidity;\n this... | [
"0.5822897",
"0.58160585",
"0.5762822",
"0.5666098",
"0.5571623",
"0.55378455",
"0.5398528",
"0.53957456",
"0.53763753",
"0.53433263",
"0.5337806",
"0.5334303",
"0.5311684",
"0.5305581",
"0.5283157",
"0.5273831",
"0.5267319",
"0.52291924",
"0.5222959",
"0.5192961",
"0.5181110... | 0.88951856 | 0 |
id aqui bem melhor | public boolean deposito(int idConta, double quantia) {
try {
Conta conta = new Conta(idConta); //deveria poder fazer isto
boolean executado = conta.depositoConta(quantia);
System.out.println(executado ? "Deposito efetuado com sucesso." : "Erro ao Efeuar o Deposito" );
return executad... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int id() {return id;}",
"id(int id, id id, int id) {}",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public abstra... | [
"0.69354653",
"0.6774074",
"0.66836035",
"0.66836035",
"0.66836035",
"0.66836035",
"0.66836035",
"0.66836035",
"0.66808295",
"0.66499317",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",
"0.66372246",... | 0.0 | -1 |
list of tests that when executed before reveals the dependent test | protected void processDependentTests(File dependentTestsFile, List<String> allDTList, List<TestFunctionStatement> dtMethodList) {
Map<String, List<String>> execBefore = new HashMap<String, List<String>>();
// list of tests that when executed after reveals the dependent test
Map<String, List<Stri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void listRunningTests() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"List of running tests in the framework.\\n\");\r\n\t\tlog.info(HEADER);\r\n\t\tlog.info(\"S.No\\tTest\");\r\n\t\tlog.info(HEADER);\r\n\t\tint i = 1;\r\n\t\tfor (Configuration test : tests) {\r\n\t\t\tlog.... | [
"0.664725",
"0.59654105",
"0.59648645",
"0.5935721",
"0.5919951",
"0.591696",
"0.5873031",
"0.5872132",
"0.58646727",
"0.586027",
"0.5858236",
"0.585299",
"0.5777274",
"0.5773161",
"0.5769713",
"0.57589424",
"0.574587",
"0.5736485",
"0.573126",
"0.5702853",
"0.5686118",
"0.... | 0.59951335 | 1 |
Adds the Element at the end of the list. | public void add(E element){
if(lastNode==null){
lastNode=new DoubleNode<E>(null,element,null);
firstNode=lastNode;
size++;
}else{
DoubleNode<E> newNode= new DoubleNode<E>(lastNode,element,null);
lastNode=newNode;
size++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addLast(T element);",
"@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}",
"public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }",
"public void addLast(E element){\n Node<E> newNode = new Node<E>(element);\n newNode.setNext(tail);\n ... | [
"0.7668844",
"0.731256",
"0.7288225",
"0.7242782",
"0.71569455",
"0.7143938",
"0.7113159",
"0.70949477",
"0.70857817",
"0.70831656",
"0.70752645",
"0.7035421",
"0.6995662",
"0.6964128",
"0.6950055",
"0.6903854",
"0.689021",
"0.687551",
"0.6872326",
"0.6851199",
"0.68448937",
... | 0.6512658 | 48 |
Can't insert an element further away than the last | public void addElementAt(E element, int position){
if(checkPosition(position)){
return;
}
// get the Node at the position
if(firstNode==null){
add(element);
}else{
DoubleNode<E> next = getDoubleNodeAt(position);
DoubleNode<E> newNode = new DoubleNode<E>(next,element,next.nextNode);
if(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}",
"Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;",
"public void insert(... | [
"0.75213337",
"0.68973386",
"0.6443784",
"0.63940406",
"0.6336916",
"0.6305961",
"0.6303601",
"0.6298404",
"0.6292565",
"0.62390864",
"0.6228878",
"0.6193268",
"0.6183953",
"0.6145566",
"0.614263",
"0.610414",
"0.60946715",
"0.60787684",
"0.6071752",
"0.6070604",
"0.60399586"... | 0.0 | -1 |
Returns the Element at the position in the DoubleNodeList. | public E getElement(int position){
// Position is larger than the current size.
if(checkPosition(position)){
return null;
}
return getDoubleNodeAt(position).element;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DoubleNode<E> getDoubleNodeAt(int position){\r\n\t\tDoubleNode<E> next = firstNode;\r\n\t\tfor(int i = 0; i < position;i++){\r\n\t\t\tnext = next.nextNode;\r\n\t\t}\r\n\t\treturn next;\r\n\t}",
"public RTWElementRef getAsElement(int i);",
"private Element getElement(int index) {\n if (index < th... | [
"0.68057835",
"0.6305507",
"0.6299027",
"0.6289871",
"0.62520903",
"0.61065644",
"0.60929984",
"0.5972058",
"0.595253",
"0.5894085",
"0.589326",
"0.58915126",
"0.58106434",
"0.5808962",
"0.5694796",
"0.563798",
"0.5625668",
"0.56252986",
"0.56239396",
"0.5619039",
"0.5616442"... | 0.69239265 | 0 |
The Position is Invalid if the position is larger than the size or smaller than 0. | private boolean checkPosition(int position) {
return position>size||position < 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void validatePosition(long position, long size) throws IOException {\n if (position < 0) {\n throw new EOFException(\n String.format(\n \"Invalid seek offset: position value (%d) must be >= 0 for '%s'\",\n position, resourceId));\n }\n\n if (size >= 0 && p... | [
"0.7301564",
"0.6901805",
"0.67511874",
"0.6616133",
"0.6549892",
"0.64479125",
"0.62700087",
"0.6241863",
"0.6180022",
"0.6169168",
"0.61225957",
"0.6107338",
"0.60271186",
"0.601488",
"0.5996354",
"0.5993385",
"0.5942672",
"0.59406996",
"0.5878589",
"0.5789683",
"0.5714907"... | 0.7159921 | 1 |
Gets the DoubleNode at the position in the List. | private DoubleNode<E> getDoubleNodeAt(int position){
DoubleNode<E> next = firstNode;
for(int i = 0; i < position;i++){
next = next.nextNode;
}
return next;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getDouble(int pos) {\n return Tuples.toDouble(getObject(pos));\n }",
"public DoubleNode<T> getNext()\n {\n\n return next;\n }",
"public double getDouble(int index)\r\n/* 203: */ {\r\n/* 204:220 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 205:221 */ return ... | [
"0.6371092",
"0.635323",
"0.63141924",
"0.6270203",
"0.61916894",
"0.616096",
"0.611598",
"0.60735524",
"0.5885957",
"0.5884341",
"0.5876912",
"0.5869602",
"0.58039",
"0.5796832",
"0.57476884",
"0.57413316",
"0.5724271",
"0.5718202",
"0.57172924",
"0.57068604",
"0.5700843",
... | 0.79696435 | 0 |
Getter accessor for attribute 'errors'. | public List<ApiError> getErrors() {
return errors;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getError() {\n return error;\n }",
"public List<String> getErrors()\n {\n return _errors;\n }",
"public Object getError() {\n\t\treturn error;\n\t}",
"public ValidationErrors getErrors() {\n if (errors == null) errors = new ValidationErrors();\n return error... | [
"0.79375577",
"0.78978276",
"0.78826827",
"0.7760054",
"0.7746473",
"0.7733755",
"0.77307403",
"0.77292705",
"0.771812",
"0.77002287",
"0.76994145",
"0.7662325",
"0.7613866",
"0.7613533",
"0.7558126",
"0.75385416",
"0.7484291",
"0.7462806",
"0.7462806",
"0.7462806",
"0.746280... | 0.7477284 | 17 |
Setter accessor for attribute 'errors'. | public void setErrors(List<ApiError> errors) {
this.errors = errors;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setErrors(ValidationErrors errors) {\n this.errors = errors;\n }",
"public void setErrors(boolean value) {\r\n this.errors = value;\r\n }",
"public void setErrors(int err) {\n errors = err;\n }",
"void setError();",
"public List<String> getErrors()\n {\n return... | [
"0.7425872",
"0.7238062",
"0.71736145",
"0.6918852",
"0.6902965",
"0.6887059",
"0.68710005",
"0.6860698",
"0.68182427",
"0.67945033",
"0.67900056",
"0.67769766",
"0.67693776",
"0.67657536",
"0.67637026",
"0.67620176",
"0.66888696",
"0.66506463",
"0.66112214",
"0.6535579",
"0.... | 0.67068493 | 16 |
This method is to validate user's staff ID and password. | public String validation(String inputStaffId, String inputStaffPw) {
if(restaurant.findStaff(inputStaffId) != null) {
staff = restaurant.findStaff(inputStaffId);
if(staff.getStaffPassword().equals(inputStaffPw)) {
return "Login successfully!";
}
else {
return "Invalid password!";
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean validate(String id, String password);",
"void validatePassword(String usid, String password) throws Exception;",
"private boolean processLogin(String StaffId, String pw)\n{\n\t\t\n\t\tfinal ArrayList<AdminLoginHolder> loginList = new ArrayList<AdminLoginHolder>();\n\t\tint staffId = Integer.pars... | [
"0.6944186",
"0.6939708",
"0.6802358",
"0.67550987",
"0.6645519",
"0.66044533",
"0.6594803",
"0.65561926",
"0.65415204",
"0.65405023",
"0.65064144",
"0.6457036",
"0.63837326",
"0.6342537",
"0.63242143",
"0.6287062",
"0.62708634",
"0.6269594",
"0.62519413",
"0.6232448",
"0.623... | 0.7734164 | 0 |
Guardar estado del Webiview | @Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
mWebView.saveState(outState);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override \n\t\t public void postHandle(HttpServletRequest request, HttpServletResponse response, \n\t\t Object object, ModelAndView modelAndView) throws Exception {\n\t\t\t List<String> exclusionsScreens = (List<String>) request.getSession(true).getAttribute(\"exclusionesScreens\");\n\t\t\t System.out.println... | [
"0.6289588",
"0.6154949",
"0.58574617",
"0.5663338",
"0.5562172",
"0.5526794",
"0.5416364",
"0.54046255",
"0.5396046",
"0.5389517",
"0.53582084",
"0.53582084",
"0.5357601",
"0.5332191",
"0.53117687",
"0.53076625",
"0.53014535",
"0.52872115",
"0.5280909",
"0.5273725",
"0.52663... | 0.5154809 | 36 |
Manejar evento de ir atras | @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()){
mWebView.goBack();
return true;
}
return super.onKeyDown(keyCode, event);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"private void configurarEventos() {\n\n btnVoltar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //OBJETIVO: fecha a tela atual\n VerPessoaActi... | [
"0.7436308",
"0.6948698",
"0.6582156",
"0.6483091",
"0.63175803",
"0.62384856",
"0.620536",
"0.616199",
"0.61256653",
"0.6120732",
"0.61180425",
"0.6114129",
"0.60760826",
"0.60755354",
"0.6067075",
"0.60570836",
"0.60464543",
"0.60355544",
"0.60091746",
"0.5970996",
"0.59592... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return list == null ? 0 : list.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Object getItem(int location) {
return list == null ? null : list.get(location);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public long getItemId(int arg0) {
return arg0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View getView(int location, View arg1, ViewGroup arg2) {
Holder holder;
if (arg1 == null) {
holder = new Holder();
arg1 = inflater.inflate(resource, null);
holder.gallery2_bucket_img = (ImageView) arg1.findViewById(R.id.gallery2_bucket_img);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This constructs an instance. | public GseqItemProviderAdapterFactory() {
supportedTypes.add(IEditingDomainItemProvider.class);
supportedTypes.add(IStructuredItemContentProvider.class);
supportedTypes.add(ITreeItemContentProvider.class);
supportedTypes.add(IItemLabelProvider.class);
supportedTypes.add(IItemPropertySource.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"Reproducible newInstance();",
"private Instantiation(){}",
"protected abstract void construct();",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"public CMObject newInstance();",
"public... | [
"0.75766563",
"0.7509534",
"0.74788463",
"0.72859603",
"0.708409",
"0.6978148",
"0.6973253",
"0.6800544",
"0.6800088",
"0.67716837",
"0.67675227",
"0.6670284",
"0.66605836",
"0.6468362",
"0.6433835",
"0.639542",
"0.63864547",
"0.638002",
"0.638002",
"0.638002",
"0.6368166",
... | 0.0 | -1 |
This returns the root adapter factory that contains this factory. | public ComposeableAdapterFactory getRootAdapterFactory() {
return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory\r\n\t\t\t\t.getRootAdapterFactory();\r\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.ge... | [
"0.7974036",
"0.79738575",
"0.79738575",
"0.79738575",
"0.79394346",
"0.7669335",
"0.7669335",
"0.7647292",
"0.68963087",
"0.6637923",
"0.6485454",
"0.6324349",
"0.626234",
"0.6110637",
"0.60664046",
"0.6026721",
"0.60189945",
"0.59931016",
"0.59650636",
"0.59587747",
"0.5946... | 0.8017958 | 10 |
This sets the composed adapter factory that contains this factory. | public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
this.parentAdapterFactory = parentAdapterFactory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAdapterFactory(AdapterFactory adapterFactory)\n {\n this.adapterFactory = adapterFactory;\n }",
"public AdapterFactory getAdapterFactory()\n {\n return adapterFactory;\n }",
"Builder adapterFactory(TypeAdapterFactory factory);",
"@Override\r\n\tpublic void setParentAdapterFacto... | [
"0.7140968",
"0.6834313",
"0.66795534",
"0.6530303",
"0.65124303",
"0.65124303",
"0.65007615",
"0.634042",
"0.6322677",
"0.6322677",
"0.6322677",
"0.61570513",
"0.6125717",
"0.6117076",
"0.60528976",
"0.60528976",
"0.5979194",
"0.59502894",
"0.5945919",
"0.5941932",
"0.591923... | 0.6328112 | 19 |
This implementation substitutes the factory itself as the key for the adapter. | @Override
public Adapter adapt(Notifier notifier, Object type) {
return super.adapt(notifier, this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface FutureSecureMapFactory<KeyType, ValueType> {\r\n\r\n /**\r\n * returns a StringKeyMap of a with a given name.\r\n * If a StringKeyMap with the given name already exists, returns it.\r\n * Else, create a new one, and returns it.\r\n *\r\n * @param name the name for the data b... | [
"0.57325697",
"0.56858736",
"0.56829184",
"0.56428486",
"0.5554721",
"0.55479026",
"0.55435735",
"0.5470848",
"0.5466428",
"0.54362386",
"0.5411359",
"0.540837",
"0.5395277",
"0.5383857",
"0.53748757",
"0.5367065",
"0.5366456",
"0.5364879",
"0.53637886",
"0.5333727",
"0.53248... | 0.0 | -1 |
This adds a listener. | public void addListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.addListener(notifyChangedListener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addListener(\n IListener listener\n )\n {listeners.add(listener);}",
"public void addListener(EventListener listener);",
"public void addListener(Listener listener) {\n m_listeners.add(listener);\n }",
"public synchronized void addListener(IIpcEventListener listener) {\n\t\tlisteners... | [
"0.7998011",
"0.7876819",
"0.78720665",
"0.7540429",
"0.7455423",
"0.74107784",
"0.73579794",
"0.73548096",
"0.7351938",
"0.73113555",
"0.7231717",
"0.72080994",
"0.7189588",
"0.71795464",
"0.71738935",
"0.71544087",
"0.71380955",
"0.7124567",
"0.70663655",
"0.70603085",
"0.7... | 0.0 | -1 |
This removes a listener. | public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeListener(T listener);",
"@Override\n public void removeListener() {\n this.mListener = null;\n }",
"public synchronized void removeListener(IIpcEventListener listener) {\n\t\tlisteners.remove(listener);\n\t}",
"public void removeListener(IEpzillaEventListner listener)\n\t\t\tth... | [
"0.8418617",
"0.8370732",
"0.8067998",
"0.8059812",
"0.7947978",
"0.7924639",
"0.79068464",
"0.78991675",
"0.7828209",
"0.78082556",
"0.77921456",
"0.77917236",
"0.778742",
"0.7785814",
"0.7757972",
"0.77381945",
"0.77228403",
"0.770868",
"0.7690067",
"0.7677961",
"0.7652026"... | 0.0 | -1 |
This disposes all of the item providers created by this factory. | public void dispose() {
if (programItemProvider != null) programItemProvider.dispose();
if (methodItemProvider != null) methodItemProvider.dispose();
if (printItemProvider != null) printItemProvider.dispose();
if (methodCallItemProvider != null) methodCallItemProvider.dispose();
if (ifItemProvider != null) if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void dispose() {\n\t\tif (assetItemProvider != null) assetItemProvider.dispose();\n\t\tif (processItemProvider != null) processItemProvider.dispose();\n\t\tif (edfdItemProvider != null) edfdItemProvider.dispose();\n\t\tif (dataStoreItemProvider != null) dataStoreItemProvider.dispose();\n\t\tif ... | [
"0.7965586",
"0.79586536",
"0.79107666",
"0.78861195",
"0.78757566",
"0.78719175",
"0.78539294",
"0.7747741",
"0.77382493",
"0.7682869",
"0.7680998",
"0.76606745",
"0.7631858",
"0.76259977",
"0.7609839",
"0.74954385",
"0.74803454",
"0.7456143",
"0.69756305",
"0.68290406",
"0.... | 0.76825327 | 10 |
Reset the player's current PvP ranking | private void parseAttack()
{
Matcher rankMatcher = Pattern.compile( "Your current PvP Ranking is (\\d+)" ).matcher( responseText );
if ( rankMatcher.find() )
KoLCharacter.setPvpRank( StaticEntity.parseInt( rankMatcher.group(1) ) );
// Trim down the response text so it only includes
// the information rela... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetHandRanks() {\n\t\tPlayer player;\n\n\t\tfor (int i = 0; i < table.getTablePlayers().size(); i++) {\n\t\t\tplayer = table.getTablePlayers().get(i);\n\t\t\tplayer.setPair(false);\n\t\t\tplayer.setTwoPairs(false);\n\t\t\tplayer.setTrips(false);\n\t\t\tplayer.setStraight(false);\n\t\t\tplayer.setFlus... | [
"0.67541355",
"0.66635346",
"0.6614399",
"0.6596124",
"0.6576406",
"0.6566292",
"0.65322983",
"0.652593",
"0.6497306",
"0.64908206",
"0.6481642",
"0.6481642",
"0.64576584",
"0.6444204",
"0.6388876",
"0.6355096",
"0.6318349",
"0.6303752",
"0.6296633",
"0.62956464",
"0.62859875... | 0.0 | -1 |
ClassName CscpFuncDao Description //TODO Author tongliwei Date 2020/2/11 15:03 Version v1.0 | @Mapper
public interface CscpFuncDao {
@Insert("insert into cscp_org_func values(#{orgID,jdbcType=VARCHAR},#{funcID,jdbcType=VARCHAR})")
void saveOrgFunc(@Param("orgID") String orgID, @Param("funcID") String funcID);
@Select("select f.id,f.func_name,f.func_type,f.func_desc from cscp_org_func of,cscp_functio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface FunctionDao {\n ArrayList<Function> queryAll();\n\n int countAll();\n\n ArrayList<Function> queryWithLimit(@Param(\"offset\") int offset, @Param(\"limit\") int limit);\n\n ArrayList<Function> queryAllUsable();\n\n int insert(Function function);\n\n int update(Function function);\... | [
"0.64770377",
"0.6304556",
"0.6022139",
"0.60191184",
"0.6003476",
"0.597287",
"0.5966422",
"0.58742875",
"0.58691794",
"0.58689934",
"0.58013076",
"0.5747503",
"0.57420135",
"0.57110125",
"0.5693708",
"0.5683773",
"0.5680619",
"0.5673076",
"0.56644577",
"0.5629217",
"0.56115... | 0.6995992 | 0 |
Tip: Created by ACap on 2021/9/16 18:11 | @ApiUrl("https://getman.cn/")
//@ApiVariableUrl(RandomUrlConfig.class)
@ApiOkHttpConfig(MyOkHttpConfig.class)
@ApiRetrofitConfig(MyRetrofitConfig.class)
public interface MyApi {
/**
* Doc内容 {@link MyOkHttpConfig}
* xxx
*/
@GET("mock/route/to/demo")
Request<ResponseBody> getResponseBody();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"public void mo38117a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n ... | [
"0.5954106",
"0.5892735",
"0.57574946",
"0.5756254",
"0.56940484",
"0.56940484",
"0.56940484",
"0.56940484",
"0.56940484",
"0.56940484",
"0.56940484",
"0.5664174",
"0.5652086",
"0.5605488",
"0.55839163",
"0.55301815",
"0.5514665",
"0.5488628",
"0.5455771",
"0.54537404",
"0.54... | 0.0 | -1 |
toast("You are successfully registered...", false); | private void onSignupSuccess() {
startActivity(currentActivity, UserLoginActivity.class);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void success() {\n Toast.makeText(ui.getApplicationContext(),\"Account successfully created!\",Toast.LENGTH_SHORT).show();\n }",
"public void successfulReservation()\n {\n showToastMessage(getResources().getString(R.string.successfulReservation));\n }",
"@Override\n ... | [
"0.77992314",
"0.764011",
"0.75290126",
"0.7468647",
"0.7468647",
"0.74308467",
"0.7315183",
"0.73066056",
"0.7298185",
"0.72883517",
"0.72119445",
"0.72059417",
"0.71439385",
"0.71051717",
"0.7080434",
"0.7072608",
"0.705924",
"0.70236236",
"0.69788265",
"0.6978467",
"0.6973... | 0.0 | -1 |
setEvents private void setEvents () This sets the drag and drop events associated with this object. The events are inherited from VBox. This function just specifies related actions. | private void setEvents() {
// On drag detected event (the start of a drag and drop)
this.setOnDragDetected( e-> {
if(this.dragEnabled) {
Dragboard db;
// if on board transfer mode is move, if from the pieces box, copy
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void configure() {\n\t\tthis.pressedListener = new EventHandler<MouseEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent me) {\n\t\t\t\tstartDragX = me.getSceneX();\n\t\t\t\tstartDragY = me.getSceneY();\n\t\t\t\tstartNodeX = getTranslateX();\n\t\t\t\tstartNodeY = getTranslateY();\n\t\t\t\tstar... | [
"0.6473099",
"0.60264564",
"0.59054095",
"0.5855964",
"0.58184284",
"0.58002687",
"0.57459795",
"0.5668722",
"0.5625961",
"0.5617551",
"0.55845994",
"0.5497483",
"0.54602563",
"0.5436543",
"0.54238534",
"0.5420698",
"0.54061675",
"0.5372268",
"0.5368307",
"0.5368307",
"0.5360... | 0.6850506 | 0 |
setBorderWidth private void setBorderWidth (int width) Sets the border width the the specified value. | private void setBorderWidth(int width) {
this.borderWidth = width;
Rectangle r = (Rectangle) this.getChildren().get(0);
r.setStrokeWidth(width);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBorderWidth(int borderWidth) {\n\n this.borderWidth = borderWidth;\n this.invalidate();\n }",
"public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }",
"public void setBorderWidth(float borderWidth) {\n mPolygonShapeSpec.setBorderWidth(borderWidt... | [
"0.8613255",
"0.8355274",
"0.7539015",
"0.7283383",
"0.7195034",
"0.708714",
"0.6976907",
"0.6935491",
"0.6935491",
"0.6920388",
"0.69145036",
"0.69083",
"0.69049513",
"0.6884771",
"0.687516",
"0.68621796",
"0.68500936",
"0.68363506",
"0.6821583",
"0.6805536",
"0.68039685",
... | 0.8497653 | 1 |
setDragEnabled public void setDragEnabled (boolean enabled) Sets the drag enabled flag. If set to true, this object is dragable, otherwise, it is not dragable. | public void setDragEnabled(boolean enabled) {
this.dragEnabled = enabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDragEnabled() {\n return mDragEnabled;\n }",
"public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }",
"private void enableDrag() {\n final Delta dragDelta = new Delta();\n setOnMousePressed((MouseEvent mouseEvent) -> {\n // r... | [
"0.77889615",
"0.69656837",
"0.6662301",
"0.66151494",
"0.6595244",
"0.649888",
"0.6445405",
"0.6445405",
"0.6445405",
"0.6445405",
"0.64375407",
"0.64326555",
"0.6431701",
"0.64086884",
"0.64086884",
"0.64086884",
"0.64086884",
"0.64086884",
"0.63965136",
"0.63965136",
"0.63... | 0.9206779 | 0 |
setDropEnabled public void setDropEnabled (boolean enabled) Sets the drop enabled flag. If set to true, other objects can be dropped on this object, otherwise, it is not a valid target for a drag and drop event. | public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDragEnabled(boolean enabled) { \n \tthis.dragEnabled = enabled; \n \t}",
"public void setDropped(boolean dropped);",
"public boolean isDragEnabled() {\n return mDragEnabled;\n }",
"public void setComboTargetEnabled(boolean enabled) {\n\n\t\tcomboTargetLayer.setEnabled(enabled);... | [
"0.743456",
"0.6204404",
"0.5980046",
"0.5878546",
"0.5858681",
"0.57489836",
"0.5667143",
"0.56100804",
"0.5591022",
"0.5582418",
"0.55648345",
"0.55550724",
"0.5514199",
"0.550146",
"0.54683036",
"0.54597855",
"0.54314244",
"0.5405358",
"0.5399437",
"0.53965497",
"0.5374217... | 0.85413724 | 0 |
setPosition public void setPosition (int row, int col) Sets the position on the board that this object is present in. | public void setPosition(int row, int col) {
this.row = row;
this.col = col;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPosition(int row, int column){\t\t\n\t\tposition[0] = row;\n\t\tposition[1] = column;\t\t\n\t}",
"void setPosition(Position position);",
"void setPosition(Position position);",
"public void setPosition(int posX, int posY) {\n\t}",
"public void setPosition(Position pos);",
"public void setP... | [
"0.7782753",
"0.7372007",
"0.7372007",
"0.7357482",
"0.7340677",
"0.7244144",
"0.71499425",
"0.7138604",
"0.71195716",
"0.71153265",
"0.702671",
"0.6998798",
"0.6958385",
"0.69429547",
"0.6929512",
"0.6929512",
"0.69239765",
"0.69155306",
"0.6869093",
"0.68443924",
"0.6826359... | 0.8176545 | 0 |
update private void update () Updates the display to reflect the currently stored piece. | private void update() {
setPieceType();
initBackground(pieceIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update() {\n\n\t\tdisplay();\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}",
"public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t... | [
"0.8030003",
"0.7287397",
"0.72793686",
"0.72388774",
"0.7039601",
"0.69885147",
"0.6918861",
"0.6913443",
"0.68660665",
"0.6859612",
"0.68580365",
"0.685689",
"0.68149835",
"0.6813364",
"0.6795663",
"0.67955816",
"0.67955816",
"0.67955816",
"0.67955816",
"0.67861646",
"0.678... | 0.7801682 | 1 |
isVisible public boolean isVisible (Color c) Indicates if piece is visible with added logic that opponent's pieces should not be visible. | public boolean isVisible(Color c) {
if(this.playerColor == c)
isVisible = true;
else
isVisible = false;
return isVisible;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public final boolean isVisible() {\n return visible;\n }",
"public boolean isVisible(Visibility v);",
"public boolean isVisible() ... | [
"0.71365297",
"0.712554",
"0.69993025",
"0.6984425",
"0.6981903",
"0.696377",
"0.68982255",
"0.68685824",
"0.6858296",
"0.6841333",
"0.68341815",
"0.68323296",
"0.6812221",
"0.6806559",
"0.679579",
"0.679579",
"0.679579",
"0.6782912",
"0.67194515",
"0.67194515",
"0.66708535",... | 0.75868464 | 0 |
hide private void hide () Sets attibutes to hide piece. | public void hide() {
isVisible = false;
this.saveBorderColor(Color.BLACK);
this.setBorderColor(Color.BLACK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n\t\thidden = true;\n\t}",
"public void hide() {\n hidden = true;\n }",
"private void hide() {\n\t}",
"public void hide() {\n }",
"void hide();",
"public void hide() {\n visible=false;\n }",
"@Override\n\tpublic void hide() {\n\t\t\n\t}",
"@Override\n\tpublic voi... | [
"0.7792999",
"0.77442837",
"0.76355356",
"0.74674356",
"0.745624",
"0.7415946",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
"0.73772794",
... | 0.7065342 | 61 |
show private void show () Sets attributes to reveal piece. | public void show() {
isVisible = true;
this.saveBorderColor(playerColor);
this.setBorderColor(playerColor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void show() {\n\t\thidden = false;\n\t}",
"public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public void show() {\n visible=true;\n }",
"public void show() {\n hidden = false;\n }",
"public void show() {\r\n\t\tshowMembers();\r\n\t\tshowFacilities();\r\n\t}",
"@O... | [
"0.68916917",
"0.68344456",
"0.68214554",
"0.67633104",
"0.67529076",
"0.6750886",
"0.6750886",
"0.6750886",
"0.6743538",
"0.6734177",
"0.66902405",
"0.6671548",
"0.6671548",
"0.6671548",
"0.6671548",
"0.6671548",
"0.6671548",
"0.6671548",
"0.6671548",
"0.6653434",
"0.6653434... | 0.6845979 | 1 |
setLabelText public void setLabelText (String text) Set PieceView label text. | public void setLabelText(String text) {
label.setText(text);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLabelText(String text);",
"public void setText(String text) {\n\t\ttextLabel.setText(text);\n\t}",
"@objid (\"5c3d048f-2049-4d54-b5e2-eb8c3afe4b1d\")\r\n public void setText(final String label) {\r\n if (label != null)\r\n this.text.setText(label);\r\n }",
"public\t\tvo... | [
"0.8351292",
"0.78218126",
"0.7642821",
"0.7633621",
"0.73474455",
"0.73340625",
"0.7291148",
"0.7262605",
"0.7254501",
"0.72432894",
"0.7169926",
"0.7090818",
"0.7090818",
"0.7073746",
"0.70568866",
"0.7046492",
"0.70363545",
"0.7016729",
"0.70155746",
"0.70136416",
"0.70136... | 0.83604366 | 0 |
getLabel public Label getLabel () Get PieceView label text. | public Label getLabel() {
return this.label;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getLabel();",
"public String getLabelText();",
"java.lang.String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"String getLa... | [
"0.8222455",
"0.8187455",
"0.81072325",
"0.8066878",
"0.8066878",
"0.8066878",
"0.8066878",
"0.7989492",
"0.7989492",
"0.7989492",
"0.7963994",
"0.7963994",
"0.78299475",
"0.78158444",
"0.7808813",
"0.7808813",
"0.77995795",
"0.7793812",
"0.7776137",
"0.77716297",
"0.7766926"... | 0.7586642 | 55 |
Creates a new Configuration instance. Instead of using this constructor consider using the ConfigurationBuilder class. | public Configuration(final File anOutputDirectory, final Set<File> aSourceDirectories, final FileFilter aFileFilter,
final Set<PackageAlias> aPackageAliases, final boolean anIsResourceBundleValidationEnabled,
final String aRootClassName) {
// Validate parameter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Configuration() {\r\n }",
"public abstract Configuration configuration();",
"public static synchronized Configuration getInstance() {\n\t\tif (configuration == null) configuration = new Configuration();\n\t\treturn configuration;\n\t}",
"public static Configuration getInstance() {\r\n if ... | [
"0.703902",
"0.66816044",
"0.655445",
"0.65247744",
"0.6426015",
"0.64116955",
"0.6394321",
"0.6367767",
"0.6365577",
"0.63555056",
"0.62899137",
"0.626251",
"0.6255557",
"0.62245977",
"0.6145594",
"0.6136978",
"0.6105103",
"0.6105103",
"0.6105103",
"0.6105103",
"0.6095375",
... | 0.0 | -1 |
Root source folder to recursively look for resource bundles. | public Set<File> getSourceDirectories() {
return Collections.unmodifiableSet(sourceDirectories);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public String getTopResourcesDir();",
"public void setSourceRoot(String sourceRoot) {\n this.sourceRoot = sourceRoot;\n }",
"abstract public String getRingResourcesDir();",
"protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}",
"protected List <WebFile> getSourceDirCh... | [
"0.6081584",
"0.58154297",
"0.58136547",
"0.57909065",
"0.5732094",
"0.5721069",
"0.5686677",
"0.56307787",
"0.5570933",
"0.54602236",
"0.5452926",
"0.53981996",
"0.53625953",
"0.5313248",
"0.5296912",
"0.52526456",
"0.5206242",
"0.5193662",
"0.51783127",
"0.5156175",
"0.5152... | 0.0 | -1 |
Returns the alias for the given package. | public String getAliasFor(final String javaPackage) {
Validate.notNull(javaPackage, "The javaPackage may not be null.");
Predicate<PackageAlias> packagePredicate = new Predicate<PackageAlias>() {
public boolean apply(final PackageAlias type) {
return javaPackage.equalsIgnore... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getPackageAlias(SymbolEnv env, BLangNode node) {\n String compUnitName = node.pos.getSource().getCompilationUnitName();\n for (BLangImportPackage importStmt : env.enclPkg.imports) {\n if (!ORG_NAME.equals(importStmt.symbol.pkgID.orgName.value) ||\n !PACKAG... | [
"0.77785295",
"0.77104455",
"0.6935282",
"0.6935282",
"0.6850474",
"0.6850474",
"0.6844885",
"0.6814254",
"0.6745042",
"0.67392534",
"0.6735219",
"0.6674234",
"0.6602221",
"0.6434686",
"0.64268863",
"0.6402346",
"0.63677245",
"0.628205",
"0.6166284",
"0.6129728",
"0.61265033"... | 0.7879208 | 0 |
Creates an instantiate expression. | public InstantiateExpression(VariableDeclaration project, IVersionRestriction restriction, String name,
CallArgument... arguments) throws VilException {
super(null, false, name, arguments);
this.project = project;
this.restriction = restriction;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression createExpression();",
"public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions) { throw Extensions.todo(); }",
"Expression() { }",
"Expr createExpr();",
"public Expression() {\r\n }",
"public static NewExpression new_(Class type) { throw Extensions.todo();... | [
"0.7199594",
"0.663351",
"0.6581252",
"0.64044625",
"0.6387864",
"0.6359555",
"0.62976384",
"0.6211285",
"0.6131642",
"0.60436404",
"0.6023363",
"0.60166425",
"0.5931449",
"0.59241855",
"0.5911196",
"0.58523595",
"0.5810707",
"0.58037823",
"0.5772351",
"0.5759383",
"0.5730709... | 0.55742794 | 32 |
Creates an instantiate expression. | public InstantiateExpression(String name, CallArgument... arguments) throws VilException {
super(null, false, name, arguments);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression createExpression();",
"public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions) { throw Extensions.todo(); }",
"Expression() { }",
"Expr createExpr();",
"public Expression() {\r\n }",
"public static NewExpression new_(Class type) { throw Extensions.todo();... | [
"0.7199594",
"0.663351",
"0.6581252",
"0.64044625",
"0.6387864",
"0.6359555",
"0.62976384",
"0.6211285",
"0.6131642",
"0.60436404",
"0.6023363",
"0.60166425",
"0.5931449",
"0.59241855",
"0.5911196",
"0.5810707",
"0.58037823",
"0.5772351",
"0.5759383",
"0.5730709",
"0.571411",... | 0.58523595 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.