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 |
|---|---|---|---|---|---|---|
add a new element x at the rear of the queue returns false if the element was not added because the queue is full | boolean offer(T x){
if(tail == queueArray.length){
return false;
}
queueArray[tail] = x;
tail++;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean add(T x) {\n\t if(size==pq.length)\n\t return false;\n\t else {\n\t //add the element\n\t pq[size]=x;\n\t //check if the heap is maintained\n\t percolateUp(size);\n\t //increment the size\n\t size++;\n\t return true;\n\n }\n\n\n ... | [
"0.7698989",
"0.7616281",
"0.76037276",
"0.7419195",
"0.7402528",
"0.72252077",
"0.72056097",
"0.71504575",
"0.70695686",
"0.69989276",
"0.6985303",
"0.69734186",
"0.69621783",
"0.6952981",
"0.69383353",
"0.69173586",
"0.6881373",
"0.6842868",
"0.68312675",
"0.6777907",
"0.67... | 0.789981 | 0 |
void toArray(T[] a):fill user supplied array with the elements of the queue, in queue order | T[] toArray(T[] a){
if(isEmpty()){
return null;
}
for(int i=0;i<tail;i++){
a[i] = (T) queueArray[i];
}
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toArray(Object[] a) {\n int index = 0;\n int size = count;\n int i = (front + 1) % maxSize;\n while(size > 0){\n a[index++] = queue[i++];\n i %= maxSize;\n size--;\n }\n }",
"@Override\n public Object[] toArray() {\n ret... | [
"0.79095244",
"0.6653741",
"0.64721775",
"0.64545554",
"0.6301585",
"0.6200164",
"0.61676806",
"0.61215156",
"0.61184675",
"0.61068845",
"0.607352",
"0.6072903",
"0.603604",
"0.6013484",
"0.5996009",
"0.59915465",
"0.5981679",
"0.5911958",
"0.5898158",
"0.5887824",
"0.5865645... | 0.7974152 | 0 |
return front element, without removing it (null if queue is empty) | T peek(){
if(isEmpty()){
return null;
}
return (T)queueArray[0];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T getFront() throws EmptyQueueException;",
"@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}",
"public E first(){\n if (isEmpty()) return null;\n ... | [
"0.8192616",
"0.81664836",
"0.8096295",
"0.80859023",
"0.80228335",
"0.8006954",
"0.7979686",
"0.79000753",
"0.7876345",
"0.7777522",
"0.7728372",
"0.76558894",
"0.7627134",
"0.76247746",
"0.7614012",
"0.76100284",
"0.7574637",
"0.75119495",
"0.7511793",
"0.749484",
"0.748994... | 0.79038537 | 7 |
remove and return the element at the front of the queue return null if the queue is empty | T poll(){
if(isEmpty()){
return null;
}
T temp = (T) queueArray[0];
for(int i=0; i<tail-1;i++){
queueArray[i] = queueArray[i+1];
}
tail--;
return temp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n ... | [
"0.79872274",
"0.7833243",
"0.7746519",
"0.77120566",
"0.7699035",
"0.7667517",
"0.76495254",
"0.7641187",
"0.7589161",
"0.75659287",
"0.7534579",
"0.75071776",
"0.7489748",
"0.7479305",
"0.7465672",
"0.745213",
"0.7447138",
"0.7445553",
"0.74240404",
"0.73976547",
"0.7389305... | 0.73467636 | 23 |
void clear(): clear the queue (size=0) | void clear(){
this.queueArray = (T[]) new Object[0];
this.tail = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clear(){\r\n\t\tqueue.clear();\r\n\t}",
"public synchronized void clear() {\n _queue.clear();\n }",
"public final void clear()\n {\n\t\tcmr_queue_.removeAllElements();\n buffer_size_ = 0;\n }",
"public void clearQueue() {\n\tmQueue.clear();\n\tqueueModified();\n }",
"p... | [
"0.9023984",
"0.8675095",
"0.84649295",
"0.8350312",
"0.82671267",
"0.82108915",
"0.82002455",
"0.8158304",
"0.80584675",
"0.80536014",
"0.80536014",
"0.80536014",
"0.80427086",
"0.7961391",
"0.79314566",
"0.78255224",
"0.7778042",
"0.7761408",
"0.7748723",
"0.7733605",
"0.77... | 0.83613956 | 3 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_posts, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7249559",
"0.7204226",
"0.71981144",
"0.7180145",
"0.7110589",
"0.70431244",
"0.7041351",
"0.70150685",
"0.70118093",
"0.69832",
"0.6947845",
"0.69419056",
"0.6937257",
"0.6920975",
"0.6920975",
"0.68938893",
"0.68867826",
"0.6878929",
"0.6877472",
"0.68656766",
"0.6865676... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79046714",
"0.78065175",
"0.7766765",
"0.7727237",
"0.76320195",
"0.7622174",
"0.7585192",
"0.75314754",
"0.74888134",
"0.7458358",
"0.7458358",
"0.7438547",
"0.7421898",
"0.7402884",
"0.73917156",
"0.738695",
"0.73795676",
"0.73704445",
"0.7361756",
"0.7356012",
"0.734561... | 0.0 | -1 |
attempt authentication against a network service. | @Override
protected Boolean doInBackground(Void... params) {
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("tid", getCurrentTopic().toString()));
JSONObject responseObj = JSONFunctions.getJSONfromURL("http://w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".... | [
"0.6140861",
"0.59111184",
"0.5894533",
"0.58643305",
"0.5849406",
"0.58044",
"0.57673174",
"0.5765852",
"0.575853",
"0.573683",
"0.57366294",
"0.56903934",
"0.56756765",
"0.56677186",
"0.5654843",
"0.56471354",
"0.56277204",
"0.56121516",
"0.5582246",
"0.5536669",
"0.5524083... | 0.0 | -1 |
TODO: return the person's name | public String getName(){
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(){\n return personName;\n }",
"String fullName();",
"public String getName(){\n\t\treturn this.firstName + \" \" + this.surname;\r\n\t}",
"public String getName (){\r\n return firstName + \" \" + lastName;\r\n }",
"public String getName()\n {\n return for... | [
"0.80738384",
"0.7802041",
"0.77533823",
"0.7750704",
"0.76789916",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
"0.7584139",
... | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Server)) {
return false;
}
Server other = (Server) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6897049",
"0.6839498",
"0.67057544",
"0.66417086",
"0.66417086",
"0.6592169",
"0.6579292",
"0.6579292",
"0.6575263",
"0.6575263",
"0.6575263",
"0.6575263",
"0.6575263",
"0.6575263",
"0.656245",
"0.656245",
"0.65447694",
"0.65251684",
"0.6516205",
"0.6487982",
"0.6477638",
... | 0.0 | -1 |
return "com.blazzify.jasonium.storage.Server[ id=" + id + " ]"; | @Override
public String toString() {
return this.getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"String getServerId();",
"String get(String id);",
"public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }",
"String getId();",
"String getId();",
... | [
"0.5834797",
"0.5735374",
"0.5713685",
"0.56801105",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
"0.5619733",
... | 0.0 | -1 |
/ renamed from: a | public final void mo3780a(int i) {
float f = 0.0f;
if (i == 1) {
f = this.f7614c;
this.f7612a = f;
} else if (i == 2) {
f = this.f7615d;
this.f7612a = f;
} else {
this.f7612a = 0.0f;
}
if (f >= 0.01f) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
Provide a Fragment associated with the specified position. | public abstract @NonNull
Fragment getItem(int position); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Fragment getFragmentByPosition(int position);",
"@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment fragment = (Fragment) super.instantiateItem(container, position);\n registeredFragments.put(position, fragment);\n ... | [
"0.81970793",
"0.7474825",
"0.7427461",
"0.74254906",
"0.7411738",
"0.73463756",
"0.7176675",
"0.7166349",
"0.7152977",
"0.70774186",
"0.70754224",
"0.70711064",
"0.70622003",
"0.7062016",
"0.70213693",
"0.7004297",
"0.6976799",
"0.69661623",
"0.6965503",
"0.6963124",
"0.6960... | 0.70111847 | 15 |
This happens when a ViewHolder is in a transient state (e.g. during custom animation). We don't have sufficient information on how to clear up what lead to the transient state, so we are throwing away the ViewHolder to stay on the conservative side. | @Override
public final boolean onFailedToRecycleView(@NonNull FragmentViewHolder holder) {
removeFragment(holder);
return false; // don't recycle the view
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onViewRecycled(RecyclerView.ViewHolder holder) {\n super.onViewRecycled(holder);\n if (holder instanceof TvShowViewHolder) {\n ((TvShowViewHolder) holder).cleanup();\n }\n\n }",
"@Override\n protected void onCleared() {\n super.onCleared();\... | [
"0.69814414",
"0.64277995",
"0.64277995",
"0.637086",
"0.6285607",
"0.6213437",
"0.6213437",
"0.6174568",
"0.6015736",
"0.6011155",
"0.5948065",
"0.5851859",
"0.57767814",
"0.57228434",
"0.57127935",
"0.5701828",
"0.57009894",
"0.5691032",
"0.5674761",
"0.5655705",
"0.5641184... | 0.0 | -1 |
Removes a Fragment and commits the operation. | private void removeFragment(Fragment fragment, long itemId) {
FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();
removeFragment(fragment, itemId, fragmentTransaction);
fragmentTransaction.commitNow();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void compositionMarkedForDeletionFromFragment(OpenCompositionFragment fragment, Stave compositionToDelete);",
"private void removeFragment(Fragment fragment, long itemId,\n @NonNull FragmentTransaction fragmentTransaction) {\n if (fragment == null) {\n return;\n ... | [
"0.64614415",
"0.6252588",
"0.6195845",
"0.58982384",
"0.58945084",
"0.5864306",
"0.5798983",
"0.56701684",
"0.54864234",
"0.54826623",
"0.54578584",
"0.53507483",
"0.53431225",
"0.53431225",
"0.5301165",
"0.5276743",
"0.5276743",
"0.52525264",
"0.51870704",
"0.517477",
"0.51... | 0.6795621 | 0 |
Adds a remove operation to the transaction, but does not commit. | private void removeFragment(Fragment fragment, long itemId,
@NonNull FragmentTransaction fragmentTransaction) {
if (fragment == null) {
return;
}
if (fragment.isAdded() && containsItem(itemId)) {
mSavedStates.put(itemId, mFragmentManager.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean atomicRemove();",
"abstract void remove(String key, boolean commit);",
"public Boolean removeTransaction()\n {\n return true;\n }",
"public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTr... | [
"0.67224526",
"0.6370438",
"0.63328594",
"0.63247603",
"0.614688",
"0.6035995",
"0.6035995",
"0.6023921",
"0.60194397",
"0.60194397",
"0.60194397",
"0.60194397",
"0.60194397",
"0.60021657",
"0.5997475",
"0.5952738",
"0.59492844",
"0.5906343",
"0.5906343",
"0.5904719",
"0.5862... | 0.0 | -1 |
return new Parent(); // Compilation failure return new Child(); // Compilation failure | static Grandson getGrandson() {
return new Grandson();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}",
"public Parent() {\n super();\n }",
"protected ChildType() {/* intentionally empty block */}",
"@Override\n public Animal newChild() {\n return new Fox(0);\n }",
"@SuppressWarnings(\"unchecked\")\n protected synchronized ... | [
"0.6609148",
"0.653678",
"0.6423748",
"0.6342534",
"0.63326496",
"0.62216014",
"0.61851966",
"0.6152199",
"0.6047918",
"0.60331213",
"0.5963783",
"0.5952065",
"0.59163505",
"0.58927375",
"0.5872598",
"0.58631206",
"0.5817764",
"0.5812552",
"0.58015925",
"0.5798297",
"0.578304... | 0.0 | -1 |
Find the configured directory containing logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides) | public static Path locateLogosDir(ServiceContext context) {
ServletContext servletContext = null;
if(context == null) {
context = ServiceContext.get();
}
if(context == null) {
throw new RuntimeException("Null Context found!!!!");
} el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Path locateLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").res... | [
"0.7391163",
"0.6854571",
"0.6710273",
"0.6103184",
"0.59402144",
"0.5924601",
"0.58756185",
"0.5751237",
"0.5749579",
"0.5667328",
"0.566042",
"0.562562",
"0.5577953",
"0.55633926",
"0.55601823",
"0.5457713",
"0.5446492",
"0.54201937",
"0.5369925",
"0.53661627",
"0.53537166"... | 0.69966185 | 1 |
Look in the logos dir for an image with the name provided. If the imageName does not have an extension then the logos dir will be searched for all images with the provided name. | public static Path findImagePath(String imageName, Path logosDir) throws IOException {
if (imageName.indexOf('.') > -1) {
final Path imagePath = logosDir.resolve(imageName);
if (java.nio.file.Files.exists(imagePath)) {
return imagePath;
}
} else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory... | [
"0.60710657",
"0.57355535",
"0.5453846",
"0.5423003",
"0.5422724",
"0.53898245",
"0.5354177",
"0.5346254",
"0.52836883",
"0.5244562",
"0.5172076",
"0.5156188",
"0.5143656",
"0.50980335",
"0.5088578",
"0.50585556",
"0.5057321",
"0.50489664",
"0.5021717",
"0.5014305",
"0.501265... | 0.7842895 | 0 |
Find the configured directory containing logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides) | public static Path locateLogosDir(ServletContext context,
ConfigurableApplicationContext applicationContext, Path appDir) {
final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);
Path path = base.resolve("images").resolve("logo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Path locateLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n \n if(context == null) {\n context = ServiceContext.get();\n }\n \n if(context == null) {\n throw new RuntimeException(\"Null Context found!!!!\"... | [
"0.6995931",
"0.6854082",
"0.6709749",
"0.61024606",
"0.5939139",
"0.5924091",
"0.58748215",
"0.5749438",
"0.57492226",
"0.5666477",
"0.5659944",
"0.5623646",
"0.5577283",
"0.5563063",
"0.5559139",
"0.5456445",
"0.54449415",
"0.54197055",
"0.5369568",
"0.53655744",
"0.5354404... | 0.7390722 | 0 |
Find the configured directory containing harvester logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides) | public static Path locateHarvesterLogosDir(ServiceContext context) {
ServletContext servletContext = null;
if (context.getServlet() != null) {
servletContext = context.getServlet().getServletContext();
}
return locateHarvesterLogosDir(servletContext,
context.getAp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Path locateHarvesterLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resol... | [
"0.7639446",
"0.6926959",
"0.6444444",
"0.6096881",
"0.58754927",
"0.5713",
"0.5689763",
"0.5676549",
"0.56258434",
"0.5609049",
"0.552963",
"0.5517684",
"0.5513873",
"0.54723406",
"0.5454403",
"0.5443476",
"0.54394543",
"0.5431509",
"0.541262",
"0.54023135",
"0.53964174",
... | 0.7490332 | 1 |
Find the configured directory containing harvester logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides) | public static Path locateHarvesterLogosDir(ServletContext context,
ConfigurableApplicationContext applicationContext, Path appDir) {
final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);
Path path = base.resolve("imag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Path locateHarvesterLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n return locateHarvesterLogosDir(servletContext,\n co... | [
"0.7490332",
"0.6926959",
"0.6444444",
"0.6096881",
"0.58754927",
"0.5713",
"0.5689763",
"0.5676549",
"0.56258434",
"0.5609049",
"0.552963",
"0.5517684",
"0.5513873",
"0.54723406",
"0.5454403",
"0.5443476",
"0.54394543",
"0.5431509",
"0.541262",
"0.54023135",
"0.53964174",
... | 0.7639446 | 0 |
The root of the "data" images. A Data image is an image that is dependent on the webapplication instance. They are the images that change from installation to installation like logos and harvester logos. The directory is configured by config.xml and the configuration overrides. See the information on configuration over... | public static Path locateResourcesDir(ServiceContext context) {
if (context.getServlet() != null) {
return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext());
}
return context.getBean(GeonetworkDataDirectory.class).getResourcesDir();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}",
"abstract public String getDataResourcesDir();",
"public String getDataPath() {\n\t\treturn \"data\";\r\n\t}",
"public Path getDataDirectory();",
"public String getDataDirectory() {\n return dataDirectory;\n }",
"public ... | [
"0.639409",
"0.63299",
"0.6276183",
"0.62577885",
"0.618293",
"0.6088908",
"0.60139275",
"0.60019606",
"0.5840327",
"0.57803595",
"0.5685544",
"0.5613177",
"0.5588597",
"0.5499031",
"0.5495355",
"0.5487441",
"0.5478661",
"0.5353793",
"0.53337497",
"0.52797836",
"0.52191305",
... | 0.0 | -1 |
The root of the "data" images. A Data image is an image that is dependent on the webapplication instance. They are the images that change from installation to installation like logos and harvester logos. The directory is configured by config.xml and the configuration overrides. See the information on configuration over... | public static Path locateResourcesDir(ServletContext context,
ApplicationContext applicationContext) {
Path property = null;
try {
property = applicationContext.getBean(GeonetworkDataDirectory.class).getResourcesDir();
} catch (NoSuchBeanDefi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}",
"abstract public String getDataResourcesDir();",
"public String getDataPath() {\n\t\treturn \"data\";\r\n\t}",
"public Path getDataDirectory();",
"public String getDataDirectory() {\n return dataDirectory;\n }",
"public ... | [
"0.6397178",
"0.63310486",
"0.6279027",
"0.6260069",
"0.61858",
"0.60922897",
"0.60170114",
"0.6004939",
"0.5842543",
"0.57830393",
"0.5687891",
"0.5611146",
"0.5586507",
"0.54992205",
"0.5496996",
"0.54898983",
"0.5481616",
"0.53531754",
"0.5331226",
"0.5283068",
"0.5221266"... | 0.0 | -1 |
copy the "unknown" logo to the logos directory for the name | public static void copyUnknownLogo(ServiceContext context, String destName) {
copyLogo(context, "unknown-logo.png", destName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void createLogo(String logoCode);",
"protected static void copyProfilePicture() {\n\t\tString extension = profilePictureAddress.substring(profilePictureAddress.lastIndexOf(\".\") + 1,\r\n\t\t\t\tprofilePictureAddress.length());\r\n\t\t// bebinim ke alan in project to kodoom directory dar hal ejrast ! ke mishe ==... | [
"0.6195254",
"0.597754",
"0.5969466",
"0.5914362",
"0.56665945",
"0.5586709",
"0.55424803",
"0.5484398",
"0.54081",
"0.53827214",
"0.53823125",
"0.5364132",
"0.5354363",
"0.53364646",
"0.53236556",
"0.52605915",
"0.5243982",
"0.5238558",
"0.5204729",
"0.5180321",
"0.5179883",... | 0.72898597 | 0 |
we should be able to grab the item's description | public String getDescription() {
return description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized String getDescription(){\n \treturn item_description;\n }",
"public String getItemDesc() {\n return itemDesc;\n }",
"public String getItemDescription() {\n return itemDescription;\n }",
"public String getItemDescription() {\r\n\t\treturn itemDescription;\r\n\t}",... | [
"0.7938913",
"0.78848964",
"0.7792981",
"0.7732546",
"0.7547139",
"0.75442433",
"0.7538005",
"0.7474431",
"0.7440442",
"0.73355216",
"0.730615",
"0.72744226",
"0.72411084",
"0.7156299",
"0.71384317",
"0.7101424",
"0.7083846",
"0.7078574",
"0.70733964",
"0.70596886",
"0.702527... | 0.0 | -1 |
and to be able to edit the description | public void editDescription(String description) {
this.description = description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDescription(String description){this.description=description;}",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setD... | [
"0.81195086",
"0.79456586",
"0.79456586",
"0.79456586",
"0.79456586",
"0.79456586",
"0.79456586",
"0.7795806",
"0.7781852",
"0.7779442",
"0.7779442",
"0.77758294",
"0.77305967",
"0.7726888",
"0.7722619",
"0.7659308",
"0.7659308",
"0.7622877",
"0.7600007",
"0.75993806",
"0.759... | 0.796099 | 1 |
the item's description must be between 1 and 256 characters in length | public boolean checkDescription() {
int size = description.length();
return size >= 1 && size <= 256;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void validateDescription(ValidationError error, int length) {\n String fieldName = \"description\";\n if (length > 128) {\n logger.error(\"Length (\" + length + \") of Description must not exceed 128 on a FinanceCube\");\n error.addFieldError(fieldName, \"Length (... | [
"0.7146846",
"0.6897114",
"0.68072206",
"0.6728721",
"0.66329616",
"0.66243786",
"0.6434576",
"0.6416183",
"0.63924485",
"0.6226524",
"0.6208507",
"0.6199733",
"0.61811054",
"0.59926873",
"0.59897184",
"0.59042686",
"0.5868991",
"0.5839405",
"0.58390623",
"0.5838392",
"0.5797... | 0.7022304 | 1 |
we should be able to edit the due date | public void editDueDate(Calendar newDate) {
this.dueDate = newDate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDueDate(Date d){dueDate = d;}",
"public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date f... | [
"0.79154",
"0.79005384",
"0.77116114",
"0.7680244",
"0.7616526",
"0.7490894",
"0.7275839",
"0.72191966",
"0.7207624",
"0.7207624",
"0.71874624",
"0.714088",
"0.714088",
"0.70923585",
"0.7086094",
"0.70745176",
"0.7066882",
"0.7031619",
"0.69972986",
"0.6993659",
"0.69794494",... | 0.7807116 | 2 |
we should be able to set it to be done | public void setDone(boolean done) {
this.done = done;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void aktualisieren() {\r\n\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic boolean postIt() {\n\t\treturn false;\n\t}",
"protected void performDefaults() {\r\n\t}",
"... | [
"0.6502018",
"0.64725536",
"0.64150697",
"0.6318544",
"0.6263173",
"0.6252284",
"0.6224381",
"0.6224381",
"0.6214119",
"0.6214119",
"0.6214119",
"0.6214119",
"0.6214119",
"0.62108475",
"0.6192866",
"0.6139648",
"0.612402",
"0.61033875",
"0.6100926",
"0.61009157",
"0.6072603",... | 0.0 | -1 |
TODO Autogenerated method stub | public String save(String userInfo, String saveJson){
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
StandardRole standardRole=JacksonUtils.fromJson(saveJson, StandardRole.class);
StandardRole fa = standardRoleService.getObjectById(standardRole.getCatalogId());
standardRole.s... | {
"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 String saveBatch(String userInfo, String saveJsonList)
{
return null;
} | {
"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 String updateBatch(String userInfo, String updateJsonList)
{
return null;
} | {
"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 String update(String userInfo, String updateJson) {
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
StandardRole standardRole=JacksonUtils.fromJson(updateJson, StandardRole.class);
StandardRole standardRoleOld=standardRoleService.getObjectById(standardRole.ge... | {
"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 String deleteAllObjectByIds(String userInfo, String deleteJsonList)
{
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
if (StringUtils.isNotBlank(deleteJsonList)) {
Map map=JacksonUtils.fromJson(deleteJsonList, HashMap.class);
List<String> list=Array... | {
"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 String getObjectById(String userInfo, String getJson)
{
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
StandardRole standardRole=JacksonUtils.fromJson(getJson, StandardRole.class);
StandardRole result = standardRoleService.getObjectById(standardRole.getId());
info... | {
"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 String getPage(String userInfo, String paramater) {
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
if(StringUtils.isNotBlank(paramater)){
Map map=JacksonUtils.fromJson(paramater, HashMap.class);
Page page=standardRoleService.getPage(map, (Integer)map.get("start"), ... | {
"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 String queryList(String userInfo, String paramater){
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
if(StringUtils.isNotBlank(paramater)){
Map map=JacksonUtils.fromJson(paramater, HashMap.class);
List list=standardRoleService.queryList(map);
info.setResult(Jac... | {
"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 String getCount(String userInfo, String paramater) {
return null;
} | {
"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 String queryRoleListByOrgId(String userInfo, String paramater){
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
if(StringUtils.isNotBlank(paramater)){
Map map = JacksonUtils.fromJson(paramater, HashMap.class);
List<RoleNodeDto> list=standardRoleService.queryRoleList... | {
"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 String deletePseudoObjectById(String userInfo, String deleteJson)
{
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
StandardRole standardRole=JacksonUtils.fromJson(deleteJson, StandardRole.class);
//查询角色下有没有岗位,如果有不让删除
Map<String,Object> map = new Hash... | {
"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 String deletePseudoAllObjectByIds(String userInfo, String deleteJsonList)
{
DubboServiceResultInfo info=new DubboServiceResultInfo();
try {
if (StringUtils.isNotBlank(deleteJsonList)) {
Map map=JacksonUtils.fromJson(deleteJsonList, HashMap.class);
List<String> list... | {
"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 |
Very simple method, simply exits the program. Runs when the exit button is pressed. | public void exitTheProgram(){
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void exit();",
"public void exit() {\n\t\tSystem.exit(0);\n\t}",
"public void exit() {\n\t\tSystem.exit(0);\n\t}",
"public void quit() {System.exit(0);}",
"public void quit() {\n\t\tSystem.exit(0);\n\t}",
"void exit();",
"protected void exit() {\n\t\tSystem.exit(0);\n\t}",
"private static void... | [
"0.85064405",
"0.84453213",
"0.84453213",
"0.8332031",
"0.8296706",
"0.82952744",
"0.8170252",
"0.8043229",
"0.8016193",
"0.8006182",
"0.798944",
"0.79890114",
"0.7940127",
"0.7905476",
"0.78863776",
"0.7883183",
"0.7865592",
"0.7857592",
"0.7837002",
"0.7824637",
"0.7809517"... | 0.8567404 | 0 |
The initialize method here sets the CellValueFactories, and gets all relevant data from DataArray (See those methods in that class for more information) And sets all that data into the TableViews. | @Override
public void initialize(URL url, ResourceBundle resourceBundle) {
idColPart.setCellValueFactory(new PropertyValueFactory<>("id"));
nameColPart.setCellValueFactory(new PropertyValueFactory<>("name"));
invColPart.setCellValueFactory(new PropertyValueFactory<>("stock"));
price... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeTable()\n {\n mTable = new ListView(mData);\n mTable.setPrefSize(200, 250);\n mTable.setEditable(false);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n id.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n title.s... | [
"0.7111802",
"0.70058554",
"0.69885206",
"0.6970588",
"0.69088537",
"0.6881676",
"0.6839819",
"0.68344826",
"0.6776733",
"0.6765934",
"0.67509454",
"0.67501986",
"0.67479736",
"0.67366916",
"0.6730179",
"0.6705906",
"0.6672188",
"0.66563255",
"0.6633783",
"0.66209066",
"0.660... | 0.677453 | 9 |
Uses the first SearchBar (searchBar0) to check the partTableView for Part IDs and or Part Names. Initially checks to make sure the searchbar isn't empty, otherwise it displays all Parts. Otherwise, the method uses Regex to check for numbers that match the Part ID, it accomplishes this with the help of lookupPart from t... | public void searchParts()
{
if(!searchBar0.getText().equals(""))
{
if(searchBar0.getText().matches("[0-9]*"))
{
int number = Integer.parseInt(searchBar0.getText());
ObservableList<Part> newPartList = FXCollections.observableArrayList();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleSearchParts()\n {\n int searchPartID;\n Part searchedPart;\n ObservableList<Part> searchedParts;\n if (!partSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n partTable.getSelectionModel().clearSelection();\n\n ... | [
"0.7613495",
"0.75798106",
"0.7080074",
"0.7006497",
"0.7003873",
"0.69389",
"0.6788166",
"0.6540765",
"0.6487324",
"0.6309448",
"0.6274016",
"0.61205673",
"0.6021113",
"0.6012043",
"0.5971461",
"0.5952813",
"0.58208567",
"0.573832",
"0.5654313",
"0.5645999",
"0.56419593",
... | 0.8069743 | 0 |
Uses the second SearchBar (searchBar1) to check the productTableView for Product IDs and or Product Names. Initially checks to make sure the searchbar isn't empty, otherwise it displays all Products. Otherwise, the method uses Regex to check for numbers that match the Product ID, it accomplishes this with the help of l... | public void searchProducts()
{
if(!searchBar1.getText().equals(""))
{
if(searchBar1.getText().matches("[0-9]*"))
{
int number = Integer.parseInt(searchBar1.getText());
ObservableList<Product> newProductList = FXCollections.observableArrayList()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleSearchProducts()\n {\n int searchProductID;\n Product searchedProduct;\n ObservableList<Product> searchedProducts;\n if (!productSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n productTable.getSelectionModel().... | [
"0.76942474",
"0.76161987",
"0.6901448",
"0.666147",
"0.6645876",
"0.66050166",
"0.6593377",
"0.64890075",
"0.6438951",
"0.63351524",
"0.63300467",
"0.62954164",
"0.6277403",
"0.625983",
"0.6229926",
"0.61378706",
"0.611612",
"0.6092349",
"0.6013056",
"0.59874064",
"0.5954603... | 0.80187577 | 0 |
Deletes selected Part. Uses deletePart method from Inventory. Has an alert that double checks the user wants to delete the part. | public void deletePart()
{
ObservableList<Part> partRowSelected;
partRowSelected = partTableView.getSelectionModel().getSelectedItems();
if(partRowSelected.isEmpty())
{
alert.setAlertType(Alert.AlertType.ERROR);
alert.setContentText("Please select the Part you... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n ... | [
"0.8006078",
"0.77087456",
"0.7563304",
"0.74235106",
"0.7278273",
"0.7204937",
"0.7032285",
"0.7017571",
"0.68930405",
"0.6737425",
"0.6728093",
"0.663712",
"0.66001487",
"0.64830446",
"0.6455155",
"0.61311173",
"0.6127233",
"0.6119193",
"0.6072361",
"0.6057028",
"0.60487723... | 0.86181515 | 0 |
Deletes selected Product. Ensures the Product being deleted has no associated parts. If associated parts are found, an alert is sent to the user. Uses deletePart method from Inventory. Has an alert that double checks the user wants to delete the part. | public void deleteProduct()
{
ObservableList<Product> productRowSelected;
productRowSelected = productTableView.getSelectionModel().getSelectedItems();
int index = productTableView.getSelectionModel().getFocusedIndex();
Product product = productTableView.getItems().get(index);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select... | [
"0.7643418",
"0.74275523",
"0.7263807",
"0.7260745",
"0.72285104",
"0.71257114",
"0.6949485",
"0.6930094",
"0.68928254",
"0.67174506",
"0.6705809",
"0.66648215",
"0.66577655",
"0.66449666",
"0.6619112",
"0.6608342",
"0.653688",
"0.64437175",
"0.64094955",
"0.6372457",
"0.6316... | 0.805743 | 0 |
A simple setter. Helps modify Parts/Products know exactly which data to pull. | public void setFocusedIndex(int i)
{
focusedIndex = i;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProduct(entity.APDProduct value);",
"@JsonSetter(\"product_details\")\n public void setProductDetails (ProductData value) { \n this.productDetails = value;\n }",
"public void setPartNo(String partNo){\n\t\t // store into the instance variable partNo (i.e. this.partNo) the value of t... | [
"0.63084596",
"0.60473025",
"0.5818254",
"0.5797493",
"0.574198",
"0.57174283",
"0.56909627",
"0.5685793",
"0.56856555",
"0.56107384",
"0.5601422",
"0.5598453",
"0.5581152",
"0.5564523",
"0.5559464",
"0.55427593",
"0.553056",
"0.5521407",
"0.5516191",
"0.5496627",
"0.54882854... | 0.0 | -1 |
A simple getter Had a bug with this, but I found the bug was not here, but instead happened with when I called this method. See goToModifyProducts Javadoc for more information. | public int getFocusedIndex()
{
return focusedIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getProduct();",
"public String getProduct()\n {\n return product;\n }",
"Product getPProducts();",
"String getProduct();",
"public String getProductCode() {\r\n/* 211 */ return this._productCode;\r\n/* */ }",
"public String getProductId() ;",
"public String getProduct() {\r\n ... | [
"0.7330021",
"0.7196371",
"0.7139775",
"0.7106817",
"0.69461757",
"0.6924348",
"0.68884647",
"0.687018",
"0.687018",
"0.6853915",
"0.684698",
"0.68415225",
"0.68237376",
"0.68201905",
"0.665758",
"0.665758",
"0.66491777",
"0.66306776",
"0.66102195",
"0.6601767",
"0.6568422",
... | 0.0 | -1 |
Sends the user to the AddPartScene. | public void goToAddPartScene(ActionEvent event) throws IOException {
Parent addPartParent = FXMLLoader.load(getClass().getResource("AddPart.fxml"));
Scene addPartScene = new Scene(addPartParent);
Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
window.setScene(a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleAddParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartCont... | [
"0.70769626",
"0.69102424",
"0.6746995",
"0.67336804",
"0.6387644",
"0.6260183",
"0.62268835",
"0.61722267",
"0.6160601",
"0.6143604",
"0.6102413",
"0.6101739",
"0.6087403",
"0.60649014",
"0.5954509",
"0.5923543",
"0.5904717",
"0.5851754",
"0.5827284",
"0.5749729",
"0.5700423... | 0.7292152 | 0 |
Sends the user to the ModifyPartScene. Makes sure a Part is focused, otherwise an alert is issued and the user stays on the main scene. | public void goToModifyPartScene(ActionEvent event) throws IOException {
if(partTableView.getSelectionModel().isEmpty())
{
alert.setAlertType(Alert.AlertType.ERROR);
alert.setContentText("Please make sure you've added a Part and selected the Part you want to modify.");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartC... | [
"0.6879083",
"0.66070765",
"0.65426546",
"0.604828",
"0.59426826",
"0.5898266",
"0.5851459",
"0.5829234",
"0.5811155",
"0.57817775",
"0.57551956",
"0.57506824",
"0.5711624",
"0.57105505",
"0.56780845",
"0.56526434",
"0.5643831",
"0.56137735",
"0.55969584",
"0.5564279",
"0.556... | 0.7181235 | 0 |
Sends the user to the AddProductScene. | public void goToAddProductScene(ActionEvent event) throws IOException {
Parent addProductParent = FXMLLoader.load(getClass().getResource("AddProduct.fxml"));
Scene addProductScene = new Scene(addProductParent);
Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
wi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n Pro... | [
"0.7139945",
"0.68106884",
"0.6658261",
"0.6654204",
"0.6600103",
"0.65891796",
"0.6505114",
"0.6487879",
"0.64419013",
"0.6436279",
"0.6256074",
"0.6248576",
"0.62362283",
"0.61941975",
"0.6165121",
"0.609303",
"0.607759",
"0.6055819",
"0.60533524",
"0.60283303",
"0.60165715... | 0.7118589 | 1 |
Sends the user to the ModifyProductScene. Makes sure a Product is focused, otherwise an alert is issued and the user stays on the main scene. | public void goToModifyProductScene(ActionEvent event) throws IOException {
if(productTableView.getSelectionModel().isEmpty())
{
alert.setAlertType(Alert.AlertType.ERROR);
alert.setContentText("Please make sure you've added a Product and selected the Product you want to modify.")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n ... | [
"0.7263511",
"0.7202201",
"0.6699322",
"0.6558662",
"0.6526077",
"0.6464157",
"0.63832587",
"0.62391144",
"0.6233449",
"0.62248117",
"0.61879766",
"0.61668247",
"0.6144092",
"0.61334264",
"0.60937876",
"0.60744655",
"0.60677624",
"0.60646594",
"0.60168463",
"0.60129887",
"0.5... | 0.74470687 | 0 |
The main method which drive the program. | public static void main(String[] args) {
// Variable type rank
Rank highCard;
Rank faceCard;
Rank card1;
Rank card2;
// Value of card 1
int card1Val;
// Value of card 2
int card2Val;
// Assign the value to the variable
highCard ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main()\n\t{\n\t}",
"public static void main() {\n }",
"public static void main() {\n \n }",
"public static void main(){\n\t}",
"public void main(){\n }",
"public static void main (String []args){\n }",
"public static void main(String[] args) {\r\n \r\n }",
"p... | [
"0.856752",
"0.8418287",
"0.84117085",
"0.834388",
"0.8011111",
"0.78549546",
"0.7804111",
"0.7804111",
"0.7790914",
"0.7790914",
"0.7760762",
"0.7733858",
"0.77156997",
"0.7674543",
"0.7672862",
"0.7669599",
"0.7649986",
"0.7633837",
"0.7633837",
"0.7632672",
"0.76318467",
... | 0.0 | -1 |
RelativeLayout.LayoutParams params_top = (RelativeLayout.LayoutParams)view_top.getLayoutParams(); RelativeLayout.LayoutParams params_mid = (RelativeLayout.LayoutParams)view_mid.getLayoutParams(); | public void setValue(double value) {
if(value<=0){
mDrange = 0;
pb.setProgress(0);
ProgressDragLayout.this.requestLayout();
ProgressDragLayout.this.invalidate();
return;
}
progressAdd = 0;
mDrange = 0;
drange_1=0;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static LinearLayout.LayoutParams getLayoutParams() {\r\n return new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);\r\n }",
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int child... | [
"0.64905316",
"0.64448494",
"0.64332783",
"0.6262434",
"0.62591517",
"0.6209726",
"0.612661",
"0.6101911",
"0.61018276",
"0.59749633",
"0.5905841",
"0.5843496",
"0.5832093",
"0.5815285",
"0.580944",
"0.5779946",
"0.57376075",
"0.5735805",
"0.57321864",
"0.56917894",
"0.569020... | 0.0 | -1 |
Log.e("onLayout", l + "|" + t + "|" + r + "|" + b); | @Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight());
view_mid.layout((... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }",
"@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}",
"@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t... | [
"0.731758",
"0.71280205",
"0.6978295",
"0.67996913",
"0.6778277",
"0.67513347",
"0.6651915",
"0.661463",
"0.6549832",
"0.6514518",
"0.65017754",
"0.6489977",
"0.64305377",
"0.6335413",
"0.63230556",
"0.6299407",
"0.6255943",
"0.62048966",
"0.61936915",
"0.6171821",
"0.6166742... | 0.65946877 | 8 |
An interface for an injector to implement Inversion of Control (IoC) | public interface IApplicationInjector {
public Runnable getServerListener(int port, int poolSize) throws ApplicationException;
public Runnable getWorker(Socket socket) throws ApplicationException;
public IFileUtil getFileUtil() throws ApplicationException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface Injector {\n void inject(InternalContext context, Object o);\n }",
"private void inject() {\n }",
"public interface InjectorWrapper {\n\tApplicationInjector getInjector();\n}",
"public interface PlatformInjector {\n /**\n * Injects the server connection. This will allow various addons... | [
"0.7773213",
"0.710158",
"0.69357336",
"0.693044",
"0.6845925",
"0.6768528",
"0.67417794",
"0.6729392",
"0.6674628",
"0.664532",
"0.66421944",
"0.66421944",
"0.6490192",
"0.647334",
"0.6471384",
"0.6470109",
"0.6460015",
"0.6457337",
"0.6452833",
"0.6441034",
"0.64152807",
... | 0.7068029 | 2 |
Created by liyazhou on 2017/10/15. | public interface FileDownloadInterface {
void onFileDownloadSuccess();
void onFileDownloadFailed(Exception ex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r... | [
"0.60484457",
"0.59484166",
"0.57668763",
"0.5730084",
"0.5730084",
"0.5726957",
"0.56599945",
"0.56308204",
"0.5594536",
"0.5570882",
"0.55593157",
"0.5555593",
"0.5545653",
"0.5540953",
"0.55371314",
"0.55267006",
"0.55062073",
"0.55057156",
"0.5501327",
"0.54966515",
"0.54... | 0.0 | -1 |
Create contents of the view part. | @Override
public void createPartControl(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
btnNewButton = new Button(container, SWT.NONE);
btnNewButton.addMouseListener(new MouseAdapter() {
@Override
public void mouseDown(MouseEvent e) {
currentPage = 1;
getRegister(curre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void createContents() {\n\n\t}",
"private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLe... | [
"0.73335195",
"0.6840024",
"0.68376434",
"0.6791247",
"0.6565195",
"0.65635043",
"0.6548234",
"0.64823693",
"0.6479975",
"0.64742506",
"0.64499956",
"0.64439386",
"0.6440782",
"0.64174914",
"0.6348693",
"0.6298088",
"0.62598044",
"0.62359047",
"0.6225611",
"0.6224184",
"0.620... | 0.0 | -1 |
equations of best fit quadratic taken from Excel(!) | @SuppressWarnings("boxing")
private static Function<Double, Double> getLidimAngle(String name) {
switch (name) {
case "sift":
return (x) -> 0.0155 * x * x - 0.1613 * x + 1.7228;
case "decaf":
return (x) -> 0.0467 * x * x - 0.4077 * x + 1.8161;
case "mfAlex":
return (x) -> 0.0235 * x * x - 0.2234 * x +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getBestSolutionEvaluation();",
"public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\... | [
"0.6468381",
"0.64081734",
"0.61720073",
"0.60664195",
"0.5974654",
"0.5724911",
"0.5696165",
"0.5662845",
"0.56615657",
"0.56452274",
"0.56017584",
"0.55965304",
"0.55788714",
"0.5574238",
"0.55522794",
"0.55213976",
"0.55124885",
"0.5511449",
"0.5511262",
"0.54905194",
"0.5... | 0.0 | -1 |
Created by wangshizhan on 16/10/22. | public interface APIConstant {
interface URL{
String BAIDU_WEATHER_URL = "http://api.map.baidu.com/telematics/v3/weather?location=杭州&output=json&ak=FkPhtMBK0HTIQNh7gG4cNUttSTyr0nzo";
String BAIDU_WEATHER_BASE_URL = "http://api.map.baidu.com/";
String AK = "FkPhtMBK0HTIQNh7gG4cNUttSTyr0nzo"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Over... | [
"0.6279571",
"0.62293994",
"0.6134828",
"0.61125314",
"0.60974604",
"0.60438573",
"0.60438573",
"0.59961134",
"0.5993034",
"0.5991026",
"0.59526616",
"0.5931812",
"0.5931812",
"0.5931812",
"0.5931812",
"0.5931812",
"0.59286034",
"0.5903477",
"0.58899397",
"0.5888625",
"0.5864... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected String getVariableClassName() {
return "variable";
} | {
"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 |
conjunto de numeros del 1 al 5 | public static void main(String[] args) throws Exception {
String patronA = "[0-5]";
// conjunto de letras de "a" a "c"
String patronB = "[a-c]";
// conjunto de todas las letras minusculas
String patronC = "[a-z]";
// conjunto de numeros
String patronD = "[0-9]"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }",
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n ... | [
"0.60667914",
"0.6045841",
"0.59643984",
"0.5898287",
"0.5881355",
"0.5880048",
"0.58231276",
"0.5819108",
"0.5807283",
"0.57845086",
"0.5782039",
"0.57741857",
"0.575201",
"0.5708366",
"0.56692225",
"0.56687754",
"0.5662382",
"0.5660058",
"0.56528205",
"0.5638152",
"0.563532... | 0.0 | -1 |
/ basic tout les model on les meme fonction | public String getError() {
return error;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"M getModel();",
"Model getModel();",
"Model getModel();",
"Model getModel();",
"ModelData getModel();",
"public interface ModelJeu {\n \n /**\n * indique le contenu de la case de coordonnees (i,j)\n * @param i le numero de la ligne\n * @param j le numero de la colonne\n * @return le... | [
"0.675341",
"0.6660544",
"0.6660544",
"0.6660544",
"0.66338944",
"0.659313",
"0.65468496",
"0.65394974",
"0.65136373",
"0.6455161",
"0.64064395",
"0.63898313",
"0.63811344",
"0.63727665",
"0.6316364",
"0.62912965",
"0.6272981",
"0.6268767",
"0.626063",
"0.6256278",
"0.6218962... | 0.0 | -1 |
public static final String URL_API = " | public getAllProfileTask(Context c_, View rootView_) {
context = c_;
rootView = rootView_;
CustomListViewValuesArr = new ArrayList<User>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getApiUrl() {\n return API_URL;\n }",
"java.lang.String getApiUrl();",
"public String getApiUrl();",
"private static String composeApiUrl(String string){\r\n\t\treturn API_BASE + API_VERSION + string;\r\n\t}",
"private static String getBaseUrl()\r\n {\r\n return \... | [
"0.75841",
"0.7567844",
"0.7496984",
"0.7481505",
"0.73125136",
"0.72545326",
"0.71676695",
"0.7103784",
"0.70774716",
"0.70022905",
"0.6943831",
"0.69252074",
"0.68600065",
"0.67649984",
"0.66798276",
"0.6651088",
"0.66397166",
"0.6606169",
"0.66035074",
"0.659823",
"0.65862... | 0.0 | -1 |
Envia um email para os destinatarios | public void sendEmail(String[] to, String subject, String body, MailMimeType mailMimeType) throws EmailNotSendedException {
if(emailConfig == null){
throw new EmailNotSendedException("Servidor de email não está configurado");
}
// Validar configuracoes de email
ValidatorFact... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void enviarEmail(String emaildestino, String assunto, String mensagem) {\n\t\ttry {\n\t\t\tif (Fachada.emailDesabilitado)\n\t\t\t\treturn;\n\n\t\t\tString emailorigem = Fachada.emailOrigem;\n\t\t\tString senhaorigem = Fachada.senhaOrigem;\n\n\t\t\t//configurar email de origem\n\t\t\tProperties props ... | [
"0.7184329",
"0.6750815",
"0.65926194",
"0.65615994",
"0.6539971",
"0.644461",
"0.63717955",
"0.6342144",
"0.6268969",
"0.62635154",
"0.6231334",
"0.62299055",
"0.61750203",
"0.6127406",
"0.6101353",
"0.6077512",
"0.60619015",
"0.6045813",
"0.6045008",
"0.60394526",
"0.602690... | 0.6059429 | 17 |
The time needed to teleport the player | @Override
public long getTimeNeeded() {
return timeNeeded;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTime() {\n\t\tif(player == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn player.getPosition();\n\t}",
"private int timeToNextAttack() {\n return ATTACK_SPEED - mAttacker.getSpeed();\n }",
"public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}",
... | [
"0.65793383",
"0.63793665",
"0.6340353",
"0.6311114",
"0.62247014",
"0.61817694",
"0.61793035",
"0.6150203",
"0.612701",
"0.6094698",
"0.60391855",
"0.5995791",
"0.5989427",
"0.5987549",
"0.5986521",
"0.59673834",
"0.5962223",
"0.5959734",
"0.59440595",
"0.5925165",
"0.589893... | 0.583136 | 27 |
Get the location to teleport to | @Override
public Location getLocation() {
if (type == TeleportType.TPA) {
return target.getPlayerReference(Player.class).getLocation();
} else if (type == TeleportType.TPHERE) {
return toTeleport.getPlayerReference(Player.class).getLocation();
}
return null;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Location getPlayerLocation();",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"String getLocation();",
"String getLocation();",
"String getLocation();",
"public Location getLocation() {\n return getLocation(null);\n }",
"public Poi... | [
"0.7429285",
"0.73955077",
"0.73955077",
"0.73955077",
"0.73955077",
"0.70153093",
"0.70153093",
"0.70153093",
"0.68612975",
"0.6837365",
"0.6837183",
"0.67782634",
"0.67779493",
"0.67671686",
"0.6757104",
"0.67454416",
"0.6708208",
"0.6688215",
"0.6687149",
"0.66836846",
"0.... | 0.79384726 | 0 |
Notify the players that the teleport has been cancelled | public void notifyCancel() {
Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class),
targetPlayer = this.getTarget().getPlayerReference(Player.class);
if (senderPlayer == null || targetPlayer == null) {
return;
}
MainData.getIns().getMes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}",
"public void cancel(){\n cancelled = true;\n }",
"public void onCancel();",
"void onCancel();",
"protected abstrac... | [
"0.70969415",
"0.70941",
"0.70090723",
"0.6925097",
"0.6920042",
"0.67824614",
"0.67291653",
"0.6728818",
"0.6728818",
"0.6728818",
"0.6728818",
"0.6728818",
"0.6728818",
"0.6700315",
"0.66822356",
"0.6661136",
"0.6610871",
"0.6610871",
"0.6610871",
"0.6610871",
"0.6610871",
... | 0.8197957 | 0 |
Notify the recipient that he has received a teleport | public void notifyCreation() {
Player targetPlayer = this.getTarget().getPlayerReference(Player.class),
senderPlayer = this.getToTeleport().getPlayerReference(Player.class);
if (targetPlayer == null || senderPlayer == null) {
return;
}
MainData.getIns().getM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n if (pendingTeleports.containsKey(sender.getName())) {\n pendingTeleports.remove(sender.getName(),originalSender);\n if (senderPlayer.dimension != teleportee.dimension) {\n ... | [
"0.6764245",
"0.65163434",
"0.6458922",
"0.64017135",
"0.6108123",
"0.6077894",
"0.597751",
"0.59702384",
"0.59438765",
"0.5925572",
"0.58765626",
"0.5751535",
"0.5730869",
"0.5669569",
"0.56239915",
"0.56180805",
"0.5613574",
"0.55973214",
"0.5590074",
"0.5573517",
"0.554934... | 0.6725898 | 1 |
Check if this teleport request has expired | public boolean hasExpired() {
return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isExpired() {\n return age() > this.timeout;\n }",
"public boolean hasExpired(){\n Date now = new Date();\n return now.after(getExpireTime());\n }",
"boolean hasExpired();",
"boolean isExpired();",
"boolean expired();",
"public boolean checkTimeout(){\n\t\tif((Sy... | [
"0.7298629",
"0.71632266",
"0.7161093",
"0.7066944",
"0.7060938",
"0.70458436",
"0.7043375",
"0.70252556",
"0.70064867",
"0.69570893",
"0.6929022",
"0.6864606",
"0.6864606",
"0.674187",
"0.6706869",
"0.6706126",
"0.6693568",
"0.6652967",
"0.66494495",
"0.66004574",
"0.6599116... | 0.7214568 | 1 |
Fetches the Swing component. Also supplies this object with a background color. | @Override
public Component getComponent() {
Component component = button.getComponent();
component.setBackground(color);
return component;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JComponent getComponent();",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"public abstract JComponent getComponent();",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"public JComponent getComponent() {\n return getGradleUI().get... | [
"0.6923384",
"0.6637307",
"0.6553514",
"0.64374983",
"0.63703865",
"0.6368328",
"0.63224477",
"0.6281499",
"0.62753445",
"0.6253776",
"0.6203851",
"0.60849386",
"0.6060862",
"0.60131645",
"0.5987424",
"0.5831103",
"0.579893",
"0.57371515",
"0.5712596",
"0.56823325",
"0.567441... | 0.73785716 | 0 |
throw new UnsupportedOperationException("Not supported yet."); | public void clientConnected(WonderlandClientSender sender,
WonderlandClientID clientID, Properties properties) {
logger.fine("client connected...");
} | {
"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.76209044",
"0.732105",
"0.72922087",
"0.71886545",
"0.71294034",
"0.71020085",
"0.7070374",
"0.7030918",
"0.7030918",
"0.6992831",
"0.69775355",
"0.6931478",
"0.689979",
"0.6877116",
"0.6877116",
"0.686053",
"0.6859947",
"0.68594235",
"0.68457353",
"0.68457353",
"0.6845735... | 0.0 | -1 |
Creates a new EPPFeeTst object. | public EPPFeeTst(String name) {
super(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.PricePointTiersType createPricePointFullTypePricePointTiersType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.PricePointTiersTypeImpl... | [
"0.5927741",
"0.5879994",
"0.58545",
"0.5667721",
"0.5635784",
"0.55721176",
"0.54847103",
"0.54837984",
"0.53227705",
"0.53005695",
"0.52746564",
"0.5259681",
"0.5216612",
"0.51757425",
"0.5173066",
"0.51717585",
"0.5162285",
"0.515639",
"0.5143223",
"0.5132",
"0.5125062",
... | 0.74111295 | 0 |
Unit test for the extension to the check command and response. | public void testDomainCheck() {
EPPDomainCheckCmd theCommand;
EPPEncodeDecodeStats commandStats;
EPPCodecTst.printStart("testDomainCheck");
// Check three domains
Vector domains = new Vector();
domains.addElement("example.com");
domains.addElement("example.net");
domains.addElement("example.org");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }",
"@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}",
"@Test\n\tpublic void check() {\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Unit Test Begins\");\n\t\t\t// Generate Random Log file\n\... | [
"0.64333636",
"0.6253338",
"0.61520976",
"0.60144424",
"0.5923835",
"0.59095",
"0.59095",
"0.58312654",
"0.58076566",
"0.5802828",
"0.5795668",
"0.57830405",
"0.5733135",
"0.5729495",
"0.5703159",
"0.56923497",
"0.56756306",
"0.565997",
"0.56124073",
"0.560975",
"0.5593158",
... | 0.6153165 | 2 |
Unit test for the extension to the create command and response. | public void testDomainCreate() {
EPPDomainCreateCmd theCommand;
EPPEncodeDecodeStats commandStats;
EPPCodecTst.printStart("testDomainCreate");
// Create Command
theCommand = new EPPDomainCreateCmd("ABC-12345", "example.com",
new EPPAuthInfo("2fooBAR"));
EPPFeeCreate theCreateExt = new EPPFeeCreate(ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }",
"public void shouldCreate() {\n }",
"@Test\n public void testDemotivatorCreateSuccess() throws IOException{\n \tFixtures.deleteAllModels();\n \t... | [
"0.66569614",
"0.6549519",
"0.6526835",
"0.6348653",
"0.6312227",
"0.629299",
"0.6268239",
"0.62224734",
"0.61516815",
"0.6069707",
"0.59718347",
"0.5950589",
"0.59498525",
"0.59394217",
"0.5933413",
"0.5887972",
"0.5882497",
"0.5872452",
"0.5851379",
"0.5830935",
"0.58274496... | 0.6189703 | 8 |
Unit test for the extension to the renew command and response. | public void testDomainRenew() {
EPPCodecTst.printStart("testDomainRenew");
// Create Command
Calendar theCal = Calendar.getInstance();
theCal.setTimeZone(TimeZone.getTimeZone("UTC"));
theCal.set(2000, 4, 03, 0, 0, 0);
theCal.set(Calendar.MILLISECOND, 0);
Date theDate = theCal.getTime();
EPPDomainRene... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void updateDecline() throws Exception {\n }",
"public void requestLicenseRenewal(boolean pExitProgramOnFail)\n{\n\n //create a random number which can be relayed to the technician - the\n //technician must supply a matching answer value\n\n //try random numbers until one above 1000 ... | [
"0.59801626",
"0.5833132",
"0.5623009",
"0.5584607",
"0.5499862",
"0.54862857",
"0.5462894",
"0.5452047",
"0.5448267",
"0.5432442",
"0.5410543",
"0.5345345",
"0.53305703",
"0.5326425",
"0.52743244",
"0.5268364",
"0.5263026",
"0.52578783",
"0.52555466",
"0.5237967",
"0.5227209... | 0.6593943 | 0 |
Unit test for the extension to the update command and response. | public void testDomainUpdate() {
EPPCodecTst.printStart("testDomainUpdate");
// Create Command
EPPDomainAddRemove theChange = new EPPDomainAddRemove();
theChange.setRegistrant("sh8013");
EPPDomainUpdateCmd theCommand = new EPPDomainUpdateCmd("ABC-12345",
"example.com", null, null, theChange);
EPPFeeU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCmdUpdate() {\n\t\ttestCmdUpdate_taskID_field();\n\t\ttestCmdUpdate_taskName_field();\n\t\ttestCmdUpdate_time_field();\n\t\ttestCmdUpdate_priority_field();\n\t}",
"@Test\n public void update() {\n }",
"@Test\r\n public void testUpdate() {\r\n }",
"@Test\n public void testUpdate... | [
"0.7033726",
"0.68667865",
"0.66006356",
"0.64605284",
"0.63431835",
"0.6333014",
"0.6278641",
"0.62524354",
"0.6247963",
"0.6247484",
"0.6238299",
"0.6178375",
"0.6160747",
"0.61287457",
"0.61285704",
"0.6116582",
"0.61097497",
"0.6081537",
"0.6066681",
"0.6019569",
"0.59929... | 0.61820155 | 11 |
Unit test for the extension to the transfer request command and response. | public void testDomainTransfer() {
EPPCodecTst.printStart("testDomainTransfer");
EPPDomainTransferCmd theCommand = new EPPDomainTransferCmd("ABC-12345",
EPPCommand.OP_REQUEST, "example.com",
new EPPAuthInfo("2fooBAR"), new EPPDomainPeriod(1));
EPPFeeTransfer theTransferExt = new EPPFeeTransfer(
new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testGetPostTransferCommand() throws Exception {\n System.out.println(\"getPostTransferCommand\");\n \n String expResult = \"None\";\n String result = instance.getPostTransferCommand();\n assertEquals(expResult, result);\n \n }",
"@Test\n\tpublic void money... | [
"0.67097247",
"0.6200085",
"0.61226314",
"0.60266924",
"0.60069275",
"0.58959806",
"0.58832175",
"0.586673",
"0.58622444",
"0.5839139",
"0.5728645",
"0.56730443",
"0.56655043",
"0.565487",
"0.56357366",
"0.5576404",
"0.55740565",
"0.555738",
"0.5549178",
"0.5549029",
"0.55193... | 0.62483215 | 1 |
Unit test for the extension to the delete response. | public void testDomainDelete() {
EPPCodecTst.printStart("testDomainDelete");
// Create Response
EPPResponse theResponse;
EPPTransId respTransId = new EPPTransId("ABC-12345", "54321-XYZ");
theResponse = new EPPResponse(respTransId);
EPPFeeDelData theRespExt = new EPPFeeDelData("USD", new EPPFeeCredit(
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }",
"public abstract Response delete(Request request, Response response);... | [
"0.7789594",
"0.76098746",
"0.75940865",
"0.7566125",
"0.7532109",
"0.7277919",
"0.724506",
"0.7177871",
"0.7175375",
"0.71524704",
"0.708374",
"0.703148",
"0.7012429",
"0.6920875",
"0.6853547",
"0.6832759",
"0.68249345",
"0.6806977",
"0.6806615",
"0.6806615",
"0.6806615",
... | 0.67448723 | 27 |
JUNIT setUp method, which sets the default client Id to "theRegistrar" and initializes the EPPNamestoreExtMapFactory with the EPPCodec. | protected void setUp() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setUp() {\n try {\n generator = PrefixedIdentifierGenerator.getInstance();\n } catch (NoSuchAlgorithmException e) {\n fail(e.toString());\n }\n }",
"@Override\r\n protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\... | [
"0.65902925",
"0.64822274",
"0.6407881",
"0.6405681",
"0.6368009",
"0.6337052",
"0.6265793",
"0.62432915",
"0.61996305",
"0.61894387",
"0.6172135",
"0.6118771",
"0.61075616",
"0.6095369",
"0.6090246",
"0.6083787",
"0.608233",
"0.6068306",
"0.6060615",
"0.6042498",
"0.602499",... | 0.6220438 | 8 |
JUNIT tearDown, which currently does nothing. | protected void tearDown() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void tearDown() {\n // empty\n }",
"protected void tearDown()\r\n {\r\n /* Add any necessary cleanup code here (e.g., close a socket). */\r\n }",
"protected void tearDown()\n {\n }",
"protected void tearDown()\n {\n }",
"public void tearDown() {\n }",
"prot... | [
"0.8820526",
"0.8810043",
"0.8795851",
"0.8795851",
"0.87941384",
"0.87749505",
"0.87690955",
"0.8728194",
"0.86736226",
"0.86343336",
"0.8610855",
"0.8601984",
"0.8601984",
"0.8597118",
"0.8577082",
"0.8534721",
"0.85328907",
"0.8483686",
"0.846408",
"0.84459066",
"0.8445906... | 0.90145767 | 0 |
JUNIT suite static method, which returns the tests associated with EPPFeeTst. | public static Test suite() {
EPPCodecTst.initEnvironment();
TestSuite suite = new TestSuite(EPPFeeTst.class);
// iterations Property
String numIterProp = System.getProperty("iterations");
if (numIterProp != null) {
numIterations = Integer.parseInt(numIterProp);
}
// Add the EPPNSProductExtFactory t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static junit.framework.Test suite() {\n\t return new junit.framework.JUnit4TestAdapter(PfcTest.class);\n }",
"public static Test suite() {\n\t\treturn new AllTests();\n\t}",
"public static Test suite()\r\n {\r\n return suite(com.redknee.app.crm.TestPackage.createDefaultContext());\r\n }",... | [
"0.7431735",
"0.742565",
"0.7278352",
"0.726832",
"0.7182531",
"0.71598965",
"0.70983356",
"0.70122826",
"0.7001384",
"0.6969221",
"0.6930149",
"0.69216216",
"0.69046515",
"0.6855555",
"0.6806076",
"0.6790029",
"0.67862743",
"0.6768706",
"0.6763986",
"0.6749429",
"0.6748339",... | 0.8393047 | 0 |
Unit test main, which accepts the following system property options: iterations Number of unit test iterations to run validate Turn XML validation on (true) or off ( false). If validate is not specified, validation will be off. | public static void main(String[] args) {
// Number of Threads
int numThreads = 1;
String threadsStr = System.getProperty("threads");
if (threadsStr != null) {
numThreads = Integer.parseInt(threadsStr);
}
// Run test suite in multiple threads?
if (numThreads > 1) {
// Spawn each thread passing in t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tTestListener listener=new TestListener();\r\n\t\tXmlSuite suite=new XmlSuite();\r\n\t\tsuite.setName(\"Test Results\");\r\n\t\tsuite.setParallel(ParallelMode.METHODS);\r\n\t\tsuite.setThreadCount(Integer.parseInt(TestProperties.THREAD_COUNT.toString()));\r\n\t\tList<Xm... | [
"0.6756423",
"0.6686263",
"0.65390515",
"0.6328607",
"0.6099644",
"0.6017537",
"0.6000003",
"0.59294325",
"0.5927758",
"0.59156615",
"0.5914891",
"0.5903264",
"0.58532",
"0.5843824",
"0.5828576",
"0.58199316",
"0.5815197",
"0.5766397",
"0.57624656",
"0.57558453",
"0.57502943"... | 0.5550939 | 42 |
Sets the number of iterations to run per test. | public static void setNumIterations(long aNumIterations) {
numIterations = aNumIterations;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}",
"public void setIterations(int iterations) {\r\n\t\tthis.iterations = iterations;\r\n\t}",
"public void setIterations(int iterations) {\n\t\tthis.m_iterations = iterations;\n\t}",
"public void setNumTests(int i){\n if (i <= 0){\n ... | [
"0.79665947",
"0.76534885",
"0.7320081",
"0.7161475",
"0.69401884",
"0.69032073",
"0.6886845",
"0.6715848",
"0.6654028",
"0.6539268",
"0.6519837",
"0.6509794",
"0.64623886",
"0.64416814",
"0.6245486",
"0.6237083",
"0.62320954",
"0.6178401",
"0.61645967",
"0.6159463",
"0.61091... | 0.7086493 | 4 |
Creates a MapSchema that is a subschema. | public MapSchema(
Schema parentSchema,
String name,
Expression expression) {
this(
parentSchema,
parentSchema.getQueryProvider(),
parentSchema.getTypeFactory(),
name,
expression);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static MapSchema create(\n MutableSchema parentSchema,\n String name) {\n MapSchema schema =\n new MapSchema(\n parentSchema,\n name,\n parentSchema.getSubSchemaExpression(name, Object.class));\n parentSchema.addSchema(name, schema);\n return schema... | [
"0.7717234",
"0.57176065",
"0.557655",
"0.55608135",
"0.5541722",
"0.5361982",
"0.5297049",
"0.52474636",
"0.5213642",
"0.5183086",
"0.5107818",
"0.5046863",
"0.48606426",
"0.48530078",
"0.48334348",
"0.47974265",
"0.47829044",
"0.4781223",
"0.47794214",
"0.47776246",
"0.4774... | 0.6304215 | 1 |
Creates a MapSchema within another schema. | public static MapSchema create(
MutableSchema parentSchema,
String name) {
MapSchema schema =
new MapSchema(
parentSchema,
name,
parentSchema.getSubSchemaExpression(name, Object.class));
parentSchema.addSchema(name, schema);
return schema;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MapSchema(\n Schema parentSchema,\n String name,\n Expression expression) {\n this(\n parentSchema,\n parentSchema.getQueryProvider(),\n parentSchema.getTypeFactory(),\n name,\n expression);\n }",
"public Builder localSchemaMap(final Map<String, BsonDo... | [
"0.64232385",
"0.6251483",
"0.58752733",
"0.58700746",
"0.5837492",
"0.5621647",
"0.56216174",
"0.559332",
"0.55782354",
"0.55575883",
"0.54036176",
"0.52741265",
"0.5170673",
"0.5138532",
"0.511967",
"0.5095396",
"0.50846106",
"0.50705326",
"0.5020029",
"0.5001479",
"0.49861... | 0.76065046 | 0 |
Called by Optiq after creation, before loading tables explicitly defined in a JSON model. | public void initialize() {
for (TableInSchema tableInSchema : initialTables()) {
addTable(tableInSchema);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void configureTables();",
"protected abstract void initialiseTable();",
"private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }",
"public void initTable();",
"protected abstract void init... | [
"0.65808135",
"0.65528697",
"0.6533772",
"0.6322555",
"0.6207919",
"0.6185295",
"0.60704315",
"0.60260564",
"0.59899026",
"0.59692466",
"0.59679514",
"0.59466636",
"0.5910989",
"0.58896536",
"0.5884301",
"0.5874145",
"0.5820588",
"0.5789334",
"0.5719614",
"0.571818",
"0.56736... | 0.6530954 | 3 |
TODO: check elementType matches table.elementType | public <E> Table<E> getTable(String name, Class<E> elementType) {
assert elementType != null;
// First look for a table.
TableInSchema table = tableMap.get(name);
if (table != null) {
return table.getTable(elementType);
}
// Then look for a table-function with no arguments.
Collection... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isTable(ElementType elementType)\n {\n\n return (!elementType.children.isEmpty() ||\n !elementType.attributes.isEmpty());\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"TableType getTableType()\n {\n return tableType;\n }",
... | [
"0.72774875",
"0.6356732",
"0.6089991",
"0.60085034",
"0.5961774",
"0.5884993",
"0.5848366",
"0.58469987",
"0.5770383",
"0.5726025",
"0.55749655",
"0.5565291",
"0.5549384",
"0.55254626",
"0.5518563",
"0.55030197",
"0.5491122",
"0.5465322",
"0.5463782",
"0.5448081",
"0.544283"... | 0.53482395 | 28 |
Returns the initial set of tables. The default implementation returns an empty list. Derived classes may override this method to create tables based on their schema type. For example, a CSV provider might scan for all ".csv" files in a particular directory and return a table for each. | protected Collection<TableInSchema> initialTables() {
return Collections.emptyList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Table> getTables() {\n List<Table> tables = new ArrayList<>();\n\n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n Query query = new Query(\"Table\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n ... | [
"0.73028904",
"0.70951116",
"0.7059913",
"0.704048",
"0.69924456",
"0.6989556",
"0.6905842",
"0.6782781",
"0.6674579",
"0.66532683",
"0.6647394",
"0.6586291",
"0.64772284",
"0.64724994",
"0.64417523",
"0.64171445",
"0.64096117",
"0.6408953",
"0.6386593",
"0.6324449",
"0.63029... | 0.7857526 | 0 |
Methods: Getter method for the COM property "Application" | @DISPID(148)
@PropGet
com.exceljava.com4j.excel._Application getApplication(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(12)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getApplication();",
"@DISPID(148)\n @PropGet\n excel._Application getApplication();",
"public String getApplication() {\r\n\t\treturn application;\r\n\t}",
"public String getApplication() {\r\n return application;\r\n }"... | [
"0.8436414",
"0.7911141",
"0.78544605",
"0.78495836",
"0.778835",
"0.7618604",
"0.75866824",
"0.7549122",
"0.7549122",
"0.7549122",
"0.7549122",
"0.75064427",
"0.7501411",
"0.74937034",
"0.74443465",
"0.7432374",
"0.72774047",
"0.72774047",
"0.7196444",
"0.7090742",
"0.708674... | 0.7875809 | 2 |
Getter method for the COM property "Creator" | @DISPID(149)
@PropGet
com.exceljava.com4j.excel.XlCreator getCreator(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCreator() {\n return getProperty(Property.CREATOR);\n }",
"public String getCreator()\n\t{\n\t\treturn null;\n\t}",
"public String getCreator() {\r\n return creator;\r\n }",
"public String getCreator() {\r\n return creator;\r\n }",
"public String getCreator() {\n ... | [
"0.8177976",
"0.78842163",
"0.7722417",
"0.7722417",
"0.7698064",
"0.76860243",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.7578769",
"0.73777324",
"0.7289319",
"0.71844274",
"0.7124729",
"0.... | 0.74208593 | 16 |
Getter method for the COM property "Parent" | @DISPID(150)
@PropGet
com4j.Com4jObject getParent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.... | [
"0.81647867",
"0.8093195",
"0.8093195",
"0.8093195",
"0.8093195",
"0.7820495",
"0.77545613",
"0.7717162",
"0.76970285",
"0.76970285",
"0.76970285",
"0.7685946",
"0.7662928",
"0.76436096",
"0.76198393",
"0.7584784",
"0.75643355",
"0.75643355",
"0.75573677",
"0.75491166",
"0.75... | 0.81635064 | 2 |
This method uses predefined default values for the following parameters: com.exceljava.com4j.excel.XlQuickAnalysisMode parameter xlQuickAnalysisMode is set to 0 Therefore, using this method is equivalent to show(0); | @DISPID(496)
@UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {"0"})
void show(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(813)\n @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"0\"})\n void hide();",
"public static void show() {\n\n\t}",
"public static void sh... | [
"0.8152515",
"0.6257752",
"0.6205378",
"0.61646307",
"0.61607295",
"0.607127",
"0.60227317",
"0.5970693",
"0.5970693",
"0.5970693",
"0.5959112",
"0.59399045",
"0.59399045",
"0.59399045",
"0.59399045",
"0.59399045",
"0.59399045",
"0.59399045",
"0.59399045",
"0.5937438",
"0.593... | 0.87630284 | 0 |
This method uses predefined default values for the following parameters: com.exceljava.com4j.excel.XlQuickAnalysisMode parameter xlQuickAnalysisMode is set to 0 Therefore, using this method is equivalent to hide(0); | @DISPID(813)
@UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {"0"})
void hide(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(496)\n @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"0\"})\n void show();",
"private void hideComputation() {\r\n\t\tshiftLeftSc.hide();\r... | [
"0.745068",
"0.67512083",
"0.67292124",
"0.6585478",
"0.65210116",
"0.65129703",
"0.64719164",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
"0.64671725",
... | 0.8954172 | 0 |
/ renamed from: a | public final void mo118712a() {
f97549f = System.currentTimeMillis();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final void mo118718a(boolean z) {
f97545b = z;
if (f97545b) {
f97546c.clear();
return;
}
Iterator<T> it = f97546c.iterator();
while (it.hasNext()) {
f97544a.mo118713a((EventMessage) it.next());
}
f97546c.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: d | private final void m134908d(String str) {
if (!TextUtils.isEmpty(str)) {
String str2 = C6969H.m41409d("G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F") + str + '/';
VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d("G6887D15AAA23AE3BA61A9F58FBE6838D2998C8"), str2);
MQTTClient ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
/ renamed from: e | private final void m134909e(String str) {
if (!TextUtils.isEmpty(str)) {
String str2 = C6969H.m41409d("G738BDC12AA7FAF3BE7039107E4B48CC36186D40EBA22E4") + str + '/';
VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d("G6887D15ABC3FA624E900D05CFDF5CAD429D99501A2"), str2);
MQTTC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@Override\n\t\t\t\... | [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.586... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.