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 |
|---|---|---|---|---|---|---|
Shutdowns a monitor connections to the REST service | public void shutdown() {
for (BucketMonitor monitor : this.monitors.values()) {
monitor.shutdown();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }",
"public void shutdown() {\n MultiThreadedHttpConnectionManager manager = \n (MultiThreadedHttpConnectionManager) httpClient.getHttpConn... | [
"0.66268015",
"0.6367124",
"0.63403636",
"0.633694",
"0.6291526",
"0.62836075",
"0.6275826",
"0.6267388",
"0.6267388",
"0.6267388",
"0.6267388",
"0.625821",
"0.624485",
"0.6197262",
"0.6183861",
"0.6176791",
"0.61576074",
"0.6153253",
"0.61068285",
"0.61017734",
"0.61017734",... | 0.6698259 | 0 |
Create a URL which has the appropriate headers to interact with the service. Most exception handling is up to the caller. | private URLConnection urlConnBuilder(URI base, URI resource) throws IOException {
if (!resource.isAbsolute() && base != null) {
resource = base.resolve(resource);
}
URL specURL = resource.toURL();
URLConnection connection = specURL.openConnection();
connection.setRequ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static final URL getURL(String url) throws ResourceManagerServiceClientCreationException {\r\n ArgumentChecker.checkNullOrEmpty(url, \"WSDL URL\");\r\n\r\n try {\r\n return new URL(url);\r\n } catch (MalformedURLException e) {\r\n throw new ResourceManagerServiceC... | [
"0.65730244",
"0.6219936",
"0.5676267",
"0.56619877",
"0.56296486",
"0.56187296",
"0.56002474",
"0.5581472",
"0.55616486",
"0.5559955",
"0.5548956",
"0.5544342",
"0.5473704",
"0.5459536",
"0.54260886",
"0.5415881",
"0.5401921",
"0.5396379",
"0.5385137",
"0.5374118",
"0.536975... | 0.54241043 | 15 |
Helper method that reads content from url connection to the string | private String readToString(URLConnection connection) throws IOException {
BufferedReader reader = null;
try {
InputStream inStream = connection.getInputStream();
if (connection instanceof java.net.HttpURLConnection) {
HttpURLConnection httpConnection = (HttpURLConnection) connection;
if (httpConnection.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String requestContent(String urlStr) {\n String result = null;\n HttpURLConnection urlConnection;\n try {\n URL url = new URL(urlStr);\n urlConnection = (HttpURLConnection) url.openConnection();\n } catch (Exception e) {\n e.printStackTrace();\n ... | [
"0.74180067",
"0.7384496",
"0.72893125",
"0.72100765",
"0.7137671",
"0.7112334",
"0.69269",
"0.6817939",
"0.6812052",
"0.6776573",
"0.6633445",
"0.6631271",
"0.662415",
"0.66103166",
"0.6579927",
"0.6578465",
"0.64959735",
"0.6464553",
"0.64400905",
"0.64348435",
"0.64237857"... | 0.60592264 | 37 |
Oddly, lots of things that do HTTP seem to not know how to do this and Authenticator caches for the process. Since we only need Basic at the moment simply, add the header. | protected static String buildAuthHeader(String username, String password) throws UnsupportedEncodingException {
// apparently netty isn't familiar with HTTP Basic Auth
StringBuilder clearText = new StringBuilder(username);
clearText.append(':');
if (password != null) {
clearT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBasicAuthenticationChallenge()\n\t{\n\t\tsetHeader(AUTHENTICATE, \"Basic realm='myRealm'\");\n\t}",
"public void addBasicAuthentication() {\n\t\tAuthorization auth = new Authorization();\n\t\tauth.setUser(this.authUsername);\n\t\tauth.setPass(this.authPassword);\n\t\tauth.setURL(\"\");\n\n\t\tAuth... | [
"0.7279681",
"0.6788309",
"0.6504595",
"0.6503859",
"0.65001297",
"0.64823514",
"0.641118",
"0.6335417",
"0.62844175",
"0.62490475",
"0.61476487",
"0.6065797",
"0.603038",
"0.602973",
"0.6027751",
"0.60227925",
"0.6007109",
"0.5937647",
"0.5826611",
"0.5813937",
"0.5716947",
... | 0.65827215 | 2 |
/ renamed from: a | public static final void m7043a(boolean z, Number number) {
C1489j.m6972b(number, "step");
if (!z) {
StringBuilder sb = new StringBuilder();
sb.append("Step must be positive, was: ");
sb.append(number);
sb.append('.');
throw new IllegalArgument... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
List of Visited Nodes | public void findLoop(NodeLoop first){
ArrayList<String> ids = new ArrayList<String>();
NodeLoop cur = first;
//Finds Loop, if cur.next=null there was no loop
while(cur.next!=null){
//Found Cycle
if(ids.contains(cur.id)){
System.out.println("Cycle... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Node> getNodes();",
"List<Node> getNodes();",
"List<Node> nodes();",
"List<CyNode> getNodeList();",
"public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public Collection<Node> getNodeLi... | [
"0.71371967",
"0.71117705",
"0.707613",
"0.7042114",
"0.6739591",
"0.6738054",
"0.6592229",
"0.6556662",
"0.6545928",
"0.6544451",
"0.65401",
"0.65358573",
"0.6534173",
"0.6522971",
"0.6521743",
"0.649111",
"0.64729875",
"0.6465895",
"0.64456487",
"0.6440518",
"0.6434251",
... | 0.0 | -1 |
Creating Nodes and Linked List | public static void main(String args[]){
NodeLoop A = new NodeLoop("A");
NodeLoop B = new NodeLoop("B");
NodeLoop C = new NodeLoop("C");
NodeLoop D = new NodeLoop("D");
NodeLoop E = new NodeLoop("E");
//A->B->C->D->E->C
A.next = B;
B.next = C;
C.nex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }",
"public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfo... | [
"0.8162516",
"0.70247597",
"0.6933207",
"0.6925173",
"0.68473387",
"0.67961174",
"0.6735117",
"0.67254525",
"0.66751724",
"0.66736794",
"0.6525953",
"0.6511034",
"0.6502068",
"0.64992845",
"0.64711726",
"0.6469258",
"0.64641637",
"0.64586365",
"0.6435165",
"0.64250344",
"0.64... | 0.0 | -1 |
Complete the largestRectangle function below. | static long largestRectangle(int[] h) {
int max = -1;
for(int i = 0; i < h.length; i++){
int height = h[i];
int currentW = 1;
int pointer = i-1;
while(pointer >= 0 && h[pointer] >= height){
currentW++;
pointer--;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static long largestRectangle(int[] h) {\n Stack<Integer> heightStack = new Stack<Integer>();\n Stack<Integer> posStack = new Stack<Integer>();\n\n int max = 0;\n\n for(int i = 0; i < h.length; i++) {\n if(heightStack.isEmpty() || h[i] > heightStack.peek()) {\n ... | [
"0.78361875",
"0.75495803",
"0.7497373",
"0.74882853",
"0.7332343",
"0.73286986",
"0.7288833",
"0.7282747",
"0.72517806",
"0.71327084",
"0.70602524",
"0.6951012",
"0.694337",
"0.68953913",
"0.68183726",
"0.68175775",
"0.68009216",
"0.67498183",
"0.66812325",
"0.6580052",
"0.6... | 0.8182534 | 0 |
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); | public static void main(String[] args) throws IOException {
BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));
int n = scanner.nextInt();
scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
int[] h = new int[n];
String[] hItems = scanner.next... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}",
"private static void prepareOutputFile() {\n try {\n outputFileBuffer = new B... | [
"0.7209244",
"0.6817758",
"0.6046828",
"0.602649",
"0.6007175",
"0.59182495",
"0.5893166",
"0.5816383",
"0.57771647",
"0.5758746",
"0.5613475",
"0.56047034",
"0.5582022",
"0.5577864",
"0.5568953",
"0.5536663",
"0.5535259",
"0.5508887",
"0.54996824",
"0.54946774",
"0.54812276"... | 0.0 | -1 |
Invoked by the ActivityManager to start a new Activity | @Override
public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
constants = clientFactory.getLabelConstants();
loginView = clientFactory.getWelcomeView();
loginView.setTitleLabel(constants.welcomeTitleLabel());
loginView.setLoginBtLabel(constants.loginBtLabel());
loginView.setLoginLa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void startNewActivity(Intent intent);",
"private void openActivity() {\n }",
"private void launchStartMinglingActivity() {\n\t\tIntent startMinglingActivity = new Intent(this,\n\t\t\t\tStartMinglingActivity.class);\n\t\tstartActivity(startMinglingActivity);\n\t}",
"public void startAddActivity() {\n ... | [
"0.7923623",
"0.7297208",
"0.690722",
"0.6879198",
"0.6838661",
"0.68303865",
"0.6829499",
"0.68275714",
"0.6806878",
"0.68027335",
"0.6797787",
"0.6780243",
"0.67271227",
"0.6720243",
"0.66984165",
"0.6683813",
"0.66620415",
"0.6636903",
"0.6625686",
"0.6595528",
"0.65872985... | 0.0 | -1 |
Navigate to a new Place in the browser | @Override
public void goTo(Place place) {
clientFactory.getPlaceController().goTo(place);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goTo(Place place) {\n\t\tclientFactory.getPlaceController().goTo(place);\n\t}",
"@Override\n public void changing(LocationEvent event)\n {\n if (event.location.equals(\"about:blank\"))\n {\n return;\n }\n ... | [
"0.73306286",
"0.6675016",
"0.63456744",
"0.6175429",
"0.6025761",
"0.5995072",
"0.5982055",
"0.5953403",
"0.5936056",
"0.58960414",
"0.5850865",
"0.581127",
"0.57885635",
"0.5784125",
"0.5779004",
"0.57683367",
"0.57629216",
"0.57430893",
"0.5690333",
"0.56788915",
"0.566462... | 0.7442109 | 0 |
Map responseMap = JSON.parseObject( responseBody.getBytes(), Map.class); | @Override
final void onSuccess(int statusCode, Header[] headers,
byte[] responseBytes, T responseMap) {
Map<String, String> headMap = Utils.genHeaderMap(headers);
// 保存缓存
cacheHolder.saveCache(headMap, responseBytes);
// 返回数据
onSuccess(statusCode, headMap, respo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Object> parseToMap(String json);",
"private Map<String, Object> readMap(String json) {\n if (StringUtils.isBlank(json)) {\n return new HashMap<>();\n }\n try {\n return new ObjectMapper().readValue(json, HashMap.class);\n } cat... | [
"0.74109125",
"0.6417846",
"0.6249269",
"0.5972367",
"0.59456235",
"0.5928244",
"0.5914013",
"0.58530647",
"0.58137333",
"0.5810278",
"0.57551056",
"0.5749999",
"0.56871074",
"0.5676282",
"0.5672266",
"0.5638371",
"0.5600497",
"0.5542825",
"0.55273074",
"0.5520877",
"0.551499... | 0.0 | -1 |
This method was generated by Apache iBATIS ibator. This method corresponds to the database table V_RP_DY_IPBB_CPU_MEM | public VRpDyIpbbCpuMemDAOImpl() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCacheDomainByName(\"home\");\r\n\t\tfloat cpuUsage = LinuxSystemInfoCollector.getInstance().getCpuInfo() * 100;\r\n\t\tfloat memoryUsage = 0;\r\n\t\ttry {\r\n\t\t\tlong count[] = LinuxSystemInfoCollector.getInstance().getMe... | [
"0.6601787",
"0.6140101",
"0.60385597",
"0.60385597",
"0.5917684",
"0.57372385",
"0.57348335",
"0.56136495",
"0.5606707",
"0.5583281",
"0.5542233",
"0.5541909",
"0.5519829",
"0.54876864",
"0.5484831",
"0.54535437",
"0.5449322",
"0.54440457",
"0.54026574",
"0.53928757",
"0.538... | 0.63074744 | 1 |
This method was generated by Apache iBATIS ibator. This method corresponds to the database table V_RP_DY_IPBB_CPU_MEM | public void insert(VRpDyIpbbCpuMem record) {
getSqlMapClientTemplate().insert("V_RP_DY_IPBB_CPU_MEM.ibatorgenerated_insert", record);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCacheDomainByName(\"home\");\r\n\t\tfloat cpuUsage = LinuxSystemInfoCollector.getInstance().getCpuInfo() * 100;\r\n\t\tfloat memoryUsage = 0;\r\n\t\ttry {\r\n\t\t\tlong count[] = LinuxSystemInfoCollector.getInstance().getMe... | [
"0.660016",
"0.63080853",
"0.6139479",
"0.6037171",
"0.6037171",
"0.59179765",
"0.5735824",
"0.5734067",
"0.5611485",
"0.5605122",
"0.5582863",
"0.5541249",
"0.5540891",
"0.55194855",
"0.5484048",
"0.54528856",
"0.5449321",
"0.5443036",
"0.5403106",
"0.5391886",
"0.5381192",
... | 0.54872054 | 14 |
This method was generated by Apache iBATIS ibator. This method corresponds to the database table V_RP_DY_IPBB_CPU_MEM | public void insertSelective(VRpDyIpbbCpuMem record) {
getSqlMapClientTemplate().insert("V_RP_DY_IPBB_CPU_MEM.ibatorgenerated_insertSelective", record);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCacheDomainByName(\"home\");\r\n\t\tfloat cpuUsage = LinuxSystemInfoCollector.getInstance().getCpuInfo() * 100;\r\n\t\tfloat memoryUsage = 0;\r\n\t\ttry {\r\n\t\t\tlong count[] = LinuxSystemInfoCollector.getInstance().getMe... | [
"0.6601662",
"0.6306988",
"0.6142915",
"0.60387385",
"0.60387385",
"0.59195065",
"0.57395864",
"0.57363796",
"0.56130666",
"0.56081504",
"0.55845124",
"0.55443245",
"0.55419695",
"0.55210805",
"0.5486418",
"0.5485476",
"0.5454146",
"0.54506063",
"0.54458",
"0.5404311",
"0.539... | 0.521796 | 43 |
TODO blank step like " " could be valid, but Windows trims trailing spaces | public static boolean isEmptyStep(String path) {
return isEmpty(path) || path.equals(CWD);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }",
"char skipSpaces () {\n char c = getChar ();\n while (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r') {\n if (c == '\\n') { m_nbLines++; }\n c = getNextChar ();\n }\n return c;... | [
"0.6268892",
"0.6121656",
"0.61176294",
"0.60723776",
"0.599228",
"0.596753",
"0.5836882",
"0.5802214",
"0.5757805",
"0.5741297",
"0.57401824",
"0.57366055",
"0.5733038",
"0.56969196",
"0.5667792",
"0.5660338",
"0.5655499",
"0.56448615",
"0.5622831",
"0.5579899",
"0.5577066",... | 0.0 | -1 |
no ambiguity such as / or \ | public static boolean isRoot(String path) {
return path != null && path.equals(SHARE_ROOT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"... | [
"0.6603987",
"0.646123",
"0.64304227",
"0.63463765",
"0.62686086",
"0.5954427",
"0.5892044",
"0.5886096",
"0.55957264",
"0.5534673",
"0.5521846",
"0.5501142",
"0.549615",
"0.5468164",
"0.54233134",
"0.54177594",
"0.54104954",
"0.5405059",
"0.53941923",
"0.53785264",
"0.531368... | 0.0 | -1 |
no ambiguity such as / or \ | public static boolean isAbsolute(String path) {
return path != null && path.startsWith(SHARE_ROOT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"... | [
"0.6603987",
"0.646123",
"0.64304227",
"0.63463765",
"0.62686086",
"0.5954427",
"0.5892044",
"0.5886096",
"0.55957264",
"0.5534673",
"0.5521846",
"0.5501142",
"0.549615",
"0.5468164",
"0.54233134",
"0.54177594",
"0.54104954",
"0.5405059",
"0.53941923",
"0.53785264",
"0.531368... | 0.0 | -1 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, SQLException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
DAOShipImpl dao = new DAOShipImpl();... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_... | [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.6392... | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (SQLException ex) {
Logger.getLogger(Readship.class.getName()).log(Level.SEVERE, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro... | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",... | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (SQLException ex) {
Logger.getLogger(Readship.class.getName()).log(Level.SEVERE,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n ... | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197"... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
... | 0.0 | -1 |
/ /Processing routines / | boolean generateAutomata()
{
empty_calls = new HashSet<JflowMethod>();
event_calls = new HashSet<JflowMethod>();
complete_calls = new LinkedHashMap<JflowMethod,ModelMethod>();
methods_todo = new LinkedHashSet<JflowMethod>();
return_set = new HashMap<JflowMethod,Boolean>();
start_set = new HashSet<Jfl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void processing();",
"public void process() {\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void process();",
"@Override\n\tpublic void startProcessing() {\n\n\t}",
"protected void additionalProcessing() {\n\t}",
"pub... | [
"0.7926927",
"0.7248275",
"0.7124803",
"0.7076284",
"0.6996283",
"0.69229233",
"0.6910981",
"0.6834387",
"0.682965",
"0.682965",
"0.68007535",
"0.64187205",
"0.64162725",
"0.63765705",
"0.6218471",
"0.61793005",
"0.61746573",
"0.6162738",
"0.61512834",
"0.6099868",
"0.6079674... | 0.0 | -1 |
/ /Methods to output a single global model / | @Override public void outputGlobalProgram(IvyXmlWriter xw,Collection<JflowModel.Main> merges,
JflowModel.Editor editor)
{
xw.begin("GLOBAL");
Set<JflowModel.Node> states = createGlobalModel(merges,editor);
ModelState [] starr = states.toArray(new ModelState[states.size()]);
Arrays.sort(starr);
xw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SModel getOutputModel();",
"public static void displaySingleModel(String model) {\n\t\tSystem.out.println(model);\n\t}",
"public String getModel();",
"@Override\n\tpublic String getModel() {\n\t\treturn \"cool model\";\n\t}",
"java.lang.String getModel();",
"public void printOWLModel(){\n\t\tmodel.write(... | [
"0.72447395",
"0.68116534",
"0.6771473",
"0.66755295",
"0.6663867",
"0.6530589",
"0.6427195",
"0.63944256",
"0.63422185",
"0.63268447",
"0.62548876",
"0.62389016",
"0.6225006",
"0.62113434",
"0.6193771",
"0.61883456",
"0.61719066",
"0.61397374",
"0.61397374",
"0.61397374",
"0... | 0.5491094 | 80 |
/ /JflowModel.Main methods / | @Override public Iterable<JflowModel.Method> getStartMethods()
{
Vector<JflowModel.Method> v = new Vector<JflowModel.Method>();
for (JflowMethod cm : model_master.getStartMethods()) {
ModelMethod cs = complete_calls.get(cm);
if (cs != null) v.add(cs);
}
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWit... | [
"0.64998025",
"0.6439761",
"0.6426451",
"0.6422246",
"0.6411595",
"0.63211817",
"0.628914",
"0.62503546",
"0.62301105",
"0.6225708",
"0.61852837",
"0.61559117",
"0.6126662",
"0.6125",
"0.611405",
"0.60685027",
"0.6049726",
"0.60497123",
"0.60497123",
"0.60292345",
"0.60261",
... | 0.0 | -1 |
/ /Builder support methods / | boolean isStartMethod(JflowMethod fm) { return start_set.contains(fm); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Builder() {\n\t\t}",
"private Builder() {}",
"private Builder() {\n }",
"private Builder() {\n }",
"private Builder()\n {\n }",
"public static Builder builder(){ return new Builder(); }",
"public Builder() {\n\t\t}",
"public Builder() {}",
"public Builder() {}",
... | [
"0.808346",
"0.7973568",
"0.7619135",
"0.7619135",
"0.75950974",
"0.7477459",
"0.744723",
"0.740966",
"0.740966",
"0.740966",
"0.73259914",
"0.7276078",
"0.72509086",
"0.71607",
"0.7128231",
"0.7118859",
"0.7109896",
"0.7109896",
"0.6971497",
"0.693949",
"0.69058156",
"0.69... | 0.0 | -1 |
/ /Methods to create dummy automata for multiple calls / | private ModelMethod createCallAutomata(JflowMethod cfm,Iterable<JflowMethod> itms)
{
ModelState st0 = ModelState.createSimpleState(cfm,0);
ModelState st1 = ModelState.createSimpleState(cfm,0);
st1.setFinal();
int ctr = 0;
for (JflowMethod fm : itms) {
if (!empty_calls.contains(fm)) {
++ctr;
Mo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean generateAutomata()\n{\n empty_calls = new HashSet<JflowMethod>();\n event_calls = new HashSet<JflowMethod>();\n complete_calls = new LinkedHashMap<JflowMethod,ModelMethod>();\n methods_todo = new LinkedHashSet<JflowMethod>();\n return_set = new HashMap<JflowMethod,Boolean>();\n\n start_set = ne... | [
"0.6581642",
"0.60222906",
"0.59899694",
"0.59195316",
"0.58270025",
"0.5797127",
"0.5756689",
"0.5710162",
"0.56896156",
"0.56806505",
"0.5664639",
"0.563398",
"0.56284463",
"0.5581293",
"0.5573963",
"0.55541116",
"0.55493724",
"0.5525797",
"0.5518418",
"0.5518111",
"0.54965... | 0.61412966 | 1 |
/ /Simplification methods / | Set<JflowModel.Node> simplify(ModelState start)
{
Set<JflowModel.Node> states = new HashSet<JflowModel.Node>();
updateState(start,states,new HashMap<ModelState,Vector<Set<JflowModel.Node>>>());
if (removeExtraReturns(states)) {
states = new HashSet<JflowModel.Node>();
updateState(start,states,new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\tpublic void normalize()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n\t\tpublic void reduce... | [
"0.5850782",
"0.5801507",
"0.5451815",
"0.53984845",
"0.5370161",
"0.53460664",
"0.53316635",
"0.53312063",
"0.5262291",
"0.5245461",
"0.5244144",
"0.5237983",
"0.52376103",
"0.5212951",
"0.5189702",
"0.5182515",
"0.51507974",
"0.51388514",
"0.513601",
"0.51322466",
"0.512398... | 0.4810628 | 87 |
/ /Methods to build automaton for callbacks / | JflowMethod buildCallback(String cbid)
{
Iterable<JflowMethod> it = model_master.getCallbacks(cbid);
if (it == null) return null;
JflowMethod m = callback_methods.get(cbid);
if (m != null) return m;
try {
BT_Class dcls = BT_Class.forName("edu.brown.cs.ivy.jflow.JflowDummy");
BT_Method bm = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generateAutomaton() {\n /**\n * Chars in the positions:\n * 0 -> \"-\"\n * 1 -> \"+\"\n * 2 -> \"/\"\n * 3 -> \"*\"\n * 4 -> \")\"\n * 5 -> \"(\"\n * 6 -> \"=\"\n * 7 -> \";\"\n * 8 -> [0-9]\n * 9 -> [A-Za-z... | [
"0.63798505",
"0.629263",
"0.5713691",
"0.5667536",
"0.56334084",
"0.5608067",
"0.55551326",
"0.5450257",
"0.536532",
"0.5274147",
"0.5217707",
"0.51799005",
"0.5107756",
"0.50848216",
"0.5060872",
"0.5054911",
"0.5038461",
"0.50333935",
"0.5026492",
"0.50238603",
"0.5015878"... | 0.61087537 | 2 |
This constructor initialize the clientParser by the information given by the view | public NewClientController() {
this.clientParser = NewClientView.getClientParser();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ClientView() {\n initComponents();\n }",
"public MantClientesView() {\n initComponents();\n }",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"public DmaiClient() {\r\n\t\tthis.mainView = new MainView();\r\n\t\tconnexionS... | [
"0.6828373",
"0.62435913",
"0.60520303",
"0.60026276",
"0.5970872",
"0.5968849",
"0.5938567",
"0.5904142",
"0.58692795",
"0.58692795",
"0.5859633",
"0.5848522",
"0.58338064",
"0.58102626",
"0.5807511",
"0.580138",
"0.580138",
"0.5798397",
"0.57811314",
"0.57811314",
"0.577029... | 0.7191319 | 0 |
Unfocus every Text Field | private void unfocusedAll() {
this.nameTextField.setFocusTraversable(false);
this.surnameTextField.setFocusTraversable(false);
this.addressTextField.setFocusTraversable(false);
this.postalCodeTextField.setFocusTraversable(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeFocus();",
"void resetFocus();",
"void resetFocus();",
"public void resetFocus() {\n toSetFocus = null;\n focusOn = null;\n }",
"private void quitAllFocus() {\n\t\ttry {\n\t\t\tquitFocus(txtContacto);\n\t\t\tquitFocus(txtDescripcion);\n\t\t\tquitFocus(txtNombre);\n\t\t} catch (Exception e... | [
"0.764474",
"0.76269925",
"0.76269925",
"0.74962467",
"0.68632555",
"0.6862597",
"0.6834533",
"0.66529745",
"0.6609915",
"0.6577691",
"0.65359783",
"0.6444538",
"0.64164",
"0.6345593",
"0.6326925",
"0.63123035",
"0.6309979",
"0.6304998",
"0.6276965",
"0.62551695",
"0.62541825... | 0.7965745 | 0 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// 取消标题
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
// 进行全屏
intent=getIntent();
url=intent.getStringExtra("name");
this.getWindow().setFlags(WindowManage... | {
"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 |
set the phase state | public void setPhase(String newPhase,Player newPlayer) {
this.phase = newPhase;
this.p = newPlayer;
setChanged();
notifyObservers();
this.action=""; //Cleaning up the previous action after it has been displayed
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPhase(int phase) {\n this.phase = phase;\n }",
"public void setPhase(Integer phase) {\n this.phase = phase;\n }",
"void setPhaseStatus(GeneralStatus phaseStatus);",
"public void resetPhase();",
"protected void changePhase(Phase phase) {\n controller.setPhase(phase);\n ... | [
"0.76231086",
"0.73553574",
"0.70466334",
"0.6962261",
"0.64156264",
"0.6385292",
"0.6186337",
"0.6148191",
"0.6148191",
"0.6146415",
"0.61426157",
"0.6127753",
"0.6084704",
"0.6084704",
"0.6073726",
"0.6023563",
"0.59803706",
"0.5973174",
"0.59602153",
"0.594059",
"0.5938778... | 0.61311704 | 11 |
get the current phase state | public String getPhase() {
return phase;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getPhase() {\n return this.phase;\n }",
"public String phase() {\n return this.phase;\n }",
"public Integer getPhase() {\n return phase;\n }",
"public int getPhase() {\n return this.phase;\n }",
"public Phase getD_CurrentPhase() {\n return d_... | [
"0.7733978",
"0.7733884",
"0.7653466",
"0.7631004",
"0.7598458",
"0.7542549",
"0.7462169",
"0.7004576",
"0.6878186",
"0.68561804",
"0.67749745",
"0.67499465",
"0.664356",
"0.65897316",
"0.65897316",
"0.65897316",
"0.65897316",
"0.65897316",
"0.65897316",
"0.6508943",
"0.65089... | 0.74078697 | 7 |
get the current player | public Player getPlayer() {
return p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Player getCurrentPlayer();",
"Player getCurrentPlayer();",
"public Player getCurrentPlayer() {\n return currentPlayer;\n }",
"public Player getCurrentPlayer() {\n return currentPlayer;\n }",
"public Player getCurrentPlayer(){\n return this.currentPlayer;\n }",
"public String... | [
"0.8855764",
"0.8855764",
"0.86421525",
"0.86421525",
"0.8590631",
"0.8549885",
"0.8538293",
"0.85378927",
"0.8514019",
"0.84835935",
"0.8436679",
"0.8399876",
"0.83963305",
"0.8288315",
"0.82743967",
"0.8234525",
"0.81176573",
"0.81091434",
"0.8094347",
"0.8073222",
"0.80125... | 0.7576406 | 61 |
get the current action of the current player | public String getAction() {
return action;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public POGOProtos.Rpc.CombatActionProto getCurrentAction() {\n return currentAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : currentAction_;\n }",
"POGOProtos.Rpc.CombatActionProto getCurrentAction();",
"public POGOProtos.Rpc.CombatActionProto getCurre... | [
"0.77234554",
"0.77024823",
"0.7609266",
"0.7196873",
"0.7153144",
"0.70366293",
"0.7018476",
"0.6956053",
"0.6937095",
"0.69072264",
"0.69072264",
"0.6887925",
"0.6880972",
"0.68763787",
"0.6872907",
"0.6834277",
"0.68294483",
"0.6817739",
"0.6781276",
"0.67417455",
"0.66994... | 0.6458462 | 43 |
set the chosen action | public void setAction(String str) {
action = str;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAction(String action);",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public void setAction(String action) { this.action = action; }",
"public void setAction(int value) {\n this.action = value;\n }",
... | [
"0.82004416",
"0.7909388",
"0.7849523",
"0.7647347",
"0.76174176",
"0.7595465",
"0.75452566",
"0.7538361",
"0.74647313",
"0.7458755",
"0.74511445",
"0.73536587",
"0.7284183",
"0.7281809",
"0.7281809",
"0.7199233",
"0.7168148",
"0.71649516",
"0.71530527",
"0.7043106",
"0.69541... | 0.73304677 | 12 |
This method is implemented from org.wso2.carbon.identity.api.otp.service.emailotp.EmailotpApi to generate OTP. | @Override
public Response emailotpGeneratePost(OTPGenerationRequest otpGenerationRequest) {
String userId = StringUtils.trim(otpGenerationRequest.getUserId());
try {
GenerationResponseDTO responseDTO = EndpointUtils.getEmailOTPService().generateEmailOTP(userId);
OTPGenerateR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String generateOtp() {\n\t\tString otp = TOTP.getOTP(SECRET);\n\t\treturn otp;\n\t}",
"public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setti... | [
"0.76913726",
"0.7385909",
"0.7109896",
"0.69558907",
"0.6840537",
"0.68078184",
"0.65255016",
"0.64867055",
"0.64298594",
"0.6406972",
"0.63863844",
"0.63571805",
"0.63017845",
"0.62248105",
"0.6210708",
"0.6163658",
"0.61100084",
"0.60826343",
"0.607543",
"0.6064938",
"0.60... | 0.6571918 | 6 |
This method is implemented from org.wso2.carbon.identity.api.otp.service.emailotp.EmailotpApi to validate OTP. | @Override
public Response emailotpValidatePost(OTPValidationRequest otpValidationRequest) {
String transactionId = StringUtils.trim(otpValidationRequest.getTransactionId());
String userId = StringUtils.trim(otpValidationRequest.getUserId());
String emailOtp = StringUtils.trim(otpValidationR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiI... | [
"0.75338817",
"0.65005475",
"0.638889",
"0.63702166",
"0.63459986",
"0.63090605",
"0.61978406",
"0.61937034",
"0.6191388",
"0.6133563",
"0.6118506",
"0.60437113",
"0.6005784",
"0.58724195",
"0.58292425",
"0.57764304",
"0.57667375",
"0.575626",
"0.57515943",
"0.57494694",
"0.5... | 0.58432305 | 14 |
TODO Autogenerated method stub | @Override
public int getRowCount() {
return pats.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 int getColumnCount() {
return 3;
} | {
"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 |
Gets the head of this capitated object. | ModelRenderer getHead(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Head getHead() {\n\t\treturn head;\n\t}",
"public T getHead() {\n return get(0);\n }",
"public String head() {\n if (isEmpty() == false) {\n return head.getData();\n } else {\n return null;\n }\n }",
"public Car getHead(){\n\t\tretur... | [
"0.7153224",
"0.7089176",
"0.7044306",
"0.7039565",
"0.692318",
"0.69132054",
"0.6908084",
"0.6899218",
"0.68607146",
"0.685012",
"0.6776152",
"0.6770649",
"0.6741806",
"0.67411333",
"0.6689796",
"0.66773367",
"0.6671333",
"0.66678274",
"0.66678274",
"0.6631891",
"0.6621338",... | 0.0 | -1 |
Returns true if we're wearing any uconventional headgear (ie. a Pumpkin) | boolean hasHeadGear(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasBunho();",
"boolean hasBunho();",
"boolean hasHat();",
"boolean hasHair();",
"private boolean hasEatenApple() {\r\n return snake.getHead().equals(apple);\r\n }",
"public boolean isPumpkin() {\n return this.type == Type.PUMPKIN;\n }",
"public boolean isMobHead() {\n ... | [
"0.653607",
"0.653607",
"0.6534869",
"0.6277685",
"0.6232461",
"0.6210948",
"0.61682796",
"0.6140626",
"0.61141753",
"0.60161585",
"0.6005118",
"0.59693426",
"0.5939514",
"0.59351206",
"0.59143364",
"0.5895482",
"0.5895482",
"0.5895482",
"0.5895482",
"0.5895482",
"0.5895482",... | 0.76896954 | 0 |
public Product findByClientName(String name); | @Query("select i from Product i where name=:name")
public List<Product> findByQuery(@Param("name")String netto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Product> findByName(String name);",
"Product getProductByProductName(String productName);",
"Product getProductByName(String name) throws EntityNotFoundException;",
"public Product findByBrand(String brand);",
"public List<Product> findByNameIs(String name);",
"public List<productmodel> getproductby... | [
"0.80115473",
"0.7975892",
"0.7759818",
"0.73347175",
"0.7316921",
"0.7110438",
"0.70170426",
"0.7011828",
"0.70084935",
"0.67995507",
"0.67607397",
"0.6741984",
"0.6714203",
"0.66809267",
"0.661456",
"0.6614489",
"0.6603112",
"0.66002774",
"0.6599091",
"0.6562748",
"0.655566... | 0.63028294 | 39 |
code with the basic logic implemented | public static int searchInMountainArray(int[] arr, int target){
int indexOfPeak = peakIndexInMountainArray(arr);
int firstIndex = BinarySearch(arr, target, 0, indexOfPeak);
if(firstIndex != -1){
return firstIndex;
}
//try to search in second half.
return Bina... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void logic() {\n\n\t}",
"public void logic(){\r\n\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void smell() {\n\t\t\n\t}",
"protected void ... | [
"0.6398316",
"0.6325045",
"0.5891434",
"0.58747697",
"0.5872973",
"0.57884824",
"0.578701",
"0.57643086",
"0.5755487",
"0.57520217",
"0.573719",
"0.5733484",
"0.572584",
"0.572122",
"0.57004726",
"0.56965727",
"0.56923264",
"0.56923264",
"0.56571186",
"0.5655839",
"0.56543463... | 0.0 | -1 |
find whether the array is sorted in ascending or descending | static int BinarySearch(int[] arr, int target, int start, int end) {
boolean isAsc = arr[start] < arr[end];
while(start <= end) {
// find the middle element
// int mid = (start + end) / 2; // might be possible that (start + end) exceeds the range of int in java
int mi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static boolean isSorted(int[] array) {\n for (int i = 0; i < array.length - 1; i++) {\n if (array[i] > array[i + 1])\n return false;\n }\n return true;\n }",
"public boolean isSorted(){\n\tfor (int i = 0; i < (_size - 2); i++){\n\t if (_data[i].compareTo(_data... | [
"0.774385",
"0.7713681",
"0.76878446",
"0.7662385",
"0.76484054",
"0.7630399",
"0.7628565",
"0.75954497",
"0.7542065",
"0.74975866",
"0.7483476",
"0.7472283",
"0.7467688",
"0.74525934",
"0.7375207",
"0.7325556",
"0.72640073",
"0.7252093",
"0.7187916",
"0.7182305",
"0.7177087"... | 0.0 | -1 |
TODO Autogenerated method stub Button btn = (Button)v; btn.setBackgroundColor(0); | public void onClick(View v) {
callPhone();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void makeTransparentBackground(View v)\n {\n v.setBackgroundColor(0x00000000); //set the transparent background\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttotalLayout.setBackgroundColor(getResources().getColor(R.color.red));\n\t\t\t\tconfirmButton.setEnabled(false);\n\t... | [
"0.70370036",
"0.65714204",
"0.6538475",
"0.64912456",
"0.6446628",
"0.639128",
"0.638272",
"0.633764",
"0.62814224",
"0.62538517",
"0.6253488",
"0.6252054",
"0.6237989",
"0.6229887",
"0.6213421",
"0.6203934",
"0.6153547",
"0.608175",
"0.6073015",
"0.6064509",
"0.60414404",
... | 0.0 | -1 |
save data to db | private static void saveData(String data) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveData() {\n }",
"protected void saveValues() {\n dataModel.persist();\n }",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"private void saveData(){\n\t\tdataBase=m... | [
"0.76901793",
"0.74830955",
"0.7483069",
"0.7483069",
"0.7483069",
"0.7483069",
"0.74412346",
"0.73961866",
"0.73762935",
"0.73271745",
"0.7323923",
"0.72999126",
"0.72871137",
"0.7277136",
"0.7277136",
"0.7277136",
"0.7237598",
"0.72262573",
"0.722337",
"0.72163016",
"0.7183... | 0.0 | -1 |
Calculate the delay using the frame rate | public void run() {
long frameDelay = (long) (1000 / getFrameRate(avi));
// Start rendering while playing
while (isPlaying.get()) {
// Request rendering
glSurfaceView.requestRender();
// Wait for the next frame
try {
Thread.sleep(frameDelay);
} catch (InterruptedException e) {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int calcOrderDelay()\r\n {\r\n int frameDelay = 0;\r\n if (totalSecondsElapsed >= 120)\r\n {\r\n frameDelay = 2;\r\n }\r\n else if (totalSecondsElapsed >= 90)\r\n {\r\n frameDelay = 3;\r\n }\r\n else if (totalSecondsElapsed >=... | [
"0.71950513",
"0.7041746",
"0.69434947",
"0.6886692",
"0.6855703",
"0.6808114",
"0.6749619",
"0.66138995",
"0.65955806",
"0.6484904",
"0.64237267",
"0.6421143",
"0.6399141",
"0.6369585",
"0.636697",
"0.63290435",
"0.6323453",
"0.6280054",
"0.6280054",
"0.62672126",
"0.6220920... | 0.0 | -1 |
Render the next frame | public void onDrawFrame(GL10 gl) {
if (!render(instance, avi))
{
isPlaying.set(false);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void renderNextImage() {\n }",
"void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // a... | [
"0.73690945",
"0.72275734",
"0.70979095",
"0.70151645",
"0.68706006",
"0.68583685",
"0.67685264",
"0.67404884",
"0.65107644",
"0.64692783",
"0.64475167",
"0.64475167",
"0.64161354",
"0.6378422",
"0.63541967",
"0.6309909",
"0.62601084",
"0.6233471",
"0.6208889",
"0.6163676",
"... | 0.0 | -1 |
Initialize the OpenGL surface | public void onSurfaceCreated(GL10 gl, EGLConfig config) {
initSurface(instance, avi);
// Start playing since surface is ready
isPlaying.set(true);
// Start player
new Thread(player).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize()\r\n\t{\r\n\t\tgl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F);\r\n\t\t// initialize blending for transparency\r\n\t\tgl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\tgl.glEnable(GL_DEPTH_TEST);\r\n\t\tgl.glEnable(GL_DITHER);\r\n\t\t//gl.disable(GL_ALPHA_TEST);\r\n\t\t//gl.disable(GL_CO... | [
"0.80689996",
"0.7769531",
"0.7725343",
"0.7683363",
"0.7681789",
"0.7665398",
"0.7639945",
"0.7624765",
"0.76193273",
"0.753616",
"0.74958354",
"0.7433771",
"0.7319316",
"0.72757477",
"0.7121301",
"0.7111092",
"0.7106579",
"0.71045506",
"0.7079374",
"0.7075402",
"0.7074485",... | 0.0 | -1 |
Initializes the native renderer. | private native static long init(long avi); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void initRendering();",
"public native void initRendering();",
"protected void initRenderer(final IScope scope) {\n\r\n\t}",
"private final void init() {\n\t\tam = new nativeAssetManager();\n\t\tam.addDefaultAssets();\n\t}",
"protected native void init();",
"@VisibleForTesting\n public v... | [
"0.83049256",
"0.83049256",
"0.70796883",
"0.6943008",
"0.693597",
"0.667776",
"0.6638737",
"0.6637097",
"0.6585412",
"0.6570021",
"0.6471589",
"0.6450014",
"0.6445168",
"0.6433422",
"0.6397397",
"0.6392448",
"0.6392175",
"0.6370305",
"0.6349242",
"0.63447994",
"0.6330329",
... | 0.0 | -1 |
Initializes the OpenGL surface. | private native static void initSurface(long instance, long avi); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize()\r\n\t{\r\n\t\tgl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F);\r\n\t\t// initialize blending for transparency\r\n\t\tgl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\tgl.glEnable(GL_DEPTH_TEST);\r\n\t\tgl.glEnable(GL_DITHER);\r\n\t\t//gl.disable(GL_ALPHA_TEST);\r\n\t\t//gl.disable(GL_CO... | [
"0.81176966",
"0.78383017",
"0.78119123",
"0.7706007",
"0.76630974",
"0.7631308",
"0.75644565",
"0.7541264",
"0.75310373",
"0.7412526",
"0.7298647",
"0.72800833",
"0.7278705",
"0.7254132",
"0.7061107",
"0.70507157",
"0.70148087",
"0.7014101",
"0.6972884",
"0.69726914",
"0.694... | 0.0 | -1 |
Renders the frame from given AVI file descriptor. | private native static boolean render(long instance, long avi); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depe... | [
"0.66522187",
"0.6023009",
"0.6023009",
"0.58973044",
"0.5579325",
"0.5508018",
"0.54510903",
"0.5433533",
"0.5355639",
"0.53446174",
"0.5276869",
"0.5226363",
"0.5181071",
"0.5160378",
"0.5122202",
"0.51181823",
"0.5101899",
"0.5077126",
"0.5048082",
"0.50410914",
"0.5016843... | 0.5025629 | 20 |
Free the native renderer. | private native static void free(long instance); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() {\n renderer.destroy();\n }",
"@Override\n public void destroy() {\n super.destroy();\n mNativePtr = 0;\n }",
"public void dispose() {\n\t\tthis.shape_renderer.dispose();\n\t\tthis.sprite_renderer.dispose();\n\t}",
"public void destroy() {\n assert m... | [
"0.77366793",
"0.71504045",
"0.7024572",
"0.6693389",
"0.6647203",
"0.6643076",
"0.66256285",
"0.66244143",
"0.6617919",
"0.6597403",
"0.6593274",
"0.6591962",
"0.6587672",
"0.65625536",
"0.65590364",
"0.65526104",
"0.65476143",
"0.6532675",
"0.652854",
"0.6525936",
"0.649342... | 0.0 | -1 |
holds data for use | public Directory() {
files = new ArrayList<VipeFile>();
sectors = new int[600];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void InitData() {\n\t}",
"Object getCurrentData();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"Object getData() { /* package access */\n\t\treturn data;\n\t}",
"private void initData() {\n\t}",
"private void initData() {\n }",
... | [
"0.6965821",
"0.6959098",
"0.69460624",
"0.69210404",
"0.6907994",
"0.689345",
"0.6866436",
"0.68474984",
"0.68447864",
"0.6807422",
"0.6757806",
"0.67305547",
"0.6676193",
"0.6652136",
"0.6649426",
"0.6649426",
"0.66379935",
"0.66379935",
"0.66379935",
"0.66379935",
"0.66379... | 0.0 | -1 |
sets the files to the parameter | public void setFiles(ArrayList<VipeFile> files) {
this.files = files;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setFile() {\n\t}",
"public void setNewFiles(java.lang.String[] param){\r\n \r\n validateNewFiles(param);\r\n\r\n localNewFilesTracker = true;\r\n \r\n ... | [
"0.7167469",
"0.70931756",
"0.7010797",
"0.69325763",
"0.6860739",
"0.6850049",
"0.6766796",
"0.67433226",
"0.6654498",
"0.66025543",
"0.6539992",
"0.65315825",
"0.64856106",
"0.6476559",
"0.64092636",
"0.631623",
"0.6298609",
"0.62961686",
"0.6284413",
"0.6252604",
"0.621442... | 0.68935806 | 4 |
gets the chunks from the VipeFile from given ID | public ArrayList<Chunk> getChunks(int fileID) {
ArrayList<Chunk> chunks = new ArrayList<>();
boolean startedChunk = false;
int start = 0;
int end = 0;
for (int i = 0; i < sectors.length; i++) {
if (sectors[i] == fileID && !startedChunk) {
start = i;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\") \n public List<Item> getItemInChunkVLH(String pID, String iID, int chunkSize){\n EntityManager em = emf.createEntityManager();\n //make Java Persistence query\n Query query = em.createQuery(\"SELECT i FROM Item i WHERE i.productID = :pID AND i.disabled = 0\"... | [
"0.6668262",
"0.6463538",
"0.62395406",
"0.62395406",
"0.62395406",
"0.62395406",
"0.62395406",
"0.62395406",
"0.6102609",
"0.60535073",
"0.58050346",
"0.57735485",
"0.55645186",
"0.5499472",
"0.5459319",
"0.5459319",
"0.5459319",
"0.5459319",
"0.54511184",
"0.54511184",
"0.5... | 0.7270947 | 0 |
return index of a file from its ID | public int getFileFromID(int id) {
for(int i = 0 ; i < files.size(); i++) {
if(files.get(i).getFileID() == id)
return i;
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getFileIndex(){\n \tString fileName=file.getName();\n// \tSystem.out.println(\"fileName:\"+fileName);\n \tfinal long start = Long.parseLong(fileName.substring(0,\n\t\t\t\tfileName.length() - FILE_SUFFIX.length()));\n// \tSystem.out.println(\"start:\"+start);\n \treturn start;\n }",
... | [
"0.72922707",
"0.7065322",
"0.6946145",
"0.69354504",
"0.6933624",
"0.6900206",
"0.65892684",
"0.6587124",
"0.6538455",
"0.6523812",
"0.6492505",
"0.63701147",
"0.63007367",
"0.62703276",
"0.6250759",
"0.6247648",
"0.62275946",
"0.6221175",
"0.6217688",
"0.6209266",
"0.618153... | 0.83597624 | 0 |
returns an array of the sectors | public int[] getSectors() {
return sectors;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<String> listSector() {\n\t\treturn repository.distinctSector();\n\t}",
"public RenderObject[] getRenderObjects(){\n\t\tRenderObject[] objects = new RenderObject[sectors.length * sectors[0].length];\n\t\tfor(int i = 0; i < sectors.length; i++){\n\t\t\tfor(int j = 0 ; j < sectors[0].length... | [
"0.6660116",
"0.6611379",
"0.64282346",
"0.6328066",
"0.62969863",
"0.6247509",
"0.6128244",
"0.59594715",
"0.59582114",
"0.5902804",
"0.58676445",
"0.58287144",
"0.5827937",
"0.5826351",
"0.5803668",
"0.57576567",
"0.5752641",
"0.57520247",
"0.55465066",
"0.5537828",
"0.5431... | 0.8405578 | 0 |
outputs the directory for debugging | @Override
public String toString() {
String returnable = "";
int count = 0;
int[] localSectors = sectors;
for (int i = 0; i < sectors.length; i++) {
if(count % 20 == 0 && count != 0) {
returnable += "\n";
}
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDirectoryPath() { return DirectoryManager.OUTPUT_RESULTAT + \"/\" + directoryName;}",
"public Path outputDir() {\n return dir;\n }",
"public void print(){\n for(int i = 0; i < rootDir.length; i++){\n System.out.println(rootDir[i]);\n }\n }",
"public File getOu... | [
"0.7079592",
"0.6884983",
"0.6743574",
"0.6559083",
"0.6477869",
"0.64770764",
"0.6431734",
"0.64267373",
"0.6426367",
"0.640697",
"0.6362107",
"0.6337974",
"0.6333308",
"0.6316366",
"0.6290736",
"0.6274435",
"0.62607884",
"0.6247221",
"0.62359554",
"0.6055856",
"0.597511",
... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View inflate = inflater.inflate(R.layout.fragment_add_account, container, false);
initView(inflate);
return inflate;
} | {
"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.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
/This method is used to fetch the balance information of a account And this parameter should be passes as Header parameter | public String getBalance(String accountNo ,String bank) {
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
String message = null;
//creating empty Client
Client client = clientBuilder.build();
WebTarget target = client.target(JERSEY_BASE_URI).path("/account").path("/balance").queryParam("b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }",
"@Override\n ... | [
"0.75775844",
"0.74028075",
"0.72243094",
"0.68327445",
"0.6626367",
"0.6566709",
"0.6557202",
"0.65379465",
"0.65379465",
"0.6530299",
"0.6483165",
"0.6466224",
"0.6441268",
"0.6439164",
"0.64304906",
"0.6426887",
"0.6416706",
"0.6396404",
"0.6376957",
"0.6352456",
"0.635245... | 0.59382427 | 96 |
Fetch a selected advertise by id | @RequestMapping(value = "/getSelectedAdvertise/{id}", method = RequestMethod.GET)
public ResponseEntity<Advertisement> getSelectedAdvertise(@PathVariable("id") int id) {
Advertisement currentAdvertisement = advDAO.findByID(id);
if (currentAdvertisement==null) {
return new ResponseEntity<Advertisement>(HttpStatu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Ad selectByPrimaryKey(Integer id);",
"EcsAd selectByPrimaryKey(Short adId);",
"AppStandard selectById(String id);",
"Abum selectByPrimaryKey(String id);",
"@Override\n\tpublic Object findByID(Serializable id) {\n\t\treturn getSession().get(DirectTalentAdvertBean.class, id);\n\t}",
"List<Ad> individualAd(... | [
"0.7146667",
"0.6982219",
"0.67428076",
"0.6728542",
"0.66956705",
"0.662582",
"0.6622104",
"0.6587237",
"0.6548802",
"0.6536409",
"0.64875",
"0.64825755",
"0.6463398",
"0.6425463",
"0.6413671",
"0.64054596",
"0.636749",
"0.6358888",
"0.6349567",
"0.6347178",
"0.6344014",
"... | 0.7402121 | 0 |
Update a status of an advertise | @RequestMapping(value = "/advertisements/{id}", method = RequestMethod.DELETE)
public ResponseEntity<Advertisement> updateStatus(@PathVariable("id") int id) {
Advertisement currentAdvertisement = advDAO.findByID(id);
if (currentAdvertisement==null) {
return new ResponseEntity<Advertisement>(HttpStatus.NOT_FOUND... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateAgentBODStatus(String profileId, int status);",
"void updateHouseStatus(long houseId, int status);",
"public void updateAds() {\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"void updateHouseStatus(String username, long houseId, int status);",
"@Overrid... | [
"0.6796356",
"0.6609792",
"0.65006787",
"0.6474612",
"0.64603835",
"0.6393875",
"0.63826066",
"0.6354792",
"0.6242057",
"0.619935",
"0.61779755",
"0.6172274",
"0.6158165",
"0.6140947",
"0.6140947",
"0.6126326",
"0.6089222",
"0.6082653",
"0.6071709",
"0.60492057",
"0.6044598",... | 0.6210744 | 9 |
/ \brief Returns true if this is an inline namespace declaration. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/include/clang/AST/Decl.h", line = 526,
FQN="clang::NamespaceDecl::isInline", NM="_ZNK5clang13NamespaceDecl8isInlineEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isNamespace(Object object);",
"boolean isSetNamespace();",
"private boolean isNamespace(int start, int end) {\n int i;\n int nsLen = end - start;\n int offset = tokenStart - start;\n int tokenLen = tokenEnd - tokenStart;\n\n if (tokenLen < nsLen) {\n return... | [
"0.68045",
"0.63893485",
"0.6384391",
"0.6368522",
"0.63357854",
"0.6141163",
"0.61166334",
"0.6100363",
"0.6077109",
"0.604041",
"0.6010116",
"0.5860778",
"0.5801307",
"0.5649908",
"0.5632606",
"0.5597913",
"0.5568439",
"0.55488443",
"0.55227137",
"0.5513818",
"0.5495506",
... | 0.73761123 | 0 |
/ \brief Set whether this is an inline namespace declaration. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/include/clang/AST/Decl.h", line = 531,
FQN="clang::NamespaceDecl::setInline", NM="_ZN5clang13NamespaceDecl9setInlineEb",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/include/clang/AST/Decl.h\", line = 526,\n FQN=\"clang::NamespaceDecl::isInline\", NM=\"_ZNK5clang13NamespaceDecl8isInlineEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/too... | [
"0.66854554",
"0.64403",
"0.5727585",
"0.57179624",
"0.55270284",
"0.55219984",
"0.5508848",
"0.5464324",
"0.542571",
"0.54192144",
"0.5297006",
"0.5241863",
"0.52221924",
"0.5211217",
"0.5204174",
"0.5196503",
"0.51175815",
"0.5101675",
"0.5074885",
"0.5063458",
"0.5004428",... | 0.73232853 | 0 |
/ \brief Get the original (first) namespace declaration. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclCXX.cpp", line = 2095,
FQN="clang::NamespaceDecl::getOriginalNamespace", NM="_ZN5clang13NamespaceDecl20getOriginalNamespaceEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclCXX.cpp\", line = 2102,\n FQN=\"clang::NamespaceDecl::getOriginalNamespace\", NM=\"_ZNK5clang13NamespaceDecl20getOriginalNamespaceEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType... | [
"0.7064364",
"0.6993404",
"0.6882734",
"0.6882734",
"0.6882734",
"0.67749834",
"0.6724005",
"0.6673635",
"0.66327155",
"0.6585403",
"0.6369152",
"0.63600075",
"0.63246506",
"0.6246495",
"0.6242589",
"0.62335646",
"0.62116635",
"0.6203088",
"0.6161641",
"0.6137493",
"0.6129660... | 0.74164784 | 0 |
/ \brief Get the original (first) namespace declaration. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclCXX.cpp", line = 2102,
FQN="clang::NamespaceDecl::getOriginalNamespace", NM="_ZNK5clang13NamespaceDecl20getOriginalNamespaceEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/ll... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclCXX.cpp\", line = 2095,\n FQN=\"clang::NamespaceDecl::getOriginalNamespace\", NM=\"_ZN5clang13NamespaceDecl20getOriginalNamespaceEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ... | [
"0.74164784",
"0.6993404",
"0.6882734",
"0.6882734",
"0.6882734",
"0.67749834",
"0.6724005",
"0.6673635",
"0.66327155",
"0.6585403",
"0.6369152",
"0.63600075",
"0.63246506",
"0.6246495",
"0.6242589",
"0.62335646",
"0.62116635",
"0.6203088",
"0.6161641",
"0.6137493",
"0.612966... | 0.7064364 | 1 |
/ \brief Return true if this declaration is an original (first) declaration / of the namespace. This is false for nonoriginal (subsequent) namespace / declarations and anonymous namespaces. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclCXX.cpp", line = 2109,
FQN="clang::NamespaceDecl::isOriginalNamespace", NM="_ZNK5clang13NamespaceDecl19isOriginalNamespaceEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetNamespace();",
"private boolean checkDuplicateNamespace(NamespaceDefinition def) {\n \n // create structures if not already done\n if (m_namespaces == null) {\n m_namespaces = new ArrayList();\n m_uriMap = new HashMap();\n }\n \n // che... | [
"0.59508103",
"0.5908597",
"0.5885736",
"0.5850496",
"0.5653364",
"0.56343687",
"0.55848426",
"0.5550722",
"0.55143726",
"0.5511189",
"0.55095154",
"0.548553",
"0.54176605",
"0.54156387",
"0.54019415",
"0.53326696",
"0.5306071",
"0.5279402",
"0.52548534",
"0.5254019",
"0.5235... | 0.71356976 | 0 |
/ \brief Retrieve the anonymous namespace nested inside this namespace, / if any. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/include/clang/AST/Decl.h", line = 548,
FQN="clang::NamespaceDecl::getAnonymousNamespace", NM="_ZNK5clang13NamespaceDecl21getAnonymousNamespaceEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getNamespace();",
"public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }",
"String getNamespace();",
"String getNamespace();",
"String getNamespace();",
"public String getNamespace();",
"public Optional<String> namespace() {\n return... | [
"0.6644348",
"0.6467254",
"0.644694",
"0.644694",
"0.644694",
"0.6345482",
"0.6303802",
"0.61278075",
"0.60289365",
"0.6022503",
"0.6011141",
"0.59622335",
"0.59481823",
"0.592063",
"0.5890774",
"0.5890139",
"0.5863659",
"0.5863659",
"0.5863659",
"0.5825827",
"0.5823749",
"... | 0.67114186 | 0 |
/ Retrieves the canonical declaration of this namespace. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/include/clang/AST/Decl.h", line = 557,
FQN="clang::NamespaceDecl::getCanonicalDecl", NM="_ZN5clang13NamespaceDecl16getCanonicalDeclEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclCXX.cpp\", line = 2095,\n FQN=\"clang::NamespaceDecl::getOriginalNamespace\", NM=\"_ZN5clang13NamespaceDecl20getOriginalNamespaceEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ... | [
"0.6307836",
"0.6277863",
"0.6274922",
"0.62256354",
"0.62243146",
"0.62240535",
"0.61366355",
"0.6126891",
"0.6086985",
"0.60282516",
"0.6026918",
"0.6012904",
"0.5995228",
"0.59876275",
"0.59876275",
"0.59876275",
"0.595498",
"0.5952245",
"0.59081024",
"0.5870314",
"0.58386... | 0.63144416 | 0 |
/friend class ASTDeclReader /friend class ASTDeclWriter | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/include/clang/AST/Decl.h", line = 471,
FQN="clang::NamespaceDecl::~NamespaceDecl", NM="_ZN5clang13NamespaceDeclD0Ev",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OutputDecl createOutputDecl();",
"InputDecl createInputDecl();",
"DeclRule createDeclRule();",
"private void decls() throws IOException\n {\n type();\n match(Tag.ID);\n match(';');\n }",
"OutputsDeclRule createOutputsDeclRule();",
"public interface AST {\n \n /**\n * Return... | [
"0.69497824",
"0.6743987",
"0.6462897",
"0.63720983",
"0.6339752",
"0.63027585",
"0.6135045",
"0.6097032",
"0.6047662",
"0.6026974",
"0.60251874",
"0.59977144",
"0.5981797",
"0.5939343",
"0.59231454",
"0.5891742",
"0.5859645",
"0.5844898",
"0.57575625",
"0.57557577",
"0.57533... | 0.58855224 | 16 |
//////////////////////////////////////////////////////////// EXTRA MEMBERS: BEGIN | @Override
public final NamespaceDecl getPreviousDecl() {
return (NamespaceDecl)Redeclarable.super.getPreviousDecl$Redeclarable();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected void addExtras();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@O... | [
"0.6581298",
"0.63365066",
"0.6211163",
"0.62046486",
"0.61666304",
"0.616391",
"0.614128",
"0.61407006",
"0.6112363",
"0.6072239",
"0.6070308",
"0.60609514",
"0.60477114",
"0.6046243",
"0.60393345",
"0.6025988",
"0.60079813",
"0.59811234",
"0.59744406",
"0.5876797",
"0.58741... | 0.0 | -1 |
use return value of $DeclContext(); | @Override public final DeclContext$Fields $DeclContext$Fields() { return DeclContext$Flds; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Decl getWhole();",
"declaration getDeclaration();",
"TopLevelDecl getTopLevelDecl();",
"OutputDecl createOutputDecl();",
"DeclRule createDeclRule();",
"declaration_list2 getDeclaration_list2();",
"@Override\n\tpublic void check(Block curScope, Library lib) {\n\t\tSystem.out.println(\"here typename\"+na... | [
"0.62825733",
"0.6169872",
"0.60965055",
"0.59962046",
"0.5918009",
"0.58979344",
"0.58028597",
"0.575565",
"0.57115775",
"0.5659983",
"0.5649432",
"0.5630415",
"0.5616697",
"0.5583736",
"0.55825424",
"0.55796933",
"0.5559022",
"0.5552701",
"0.554425",
"0.55405766",
"0.551705... | 0.5038512 | 68 |
use return value of $Redeclarable(); | @Override public final Redeclarable$Fields $Redeclarable$Fields() { return Redeclarable$Flds; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Variable getReturn();",
"public int R(){\r\n return R;\r\n }",
"String getDeclare();",
"abstract int pregnancy();",
"double defendre();",
"public int get_return(){\r\n return local_return;\r\n }",
"public abstract void MussBeDefined();",
... | [
"0.6247821",
"0.5930964",
"0.586831",
"0.58014655",
"0.57634175",
"0.5723574",
"0.5705795",
"0.5571301",
"0.55664694",
"0.5530168",
"0.54984856",
"0.5490105",
"0.54807186",
"0.5470907",
"0.5458452",
"0.54567134",
"0.5435492",
"0.54342276",
"0.5428007",
"0.5425206",
"0.5412958... | 0.54109156 | 21 |
Public: Validates XML file at given path with "xsdlibraryxml.xsd" schema | public boolean validateXmlFile(String xmlFilePath) {
assert _xsdFilePath != null && !_xsdFilePath.isEmpty();
assert _loggerHelper != null;
if (xmlFilePath == null || xmlFilePath.isEmpty()) {
throw new IllegalArgumentException();
}
boolean result = validateXmlFileWithSchema(xml... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validateXmlFileWithSchema(String xmlFilePath, String xsdFilePath) { \n \tassert xmlFilePath != null && !xmlFilePath.isEmpty();\n \tassert xsdFilePath != null && !xsdFilePath.isEmpty();\n \tassert _schemaFactory != null;\n \tassert _loggerHelper != null;\n \t\n try {\n ... | [
"0.78575635",
"0.7642226",
"0.7620819",
"0.7574522",
"0.7148262",
"0.71382594",
"0.6645026",
"0.66402245",
"0.6639096",
"0.6614789",
"0.6603222",
"0.6529992",
"0.6483743",
"0.6418283",
"0.6401353",
"0.6370557",
"0.6237779",
"0.62270707",
"0.61878264",
"0.60542697",
"0.5994939... | 0.6969485 | 6 |
Public: Inserts given book object as XML record into "library.xml" | public boolean insertBook(Book book) {
assert _loggerHelper != null;
if (book == null) {
throw new IllegalArgumentException();
}
boolean result = insertBook(book, false);
_loggerHelper.logInfo(result ? "Book was succesfully inserted" : "Book insertion failed");
return res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean insertBook(Book book, boolean replaceExisting) {\n \tassert book != null;\n \tassert _xsdFilePath != null && !_xsdFilePath.isEmpty();\n \tassert _libFilePath != null && !_libFilePath.isEmpty();\n \tassert _schemaFactory != null;\n \tassert _loggerHelper != null;\n \t\n \tString... | [
"0.66803294",
"0.62372434",
"0.62302953",
"0.6183498",
"0.61831135",
"0.6154959",
"0.6105751",
"0.60772026",
"0.6069783",
"0.5983535",
"0.5983513",
"0.5963252",
"0.5963252",
"0.59595823",
"0.59362984",
"0.59014535",
"0.58777755",
"0.5856565",
"0.58028156",
"0.57756144",
"0.57... | 0.5611284 | 28 |
/ Private Methods Private: Validates XML string against given schema Note: XML string structure should fully match schema structure to pass validation, e.g. contain root node | private boolean validateXmlStringWithSchema(String xmlString, String xsdFilePath) {
assert xmlString != null && !xmlString.isEmpty();
assert xsdFilePath != null && !xsdFilePath.isEmpty();
assert _schemaFactory != null;
assert _loggerHelper != null;
try {
Schema schema = _schem... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.par... | [
"0.626227",
"0.62534326",
"0.60197216",
"0.60132253",
"0.596191",
"0.59484947",
"0.5941724",
"0.5925756",
"0.5902137",
"0.5793985",
"0.57769537",
"0.57769537",
"0.57543683",
"0.57421607",
"0.5741036",
"0.56975067",
"0.56957084",
"0.56957084",
"0.5657457",
"0.56459206",
"0.564... | 0.75379467 | 0 |
Private: Validates XML file against given schema | private boolean validateXmlFileWithSchema(String xmlFilePath, String xsdFilePath) {
assert xmlFilePath != null && !xmlFilePath.isEmpty();
assert xsdFilePath != null && !xsdFilePath.isEmpty();
assert _schemaFactory != null;
assert _loggerHelper != null;
try {
Schema schem... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.par... | [
"0.7941486",
"0.7711189",
"0.7567121",
"0.7442333",
"0.70756173",
"0.69028777",
"0.6856394",
"0.68531835",
"0.68088275",
"0.6719575",
"0.67174065",
"0.6682829",
"0.6673859",
"0.66708666",
"0.6576702",
"0.6559129",
"0.65428877",
"0.6535979",
"0.64409727",
"0.6437562",
"0.64375... | 0.76080656 | 2 |
Private: Creates Library XML node string containing given book and it's authors matching "xsdlibraryxml.xsd" schema structure | private String libraryNodeStringFromBook(Book book) {
assert book != null;
String xml = "<Library> \n" + book.toXML();
for(Author author : book.getAuthorList()) {
xml += "\t" + author.toXML();
}
xml += "</Library>";
return xml;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getBookAuthorBlock( String author )\n {\n return \"<bookinfo><corpauthor>\" + author + \"</corpauthor>\";\n }",
"private boolean insertBook(Book book, boolean replaceExisting) {\n \tassert book != null;\n \tassert _xsdFilePath != null && !_xsdFilePath.isEmpty();\n \tasse... | [
"0.6316538",
"0.58416724",
"0.57557994",
"0.55614156",
"0.5524743",
"0.55019534",
"0.54051",
"0.531704",
"0.52738565",
"0.52685434",
"0.525925",
"0.5207134",
"0.51791227",
"0.51394403",
"0.5128548",
"0.5119772",
"0.51081103",
"0.5092974",
"0.50877047",
"0.50785273",
"0.507586... | 0.7881972 | 0 |
Private: Adds given number of tabs after each new line in XML string | private String identXmlStringWithTabs(String xmlString, int tabCount) {
assert xmlString != null && !xmlString.isEmpty();
assert tabCount > 0;
String tabs = "";
while (tabCount-- > 0)
tabs += "\t";
return tabs + xmlString.replace("\n", "\n" + tabs);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addIndent() {\r\n if (indentSpace.length() > 0) {\r\n for (int i = 0; i < indent; i++) {\r\n xml.append(indentSpace);\r\n }\r\n }\r\n }",
"private static void processTab() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (charCount == MAX_W) {\n\t\... | [
"0.64035916",
"0.6072652",
"0.6048452",
"0.5783261",
"0.577334",
"0.57667315",
"0.5718306",
"0.5712624",
"0.56694114",
"0.56303835",
"0.5598404",
"0.5579176",
"0.55640256",
"0.5517308",
"0.5493458",
"0.54654205",
"0.5465335",
"0.54515916",
"0.5440154",
"0.543172",
"0.54304355... | 0.7092927 | 0 |
Private: Inserts given book object as XML record into "library.xml" | private boolean insertBook(Book book, boolean replaceExisting) {
assert book != null;
assert _xsdFilePath != null && !_xsdFilePath.isEmpty();
assert _libFilePath != null && !_libFilePath.isEmpty();
assert _schemaFactory != null;
assert _loggerHelper != null;
String xmlToValidate = li... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int insertBook(Book book) {\n\t\treturn 0;\r\n\t}",
"private void insertBook() {\n /// Create a ContentValues object with the dummy data\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_NAME, \"Harry Potter and the goblet of fire\");\n ... | [
"0.63334656",
"0.6330974",
"0.62840116",
"0.62217176",
"0.62199783",
"0.61625177",
"0.6108076",
"0.6083752",
"0.6083412",
"0.6038447",
"0.6036293",
"0.6036293",
"0.60202134",
"0.5999704",
"0.59702116",
"0.59596586",
"0.592387",
"0.5886877",
"0.5860283",
"0.58168274",
"0.57979... | 0.6817667 | 0 |
retrieve the current value of the proximity sensor | @Override
public void onSensorChanged(SensorEvent sensorEvent) {
float currentValue = sensorEvent.values[0];
setTitle("Proximity Sensor");
//display the retrieved value onto the textView
proximitySensorText.setText("Distance = " + String.valueOf(currentValue) + " cm");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getValue() {\n\t\treturn sensorval;\n\t}",
"public float getLatitudeValue (){\n return trackLat.getValue ();\n }",
"public Proximity proximity() {\n _initialize();\n return proximity;\n }",
"@Override \n public double getTemperature() { \n return pin.getValu... | [
"0.709594",
"0.66022384",
"0.6594053",
"0.65097016",
"0.6469039",
"0.6464431",
"0.64007866",
"0.62929946",
"0.62929946",
"0.62929946",
"0.6265603",
"0.62651205",
"0.6260589",
"0.6254879",
"0.6247125",
"0.6209565",
"0.61787623",
"0.61746913",
"0.61746913",
"0.61746913",
"0.615... | 0.6791374 | 1 |
proximity sensor does not report accuracy changes | @Override
public void onAccuracyChanged(Sensor sensor, int i) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n }",
"public void onAccuracyChanged(int sensor, int accuracy) {\n }",
"public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }",
"public void onAccuracyChanged(Sensor arg0, int arg1) {\n \n }",
"@Override\n... | [
"0.76422924",
"0.7543762",
"0.742551",
"0.7421714",
"0.74213344",
"0.74213344",
"0.74213344",
"0.7412136",
"0.74078846",
"0.73884004",
"0.73818827",
"0.73818827",
"0.73818827",
"0.73818827",
"0.73818827",
"0.73818827",
"0.73818827",
"0.73818827",
"0.7376496",
"0.7376496",
"0.... | 0.7493333 | 3 |
register the listener once the activity starts | @Override
protected void onStart() {
super.onStart();
if (proximitySensor != null) {
sensorManager.registerListener(this, proximitySensor, sensorManager.SENSOR_DELAY_NORMAL);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void InitListener()\n {\n Intent listener = new Intent(this, SmsListener.class);\n listener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startService(listener);\n }",
"@Override\n protected void onStart() {\n super.onStart();\n mFetchChatRoomListUseCase.registerLi... | [
"0.7321265",
"0.73119235",
"0.70543647",
"0.6999865",
"0.697007",
"0.69381225",
"0.6910607",
"0.686057",
"0.6853453",
"0.6796885",
"0.6796756",
"0.6789337",
"0.6786266",
"0.67792535",
"0.67130125",
"0.6707922",
"0.6701449",
"0.6694526",
"0.66921073",
"0.66733587",
"0.66640943... | 0.6690209 | 19 |
stop the sensor when the activity stops to reduce battery usage | @Override
protected void onStop() {
super.onStop();
sensorManager.unregisterListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onStop() {\n super.onStop();\n sensormanager.unregisterListener(sensorEventListener);\n }",
"private void stop() {\n\t\t/*\n if (this.status != PedoListener.STOPPED) {\n this.sensorManager.unregisterListener(this);\n }\n this.setStatu... | [
"0.7585399",
"0.7474599",
"0.73289096",
"0.7304961",
"0.73044163",
"0.72707427",
"0.72571146",
"0.72194535",
"0.70234853",
"0.69999534",
"0.69808096",
"0.69617456",
"0.68925714",
"0.6859007",
"0.6848805",
"0.68379235",
"0.68374896",
"0.68354064",
"0.6833167",
"0.68216324",
"0... | 0.7796853 | 0 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Co... | [
"0.8125658",
"0.78537387",
"0.78320265",
"0.776199",
"0.776199",
"0.76010174",
"0.74497247",
"0.7437837",
"0.7430714",
"0.742303",
"0.74057597",
"0.7341963",
"0.7327749",
"0.72634363",
"0.72230434",
"0.7102504",
"0.70575505",
"0.69873077",
"0.69721675",
"0.6944077",
"0.691256... | 0.0 | -1 |
Constructor for the GameScreen class | public GameScreen(String seed){
this.mazeSession = new MazeSession(seed);
this.mazeDrawer = new DrawMaze(this.mazeSession);
gsPcs = new PropertyChangeSupport(this);
showContent();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to... | [
"0.7714103",
"0.7676672",
"0.7639872",
"0.7558344",
"0.7532161",
"0.7493736",
"0.7400715",
"0.7352936",
"0.7347991",
"0.7314701",
"0.7308017",
"0.7250488",
"0.7172999",
"0.71565604",
"0.71485806",
"0.71440923",
"0.70743626",
"0.7061312",
"0.7030325",
"0.7001092",
"0.6970597",... | 0.0 | -1 |
Sets up container for displaying its components Uses the Overlay Layout to lay the components on top of one another, with the background image as the base. Components: back home, restart and exit button, the maze panel, courseID and score | private void showContent(){
LayoutManager overlay = new OverlayLayout(this);
setLayout(overlay);
JPanel panel = new JPanel();
BorderLayout layout = new BorderLayout();
layout.setHgap(10);
layout.setVgap(10);
panel.setLayout(layout);
panel.setBorder(new EmptyBorder(new Insets(20,50,20,50)));
pan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initComponents() {\n \n /* Set JPanel Properties */\n \n container = new JPanel();\n container.setLayout(new BorderLayout());\n container.setBackground(Color.BLACK);\n \n /* Create Title Banner */\n \n banner = new JLabel(\"\", Swin... | [
"0.7168906",
"0.7141828",
"0.7125482",
"0.70837855",
"0.69049215",
"0.6875281",
"0.68442816",
"0.6823203",
"0.68161976",
"0.67563856",
"0.6733722",
"0.66999245",
"0.6687615",
"0.66185087",
"0.65759695",
"0.6564619",
"0.6552709",
"0.6548506",
"0.65288085",
"0.65287715",
"0.651... | 0.71495867 | 1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return customersArrayList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Object getItem(int position) {
return customersArrayList.get(position);
} | {
"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 position) {
return position;
} | {
"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 |
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.mpilone.spring.web.domain.messages | public ObjectFactory() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ReplicateObjectMessageFactory() {\n super(null);\n }",
"private JSONMessageFactory(){}",
"MessagesType createMessagesType();",
"protected abstract Message createMessage(Object object, MessageProperties messageProperties);",
"public MessageDestinationFactory() {\n this.properties = n... | [
"0.647981",
"0.6377387",
"0.6366029",
"0.5998981",
"0.5931988",
"0.5925564",
"0.5823769",
"0.58069307",
"0.57490635",
"0.5732089",
"0.5721579",
"0.57079387",
"0.5653849",
"0.5647367",
"0.56360394",
"0.56360394",
"0.56360394",
"0.56215143",
"0.56135696",
"0.5608787",
"0.560106... | 0.0 | -1 |
Constructor initalizing global values | public BeanTagInfo() {
beanClass = null;
parent = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Globals(){}",
"public Global() {\r\n }",
"public Global() {\n }",
"public GlobalVariable() {\n }",
"private Globals() {}",
"protected void initVars() {}",
"private Globals() {\n\n\t}",
"public void init() {\n \n }",
"public void init() {\n\t\t}",
"public void init(){}",... | [
"0.7533621",
"0.7312634",
"0.7220229",
"0.71849644",
"0.7082509",
"0.70758545",
"0.707552",
"0.70707154",
"0.70312274",
"0.70176584",
"0.7015239",
"0.70135295",
"0.7008897",
"0.6986947",
"0.6986947",
"0.6986947",
"0.6986947",
"0.6980477",
"0.6966369",
"0.6966369",
"0.6966369"... | 0.0 | -1 |
Sets the class represented by the defined tag. | public void setBeanClass(Class<?> beanClass) {
this.beanClass = beanClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setClass_(String newValue);",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"void setTag(java.lang.String tag);",
"public void setTag(Tag tag) {\n\t\tProgramTags newTag = program.getTagIfPresent(tag); // throws if no such tag in program\n\t\tsetTag(newTag);\n\t}",
"public... | [
"0.6875917",
"0.67369235",
"0.63843966",
"0.6329171",
"0.62585366",
"0.62497467",
"0.6196715",
"0.61733747",
"0.615058",
"0.6136262",
"0.6037777",
"0.6004082",
"0.5961609",
"0.59341645",
"0.5889718",
"0.5882713",
"0.58710563",
"0.5852969",
"0.5774822",
"0.57694554",
"0.574685... | 0.0 | -1 |
Retrieves the class represented by the tag. The bean class stored is the data object defined for the Spring Bean | public Class<?> getBeanClass() {
return beanClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Class<T> getBeanClass() {\n return this.type;\n }",
"protected Object fetchBean()\n {\n if (isAttributeDefined(ATTR_REF))\n {\n return getContext().findVariable(getStringAttr(ATTR_REF));\n }\n\n else\n {\n BeanContext bc = FormBaseTag.getBuil... | [
"0.65856826",
"0.6503726",
"0.6229367",
"0.5996548",
"0.5936158",
"0.5911824",
"0.58340704",
"0.56703573",
"0.56703573",
"0.5578702",
"0.5574909",
"0.55732214",
"0.5567049",
"0.555424",
"0.55421025",
"0.55416596",
"0.5539465",
"0.55368626",
"0.5524143",
"0.5510318",
"0.547060... | 0.67750794 | 0 |
Sets the default parent for the associated tag. | public void setParent(String parent) {
this.parent = parent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}",
"@Override\n\tpublic void setParent(Tag parentTag) {\n\t\tthis.parentTag = parentTag;\n\n\t}",
"@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\... | [
"0.8009188",
"0.77315503",
"0.74091035",
"0.6971193",
"0.6878694",
"0.68711823",
"0.68661153",
"0.68625456",
"0.6851636",
"0.6819739",
"0.6819739",
"0.68163145",
"0.6813594",
"0.6802811",
"0.6799044",
"0.6775578",
"0.6763773",
"0.67612594",
"0.6756981",
"0.67459035",
"0.67002... | 0.6825863 | 9 |
Retrieves the bean parent stored for the represented tag. The default parent bean to be used when the custom tag is used. | public String getParent() {
return this.parent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Tag getParent() {\n\t\treturn this.parentTag;\n\t}",
"@Override\r\n\tpublic Tag getParent() {\n\t\treturn null;\r\n\t}",
"Spring getParent() {\n return parent;\n }",
"public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }",
"public XMLPath ... | [
"0.6878555",
"0.66832095",
"0.6450572",
"0.632866",
"0.62260616",
"0.6211101",
"0.60990864",
"0.60990864",
"0.60863787",
"0.6085324",
"0.60847574",
"0.6072192",
"0.6066721",
"0.60647017",
"0.60604495",
"0.60577285",
"0.60420096",
"0.6029424",
"0.60174257",
"0.60135597",
"0.60... | 0.6016985 | 19 |
Instantiates a new (empty) inflection rule. | public InflectionRule() {
this.patternActionRules = new ArrayList<PatternActionRule>();
this.umlaut = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConstraintDefinition() {\n\t\tthis(\"\");\n\t}",
"public InflectionRule(String ruleName, PatternActionRule defRule) {\n\t\tthis(ruleName);\n\t\tsetDefaultRule(defRule);\n\t}",
"public InflectionRule(String ruleName) {\n\t\tthis();\n\t\tsetName(ruleName);\n\t}",
"public RuleConfiguration() {\n\t\trule ... | [
"0.63728905",
"0.62839913",
"0.6267653",
"0.6130476",
"0.6094399",
"0.59913033",
"0.593863",
"0.593863",
"0.593863",
"0.5926729",
"0.58869743",
"0.58765566",
"0.57520014",
"0.57509345",
"0.5693458",
"0.5642209",
"0.5628178",
"0.5601272",
"0.55519545",
"0.5514454",
"0.5500785"... | 0.7389683 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.