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 |
|---|---|---|---|---|---|---|
This provides a URL where more info on this model can be obtained | public URL getInfoURL() throws MalformedURLException{
return new URL("http://www.opensha.org/glossary-attenuationRelation-SHAKE_MAP_2003");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getT_modelUri();",
"public abstract URI getModelURI();",
"public String getURL() {\n\t\treturn getName();\n\t}",
"public String getMetadataURL();",
"public static URL getUrlForModels()\r\n {\r\n String idCountry = P.getCountryId(); \r\n int idBrand = Config.BRAND_ID_BE;\r\n... | [
"0.74355936",
"0.6745319",
"0.6432176",
"0.6410115",
"0.6354154",
"0.63198143",
"0.63159907",
"0.61868024",
"0.6178241",
"0.61672115",
"0.6153434",
"0.6135526",
"0.6135526",
"0.6111958",
"0.6111291",
"0.60653305",
"0.6053841",
"0.60508996",
"0.6045575",
"0.60447246",
"0.60421... | 0.5948768 | 44 |
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. | public static void main(String[] args) {
Scanner in=new Scanner(System.in);
String str=in.next();
try
{
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] bytes=md.digest(str.getBytes());
for(byte b:bytes)
System.out.format("%02x",b);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSolution s = new Solution();\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in... | [
"0.7528344",
"0.7304691",
"0.7261607",
"0.72358435",
"0.7178392",
"0.71748453",
"0.702059",
"0.702059",
"0.6892331",
"0.68708533",
"0.68564165",
"0.6824939",
"0.6822358",
"0.6809998",
"0.6809359",
"0.6805775",
"0.6783585",
"0.67702085",
"0.67571783",
"0.6753767",
"0.675155",
... | 0.0 | -1 |
0 is tip, 1 is notification, 2 is confirmation for type Constructor | public PopupNotificationView(Context context, String[] args, String head, String line1, String line2, int type) {
super(context);
popupNotificationController = new PopupNotificationController(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Notifications(Integer postID, Integer requesterID, Integer providerID,\n Boolean accepted, String type){\n //PostID, requesterID, providerID,locationOfRequester need to create variable?\n status = accepted;\n this.type = type;\n this.requestID = Integer.toString(requesterID);\... | [
"0.6438896",
"0.6225067",
"0.61578643",
"0.61450875",
"0.61395544",
"0.6108685",
"0.61048514",
"0.60619813",
"0.59999156",
"0.5990547",
"0.5990547",
"0.5953234",
"0.5913343",
"0.5905694",
"0.5905694",
"0.5888488",
"0.58762217",
"0.58762217",
"0.58757997",
"0.5864233",
"0.5853... | 0.53661156 | 64 |
initializes properties of popup | public void initEventsAndProperties() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Popup() {}",
"protected void initializePopup() {\r\n\t popup = new JPopupMenu();\r\n\t popup.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t popup.setLayout(new BorderLayout());\r\n\t popup.addPopupMenuListener(this);\r\n\t popup.add(panel, BorderLayout.CENTER);\r\n\t}",
... | [
"0.7336934",
"0.7230825",
"0.7092988",
"0.6898295",
"0.6837112",
"0.68027014",
"0.67455965",
"0.67159986",
"0.66984093",
"0.6675576",
"0.6551967",
"0.65327644",
"0.6526507",
"0.65209013",
"0.6496813",
"0.6421392",
"0.6399362",
"0.63916683",
"0.6387427",
"0.6378963",
"0.637310... | 0.59775746 | 31 |
Called to display popup on screen | public void createPopupWindow() {
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showGenPopup() {\n\t\ttv_popupTitle.setText(R.string.title3);\n\t\ttv_popupInfo.setText(R.string.description3);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}",
"public void trigger... | [
"0.80599767",
"0.7839839",
"0.781624",
"0.74625486",
"0.74486697",
"0.73916924",
"0.7226725",
"0.7219974",
"0.7194748",
"0.70689076",
"0.7026216",
"0.7019742",
"0.70021737",
"0.69930255",
"0.6978887",
"0.69619215",
"0.6938119",
"0.69246763",
"0.6864514",
"0.68641484",
"0.6820... | 0.73149705 | 6 |
initializes confirmation button click handler for confirmation type popups | private void initializeEvents() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void init() {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n layout = inflater.inflate(R.layout.approvalaction_popup, null);\n showButton();\n bindButtonClick();\n }",
"private void handleConfirmEvent() {\n this.confirm = new Button(\"Add Food\");\n ... | [
"0.65931845",
"0.6478362",
"0.6352241",
"0.6214009",
"0.61052865",
"0.6036259",
"0.6011901",
"0.59849346",
"0.59806836",
"0.5938019",
"0.58191085",
"0.58081514",
"0.57470214",
"0.57373047",
"0.57259774",
"0.57208073",
"0.5717496",
"0.57060826",
"0.56879526",
"0.56875795",
"0.... | 0.0 | -1 |
MAKE SURE TO SET THIS | public void setController(PopupNotificationController pnc) {
this.popupNotificationController = pnc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void assignment() {\n\n\t\t\t}",
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n ... | [
"0.6487603",
"0.6351773",
"0.6326958",
"0.6269625",
"0.6239834",
"0.62253916",
"0.62245256",
"0.6194587",
"0.61618745",
"0.6145724",
"0.613299",
"0.6129209",
"0.6111882",
"0.61019605",
"0.61019605",
"0.61019605",
"0.6082098",
"0.6080425",
"0.6080425",
"0.6078244",
"0.6078244"... | 0.0 | -1 |
returns popupwindows associated with this view | public PopupWindow getPopup() {
return popup;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ListPopupWindow getListPopupWindow() {\n if (this.p == null) {\n this.p = new ListPopupWindow(getContext());\n this.p.setAdapter(this.a);\n this.p.setAnchorView(this);\n this.p.setModal(true);\n this.p.setOnItemClickListener(this.i);\n ... | [
"0.72141266",
"0.71760195",
"0.64648026",
"0.6363565",
"0.63207895",
"0.60828054",
"0.6074504",
"0.60149485",
"0.59127927",
"0.58440936",
"0.5799818",
"0.57377625",
"0.5718699",
"0.5665314",
"0.5658919",
"0.5624037",
"0.5598026",
"0.55549216",
"0.55380344",
"0.54747987",
"0.5... | 0.6266 | 5 |
Generate segments from inner database. | private static List<SequenceDatabase> createSegmentDatabases(SequencesHelper sequencesHelper, int win_size){
List<Date> dates = sequencesHelper.getDates();
List<Sequence> sequences = sequencesHelper.getSequences();
List<SequenceDatabase> segmentdbs = new LinkedList<SequenceDatabase>();
int volumn_max = win_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Segment> getSegments() throws Exception {\n\t\tlogger.log(\"in getSegments\");\n\t\tSegmentsDAO dao = new SegmentsDAO();\n\t\t\n\t\treturn dao.getAllSegments();\n\t}",
"com.google.ads.googleads.v6.common.Segments getSegments();",
"@Override\n\tprotected void initializeSegments() {\n\t\tsegments.add(new Sq... | [
"0.57476836",
"0.55638945",
"0.55128604",
"0.54772997",
"0.535029",
"0.52599317",
"0.51800424",
"0.5150574",
"0.514435",
"0.51144356",
"0.510725",
"0.5085007",
"0.50322556",
"0.50176394",
"0.50072175",
"0.49140763",
"0.4902814",
"0.48767814",
"0.48646912",
"0.48402205",
"0.48... | 0.63656807 | 0 |
Generate patterns from a sequence database. Several constraints are considered during pattern mining: 1. exclude 1length pattern. (implemented in this func.) 2. exclude patterns with duplicate itemsets between adj ones, e.g, (a)(a)(b). (implemented in prefixspan only) 3. mining closed patterns. (implemented in PatternS... | private static PatternSet genPatternSetFromDatabase(SequenceDatabase db, double minsup, String user_id) throws IOException{
// for BIDE
// AlgoBIDEPlus algo = new AlgoBIDEPlus();
// SequentialPatterns raw_patterns = algo.runAlgorithm(db, null, (int)Math.floor(minsup*db.size()));
// Prefixspan
AlgoPrefixSpan ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERS... | [
"0.54769045",
"0.51834583",
"0.5151333",
"0.5088888",
"0.5062125",
"0.5007663",
"0.49680504",
"0.49343288",
"0.493428",
"0.49263477",
"0.4884971",
"0.48526353",
"0.4843577",
"0.48419133",
"0.47715273",
"0.46834138",
"0.46827075",
"0.46574804",
"0.4628975",
"0.46226564",
"0.45... | 0.72866243 | 0 |
set read buffer size. | public RcClient readBufferSize(int readBufferSize) {
this.readBufferSize = readBufferSize;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setBufferSize(int bufferSize);",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"public int readBufferSize_() {\n return readBufferSize_;\n }",
"void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.... | [
"0.74824554",
"0.74047166",
"0.7047626",
"0.7023299",
"0.7010787",
"0.6911419",
"0.68422216",
"0.6798093",
"0.6697709",
"0.61632454",
"0.6136852",
"0.61281717",
"0.6125794",
"0.60880464",
"0.6070251",
"0.60224444",
"0.5985452",
"0.59790045",
"0.5910962",
"0.5880494",
"0.58793... | 0.6740882 | 8 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_languages, container, false);
backLanguageIv = view.findViewById(R.id.back_language_iv);
tv_ar=view.findVi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
Writes a trace message to indicate that a given section of code has begun. | public static void beginSection(String sectionName) {
checkWhetherSupport();
if (sTraceBeginMethod != null && sTraceEndMethod != null) {
try {
sTraceBeginMethod.invoke(null, sViewTag, sectionName);
} catch (IllegalAccessException e) {
Log.d(TAG, "<... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void trace(String message);",
"public void trace(String message);",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }",
"public void trace(String msg) {\n\t\tif (this.logLevel <= BackupLogger.TRACE) {\n\t\t\twrite(\"TRCE \" + msg);\n\t\t\tSystem.out.printl... | [
"0.6278449",
"0.6278449",
"0.6233154",
"0.5851283",
"0.57330775",
"0.5691115",
"0.5649335",
"0.5648005",
"0.5534115",
"0.54896766",
"0.54829323",
"0.5480035",
"0.54515624",
"0.54139096",
"0.5409387",
"0.5377877",
"0.5375287",
"0.5370288",
"0.5336875",
"0.5335039",
"0.52952206... | 0.49285838 | 56 |
Writes a trace message to indicate that a given section of code has ended. | public static void endSection() {
checkWhetherSupport();
if (sTraceBeginMethod != null && sTraceEndMethod != null) {
try {
sTraceEndMethod.invoke(null, sViewTag);
} catch (IllegalAccessException e) {
Log.d(TAG, "<endSection> IllegalAccessException"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void trace_end_run();",
"@Override\n\tpublic void traceExit() {\n\n\t}",
"public void trace(String message);",
"public void trace(String message);",
"protected abstract void trace_end_loop();",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ ... | [
"0.61704475",
"0.5745925",
"0.558625",
"0.558625",
"0.55675095",
"0.54571337",
"0.54543096",
"0.5383986",
"0.53751415",
"0.5372393",
"0.53007483",
"0.5255638",
"0.5251708",
"0.523584",
"0.51207703",
"0.5110438",
"0.5069767",
"0.5044347",
"0.50271255",
"0.5026731",
"0.5016068"... | 0.5996287 | 1 |
Creates instance of Customer. | public Customer createCustomer() {
return new Customer(nameNested, surNameNested, ageNested, streetNested);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"private Customer createCustomerInstance(String name, String email, String phoneNumber) {\n Customer customer = new Customer();\n customer.setName(name);\n customer.se... | [
"0.79925406",
"0.79925406",
"0.79925406",
"0.79925406",
"0.77519524",
"0.76054275",
"0.7600889",
"0.75333464",
"0.7481743",
"0.7460265",
"0.74540657",
"0.7452097",
"0.74308914",
"0.7414585",
"0.7414585",
"0.74139243",
"0.74139243",
"0.74079365",
"0.73919564",
"0.7383117",
"0.... | 0.8379581 | 0 |
Sets age to future customer object. | public CustomerBuilder setAge(final int ageParam) {
this.ageNested = ageParam;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setAge(Age age) {\n this.age = age;\n }",
"public void setAge(final int age) {\n mAge = age;\n }",
"protected void setAge(int age) {\r\n\t\tthis.age = age;\r\n\t}",
"public void setAge(int age) {\n this.age = age;\n }",
"public void setAge(int age) {\n th... | [
"0.68000096",
"0.67793983",
"0.6738344",
"0.6680086",
"0.6680086",
"0.6680086",
"0.6680086",
"0.6680086",
"0.6680086",
"0.66334206",
"0.6617202",
"0.6617202",
"0.6617202",
"0.6617202",
"0.6617202",
"0.6613853",
"0.6605976",
"0.66040224",
"0.6559282",
"0.6554555",
"0.6547714",... | 0.6186099 | 43 |
Sets street to future customer object. | public CustomerBuilder setStreet(final String streetParam) {
this.streetNested = streetParam;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStreet(String street) {\n this.street = street;\n }",
"public void setStreet(String street) {\r\n\t\tthis.street = street;\r\n\t}",
"public void setStreet(java.lang.String street) {\n this.street = street;\n }",
"public void setStreet(java.lang.String street) {\n thi... | [
"0.7391813",
"0.7313256",
"0.7287468",
"0.7287468",
"0.71992326",
"0.7190295",
"0.70753896",
"0.6800842",
"0.67652583",
"0.67652583",
"0.67071843",
"0.6693968",
"0.66105795",
"0.6587258",
"0.6497946",
"0.64875394",
"0.6470555",
"0.6426636",
"0.64138067",
"0.6406539",
"0.63704... | 0.72168714 | 4 |
DO NOT MODIFY THE ARGUMENTS WITH "final" PREFIX. IT IS READ ONLY | public int[] repeatedNumber(final int[] a) {
long rSum = 0, rSumSq = 0, aSum = 0, aSumSq = 0;
for (int i = 0; i < a.length; i++) {
aSum += a[i];
rSum += (i + 1);
aSumSq += (long) ((long) a[i] * (long) a[i]);
rSumSq += (long) ((long) (i + 1) * (long) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n boolean isFinal() {\n return false;\n }",
"@Override\n public boolean isFinal() {\n return true;\n }",
"String getFinal();",
"final void finalMethod() { // this can not be overridden\n\t\tSystem.out.println(\"This is final method\");\n\t}",
"public... | [
"0.64031005",
"0.63852453",
"0.6362262",
"0.63134307",
"0.6300406",
"0.62817603",
"0.61175656",
"0.61175656",
"0.6098666",
"0.60418564",
"0.60360056",
"0.5997481",
"0.59437853",
"0.58230853",
"0.5761426",
"0.57496125",
"0.57156605",
"0.57069546",
"0.5682106",
"0.5679673",
"0.... | 0.0 | -1 |
Time: O(log n) Space: O(log n) | public boolean isPowerOfTwo(int n) {
if (n <= 0) return false;
if (n == 1) return true;
if (n % 2 != 0) return false;
return isPowerOfTwo(n / 2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }",
"public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++... | [
"0.7014303",
"0.68179303",
"0.63995945",
"0.5963805",
"0.58476496",
"0.5806024",
"0.57951784",
"0.57093376",
"0.5667611",
"0.5640324",
"0.56231517",
"0.55975163",
"0.5589011",
"0.5581908",
"0.5571093",
"0.55572635",
"0.5538343",
"0.55326325",
"0.55228597",
"0.55046123",
"0.54... | 0.0 | -1 |
a power of two in binary form has and only has one "1". | public boolean isPowerOfTwo2(int n) {
return n>0 && Integer.bitCount(n) == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != 0; n = n >> 1)\n count += 1;\n \n return 1 << count;\n }",
"private boolean isPowerOfTwo(int i){\n return (i & (i - 1)) == 0;\n }",
"private boolean isPowerOfTwo... | [
"0.7408528",
"0.7366516",
"0.72801334",
"0.72614264",
"0.7189108",
"0.7064041",
"0.7064037",
"0.70144695",
"0.68882346",
"0.6857956",
"0.68518984",
"0.6832224",
"0.66621786",
"0.66617227",
"0.6644413",
"0.6640987",
"0.6628227",
"0.65118414",
"0.6479714",
"0.6456217",
"0.64535... | 0.70644116 | 5 |
/ FIND THE FIRST MISSING POSITIVE ENTRY Find the first missing positive entry | static int findTheFirstMissingPositiveEntry(int array[]) {
for (int i = 0; i < array.length; i++) {
while ((array[i] > 0) && (array[i] != i + 1)) {
int elem = array[i];
if (array[elem - 1] == elem) break;
Utilities.swap(array, i, elem - 1);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int firstMissingPositive(int[] A) {\n int len = A.length;\n for (int i = 0; i < len; i++) {\n int x = A[i];\n while (x <= len && x > 0 && A[x - 1] != x) {\n int tmp = A[x - 1];\n A[x - 1] = x;\n x = tmp;\n }\n ... | [
"0.7386792",
"0.712365",
"0.7057618",
"0.6985881",
"0.6983865",
"0.68746984",
"0.68361557",
"0.677433",
"0.6670265",
"0.6664299",
"0.6657089",
"0.65650946",
"0.64637446",
"0.6446674",
"0.6204569",
"0.61749613",
"0.6124834",
"0.6074321",
"0.60619706",
"0.60390776",
"0.60346544... | 0.7804214 | 0 |
/ COMPUTE THE MAXIMUM PRODUCT OF ALL ENTRIES BUT ONE Compute maximum product of all entries but one | static Integer maximumProductOfAllEntriesButOneBySuffixArray(Integer array[]) {
int suffix[] = new int[array.length];
suffix[array.length - 1] = 1;
for (int i = array.length - 1; i > 0; i--) {
suffix[i - 1] = suffix[i] * array[i];
}
int prefixProduct = 1;
in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int maxProduct(int[] nums) {\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n int local = 1;\n for (int j = i; j < nums.length; j++) {\n local *= nums[j];\n if (local > max) {\n max = local;\n ... | [
"0.7200033",
"0.7133598",
"0.69570404",
"0.68782324",
"0.68696487",
"0.6812578",
"0.68094516",
"0.67827857",
"0.6763081",
"0.67480844",
"0.6725409",
"0.6686861",
"0.66595274",
"0.6638526",
"0.66378164",
"0.65757614",
"0.65739596",
"0.6470875",
"0.6446431",
"0.64323765",
"0.62... | 0.69733095 | 2 |
Compute maximum product of all entries but one | static Integer maximumProductOfAllEntriesButOneByCountingZeroAndNegatives(Integer array[]) {
int zeroes = 0;
int negatives = 0;
for (int i = 0; i < array.length; i++) {
if (array[i] < 0) negatives++;
else if (array[i] == 0) zeroes++;
}
if (zeroes > 1) re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int maxProduct(int[] nums) {\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n int local = 1;\n for (int j = i; j < nums.length; j++) {\n local *= nums[j];\n if (local > max) {\n max = local;\n ... | [
"0.74352527",
"0.71556544",
"0.7129674",
"0.7109855",
"0.70566976",
"0.70001364",
"0.6987375",
"0.69620395",
"0.69151354",
"0.6901382",
"0.6848551",
"0.67936665",
"0.6710506",
"0.66801196",
"0.66255236",
"0.6602476",
"0.65866274",
"0.6502024",
"0.6494519",
"0.6489321",
"0.645... | 0.6923831 | 8 |
Variant: compute an array where ith element is a product of all elements except ith | static Integer[] maximumProductOfAllEntriesButOne_ExceptI(Integer array[]) {
Integer result[] = new Integer[array.length];
result[0] = 1;
for (int i = 1; i < array.length; i++) {
result[i] = array[i - 1] * result[i - 1];
}
Integer suffix = 1;
for (int i = a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int[] productExceptSelfByMath(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n int[] preMul = new int[len];\n int[] sufMul = new int[len];\n\n // head and tail\n preMul[0] = 1;\n sufMul[len - 1] = 1;\n ... | [
"0.7475642",
"0.7403989",
"0.7365363",
"0.7323907",
"0.7269128",
"0.72593534",
"0.7166533",
"0.71426517",
"0.713334",
"0.7128633",
"0.7112454",
"0.7029622",
"0.6922723",
"0.689231",
"0.67322415",
"0.66849566",
"0.6629116",
"0.6592509",
"0.6550134",
"0.65213853",
"0.6501715",
... | 0.6828454 | 14 |
/ ROTATE AN ARRAY Rotate array to the right | static <T> T[] rotateAnArray(T array[], int shift) {
shift %= array.length;
for (int i = 0; i < array.length / 2; i++) Utilities.swap(array, i, array.length - i - 1);
for (int i = 0; i < shift / 2; i++) Utilities.swap(array, i, shift - i - 1);
for (int i = shift; i < shift + (array.len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void rotate_right(int[] arr, int rotate){\n for (int j = 0; j < rotate; j++) {\n int temp = arr[j];\n for (int i = j; i < arr.length+rotate; i+=rotate) {\n if(i-rotate < 0)\n temp = arr[i];\n else if(i >= arr.length)\n ... | [
"0.78666335",
"0.7509529",
"0.6967428",
"0.6961856",
"0.6901671",
"0.68130344",
"0.6803834",
"0.6773982",
"0.6730598",
"0.666269",
"0.6645433",
"0.6598597",
"0.65200096",
"0.65170586",
"0.64791524",
"0.6376201",
"0.6374272",
"0.6367365",
"0.63142735",
"0.6312665",
"0.631232",... | 0.68099785 | 6 |
/ IDENTIFY POSITIONS ATTACKED BY ROOKS Identify positions attacked by rocks | static int[][] identifyPositionsAttackedByRooks(int board[][]) {
int columns = board[0].length;
int rows = board.length;
boolean row0ToBeCleared = false;
boolean column0ToBeCleared = false;
for (int row = 0; row < rows; row++) {
for (int column = 0; column < colum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void robPlayer(HexLocation location, int victimIndex);",
"public Location attack() {\n resetBoard();\n\n if (getHits().isEmpty()) {\n// System.out.println(\"Hunting\");\n\n for (final int[] r : board) {\n for (int c = 0; c < r.length; c++) {\... | [
"0.6697186",
"0.6119978",
"0.6011526",
"0.579835",
"0.56965184",
"0.569392",
"0.56442815",
"0.5638061",
"0.5616897",
"0.5538974",
"0.553498",
"0.55147576",
"0.5498405",
"0.54929405",
"0.54775804",
"0.54487056",
"0.5432103",
"0.54120183",
"0.54035026",
"0.5397033",
"0.53693914... | 0.5822841 | 3 |
/ JUSTIFY TEXT Create string with spaces | private static String formNewLineWithSpaces(String words[], int startIndex, int endIndex, int amountOfSpaces) {
int numWordsCurrLine = endIndex - startIndex + 1;
StringBuilder line = new StringBuilder();
for (int i = startIndex; i < endIndex; ++i) {
line.append(words[i]);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String trimer (String text){\n\t\treturn text.replaceAll(\"\\\\s+\", \" \");\n\t}",
"public static String formatText(String t) {\r\n if (t.length() > 0) {\r\n char chars[] = t.toCharArray();\r\n for (int index = 0; index < chars.length; index++)\r\n if (c... | [
"0.7170839",
"0.6715209",
"0.6692935",
"0.65720916",
"0.6518829",
"0.635671",
"0.63333046",
"0.63101494",
"0.62670183",
"0.6209636",
"0.61634517",
"0.61413026",
"0.61386436",
"0.6114857",
"0.6034258",
"0.60250014",
"0.5994418",
"0.5987368",
"0.5983861",
"0.5967118",
"0.594329... | 0.0 | -1 |
/ IMPLEMENT LIST ZIPPING Implement list zipping | static <T> ListNode<T> listZipping(ListNode<T> list) {
int size = 1;
ListNode<T> current = list;
while (current.next != null) {
size++;
current = current.next;
}
if (size < 2) return list;
current = list;
for (int i = 0; i < (size - 1) /... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addFilesToZip(List<File> files,String outputPath) throws IOException \r\n\t{\r\n\t\t// create a zip output stream\r\n\t\tString zipFileName = outputPath + File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\tOutputStreamWithLength chunkedFile = new OutputStreamWithLength(zipFile... | [
"0.6217737",
"0.5865231",
"0.5736094",
"0.5688783",
"0.56839865",
"0.55582166",
"0.55271524",
"0.5501962",
"0.5496029",
"0.54438996",
"0.54148364",
"0.53633034",
"0.533659",
"0.5324414",
"0.53126675",
"0.53121203",
"0.52825916",
"0.5279581",
"0.5267379",
"0.5258368",
"0.52154... | 0.59219074 | 1 |
/ COPY A POSTINGS LIST Copy a posting list (with jump nodes) | static <T> JumpListNode<T> copyAPostingList(JumpListNode<T> list) {
JumpListNode<T> pointer = list;
// Copy/change next links
while (pointer != null) {
JumpListNode<T> pointerCopy = new JumpListNode<>(pointer.data);
pointerCopy.next = pointer.next;
pointer.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cloneList(){\n Node insert = Head;\n while(insert != null){\n Node temp = new Node(insert.data);\n temp.next = insert.next;\n insert.next = temp;\n insert = temp.next;\n }\n\n //Adjusting arbitrary pointers\n\n Node move = H... | [
"0.5376252",
"0.5353382",
"0.53246844",
"0.53047955",
"0.52683127",
"0.5247191",
"0.5230266",
"0.5207111",
"0.5158795",
"0.5150617",
"0.5137743",
"0.51301",
"0.51301",
"0.5104551",
"0.510256",
"0.5044328",
"0.502536",
"0.5011501",
"0.49975765",
"0.49872568",
"0.4968627",
"0... | 0.6638095 | 0 |
/ COMPUTE THE LONGEST SUBSTRING WITH MATCHING PARENS Compute the longest substring with matching parens | static int computeTheLongestSubstringWithMatchingParens(String string) {
Deque<Integer> stack = new ArrayDeque<>();
int length = 0;
int endIndex = -1;
for (int i = 0; i < string.length(); i++) {
if (string.charAt(i) == '(') stack.push(i);
else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getLongestRepeatedSubstring();",
"private static int lengthOfLongestSubstring2(String s) {\n int maxLength = 0;\n int currentlength = 0;\n int startIndex = -1;\n Map<Character, Integer> charMap = new HashMap<>();\n \n for(int index = 0; index < s.l... | [
"0.7091542",
"0.69262666",
"0.68891567",
"0.68686956",
"0.6819619",
"0.6798957",
"0.6762888",
"0.6762732",
"0.67492044",
"0.6746517",
"0.671684",
"0.6695981",
"0.66889757",
"0.6686277",
"0.6684295",
"0.66829234",
"0.66460484",
"0.6643131",
"0.6632719",
"0.6606871",
"0.6602845... | 0.71266246 | 0 |
Add elements to the max queue | private static void addToTheMax(Deque<TrafficElement> max, TrafficElement elem) {
while (!max.isEmpty() && (max.getLast().volume < elem.volume)) max.removeLast();
max.addLast(elem);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Queue<Integer> addToQueue(Queue<Integer> q, int item, int maxLength){\n q.add(item);\n while(q.size() > maxLength){\n q.remove(); //make sure the queue size isn't larger than its supposed to be\n }\n //System.out.println(\"queue_after_added \" + q... | [
"0.7104528",
"0.6650826",
"0.66218466",
"0.65843403",
"0.65636307",
"0.65382254",
"0.65091115",
"0.6437351",
"0.6393595",
"0.6381631",
"0.6352477",
"0.6322962",
"0.6290486",
"0.6224168",
"0.61967516",
"0.61845875",
"0.6162947",
"0.6160788",
"0.6110025",
"0.60801095",
"0.60790... | 0.7055197 | 1 |
Compute the maximum of a sliding window | static List<TrafficElement> computeTheMaximumOfASlidingWindow(TrafficElement traffic[], int w) {
List<TrafficElement> result = new ArrayList<>();
Deque<TrafficElement> queue = new ArrayDeque<>();
ArrayDeque<TrafficElement> max = new ArrayDeque<>();
for (int i = 0; i < traffic.length; i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void maxSlidingWindow(int a[], int w, int b[]) {\n\t\tLinkedList<Integer> queue = new LinkedList<Integer>();\r\n\t\t\r\n\t\tfor(int i = 0; i < w; i++) {\r\n\t\t\twhile(!queue.isEmpty() && a[queue.getLast()] < a[i]) {\r\n\t\t\t\tqueue.removeLast();\r\n\t\t\t}\r\n\t\t\tqueue.add(i);\r\n\t\t}\r\n\t\tfor(int i ... | [
"0.69930995",
"0.67644334",
"0.66682196",
"0.64255196",
"0.6370917",
"0.6250058",
"0.62395",
"0.6070407",
"0.6020696",
"0.60180664",
"0.6006743",
"0.5955308",
"0.59434575",
"0.5929159",
"0.59278995",
"0.59245527",
"0.59002864",
"0.5899717",
"0.5893989",
"0.589096",
"0.5860263... | 0.66700256 | 2 |
/ IMPLEMENT A POSTORDER TRAVERSAL WITHOUT RECURSION Implement a postorder traversal without recursion | static <T> List<T> implementAPostorderTraversalWithoutRecursion(BinaryTreeNode<T> tree) {
List<T> result = new ArrayList<>();
Deque<BinaryTreeNode<T>> stack = new ArrayDeque<>();
BinaryTreeNode<T> previous = tree;
stack.push(tree);
while (!stack.isEmpty()) {
BinaryT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }",
"@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tr... | [
"0.752856",
"0.7499294",
"0.72346675",
"0.7185156",
"0.7149486",
"0.7035552",
"0.70055985",
"0.7000566",
"0.6977649",
"0.6948749",
"0.69363534",
"0.69363534",
"0.67891014",
"0.674058",
"0.67366964",
"0.6693092",
"0.6678914",
"0.6639794",
"0.6615187",
"0.6578908",
"0.657499",
... | 0.6092616 | 74 |
Convert a star's BV magnitude to RGB. Used function from here: . | public static Color bvToColor(double bv)
{
double t;
double r = 0, g = 0, b = 0;
bv = Math.max(-0.4, Math.min(2.0, bv));
if ((bv >= -0.40) && (bv < 0.00))
{
t = (bv + 0.40) / (0.00 + 0.40);
r = 0.61 + (0.11 * t) + (0.1 * t * t);
}
else if ((bv >= 0.00) && (bv < 0.40))
{
t = (bv - 0.00) / (0.40... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void toSpace( float[] rgb );",
"public abstract int rgbColor(double u, double v);",
"public ColorRgb getColorRgbBiLinear(double x, double y)\n {\n //-----------------------------------------------------------------\n double u = x - Math.floor(x);\n double v = y - Math... | [
"0.5766554",
"0.5713684",
"0.5668813",
"0.5593201",
"0.5561546",
"0.5507541",
"0.543038",
"0.54080915",
"0.53903276",
"0.53230464",
"0.53061736",
"0.53009754",
"0.527609",
"0.52595496",
"0.5238916",
"0.52292657",
"0.51836234",
"0.51834244",
"0.5165126",
"0.5163478",
"0.515665... | 0.6306082 | 0 |
Convert the star type/class to an RGB color. Lookup table from here: | @SuppressWarnings("nls")
public static Color typeClassToColor(String type, String classs)
{
if ("O5".equals(type) && "V".equals(classs))
{
return new Color(155, 176, 255);
}
if ("O6".equals(type) && "V".equals(classs))
{
return new Color(162, 184, 255);
}
if ("O7".equals(type) && "V".equals(classs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.awt.Color getColor();",
"public int getColor();",
"public int getColor();",
"public abstract RGBIColor toRGBColor();",
"String getColor();",
"public char getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"private Color ... | [
"0.6522093",
"0.6520436",
"0.6520436",
"0.64357436",
"0.63722914",
"0.6335227",
"0.6298062",
"0.6298062",
"0.6298062",
"0.6298062",
"0.6298062",
"0.6257388",
"0.61402476",
"0.61191624",
"0.6097911",
"0.6063837",
"0.60549563",
"0.60549563",
"0.6035239",
"0.6035239",
"0.6035239... | 0.5984496 | 25 |
Created by nagendra on 24/3/17. | public interface PermissionResult {
void permissionGranted();
void permissionDenied();
void permissionForeverDenied();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubl... | [
"0.60957754",
"0.59183544",
"0.5843173",
"0.5830013",
"0.58267367",
"0.57314193",
"0.57314193",
"0.57247674",
"0.5721815",
"0.56978625",
"0.5693988",
"0.56931585",
"0.56635857",
"0.56551814",
"0.5650106",
"0.5650106",
"0.5650106",
"0.5650106",
"0.5650106",
"0.5636496",
"0.563... | 0.0 | -1 |
To determine if elements have children we have to get more level than we should display | private int setDepth() {
int getDepth = depth;
if (depth != -1) {
getDepth = depth + 1;
}
return getDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasChildren();",
"public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }",
"@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}",
"public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n... | [
"0.7803133",
"0.75802946",
"0.7578237",
"0.74491394",
"0.7361364",
"0.73317856",
"0.73317856",
"0.727308",
"0.7080681",
"0.7060853",
"0.7044791",
"0.7037943",
"0.7027483",
"0.6989828",
"0.692493",
"0.6911637",
"0.6911637",
"0.68597424",
"0.68311256",
"0.6659019",
"0.65863514"... | 0.0 | -1 |
TODO this is stub: put code here | @RequestMapping(value = "/max_weight_dag", method = RequestMethod.GET)
@ResponseBody
public DirectedGraph getMaxWeightDAG() {
UndirectedGraph graph = new UndirectedGraph(5);
graph.addEdge(0, 1, 10.0);
graph.addEdge(1, 2, 11.0);
graph.addEdge(2, 3, 13.0);
graph.addEd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@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\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n... | [
"0.6018807",
"0.5930521",
"0.58762133",
"0.58629894",
"0.58463013",
"0.5788513",
"0.5745352",
"0.5745352",
"0.5745352",
"0.5745352",
"0.5745352",
"0.5745352",
"0.5689296",
"0.56578505",
"0.5638213",
"0.5638213",
"0.5632502",
"0.5624611",
"0.5620831",
"0.5604544",
"0.55861795"... | 0.0 | -1 |
Converts the inbound message exchange to an ActiveMQ JMS message | @Converter
public ActiveMQMessage toMessage(Exchange exchange) throws JMSException {
ActiveMQMessage message = createActiveMQMessage(exchange);
getBinding().appendJmsProperties(message, exchange);
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Message makeJmsMessage(Exchange exchange, Session session) throws JMSException {\n Message answer = null;\n if( exchange instanceof JmsExchange ) {\n JmsExchange jmsExchange = (JmsExchange)exchange;\n answer = jmsExchange.getIn().getJmsMessage();\n }\n if( ... | [
"0.6518331",
"0.6443014",
"0.6285116",
"0.61491466",
"0.6002658",
"0.5828386",
"0.5817976",
"0.5755255",
"0.5650657",
"0.5564986",
"0.55339706",
"0.54845643",
"0.5449543",
"0.54090965",
"0.53907204",
"0.5385917",
"0.53766215",
"0.53757095",
"0.53174156",
"0.5309452",
"0.52862... | 0.7963466 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException {
int servInp, servOup;
ServerSocket ssk = new ServerSocket(8080);
Socket sk = ssk.accept();
Scanner ser = new Scanner(sk.getInputStream());
servInp = ser.nextInt();
servInp *= servInp;
PrintStream pss = new PrintStream(sk.getOutputStream());... | {
"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 |
Display the first 500 characters of the response string. | @Override
public void onResponse(String response) {
try {
JSONObject obj = new JSONObject(response);
String content = obj.getString("content");
getAPI.setText("Response is: " + content);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i... | [
"0.60981774",
"0.54616565",
"0.52525747",
"0.51992726",
"0.5148689",
"0.51043826",
"0.5014136",
"0.50134504",
"0.5007669",
"0.49549934",
"0.4943962",
"0.49368027",
"0.49275893",
"0.48958516",
"0.489581",
"0.48855156",
"0.4863597",
"0.48630118",
"0.48571903",
"0.4852229",
"0.4... | 0.0 | -1 |
Set unique dataset id (dataset index) | public void setDatasetId(int datasetId) {
this.datasetId = datasetId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDatasetId() {\n return datasetId;\n }",
"public Builder setDatasetIds(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDatasetIdsIsMutable();\n datasetIds_.set(index, value);\n onChanged();\n ret... | [
"0.68005294",
"0.6561447",
"0.6493329",
"0.64900994",
"0.6425693",
"0.63892823",
"0.6312768",
"0.620577",
"0.61353904",
"0.61353904",
"0.6100836",
"0.6033749",
"0.6028846",
"0.59738314",
"0.59712464",
"0.59629846",
"0.59124136",
"0.5912187",
"0.58708954",
"0.5831356",
"0.5830... | 0.66096264 | 1 |
Get unique dataset id (dataset index) | public int getDatasetId() {
return datasetId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getDataId();",
"java.lang.String getDataId();",
"public String getDatasetId() {\n return (attributes.containsKey(KEY_DATASET_ID) ? (String) attributes\n .get(KEY_DATASET_ID) : null);\n }",
"public Long getDatasetId() {\n return this.datasetId;\n ... | [
"0.7463911",
"0.7463911",
"0.73827493",
"0.71447146",
"0.70247304",
"0.6721223",
"0.66586274",
"0.6621109",
"0.6462614",
"0.6452749",
"0.64305425",
"0.63684595",
"0.632693",
"0.6289161",
"0.6279593",
"0.6246488",
"0.6225446",
"0.62201184",
"0.62186587",
"0.6201031",
"0.619953... | 0.73599774 | 3 |
Set number of fractions in the dataset | public void setFractionsNumber(int fractionsNumber) {
this.fractionsNumber = fractionsNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFractions(Set<String> fractions);",
"public void setFraction(int fraction) {\n this.fraction = fraction;\n }",
"void setDefaultFractionCounter(int defaultFractionCounter);",
"void setFractional(boolean fractional);",
"public void setFactor(Double factor);",
"public void setRational (int... | [
"0.6848411",
"0.6814932",
"0.65966225",
"0.6150381",
"0.60167605",
"0.5997833",
"0.5957525",
"0.59173524",
"0.59013903",
"0.5850072",
"0.5830528",
"0.5814189",
"0.57978207",
"0.5753608",
"0.5742121",
"0.5734745",
"0.57283366",
"0.57216626",
"0.57190627",
"0.5718264",
"0.56734... | 0.6133797 | 4 |
Get number of fractions in the dataset | public int getFractionsNumber() {
return fractionsNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String get_fraction_part();",
"public int getDenominator() { \n return denominator; \n }",
"int getDefaultFractionCounter();",
"public int getDenominator()\r\n {\r\n return denominator;\r\n }",
"public long getDenominator();",
"public int getNumberOfPeptidePerFraction() {\n ... | [
"0.6462256",
"0.6404189",
"0.63944036",
"0.6363414",
"0.63443804",
"0.6301446",
"0.62764984",
"0.6207358",
"0.61965525",
"0.6165394",
"0.61628056",
"0.6141901",
"0.60558474",
"0.6027764",
"0.6016788",
"0.5970135",
"0.5967495",
"0.59349185",
"0.5934674",
"0.58823156",
"0.58822... | 0.68247163 | 0 |
Set full list of the fractions in the dataset | public void setFractionsList(Map<Integer, FractionBean> fractionsList) {
this.fractionsList = fractionsList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFractions(Set<String> fractions);",
"Set<String> getFractions();",
"public void setFraction(int fraction) {\n this.fraction = fraction;\n }",
"public void setFractionIds(List<Integer> fractionIds) {\n this.fractionIds = fractionIds;\n }",
"public List<Integer> getFractionIds() {... | [
"0.74988866",
"0.68577313",
"0.64264446",
"0.6417246",
"0.5822566",
"0.5784855",
"0.5723619",
"0.5711763",
"0.56737995",
"0.56550074",
"0.5646504",
"0.56257635",
"0.55658937",
"0.5558504",
"0.55450916",
"0.55000776",
"0.5496401",
"0.5495986",
"0.54949206",
"0.5483069",
"0.546... | 0.582816 | 4 |
Get full list of the fractions in the dataset | public Map<Integer, FractionBean> getFractionsList() {
return fractionsList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Set<String> getFractions();",
"public String get_fraction_part();",
"public List<Integer> getFractionIds() {\n return fractionIds;\n }",
"double[] getSplitRatios();",
"public abstract String getFraction();",
"public abstract double getFractionMultiplier();",
"public String getFraction() {\n ... | [
"0.750626",
"0.67452925",
"0.65490776",
"0.6358393",
"0.6156905",
"0.6000896",
"0.5999761",
"0.59324014",
"0.5867579",
"0.5807822",
"0.57246417",
"0.56897277",
"0.5660259",
"0.5619846",
"0.55382717",
"0.55373013",
"0.55251074",
"0.5496515",
"0.5484368",
"0.5418792",
"0.541852... | 0.6115067 | 5 |
Set map of protein objects included in the dataset | public void setProteinList(Map<String, ProteinBean> proteinList) {
this.proteinList = proteinList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Map<String, Protein> getProteins();",
"public abstract void setProteins(Map<String, Protein> proteins);",
"Map getIDPEXDataMap();",
"public Map<String, ProteinBean> getProteinList() {\n return proteinList;\n }",
"public VectorSet getMappedData() {\n\t\tMap<double[], ClassDescripto... | [
"0.6645832",
"0.6543754",
"0.605252",
"0.5801858",
"0.57100606",
"0.5630512",
"0.54450417",
"0.5370295",
"0.5365926",
"0.52611613",
"0.5257817",
"0.525737",
"0.524549",
"0.5242987",
"0.52331585",
"0.5209852",
"0.5187318",
"0.51738423",
"0.51623714",
"0.5154956",
"0.5150603",
... | 0.55222726 | 6 |
Get map of protein objects included in the dataset | public Map<String, ProteinBean> getProteinList() {
return proteinList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Map<String, Protein> getProteins();",
"Map getIDPEXDataMap();",
"private Map<Integer,Boolean> getProductCodeMap(){\n\t\t/*\n\t\t * Preleviamo i codici prodotto attualmente registrati nel database\n\t\t */\n\t\tStatement codeSt = null;\n\t\tResultSet codeRs = null;\n\t\ttry{\n\t\t\tcodeSt = conn... | [
"0.746468",
"0.6602548",
"0.60273147",
"0.59234583",
"0.581409",
"0.57730407",
"0.57065666",
"0.5698389",
"0.5686174",
"0.56490517",
"0.5552754",
"0.5503844",
"0.5501004",
"0.54297614",
"0.5411539",
"0.5411539",
"0.5382092",
"0.5370837",
"0.5336195",
"0.5330447",
"0.5320395",... | 0.6488482 | 2 |
Get map of peptides objects included in the dataset | public Map<Integer, PeptideBean> getPeptideList() {
return peptideList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Map<String, Protein> getProteins();",
"public Set<Integer> getPeptidesIds() {\n return peptidesIds;\n }",
"Map getIDPEXDataMap();",
"public Map<String, PeptideBean> getgPeptideList() {\n return gPeptideList;\n }",
"public ArrayList<PoolMap> get_P_maps(){\n\n\t\treturn po... | [
"0.69246686",
"0.61777043",
"0.61034405",
"0.5755533",
"0.5753291",
"0.57314855",
"0.5691066",
"0.5660323",
"0.56584466",
"0.5623518",
"0.5592995",
"0.55516034",
"0.55217105",
"0.5509442",
"0.54366696",
"0.5428042",
"0.54206586",
"0.53877443",
"0.5362479",
"0.5358738",
"0.534... | 0.6122359 | 2 |
Set map of peptides objects included in the dataset | public void setPeptideList(Map<Integer, PeptideBean> peptideList) {
this.peptideList = peptideList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Map<String, Protein> getProteins();",
"private void mapPrecincts() {\r\n\t\tMap<Integer, Precinct> allPrecincts = new HashMap<Integer, Precinct>();\r\n\t\tMap<Integer, Precinct> currPrecincts;\r\n\t\tfor (CongressionalDistrict district : districts.values()) {\r\n\t\t\tcurrPrecincts = district.get... | [
"0.624137",
"0.60023266",
"0.59855217",
"0.59752214",
"0.58619875",
"0.57562226",
"0.5679478",
"0.55687255",
"0.5485692",
"0.54769796",
"0.54249746",
"0.54091847",
"0.53397334",
"0.53322977",
"0.5325246",
"0.53235066",
"0.5303503",
"0.5291496",
"0.5289637",
"0.5275624",
"0.52... | 0.5200536 | 23 |
Get total number of peptides included in the dataset | public int getPeptidesInclude() {
return peptidesInclude;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberPeptides() {\n return numberPeptides;\n }",
"long getNumberOfPeptides(String experimentAccession);",
"public int getNumberValidatedPeptides() {\n return numberValidatedPeptides;\n }",
"public int getPeptidesNumber() {\n return peptidesNumber;\n }",
"int get... | [
"0.76115483",
"0.7350496",
"0.6884311",
"0.6769221",
"0.66127753",
"0.6552685",
"0.6545783",
"0.6536103",
"0.6449291",
"0.6448455",
"0.6367832",
"0.63480645",
"0.6321055",
"0.62652636",
"0.62521017",
"0.62128764",
"0.62122",
"0.620992",
"0.61783683",
"0.6177015",
"0.6171836",... | 0.65794986 | 5 |
Set total number of peptides included in the dataset | public void setPeptidesInclude(int peptidesInclude) {
this.peptidesInclude = peptidesInclude;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNumberPeptides(int numberPeptides) {\n this.numberPeptides = numberPeptides;\n }",
"public int getNumberPeptides() {\n return numberPeptides;\n }",
"public void setNumPoints(int np);",
"void setSpikesPerChunk(VariableAmount count);",
"private void setNumberOfPivotalElemen... | [
"0.6856906",
"0.68108076",
"0.66213614",
"0.63988674",
"0.63479316",
"0.6318248",
"0.6208529",
"0.61215496",
"0.6092464",
"0.59586513",
"0.58807755",
"0.5875866",
"0.5855403",
"0.5849785",
"0.5837141",
"0.5825385",
"0.58209777",
"0.57940584",
"0.5777623",
"0.57657254",
"0.575... | 0.61032176 | 8 |
Set the sample type | public String getSampleType() {
return sampleType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSampleType(String sampleType) {\n this.sampleType = sampleType;\n }",
"void setDataType(int type );",
"public void setSampleMode( SampleMode sampleMode );",
"void setType(java.lang.String type);",
"public void setType(String type);",
"public void setType(String type);",
"public... | [
"0.77681625",
"0.67013556",
"0.6635835",
"0.6604676",
"0.6577258",
"0.6577258",
"0.6577258",
"0.6525443",
"0.646746",
"0.64338446",
"0.6424849",
"0.6422719",
"0.6418978",
"0.6345041",
"0.6332138",
"0.6332138",
"0.633139",
"0.63275653",
"0.6323931",
"0.63173664",
"0.6283099",
... | 0.7296633 | 1 |
Set the sample type | public void setSampleType(String sampleType) {
this.sampleType = sampleType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSampleType() {\n return sampleType;\n }",
"void setDataType(int type );",
"public void setSampleMode( SampleMode sampleMode );",
"void setType(java.lang.String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type)... | [
"0.7296633",
"0.67013556",
"0.6635835",
"0.6604676",
"0.6577258",
"0.6577258",
"0.6577258",
"0.6525443",
"0.646746",
"0.64338446",
"0.6424849",
"0.6422719",
"0.6418978",
"0.6345041",
"0.6332138",
"0.6332138",
"0.633139",
"0.63275653",
"0.6323931",
"0.63173664",
"0.6283099",
... | 0.77681625 | 0 |
Get the sample processing | public String getSampleProcessing() {
return sampleProcessing;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SampleMode getSampleMode();",
"public final Object getSample()\n { return(this.sample); }",
"int getSampleMs();",
"double sample()\n\t{\n\t\treturn rb.peek();\n\t}",
"private long getSampleTime() {\n return System.currentTimeMillis();\n\n }",
"public int getSamples(){ \n return ... | [
"0.68819463",
"0.67534924",
"0.6590148",
"0.6505427",
"0.6380933",
"0.62607175",
"0.6205148",
"0.6175218",
"0.6162625",
"0.6098895",
"0.60826415",
"0.6046596",
"0.60308653",
"0.6006176",
"0.6004245",
"0.5943866",
"0.5938126",
"0.5928864",
"0.5926731",
"0.58805794",
"0.5839650... | 0.8017156 | 0 |
Set the sample processing | public void setSampleProcessing(String sampleProcessing) {
this.sampleProcessing = sampleProcessing;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSampleMode( SampleMode sampleMode );",
"public void setSamples(int samples){ \n this.samples = samples; \n }",
"public String getSampleProcessing() {\n return sampleProcessing;\n }",
"void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }",
"public void s... | [
"0.70324713",
"0.68341935",
"0.6685322",
"0.6349072",
"0.6174458",
"0.6109947",
"0.60282433",
"0.59895515",
"0.5971699",
"0.5881367",
"0.5859348",
"0.58555514",
"0.58359164",
"0.58359164",
"0.58359164",
"0.58359164",
"0.58359164",
"0.58359164",
"0.5827953",
"0.5780142",
"0.57... | 0.7816161 | 0 |
Get the type of the used instrument | public String getInstrumentType() {
return instrumentType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InstrumentDescription getInstrument();",
"public abstract String getInstrumentationClass();",
"public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String ... | [
"0.706291",
"0.66082716",
"0.6595238",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"0.6467922",
"... | 0.79181254 | 0 |
Set the type of the used instrument | public void setInstrumentType(String instrumentType) {
this.instrumentType = instrumentType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void addInstrumentType(String type) {\n\t\t\n\t}",
"public void setType(int t){\n this.type = t;\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public String getInstrumentType() {\n return... | [
"0.72472864",
"0.6886826",
"0.6738336",
"0.66934544",
"0.66698176",
"0.66659456",
"0.6645426",
"0.6587023",
"0.6578721",
"0.6578721",
"0.6578721",
"0.6575192",
"0.6558288",
"0.65189826",
"0.6517426",
"0.6514107",
"0.650337",
"0.650337",
"0.64902127",
"0.6479526",
"0.64783615"... | 0.7253497 | 0 |
Get the fragmentation mode | public String getFragMode() {
return fragMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getBufferMode();",
"public void setFragMode(String fragMode) {\n this.fragMode = fragMode;\n }",
"public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}",
"public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}",
"public String getName()\n {\n return \... | [
"0.58967",
"0.5785435",
"0.57346493",
"0.56484455",
"0.55639964",
"0.5470809",
"0.5420219",
"0.5416915",
"0.5255964",
"0.522084",
"0.522084",
"0.522084",
"0.52077305",
"0.520186",
"0.5187244",
"0.51827955",
"0.5175909",
"0.5168245",
"0.5153273",
"0.50984365",
"0.50862426",
... | 0.72307664 | 0 |
Set the fragmentation mode | public void setFragMode(String fragMode) {
this.fragMode = fragMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set_is_fragment(boolean is_fragment) {\r\n\t\tis_fragment_ = is_fragment;\r\n\t}",
"public String getFragMode() {\n return fragMode;\n }",
"public abstract void setBufferMode(int mode);",
"public void setChunking (boolean b) {\n\tchunk = b;\n }",
"public void set_frag_length(int fr... | [
"0.5854097",
"0.56764543",
"0.558198",
"0.54556364",
"0.52553105",
"0.5198629",
"0.5165174",
"0.50068176",
"0.49789476",
"0.49754733",
"0.49325275",
"0.48976523",
"0.48705605",
"0.48661378",
"0.48159227",
"0.48015544",
"0.47723323",
"0.4765611",
"0.47567827",
"0.47463906",
"0... | 0.68214595 | 0 |
Get the link for the publication | public String getPublicationLink() {
return publicationLink;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getLink();",
"public String getLink();",
"public String getLink() {\r\n return link;\r\n }",
"public String getLink() {\n return link;\n }",
"public String getLink()\n {\n return link;\n }",
"public String getLink() {\n return link;\n }",
"public String getLi... | [
"0.7721858",
"0.7634117",
"0.729712",
"0.72957903",
"0.72830844",
"0.72723204",
"0.72723204",
"0.72723204",
"0.72723204",
"0.72160417",
"0.718215",
"0.70320946",
"0.70320946",
"0.69937634",
"0.69576806",
"0.6865027",
"0.6827923",
"0.6800946",
"0.67663646",
"0.6711562",
"0.669... | 0.8340098 | 0 |
Set the link for the publication | public void setPublicationLink(String publicationLink) {
this.publicationLink = publicationLink;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLink(String link)\n {\n this.link = link;\n }",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"public void setLink(Link link) {\n \t\t_link = link;\n \t}",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"@IcalProperty(pindex =... | [
"0.74051934",
"0.73969495",
"0.7341915",
"0.73284245",
"0.72803766",
"0.725407",
"0.725407",
"0.725407",
"0.71941763",
"0.7135706",
"0.70796037",
"0.68541276",
"0.6828835",
"0.68094856",
"0.67822856",
"0.6659048",
"0.6613992",
"0.6574455",
"0.65500784",
"0.6549939",
"0.654993... | 0.7113616 | 10 |
Get the total number for the proteins identified in the dataset | public int getProteinsNumber() {
return proteinsNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int countPro() {\n\t\treturn productSubMapper.selectCountPro();\n\t}",
"public Integer getTotalPeroid() {\n return totalPeroid;\n }",
"public int findTotalPapersWithVariants() throws DAOException;",
"public int findTotalPapers() throws DAOException;",
"@Override\r\n\tpublic in... | [
"0.66702646",
"0.6668599",
"0.66141075",
"0.6596935",
"0.65589106",
"0.6466879",
"0.64008725",
"0.62893134",
"0.62838215",
"0.6257244",
"0.6255452",
"0.6183132",
"0.6181691",
"0.6168006",
"0.6155774",
"0.6120754",
"0.61182743",
"0.61182743",
"0.6116667",
"0.6110545",
"0.61040... | 0.62913805 | 7 |
Set the total number for the proteins identified in the dataset | public void setProteinsNumber(int proteinsNumber) {
this.proteinsNumber = proteinsNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTotalPeroid(Integer totalPeroid) {\n this.totalPeroid = totalPeroid;\n }",
"public void setTotal(int value) {\n this.total = value;\n }",
"public void setNumberOfPrize(Integer numberOfPrize) {\n this.numberOfPrize = numberOfPrize;\n }",
"public void setPktotal(Int... | [
"0.65918595",
"0.6299419",
"0.62176645",
"0.6197213",
"0.6061658",
"0.60327107",
"0.60223615",
"0.60144955",
"0.6009445",
"0.5977242",
"0.59630144",
"0.5926736",
"0.592039",
"0.5910957",
"0.589652",
"0.58945215",
"0.587766",
"0.5857435",
"0.5815221",
"0.58122",
"0.5811799",
... | 0.6224792 | 2 |
Get the total number for the peptides identified in the dataset | public int getPeptidesNumber() {
return peptidesNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberPeptides() {\n return numberPeptides;\n }",
"long getNumberOfPeptides(String experimentAccession);",
"public int getTotalPoints() {\n \tint total = 0;\n \tfor (int i = 0; i < assignments.size(); i++) {\n \t\ttotal += assignments.get(i).getWorth();\n \t}\n \treturn t... | [
"0.7308802",
"0.711937",
"0.65189976",
"0.65170205",
"0.64990216",
"0.6463043",
"0.63482577",
"0.63328403",
"0.63190424",
"0.62806845",
"0.62806785",
"0.6194037",
"0.61784387",
"0.61675966",
"0.6163091",
"0.6137035",
"0.61289",
"0.6124568",
"0.6115903",
"0.6097278",
"0.609022... | 0.6933136 | 2 |
Set the total number for the peptides identified in the dataset | public void setPeptidesNumber(int peptidesNumber) {
this.peptidesNumber = peptidesNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberPeptides() {\n return numberPeptides;\n }",
"public void setNumberPeptides(int numberPeptides) {\n this.numberPeptides = numberPeptides;\n }",
"public void setNumPoints(int np);",
"public int getPeptidesNumber() {\n return peptidesNumber;\n }",
"public void... | [
"0.66032183",
"0.6533022",
"0.6471363",
"0.6448619",
"0.64002305",
"0.6369105",
"0.6334607",
"0.61105764",
"0.607625",
"0.60028625",
"0.60016596",
"0.5954093",
"0.59449",
"0.59139526",
"0.5880798",
"0.58730096",
"0.585706",
"0.58523595",
"0.58458614",
"0.5829503",
"0.5811692"... | 0.64270824 | 4 |
Get the dataset general description | public String getDescription() {
return description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getDescribe();",
"String getDescribe();",
"String getDescribe();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDesc... | [
"0.75885284",
"0.7471755",
"0.7471755",
"0.745974",
"0.745974",
"0.745974",
"0.745974",
"0.745974",
"0.745974",
"0.745974",
"0.745974",
"0.745974",
"0.7448021",
"0.7369282",
"0.72478634",
"0.72428185",
"0.72241837",
"0.72241837",
"0.72241837",
"0.72241837",
"0.72241837",
"0... | 0.0 | -1 |
Set the dataset general description | public void setDescription(String description) {
this.description = description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_dictData.setDescription(description);\n\t}",
"public void setDescription(String descr);",
"public void setDescr(String descr) {\r\n this.descr = descr;\r\n }",
"public void setDescription(String newDesc){\n\n //assigns... | [
"0.7478136",
"0.73639435",
"0.72442484",
"0.7211944",
"0.7180154",
"0.7180154",
"0.7180154",
"0.7180154",
"0.7180154",
"0.7180154",
"0.71592486",
"0.71553224",
"0.7151136",
"0.7143469",
"0.7134187",
"0.7134187",
"0.7130538",
"0.7125438",
"0.71253186",
"0.7122381",
"0.7116173"... | 0.0 | -1 |
Get list of the fractions id (indexes) related to the dataset | public List<Integer> getFractionIds() {
return fractionIds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFractionIds(List<Integer> fractionIds) {\n this.fractionIds = fractionIds;\n }",
"long getIds(int index);",
"List<ChunkID> findAllChunkId() throws DataBaseException;",
"public List getAllIds();",
"public List<Integer> findAllPaintersId();",
"public java.lang.String getDatasetIds(... | [
"0.6172598",
"0.60403425",
"0.5976687",
"0.5934038",
"0.5810451",
"0.5720829",
"0.5716394",
"0.56918573",
"0.561381",
"0.55739313",
"0.557019",
"0.5546459",
"0.55188435",
"0.5507732",
"0.5486618",
"0.5486618",
"0.54764867",
"0.5442703",
"0.5441653",
"0.5426678",
"0.53823584",... | 0.7417033 | 0 |
Set list of the fractions id (indexes) related to the dataset | public void setFractionIds(List<Integer> fractionIds) {
this.fractionIds = fractionIds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Integer> getFractionIds() {\n return fractionIds;\n }",
"void setFractions(Set<String> fractions);",
"Set<String> getFractions();",
"long getIds(int index);",
"Set<II> getIds();",
"public abstract ArrayList<Integer> getIdList();",
"List<ChunkID> findAllChunkId() throws DataBaseExc... | [
"0.7059477",
"0.5957833",
"0.5506132",
"0.54412156",
"0.54161054",
"0.5378151",
"0.5273852",
"0.52670497",
"0.52603453",
"0.52516747",
"0.5224197",
"0.51650643",
"0.51366365",
"0.51246357",
"0.5101237",
"0.5077241",
"0.50502306",
"0.5049236",
"0.50292814",
"0.50259405",
"0.49... | 0.7152755 | 0 |
Get list of the peptides id (indexes) related to the dataset | public Set<Integer> getPeptidesIds() {
return peptidesIds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Integer> findAllPaintersId();",
"long getIds(int index);",
"Set<II> getIds();",
"public List<String> getPlotIds() {\n return Identifiable.getIds(getPlotList());\n }",
"public List<DataNodeId> getDataNodeIds();",
"public java.lang.String getDatasetIds(int index) {\n return dataset... | [
"0.66468334",
"0.65713125",
"0.64687353",
"0.6389401",
"0.63867295",
"0.6358427",
"0.62724686",
"0.62456435",
"0.61778927",
"0.60866463",
"0.6085435",
"0.6063051",
"0.6037012",
"0.600002",
"0.59624577",
"0.59509236",
"0.59387094",
"0.59249383",
"0.592096",
"0.5901744",
"0.589... | 0.6813477 | 0 |
Set list of the peptides id (indexes) related to the dataset | public void setPeptidesIds(Set<Integer> peptidesIds) {
this.peptidesIds = peptidesIds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<Integer> getPeptidesIds() {\n return peptidesIds;\n }",
"Set<II> getIds();",
"long getIds(int index);",
"public List<Integer> findAllPaintersId();",
"public List<String> getPlotIds() {\n return Identifiable.getIds(getPlotList());\n }",
"public SelectedPeptideIdentifications... | [
"0.671581",
"0.63901925",
"0.5917229",
"0.5895325",
"0.58584076",
"0.5836945",
"0.5781431",
"0.5733698",
"0.57208323",
"0.56678313",
"0.5641175",
"0.562574",
"0.5622237",
"0.55949664",
"0.5586435",
"0.55621994",
"0.55592865",
"0.5558484",
"0.5555956",
"0.55160975",
"0.5515396... | 0.64698416 | 1 |
Get dataset type 1: identification 2: quantification | public int getDatasetType() {
return datasetType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDataType();",
"int getDataType();",
"java.lang.String getDataType();",
"public String getDataType() ;",
"public abstract MetricDataType getType();",
"int getDataTypeValue();",
"String getDataSet();",
"public Dataset getDataset(DatasetType dataType){\n switch(dataType){\n ... | [
"0.6839161",
"0.6830116",
"0.66888154",
"0.646717",
"0.64000636",
"0.62840474",
"0.6150959",
"0.60957265",
"0.6082061",
"0.60676867",
"0.603819",
"0.5982619",
"0.5851518",
"0.58114886",
"0.5798215",
"0.57859886",
"0.57819057",
"0.5773067",
"0.5770395",
"0.573403",
"0.57281476... | 0.69216424 | 0 |
Set dataset type 1: identification 2: quantification | public void setDatasetType(int datasetType) {
this.datasetType = datasetType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDataType(int type );",
"public void setDataType(int atype)\n {\n dtype = atype;\n }",
"public int getDatasetType() {\n return datasetType;\n }",
"@Override\n\tpublic void setDataSet(IDataSet ds) {\n\t\t\n\t}",
"public void setDataType(DataType dataType) {\n this.dataTy... | [
"0.7541396",
"0.67393655",
"0.65950865",
"0.6569844",
"0.6302956",
"0.6282225",
"0.6215396",
"0.6162649",
"0.61342055",
"0.6131502",
"0.61028194",
"0.6081012",
"0.6078778",
"0.6065586",
"0.6062682",
"0.5949827",
"0.58980995",
"0.58587515",
"0.5847064",
"0.58420765",
"0.583760... | 0.7060998 | 1 |
Get the total number for the validated proteins identified in the dataset | public int getNumberValidProt() {
return numberValidProt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberValidatedPeptides() {\n return numberValidatedPeptides;\n }",
"private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}",
"Integer getTotalStepCount();",
"public double totalInsuranceCost(){\n double cost=0;\n ... | [
"0.662478",
"0.61251324",
"0.61048484",
"0.6059572",
"0.60294074",
"0.60020036",
"0.5974676",
"0.59497976",
"0.59338075",
"0.593243",
"0.5927857",
"0.59055793",
"0.5899923",
"0.5894282",
"0.5884809",
"0.5882911",
"0.58521813",
"0.5827566",
"0.5822585",
"0.5809418",
"0.580165"... | 0.0 | -1 |
Set the total number for the validated proteins identified in the dataset | public void setNumberValidProt(int numberValidProt) {
this.numberValidProt = numberValidProt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberValidatedPeptides() {\n return numberValidatedPeptides;\n }",
"public void setNumberOfPrize(Integer numberOfPrize) {\n this.numberOfPrize = numberOfPrize;\n }",
"public void setTotal(int value) {\n this.total = value;\n }",
"@Test\n void setTotal() {\n ... | [
"0.5954251",
"0.5930027",
"0.59297806",
"0.5883226",
"0.58767223",
"0.58306026",
"0.58233714",
"0.58158964",
"0.5809035",
"0.58074826",
"0.5800155",
"0.5763787",
"0.5726151",
"0.57217026",
"0.5721161",
"0.5718155",
"0.57133895",
"0.56814003",
"0.5645882",
"0.5627671",
"0.5590... | 0.0 | -1 |
Get set of standard proteins plot that used in gel charts | public List<StandardProteinBean> getStanderdPlotProt() {
return standerdPlotProt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void plotAllP() {\n plotP50();\n plotP97();\n plotP03();\n plotP10();\n plotP25();\n plotP75();\n plotP90();\n\n }",
"public void screePlotDataAlone(){\n if(!this.pcaDone)this.pca();\n\n // Create X-axis data array\n double[] compon... | [
"0.5613462",
"0.5262674",
"0.5259509",
"0.5217888",
"0.51923966",
"0.5186901",
"0.51757073",
"0.5138483",
"0.51294935",
"0.5124307",
"0.51228523",
"0.5106596",
"0.50826335",
"0.50668037",
"0.5054453",
"0.5030216",
"0.50015134",
"0.49875078",
"0.4956477",
"0.49516612",
"0.4939... | 0.5321446 | 1 |
Set list of standard proteins plot that used in gel charts | public void setStanderdPlotProt(List<StandardProteinBean> standerdPlotProt) {
this.standerdPlotProt = standerdPlotProt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void plotAllP() {\n plotP50();\n plotP97();\n plotP03();\n plotP10();\n plotP25();\n plotP75();\n plotP90();\n\n }",
"public void screePlotDataAlone(){\n if(!this.pcaDone)this.pca();\n\n // Create X-axis data array\n double[] compon... | [
"0.59865874",
"0.583209",
"0.5659115",
"0.5654113",
"0.56393474",
"0.5577398",
"0.5424417",
"0.538299",
"0.53741324",
"0.5362187",
"0.5359662",
"0.5331797",
"0.522836",
"0.51691055",
"0.5159631",
"0.5154174",
"0.5150816",
"0.51127726",
"0.5078281",
"0.50687027",
"0.50619406",... | 0.5326198 | 12 |
Get full list of peptides objects related to the dataset | public Map<String, PeptideBean> getgPeptideList() {
return gPeptideList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PilotContainer> getPilots();",
"public Set<Integer> getPeptidesIds() {\n return peptidesIds;\n }",
"public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultL... | [
"0.63314766",
"0.62971205",
"0.6042409",
"0.59147686",
"0.5844287",
"0.5824635",
"0.57766235",
"0.5722729",
"0.56708026",
"0.56641793",
"0.5658765",
"0.5641551",
"0.5617076",
"0.5604628",
"0.5566814",
"0.5536522",
"0.54998875",
"0.5488548",
"0.54800135",
"0.54783183",
"0.5476... | 0.53667945 | 31 |
Set full list of peptides objects related to the dataset | public void setgPeptideList(Map<String, PeptideBean> gPeptideList) {
this.gPeptideList = gPeptideList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPeptidesIds(Set<Integer> peptidesIds) {\n this.peptidesIds = peptidesIds;\n }",
"public Set<Integer> getPeptidesIds() {\n return peptidesIds;\n }",
"public void limpaPontos() {\n\t\tthis.pontos = new ArrayList<Point>();\n\t}",
"T setGuides(List<Guide> guides);",
"@Overrid... | [
"0.6257536",
"0.5936044",
"0.58856153",
"0.5875865",
"0.58593374",
"0.56519574",
"0.54589474",
"0.54355425",
"0.53913134",
"0.5372315",
"0.53250754",
"0.5273638",
"0.5260855",
"0.52510643",
"0.52061725",
"0.5202386",
"0.51780874",
"0.5163589",
"0.51338136",
"0.51263946",
"0.5... | 0.0 | -1 |
Creates a collection of attitudes demonstrated in the specified histories | private Collection<Integer> findCorrespondingAttitudes(Collection<int[]> specificRows, ArrayList<StrategyTable> appliedAttitudes, StrategyTable specificStrategy)
{
ArrayList<Integer> attitudes = new ArrayList<>();
if(specificRows == null)
{
double dist = Double.POSITIVE_INFINITY;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Achievement createFavoriteAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"favorite_none\");\n picturesPaths.add(\"favorite_bronze\");\n picturesPaths.add(\"favorite_silver\");\n picturesPaths.add(\"favorite_diamond\");\... | [
"0.50961095",
"0.5091419",
"0.49223632",
"0.49179816",
"0.49121138",
"0.48625594",
"0.48527592",
"0.48490256",
"0.4735156",
"0.47205895",
"0.46868515",
"0.4670841",
"0.4648987",
"0.4646351",
"0.46416622",
"0.4629107",
"0.4626677",
"0.46017098",
"0.46005446",
"0.45963213",
"0.... | 0.0 | -1 |
Remember this isn't called in the UI thread | @Override
public void onBeaconsDiscovered(Region region, List<Beacon> beacons) {
for (Beacon beacon : beacons){
double distance = Utils.computeAccuracy(beacon);
if (distance >= 0 && distance <= 0.5){
Toast.makeText(this, "Beacon in range: " + distance + "m ", Toast.LE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n public void run() {\n }",
"@Override\n p... | [
"0.68003577",
"0.68003577",
"0.67362857",
"0.6679157",
"0.6679157",
"0.6638647",
"0.6638647",
"0.6638647",
"0.6638647",
"0.6638647",
"0.6638647",
"0.6638647",
"0.66108847",
"0.66108847",
"0.66108847",
"0.6572023",
"0.65242785",
"0.6501702",
"0.6501702",
"0.64849347",
"0.64849... | 0.0 | -1 |
stream tasks which are not related to passenger (unoccupied vehicle) | @Override
public ImmutableMap<String, double[]> profiles() {
var nonPassengerTaskProfiles = calculator.getNonPassengerServingTaskProfiles()
.entrySet()
.stream()
.sorted(Entry.comparingByKey(nonPassengerTaskTypeComparator))
.map(e -> Pair.of(e.getKey().name(), e.getValue()));
// occupancy profiles... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ObservableList<Task> getUnfilteredTaskList();",
"public ArrayList<Task> listNotStarted() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 0) {\n tasks.add(t);\n }\n }\n return tasks;\n }",
"pr... | [
"0.585968",
"0.56967527",
"0.5515473",
"0.5498676",
"0.54737604",
"0.5336283",
"0.5280164",
"0.52764297",
"0.52383393",
"0.5230183",
"0.5191382",
"0.5157862",
"0.5123661",
"0.5052092",
"0.50424355",
"0.5025253",
"0.5025253",
"0.50012267",
"0.5000351",
"0.49981886",
"0.4986174... | 0.0 | -1 |
Created by Administrator on 2017/12/16 0016. | public interface IView {
void OnSuccess(Object o);
void OnFailed(Exception e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"public void mo38117a() {\n }",
"public void mo4359a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo... | [
"0.61577666",
"0.5888186",
"0.58867455",
"0.58672047",
"0.5812826",
"0.5733069",
"0.5733069",
"0.5733069",
"0.5733069",
"0.5733069",
"0.5733069",
"0.5733069",
"0.56992596",
"0.56518805",
"0.56503475",
"0.5646502",
"0.5641818",
"0.5635377",
"0.5629448",
"0.5613185",
"0.5597088... | 0.0 | -1 |
UserCause deprecated after Jenkins 1.427 | @Test
public void testUCAnyUser() throws Exception {
List<Cause> BuildCauses = new ArrayList<Cause>();
// tests with no users defined
ExtendedCauseCondition condition = new ExtendedCauseCondition(new UserBuildCauseCondition(""), false);
// started by SYSTEM user
BuildCauses.add(n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCause(String cause) {\r\n\t\tthis.cause = cause;\r\n\t}",
"public void setCause(String cause) {\n this.cause = cause;\n }",
"public String getCause() {\n return cause;\n }",
"public void setCause(CharSequence value) {\n this.cause = value;\n }",
"public Event ge... | [
"0.60744447",
"0.60527444",
"0.57895875",
"0.5670788",
"0.55495244",
"0.5466378",
"0.53245074",
"0.5255281",
"0.5251714",
"0.52361053",
"0.5191438",
"0.51728714",
"0.51601946",
"0.51582795",
"0.5155955",
"0.51389533",
"0.5129897",
"0.51257527",
"0.5107642",
"0.51021147",
"0.5... | 0.57029516 | 3 |
Print a message when debug is on | public static void debug(String log) {
if (debug) {
System.out.println("[DEBUG] " + log);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void debug(final String msg) {\n \t\tif (debug) System.out.println(msg);\n \t}",
"public void debug(String msg);",
"public void debug(String message);",
"public static void debug(boolean d, String message) {\n \tif(d) {\n \t\tSystem.out.println(message);\n \t}\n }",
"private void debugP... | [
"0.81077975",
"0.8079531",
"0.7976763",
"0.78788036",
"0.77351165",
"0.7698358",
"0.7661777",
"0.76283896",
"0.758918",
"0.7576297",
"0.75744486",
"0.7555343",
"0.75494933",
"0.75387007",
"0.7520737",
"0.75195736",
"0.74528974",
"0.7449103",
"0.7421491",
"0.73800015",
"0.7372... | 0.6696705 | 98 |
You need to setHost before this will send events. | synchronized public void setHost(String host) {
this.host = host;
if (checkClient()) {
prefs.put("AEUnicastOutput.host", host);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHost(String host) {\n this.host = host;\n }",
"public void setHost(String host) {\n this.host = host;\n }",
"public void setHost(String host) {\n this.host = host;\n }",
"public void setHost(String host) {\n this.host = host;\n }",
"public void setHost(S... | [
"0.6941629",
"0.69146055",
"0.69146055",
"0.69146055",
"0.69146055",
"0.69146055",
"0.6856215",
"0.6811855",
"0.6722711",
"0.6628091",
"0.64322144",
"0.635731",
"0.63506347",
"0.63506347",
"0.634847",
"0.63385826",
"0.6299342",
"0.62880373",
"0.61686707",
"0.6122501",
"0.6122... | 0.63626397 | 11 |
You set the port to say which port the packet will be sent to. | public void setPort(int port) {
this.port = port;
prefs.putInt("AEUnicastOutput.port", port);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPort(int port);",
"public void setPort(int port);",
"public void port (int port) {\n this.port = port;\n }",
"public void setPort (int port) {\n this.port = port;\n }",
"public void setPort(int port) {\r\n this.port = port;\r\n }",
"@Override\n\tpublic void se... | [
"0.80881137",
"0.80881137",
"0.78634375",
"0.7815158",
"0.7805499",
"0.7783982",
"0.7778582",
"0.77445215",
"0.77445215",
"0.7744032",
"0.77392316",
"0.77392316",
"0.77392316",
"0.77392316",
"0.7716245",
"0.7711244",
"0.7711244",
"0.7711244",
"0.7711244",
"0.7711244",
"0.7711... | 0.7563163 | 29 |
/ 1st Index ChatId 2nd Index FriendName 3th Index MessagePlue(User is message Plus user or not Indication) 4rd Index ChatCount(Over all UnreadCount) When ever Message Comes IN/OUT, user name should be append into the 1st postion of the index, and remove from the old list. CR 13059 While receive the message, client need... | private void resetUnreadChatCount(boolean isCountIncrease,
String widgetName, String chatId, String friendName,
String messagePlusUser, boolean isRecordCreate){
widgetName = RecordManager.getRecordStoreName(widgetName)+"Chat";
RecordStoreParser chatAppRecord = new RecordStorePars... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getUnreadChatMessageCountFromActiveLocals();",
"public int getUnreadChatMessageCount();",
"private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear()... | [
"0.6540155",
"0.64879906",
"0.60297126",
"0.5963672",
"0.59511656",
"0.5906103",
"0.5898407",
"0.58958095",
"0.5864426",
"0.57463396",
"0.5714181",
"0.5685572",
"0.56799513",
"0.5663292",
"0.5627368",
"0.56087226",
"0.5607588",
"0.5581391",
"0.55731124",
"0.555587",
"0.554865... | 0.71506375 | 0 |
CR 13118 bug 14075 | public static String getUserRecord(String widgetName, String chatId){
String userLevelRecord = null;
widgetName = RecordManager.getRecordStoreName(widgetName)+"Chat";
RecordStoreParser chatAppRecord = new RecordStoreParser();
chatAppRecord.openRecordStore(widgetName, true, false, false);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private char processChar(char r11) {\n /*\n // Method dump skipped, instructions count: 152\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.xmp.impl.FixASCIIControlsReader.processChar(char):char\");\n }",
"public void mo12628c() {\n }",
"@... | [
"0.6270862",
"0.611481",
"0.6069639",
"0.6017309",
"0.592228",
"0.5888334",
"0.5818449",
"0.5787618",
"0.5783593",
"0.5778346",
"0.5760816",
"0.57393104",
"0.5735818",
"0.569573",
"0.56554747",
"0.56545544",
"0.5650593",
"0.5638259",
"0.56220126",
"0.56204766",
"0.5614107",
... | 0.0 | -1 |
connect to the Derby network server (as a client) | public static void main(String[] args) {
Connection conn = null;
Statement s;
ResultSet rs = null;
String dbName = "myDB";
String url = protocol + dbName + ";create=true";
try {
// create a connection object
conn = DriverManager.getConnection(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Connection connect(){\n try{\n \n Class.forName(\"org.apache.derby.jdbc.ClientDriver\").newInstance();\n conn = DriverManager.getConnection(dbUrl, name, pass);\n System.out.println(\"connected\");\n }\n catch(Exception e){\n System.... | [
"0.71486014",
"0.70824033",
"0.6485504",
"0.6426946",
"0.64191526",
"0.64139044",
"0.63137245",
"0.6274258",
"0.6251289",
"0.6238401",
"0.6238401",
"0.6238401",
"0.6221931",
"0.62160665",
"0.6213285",
"0.6148473",
"0.6130434",
"0.6117597",
"0.61098766",
"0.609121",
"0.6085191... | 0.0 | -1 |
initialize models if they were not initialized on server startup | @Override
protected void process() throws Exception {
this.status = "{\"status\":\"Now processing - Initializing Models...\",\"starttime\":"
+ start_time + ",\"uuid\":\"" + this.uuid + "\"}";
GlobalVars.initialize();
// Processing Step 1. - CoreNLP
this.status = "{\"status\":\"Now processing CoreNLP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SideOnly(Side.CLIENT)\n public static void initModels() {\n }",
"private void initializeModel() {\n\t\t\n\t}",
"static void initialize() {\n model = new RatAppModel(\n );\n //Log.d(\"RatAppModel\", \"Initialized\");\n }",
"private void initialize() {\n\t\tinitializeModel();\n\t... | [
"0.7396811",
"0.71922934",
"0.70979655",
"0.7071503",
"0.68553215",
"0.6828009",
"0.67778945",
"0.6639337",
"0.66251665",
"0.6621353",
"0.6578335",
"0.6447931",
"0.642966",
"0.6429598",
"0.64165753",
"0.6407391",
"0.6355374",
"0.6348792",
"0.6325702",
"0.63213515",
"0.6312614... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void prepareResponse(HttpServletResponse response)
throws IOException {
} | {
"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 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.72461367",
"0.7201596",
"0.7195268",
"0.7177002",
"0.71069986",
"0.7039653",
"0.70384306",
"0.70115715",
"0.7010647",
"0.69803435",
"0.6945406",
"0.69389313",
"0.6933442",
"0.69172275",
"0.69172275",
"0.6890826",
"0.6883689",
"0.687515",
"0.6874831",
"0.68615955",
"0.68615... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
// noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79042155",
"0.7806028",
"0.77664185",
"0.77272826",
"0.7631844",
"0.7621488",
"0.75845605",
"0.753064",
"0.7487905",
"0.74575514",
"0.74575514",
"0.74386317",
"0.7421903",
"0.7403247",
"0.7391723",
"0.7386928",
"0.73795277",
"0.73705643",
"0.73629",
"0.7356027",
"0.7345714... | 0.0 | -1 |
Used to get the address of the remote method information found in the class_info structure | public static native short getRemoteMethodInfo(short objID, short methodID); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Address getCurrentCallRemoteAddress();",
"abstract String getRemoteAddress();",
"@Nullable\n @Generated\n @Selector(\"remoteAddress\")\n public native String remoteAddress();",
"public Call getCallByRemoteAddress2(Address remoteAddress);",
"String getRemoteAddr();",
"public String getInte... | [
"0.6609502",
"0.63665175",
"0.6216145",
"0.5878068",
"0.58036304",
"0.57637185",
"0.57362574",
"0.5685356",
"0.56716096",
"0.56716096",
"0.5661641",
"0.5649737",
"0.564551",
"0.5619764",
"0.56132025",
"0.5583366",
"0.5551843",
"0.5551843",
"0.554803",
"0.5538801",
"0.5520632"... | 0.6711101 | 0 |
Returns the return type of a remote method from a given object. Used by RMI to determine which remote method invokation to use. Also does some validation that this is a real and remote object. | public static native short getReturnType(short remote_method_info); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Type getReturnType();",
"public ITypeInfo getReturnType();",
"@Override\n public Description matchReturn(ReturnTree tree, VisitorState state) {\n Optional<Type> optionalType = lostType(state);\n if (!optionalType.isPresent()) {\n return Description.NO_MATCH;\n }\n Type objectType = state.getS... | [
"0.5862599",
"0.58509904",
"0.576292",
"0.5723366",
"0.5595266",
"0.5521999",
"0.54855025",
"0.54460186",
"0.54414207",
"0.5437281",
"0.54346055",
"0.54299766",
"0.52425665",
"0.5182542",
"0.5161222",
"0.5155896",
"0.5150547",
"0.5118415",
"0.5110948",
"0.5079925",
"0.5072764... | 0.62768203 | 0 |
a cleanup method used to delete any temporary arrays used to pass parameters to an invoked remote method. No parameters or return. | public static native void deleteAllTempArrays(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cleanup();",
"public void cleanup(){\n for(int i = 0; i < 3 && Array != null; ++i){\n if( Array[i] != null ) {\n Array[i].cleanup();\n Array[i] = null;\n }\n Array = null;\n }\n }",
"public void cleanup() {\r\n }",
... | [
"0.6848382",
"0.6773149",
"0.6762627",
"0.673501",
"0.67207026",
"0.6705944",
"0.66292626",
"0.6484275",
"0.64698344",
"0.64698344",
"0.64698344",
"0.64338106",
"0.64218426",
"0.641821",
"0.641821",
"0.64077604",
"0.64077604",
"0.64077604",
"0.6364106",
"0.6364106",
"0.629465... | 0.69015914 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.