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 |
|---|---|---|---|---|---|---|
Getter for property validatorMessage. | public String getValidatorMessage() {
return this.validatorMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getValidatorProperty() {\n return _validatorProperty;\n }",
"@JSProperty\n String getValidationMessage();",
"public String getMessage() {\n\t\treturn mErrorMessageString;\n\t}",
"public String getErrorMessage() {\n\t\treturn this.message;\n\t}",
"@Accessor(qualifier = \"message\", type... | [
"0.7378946",
"0.69835055",
"0.6960597",
"0.67948216",
"0.67277884",
"0.67245835",
"0.66869044",
"0.66766965",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.6664859",
"0.6664859",
"0.6664859",
"0.6644588",
"0.6643205",
"0.... | 0.8517767 | 0 |
Getter for property converterMessage. | public String getConverterMessage() {
return this.converterMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected MessageConverter getMessageConverter() {\n\t\treturn this.messageConverter;\n\t}",
"private MessageConverter getMessageConverter() throws SClientException {\n if (messageConverter == null) {\n messageConverter = getDefaultMessageConverter();\n }\n return messageConverter... | [
"0.7965747",
"0.7177597",
"0.71773326",
"0.6848559",
"0.6692126",
"0.6594675",
"0.6594675",
"0.6387219",
"0.62800115",
"0.62386215",
"0.6199076",
"0.61905074",
"0.61765075",
"0.6165992",
"0.6115586",
"0.60710055",
"0.60384095",
"0.60258883",
"0.59765995",
"0.5964707",
"0.5952... | 0.86474264 | 0 |
Getter for property postConstructCalled. | public boolean isPostConstructCalled() {
return this.postConstructCalled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPostConstructCalled(boolean postConstructCalled) {\n \n this.postConstructCalled = postConstructCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" postConstructCalled: \" + postConstructCalled);\n \n }",
"@PostConstruct\n public... | [
"0.74572045",
"0.6835979",
"0.6334139",
"0.616746",
"0.60948795",
"0.6063328",
"0.59573025",
"0.59051687",
"0.5868422",
"0.58478427",
"0.5771814",
"0.5754617",
"0.5702039",
"0.5702039",
"0.5683904",
"0.56525904",
"0.5549876",
"0.55327225",
"0.5487955",
"0.5478842",
"0.5436677... | 0.7554015 | 0 |
Setter for property postConstructCalled. | public void setPostConstructCalled(boolean postConstructCalled) {
this.postConstructCalled = postConstructCalled;
appendStatusMessage("bean: " + getStringProperty() +
" postConstructCalled: " + postConstructCalled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPostConstructCalled() {\n \n return this.postConstructCalled;\n }",
"@PostConstruct\n public void postConstructFn (){\n LOOGER.info(\" ==== post constructor of the bean ====> {}:\");\n }",
"public void afterInit(){\n System.out.println(\"## afterInit() - After I... | [
"0.7110909",
"0.6984225",
"0.64841026",
"0.64768577",
"0.64115953",
"0.63204163",
"0.6308292",
"0.6265826",
"0.624908",
"0.6118199",
"0.6069903",
"0.59653413",
"0.59653413",
"0.59269404",
"0.5726265",
"0.5720599",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218... | 0.7924892 | 0 |
Getter for property preDestroyCalled. | public boolean isPreDestroyCalled() {
return this.preDestroyCalled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPreDestroyCalled(boolean preDestroyCalled) {\n this.preDestroyCalled = preDestroyCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" preDestroyCalled: \" + preDestroyCalled);\n }",
"@PreDestroy\n void destroy() {\n firedPreDestr... | [
"0.7930019",
"0.6873936",
"0.6392981",
"0.5986675",
"0.58675987",
"0.57389396",
"0.5731099",
"0.5696944",
"0.5670848",
"0.56679785",
"0.55991685",
"0.54753447",
"0.5465943",
"0.5461508",
"0.54530674",
"0.5435605",
"0.5418129",
"0.53912383",
"0.5360604",
"0.53203696",
"0.53203... | 0.8548733 | 0 |
Setter for property preDestroyCalled. | public void setPreDestroyCalled(boolean preDestroyCalled) {
this.preDestroyCalled = preDestroyCalled;
appendStatusMessage("bean: " + getStringProperty() +
" preDestroyCalled: " + preDestroyCalled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPreDestroyCalled() {\n \n return this.preDestroyCalled;\n }",
"@PreDestroy\n void destroy() {\n firedPreDestroy = true;\n }",
"@PreRemove\r\n public void preRemove(){\r\n this.isDeleted=true;\r\n }",
"@PreDestroy\r\n\tpublic void doMyStuff() {\r\n\t\tSystem.out.... | [
"0.8004619",
"0.69994664",
"0.59196347",
"0.56520087",
"0.56296086",
"0.5577732",
"0.545939",
"0.5450239",
"0.54489446",
"0.5358168",
"0.53448623",
"0.5299165",
"0.52323765",
"0.5182489",
"0.51806736",
"0.51550037",
"0.51546866",
"0.51274997",
"0.511753",
"0.5111468",
"0.5082... | 0.8268687 | 0 |
Getter for property suit. | public Suit getSuit() {
return this.suit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSuit(){\n return suit;\n }",
"public String getSuit()\r\n { return suit; }",
"public int getSuit()\n {\n return suit;\n }",
"public String getSuit(){ return this.suit; }",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit() {\r\n retu... | [
"0.6943151",
"0.6875344",
"0.68388206",
"0.6802488",
"0.6798425",
"0.6794302",
"0.67650145",
"0.6744268",
"0.6743938",
"0.6737367",
"0.6737367",
"0.672839",
"0.6662097",
"0.66540194",
"0.6645123",
"0.6617788",
"0.65923715",
"0.65425974",
"0.65055674",
"0.6489754",
"0.6489754"... | 0.65855265 | 17 |
Setter for property suit. | public void setSuit(Suit suit) {
this.suit = suit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public void setSuit(Suit suit) {\r\n\t\tthis.suit = suit;\r\n\t}",
"public void setSuit(String suit) {\n\t\tthis.suit = suit;\n\t}",
"public void setSuit(String value) {\n suit = value;\n }",
"public void setCardSu... | [
"0.7712339",
"0.7550089",
"0.74029434",
"0.72589475",
"0.7127285",
"0.68314415",
"0.6769434",
"0.6712902",
"0.66126734",
"0.6554836",
"0.65321004",
"0.64773124",
"0.6470967",
"0.64613664",
"0.6447828",
"0.64460576",
"0.64223117",
"0.64210176",
"0.6394631",
"0.63943404",
"0.63... | 0.7871992 | 0 |
Getter for property referencedSuit. | public Suit getReferencedSuit() {
return this.referencedSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReferencedSuit(Suit referencedSuit) {\n this.referencedSuit = referencedSuit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public Suit get... | [
"0.72546583",
"0.6569212",
"0.65632004",
"0.6473931",
"0.6440275",
"0.64159447",
"0.6381406",
"0.634355",
"0.6331734",
"0.6262362",
"0.62604314",
"0.61651915",
"0.61546576",
"0.610352",
"0.6103182",
"0.61024714",
"0.610126",
"0.60901934",
"0.60882324",
"0.6086858",
"0.6084523... | 0.836467 | 0 |
Setter for property referencedSuit. | public void setReferencedSuit(Suit referencedSuit) {
this.referencedSuit = referencedSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Suit getReferencedSuit() {\n return this.referencedSuit;\n }",
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"public void setSuit (int aSuit)\n {\n this.suits = aSuit;\n }",
"public void setSuit(Suit suit) {\r\n\t\tthis.suit = suit;\r\n\t}",
"public voi... | [
"0.7139115",
"0.646985",
"0.63247633",
"0.6256635",
"0.59503216",
"0.58444095",
"0.5687174",
"0.55338144",
"0.552697",
"0.5506769",
"0.5480044",
"0.5438078",
"0.5400477",
"0.53745013",
"0.5364623",
"0.53030336",
"0.5242065",
"0.5237551",
"0.52194995",
"0.5214364",
"0.51874846... | 0.8678245 | 0 |
Getter for property color. | public Color getColor() {
return this.color;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Color getColor() { return color.get(); }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getCol... | [
"0.822815",
"0.80778414",
"0.8062474",
"0.8056103",
"0.8054539",
"0.8054539",
"0.8054539",
"0.8045425",
"0.8045425",
"0.804348",
"0.8028478",
"0.8024997",
"0.8024997",
"0.8024997",
"0.8024997",
"0.8024997",
"0.8024997",
"0.80156004",
"0.80156004",
"0.80156004",
"0.80072933",
... | 0.7928413 | 30 |
Setter for property color. | public void setColor(Color color) {
this.color = color;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setColor(Color c) { color.set(c); }",
"public void setColor(Color color) {\n this.color = color;\r\n }",
"public void setColor(Color c) {\n color = c;\n }",
"public void setColor(Color color) {\n this.color = color;\n }",
"@Override\n public void setColor(Color ... | [
"0.81891274",
"0.8145846",
"0.808063",
"0.8064828",
"0.8046191",
"0.8034251",
"0.7961491",
"0.79576916",
"0.79475355",
"0.7935849",
"0.7901912",
"0.78990513",
"0.7899026",
"0.7895754",
"0.7888137",
"0.7888137",
"0.7856121",
"0.77983606",
"0.77916527",
"0.7780874",
"0.77729917... | 0.8105209 | 2 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int num = scanner.nextInt();
int i;
int result = 1;
for (i = 1; i <= num; i++) {
result = result * i;
if (i == num) {
System.out.println(result);
}
}
} | {
"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 |
Based on the discount type of the item this method return the discount service. | public DiscountService getDiscountServive(DiscountType discountType) {
switch (discountType) {
case ONE4ONE:
return one4OneDiscount;
case PROMOTIONAL:
return promotionalPriceDiscount;
case NONE:
default:
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<Discount> findById(Long id) throws ServiceException;",
"public Descuento getDiscount() {\n\t\tDescuento discount = null;\n\t\tCalendar c = Calendar.getInstance();\n\t\tint month = c.get(Calendar.MONTH);\n\t\tif (month == Calendar.APRIL)\n\t\t\tdiscount = new D2();\n\t\telse {\n\t\t\tint total = 0;\n\t\t... | [
"0.6061767",
"0.59180313",
"0.5864443",
"0.58564425",
"0.5831079",
"0.58284914",
"0.5790105",
"0.57430005",
"0.57324404",
"0.5714829",
"0.5714682",
"0.56774247",
"0.5663643",
"0.56550574",
"0.5611073",
"0.56036824",
"0.5598803",
"0.5561213",
"0.55450016",
"0.5533614",
"0.5497... | 0.7729285 | 0 |
private final FileSystem fs; | public CsvToVector(String csvPath)
{
this.csvPath = csvPath;
//this.fs = fs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected FileSystem getFileSystem() {\n return _fileSystem;\n }",
"public FileSystem getFileSystem() {\n return fs;\n }",
"protected FileSystem() {\n\t}",
"private FileManager() {}",
"private FSUtils() {\n }",
"public interface BlockFileSystem {\n\n \n /**\n * The size of a bloc... | [
"0.7879463",
"0.7734554",
"0.7231711",
"0.6771599",
"0.6658937",
"0.66517764",
"0.6618137",
"0.6583356",
"0.6547217",
"0.65246123",
"0.6523878",
"0.6438949",
"0.63973534",
"0.63892484",
"0.6377352",
"0.6372007",
"0.6364874",
"0.6343565",
"0.6342002",
"0.6300072",
"0.6244418",... | 0.0 | -1 |
create a dummy node. dummy node has to be a value which is not in LinkedList | private static ListNode removeElements(ListNode head, int val) {
ListNode dummy = new ListNode(0);
dummy.next = head;
ListNode curr = dummy;
// Iterate till current.next is null. Keep checking next with value
while (curr.next != null) {
// next element is a match so skip pointing to next element.
if (curr.next.value == val) {
curr.next = curr.next.next;
} else {
curr = curr.next; // else keep moving ahead.
}
}
return dummy.next;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }",
"@Test\r\n public void test_nonEmptyList_newNodePointsToNull()\r\n {\r\n System.out.println(\"> Test5 - test_nonEmptyList_newNodePointsToNull(): new node should point to null\");\r\n int obj = 7;\r\n S... | [
"0.7305463",
"0.6805352",
"0.6778334",
"0.6656765",
"0.66318464",
"0.66246814",
"0.6606725",
"0.6553728",
"0.6534723",
"0.64992553",
"0.6473647",
"0.64441156",
"0.6439323",
"0.64123464",
"0.6360331",
"0.63599765",
"0.6353638",
"0.6321078",
"0.631152",
"0.6290188",
"0.626834",... | 0.0 | -1 |
Constructor for objects of class ArrayListNotes | public ArrayListNotes()
{
// initialise instance variables
//x = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Notes() {}",
"public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Notes() {\n initComponents();\n subjectText = new String ();\n noteText = new String();\n count = 0;\n ArrayMath = new Array[100];\n \n \n }",
"... | [
"0.74227977",
"0.73599356",
"0.67995584",
"0.6681051",
"0.66750115",
"0.6624911",
"0.6556553",
"0.64262176",
"0.63819224",
"0.635654",
"0.6348929",
"0.63440263",
"0.62559474",
"0.61862457",
"0.6167064",
"0.61516654",
"0.6149206",
"0.61313224",
"0.6067664",
"0.60570765",
"0.60... | 0.7734024 | 0 |
/ The ArrayList class is Java Generic. We khave to specify the type of elements in the list int angle brackets after every ArrayList identifier Primitives (double, int, char) are not classes and cannot be specified as the type of the elements in a Generic. We use th Wrapper Class(Double, Integer) ArrayList myList; held a list of Objects cannot use primitive ArrayList myList; | public static void main(String[] args)
{
ArrayList<Integer> myList;
myList = randomIntegerList(10,20);
System.out.println(myList);
System.out.println("The sum is: " + sumList(myList));
removeEvens(myList);
System.out.println(myList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n int[] myIntArray = new int[10]; // int array\n String[] myStringArray = new String[10]; // String array\n\n ArrayList<String> myStringArrayList = new ArrayList<String>(); // String ArrayList\n myStringArrayList.add(\"Peti\");\nclass IntClass {/... | [
"0.7092965",
"0.6787715",
"0.66870147",
"0.65927887",
"0.65765595",
"0.65681",
"0.6532898",
"0.6485719",
"0.6471054",
"0.6452537",
"0.6444074",
"0.6419967",
"0.63622516",
"0.6257102",
"0.62533927",
"0.6239667",
"0.6211282",
"0.6175785",
"0.61691475",
"0.61614656",
"0.61149454... | 0.0 | -1 |
Creates and returns a reference to any ArrayList of specified number of Integers where each element is assigned a random value | public static ArrayList<Integer> randomIntegerList(int size, int range)
{
ArrayList<Integer> list = new ArrayList<Integer>();
//int size = list.size();
/*
* The add method adds the specified object to the end of the list
*
* Autoboxing:
* Primitve values are automatically converted to the
* wrapper class. However, the type promotion
* does not occur.
*/
for (int i = 0; i<size; i++)
{
int value = (int)(Math.random() * range) +1;
list.add(value);
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Integer> prepareRandomIntegeArrayList(int size) {\n\t\tList<Integer> arrayList = new ArrayList<>(size);\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarrayList.add(j, (int) ((Math.random() * 1000000)));\n\t\t}\n\t\treturn arrayList;\n\t}",
"@BeforeEach\n public void createList() {\n myListO... | [
"0.7182159",
"0.694269",
"0.68865925",
"0.68092597",
"0.67386",
"0.67078364",
"0.6700746",
"0.66494834",
"0.65815264",
"0.65476185",
"0.65201133",
"0.6518697",
"0.6453991",
"0.6424878",
"0.64152825",
"0.6371411",
"0.63561356",
"0.6352909",
"0.63465047",
"0.6325425",
"0.632451... | 0.6608506 | 8 |
/ Enhanced for loops support iterating through ArrayList Like arrays, you cannot modify the list itself in the context of the enhanced for loop generates ConcurrentModificationException | public static int sumList(ArrayList<Integer> list)
{
int sum = 0;
for (int value: list)
{
sum+=value;
//list.add(7);
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\nArrayList<String> al = new ArrayList<String>();\r\nal.add(\"h\");\r\nal.add(\"hello\");//\r\nal.add( \"hai\");//adding element in particular index.\r\nal.add(\"h\");\r\nal.add(null);\r\nal.add(null);\r\nal.add(\"simple\");\r\nSystem.out.println(al.size());\r\n//how to iter... | [
"0.5845332",
"0.58310455",
"0.57516724",
"0.5743823",
"0.5665577",
"0.56218493",
"0.561909",
"0.5592154",
"0.55819076",
"0.55543387",
"0.550911",
"0.55087143",
"0.5465851",
"0.5463281",
"0.5434075",
"0.5431662",
"0.54244953",
"0.54224074",
"0.5402778",
"0.5377679",
"0.5336492... | 0.0 | -1 |
Revoves even number form the spcified list | public static void removeEvens(ArrayList<Integer> list)
{
/*
* size method returns the number of elements in the list
*/
//int size = list.size();//valid way to ge the size
for(int i = 0; i < list.size(); )
{
/*
* get method return the value of the elemtne at the index
* list get smaller, elements are "shifted left"
*/
int value = list.get(i);
if( value %2 == 0)
{
/*
* remove method deletes the element at the specified index
*/
list.remove(i);
//i--;// if remove move index back one to compensate
}
else//only increase i if you don't remove
{
i++;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Integer> oddValues(ArrayList<Integer> initialList){\n\t\tfor (Iterator<Integer> i = initialList.iterator(); i.hasNext();) {\n\t\t\tif(i.next()%2 == 0) {\n\t\t\t\ti.remove();\n\t\t\t}\n\t\t}\n\t\treturn initialList;\n\t}",
"static List<Integer> oddNumbers(int l, int r) {\n List<Inte... | [
"0.6147373",
"0.614264",
"0.60504436",
"0.5951018",
"0.59277135",
"0.5911384",
"0.5864371",
"0.5829733",
"0.5801003",
"0.5787535",
"0.5777111",
"0.57669395",
"0.5748317",
"0.5710938",
"0.5709241",
"0.5668951",
"0.5652254",
"0.56457293",
"0.5644926",
"0.5640812",
"0.5620746",
... | 0.61420137 | 2 |
Don't use this method in other classes, use isInternetConnected method instead | public static boolean isNetworkAvailable(Context context) {
ConnectivityManager connectivityManager
= (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
return (activeNetworkInfo != null && activeNetworkInfo.isConnected());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isConnectedToInternet(){\n ConnectivityManager connectivityManager = (ConnectivityManager) main.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n ... | [
"0.84416825",
"0.8389553",
"0.8312919",
"0.8281164",
"0.82481366",
"0.8213693",
"0.81777126",
"0.81587344",
"0.813655",
"0.8108714",
"0.809841",
"0.809841",
"0.80699533",
"0.80689603",
"0.8054715",
"0.80075175",
"0.8003666",
"0.7923748",
"0.7856639",
"0.7847247",
"0.7829304",... | 0.0 | -1 |
Gets a message from messages.properties | public static String getMessage(String messageKey, Object... args) {
if (messageSource == null)
return "ApplicationContext unavailable, probably unit test going on";
// http://stackoverflow.com/questions/10792551/how-to-obtain-a-current-user-locale-from-spring-without-passing-it-as-a-paramete
return messageSource.getMessage(messageKey, args,
LocaleContextHolder.getLocale());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMessage(String key) {\n return messages.getProperty(key);\n }",
"public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }",
"@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage()\n\t{\n\t\treturn getMes... | [
"0.7492096",
"0.7308702",
"0.690743",
"0.68941957",
"0.68695235",
"0.68331033",
"0.68228203",
"0.67933106",
"0.67764765",
"0.67640543",
"0.67576844",
"0.67529947",
"0.6751899",
"0.6743852",
"0.674084",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.672817... | 0.0 | -1 |
Supplys a 404 exception | public static Supplier<MultiErrorException> notFoundSupplier() {
return () -> NOT_FOUND_EXCEPTION;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"notfound\")\n public void notFound()\n {\n throw new NotFoundException(\"404\", \"404 Not Found - NotFoundException\");\n }",
"public NotFoundException() {\r\n super(Responses.notFound().build());\r\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n public Ba... | [
"0.77571446",
"0.7334539",
"0.6904377",
"0.6869975",
"0.68605226",
"0.68468696",
"0.678571",
"0.67728484",
"0.676463",
"0.67622024",
"0.671573",
"0.6714027",
"0.6705148",
"0.66974956",
"0.66840804",
"0.66606116",
"0.6651732",
"0.6600813",
"0.65792805",
"0.65735596",
"0.656098... | 0.0 | -1 |
Whether or not standards mode is enabled. disabled by default. | public void setStandardsMode(boolean standardsMode) {
this.standardsMode = standardsMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isStrictMode() {\n return strictMode;\n }",
"public boolean isEnhancedMode() {\r\n\t\treturn enhanced;\r\n\t}",
"public Boolean getStandard() {\n\t return isStandard();\n }",
"public abstract boolean isStandard();",
"void setBasicMode() {basicMode = true;}",
"public boolean i... | [
"0.645402",
"0.6188495",
"0.61725694",
"0.60735023",
"0.6055232",
"0.5917027",
"0.5897311",
"0.5886385",
"0.5885986",
"0.585372",
"0.5840105",
"0.5788925",
"0.57636607",
"0.574968",
"0.5731893",
"0.56437254",
"0.5643083",
"0.56338215",
"0.56266713",
"0.54941934",
"0.5416931",... | 0.76120317 | 0 |
Whether or not HTML entities are escaped by default. default is true. | public void setEscapeHTML(boolean escapeHTML) {
this.escapeHTML = escapeHTML;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String handleEntities(String content, boolean attribute)\n\t{\n\t\tString text;\n\t\t\n\t\tif (keepEntities(attribute))\n\t\t\ttext = EscHandler.theInstance.escape(content);\n\t\telse\n\t\t\ttext = content;\n\t\t\n\t\treturn text;\n\t}",
"public static String escapeHTML(String s, boolean escapeAmpersand) ... | [
"0.666262",
"0.6620347",
"0.63011223",
"0.61940694",
"0.6179832",
"0.6179832",
"0.61043435",
"0.609245",
"0.6068179",
"0.60581756",
"0.6048851",
"0.6010026",
"0.5986066",
"0.5986066",
"0.5933141",
"0.5920402",
"0.59164995",
"0.5900321",
"0.58984965",
"0.5881023",
"0.5856092",... | 0.7560671 | 0 |
You can inject your own custom configured compiler. If you don't inject one then a default one will be created for you instead using the standardsMode, escapeHTML, and templateLoader values you've injected. | public void setCompiler(Mustache.Compiler compiler) {
this.compiler = compiler;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCompiler();",
"private void registerEcolawCompiler(final BundleContext context) {\n\t\telCompilerServiceReg = context.registerService(EcolawCompiler.class,\n\t\t\t\tnew EcolawCompilerImpl(), declareCompilersProps());\n\n\t\tlog(\"Eco-law Compiler REGISTERED.\");\n\t}",
"public interface XpComp... | [
"0.64737284",
"0.60189563",
"0.5846783",
"0.54848236",
"0.54745835",
"0.541707",
"0.5409298",
"0.5402685",
"0.5380581",
"0.5349247",
"0.52826804",
"0.5261418",
"0.5172609",
"0.51439136",
"0.5140784",
"0.50747967",
"0.50747967",
"0.5049587",
"0.5000026",
"0.49975953",
"0.49787... | 0.58618647 | 2 |
Gun interface: sets the stage for gun general behavior. | public interface Gun {
/**
* defines guns behavior when asked to shoot.
*/
void shoot();
/**
* refills ammo, setting them back to the max capacity.
*/
void reload();
/**
* @return shot damage value.
*/
int getDamage();
/**
*
* @return shot speed value.
*/
double getShotspeed();
/**
*
* @return current ammunition number
*/
int getNAmmo();
/**
*
* @param nAmmo sets current ammunition number
*/
void setNAmmo(int nAmmo);
/**
*
* @return max ammunition capacity
*/
int getMaxAmmo();
/**
*
* @param otherGun
* @return whether this gun is of the same type as otherGun, comparing main fields
*/
boolean isSameTypeAs(Gun otherGun);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}",
"public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}",
"public void setStage(Stage stage) {\n\t\tthis.stage = stage;\n\t}",
"public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n ... | [
"0.6822094",
"0.6766567",
"0.6398147",
"0.63615227",
"0.6349473",
"0.6331574",
"0.6331574",
"0.61246395",
"0.606514",
"0.60290456",
"0.6019071",
"0.59912175",
"0.5943482",
"0.58615303",
"0.5710733",
"0.565708",
"0.565708",
"0.565708",
"0.5645664",
"0.562662",
"0.5585431",
"... | 0.0 | -1 |
defines guns behavior when asked to shoot. | void shoot(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}",
"private void shoot() {\n }",
"private void shoot() {\n }",
"@Override\n\t\t\tpublic void shoot() {\n\t\t\t}",
"@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}",
"private void ... | [
"0.7865774",
"0.7521915",
"0.7521915",
"0.7453879",
"0.7367584",
"0.733248",
"0.7130333",
"0.70266885",
"0.70045394",
"0.6988912",
"0.696736",
"0.6942911",
"0.69336516",
"0.6895089",
"0.6892917",
"0.6828642",
"0.6824469",
"0.68020314",
"0.6774551",
"0.67731524",
"0.66645354",... | 0.75002843 | 3 |
refills ammo, setting them back to the max capacity. | void reload(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reload() {\n\t\tammo = AMMO_CAPACITY;\n\t}",
"public void reload()\n\t{\n\t\tammo = maxAmmo;\n\t}",
"public void resupply()\n {\n fuel = model.maxFuel;\n ammo = model.maxAmmo;\n }",
"public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }"... | [
"0.6979668",
"0.69775635",
"0.6930596",
"0.6712828",
"0.66549885",
"0.6555044",
"0.64426273",
"0.6314015",
"0.6310295",
"0.61346155",
"0.6128983",
"0.6036882",
"0.60227793",
"0.59654105",
"0.59367657",
"0.59196603",
"0.59047914",
"0.58978003",
"0.58977735",
"0.5861025",
"0.58... | 0.0 | -1 |
when server sends back profile object | @Override
public void onResponse(JSONObject response) {
report = response;
try {
messageSent = report.getString(Const.REPORT_MESSAGE); //Gives profId
chatLog = report.getString(Const.REPORT_CHATLOG); //Gives Chatlog
} catch (JSONException jse) {
// if an error occurs with the JSON, log it
Log.d("Prof_Info_Fill", jse.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Profile getProfile() {\n return _profile;\n }",
"H getProfile();",
"Map<String, Object> getUserProfile();",
"protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString p... | [
"0.6963719",
"0.69556826",
"0.67487127",
"0.67462194",
"0.67356163",
"0.67338145",
"0.67277575",
"0.6691702",
"0.66862065",
"0.6645712",
"0.65956354",
"0.6546348",
"0.6493426",
"0.6486345",
"0.64322233",
"0.63907385",
"0.6344069",
"0.63302046",
"0.63286215",
"0.6321077",
"0.6... | 0.0 | -1 |
TODO create punishment Post | @Override
public void onClick(View v) {
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void post(Post post) {\n if (post instanceof Video) {\n vd.compressVideo((Video) post);\n } else if (post instanceof Image) {\n id.decorateImage((Image) post);\n } else if (post instanceof Text) {\n tg.checkGrammar((Text) post);\n }\n }",
"@PostMapp... | [
"0.6825769",
"0.6747358",
"0.6507475",
"0.64503217",
"0.64215064",
"0.64206564",
"0.6408339",
"0.6382903",
"0.6372992",
"0.624875",
"0.62313986",
"0.6221771",
"0.6171286",
"0.6132032",
"0.6067692",
"0.60510314",
"0.6049564",
"0.601744",
"0.6007417",
"0.59678876",
"0.59298015"... | 0.0 | -1 |
TODO create punishment Post | @Override
public void onClick(View v) {
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void post(Post post) {\n if (post instanceof Video) {\n vd.compressVideo((Video) post);\n } else if (post instanceof Image) {\n id.decorateImage((Image) post);\n } else if (post instanceof Text) {\n tg.checkGrammar((Text) post);\n }\n }",
"@PostMapp... | [
"0.6825769",
"0.6747358",
"0.6507475",
"0.64503217",
"0.64215064",
"0.64206564",
"0.6408339",
"0.6382903",
"0.6372992",
"0.624875",
"0.62313986",
"0.6221771",
"0.6171286",
"0.6132032",
"0.6067692",
"0.60510314",
"0.6049564",
"0.601744",
"0.6007417",
"0.59678876",
"0.59298015"... | 0.0 | -1 |
/////////////////////////////////////////////////////////////////////////////// ////////////////////////// Test Case Methods ////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// | @BeforeMethod
void setTestConfiguration(Method method) {
logger.info("Setting up ServerAutomationTestCase..");
// Set test configuration
testConfig = TestConfiguration.TEST_TO_CONFIG_MAP.get(method.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void test() {\n\n\t}",
"public void testGetInsDyn() {\n }",
"@Override\n public void runTest() {\n }",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"public void testGetBasedata() {\n }",
"@Test\n... | [
"0.7391292",
"0.6923516",
"0.6886534",
"0.67782545",
"0.6747558",
"0.6713995",
"0.6657672",
"0.66326314",
"0.6612264",
"0.6605942",
"0.6603875",
"0.6588808",
"0.6581384",
"0.65534365",
"0.6545108",
"0.65333104",
"0.65320593",
"0.65291834",
"0.65054065",
"0.64811933",
"0.64796... | 0.0 | -1 |
Obtiene la lista de los valores seleccionados en el menu de origenes de ingresos. | public void obtenerMercadosSeleccionados() {
listaMercadosSeleccionado = new ArrayList<>();
for (String origen : this.mercadosSeleccionados) {
CatalogoBean catalogo = catalogos.getCatalogoBean(
CatalogoEnum.TP_MERCADOS_ORG, origen);
listaMercadosSeleccionado.add(origen + " - "
+ catalogo.getDescripcionL());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getSelectedValues()\n {\n List<String> selectedValues = new ArrayList<String>();\n CharSequence[] allValues = getEntryValues();\n for( int i = 0; i < allValues.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedValues.add( allVa... | [
"0.61166805",
"0.60117435",
"0.5938625",
"0.59069866",
"0.58702",
"0.58188426",
"0.5748162",
"0.5733188",
"0.5715082",
"0.5714872",
"0.5704099",
"0.5663955",
"0.56630033",
"0.56302476",
"0.5612521",
"0.56047297",
"0.552933",
"0.5524564",
"0.5518337",
"0.55114204",
"0.55034995... | 0.5006695 | 87 |
Metodo para agregar datos a lista "agregados" un CNAE. | public int agregarCnaes(int resultadoGuardar)
throws NoControlableException, ControlableException {
for (CatalogoBean catalogo : this.cnaesAgregados) {
CnaeBean cnae = new CnaeBean();
cnae.setObjSocial(this.getObjetoSocial());
cnae.setCodCnae(catalogo.getClaveFila());
resultadoGuardar = this.altaObjetoSocialCnae(cnae);
this.datosGuardados = true;
}
return resultadoGuardar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;",
"public void domicilioAgregar() {\r\n\t\tlog.info(\"Domicilio agregar \" + nuevoDomici.getDomicilio());\r\n\t\tboolean verifica = false;\r\n\t\tmensaje = null;\r\n\t\tnuevoDomici.setTbTipoCasa(objTipoCasaService.findTipoC... | [
"0.61172545",
"0.6024293",
"0.5993776",
"0.5833446",
"0.5729562",
"0.56381226",
"0.56067556",
"0.55478907",
"0.5538158",
"0.5535822",
"0.5476537",
"0.5450695",
"0.54460263",
"0.5423419",
"0.5420221",
"0.5410535",
"0.53670084",
"0.5366217",
"0.5341394",
"0.5314784",
"0.5295108... | 0.5103464 | 59 |
Valida si muestra el dialogo de cancelar. | public String validarAccionCancelar() {
boolean cambiosBean = false;
boolean cambiosMercados = false;
for (MercadoOrganizadoBean mercado : this.mercados) {
if (!("").equals(mercado.getCodigoMercado().trim())) {
boolean encontrado = false;
for (String mercadoSeleccionado : this.mercadosSeleccionados) {
if (mercadoSeleccionado.equals(mercado.getCodigoMercado())) {
encontrado = true;
}
}
if (!encontrado) {
cambiosMercados = true;
}
}
}
for (String mercadoSeleccionado : this.mercadosSeleccionados) {
boolean encontrado = false;
for (MercadoOrganizadoBean mercado : this.mercados) {
if (mercadoSeleccionado.equals(mercado.getCodigoMercado())) {
encontrado = true;
}
}
if (!encontrado) {
cambiosMercados = true;
}
}
if (datosVacios) {
if (!this.actividadEmpresarial.equals(inicializarActividadVacio())) {
cambiosBean = true;
}
} else {
if (!this.actividadEmpresarial.equals(this.actividadEmpresarialTmp)) {
cambiosBean = true;
}
}
if (this.registrosEliminados > 0 || this.registrosModif > 0
|| this.listaDireccionesAgregadas.size() > 0
|| !objetoSocial.equals(objetoSocialRespaldo)
|| this.cnaesAgregados.size() > 0 || cambiosMercados
|| this.eliminados.size() > 0 || cambiosBean) {
RequestContext.getCurrentInstance().execute(
"PF('dlgCancelar').show();");
return "";
} else {
return redirigirInicio();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When use... | [
"0.7447083",
"0.7388856",
"0.7272005",
"0.72367656",
"0.7218514",
"0.7051183",
"0.6914338",
"0.68461776",
"0.68272424",
"0.675247",
"0.6702801",
"0.66964674",
"0.66568047",
"0.66565746",
"0.6636099",
"0.6623816",
"0.66200817",
"0.66161317",
"0.6601993",
"0.65948534",
"0.65895... | 0.6326176 | 51 |
Valida si muestra el dialogo de datos a eliminar. | public String validarAccionGuardar() throws NoControlableException {
RequestContext context = RequestContext.getCurrentInstance();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy");
try {
if ((!"".equals(actividadEmpresarial.getDiaCierreEjercicio()) && actividadEmpresarial
.getDiaCierreEjercicio() != null)
|| (!"".equals(actividadEmpresarial.getMesCierreEjercicio()) && actividadEmpresarial
.getMesCierreEjercicio() != null)) {
DateUtils.parseDateStrictly(
actividadEmpresarial.getDiaCierreEjercicio()
+ "/"
+ actividadEmpresarial.getMesCierreEjercicio()
+ "/"
+ dateFormat.format(Calendar.getInstance()
.getTime()), "dd/MM/yyyy");
}
if (this.registrosEliminados == 0) {
return guardar();
} else {
this.mensajeEliminados = DialogoListadoEnum.ELIMINAR;
this.mensajeEliminados.setMensaje(" " + registrosEliminados
+ " direcciones registrales");
this.mensajeEliminados.setMostrar(true);
}
} catch (ParseException e) {
String id = "input[id$=diaCierreEjercicio]";
context.execute("scrollTo('" + id + "');");
FacesContext.getCurrentInstance().validationFailed();
List<UIComponent> componentes = FacesContext.getCurrentInstance()
.getViewRoot().getChildren();
this.setValidationFalseRecursively(componentes);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void eliminar() {\n\n int row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n int men = JOptionPane.showConfirmDialog(null, \"Estas seguro que deceas eliminar el registro?\", \"pregunta\", JOptionPane.YES_N... | [
"0.67897177",
"0.67416435",
"0.63760734",
"0.63619375",
"0.6328911",
"0.6293359",
"0.6272765",
"0.62600255",
"0.62421966",
"0.621154",
"0.62058806",
"0.62030977",
"0.61504334",
"0.6134058",
"0.61258733",
"0.610662",
"0.60714096",
"0.6069375",
"0.60652256",
"0.6039616",
"0.603... | 0.0 | -1 |
Obtiene memoria flash para variables en scope view. | public Flash obtieneFlash() {
return FacesContext.getCurrentInstance().getExternalContext()
.getFlash();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Flash getFlash();",
"String getFlashPref();",
"public Result withNewFlash() {\n return withFlash(Collections.emptyMap());\n }",
"public Flash flash() {\n return flash;\n }",
"public Result flashing(Map<String, String> values) {\n if (this.flash == null) {\n return withFlash(values);\n } ... | [
"0.59131396",
"0.5777353",
"0.5767325",
"0.5597987",
"0.54731387",
"0.5465599",
"0.5265648",
"0.5112807",
"0.5067955",
"0.5060606",
"0.5045256",
"0.5008135",
"0.49569553",
"0.49526706",
"0.49122533",
"0.48939273",
"0.4878393",
"0.48736015",
"0.4871301",
"0.48692808",
"0.48571... | 0.53414446 | 6 |
TODO Autogenerated method stub | @Override
public boolean dispatchTouchEvent(MotionEvent event) {
Log.i(TAG, "MyLinearLayout() dispatchTouchEvent event = " + event.getAction());
return super.dispatchTouchEvent(event);
} | {
"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 boolean onInterceptTouchEvent(MotionEvent event) {
Log.i(TAG, "MyLinearLayout() onInterceptTouchEvent event = " + event.getAction());
return super.onInterceptTouchEvent(event);
} | {
"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 boolean onTouchEvent(MotionEvent event) {
Log.i(TAG, "MyLinearLayout() onTouchEvent event = " + event.getAction());
return super.onTouchEvent(event);
} | {
"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 int getCount() {
return arrayList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Menu getItem(int arg0) {
return arrayList.get(arg0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public long getItemId(int arg0) {
return arg0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 View getView(int arg0, View arg1, ViewGroup arg2) {
ViewHolder holder;
if(arg1==null){
holder=new ViewHolder();
arg1=mInflater.inflate(R.layout.list_item, null);
holder.textView1=(TextView) arg1.findViewById(R.id.id);
holder.textView2=(TextView) arg1.findViewById(R.id.id2);
arg1.setTag(holder);
}
else{
holder=(ViewHolder) arg1.getTag();
}
holder.textView1.setText(arrayList.get(arg0).getId());
holder.textView2.setText(arrayList.get(arg0).getName());
return arg1;
} | {
"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 |
BM25 with the supplied parameter values. | public BM25Similarity(float b, float k){
this.b = b;
this.k = k;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BM25Similarity(){\n this.b = 0.75f;\n this.k = 1.2f;\n }",
"public Builder setB25(boolean value) {\n bitField0_ |= 0x01000000;\n b25_ = value;\n onChanged();\n return this;\n }",
"public static void setConstantAkParam(String parameter, int[] values)\n ... | [
"0.65090424",
"0.6034739",
"0.5749968",
"0.5636031",
"0.5595032",
"0.5494649",
"0.5412343",
"0.5348469",
"0.53454643",
"0.5339448",
"0.53313017",
"0.53016484",
"0.5294289",
"0.5285146",
"0.5247175",
"0.5222087",
"0.5214259",
"0.5207063",
"0.5205761",
"0.5196084",
"0.51956767"... | 0.5995953 | 2 |
/ default set k = 1.2f, b = 0.75f | public BM25Similarity(){
this.b = 0.75f;
this.k = 1.2f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BM25Similarity(float b, float k){\n this.b = b;\n this.k = k;\n }",
"public String ballColor(long r, long g, long b, long k) {\n if (r == 0 && g == 0) return COLOR.BLUE.toString();\n else if (r == 0 && b == 0) return COLOR.GREEN.toString();\n else if (g == 0 && b == 0... | [
"0.73399013",
"0.6109412",
"0.6041723",
"0.59074277",
"0.5733141",
"0.57324886",
"0.5730201",
"0.5726525",
"0.57243675",
"0.5704218",
"0.57024574",
"0.5669937",
"0.5667373",
"0.5660086",
"0.56558853",
"0.5651877",
"0.56367844",
"0.5630764",
"0.56251234",
"0.55839026",
"0.5543... | 0.6865867 | 1 |
/ Creates an account using the passed html filename. | public Account(String filename) throws IOException {
htmlfile = filename;
file = new File(filename);
if (!file.exists()) {
throw new IOException();
}
htmlrandom = new RandomAccessFile(file, "rw");
htmlchannel = htmlrandom.getChannel();
lock = htmlchannel.tryLock();
if (lock == null) {
throw new IOException();
}
Document doc = parseFile();
Elements transactions = doc.select("table[id=transactions]");
if (transactions.isEmpty()) {
throw new IOException();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}",
"public void createUserAccount(UserAccount account);",
"Account create();"... | [
"0.64551854",
"0.6131377",
"0.611018",
"0.5992355",
"0.5979738",
"0.59490144",
"0.5897086",
"0.5883058",
"0.5834336",
"0.5830852",
"0.5789279",
"0.57621413",
"0.56969655",
"0.5690169",
"0.5667499",
"0.5665801",
"0.56357306",
"0.5630485",
"0.55852556",
"0.5561175",
"0.5551512"... | 0.6779958 | 0 |
Gets the contents of the file. | private String instream_to_contents() throws IOException {
htmlrandom.seek(0);
InputStream instream = Channels.newInputStream(htmlrandom.getChannel());
StringBuilder result = new StringBuilder();
int c;
while (-1 != (c = instream.read()))
result.append((char)c);
return result.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getContents(File file) {\n\t //...checks on file are elided\n\t StringBuilder contents = new StringBuilder();\n\t \n\t try {\n\t //use buffering, reading one line at a time\n\t //FileReader always assumes default encoding is OK!\n\t BufferedReader input = new BufferedReade... | [
"0.74846005",
"0.7381515",
"0.724173",
"0.7068182",
"0.6859582",
"0.68505764",
"0.6847007",
"0.68109226",
"0.68102175",
"0.67768127",
"0.67683417",
"0.6730714",
"0.6705004",
"0.6702219",
"0.6664404",
"0.6649012",
"0.66430825",
"0.6637079",
"0.66308767",
"0.6613897",
"0.660735... | 0.0 | -1 |
Parses the RandomAccessFile into a Jsoup Document. | private Document parseFile() throws IOException {
String contents = instream_to_contents();
Document doc = Jsoup.parse(contents);
return doc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n\tDocument parseLocalFile(String url) throws IOException {\n\t\treturn Jsoup.parse(new File(url), \"UTF-8\", \"\");\n\t}",
"public static final Document parse(final File f) {\r\n String uri = \"file:\" + f.getAbsolutePath();\r\n\r\n if (File.separatorChar == '\\\\') {\r\n uri = uri... | [
"0.58401823",
"0.53283924",
"0.5319632",
"0.5230837",
"0.52274024",
"0.5221835",
"0.5178948",
"0.5148904",
"0.51057833",
"0.5089391",
"0.508758",
"0.5085861",
"0.5067321",
"0.501082",
"0.5001697",
"0.4993879",
"0.4990998",
"0.49510843",
"0.49299917",
"0.49280068",
"0.49103102... | 0.7036313 | 0 |
Gets the balance from the RandomAccessFile representing the account. | public float balance() throws IOException {
float balance = (float)0.0;
Document doc = parseFile();
Elements transactions = doc.select("table[id=transactions]");
for (Element sub: transactions.select("td")) {
float amount = Float.parseFloat(sub.text().trim());
balance += amount;
}
return balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getAccountBalance(int account_id){\n Account a = cache.get(account_id);\n if(a != null) return a.getBalance();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SE... | [
"0.67942774",
"0.6648842",
"0.6645808",
"0.6616513",
"0.65019035",
"0.6486013",
"0.64745486",
"0.6465948",
"0.6451139",
"0.6441955",
"0.6439486",
"0.6418381",
"0.641058",
"0.63821805",
"0.637482",
"0.6370205",
"0.6370205",
"0.63640314",
"0.63640314",
"0.6358583",
"0.6349374",... | 0.62620574 | 36 |
Function that appends a numeric transaction to the account file. No checking is done whether the amount is valid. It is up to the user to determine whether the transaction (for instance, a withdrawal) is valid, and there is enough money in the account. | public void appendRecord(float num) throws IOException {
Document doc = parseFile();
Elements transactions = doc.select("table[id=transactions]");
Element last = null;
for (Element el: transactions) {
last = el;
}
Elements tbody = last.select("tbody");
for (Element el: tbody) {
last = el;
}
String text = String.format("%.2f", num);
last.appendElement("tr").appendElement("td").text(text);
String newcontents = doc.html();
if (newcontents != null) {
htmlrandom.seek(0);
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(Channels.newOutputStream(htmlrandom.getChannel())));
out.write(newcontents);
out.flush();
htmlrandom.setLength(newcontents.length());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean addTransaction(double amount) {\n if ((this.balance+amount)>=0) {\r\n this.transactions.add(amount);\r\n balance+=amount;\r\n return true;\r\n }else{\r\n System.out.println(\"Balance Insufficient\");\r\n return false;\r\n }\... | [
"0.6179637",
"0.61529815",
"0.6031668",
"0.595222",
"0.59105855",
"0.59061414",
"0.58959246",
"0.5890564",
"0.5890357",
"0.5772927",
"0.57679117",
"0.56954074",
"0.5655583",
"0.56472397",
"0.56079036",
"0.5601605",
"0.5582143",
"0.558",
"0.5558211",
"0.55514574",
"0.5544021",... | 0.5627155 | 14 |
adds an item to the array | public void addItem(JSONObject obj) {
coordinates.put(obj);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(T item){\n\t\t\n\n\t\tif(currentsize == data.length-1){\n\t\t\tgrow();\n\t\t}\n\n\t\t\n\t\tdata[currentsize] = item;\n\t\tcurrentsize++;\n\n\n\t}",
"public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }",
"@O... | [
"0.7687857",
"0.7496334",
"0.7426352",
"0.73757416",
"0.72901285",
"0.72661066",
"0.7257312",
"0.7253628",
"0.7208123",
"0.71929383",
"0.7190783",
"0.7172444",
"0.7163836",
"0.7155671",
"0.71409196",
"0.7082845",
"0.70673406",
"0.70651144",
"0.70648444",
"0.7038423",
"0.70164... | 0.0 | -1 |
Opens the add transform wizard. | public AddValidatorWizard() {
super();
initPages();
setWindowTitle(Messages.title_newValidator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}",
"public void goToAddPartScene(ActionEvent event) throws IOException {\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AddPart.fxml\"));\n Scene addPartScene = new Scene(addPartParent);\n\n St... | [
"0.5607956",
"0.55788475",
"0.55167234",
"0.55157787",
"0.5482866",
"0.5475973",
"0.544881",
"0.54212904",
"0.54102224",
"0.5396598",
"0.5377895",
"0.5361083",
"0.5348275",
"0.52882975",
"0.5274759",
"0.52587163",
"0.52465075",
"0.52456343",
"0.52326447",
"0.52294165",
"0.522... | 0.5622781 | 0 |
Instantiates a new Property. | public Property(String owners,int estvalue, String location,char PPR2,String yearsowned,String eircode,String address) {
this.owners = owners;
this.estValue = estvalue;
this.Address = address;
this.postcode = eircode;
this.PPR = PPR2;
this.locationCategory = location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Property createProperty();",
"public Property() {}",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public Property() {\n this(0, 0, 0, 0);\... | [
"0.81454855",
"0.77960193",
"0.75461286",
"0.75004905",
"0.7403537",
"0.73892134",
"0.69693536",
"0.6941336",
"0.6858654",
"0.67956656",
"0.67807704",
"0.6747723",
"0.66439116",
"0.6587973",
"0.65769184",
"0.6570794",
"0.6570794",
"0.65387124",
"0.65138334",
"0.6508482",
"0.6... | 0.0 | -1 |
Get est value int. | public int getEstValue(){
return this.estValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getValue();",
"int getValue();",
"int getValue();",
"int getValue();",
"int getValue();",
"Integer getValue();",
"Integer getValue();",
"public int getValue();",
"public int getValue();",
"public static int getValueInt()\n {\n return Util.valueInt;\n }",
"public int intValue() ... | [
"0.76100475",
"0.76100475",
"0.76100475",
"0.76100475",
"0.76100475",
"0.7517661",
"0.7517661",
"0.7454302",
"0.7454302",
"0.7303798",
"0.7294418",
"0.72942007",
"0.72929126",
"0.72881186",
"0.7261527",
"0.7260007",
"0.7260007",
"0.7238486",
"0.7236489",
"0.7230956",
"0.72206... | 0.83245593 | 0 |
Get location category string. | public String getLocationCategory(){
return this.locationCategory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCategoryString(){\r\n\t\tMarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category);\r\n\t\tif(c == null || c.name() == null || \"\".equals(c.name())) return \"NONE\";\r\n\t\treturn c.name();\r\n\t}",
"String category();",
"public String toString() {\n\t\treturn category;\n\t... | [
"0.72116494",
"0.6939156",
"0.6904806",
"0.6788489",
"0.6608635",
"0.6608635",
"0.6555525",
"0.6444921",
"0.64328855",
"0.6399564",
"0.63573813",
"0.63573813",
"0.63417214",
"0.6292517",
"0.624747",
"0.62238187",
"0.6197776",
"0.6157912",
"0.6134066",
"0.6112289",
"0.61056095... | 0.78421766 | 0 |
Get market value tax rate double. | public double getMarketValueTaxRate(){
taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));
count++;
return taxlist.get(count-1).MarketValueTax();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getTaxRate() {\r\n\t\treturn .07;\r\n\t}",
"public BigDecimal getPriceStdWTax();",
"public double taxRate () {\n return taxRate;\n }",
"public BigDecimal getTaxRate() {\n return taxRate;\n }",
"public BigDecimal getTaxAmtPriceStd();",
"public Double getTax();",
"public Big... | [
"0.7584088",
"0.7507527",
"0.7462273",
"0.74423814",
"0.7408603",
"0.73902196",
"0.734926",
"0.73331845",
"0.7328995",
"0.7296873",
"0.7276784",
"0.7246322",
"0.7198793",
"0.71926355",
"0.7188573",
"0.7186872",
"0.7130654",
"0.71295416",
"0.6971372",
"0.69662845",
"0.6915637"... | 0.82159775 | 0 |
Get location tax int. | public int getLocationTax(){
taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));
count++;
return taxlist.get(count-1).LocationTax();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTax(){\n int tax=0;\n if(this.salary<this.LOWER_LIMIT){\n tax=this.taxableSalary/100*10;\n }else if(this.salary<this.UPPER_LIMIT){\n tax=this.taxableSalary/100*22;\n }else{\n tax=this.UPPER_LIMIT/100*22 + (this.taxableSalary-this.UPPER_LIMI... | [
"0.6907165",
"0.67719805",
"0.66574347",
"0.663375",
"0.66106886",
"0.66060245",
"0.65793824",
"0.6388986",
"0.62993336",
"0.6290149",
"0.6288167",
"0.6279394",
"0.6248862",
"0.6244546",
"0.62164223",
"0.6198863",
"0.61985856",
"0.6182293",
"0.6173087",
"0.6159723",
"0.613205... | 0.8194921 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int a,b;
System.out.println("to check den is zero");
Scanner scanner =new Scanner(System.in);
a = scanner.nextInt();
b=scanner.nextInt();
number(a,b);
} | {
"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 |
/ GCD: Greatest Common Divisor | public static int gcd(int a, int b){
return a>b ? lnko_ordered(a,b) : lnko_ordered(b,a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int gcd(){\n\tint min;\n\tint max;\n\tint stor;\n\tif ((numerator == 0) || (denominator == 0)){\n\t return 0;\n\t}\n\telse {\n\t if ( numerator >= denominator ) {\n\t\tmax = numerator;\n\t\tmin = denominator;\n\t }\n\t else {\n\t\tmax = denominator;\n\t\tmin = numerator;\n\t }\n\t while (m... | [
"0.78673863",
"0.78573066",
"0.780404",
"0.7778953",
"0.77427256",
"0.77355075",
"0.77293533",
"0.7726766",
"0.76894826",
"0.76439726",
"0.750298",
"0.7463374",
"0.7447984",
"0.74457294",
"0.7443551",
"0.74004376",
"0.7381778",
"0.7379569",
"0.73396474",
"0.7298009",
"0.72976... | 0.70079327 | 35 |
/ Helper method for GCD, where a >= b | public static int lnko_ordered(int a, int b){
if (b==0) return a;
return lnko_ordered(b, a%b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int gcd(int a, int b){\r\n int r, temp;\r\n if( a<b ){ temp = a; a = b; b = temp; }\r\n while( b!=0 ){ r = a%b; a = b; b = r; }\r\n return a;\r\n }",
"private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new Arithmeti... | [
"0.79164094",
"0.7691637",
"0.76913905",
"0.7679457",
"0.767875",
"0.7620742",
"0.7568881",
"0.75024575",
"0.7486356",
"0.745356",
"0.7428834",
"0.7336048",
"0.73278975",
"0.7327565",
"0.73260057",
"0.7305247",
"0.724505",
"0.71557933",
"0.7150936",
"0.71310353",
"0.7070161",... | 0.0 | -1 |
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml"); | public static void main(String[] args) throws Exception {
ApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);
ProductService service = (ProductServiceImpl) factory.getBean(ProductServiceImpl.class);
System.out.println("Scanning Items.... ");
service.scanProductId("Item_1");
service.scanProductId("Item_2");
service.scanProductId("Item_3");
service.scanProductId("Item_4");
service.scanProductId("Item_5");
service.scanProductId("Item_6");
service.scanProductId("Item_7");
System.out.println("Calculating order amount....");
service.calculateBill();
//SpringApplication.run(OrderApplication.class, args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private SpringApplicationContext() {}",
"private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}",
"public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationConte... | [
"0.72162336",
"0.6856306",
"0.67681146",
"0.67167825",
"0.66992116",
"0.65770245",
"0.65694875",
"0.6530831",
"0.65205806",
"0.6520491",
"0.6433935",
"0.6369355",
"0.6348694",
"0.6334135",
"0.63340926",
"0.63155085",
"0.63096976",
"0.62779135",
"0.6265336",
"0.6261309",
"0.62... | 0.0 | -1 |
Return escaped original message | @Override
public Response toResponse(UnrecognizedPropertyException exception) {
return KeycloakErrorHandler.getResponse(session, new BadRequestException(exception.getMessage()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRawMessage();",
"private String encodeMessage() {\n\t\tString encode = \"\";\n\t\tfor (int i = 0; i < message.length(); i++) {\n\t\t\tencode += map.get(message.charAt(i));\n\t\t}\n\t\tgenerateBack();\n\t\treturn encode;\n\t}",
"private String prettyMessage() {\n Map<String, Object> map = new Linke... | [
"0.6550659",
"0.6377705",
"0.63774014",
"0.6191204",
"0.6175152",
"0.61425644",
"0.6066552",
"0.60431165",
"0.6001836",
"0.59569925",
"0.5891403",
"0.5858719",
"0.5849331",
"0.5805458",
"0.57364273",
"0.5729554",
"0.57126707",
"0.57113487",
"0.5704033",
"0.5674365",
"0.567163... | 0.0 | -1 |
Open the plugin dialog. | private void process() {
final PluginsDialog dialog = new PluginsDialog();
dialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void execute() {\n _plugin.openNavigator();\n }",
"DialogResult show();",
"public void open(){\n dialog.setLocation\n (parent.getLocation().x + 10, parent.getLocation().y + 10);\n dialog.setSize(PREF_SIZE);\n dialog.setResizable(false);\n dialog.setVisible(tr... | [
"0.7036539",
"0.633256",
"0.6311408",
"0.6298507",
"0.61925894",
"0.6190876",
"0.61001307",
"0.6042616",
"0.6040758",
"0.6040449",
"0.6037011",
"0.60289913",
"0.60035896",
"0.59785175",
"0.5945096",
"0.59336126",
"0.59298867",
"0.5928319",
"0.5925022",
"0.5912791",
"0.5907464... | 0.69930303 | 1 |
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity. | public static Ordre createEntity(EntityManager em) {
Ordre ordre = new Ordre()
.name(DEFAULT_NAME)
.status(DEFAULT_STATUS)
.price(DEFAULT_PRICE)
.creationDate(DEFAULT_CREATION_DATE);
return ordre;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity createEntity();",
"T createEntity();",
"protected abstract ENTITY createEntity();",
"void create(E entity);",
"void create(T entity);",
"E create(E entity);",
"E create(E entity);",
"protected abstract EntityBase createEntity() throws Exception;",
"TestEntity buildEntity () {\n TestEn... | [
"0.7723017",
"0.7504376",
"0.7488697",
"0.7361405",
"0.7313408",
"0.71555346",
"0.71555346",
"0.7151172",
"0.715035",
"0.7077452",
"0.70158756",
"0.6803454",
"0.6753353",
"0.67401814",
"0.67401814",
"0.67112446",
"0.6680694",
"0.66662353",
"0.66401017",
"0.6625097",
"0.662479... | 0.60024035 | 81 |
Provides services for the workflow consumer. | public interface WorkConsumerService{
/**
* Consumes a single work unit.
* <p>
* Blocks for 15 s or until a work unit becomes consumable, if there is currently none.
*
*/
void consumeWorkUnit();
/**
* Returns the total number of consumed work units by the engine instance at hand since
* the engine's last deployment.
*/
long getConsumedWorkUnits();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}",
"public interface ServiceFactory\n{\n /**\n * Retrieves a service instance. Is provided for extensibility beyond the core service\n * set.\n *\n * @param type The class name of the service to b... | [
"0.58604497",
"0.5857519",
"0.5756275",
"0.57128423",
"0.57102686",
"0.5648647",
"0.56420666",
"0.5598042",
"0.5575188",
"0.5547081",
"0.5521561",
"0.5517567",
"0.55122185",
"0.5496544",
"0.5493415",
"0.54813987",
"0.54790676",
"0.5478973",
"0.5473496",
"0.5450531",
"0.542672... | 0.5316892 | 33 |
Consumes a single work unit. Blocks for 15 s or until a work unit becomes consumable, if there is currently none. | void consumeWorkUnit(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is currently none. \n * \n */\n void consumeWorkUnit();\n\n /**\n * Returns the total number of consumed work units by the en... | [
"0.5869297",
"0.5671291",
"0.5588342",
"0.5580012",
"0.54532695",
"0.54360193",
"0.5405279",
"0.5325865",
"0.529883",
"0.5197707",
"0.51936036",
"0.5177192",
"0.5168258",
"0.51597404",
"0.51588076",
"0.50962245",
"0.508644",
"0.5084112",
"0.5068738",
"0.5047763",
"0.500785",
... | 0.7313785 | 0 |
Returns the total number of consumed work units by the engine instance at hand since the engine's last deployment. | long getConsumedWorkUnits(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getWorkingUnitsCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().getWorkingUnitsCount();\n\t}",
"public long getRemainingEstimate() {\n return addedFrontWork.size() + addedBackWork.size();\n }",
"protected long getLiveSetSize() {\n\t\t// Su... | [
"0.68623614",
"0.6701468",
"0.65126973",
"0.6466411",
"0.6456755",
"0.6444801",
"0.6379554",
"0.62889105",
"0.6143934",
"0.61260265",
"0.61219305",
"0.60896176",
"0.607011",
"0.60480064",
"0.60337555",
"0.6022919",
"0.6005468",
"0.5998677",
"0.5997268",
"0.5993613",
"0.599351... | 0.76616466 | 0 |
Convert to weird array type. From the documentation of SimpleExpandableListAdapter: StopGroupings: A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom". StopGroupings: A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom". Stops: A List of List of Maps. Each entry in the outer List corresponds to a group (index by group position), each entry in the inner List corresponds to a child within the group (index by child position), and the Map corresponds to the data for a child (index by values in the childFrom array). The Map contains the data for each child, and should include all the entries specified in "childFrom" | private void initMaps(Context cxt, ObaResponse response) {
if (response.getCode() == ObaApi.OBA_OK) {
final ObaData data = response.getData();
final ObaArray<ObaStop> stops = data.getStops();
final Map<String,ObaStop> stopMap = getStopMap(stops);
final ObaArray<ObaStopGrouping> groupings = data.getStopGroupings();
final int groupingsLen = groupings.length();
for (int groupingIndex = 0; groupingIndex < groupingsLen; ++groupingIndex) {
final ObaStopGrouping grouping = groupings.get(groupingIndex);
final ObaArray<ObaStopGroup> groups = grouping.getStopGroups();
final int groupsLen = groups.length();
for (int i=0; i < groupsLen; ++i) {
final HashMap<String,String> groupMap = new HashMap<String,String>(1);
final ObaStopGroup group = groups.get(i);
// We can initialize the stop grouping values.
groupMap.put("name", group.getName());
// Add this to the groupings map
// Create the sub list (the list of stops in the group)
final List<String> stopIds = group.getStopIds();
final int stopIdLen = stopIds.size();
final ArrayList<HashMap<String,String>> childList =
new ArrayList<HashMap<String,String>>(stopIdLen);
for (int j=0; j < stopIdLen; ++j) {
final String stopId = stopIds.get(j);
final ObaStop stop = stopMap.get(stopId);
HashMap<String,String> groupStopMap =
new HashMap<String,String>(2);
if (stop != null) {
groupStopMap.put("name", stop.getName());
String dir = cxt.getString(
UIHelp.getStopDirectionText(
stop.getDirection()));
groupStopMap.put("direction", dir);
groupStopMap.put("id", stopId);
mStopMap.put(stopId, stop);
}
else {
groupStopMap.put("name", "");
groupStopMap.put("direction", "");
groupStopMap.put("id", stopId);
}
childList.add(groupStopMap);
}
mStopGroups.add(groupMap);
mStops.add(childList);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}",
"public Object[] getGroupList() {\n return grouptabs.keySet().toArray();\n }",
"public COSArray toList() \n {\n return array;\n }",
"private void makeArrays()\n\t{\n\t\tfor (String key : sub.ke... | [
"0.50260824",
"0.4840493",
"0.48181698",
"0.4801808",
"0.4762825",
"0.47156805",
"0.47072718",
"0.4702159",
"0.46664575",
"0.4661838",
"0.4651486",
"0.4631378",
"0.46122932",
"0.45824748",
"0.45799944",
"0.4559098",
"0.4544584",
"0.45151868",
"0.45131284",
"0.44864392",
"0.44... | 0.5039694 | 0 |
Helper functions (should be private, but they are mostly accessed by our child classes.) | private void setHeader(ObaResponse routeInfo, boolean addToDb) {
mRouteInfo = routeInfo;
TextView empty = (TextView)findViewById(android.R.id.empty);
if (routeInfo.getCode() == ObaApi.OBA_OK) {
ObaRoute route = routeInfo.getData().getAsRoute();
TextView shortNameText = (TextView)findViewById(R.id.short_name);
TextView longNameText = (TextView)findViewById(R.id.long_name);
TextView agencyText = (TextView)findViewById(R.id.agency);
String shortName = route.getShortName();
String longName = route.getLongNameOrDescription();
shortNameText.setText(shortName);
longNameText.setText(longName);
agencyText.setText(route.getAgencyName());
if (addToDb) {
RoutesDbAdapter.addRoute(this, route.getId(), shortName, longName, true);
}
}
else {
empty.setText(R.string.generic_comm_error);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"pr... | [
"0.56753516",
"0.55869913",
"0.5506299",
"0.54246676",
"0.54246676",
"0.53628427",
"0.531125",
"0.52857435",
"0.52344126",
"0.522553",
"0.52071214",
"0.5195484",
"0.51920974",
"0.51877564",
"0.5174032",
"0.51740235",
"0.51428044",
"0.51357913",
"0.5115764",
"0.51124144",
"0.5... | 0.0 | -1 |
create objek arraylist cara 1 | public static void main(String[] args) {
ArrayList<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();
//cara 2
//List<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();
MataKuliah mk1 = new MataKuliah("IF123", "Alpro1", 4, 'A');
MataKuliah mk2 = new MataKuliah("IF124", "Alpro2", 3, 'B');
MataKuliah mk3 = new MataKuliah("IF125", "KPLBO", 3, 'B');
MataKuliah mk4 = new MataKuliah("IF126", "RKPPL", 2, 'A');
listMatakuliah.add(mk1);
listMatakuliah.add(mk2);
listMatakuliah.add(mk3);
listMatakuliah.add(mk4);
//tampilkan objek matakuliaj dari arraylist (cara 1)
for (MataKuliah mk : listMatakuliah) {
System.out.println(mk.getKode()+","+mk.getIndeksNilai());
}
//(cara 2)
Iterator<MataKuliah> iteratorMK = listMatakuliah.iterator();
while (iteratorMK.hasNext()) {
MataKuliah mk = (MataKuliah) iteratorMK.next();
System.out.println(mk.getKode()+","+mk.getIndeksNilai());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ... | [
"0.6488941",
"0.6481975",
"0.6398758",
"0.6235067",
"0.61188835",
"0.6094022",
"0.6083881",
"0.6035422",
"0.6018738",
"0.6010658",
"0.6009539",
"0.5996734",
"0.59805304",
"0.596919",
"0.5963403",
"0.5958482",
"0.59506166",
"0.5931411",
"0.5928566",
"0.59182733",
"0.5912965",
... | 0.0 | -1 |
Requests a move to a new row and column. | public boolean move(int row, int column) {
// 1. Implement the move method.
// If the move is valid, return true and update `row` and `column` fields.
// If the move is invalid, return false and do not update fields.
// Rules for valid moves:
// - row and column can never be less than 0 or greater than 7 (8 rows and columns on a chess board).
// - can't equal the existing row and column (same location)
// - If the row parameter and field are the same but the column is not, the queen is moving horizontally. That's valid.
// - If the column parameter and field are the same but the row is not, the queen is moving vertically. That's valid.
// - Otherwise, the absolute difference between row parameter and field
// and the absolute difference between the column parameter and field must be the same.
// That represents a diagonal move.
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void move(int row, int col) throws IllegalMoveException;",
"public PuzzleState move(int row, int column, Operation op);",
"public void move(int fromRow, int fromColumn, int toRow, int toColumn) {\n ImmutablePair<Integer, Integer> from = new ImmutablePair<>(fromRow, fromColumn);\n ... | [
"0.69832444",
"0.68836117",
"0.64953643",
"0.6324764",
"0.62890816",
"0.62650424",
"0.6247166",
"0.62421495",
"0.61931676",
"0.619024",
"0.6089361",
"0.604008",
"0.59741855",
"0.59732157",
"0.5936236",
"0.5930276",
"0.59075886",
"0.5900322",
"0.58807003",
"0.58463913",
"0.584... | 0.5496733 | 65 |
/ Dan Brickley 7eff189e90a0b21cddb1b490ee39524f3cd2ca3e | public static void main(String[] args) {
Model m = ModelFactory.createDefaultModel();
m.setNsPrefix("foaf", "http://xmlns.com/foaf/0.1/");
Thing img = new Thing("http://rdfweb.org/people/danbri/mugshot/danbri-small.jpeg", m);
img.isa(Foaf.Image.class).sha1("7eff189e90a0b21cddb1b490ee39524f3cd2ca3e");
new Thing(m). // anonymous
isa(Foaf.Person.class).
name_("Dan Brickley"). //this one is an untyped Literal
depiction(img);
// now let's see it with a typed literal
new Thing(m). // anonymous
isa(Foaf.Person.class).
name("Dan Brickley"). //this one is a typed Literal
depiction(img);
m.write(System.out, "RDF/XML-ABBREV");
/*
<foaf:Person>
<foaf:name>Dan Brickley</foaf:name>
<foaf:depiction>
<foaf:Image/>
</foaf:depiction>
</foaf:Person>
*/
m = ModelFactory.createDefaultModel();
m.setNsPrefix("foaf", "http://xmlns.com/foaf/0.1/");
img = new Thing(m);
img.isa(Foaf.Image.class);
new Thing(m).
isa(Foaf.Person.class).
name_("Dan Brickley"). //this one is an untyped Literal
depiction(img); //anonymous image
m.write(System.out, "RDF/XML-ABBREV");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract long mo9229aD();",
"public abstract long mo9743h();",
"C2451d mo3408a(C2457e c2457e);",
"public abstract long mo24409b();",
"public abstract long mo20901UQ();",
"String mo38971b();",
"public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength... | [
"0.61714536",
"0.6151216",
"0.614551",
"0.611319",
"0.60077465",
"0.597802",
"0.5945161",
"0.5943963",
"0.5901361",
"0.58847797",
"0.583715",
"0.58257425",
"0.5818284",
"0.577466",
"0.57567555",
"0.5745999",
"0.57359195",
"0.57341105",
"0.5730976",
"0.5717027",
"0.5710273",
... | 0.0 | -1 |
INSERTION DANS LA TABLE PRODUIT | public static boolean insert(PhotoProduit photo){
boolean retour = false;
int nbLigne = 0;
PreparedStatement ps;
try {
ps = ConnexionBD.getConnection().prepareStatement(queryInsert);
ps.setInt(1,photo.getIdProd());
ps.setString(2,photo.getCheminFtp());
ps.setString(3,photo.getExtensionPic());
ps.setString(4,photo.getAlt());
ps.setInt(5,photo.getIsDefault());
nbLigne = ps.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// System.out.println("nb ligne " + nbLigne);
if(nbLigne >0 )
retour = true;
ConnexionBD.closeConnection();
return retour;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void insert(CTipoComprobante record) throws SQLException;",
"public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema... | [
"0.70716685",
"0.6936625",
"0.6921497",
"0.6841626",
"0.6835975",
"0.6794958",
"0.67389095",
"0.6708763",
"0.6703533",
"0.6666227",
"0.6654188",
"0.6653741",
"0.6640137",
"0.66235465",
"0.658402",
"0.6580131",
"0.6580056",
"0.6577277",
"0.65503263",
"0.6526052",
"0.6525098",
... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.out.println("Primer commit");
System.out.println("18/05/2020 - segundo commit");
System.out.println("Rosana - tercer commit");
System.out.println("prueba - sexto commit");
} | {
"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 |
load the properties file with environment settings | @BeforeSuite
public void getProperties() throws Exception{
prop.load(new FileInputStream("src/test/resources/properties/env.properties"));
RestAssured.baseURI = prop.getProperty("HOST");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n ... | [
"0.746641",
"0.7431045",
"0.73722726",
"0.73274165",
"0.7266364",
"0.72491133",
"0.72414464",
"0.72265893",
"0.7189714",
"0.7186964",
"0.71243095",
"0.7079094",
"0.70760727",
"0.7071927",
"0.7067775",
"0.7064044",
"0.7055171",
"0.6983254",
"0.6969581",
"0.6942698",
"0.6942093... | 0.6677807 | 37 |
create Session ID for the logged in User Read the properties file and convert to jsonObject | @Test(enabled = true)
public String createSession() throws Exception {
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_1));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("Content-Type","application/json").and().
body(jsonObject.toJSONString()).
when().
post("/rest/auth/1/session").
then().
statusCode(200).log().all().extract().response();
//extracting values from the RestAssured Response
JsonPath jp = res.jsonPath();
String sessionName = jp.get("session.name"); //session Name
String sessionID = jp.get("session.value"); //session Value
System.out.println(sessionName);
System.out.println(sessionID);
return sessionID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@POST\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response createSession(@Context HttpServletRequest req,\n\t\t\tJSONObject inputJsonObj, @Context UriInfo ui,\n\t\t\t@Context HttpHeaders hh) {\n\t\tString userName = null; // user inserted fields\n\t\tString a... | [
"0.6044122",
"0.5786763",
"0.5733866",
"0.5733866",
"0.56624854",
"0.56540984",
"0.5515395",
"0.55088437",
"0.5444523",
"0.5439006",
"0.541892",
"0.5412304",
"0.5379389",
"0.53742343",
"0.53560704",
"0.53524387",
"0.53524387",
"0.53524387",
"0.53524387",
"0.5330053",
"0.53240... | 0.6499441 | 0 |
create new issue using already created session Id Read the properties file and convert to jsonObject | @Test(enabled = true)
public String createIssue() throws Exception {
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_2));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("Cookie","JSESSIONID="+createSession()).and().
header("Content-Type","application/json").
body(jsonObject.toJSONString()).
when().
post("/rest/api/2/issue").
then().
statusCode(201).log().all().extract().response();
//extracting values from the RestAssured Response
JsonPath jp = res.jsonPath();
String issueID = jp.get("id");
System.out.println("New Issue ID:" +issueID);//10005
return issueID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(enabled = true)\n public String createSession() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_1));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n ... | [
"0.62697643",
"0.6169218",
"0.53264314",
"0.5295412",
"0.5279232",
"0.52356166",
"0.52311134",
"0.5224574",
"0.5003889",
"0.492472",
"0.48774582",
"0.48764187",
"0.4816759",
"0.47770697",
"0.47714922",
"0.4760585",
"0.47169763",
"0.46984828",
"0.46625862",
"0.4657581",
"0.464... | 0.71947515 | 0 |
Inserting comment to the newly created Issue Read the properties file and convert to jsonObject | @Test(enabled = true)
public String createComment() throws Exception{
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_3));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("cookie","JSESSIONID="+createSession()).and().
header("Content-Type","application/json").
body(jsonObject.toJSONString()).
when().
post("/rest/api/2/issue/10008/comment").
then().
statusCode(201).log().all().extract().response();
//extracting values from the RestAssured Response
JsonPath jp = res.jsonPath();
String commentID = jp.get("id");
System.out.println("New Comment ID:" +commentID);//10002
return commentID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(enabled = true)\n public String createIssue() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_2));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n ... | [
"0.6114627",
"0.59251183",
"0.54792726",
"0.5102812",
"0.50669163",
"0.5046216",
"0.50399214",
"0.5017131",
"0.50113446",
"0.5003388",
"0.49874073",
"0.49827096",
"0.49660712",
"0.4958284",
"0.49245813",
"0.49167994",
"0.48885944",
"0.48759547",
"0.48681924",
"0.48648638",
"0... | 0.62180763 | 0 |
Updating comment Read the properties file and convert to jsonObject | @Test
public void updateComment() throws Exception{
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_4));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("cookie","JSESSIONID="+createSession()).and().
header("Content-Type","application/json").
body(jsonObject.toJSONString()).
when().
put("/rest/api/2/issue/10008/comment/10004").
then().
statusCode(200).log().all().extract().response();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void loadJsonFile() throws FileNotFoundException {\n Log.println(Log.INFO, \"FileAccessing\", \"Loading settings file.\");\n StringBuilder stringBuilder = new StringBuilder();\n InputStreamReader inputStreamReader = new InputStreamReader(context.openFileInput(\"settingDetails.js... | [
"0.5790496",
"0.5508893",
"0.5405721",
"0.5382717",
"0.5288125",
"0.51542693",
"0.51514375",
"0.51063085",
"0.510056",
"0.50909805",
"0.5083305",
"0.50813806",
"0.50807685",
"0.5071786",
"0.5067584",
"0.50278986",
"0.5005074",
"0.4997109",
"0.49960077",
"0.4993361",
"0.499210... | 0.5917904 | 0 |
Billing Time service exposes methods to deal with billing time operations. | public interface BillingTimeService
{
/**
* This method returns the {@link BillingTimeModel} associated with the code.
*
* @param code
* the code
* @return The {@link BillingTimeModel}
*/
@Nonnull
BillingTimeModel getBillingTimeForCode(@Nonnull String code);
/**
* This method returns all {@link BillingTimeModel}s.
*
* @return All {@link BillingTimeModel}s.
*/
@Nonnull
List<BillingTimeModel> getAllBillingTimes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BillingSource billingSource();",
"ShipmentTimeEstimate createShipmentTimeEstimate();",
"hr.client.appuser.CouponCenter.TimeRange getUseTime();",
"hr.client.appuser.CouponCenter.TimeRange getUseTime();",
"hr.client.appuser.CouponCenter.TimeRange getExchangeTime();",
"BillingAccount getBillingAccount();",
... | [
"0.61318743",
"0.57786405",
"0.57350004",
"0.57350004",
"0.5672641",
"0.5630331",
"0.5597681",
"0.5596552",
"0.5596552",
"0.55949277",
"0.5568205",
"0.55585146",
"0.5557768",
"0.5469456",
"0.5448014",
"0.5331394",
"0.53284866",
"0.53284866",
"0.5276958",
"0.5253057",
"0.52524... | 0.59524846 | 1 |
Invoked by a BeanFactory on destruction of a singleton. | public void destroy() throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void destroy() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean distroy completed from class !!\");\n\t\t\n\t}",
"@PreDestroy\n public void perDestroyFn (){\n LOOGER.info(\" ==== pre destroy the bean ====> {}:\");\n }",
"@Override\r\n\tpublic void destroy() throws Exc... | [
"0.726147",
"0.7144273",
"0.7033684",
"0.701992",
"0.6862295",
"0.6747425",
"0.6747425",
"0.66827685",
"0.6648377",
"0.6611208",
"0.6587549",
"0.6553431",
"0.6549659",
"0.65317386",
"0.6530036",
"0.6516559",
"0.64848304",
"0.6480124",
"0.6472182",
"0.6472182",
"0.6469924",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle multimediacourse) {
super.onCreate(multimediacourse);
// Keep the Device Screen ON
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
// Make Activity FullScreen
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.splash);
// Background music for Splash Screen
myPlayer=MediaPlayer.create(Splash.this, R.raw.music);
myPlayer.start();
myPlayer.setLooping(true);
// Animation
// Load the ImageView that will host the animation and
ImageView Img = (ImageView) findViewById(R.id.background);
// set its background to our AnimationDrawable XML resource.
Img.setBackgroundResource(R.layout.anim);
AnimationDrawable frameAnimation = (AnimationDrawable) Img.getBackground();
// Start the animation (looped PlayBack by default).
frameAnimation.start();
// End of Animation
// MUTE BUTTON
imageButton = (ImageButton) findViewById(R.id.imageButton1);
imageButton.bringToFront();
imageButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
if(clicked==1){
AudioManager aManager=(AudioManager)getSystemService(Context.AUDIO_SERVICE);
aManager.setStreamMute(AudioManager.STREAM_MUSIC, false);
Toast.makeText(Splash.this,"Music is ON!", Toast.LENGTH_SHORT).show();
imageButton.setImageResource(R.drawable.unmute);
clicked=0;
}
else{
AudioManager aManager=(AudioManager)getSystemService(Context.AUDIO_SERVICE);
aManager.setStreamMute(AudioManager.STREAM_MUSIC, true);
Toast.makeText(Splash.this,"Music is OFF!", Toast.LENGTH_SHORT).show();
imageButton.setImageResource(R.drawable.mute);
clicked=1;
}
}
});
// QUICK START BUTTON
startButton = (ImageButton) findViewById(R.id.button1);
startButton.bringToFront();
startButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
startButton.setImageResource(R.drawable.quick2);
Intent intent= new Intent("com.android.BrickBreaker.main");
startActivity(intent);
myPlayer.release();
}
});
// SELECT BACKGROUND IMAGE BUTTON
selectButton = (ImageButton) findViewById(R.id.button2);
selectButton.bringToFront();
selectButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
selectButton.setImageResource(R.drawable.select2);
Toast.makeText(Splash.this,"Please Select 'Low or Medium Quality' Images", Toast.LENGTH_LONG).show();
Intent i = new Intent(
Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(i, SELECT_IMAGE);
}
});
// EXIT GAME BUTTON
exitButton = (ImageButton) findViewById(R.id.exitButton);
exitButton.bringToFront();
exitButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
exitButton.setImageResource(R.drawable.exit2);
Toast.makeText(Splash.this,"Credits: Berk SOYSAL, Aditi ARYA", Toast.LENGTH_LONG).show();
Thread timer = new Thread(){
public void run(){
try{
sleep(2200);
} catch (InterruptedException e){
e.printStackTrace();
} finally{
System.exit(0);
}
}
};
timer.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
protected void onPause() {
super.onPause();
myPlayer.release();
startButton.setImageResource(R.drawable.quick);
selectButton.setImageResource(R.drawable.select);
} | {
"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 |
/ xmsoriginalfile: specification/subscription/resourcemanager/Microsoft.Subscription/stable/20200901/examples/deleteAlias.json Sample code: DeleteAlias. | public static void deleteAlias(com.azure.resourcemanager.subscription.SubscriptionManager manager) {
manager.alias().deleteWithResponse("aliasForNewSub", com.azure.core.util.Context.NONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAlias(Origin alias) {\n aliases.remove(alias);\n }",
"@Override\n public String getDescription() {\n return \"Delete alias\";\n }",
"@ZAttr(id=775)\n public void unsetDomainAliasTargetId() throws com.zimbra.common.service.ServiceException {\n ... | [
"0.6576587",
"0.6493569",
"0.61289674",
"0.60885346",
"0.6054655",
"0.59603095",
"0.5935419",
"0.5856147",
"0.58548415",
"0.58548415",
"0.5744333",
"0.5737626",
"0.56709653",
"0.56708896",
"0.56510776",
"0.5591629",
"0.55301946",
"0.54957455",
"0.54871815",
"0.5349537",
"0.53... | 0.74611837 | 0 |
A no context matcher used to register element type bindings in the extension points | @Override
public boolean matches(EObject eObject) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isExtensionElement();",
"public interface BindingExt extends ExtComponent {\n\n//TODO: define get/set methods for properties for BindingExt if the extension element has attributes.\n /**\n * This class is an implementation of BindingExt interface that provides java model\n * for binding... | [
"0.57127917",
"0.55783224",
"0.55655456",
"0.5406063",
"0.5267254",
"0.5265003",
"0.52289563",
"0.51348263",
"0.51191777",
"0.5081036",
"0.5051629",
"0.5010273",
"0.5005084",
"0.50026673",
"0.49854517",
"0.49754617",
"0.49715143",
"0.49562225",
"0.49417144",
"0.49247524",
"0.... | 0.0 | -1 |
/ CsvFileWriter csvFileWriter = new CsvFileWriter(issuerRepository); CsvFileWriter csvFileWriter = new CsvFileWriter(); csvFileWriter.writerCsvFile("test.csv"); | @Scheduled(cron = "*/10 * * * * *")
public void startJob() {
BooleanBuilder booleanIssuer = new BooleanBuilder();
booleanIssuer.and(QIssuer.issuer.status.eq(Issuer.Status.ACTIVE));
QIssuer qIssuer = QIssuer.issuer;
JPAQuery<?> query = new JPAQuery<Void>(entityManager);
List<Issuer> listIssuer = query.select(qIssuer).from(qIssuer).where(booleanIssuer).fetch();
for (Issuer issuer : listIssuer) {
System.out.println(issuer.toString());
}
FileWriter fileWirter = null;
if (!(CollectionUtils.isEmpty(listIssuer))) {
try {
fileWirter = new FileWriter("test.csv");
fileWirter.append(FILE_HEADER.toString());
fileWirter.append(NEW_LINE_SEPARATOR);
for (Issuer issuer : listIssuer) {
fileWirter.append(String.valueOf(issuer.getId()));
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(issuer.getIssuerCode());
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(issuer.getName());
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(String.valueOf(issuer.getStatus()));
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(String.valueOf(issuer.getLastUpdate()));
fileWirter.append(NEW_LINE_SEPARATOR);
}
System.out.println("writer successfully !");
} catch (IOException e) {
slackService.send(" " + e.getMessage());
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createCsvFile(String fileName) { \n \n try { \n ... | [
"0.7434009",
"0.7417792",
"0.71553713",
"0.7029317",
"0.70234513",
"0.69050026",
"0.68682665",
"0.6802154",
"0.6745614",
"0.67368007",
"0.6712076",
"0.671174",
"0.6662091",
"0.6586632",
"0.65664953",
"0.65067613",
"0.6494751",
"0.6482678",
"0.64821905",
"0.64521694",
"0.63853... | 0.5879617 | 54 |
private JLabel label; Creates new form lala | public plateInterface() {
initComponents();
setTitle("停车场计费系统");
// label = new JLabel();
// add(label);
chooser = new JFileChooser();
chooser = new JFileChooser();
chooser.setCurrentDirectory(new File("E:"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }",
"public void setLabel(String label) {\n this.label = label;\n }",
"void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}",
"public void setLabel( String label ) {\r\n lbl = label;\r\n ... | [
"0.75298506",
"0.7524063",
"0.7500044",
"0.74234414",
"0.7376604",
"0.7270919",
"0.7255701",
"0.7213383",
"0.7213383",
"0.72027576",
"0.7196441",
"0.71478236",
"0.7134711",
"0.7129573",
"0.7122222",
"0.71081716",
"0.7103396",
"0.7101679",
"0.70693505",
"0.70609784",
"0.703655... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
choose = new javax.swing.JButton();
PicLocation = new javax.swing.JTextField();
money = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
action = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jLabel3 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
choose.setLabel("选择");
choose.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chooseActionPerformed(evt);
}
});
PicLocation.setDisabledTextColor(new java.awt.Color(0, 0, 0));
PicLocation.setEnabled(false);
PicLocation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PicLocationActionPerformed(evt);
}
});
jLabel1.setText("图片位置:");
jLabel2.setText("应收金额:");
action.setText("确认计费");
action.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
try {
actionActionPerformed(evt);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 303, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 440, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE)
.addContainerGap()))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(37, 37, 37)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(PicLocation, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(choose))
.addGroup(layout.createSequentialGroup()
.addComponent(money, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(action))))
.addGroup(layout.createSequentialGroup()
.addGap(38, 38, 38)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(407, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(choose)
.addComponent(PicLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(action)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(money, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(13, 13, 13))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7321245",
"0.7292375",
"0.7292375",
"0.7292375",
"0.7286756",
"0.7250393",
"0.7215278",
"0.7208825",
"0.7197639",
"0.71918",
"0.7185626",
"0.716065",
"0.71489197",
"0.7094757",
"0.7081307",
"0.7057363",
"0.69892997",
"0.6978972",
"0.6956389",
"0.69543713",
"0.69465107",
... | 0.0 | -1 |
Determines if the graph has been initially laid out. This method should be called prior to any painting to be done by the graph layout manager, as most internal variables are only initialized during layout. | public boolean isInitialized() {
return initialized;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isWasLayouting();",
"public boolean isShowGraph() {\n return showGraph;\n }",
"@Override\n public boolean isSetupToBeDrawn() {\n return !(designParameters == null || slabStrip == null || graphicsContext == null || colour == null || slabImageScale == 0);\n }",
"public bo... | [
"0.6365209",
"0.63248104",
"0.6278527",
"0.6223948",
"0.609486",
"0.6079276",
"0.60197127",
"0.58729726",
"0.58501685",
"0.58457625",
"0.5820516",
"0.58128214",
"0.5809735",
"0.57965875",
"0.575688",
"0.5728283",
"0.57107466",
"0.56418276",
"0.5605365",
"0.55889493",
"0.55601... | 0.0 | -1 |
Implementation of the visit() method of the Visitor interface. | public boolean visit( Vertex vertexToVisit ) {
VisualVertex visualVertex;
Arc2D arc;
double annulusWedgeDegree;
double positionDegree;
double startAtDegree;
int depth;
VertexDegrees degrees = new VertexDegrees();
VertexDegrees parentDegrees;
this.logCategory.debug( "Visiting " + vertexToVisit );
try {
visualVertex = this.vGraph.getVisualVertex( vertexToVisit );
depth = this.tree.getDepth( vertexToVisit );
this.logCategory.debug( "Depth: " + depth );
if( this.tree.getRoot() == vertexToVisit ) {
// For the root of the tree, set the annulus wedge to 360 degrees
annulusWedgeDegree = 360;
center = new Point2D.Double( this.tree.getHeight() * this.radius / 2, this.tree.getHeight() * this.radius / 2 );
this.logCategory.debug( "Setting center " + center );
visualVertex.setLocation( center.getX(), center.getY() );
degrees.annulusWedgeDegree = annulusWedgeDegree;
degrees.positionDegree = 0;
this.annulusWedgeMap.put( vertexToVisit, degrees );
this.previousParent = vertexToVisit;
}
else {
// For non-root, set the annulus wedge to:
// ( leaves of current node / leaves of parent node ) * annulus wedge of parent
Vertex parent = this.tree.getParent( vertexToVisit );
parentDegrees = (VertexDegrees) this.annulusWedgeMap.get( parent );
double parentAnnulusWedge = parentDegrees.annulusWedgeDegree;
Tree parentSubTree = this.tree.getSubTree( parent );
Tree subTree = this.tree.getSubTree( vertexToVisit );
// Note that 120 degrees here is valid only if the concentric circles
// are doubling in radius for every depth.
// 120 degrees is taken from cos(A)=radius/(radius/2)=0.5
annulusWedgeDegree =
Math.min(
( (double) subTree.getLeaves().size() / (double) parentSubTree.getLeaves().size() ) * parentAnnulusWedge,
Math.toDegrees( Math.acos( (this.radius * ( depth - 1 ) ) / (this.radius * depth) ) ) * 2 );
this.logCategory.debug( "Annulus Wedge: " + annulusWedgeDegree );
if( this.previousDepth != this.tree.getDepth( vertexToVisit ))
this.depthStartAtDegrees = parentDegrees.positionDegree - ( parentDegrees.annulusWedgeDegree / 2 );
if( this.previousParent != parent )
this.depthStartAtDegrees = parentDegrees.positionDegree - ( parentDegrees.annulusWedgeDegree / 2 );
positionDegree = this.depthStartAtDegrees + annulusWedgeDegree / 2;
this.logCategory.debug( "Start At:" + this.depthStartAtDegrees );
this.logCategory.debug( "Position:" + positionDegree );
arc = new Arc2D.Double(
center.getX() - ( this.radius / 2 ) * ( depth - 1 ),
center.getY() - ( this.radius / 2 ) * ( depth - 1 ),
(double) ( this.radius * ( depth - 1 )),
(double) ( this.radius * ( depth - 1 )),
positionDegree, 1,
Arc2D.OPEN );
visualVertex.setLocation( arc.getEndPoint().getX(), arc.getEndPoint().getY() );
degrees.annulusWedgeDegree = annulusWedgeDegree;
degrees.positionDegree = positionDegree;
this.annulusWedgeMap.put( vertexToVisit, degrees );
this.depthStartAtDegrees += annulusWedgeDegree;
this.previousDepth = this.tree.getDepth( vertexToVisit );
this.previousParent = parent;
}
}
catch( Exception ex ) {
ex.printStackTrace();
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void visit();",
"@Override\r\n\tpublic void visit() {\n\r\n\t}",
"@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}",
"public abstract void accept(Visitor visitor);",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}",
"@Override\r\n\tpublic void a... | [
"0.8366334",
"0.7958937",
"0.7832401",
"0.7749395",
"0.77420354",
"0.77406996",
"0.7737616",
"0.77192974",
"0.77192974",
"0.7693925",
"0.7683223",
"0.76634365",
"0.76525265",
"0.7572184",
"0.75688535",
"0.7487952",
"0.7477007",
"0.7414134",
"0.7370206",
"0.73087937",
"0.72621... | 0.0 | -1 |
Returns file information similar to the output of "stat t". | public String toTerseString()
{
return TextUtils.join(" ", new String[] {
this.file.getPath(),
String.valueOf(this.size),
String.valueOf(this.blockCount),
Integer.toHexString(this.mode.getValue()),
String.valueOf(this.userId),
String.valueOf(this.groupId),
Long.toHexString(this.deviceId),
String.valueOf(this.inode),
String.valueOf(this.hardLinkCount),
Long.toHexString(this.deviceIdSpecial >> 8),
Long.toHexString(this.deviceIdSpecial & 0xff),
String.valueOf(this.lastAccessed.getTime() / 1000),
String.valueOf(this.lastModified.getTime() / 1000),
String.valueOf(this.lastChanged.getTime() / 1000),
String.valueOf(this.blockSize)
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int stat(String pathname, Stat statbuf);",
"public static native FileStatus stat(String path) throws IOException;",
"@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n short stat();",
"private void gatherFile(FileStatus[] fstat)\r\n\t{\r\n\t inputSize = 0;\t\r\n\t paths = n... | [
"0.6731613",
"0.67311794",
"0.6406757",
"0.6403349",
"0.63856024",
"0.6312656",
"0.6284699",
"0.6283627",
"0.6167909",
"0.6156262",
"0.61181855",
"0.6081698",
"0.6064068",
"0.59487724",
"0.5940782",
"0.59348524",
"0.5930514",
"0.58837676",
"0.58837676",
"0.5872565",
"0.586764... | 0.0 | -1 |
Returns file information similar to the output of "ls l". | public String toLsString()
{
String sizeOrDeviceId = "";
String name = this.file.getName();
String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;
switch (this.type)
{
case File:
sizeOrDeviceId = String.valueOf(this.size);
break;
case CharacterDevice:
case BlockDevice:
sizeOrDeviceId = String.format("%3d,%4d", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);
break;
case SymbolicLink:
name = name + " -> " + (realPath == null ? "(null)" : new File(realPath).getName());
break;
}
return String.format("%s %-8s %-8s %8s %s %s",
this.mode.getSymbols(),
//this.hardLinkCount,
RootTools.getUserName(this.userId),
RootTools.getUserName(this.groupId),
sizeOrDeviceId,
new SimpleDateFormat("yyyy-MM-dd HH:mm").format(this.lastModified),
name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String ls()\n\t{\n\t\tString toReturn = \"\";\n\t\tIterable<Position<FileElement>> kids = fileSystem.children(currentFileElement);\n\t\tif (kids == null) return \"Nothing to list\";\n\t\t{\n\t\t\tfor (Position<FileElement> fe : kids)\n\t\t\t{\n\t\t\t\ttoReturn += fe.toString() + \", \";\n\t\t\t}\n\t\t}\n\t\... | [
"0.6484505",
"0.6459852",
"0.64421624",
"0.64248914",
"0.63727325",
"0.63632584",
"0.63548",
"0.62452006",
"0.61788696",
"0.6128605",
"0.6098189",
"0.60909027",
"0.6077558",
"0.60538304",
"0.60274315",
"0.60051584",
"0.5960581",
"0.59550196",
"0.5949784",
"0.5946854",
"0.5937... | 0.54871494 | 61 |
Returns file information similar to the output of "ls l". | @Override
public String toString()
{
return this.toLsString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String ls()\n\t{\n\t\tString toReturn = \"\";\n\t\tIterable<Position<FileElement>> kids = fileSystem.children(currentFileElement);\n\t\tif (kids == null) return \"Nothing to list\";\n\t\t{\n\t\t\tfor (Position<FileElement> fe : kids)\n\t\t\t{\n\t\t\t\ttoReturn += fe.toString() + \", \";\n\t\t\t}\n\t\t}\n\t\... | [
"0.6484505",
"0.6459852",
"0.64421624",
"0.64248914",
"0.63727325",
"0.63632584",
"0.63548",
"0.62452006",
"0.61788696",
"0.6128605",
"0.6098189",
"0.60909027",
"0.6077558",
"0.60538304",
"0.60274315",
"0.60051584",
"0.5960581",
"0.59550196",
"0.5949784",
"0.5946854",
"0.5937... | 0.0 | -1 |
Creates new form Insert_Details | public InsertOrUpdate_Details() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}",
"int insert(AbiFormsForm record);",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipol... | [
"0.6356612",
"0.6323447",
"0.6210363",
"0.6193803",
"0.61913824",
"0.61446065",
"0.6140461",
"0.61097145",
"0.6107637",
"0.5962219",
"0.59357303",
"0.59339064",
"0.59335524",
"0.59266186",
"0.59235597",
"0.5911977",
"0.5899524",
"0.58428687",
"0.58306676",
"0.5827202",
"0.581... | 0.6997195 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jComboBox1 = new javax.swing.JComboBox<>();
buttonGroup1 = new javax.swing.ButtonGroup();
buttonGroup2 = new javax.swing.ButtonGroup();
jPanel9 = new javax.swing.JPanel();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel2 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
Court_ID = new javax.swing.JTextField();
Address = new javax.swing.JTextField();
Chief_Justice = new javax.swing.JTextField();
Jury = new javax.swing.JTextField();
Submit_Court = new javax.swing.JButton();
Update_Court = new javax.swing.JButton();
Supreme = new javax.swing.JRadioButton();
High = new javax.swing.JRadioButton();
Tribunal = new javax.swing.JRadioButton();
District = new javax.swing.JRadioButton();
Sessions = new javax.swing.JRadioButton();
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
Court_ID_Case = new javax.swing.JTextField();
Verdict = new javax.swing.JTextField();
Verdict_Date = new javax.swing.JTextField();
Charges = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
Submit_Case = new javax.swing.JButton();
Case_ID = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
Update_Case = new javax.swing.JButton();
CivilButton = new javax.swing.JRadioButton();
CriminalButton = new javax.swing.JRadioButton();
jPanel4 = new javax.swing.JPanel();
jLabel23 = new javax.swing.JLabel();
jLabel24 = new javax.swing.JLabel();
jLabel25 = new javax.swing.JLabel();
Prison_ID = new javax.swing.JTextField();
Prison_Location = new javax.swing.JTextField();
Jurisdiction = new javax.swing.JTextField();
Update_Prison = new javax.swing.JButton();
Blocks = new javax.swing.JTextField();
jLabel48 = new javax.swing.JLabel();
jLabel49 = new javax.swing.JLabel();
No_Of_Cells = new javax.swing.JTextField();
Update_Prison1 = new javax.swing.JButton();
jPanel5 = new javax.swing.JPanel();
jLabel27 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
jLabel29 = new javax.swing.JLabel();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
Staff_Salary = new javax.swing.JTextField();
Staff_Designation = new javax.swing.JTextField();
Staff_Address = new javax.swing.JTextField();
Staff_ID = new javax.swing.JTextField();
Staff_DoB = new javax.swing.JTextField();
Submit_Staff = new javax.swing.JButton();
Staff_Name = new javax.swing.JTextField();
Update_Staff = new javax.swing.JButton();
jLabel43 = new javax.swing.JLabel();
Morning_Box = new javax.swing.JCheckBox();
Evening_Box = new javax.swing.JCheckBox();
Noon_Box = new javax.swing.JCheckBox();
Night_Box = new javax.swing.JCheckBox();
jPanel3 = new javax.swing.JPanel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
Inmate_ID = new javax.swing.JTextField();
Release_Date = new javax.swing.JTextField();
Alias = new javax.swing.JTextField();
Inmate_Name = new javax.swing.JTextField();
Start_Date = new javax.swing.JTextField();
Inmate_DoB = new javax.swing.JTextField();
Case_ID_Inmate = new javax.swing.JTextField();
Prison_ID_Inmate = new javax.swing.JTextField();
Supervisor_Staff_ID = new javax.swing.JTextField();
Submit_Inmate = new javax.swing.JButton();
Update_Inmate = new javax.swing.JButton();
jLabel50 = new javax.swing.JLabel();
jLabel51 = new javax.swing.JLabel();
Blocks_Inmate = new javax.swing.JTextField();
Cells_Inmate = new javax.swing.JTextField();
jPanel6 = new javax.swing.JPanel();
jLabel33 = new javax.swing.JLabel();
jLabel34 = new javax.swing.JLabel();
Job_ID = new javax.swing.JTextField();
jScrollPane2 = new javax.swing.JScrollPane();
Job_Description = new javax.swing.JTextArea();
Submit_Job_Desc = new javax.swing.JButton();
Submit_Job_Desc1 = new javax.swing.JButton();
jPanel10 = new javax.swing.JPanel();
jLabel26 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jPanel11 = new javax.swing.JPanel();
jLabel47 = new javax.swing.JLabel();
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
jPanel9.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBackground(new java.awt.Color(204, 255, 255));
jLabel6.setText("Court_ID");
jLabel9.setText("Address");
jLabel10.setText("Chief_Justice");
jLabel11.setText("Level");
jLabel12.setText("Jury_Members");
Jury.setToolTipText("(Enter multiple values separated by comma.)");
Jury.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JuryActionPerformed(evt);
}
});
Submit_Court.setBackground(new java.awt.Color(255, 255, 255));
Submit_Court.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Court.setText("Insert");
Submit_Court.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_CourtActionPerformed(evt);
}
});
Update_Court.setBackground(new java.awt.Color(255, 255, 255));
Update_Court.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Court.setText("Update");
Update_Court.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_CourtActionPerformed(evt);
}
});
buttonGroup1.add(Supreme);
Supreme.setText("Supreme");
buttonGroup1.add(High);
High.setText("High");
High.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
HighActionPerformed(evt);
}
});
buttonGroup1.add(Tribunal);
Tribunal.setText("Tribunal");
buttonGroup1.add(District);
District.setText("District");
buttonGroup1.add(Sessions);
Sessions.setText("Sessions");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap(64, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Submit_Court, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Update_Court, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(jLabel9)
.addComponent(jLabel12)
.addComponent(jLabel11)
.addComponent(jLabel10))
.addGap(32, 32, 32)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Sessions)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(Tribunal)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(District))
.addComponent(Chief_Justice, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Court_ID, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Address, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Jury, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(Supreme)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(High))))))
.addGap(54, 54, 54))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(165, 165, 165)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(Court_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(Address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(Chief_Justice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel11)
.addComponent(Supreme)
.addComponent(High))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Tribunal)
.addComponent(District))
.addGap(18, 18, 18)
.addComponent(Sessions)
.addGap(15, 15, 15)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel12)
.addComponent(Jury, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(Submit_Court)
.addGap(18, 18, 18)
.addComponent(Update_Court)
.addContainerGap(231, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Court", jPanel2);
jPanel1.setBackground(new java.awt.Color(204, 255, 255));
jLabel2.setText("Type");
jLabel3.setText("Verdict");
jLabel4.setText("Verdict_Date");
jLabel5.setText("Court_ID");
Verdict_Date.setToolTipText("YYYY-MM-DD");
Verdict_Date.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Verdict_DateActionPerformed(evt);
}
});
Charges.setToolTipText("(Enter multiple values separated by comma.)");
Charges.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ChargesActionPerformed(evt);
}
});
jLabel7.setText("Charges");
Submit_Case.setBackground(new java.awt.Color(255, 255, 255));
Submit_Case.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Case.setText("Insert");
Submit_Case.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_CaseActionPerformed(evt);
}
});
Case_ID.setToolTipText("");
Case_ID.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Case_IDActionPerformed(evt);
}
});
jLabel13.setText("Case_ID");
Update_Case.setBackground(new java.awt.Color(255, 255, 255));
Update_Case.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Case.setText("Update");
Update_Case.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_CaseActionPerformed(evt);
}
});
buttonGroup2.add(CivilButton);
CivilButton.setText("Civil");
CivilButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CivilButtonActionPerformed(evt);
}
});
buttonGroup2.add(CriminalButton);
CriminalButton.setText("Criminal");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Submit_Case, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel13)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Case_ID, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel3)
.addComponent(jLabel2)
.addComponent(jLabel5)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(52, 52, 52)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(CivilButton)
.addGap(92, 92, 92)
.addComponent(CriminalButton))
.addComponent(Verdict)
.addComponent(Court_ID_Case)
.addComponent(Verdict_Date, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(Charges)))
.addComponent(Update_Case, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(60, 60, 60)
.addComponent(jLabel8)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(190, 190, 190)
.addComponent(jLabel8))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(155, 155, 155)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel13)
.addComponent(Case_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(CivilButton)
.addComponent(CriminalButton))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(Verdict, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(Verdict_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(Court_ID_Case, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(Charges, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(27, 27, 27)
.addComponent(Submit_Case)
.addGap(18, 18, 18)
.addComponent(Update_Case)
.addContainerGap(273, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Case", jPanel1);
jPanel4.setBackground(new java.awt.Color(204, 255, 255));
jLabel23.setText("Prison_ID");
jLabel24.setText("Location");
jLabel25.setText("Jurisdiction");
Prison_ID.setToolTipText("");
Jurisdiction.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JurisdictionActionPerformed(evt);
}
});
Update_Prison.setBackground(new java.awt.Color(255, 255, 255));
Update_Prison.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Prison.setText("Update");
Update_Prison.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_PrisonActionPerformed(evt);
}
});
Blocks.setToolTipText("(Enter multiple values separated by comma.)");
Blocks.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BlocksActionPerformed(evt);
}
});
jLabel48.setText("Blocks");
jLabel49.setText("No_Of_Cells");
No_Of_Cells.setToolTipText("(Enter multiple values separated by comma.)");
No_Of_Cells.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
No_Of_CellsActionPerformed(evt);
}
});
Update_Prison1.setBackground(new java.awt.Color(255, 255, 255));
Update_Prison1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Prison1.setText("Insert");
Update_Prison1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_Prison1ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(44, 44, 44)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel25)
.addComponent(jLabel48)
.addComponent(jLabel49, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(43, 43, 43)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(No_Of_Cells, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Jurisdiction, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(Blocks, javax.swing.GroupLayout.Alignment.TRAILING)))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel23)
.addComponent(jLabel24))
.addGap(56, 56, 56)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Prison_Location, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Prison_ID)))
.addComponent(Update_Prison, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Update_Prison1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(74, Short.MAX_VALUE))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(150, 150, 150)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel23)
.addComponent(Prison_ID))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel24)
.addComponent(Prison_Location))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel25)
.addComponent(Jurisdiction))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel48)
.addComponent(Blocks))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel49)
.addComponent(No_Of_Cells))
.addGap(18, 18, 18)
.addComponent(Update_Prison1)
.addGap(18, 18, 18)
.addComponent(Update_Prison)
.addGap(275, 275, 275))
);
Prison_Location.getAccessibleContext().setAccessibleDescription("");
Jurisdiction.getAccessibleContext().setAccessibleDescription("");
jTabbedPane1.addTab("Prison", jPanel4);
jPanel5.setBackground(new java.awt.Color(204, 255, 255));
jLabel27.setText("Staff_ID");
jLabel28.setText("Name");
jLabel29.setText("Date_Of_Birth");
jLabel30.setText("Designation");
jLabel31.setText("Address");
jLabel32.setText("Salary");
Staff_Salary.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_SalaryActionPerformed(evt);
}
});
Staff_Designation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_DesignationActionPerformed(evt);
}
});
Staff_Address.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_AddressActionPerformed(evt);
}
});
Staff_ID.setToolTipText("Ignore on Insertion");
Staff_ID.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_IDActionPerformed(evt);
}
});
Staff_DoB.setToolTipText("YYYY-MM-DD");
Staff_DoB.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_DoBActionPerformed(evt);
}
});
Submit_Staff.setBackground(new java.awt.Color(255, 255, 255));
Submit_Staff.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Staff.setText("Insert");
Submit_Staff.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_StaffActionPerformed(evt);
}
});
Staff_Name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_NameActionPerformed(evt);
}
});
Update_Staff.setBackground(new java.awt.Color(255, 255, 255));
Update_Staff.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Staff.setText("Update");
Update_Staff.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_StaffActionPerformed(evt);
}
});
jLabel43.setText("Shift");
Morning_Box.setText("Morning");
Evening_Box.setText("Evening");
Noon_Box.setText("Noon");
Night_Box.setText("Night");
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(51, 51, 51)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jLabel43)
.addGap(65, 65, 65)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(Morning_Box)
.addGap(18, 18, 18)
.addComponent(Noon_Box))
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(Evening_Box)
.addGap(18, 18, 18)
.addComponent(Night_Box))))
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel28)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel29)
.addComponent(jLabel32)
.addComponent(jLabel31)
.addComponent(jLabel30)
.addComponent(jLabel27))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(Staff_Designation, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_Address, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_DoB, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_Name, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_Salary)
.addComponent(Staff_ID, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(Update_Staff, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Submit_Staff, javax.swing.GroupLayout.PREFERRED_SIZE, 287, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(82, Short.MAX_VALUE))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(149, 149, 149)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel27)
.addComponent(Staff_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel28)
.addComponent(Staff_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel29)
.addComponent(Staff_DoB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(15, 15, 15)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel31)
.addComponent(Staff_Address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel30)
.addComponent(Staff_Designation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel32)
.addComponent(Staff_Salary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel43)
.addComponent(Morning_Box)
.addComponent(Noon_Box))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Evening_Box)
.addComponent(Night_Box))
.addGap(18, 18, 18)
.addComponent(Submit_Staff)
.addGap(18, 18, 18)
.addComponent(Update_Staff)
.addContainerGap(212, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Staff", jPanel5);
jPanel3.setBackground(new java.awt.Color(204, 255, 255));
jLabel14.setText("Inmate_ID");
jLabel15.setText("Name");
jLabel16.setText("Alias");
jLabel17.setText("Date_Of_Birth");
jLabel18.setText("Start_Date");
jLabel19.setText("Release Date");
jLabel20.setText("Case_ID");
jLabel21.setText("Prison_ID");
jLabel22.setText("Supervisor_Staff_ID");
Release_Date.setToolTipText("YYYY-MM-DD");
Alias.setToolTipText("(Enter multiple values separated by comma.)");
Inmate_Name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Inmate_NameActionPerformed(evt);
}
});
Start_Date.setToolTipText("YYYY-MM-DD");
Start_Date.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Start_DateActionPerformed(evt);
}
});
Inmate_DoB.setToolTipText("YYYY-MM-DD");
Case_ID_Inmate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Case_ID_InmateActionPerformed(evt);
}
});
Submit_Inmate.setBackground(new java.awt.Color(255, 255, 255));
Submit_Inmate.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Inmate.setText("Insert");
Submit_Inmate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_InmateActionPerformed(evt);
}
});
Update_Inmate.setBackground(new java.awt.Color(255, 255, 255));
Update_Inmate.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Inmate.setText("Update");
Update_Inmate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_InmateActionPerformed(evt);
}
});
jLabel50.setText("Cell_No");
jLabel51.setText("Block");
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(38, 38, 38)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Submit_Inmate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel22)
.addComponent(jLabel21)
.addComponent(jLabel20)
.addComponent(jLabel19)
.addComponent(jLabel18)
.addComponent(jLabel17)
.addComponent(jLabel16)
.addComponent(jLabel15)
.addComponent(jLabel14)
.addComponent(jLabel51)
.addComponent(jLabel50))
.addGap(41, 41, 41)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Blocks_Inmate)
.addComponent(Prison_ID_Inmate, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Case_ID_Inmate)
.addComponent(Release_Date)
.addComponent(Start_Date)
.addComponent(Inmate_DoB)
.addComponent(Alias)
.addComponent(Inmate_Name)
.addComponent(Supervisor_Staff_ID)
.addComponent(Cells_Inmate)
.addComponent(Inmate_ID)))
.addComponent(Update_Inmate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(43, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(Inmate_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel15)
.addComponent(Inmate_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel16)
.addComponent(Alias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel17)
.addComponent(Inmate_DoB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel18)
.addComponent(Start_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel19)
.addComponent(Release_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel20)
.addComponent(Case_ID_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel21)
.addComponent(Prison_ID_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel22)
.addComponent(Supervisor_Staff_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel51)
.addComponent(Blocks_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel50)
.addComponent(Cells_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(Submit_Inmate)
.addGap(18, 18, 18)
.addComponent(Update_Inmate)
.addContainerGap())
);
jTabbedPane1.addTab("Inmate", jPanel3);
jPanel6.setBackground(new java.awt.Color(204, 255, 255));
jLabel33.setText("Job_ID");
jLabel34.setText("Description");
Job_ID.setToolTipText("Ignore on Insertion");
Job_ID.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Job_IDActionPerformed(evt);
}
});
Job_Description.setColumns(20);
Job_Description.setRows(5);
jScrollPane2.setViewportView(Job_Description);
Submit_Job_Desc.setBackground(new java.awt.Color(255, 255, 255));
Submit_Job_Desc.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Job_Desc.setText("Insert");
Submit_Job_Desc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_Job_DescActionPerformed(evt);
}
});
Submit_Job_Desc1.setBackground(new java.awt.Color(255, 255, 255));
Submit_Job_Desc1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Job_Desc1.setText("Update");
Submit_Job_Desc1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_Job_Desc1ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(62, 62, 62)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel33)
.addComponent(jLabel34))
.addGap(37, 37, 37)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Job_ID)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(Submit_Job_Desc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Submit_Job_Desc1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(68, Short.MAX_VALUE))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(126, 126, 126)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel33)
.addComponent(Job_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel34)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addComponent(Submit_Job_Desc)
.addGap(18, 18, 18)
.addComponent(Submit_Job_Desc1)
.addContainerGap(224, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Job_Info", jPanel6);
jPanel10.setBackground(new java.awt.Color(51, 51, 255));
jPanel10.setPreferredSize(new java.awt.Dimension(370, 236));
jLabel26.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel26.setForeground(new java.awt.Color(255, 255, 255));
jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel26.setText("Insert Details");
jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Prison_Management_System/Images/logout.png"))); // NOI18N
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setBackground(new java.awt.Color(255, 255, 255));
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Prison_Management_System/Images/back.png"))); // NOI18N
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addGap(22, 22, 22)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(66, 66, 66)
.addComponent(jLabel26)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1)
.addGap(42, 42, 42))
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(jLabel26)
.addComponent(jButton2))
.addContainerGap(26, Short.MAX_VALUE))
);
jPanel11.setBackground(new java.awt.Color(255, 51, 51));
jPanel11.setPreferredSize(new java.awt.Dimension(370, 236));
jLabel47.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel47.setForeground(new java.awt.Color(255, 255, 255));
jLabel47.setText("© Copyright 2017");
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addGap(157, 157, 157)
.addComponent(jLabel47)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
.addContainerGap(44, Short.MAX_VALUE)
.addComponent(jLabel47)
.addGap(39, 39, 39))
);
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)
.addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 425, javax.swing.GroupLayout.PREFERRED_SIZE))
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTabbedPane1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
... | 0.0 | -1 |
enables DanishNewsGen to set adapter | public void setlv()
{
if(dng!= null)
lv.setAdapter(dng.adapter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public void setUpAdapter();",
"void setAdapter(SqueezerItemAdapter<T> adapter);",
"private void initializeAdapter() {\n }",
"private void setAdapter(){\n ArrayList<Veranstaltung>ver = new ArrayList<>(studium.getLVS());\n recyclerView = findViewById(R.id.rc);\n LinearLayoutMan... | [
"0.6524895",
"0.6410094",
"0.62911135",
"0.6091598",
"0.60460144",
"0.6020585",
"0.6011046",
"0.59832054",
"0.59477913",
"0.5947138",
"0.5942495",
"0.5936751",
"0.58043146",
"0.58021873",
"0.5702789",
"0.570272",
"0.5650501",
"0.5649316",
"0.5648063",
"0.55979013",
"0.5587200... | 0.0 | -1 |
TODO Autogenerated method stub process(new Upcase(), s); process(new Downcase(), s); process(new Splitter(), s); | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void firstToUpperCase() {\n \n }",
"private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}",
"private static String xcase(String s, Function<Character, Character> f) {\n if (s == null || s.length() == 0) {\n return s;\n ... | [
"0.60298026",
"0.5849163",
"0.5835364",
"0.56800544",
"0.56738573",
"0.5659604",
"0.5631036",
"0.547665",
"0.54618776",
"0.54474455",
"0.54403496",
"0.5412",
"0.5376158",
"0.5298793",
"0.5298751",
"0.52641803",
"0.5260725",
"0.5257722",
"0.5251756",
"0.52517533",
"0.525166",
... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.