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
If a Chord Ring already exists, an existing node is contacted by the node that wishes to join the network.
ChordNode(String address, int port, String existingAddress, int existingPort) { this.address = address; this.port = port; this.existingAddress = existingAddress; this.existingPort = existingPort; SHA1Hasher sha1Hash = new SHA1Hasher(this.address + ":" + this.port); this....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void join(Node chord);", "public void join(NodeInfo info) {\n\t\taddAsPeer(info);\r\n\t\tSystem.out.println(\"Joined : \" + info.getIp() + \" \" + info.getPort());\r\n\t\t// join to obtained node\r\n\t\tString newJoinString = \"0114 JOIN \" + ip + \" \" + port;\r\n\t\tsend(newJoinString, info.getIp(), inf...
[ "0.6079665", "0.57467383", "0.54829484", "0.5445104", "0.5330902", "0.5313666", "0.51997405", "0.51923144", "0.5158585", "0.50202376", "0.49926984", "0.49814013", "0.4971289", "0.4961212", "0.4957795", "0.49424428", "0.49307284", "0.49181998", "0.49165636", "0.4914376", "0.49...
0.5257813
6
Initialize the finger table for the current node. All finger table entries will point to self if this is the only node in the Chord Ring. Else, an existing node will be contacted and will be used to initialize the fingers.
private void initializeFingerTable() { this.fingerTable = new HashMap<>(); if (this.getExistingAddress() == null) { for (int i = 0; i < 32; i++) { this.fingerTable.put(i, new Finger(this.getAddress(), this.getPort())); } } else { try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initFingers() {\n this.fingers = new ArrayList<TNode>(Constants.KEY_SPACE);\n for (int i = 0; i < Constants.KEY_SPACE; i++)\n this.fingers.add(tNode);\n }", "private void upsertFingerTable(boolean first) {\n LOGGER.fine(\"Upserting Fingertable\");\n int fing...
[ "0.7312862", "0.55336356", "0.54868907", "0.5275796", "0.5267892", "0.5153972", "0.51501703", "0.5131809", "0.51270705", "0.51074404", "0.5080832", "0.5059423", "0.50299203", "0.50284743", "0.5024571", "0.5015245", "0.50004715", "0.49820614", "0.49475795", "0.49363557", "0.49...
0.71076775
1
This way the expander cannot be collapsed on click event of group item
@Override public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n return false;\r\n }", "@Override\n ...
[ "0.74979025", "0.73947006", "0.73375607", "0.73156124", "0.7278892", "0.72360146", "0.72127664", "0.72127664", "0.72127664", "0.72127664", "0.71970224", "0.719349", "0.71640784", "0.71392804", "0.7126017", "0.7119666", "0.7092268", "0.7092268", "0.7092268", "0.70872104", "0.7...
0.7221501
6
/UdpPackage test1 = new UdpPackage("name", "data", InetAddress.getByName("127.0.0.1"), InetAddress.getByName("127.0.0.1"), 4000,4000); UdpPackage test2 = new UdpPackage("name", "hello world", InetAddress.getByName("127.0.0.1"), InetAddress.getByName("127.0.0.1"), 4000,4000); loggedPackages.addAll(test1, test2); not the...
public void initialize() throws UnknownHostException { ESP_IPaddress = "127.0.0.1"; /*tableViewLog.setItems(loggedPackages); //set columns content logTime.setCellValueFactory( new PropertyValueFactory<UdpPackage,String>("formattedDate") ); logFromIP.setC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void UDPBroadcastTest() {\n\t\tWifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n\n\t\tif (wifi != null) {\n\t\t\tWifiManager.MulticastLock lock = wifi\n\t\t\t\t\t.createMulticastLock(\"Log_Tag\");\n\t\t\tlock.acquire();\n\n\t\t}\n\t\tint DISCOVERY_PORT = 1989;\n\t\tint TIMEOUT_MS =...
[ "0.56751764", "0.5518222", "0.5421059", "0.5369068", "0.532765", "0.5291746", "0.52890795", "0.52876556", "0.52381134", "0.52281797", "0.5195166", "0.51892734", "0.515888", "0.5105194", "0.50881153", "0.5077375", "0.5074442", "0.50182503", "0.5011857", "0.50012547", "0.499923...
0.5652608
1
this method is called when you press the button in the top right will send a USP message from the emulator to the drone (from itself to itself)
public void sendUdpMessageToDrone(ActionEvent actionEvent) { String message = testmessagebox.getText(); DatagramPacket packet = null; try { packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName("127.0.0.1"), 6000); sender.send(packet); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tLog.d(\"VoMPCall\", \"Picking up\");\n \t\t\t\tServalBatPhoneApplication.context.servaldMonitor\n \t\t\t\t\t\t.sendMessage(\"pickup \"\n \t\t\t\t\t\t+ Integer.toHexString(local_id));\n \t\t\t}", "public void sendClick(View view) {\n String message ...
[ "0.6943773", "0.6825715", "0.66902494", "0.6648034", "0.6634807", "0.6593491", "0.6494322", "0.6473795", "0.6440873", "0.64264655", "0.6419059", "0.6418413", "0.64043415", "0.6402707", "0.63968813", "0.6374023", "0.6332552", "0.63265634", "0.63219357", "0.6310988", "0.6296247...
0.6433206
9
essentially the same method as the one above, but this can be called without pushing a button
public void sendUdpMessageToDrone() { DatagramPacket packet = null; try { packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName("127.0.0.1"), 6000); sender.send(packet); } catch (IOException e) { e.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void popButton() {\n \tifNotEntered();\n \tstackEmptyButton();\n \tif (!stack.empty()) {\n \t\tcurrent = stack.peek();\n \t}\n \tshow(current);\n }", "void onUpOrBackClick();", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse...
[ "0.6509551", "0.62420887", "0.6210809", "0.6181715", "0.61303896", "0.6104856", "0.6090661", "0.60723495", "0.60700107", "0.6052514", "0.60446215", "0.60279214", "0.60275775", "0.60272545", "0.60248077", "0.60105866", "0.6003431", "0.60030425", "0.5974488", "0.5966741", "0.59...
0.0
-1
sends a UDP message to the controller
public void sendUdpMessageToESP() { DatagramPacket packet = null; try { packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(ESP_IPaddress), 6900); sender.send(packet); } catch (IOException e) { e.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendUdpMessageToDrone() {\n\n DatagramPacket packet = null;\n try {\n packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(\"127.0.0.1\"), 6000);\n sender.send(packet);\n\n } catch (IOException e) {\n e.printStackT...
[ "0.79229486", "0.73554265", "0.7018877", "0.69855124", "0.66930044", "0.65872276", "0.65146935", "0.637695", "0.6359708", "0.6351711", "0.62891006", "0.6212689", "0.61929286", "0.6182399", "0.61332154", "0.61068904", "0.6104795", "0.6103672", "0.6099215", "0.6091398", "0.6067...
0.77095515
1
state parameter to validate response from Authorization server and nonce parameter to validate idToken
static void storeStateAndNonceInSession(HttpSession session, String state, String nonce) { if (session.getAttribute(STATES) == null) { session.setAttribute(STATES, new HashMap<String, StateData>()); } ((Map<String, StateData>) session.getAttribute(STATES)).put(state, new StateData(no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateAccessToken(String clientId, String clientSecret) {\n log.info(\"Client Id:{} Client Secret:{}\", clientId, clientSecret);\n\n // Enable the Below code when the Introspection URL is ready to test\n /**\n * String auth = clientId + clientSecret; RestTemplate restTemplate = new R...
[ "0.585625", "0.57628626", "0.5651563", "0.5619236", "0.55963475", "0.5585119", "0.5582123", "0.5567162", "0.5535766", "0.54911685", "0.54282624", "0.54118186", "0.53773856", "0.53476095", "0.5337261", "0.5315249", "0.5253751", "0.5252894", "0.5247503", "0.5232738", "0.521867"...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Allegato createEntity(EntityManager em) { Allegato allegato = new Allegato() .nomeAttachment(DEFAULT_NOME_ATTACHMENT) .algoritmoCompressione(DEFAULT_ALGORITMO_COMPRESSIONE) .formatoAttachment(DEFAULT_FORMATO_ATTACHMENT) .descrizioneAttachment(DEFAULT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.7722865", "0.75046515", "0.74877393", "0.7361822", "0.7314417", "0.715623", "0.715623", "0.7150437", "0.7148942", "0.70781815", "0.7016245", "0.6803062", "0.6752023", "0.67399955", "0.67399955", "0.6712131", "0.6681996", "0.666649", "0.66406924", "0.66251004", "0.6624745",...
0.0
-1
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Allegato createUpdatedEntity(EntityManager em) { Allegato allegato = new Allegato() .nomeAttachment(UPDATED_NOME_ATTACHMENT) .algoritmoCompressione(UPDATED_ALGORITMO_COMPRESSIONE) .formatoAttachment(UPDATED_FORMATO_ATTACHMENT) .descrizioneAttachment(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB...
[ "0.6945333", "0.67885923", "0.67884284", "0.67190146", "0.66947293", "0.6693256", "0.6664715", "0.6637128", "0.66206217", "0.6516117", "0.65103185", "0.64481264", "0.64244235", "0.64216477", "0.6421002", "0.6416659", "0.64125335", "0.6410089", "0.6404945", "0.63945645", "0.63...
0.61179155
52
TODO move logic to .deb? or prompt before doing, this can be a security risk
private static void installFlashLinux(File xulInstallPath) { File pluginsDir = new File(xulInstallPath, "/xulrunner/plugins"); if (OSUtils.isLinux()) { for (File file : pluginsDir.listFiles()) { if (file.isFile() && file.getName().contains("flash")) { ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void askDefaultProduction();", "final private static void usage () {\n\t\t usage_print () ;\n\t\t System.exit (0) ;\n }", "private static void inputInstallerCommand() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString commandLine = scanner.nextLine();\n\t\t//Case-sensitive ans should be always Upp...
[ "0.58197457", "0.57999516", "0.5656801", "0.5627179", "0.5601552", "0.5554234", "0.5542924", "0.5501533", "0.5485514", "0.5473985", "0.5447871", "0.5412579", "0.5399164", "0.53964317", "0.5367677", "0.53527504", "0.53506386", "0.53351843", "0.5330936", "0.5309069", "0.5306931...
0.0
-1
String p = "D:/Project/shixi/graylogin/grayrest/src/main/resources/lua/gray_config.json"; String p = RestGetAllConfigJson.class.getClassLoader().getResource("/lua/gray_config.json").getPath(); String p = Thread.currentThread().getContextClassLoader().getResource("lua/gray_config.json").getFile(); String p = RestGetAllC...
public static void main(String[] args) { System.out.println(readAllStringInFile("lua/gray_config.json")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getResourcePath();", "String getResource();", "protected abstract String getResourcePath();", "static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.c...
[ "0.678419", "0.66876704", "0.6474418", "0.6438041", "0.6393724", "0.63733715", "0.6279968", "0.61685497", "0.6158937", "0.6140995", "0.60653096", "0.59866834", "0.5910497", "0.5879451", "0.5872339", "0.5863412", "0.5859095", "0.5842655", "0.5812413", "0.5807865", "0.5800617",...
0.0
-1
Constructor initializes the Google Authorization Code Flow with CLIENT ID, SECRET, and SCOPE
public GoogleAuthHelper() { LoadType<ClientCredentials> credentials = ofy().load().type(ClientCredentials.class); for(ClientCredentials credential : credentials) { // static ClientCredentials credentials = new ClientCredentials(); CALLBACK_URI = credential.getCallBackUri(); CLIENT_ID = credential.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AuthorizationCodeRequest() {\n setGrantType(ClientConfig.AUTHORIZATION_CODE);\n Map<String, Object> tokenConfig = ClientConfig.get().getTokenConfig();\n if(tokenConfig != null) {\n setServerUrl((String)tokenConfig.get(ClientConfig.SERVER_URL));\n setProxyHost((Stri...
[ "0.65219533", "0.6353456", "0.6197275", "0.6168764", "0.61563176", "0.6028695", "0.59251416", "0.5898581", "0.58804816", "0.58582485", "0.58570683", "0.5747023", "0.5727118", "0.5681224", "0.56499094", "0.56134933", "0.5603147", "0.55756325", "0.5552599", "0.5512159", "0.5480...
0.77973455
0
adds users google profile to the data store
public void addUser(Profile profile) throws JSONException { ofy().save().entity(profile).now(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void registerWithGoogle(UserInfo ui, String googleid) {\n\t\t_uim.insertWithGoogleId(ui, googleid);\n\t}", "public void saveProfileCreateData() {\r\n\r\n }", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistr...
[ "0.6592279", "0.658662", "0.646471", "0.6353959", "0.62847316", "0.6220087", "0.6188373", "0.61795527", "0.61487347", "0.6128492", "0.6114862", "0.60853136", "0.60848767", "0.60506415", "0.6044456", "0.5981356", "0.59488475", "0.59485734", "0.59275985", "0.5896187", "0.589605...
0.695232
0
Builds a login URL based on client ID, secret, callback URI, and scope
public String buildLoginUrl() { final GoogleAuthorizationCodeRequestUrl url = flow .newAuthorizationUrl(); return url.setRedirectUri(CALLBACK_URI).setState(stateToken).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getLoginUrl(OpenIdProvider provider) {\n if (env.isRunningInDevMode()) {\n return \"http://\" + env.getHost() + \"/_ah/login?continue=/?gwt.codesvr=\"\n + env.getUrlParameter(\"gwt.codesvr\");\n } else {\n return \"http://\" + env.getHost() + \"/_ah/login_redir?claimid=\" \n...
[ "0.6637256", "0.650449", "0.6226163", "0.598194", "0.5667437", "0.5660877", "0.55988574", "0.5559096", "0.5537384", "0.5537384", "0.55027544", "0.54257864", "0.5388501", "0.5376726", "0.5142448", "0.50304466", "0.5018782", "0.49709377", "0.49507383", "0.49370718", "0.49124357...
0.7483766
0
Generates a secure state token
private void generateStateToken() { SecureRandom sr1 = new SecureRandom(); stateToken = "google;" + sr1.nextInt(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "private String generateToken () {\n SecureRandom secureRandom = new Secu...
[ "0.8385685", "0.6975523", "0.68869835", "0.65833694", "0.6553533", "0.65491766", "0.6545368", "0.6501952", "0.6500381", "0.6455052", "0.64176846", "0.6309492", "0.6264404", "0.61816233", "0.61622", "0.6113809", "0.6108896", "0.60990185", "0.6098933", "0.6068163", "0.6043175",...
0.8391783
0
returns a valid google access token, valid for 60 mins
public String getAccessCookie(final String authCode) throws IOException, JSONException { Credential credential = getUsercredential(authCode); String accessToken = credential.getAccessToken(); System.out.println(accessToken); return accessToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Duration getTokenExpiredIn();", "public Integer getAccessTokenValiditySeconds() {\n return accessTokenValiditySeconds;\n }", "public long getTokenValidityInSeconds() {\n return tokenValidityInSeconds;\n }", "@Test\n public void getGoogleAuthTokensTest() throws A...
[ "0.6485897", "0.62527597", "0.6034796", "0.5953053", "0.590985", "0.5835783", "0.580166", "0.57781214", "0.577022", "0.5722362", "0.5676308", "0.56739193", "0.56638294", "0.5652085", "0.5652085", "0.564666", "0.5592949", "0.5576717", "0.55250376", "0.5514648", "0.54956955", ...
0.0
-1
on first submision you may request a refresh token
public String getRefreshToken(Credential credential) throws IOException, JSONException { String refreshToken = credential.getRefreshToken(); System.out.println(refreshToken); return refreshToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTokenRefresh() {\n }", "private String refreshToken() {\n return null;\n }", "private void mtd_refresh_token() {\n RxClient.get(FeedActivity.this).Login(new loginreq(sharedpreferences.\n getString(SharedPrefUtils.SpEmail, \"\"),\n s...
[ "0.7490559", "0.73476005", "0.73286694", "0.72479", "0.72414947", "0.7177566", "0.7166788", "0.71317583", "0.71124864", "0.7104656", "0.7082014", "0.7077287", "0.6926462", "0.69096076", "0.68916905", "0.6873867", "0.68500334", "0.6809121", "0.67903113", "0.67655164", "0.67645...
0.0
-1
Accessor for state token
public String getStateToken() { return stateToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getStateToken() {\n return stateToken;\n }", "@Override\n\tpublic Token getToken() {\n\t\treturn this.token;\n\t\t\n\t}", "public String token() {\n return this.token;\n }", "public T getToken() {\n return this.token;\n }", "public Token getToken() {\n ...
[ "0.8266365", "0.70490295", "0.7044556", "0.70145696", "0.6990987", "0.69311607", "0.68820834", "0.6878695", "0.6878695", "0.68679637", "0.6864638", "0.6864638", "0.6864638", "0.68126583", "0.680988", "0.68031824", "0.6794402", "0.6794402", "0.67790526", "0.6764743", "0.676474...
0.81803674
1
Expects an Authentication Code, and makes an authenticated request for the user's profile information
public Credential getUsercredential(final String authCode) throws IOException, JSONException { final GoogleTokenResponse response = flow.newTokenRequest(authCode) .setRedirectUri(CALLBACK_URI).execute(); final Credential credential = flow.createAndStoreCredential(response, null); return credential; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserInfoJson(final String authCode) throws IOException,\n\t\t\tJSONException {\n\t\tCredential credential = getUsercredential(authCode);\n\t\tfinal HttpRequestFactory requestFactory = HTTP_TRANSPORT\n\t\t\t\t.createRequestFactory(credential);\n\t\tfinal GenericUrl url = new GenericUrl(USER_INFO_UR...
[ "0.619334", "0.6130533", "0.6022236", "0.59430027", "0.591189", "0.5905309", "0.58737", "0.5867976", "0.5867772", "0.5861287", "0.5837636", "0.58228177", "0.58218247", "0.5805939", "0.57505697", "0.5746983", "0.57002956", "0.57002383", "0.56878287", "0.56756794", "0.5651597",...
0.5464399
42
returns a google credential from a refresh token for accessing api services
public Credential getCredentialRefTkn(String refreshToken){ Credential credential = createCredentialWithRefreshToken(HTTP_TRANSPORT, JSON_FACTORY, new TokenResponse().setRefreshToken(refreshToken), CLIENT_ID, CLIENT_SECRET); return credential; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n private static String getRefreshToken() throws IOException {\n String client_id = System.getenv(\"PICASSA_CLIENT_ID\");\n String client_secret = System.getenv(\"PICASSA_CLIENT_SECRET\");\n \n // Adapted from http://stackoverflow.com/a/14499390/1447621\...
[ "0.68446887", "0.6771073", "0.6728438", "0.6659602", "0.6640806", "0.66006637", "0.65307516", "0.63937724", "0.63685864", "0.62877935", "0.6199586", "0.61903155", "0.6164032", "0.61415875", "0.6138039", "0.61326826", "0.6120597", "0.6111364", "0.6103937", "0.6075062", "0.6053...
0.7086123
0
returns a google credential from an access token for accessing api services
public Credential getUsercredentialwithAccessToken(String accessToken) { return new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(new JacksonFactory()) .setClientSecrets(CLIENT_ID, CLIENT_SECRET).build() .setAccessToken(accessToken); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GoogleAuthenticatorKey createCredentials();", "private GoogleCredential getGoogleCredential(String userId) {\t\t\n\t\t\n\t\ttry { \n\t\t\t// get the service account e-mail address and service account private key from property file\n\t\t\t// this email account and key file are specific for your environment\n\t\t\...
[ "0.7157486", "0.7003007", "0.6981532", "0.69133854", "0.6592825", "0.6592825", "0.65753984", "0.65285426", "0.652011", "0.6323308", "0.63073236", "0.6304731", "0.6291744", "0.62623024", "0.6231891", "0.62285227", "0.620941", "0.6208416", "0.62065107", "0.61997175", "0.6189323...
0.7455343
0
returns a google credential from a refresh token for accessing api services
public static GoogleCredential createCredentialWithRefreshToken( HttpTransport transport, JacksonFactory jsonFactory, TokenResponse tokenResponse, String clientId, String clientSecret) { return new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(new JacksonFactory()) .setClientSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Credential getCredentialRefTkn(String refreshToken){\n\tCredential credential = createCredentialWithRefreshToken(HTTP_TRANSPORT,\n\t\t\tJSON_FACTORY,\n\t\t\tnew TokenResponse().setRefreshToken(refreshToken), CLIENT_ID,\n\t\t\tCLIENT_SECRET);\n\treturn credential;\n\t}", "@SuppressWarnings(\"unused\")\n ...
[ "0.70853543", "0.6844742", "0.6772429", "0.67277604", "0.66416276", "0.6600734", "0.65312195", "0.639379", "0.6368126", "0.62875175", "0.6200403", "0.6190954", "0.61642975", "0.6141216", "0.6138306", "0.6132734", "0.6119661", "0.611213", "0.6102799", "0.60739976", "0.6054634"...
0.6659255
4
gets the users google profile with a valid google credntial and returns it in a json object
public String getUserInfoJson(Credential credential) throws IOException, JSONException { final HttpRequestFactory requestFactory = HTTP_TRANSPORT .createRequestFactory(credential); final GenericUrl url = new GenericUrl(USER_INFO_URL); final HttpRequest request = requestFactory.buildGetRequest(url); reque...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String RetrieveGoogleSignInProfile(){\n String personName;\n acct = GoogleSignIn.getLastSignedInAccount(ChooseService.this);\n if (acct != null) {\n personName = acct.getDisplayName();\n /*String personGivenName = acct.getGivenName();\n String personFam...
[ "0.7288774", "0.6695322", "0.6596452", "0.6556254", "0.65394515", "0.65353024", "0.6426097", "0.62844825", "0.6039052", "0.6005875", "0.59840655", "0.5953133", "0.59351087", "0.59259343", "0.5921276", "0.5920721", "0.58984756", "0.5886306", "0.5849489", "0.58088535", "0.57978...
0.53731257
50
gets the users google profile with a valid google auth code and returns it in a json object
public String getUserInfoJson(final String authCode) throws IOException, JSONException { Credential credential = getUsercredential(authCode); final HttpRequestFactory requestFactory = HTTP_TRANSPORT .createRequestFactory(credential); final GenericUrl url = new GenericUrl(USER_INFO_URL); final HttpRequest...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String RetrieveGoogleSignInProfile(){\n String personName;\n acct = GoogleSignIn.getLastSignedInAccount(ChooseService.this);\n if (acct != null) {\n personName = acct.getDisplayName();\n /*String personGivenName = acct.getGivenName();\n String personFam...
[ "0.71227664", "0.6456888", "0.6354093", "0.6337825", "0.6227916", "0.61799425", "0.60501367", "0.6014338", "0.58772933", "0.584754", "0.58337736", "0.5830029", "0.58130336", "0.5798168", "0.57488555", "0.5740053", "0.5707927", "0.5687405", "0.5676123", "0.5673607", "0.5653565...
0.595513
8
MarketQueryV4API is subscription type communication to be notified when a particular event occurs on the registered data. The subscription is done to the MDX (Market Data Express) via the CAS. All notifications will be sent from the MDX to the client directly without passing by the CAS.
public interface MarketQueryV4API { public boolean isV4ToV3MDConversionEnabled(); public boolean isMDXSupportedSession(String session); public void subscribeCurrentMarketV4(int classKey, EventChannelListener clientListener) throws SystemException, CommunicationException, AuthorizationException...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface QxService {\n String transmission(String data, String appId, String sign);\n}", "@ClassVersion(\"$Id$\")\npublic interface MarketDataServiceAdapter\n{\n /**\n * Requests the given market data.\n *\n * @param inRequest a <code>MarketDataRequest</code> value\n * @param inStre...
[ "0.5830669", "0.56970334", "0.55709475", "0.5399589", "0.5301178", "0.5154422", "0.5055143", "0.4952739", "0.494254", "0.49349013", "0.49182796", "0.4907689", "0.48560512", "0.48368135", "0.48017985", "0.47985148", "0.47928098", "0.47879973", "0.47841138", "0.4780268", "0.475...
0.71608686
0
Get the NBBOStruct for a product key for a session name.
public NBBOStruct getNbboSnapshotForProduct(String sessionName, int productKey) throws UserException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NBBOStruct getNbboSnapshotForProduct(int timeout, String sessionName, int productKey)\n throws UserException;", "public Product getProductFromName(String prodName) throws BackendException;", "int getProductKey();", "public synchronized WebElement shoppingBagProductName() throws Exception {\...
[ "0.7122028", "0.53411734", "0.5309384", "0.4944269", "0.48629946", "0.47866046", "0.47709423", "0.47114846", "0.4695117", "0.45938534", "0.45846283", "0.45787367", "0.45779398", "0.45614958", "0.4558116", "0.4555647", "0.45305526", "0.45258978", "0.45160508", "0.44913596", "0...
0.7925565
0
Get the NBBOStruct for a product key for a session name within a period of subscription time.
public NBBOStruct getNbboSnapshotForProduct(int timeout, String sessionName, int productKey) throws UserException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NBBOStruct getNbboSnapshotForProduct(String sessionName, int productKey) throws UserException;", "public Product getProductFromName(String prodName) throws BackendException;", "int getProductKey();", "public synchronized WebElement shoppingBagProductName() throws Exception {\n\n\t\treturn utils.findEl...
[ "0.77701706", "0.5144664", "0.5035738", "0.4889142", "0.47448367", "0.4620086", "0.4563503", "0.45601165", "0.45274946", "0.4525099", "0.44871187", "0.44692355", "0.4464466", "0.4453677", "0.44528544", "0.44487745", "0.44434124", "0.4415878", "0.44114175", "0.4407787", "0.440...
0.7340129
1
declare instance of a circle class called c1 Construct the instance with the default constructor circle which sets its radius and color to its default values trying
public static void main(String[] args) { circle c1 = new circle(); //invoke public methods on instance c1 via dot operator System.out.println("Radius of Circle is" + c1.getRadius() + " & Area of the cirle is " + c1.getArea()); //Declare the instance of the class called c2 //Construct the instance with th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Circle(){ // 1 constructor\n this.radius = DEFAULT_RADIUS;\n this.color = DEFAULT_COLOR;\n }", "public Circle(double radius){ // 2 constructor\n this.radius = radius;\n this.color = DEFAULT_COLOR;\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n ...
[ "0.87202775", "0.85439503", "0.8405981", "0.8396547", "0.8319921", "0.8260718", "0.81475216", "0.8072442", "0.79058176", "0.78790486", "0.7852895", "0.7837734", "0.78272015", "0.7816442", "0.7790958", "0.7744007", "0.7733603", "0.77225566", "0.7693362", "0.7683247", "0.763766...
0.73492974
29
Use this factory method to create a new instance of this fragment using the provided parameters.
public static CoatOfArmsFragment newInstance(City city) { CoatOfArmsFragment fragment = new CoatOfArmsFragment(); Bundle args = new Bundle(); args.putParcelable(ARG_INDEX, city); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_coat_of_arms, container, false); }
{ "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
A collection designed for holding elements prior to their execution. The collection stores elements with a firstinfirstout (FIFO) order. The interface defines methods for insertion (push), extraction (pop) and inspection (peek). The remove() method removes and returns the element at the front of the stack or throws an ...
public interface Queue<T> { /** * Insert item at the back of the queue. * @param item insert item at the back of the queue */ public void push(T item); /** * Remove the element at the front of the queue and return its value. * @return value of the element removed from the front ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object t...
[ "0.7288588", "0.72525036", "0.7181688", "0.7159896", "0.7148003", "0.7087053", "0.70357645", "0.699785", "0.6970415", "0.6965151", "0.69492143", "0.69197553", "0.69180876", "0.690289", "0.68949777", "0.6836883", "0.6834546", "0.6816494", "0.6791752", "0.6791752", "0.6781907",...
0.74695796
0
Insert item at the back of the queue.
public void push(T item);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RNode insertAtBack(int item) {\n if (next == null) {\n next = new RNode(item, null);\n return this;\n } else {\n next = next.insertAtBack(item);\n return this; \n }\n }", "public void enqueue(E item) {\n addLast(item);\n }", "...
[ "0.7057123", "0.68927175", "0.6884722", "0.68709934", "0.6751838", "0.67250466", "0.6605964", "0.65737915", "0.6571392", "0.6565653", "0.6552423", "0.6526135", "0.65235144", "0.6422385", "0.641965", "0.6399514", "0.638986", "0.6386314", "0.63690615", "0.6365642", "0.63614655"...
0.632317
28
Remove the element at the front of the queue and return its value.
public T pop();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n ...
[ "0.78420955", "0.784065", "0.7827602", "0.7779622", "0.7743837", "0.77322", "0.77244395", "0.76594263", "0.764749", "0.7617066", "0.7604456", "0.7585826", "0.7567178", "0.7553275", "0.75452113", "0.7483475", "0.7472236", "0.7461723", "0.7457074", "0.7453139", "0.7450933", "...
0.0
-1
Return the value of the element at the front of the queue.
public T peek();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }", "public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n ...
[ "0.8195384", "0.8072298", "0.7942506", "0.7940091", "0.78985083", "0.7799661", "0.773685", "0.7678359", "0.76763016", "0.76524496", "0.762616", "0.76074743", "0.757925", "0.7574413", "0.7571812", "0.7517954", "0.7497535", "0.7481589", "0.74613094", "0.74545383", "0.7446222", ...
0.0
-1
Return a boolean value that indicates whether the queue is empty. Return true if empty and false if not empty.
public boolean isEmpty();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "public boolean isEmpty() {\n return que...
[ "0.8877802", "0.8622327", "0.86033183", "0.8601467", "0.85795563", "0.85634744", "0.85634744", "0.85634744", "0.85634744", "0.85634744", "0.85634744", "0.85634744", "0.85536236", "0.8553311", "0.8553311", "0.85418934", "0.85238564", "0.8489161", "0.8489161", "0.8489161", "0.8...
0.0
-1
Return the number of elements currently in the queue.
public int size();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n return queue.size();\n }", "public int size() {\n\t\treturn queue.size();\n\t}", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int getCount() {\n return queue.size();\n }", "public int size() {\n return this.queue.size();\n }", "publi...
[ "0.8363061", "0.83550394", "0.8312843", "0.83027464", "0.828576", "0.8266784", "0.79548216", "0.78513473", "0.78471047", "0.7698604", "0.7695969", "0.7694315", "0.76852775", "0.7684611", "0.7605173", "0.75597", "0.7555043", "0.7550924", "0.7453111", "0.7425351", "0.74243677",...
0.0
-1
returns the adjacency list for the vertex v
public LinkedList<Vertex> getList(Vertex v){ int i=0; //find v1 adjacency list while(!aLists.get(i).get(0).equals(v) && i < aLists.length()){ i++; } return aLists.get(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Integer> adj(int v) {\n return adj[v];\n }", "List<V> getAdjacentVertexList(V v);", "@Override\r\n public List<Vertex> getNeighbors(Vertex v) {\r\n ArrayList<Vertex> neighborsList = new ArrayList<>();\r\n neighborsList = adjacencyList.get(v);\r\n Collections.sort(neighbo...
[ "0.79264206", "0.787169", "0.7590582", "0.757576", "0.7506157", "0.73275554", "0.7294886", "0.7285496", "0.72773653", "0.7269597", "0.71473414", "0.71335304", "0.7044881", "0.70167494", "0.6733354", "0.6672171", "0.66618145", "0.66331613", "0.6618232", "0.65543365", "0.654181...
0.69167554
14
Created by x on 2016/9/2.
public interface BalanceActivityView extends BaseIView { void moneybalance(BalanceBean balanceBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.61501", "0.60142493", "0.59929293", "0.59651726", "0.595892", "0.595892", "0.59292936", "0.59175056", "0.59141934", "0.5883701", "0.5832915", "0.5832092", "0.5824148", "0.58098453", "0.58068734", "0.5776985", "0.57727444", "0.575976", "0.5751278", "0.5743688", "0.5742279",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println(factorial(6)); System.out.println(fibbo(6)); }
{ "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
/ access modifiers changed from: protected
public boolean onFieldChange(int i, Object obj, int i2) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected / JADX WARNING: Removed duplicated region for block: B:77:0x00fb / JADX WARNING: Removed duplicated region for block: B:86:? A[RETURN, SYNTHETIC] / Code decompiled incorrectly, please refer to instructions dump.
public void executeBindings() { /* r28 = this; r1 = r28 monitor-enter(r28) long r2 = r1.mDirtyFlags // Catch:{ all -> 0x0132 } r4 = 0 r1.mDirtyFlags = r4 // Catch:{ all -> 0x0132 } monitor-exit(r28) // Catch:{ all ->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "@Override\n public void func_104112_b() {\n \n }", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "void m1864a() {\r\n }", "public voi...
[ "0.68582827", "0.6620878", "0.6610857", "0.65470314", "0.6509625", "0.65080696", "0.64783424", "0.64740133", "0.6470899", "0.6456672", "0.6451211", "0.64384896", "0.63887", "0.63678104", "0.63494086", "0.6347781", "0.63402736", "0.6329167", "0.63145703", "0.6290253", "0.62885...
0.0
-1
Runs the application. Pairs up clients that connect.
public static void main(String[] args) throws Exception { ServerSocket listener = new ServerSocket(8102); System.out.println("Server is Running"); try { while (true) { Panel panel = new Panel(); Game game = new Game(); Object[] map = p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "@Override\n\tpublic void run() \n\t{\n\t\tcommunicator = com.zeroc.Ice.Util.initialize();\n GameServerPrx clientPrx = GameServerPrx.checkedCast(\n communicator.stringToProxy(\"client:default -h 58.167.142.74 -p 10002\")).ice_two...
[ "0.6897103", "0.68856317", "0.6813211", "0.6717985", "0.671784", "0.670164", "0.6673325", "0.6646708", "0.65960515", "0.65794975", "0.65605915", "0.6536468", "0.652637", "0.6526022", "0.651778", "0.65055114", "0.64267015", "0.64052415", "0.6403692", "0.64006156", "0.6393453",...
0.0
-1
move the pointer i ahead one iteration
private int advance(int[] n, int i) { i += n[i]; i%=len; while (i<0) i+=len; return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int moveForward(int i, int s) {\n if (i + s >= items.length) {\n return ((i + s) - items.length);\n }\n return i + s;\n }", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; /...
[ "0.71195465", "0.6645556", "0.65639395", "0.63908553", "0.63367647", "0.6284984", "0.62226075", "0.6189297", "0.60300606", "0.5991861", "0.5983243", "0.59645677", "0.5956091", "0.59226215", "0.5876417", "0.5871376", "0.58347595", "0.5789896", "0.57418436", "0.57371056", "0.56...
0.6548172
3
////////////////////////////////////////////////////////////////////////////////////////////// STATISTICAL FUNCTIONS //////////////////////////////////////////////////////////////////////////////////////////////
public static double mean(final double... values) { // Check the arguments DoubleArguments.requireNonEmpty(values); // Return the mean return Maths.sumWithoutNaN(values) / values.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getStatus() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "@Override\n\tpublic void ...
[ "0.631672", "0.62125826", "0.59277415", "0.5792445", "0.56641734", "0.561537", "0.558393", "0.5583715", "0.55481625", "0.5527655", "0.548093", "0.54767954", "0.5470147", "0.5455112", "0.5448489", "0.544106", "0.544106", "0.5416326", "0.5387919", "0.53814805", "0.53810894", ...
0.0
-1
disable constructor to guaranty a single instance
private HibernateUtil() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private SingleObject(){}", "Reproducible newInstance();", "private SingleObject()\r\n {\r\n }", "private Instantiation()...
[ "0.71196234", "0.71057856", "0.7016783", "0.6921221", "0.69167745", "0.6823607", "0.6797366", "0.6746232", "0.66804624", "0.6672716", "0.662442", "0.6596185", "0.65686333", "0.65633756", "0.6551464", "0.6540979", "0.6507657", "0.6503602", "0.65028495", "0.64802945", "0.645461...
0.0
-1
create one time session Factory from static block.
public synchronized static SessionFactory createSessionFactory() { if (sessionFactory == null) { LOG.debug(MODULE + "in createSessionFactory"); sessionFactory = new Configuration().configure().buildSessionFactory(); // ApplicationContext appcontext = Applicat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DefaultSessionIdentityMaker newInstance() { return new DefaultSessionIdentityMaker(); }", "private Single<SessionEntity> newSession(UserEntity userEntity) {\n return this.authApi.getToken().flatMap(requestTokenEntity ->\n this.authApi.validateToken(\n ne...
[ "0.58526176", "0.569183", "0.55973184", "0.55821204", "0.55708534", "0.556512", "0.5435487", "0.5424362", "0.5403803", "0.5399645", "0.53445655", "0.53187937", "0.5306859", "0.5301074", "0.5294093", "0.52426285", "0.5232778", "0.5220353", "0.52112204", "0.520828", "0.5204778"...
0.5498676
6
Returns a session from the session context. If there is no session inthe context it opens a session, stores it in the context and returns it. This factory is intended to be used with a hibernate.cfg.xml including the following property thread This wouldreturn the current open session or if this does not exist, will cre...
public static Session getCurrentSession() { //LOG.debug(MODULE + "Get CurrentSession"); /* This code is to find who has called the method only for debugging and testing purpose. try { throw new Exception("Who called Me : "); } catch (Exception e) { //LOG.debug...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Session currentSession() {\n Session session = (Session) sessionThreadLocal.get();\n // Open a new Session, if this Thread has none yet\n try {\n if (session == null) {\n session = sessionFactory.openSession();\n sessionThreadLocal.set(ses...
[ "0.80684763", "0.79891914", "0.79841596", "0.7955727", "0.7897821", "0.7837049", "0.77233267", "0.75982183", "0.75559753", "0.7469089", "0.7465884", "0.7450184", "0.7351439", "0.73247087", "0.72234046", "0.72201955", "0.7201571", "0.71987975", "0.7197638", "0.7169647", "0.716...
0.6805294
56
closes the session factory
public static void close() { if (sessionFactory != null) { sessionFactory.close(); } LOG.debug(MODULE + "SessionFactory Close"); sessionFactory = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public /*static*/ void close() {\n sessionFactory.close();\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n sessionFactory = null;\r\n }", "public static void close() {\r\n\t\tif (sessionFactory != null)\r\n\t\t\tsessionFactory...
[ "0.8037413", "0.7783974", "0.77673537", "0.77139926", "0.7572479", "0.7483084", "0.7483084", "0.7286603", "0.70939535", "0.69921255", "0.68487394", "0.68088454", "0.6785845", "0.67833465", "0.6741877", "0.6661791", "0.6532263", "0.65242153", "0.65110856", "0.6419734", "0.6382...
0.7484619
5
Methods for interacting with permissions objects
public interface PermissionService { Permission createNew(Account account, User user, Role type); Iterable<Permission> getForUser(User user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void getPermission();", "public interface Permissions\r\n{\r\n\t/**\r\n\t * Tests whether a permission has been granted\r\n\t * \r\n\t * @param capability The permission (capability) to test for\r\n\t * @return Whether the given capability is allowed\r\n\t */\r\n\tboolean has(String capability);\...
[ "0.7495443", "0.7323509", "0.72369105", "0.71374047", "0.7077143", "0.70167774", "0.70031816", "0.6931674", "0.6877734", "0.68005973", "0.67669374", "0.67606646", "0.6756883", "0.67342174", "0.66748434", "0.6639412", "0.6634125", "0.6608415", "0.6527702", "0.6511545", "0.6482...
0.6361911
34
Constructor Constructor of the loader
public EmptyOrganizer(Node node, ModelInstance modelInstance, IProcess parentProcess) { super(node, modelInstance, parentProcess); String emptyName = getAttribute("name"); element = (IBasicElement) modelInstance.getElement(emptyName); element.setParentProcess(parentPro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasicLoader() {\n }", "private ClinicFileLoader() {\n\t}", "public Loader(){\n\t\tthis(PLANETS, NEIGHBOURS);\n\t}", "public LoaderInfo( ) { \n\t\tsuper( null );\n\t}", "private JarFileLoader() {\n }", "public abstract void init(ResourceLoader loader);", "public DefaultLoaderDefinition() {...
[ "0.8497327", "0.7982097", "0.7971902", "0.7958492", "0.7795432", "0.75360036", "0.7375044", "0.7354104", "0.73406756", "0.7317929", "0.729188", "0.72627485", "0.71915096", "0.7187077", "0.71071374", "0.70921946", "0.70640045", "0.7042946", "0.7017194", "0.69316244", "0.692516...
0.0
-1
Returns the empty being loaded
public IEmpty getActivity( ) { return (IEmpty) element; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLoaded(){return true;}", "boolean isLoaded();", "public boolean isLoaded();", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "public boolean isLoaded() {\n\treturn loaded;\n }", "boolean isForceLoaded();", "public boolean hasBeenLoaded () {\n return loaded;\n ...
[ "0.73936564", "0.71906775", "0.718803", "0.7070815", "0.70134443", "0.69976187", "0.69600296", "0.6948984", "0.6877071", "0.6838277", "0.6807412", "0.6787007", "0.6782756", "0.6664526", "0.66449106", "0.6616051", "0.6586556", "0.65493554", "0.6496227", "0.6427875", "0.6418847...
0.0
-1
Loads all the empty information
public void organizeInternalStructure( ) throws LoaderException { // Fist cast the object for easier use and validation IEmpty empty = null; try { empty = ( IEmpty )element; } catch( ClassCastException e ) { throw new LoaderEx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "protected void loadData()\n {\n }", "private void initializeInfo()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while (it.hasNext())\n ...
[ "0.6902998", "0.67044497", "0.6629148", "0.6402294", "0.6361719", "0.63467085", "0.63151777", "0.6291297", "0.62876993", "0.62802577", "0.62385035", "0.62339866", "0.62142444", "0.6209136", "0.61818177", "0.6173355", "0.6160848", "0.6127946", "0.6107346", "0.6089394", "0.6086...
0.0
-1
/ nibble to bit map
public static void ComputeTables() { int[][] nbl2bit = { new int[]{1, 0, 0, 0}, new int[]{1, 0, 0, 1}, new int[]{1, 0, 1, 0}, new int[]{1, 0, 1, 1}, new int[]{1, 1, 0, 0}, new int[]{1, 1, 0, 1}, new int[]{1, 1, 1, 0}, new int[]{1, 1, 1, 1}, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIndexBits();", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "int getBitAsInt(int index);", "private byte[] intToBits(int number, int n) {\n\t\tbyte[] bits = new byte[n];\n\t\t\n\t\tString bitString = Integer.toBinaryString(number);\n\t\twhile (bitString.length() < n) {\n\t\t\...
[ "0.64870375", "0.64184994", "0.63921237", "0.6327824", "0.6064594", "0.60564744", "0.6015448", "0.59359264", "0.5874327", "0.58586526", "0.5833007", "0.58177435", "0.57779795", "0.57695454", "0.57637805", "0.5759595", "0.57567716", "0.5747782", "0.57376975", "0.57146317", "0....
0.52341604
87
/ Reset emulation of an MSM5205compatible chip
public static void MSM5205_sh_reset() { int i; /* bail if we're not emulating sound_old */ if (Machine.sample_rate == 0) { return; } for (i = 0; i < msm5205_intf.num; i++) { MSM5205Voice voice = msm5205[i]; /* initialize work */ v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void external_reset()\n {\n // Set EXTRF bit in MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x02); }\n catch (RuntimeException e) { }\n\n // TO DO: Handle an external reset\n // This happens when the RESET pin of the atmel is se...
[ "0.6981184", "0.6958082", "0.68571824", "0.67448723", "0.6519162", "0.6515151", "0.64400417", "0.64237547", "0.64178246", "0.6374691", "0.63575", "0.6275641", "0.62131125", "0.6207295", "0.61999696", "0.61766803", "0.6166282", "0.6106259", "0.60524863", "0.6051682", "0.604320...
0.7523624
0
/ range check the numbers
public void handler(int num, int vclk) { if (num >= msm5205_intf.num) { logerror("error: MSM5205_vclk_w() called with chip = %d, but only %d chips allocated\n", num, msm5205_intf.num); return; } if (msm5205[num].prescaler != 0) { logerr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int checkRange(int number,int range){\n return (number+range)%range;\n }", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n...
[ "0.7845292", "0.75389713", "0.7205976", "0.69854635", "0.6912959", "0.6866265", "0.67698085", "0.6653748", "0.6651668", "0.6635745", "0.66118884", "0.65706205", "0.6552054", "0.65481836", "0.6534906", "0.6533676", "0.6489853", "0.6478157", "0.6429369", "0.6423339", "0.6391329...
0.0
-1
/ range check the numbers
public void handler(int num, int reset) { if (num >= msm5205_intf.num) { logerror("error: MSM5205_reset_w() called with chip = %d, but only %d chips allocated\n", num, msm5205_intf.num); return; } msm5205[num].reset = reset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int checkRange(int number,int range){\n return (number+range)%range;\n }", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n...
[ "0.7844707", "0.7539124", "0.720621", "0.6986465", "0.6913385", "0.6866213", "0.6769316", "0.6653419", "0.66519386", "0.6636691", "0.6613266", "0.65697116", "0.655172", "0.654876", "0.6535026", "0.6534162", "0.64891714", "0.64778656", "0.64306474", "0.642422", "0.63916165", ...
0.0
-1
Generates order that will be seen in specified time.
public Order generateAt(int time);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final LocalTime generateOrderTime() {\n return LocalTime.MIN.plusSeconds(RANDOM.nextLong());\n }", "public LabOrder generateOrder() {\n LabOrder order = new LabOrder();\n Random r = new Random();\n Date date = getDate(r);\n order.insertts = date; //randbetween 138853...
[ "0.5809883", "0.55698115", "0.5447791", "0.54216164", "0.52547354", "0.5098842", "0.5028837", "0.5022729", "0.502103", "0.49948835", "0.49846768", "0.49687827", "0.4966211", "0.49293593", "0.48798758", "0.48633507", "0.48085102", "0.48020858", "0.47927314", "0.47868875", "0.4...
0.7560373
0
Generates order that comes after last generated order according to implementation.
public Order generateNext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}", "public int getOrder();", "public void decrementOrder() {\n mOrder--;\n }", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "default int getOrder() {\n\treturn 0;\n }", "@Override\r\n\tpublic in...
[ "0.6196388", "0.6034015", "0.60265386", "0.5996015", "0.59674454", "0.5947964", "0.5945154", "0.5929154", "0.5926772", "0.59206784", "0.5861623", "0.58591115", "0.58399475", "0.57962346", "0.5784571", "0.57836616", "0.57778066", "0.5763083", "0.5746315", "0.5742419", "0.57389...
0.63265276
0
Gets the plugin identifier for the PF4J module. This can return null if no external bundle is to be used, eg it uses a plugin defined within the current classloader.
@Nullable public abstract String getPf4jPluginId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getPluginId();", "public String getBundleId() {\n\t return PLUGIN_ID;\n\t}", "@Override\n public String getPluginId() {\n return PLUGIN_ID;\n }", "public String getPlugin() {\n\t\treturn adaptee.getPlugin();\n\t}", "public String getPluginPublicId() {\n retur...
[ "0.69048977", "0.6900888", "0.6841851", "0.65081215", "0.607741", "0.60259926", "0.5869472", "0.58367485", "0.58367485", "0.5745281", "0.5732031", "0.5729669", "0.56942505", "0.56239754", "0.5597414", "0.5551569", "0.55295444", "0.54929394", "0.54548126", "0.54509425", "0.544...
0.74335444
0
Implementation of dynamic finders.
public interface MethodCandidate extends Ordered { /** * The default position. */ int DEFAULT_POSITION = 0; /** * Whether the given method name matches this finder. * * @param methodElement The method element. Never null. * @param matchContext The match context. Never null. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @SuppressWarnings(\"rawtypes\")\n public List dynamicQuery(DynamicQuery dynamicQuery)\n throws SystemException {\n return libroPersistence.findWithDynamicQuery(dynamicQuery);\n }", "@Override\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {\n\t\treturn itemPublic...
[ "0.56004894", "0.55185604", "0.5404805", "0.5395497", "0.5348994", "0.53488475", "0.53419834", "0.53233325", "0.5315074", "0.53089285", "0.5306409", "0.5300281", "0.529878", "0.5275116", "0.52663845", "0.52469015", "0.5231286", "0.5221265", "0.5163104", "0.5153345", "0.514204...
0.0
-1
Whether the given method name matches this finder.
boolean isMethodMatch(@NonNull MethodElement methodElement, @NonNull MatchContext matchContext);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasMethod( final String name )\n {\n return getMethod( name ) != null;\n }", "boolean hasMethodName();", "boolean hasMethodName();", "boolean hasMethodName();", "private boolean findMethod(String name, MethodDescriptor[] methodDescriptors) {\n for (int i = 0; i < methodDe...
[ "0.72487015", "0.72329634", "0.72329634", "0.72329634", "0.7194125", "0.68243885", "0.68243885", "0.68243885", "0.67015433", "0.6688826", "0.6671031", "0.6659172", "0.6646179", "0.6584011", "0.6506001", "0.646974", "0.6391442", "0.6350721", "0.62502027", "0.6216129", "0.61995...
0.64306843
16
the userprofile used to specify the access permission to HTDS modules By YOUNG on 30, April private int userProfileID; /id referring to the userprofile used to specify the access permission to HTDS modules This constructor creates an object of type User with properties equal to the passed arguments
public User(int id, String fullName, String username, String password, UserProfile profile){ setID(id); this.fullName = fullName; setUsername(username); this.password = password; // By YOUNG on 30, April // //this.userProfileID = profile.getID(); // this.userProfile = profile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TasteProfile.UserProfile getUserProfile (String user_id);", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "public UserProfile() {}", "public UserRecord(Integer idUser, String name, String surname, String title, LocalDateTime dateBirth, LocalDateTime dateCreate, LocalDateTi...
[ "0.71055794", "0.6786826", "0.67448896", "0.66820204", "0.658739", "0.6558244", "0.64568365", "0.6436131", "0.64241946", "0.64169985", "0.6409602", "0.63514423", "0.634473", "0.63410896", "0.63016224", "0.62850523", "0.6268897", "0.62582123", "0.6257873", "0.6251928", "0.6243...
0.68264794
1
This constructor creates an object of type User with same properties as the passed User object
public User(User user){ setID(user.getID()); this.fullName = user.getFullName(); setUsername(user.getUsername()); this.password = user.getPassword(); // By YOUNG on 30, April // //this.userProfileID = user.getUserProfileID(); // this.userProfile = user.getUserProfile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User(){\n this(null, null);\n }", "public User(){}", "public User(){}", "public User(){}", "public Person(User user) {\n this.username = user.getUsername();\n this.email = user.getEmail();\n this.firstname = user.getFirstname();\n this.lastname = user.getLastnam...
[ "0.77944285", "0.7712674", "0.7712674", "0.7712674", "0.76049465", "0.75970334", "0.75733757", "0.7553151", "0.7553151", "0.7553151", "0.75384945", "0.75384945", "0.75233513", "0.751618", "0.75154287", "0.746828", "0.746828", "0.746828", "0.7453403", "0.74088055", "0.74065316...
0.7358372
28
XXX implement some kind of security for this endpoint
@PostMapping("/convert") public ResponseEntity<?> handleFileConvert(@RequestParam("file") MultipartFile file) { Resource output = converterService.convert(file); return ResponseEntity.ok() .contentType(MediaType.parseMediaType("application/octet-stream")) .header(HttpHeaders.CONTENT_DISPOSITION, "attachm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authorize() {\r\n\r\n\t}", "protected abstract String getAuthorization();", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "@PreAuthorize(\"hasAuthority('ROLE_USER')\") //got a 401 event though my antMatcher was set to allow all for dist\n @GetMapping(\"distance/{id}\")\...
[ "0.6464224", "0.6387273", "0.6200795", "0.5943297", "0.59262705", "0.58708763", "0.58295417", "0.58065397", "0.57898384", "0.5789353", "0.5745799", "0.5736502", "0.5729472", "0.5726177", "0.570179", "0.56980705", "0.5696979", "0.5694896", "0.56622076", "0.56573135", "0.564654...
0.0
-1
constructor co tham so
public MonHoc(String tenMonHoc, int tinChi) { this.tenMonHoc = tenMonHoc; this.tinChi = tinChi; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public Cgg_jur_anticipo(){}", "public AntrianPasien() {\r\n\r\n }", "public Pitonyak_09_02() {\r\n }", "public Clade() {}", "public Chauffeur() {\r\n\t}", "public Alojamiento() {\r\n\t}", "...
[ "0.8167382", "0.7693371", "0.7538221", "0.7508898", "0.7486556", "0.7307933", "0.7290675", "0.72625655", "0.7185865", "0.7185522", "0.7179358", "0.7164499", "0.71615225", "0.7129692", "0.71258694", "0.7104574", "0.70841324", "0.7075495", "0.70435786", "0.7031108", "0.70220387...
0.0
-1
method nhap thong tin mon hoc
public void nhapMonHoc() { try { Scanner scanner = new Scanner(System.in); System.out.println("Ten mon hoc: "); tenMonHoc= scanner.nextLine(); System.out.println("So tin chi"); tinChi= Integer.parseInt(scanner.nextLine()); } catch (Exception e) { // TODO: handle exception e.printStackTrac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void kiemTraThangHopLi() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void baocun()...
[ "0.6239787", "0.6067177", "0.60129064", "0.59595704", "0.59246755", "0.5882502", "0.5874656", "0.5847503", "0.5828643", "0.5748856", "0.5732738", "0.5658417", "0.56576777", "0.56563246", "0.5600424", "0.5587498", "0.5558103", "0.5550975", "0.5543675", "0.5539294", "0.5522833"...
0.0
-1
getter, setter cho cac thuoc tinh
public String getTenMonHoc() { return tenMonHoc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTamanio(){\r\n return tamanio;\r\n }", "public int getTipoAtaque(){return tipoAtaque;}", "public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }", "public int getArmadura(){return armadura;}", "public int getcontador2(){\nreturn contador2;}", "public String get...
[ "0.697834", "0.690216", "0.6690608", "0.66864145", "0.6603494", "0.65830785", "0.6554626", "0.64996773", "0.6496418", "0.6479306", "0.646032", "0.6437089", "0.64239144", "0.640536", "0.63969296", "0.6376417", "0.6367392", "0.6367003", "0.6359656", "0.6353256", "0.63427395", ...
0.0
-1
Instantiate the instance using the passed jsonObject to set the properties values
public ModelAllGategorey(JSONObject jsonObject){ if(jsonObject == null){ return; } status = jsonObject.optInt("status"); JSONArray catrgoriesJsonArray = jsonObject.optJSONArray("catrgories"); if(catrgoriesJsonArray != null){ ArrayList<ModelCatrgory> catrgoriesArrayList = new ArrayList<>(); for (int i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void fromJson(JSONObject jsonObject);", "@Override\n public void parseJSON(JSONObject jsonObject) {\n if (jsonObject.has(\"business\"))\n try {\n JSONObject businessJsonObject = jsonObject.getJSONObject(\"business\");\n this.businessId = business...
[ "0.68364424", "0.63087314", "0.62833107", "0.6259894", "0.61849254", "0.60626423", "0.60599077", "0.6056844", "0.6025049", "0.60176563", "0.6006413", "0.5864783", "0.5853781", "0.5835874", "0.5834752", "0.58296645", "0.5811854", "0.57961684", "0.5778897", "0.5777196", "0.5707...
0.0
-1
Returns all the available property values in the form of JSONObject instance where the key is the approperiate json key and the value is the value of the corresponding field
public JSONObject toJsonObject() { JSONObject jsonObject = new JSONObject(); try { jsonObject.put("status", status); if(catrgories != null && catrgories.length > 0){ JSONArray catrgoriesJsonArray = new JSONArray(); for(ModelCatrgory catrgoriesElement : catrgories){ catrgoriesJsonArray.put(catrgo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dictionary<String, Object> getProperties();", "public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }", "@Override\n\t\tpublic Map<String, Object> getAllProperties(...
[ "0.6090883", "0.59363854", "0.5851887", "0.58097017", "0.5787373", "0.5763063", "0.56547153", "0.56547153", "0.5654481", "0.562318", "0.55998814", "0.55842966", "0.55842966", "0.556124", "0.55373347", "0.55251217", "0.55217075", "0.54960173", "0.54941493", "0.54431194", "0.54...
0.0
-1
This is the entry point to the program
public static void main(String[] args) { //declaring and assigning variables and objects NumberFormat formatter = NumberFormat.getPercentInstance(); formatter.setMaximumFractionDigits(3); int numTotal; int numGreater = 0; boolean inputValid = false; Scanner sc = new Scanner(System.in); int[] nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main()\n\t{\n\t}", "public static void main(){\n\t}", "public static void main (String []args){\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String []args){\n\n }", "public static void m...
[ "0.81743574", "0.7951927", "0.7895532", "0.78206336", "0.77948105", "0.77741426", "0.77713114", "0.77414465", "0.7722977", "0.77024966", "0.77024966", "0.76830393", "0.7670592", "0.7659234", "0.7638463", "0.7638463", "0.7638463", "0.7638463", "0.7638463", "0.7638463", "0.7634...
0.0
-1
String str = "palsj"; String str = "xyz"; String str = "pals";
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("\n\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\n\n"); String str = scan.nextLine(); scan.close(); char[] chArr = str.toCharArray(); char[] temp1 = new char[ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String mo3176a(String str, String str2);", "void mo1329d(String str, String str2);", "void mo131986a(String str, String str2);", "void mo13161c(String str, String str2);", "void mo1342w(String str, String str2);", "void mo1886a(String str, String str2);", "int mo23353w(String str, String str2);", "pu...
[ "0.63975006", "0.6363601", "0.62766683", "0.6255671", "0.62548363", "0.6236164", "0.6234071", "0.61344534", "0.6126647", "0.5984179", "0.5971335", "0.5963056", "0.5888523", "0.58857185", "0.588263", "0.58750874", "0.58679354", "0.58652115", "0.5853876", "0.58139294", "0.58059...
0.0
-1
Created by makovetskyi on 16.11.2016.
public interface Unique<K extends Unique.PrimaryKey> { boolean isLazy(); K getPrimaryKey(); interface PrimaryKey { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private s...
[ "0.5820041", "0.56989855", "0.5615428", "0.55574596", "0.5546341", "0.5546341", "0.55384415", "0.5526582", "0.54533505", "0.54431087", "0.54286975", "0.54077387", "0.540226", "0.53981215", "0.5397331", "0.53526276", "0.5352351", "0.5341934", "0.5340403", "0.5339826", "0.53325...
0.0
-1
Created by victornc83 on 21/04/2017.
@RepositoryRestResource(collectionResourceRel = "usuario") public interface UsuarioRepository extends CrudRepository<Usuario, Long> { Usuario findById(Long id) ; List<Usuario> findByNombre(String nombre) ; List<Usuario> findByApellidos(String apellido) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.59398085", "0.5751656", "0.5649433", "0.5635517", "0.56337494", "0.5588696", "0.55716634", "0.55716634", "0.55269706", "0.5498397", "0.54955584", "0.5490249", "0.54708785", "0.5454589", "0.54529357", "0.54389334", "0.54259044", "0.5411266", "0.54058284", "0.54049355", "0.5...
0.0
-1
Add user to chatroom
public void register(AbstractVisitor user) { users.add(user); user.setChatroom(this); user.receive("Thank you " + user.getName() + " for registering with this chatroom!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MessageMapping(\"/chat.addUser\")\n @SendTo(\"/topic/publicChatRoom\")\n public Message addUser(@Payload Message chatMessage, SimpMessageHeaderAccessor headerAccessor) {\n headerAccessor.getSessionAttributes().put(\"username\", chatMessage.getSender());\n headerAccessor.getSessionAttributes()....
[ "0.7286719", "0.718335", "0.7117518", "0.7096197", "0.6878588", "0.6728528", "0.6666286", "0.6660372", "0.6644097", "0.6580157", "0.65691113", "0.65648746", "0.6563921", "0.6554175", "0.6550262", "0.65356374", "0.65235895", "0.6510532", "0.6510532", "0.65080506", "0.6499142",...
0.72810787
1
Forwards message from one user to the whole group, with appropriate names
public void send(String raw_msg, AbstractVisitor sender) { for(AbstractVisitor user : users) { if(sender != user) { user.receive("From " + sender.getName() + " to " + user.getName() + ": " + raw_msg); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendGroupMessage(String message){\n\n\t\tObject[] userIDs = chatInstanceMap.keySet().toArray();\n\n\t\tfor(int i = 0; i < userIDs.length; i++ ){\n\n\t\t\tsendMessage((String) userIDs[i], message);\n\t\t}\n\t}", "public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n ...
[ "0.68593174", "0.6766295", "0.63565254", "0.61903673", "0.6137737", "0.61241525", "0.6106584", "0.60697615", "0.603206", "0.5966176", "0.5934441", "0.58424914", "0.58312243", "0.5812147", "0.57503605", "0.574747", "0.569822", "0.56677055", "0.5655003", "0.56502056", "0.564681...
0.6138145
4
Check that the divisor is not 0
@Override protected void checkFurther(final JsonNode schema, final ValidationReport report) throws JsonValidationFailureException { final BigDecimal divisor = schema.get(keyword).getDecimalValue(); if (BigDecimal.ZERO.compareTo(divisor) != 0) return; report....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testWhenDenominatorIsZero() {\n\t\ttry {\n\t\t\tcalculator.divide(1, 0);\n\t\t} catch (Exception e) {\n\t\t\tassertNotNull(e);\n\t\t\tassertEquals(ArithmeticException.class,e.getClass());\n\t\t}\n\t\n\t}", "private boolean checkDivisibility(int year, int num) {\n\t\treturn (year%num==0);\n\t}", ...
[ "0.6707049", "0.6703714", "0.6431811", "0.63317806", "0.62737453", "0.6252939", "0.6217555", "0.6149237", "0.6076265", "0.60527796", "0.5956496", "0.59422046", "0.5910097", "0.5900166", "0.587896", "0.58352906", "0.5830698", "0.57982165", "0.5796018", "0.5723515", "0.57198787...
0.5364011
65
lv.q C000.q, 0($s3) vsat0.q C000.q, C000.q viim.s S010.s, 0x00FF vscl.q C000.q, C000.q, S010.s vf2iz.q C000.q, C000.q, 23 vi2uc.q S000.s, C000.q mfv.s $a1, S000.s
static public void float2int(int source, int result) { int addr = getRegisterValue((source >> 21) & 31) + (int) (short) (source & 0xFFFC); int value1 = (int) (Float.intBitsToFloat(getMemory().read32(addr)) * 255f); value1 = Math.min(255, Math.max(0, value1)); int value2 = (int) (Float.intBitsToFloat(getMemory(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo54413a(int i, C20254v vVar);", "protected void engineReset()\r\n/* 79: */ {\r\n/* 80:143 */ this.V00 = IV[0];\r\n/* 81:144 */ this.V01 = IV[1];\r\n/* 82:145 */ this.V02 = IV[2];\r\n/* 83:146 */ this.V03 = IV[3];\r\n/* 84:147 */ this.V04 = IV[4];\r\n/* 85:148 */ this.V05...
[ "0.5950133", "0.5938312", "0.5929378", "0.58486235", "0.57342786", "0.5720402", "0.56511194", "0.563975", "0.5620174", "0.5619542", "0.55869025", "0.55777067", "0.55672985", "0.5502108", "0.5492094", "0.5465089", "0.54453385", "0.54257995", "0.541658", "0.5404801", "0.5397213...
0.0
-1
Connects to the MSN
private void openConnection(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connect() {}", "public void connect();", "public void connect();", "public void connect();", "public final boolean connect() {\n if(this.connected) return true;\n if(this.connectThread == null || !this.connectThread.isAlive()){\n this.connectThread = new MdsConnect();\n...
[ "0.692049", "0.67927754", "0.67927754", "0.67927754", "0.6702888", "0.66685987", "0.65747094", "0.6545512", "0.64667875", "0.646494", "0.6442792", "0.64359426", "0.64350444", "0.6420673", "0.64100385", "0.6406247", "0.6400162", "0.6390896", "0.6381988", "0.6375752", "0.635277...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof User)) { return false; } User other = (User) object; if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) { ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.68948644", "0.6837785", "0.67038405", "0.6639133", "0.6639133", "0.65911627", "0.6576973", "0.6576973", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.65598476", "0.65598476", "0.6543178", "0.6523156", "0.65143406", "0.6486455", "0.6475413...
0.0
-1
Created by EdsonGustavo on 28/02/2015.
public interface CategoriaMaterialData extends JpaRepository<CategoriaMaterial, Integer> { List<CategoriaMaterial> findByNomeContaining(String nome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {...
[ "0.5797744", "0.5712614", "0.5701367", "0.56613517", "0.5645056", "0.5588767", "0.558563", "0.55839694", "0.5574291", "0.5574291", "0.557194", "0.55399346", "0.5529114", "0.55241215", "0.54939", "0.54564756", "0.5453768", "0.5430292", "0.5411478", "0.54107076", "0.5410105", ...
0.0
-1
/ renamed from: a
public final void m8915a(ResultCallback<? super R> resultCallback, R r) { sendMessage(obtainMessage(1, new Pair(resultCallback, r))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public static void m14216b(Result result) { if (result instanceof Releasable) { try { ((Releasable) result).release(); } catch (Throwable e) { String valueOf = String.valueOf(result); StringBuilder stringBuilder = new StringBuilder(String.v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
private final void m14217c(R r) { this.f11870i = r; this.f11875n = null; this.f11866e.countDown(); this.f11871j = this.f11870i.getStatus(); if (this.f11873l) { this.f11868g = null; } else if (this.f11868g != null) { this.f11864b.removeMessages(2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: g
private final R mo3575g() { R r; synchronized (this.f11863a) { ad.m9051a(this.f11872k ^ true, (Object) "Result has already been consumed."); ad.m9051a(m14229d(), (Object) "Result is not ready."); r = this.f11870i; this.f11870i = null; this.f118...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void g() {\n }", "public void gored() {\n\t\t\n\t}", "public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void stg() {\n\n\t}", "public xm n()\r\n/* 274: ...
[ "0.678414", "0.67709124", "0.6522526", "0.64709187", "0.6450875", "0.62853396", "0.6246107", "0.6244691", "0.6212993", "0.61974055", "0.61380696", "0.6138033", "0.6105423", "0.6057178", "0.60355175", "0.60195917", "0.59741", "0.596904", "0.59063077", "0.58127505", "0.58101356...
0.0
-1
/ renamed from: a
public final R mo2484a(long r4, java.util.concurrent.TimeUnit r6) { /* JADX: method processing error */ /* Error: java.lang.NullPointerException at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75) at jadx.core.dex.visitors.regions.ProcessTryCatchRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public void mo2485a() { /* JADX: method processing error */ /* Error: java.lang.NullPointerException at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75) at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo2486a(zza zza) { ad.m9055b(zza != null, "Callback cannot be null."); synchronized (this.f11863a) { if (m14229d()) { zza.zzr(this.f11871j); } else { this.f11867f.add(zza); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void m14223a(R r) { synchronized (this.f11863a) { if (this.f11874m || this.f11873l) { m14216b((Result) r); return; } m14229d(); ad.m9051a(m14229d() ^ 1, (Object) "Results have already been set"); ad.m9051a(t...
{ "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
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. / renamed from: a
public final void mo2487a(com.google.android.gms.common.api.ResultCallback<? super R> r5) { /* r4 = this; r0 = r4.f11863a; monitor-enter(r0); if (r5 != 0) goto L_0x000c; L_0x0005: r5 = 0; r4.f11868g = r5; Catch:{ all -> 0x000a } monitor-exit(r0); Cat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "void m1864a() {\r\n }", "private void m14210a(java.io.IOExce...
[ "0.7256868", "0.7237698", "0.72193015", "0.7184973", "0.7123215", "0.7113636", "0.7089104", "0.70764107", "0.7052513", "0.7052513", "0.701526", "0.70047635", "0.6987284", "0.6948501", "0.69393444", "0.6911598", "0.69075185", "0.6907435", "0.69028264", "0.68815696", "0.683273"...
0.0
-1
/ renamed from: a
public final void m14225a(cb cbVar) { this.f11869h.set(cbVar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public final void m14226b(Status status) { synchronized (this.f11863a) { if (!m14229d()) { m14223a(mo3568a(status)); this.f11874m = true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: b
public boolean mo2488b() { boolean z; synchronized (this.f11863a) { z = this.f11873l; } return z; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
public final Integer mo2489c() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: d
public final boolean m14229d() { return this.f11866e.getCount() == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor...
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222...
0.0
-1
/ renamed from: e
public final boolean m14230e() { boolean b; synchronized (this.f11863a) { if (((GoogleApiClient) this.f11865d.get()) == null || !this.f11877p) { mo2485a(); } b = mo2488b(); } return b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public String toString()\r\n {\r\n return e.toString();\r\n }", "@Override\n\t\t\t\...
[ "0.723272", "0.6603143", "0.6412109", "0.63626343", "0.6339823", "0.62542486", "0.62321854", "0.6159398", "0.6122612", "0.6122612", "0.60797614", "0.6049353", "0.60395765", "0.6001096", "0.599872", "0.59708726", "0.5955105", "0.59372604", "0.5885304", "0.5870147", "0.58634216...
0.0
-1
/ renamed from: f
public final void m14231f() { boolean z; if (!this.f11877p) { if (!((Boolean) f11862c.get()).booleanValue()) { z = false; this.f11877p = z; } } z = true; this.f11877p = z; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_70305_f() {}", "public static Forca get_f(){\n\t\treturn f;\n\t}", "void mo84656a(float f);", "public final void mo8765a(float f) {\n }", "@Override\n public int f() {\n return 0;\n }", "public void f() {\n }", "void mo9704b(float f, float f2, int i);", "void mo56155...
[ "0.7323683", "0.65213245", "0.649907", "0.64541733", "0.6415534", "0.63602704", "0.6325114", "0.63194084", "0.630473", "0.62578535", "0.62211406", "0.6209556", "0.6173324", "0.61725706", "0.61682224", "0.6135272", "0.6130462", "0.6092916", "0.6089471", "0.6073019", "0.6069227...
0.0
-1
Start typing your Java solution below DO NOT write main() function
public String strStr(String haystack, String needle) { int x; if(needle.length() == 0) { return haystack; } for(int i=0; i<haystack.length(); i++) { x=0; while((x < needle.length()) && (x+i < haystack.length()) && (haystack.charAt(i+x) == needle....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this ...
[ "0.7085202", "0.70152825", "0.70048785", "0.6863522", "0.68364745", "0.682089", "0.68138087", "0.6797307", "0.6784227", "0.6755715", "0.6755715", "0.6755715", "0.6755715", "0.6755715", "0.6755715", "0.67436904", "0.67295706", "0.67241466", "0.6723099", "0.66999674", "0.668805...
0.0
-1
Creates new form PantallaPrincipal
public PantallaPrincipal() { gestor= new Gestor(); initComponents(); inicializarTablaCarreras(); inicializarTablaCorredorTotales(); inicializarTablaCorredor(); mostrarCarreras(); mostrarCorredoresTotales(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PantallaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n ...
[ "0.72038656", "0.7050082", "0.69731283", "0.6943591", "0.6772863", "0.6764914", "0.66943944", "0.6590677", "0.65832776", "0.65692806", "0.65354335", "0.65134686", "0.64977795", "0.64976513", "0.6491616", "0.6478856", "0.6478856", "0.64679223", "0.64462453", "0.6428172", "0.63...
0.6402882
20
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { TituloCarrera = new javax.swing.JLabel(); jScrollPaneCarrera = new javax.swing.JScrollPane(); jTableCarreras = new javax.swing.JTable(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1