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
Get a list of similar movies. This is not the same as the "Recommendation" system you see on the website. These items are assembled by looking at keywords and genres.
public GetSimilarMoviesResponse getSimilarMovies(int movieId) { return getSimilarMovies(movieId, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetSimilarMovies() throws MovieDbException {\r\n LOG.info(\"getSimilarMovies\");\r\n List<MovieDb> results = tmdb.getSimilarMovies(ID_MOVIE_BLADE_RUNNER, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No similar movies found\", !results.isEmpty());\r\n }", "publi...
[ "0.6500612", "0.63597083", "0.6343455", "0.61630887", "0.6156657", "0.6023418", "0.6020932", "0.59907657", "0.59355724", "0.5884448", "0.5843769", "0.5813344", "0.5812243", "0.57751316", "0.57109547", "0.57066506", "0.56917894", "0.5680094", "0.5665565", "0.56640214", "0.5657...
0.609638
5
Get a list of translations that have been created for a movie.
public Optional<GetMovieTranslationsResponse> getMovieTranslations(int movieId) { // /movie/{movie_id}/translations String path = String.format("/movie/%s/translations", movieId); Map<String, Object> requestParams = Collections.emptyMap(); return restClient.getOpt(path, requestParams, ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetMovieTranslations() throws MovieDbException {\r\n LOG.info(\"getMovieTranslations\");\r\n List<Translation> result = tmdb.getMovieTranslations(ID_MOVIE_BLADE_RUNNER);\r\n assertFalse(\"No translations found\", result.isEmpty());\r\n }", "public List<Mo...
[ "0.60754496", "0.5901864", "0.5858053", "0.5852678", "0.578403", "0.57446706", "0.568658", "0.559654", "0.5434213", "0.5416724", "0.5406767", "0.53786445", "0.53588986", "0.53247535", "0.52733886", "0.52237296", "0.5196019", "0.5193518", "0.5137012", "0.5109019", "0.5092634",...
0.62845296
0
Get the videos that have been added to a movie. Date Change March 23, 2019 Vimeo was added as a video source. March 20, 2019 "Behind the Scenes" and "Bloopers" were added as valid video types.
public Optional<GetMovieVideosResponse> getMovieVideos(int movieId, String language) { // /movie/{movie_id}/videos String path = String.format("/movie/%s/videos", movieId); Map<String, Object> requestParams = new HashMap<>(); requestParams.put("language", language); return restCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.GET)\n\tpublic @ResponseBody Collection<Video> getVideos() {\n\t\t// TODONE Implement the logic to return the list of all videos.\n\t\tassert(videos != null);\n\t\t\n\t\treturn videos.values();\n\t}", "public List<Video> getVideoList() {\n ...
[ "0.6147235", "0.6098391", "0.6067091", "0.59860945", "0.5980988", "0.59631383", "0.585218", "0.5822018", "0.57792246", "0.5778681", "0.57471716", "0.56152225", "0.5564502", "0.5564321", "0.5554935", "0.5534835", "0.55045825", "0.5496419", "0.5478989", "0.54516625", "0.5441046...
0.5389969
26
Get the videos that have been added to a movie. Date Change March 23, 2019 Vimeo was added as a video source. March 20, 2019 "Behind the Scenes" and "Bloopers" were added as valid video types.
public Optional<GetMovieVideosResponse> getMovieVideos(int movieId) { return getMovieVideos(movieId, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.GET)\n\tpublic @ResponseBody Collection<Video> getVideos() {\n\t\t// TODONE Implement the logic to return the list of all videos.\n\t\tassert(videos != null);\n\t\t\n\t\treturn videos.values();\n\t}", "public List<Video> getVideoList() {\n ...
[ "0.61479944", "0.6099283", "0.60671055", "0.59872776", "0.5981008", "0.59639376", "0.5852887", "0.5779577", "0.5779544", "0.5746974", "0.5614227", "0.5564535", "0.55641574", "0.5555803", "0.5534829", "0.550327", "0.54966885", "0.5479097", "0.54515046", "0.5442087", "0.5409279...
0.5822259
7
Powered by our partnership with JustWatch, you can query this method to get a list of the availabilities per country by provider. This is not going to return full deep links, but rather, it's just enough information to display what's available where. You can link to the provided TMDb URL to help support TMDb and let yo...
public Optional<GetMovieWatchProvidersResponse> getMovieWatchProviders(int movieId) { // /movie/{movie_id}/watch/providers String path = String.format("/movie/%s/watch/providers", movieId); Map<String, Object> requestParams = Collections.emptyMap(); return restClient.getOpt(path, request...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> trendsAvailable() {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.trends.available\");\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl)...
[ "0.5438796", "0.53413486", "0.51715356", "0.51251894", "0.50465924", "0.4885601", "0.48576877", "0.48006573", "0.47479182", "0.47425282", "0.46858144", "0.4667079", "0.46556535", "0.46368277", "0.45931774", "0.44730854", "0.44680128", "0.44465393", "0.4438704", "0.44271722", ...
0.0
-1
Rate a movie. A valid session or guest session ID is required. You can read more about how this works <a href="
public RateMovieResponse rateMovie(int movieId, RateMovieRequest rateMovieRequest, String guestSessionId, String sessionId) { // /movie/{movie_id}/rating String path = String.format("/movie/%s/rating", movieId); Map<String, Object> requestParams = new HashMap<>(); requestParams.put("gues...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rateMovie()\n {\n movieRate = UI.askString(\"Movie Title: \");\n movieRate = movieRate.toLowerCase();\n // Loop to check if the entered movie exists\n while (again) \n {\n // Checks if the movie exists\n if (r.movieExists(movieRate) == false)\...
[ "0.6456878", "0.6432987", "0.59966797", "0.59837085", "0.5786561", "0.5761114", "0.57003254", "0.5641852", "0.5638133", "0.55683565", "0.55653644", "0.555513", "0.5495186", "0.54777163", "0.54333323", "0.5419467", "0.53858083", "0.5361628", "0.5343763", "0.5321924", "0.531470...
0.72927123
0
Rate a movie. A valid session or guest session ID is required. You can read more about how this works <a href="
public RateMovieResponse rateMovie(int movieId, RateMovieRequest requestBody) { return rateMovie(movieId, requestBody, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RateMovieResponse rateMovie(int movieId, RateMovieRequest rateMovieRequest, String guestSessionId, String sessionId) {\n // /movie/{movie_id}/rating\n String path = String.format(\"/movie/%s/rating\", movieId);\n Map<String, Object> requestParams = new HashMap<>();\n requestParam...
[ "0.72927123", "0.6456878", "0.59966797", "0.59837085", "0.5786561", "0.5761114", "0.57003254", "0.5641852", "0.5638133", "0.55683565", "0.55653644", "0.555513", "0.5495186", "0.54777163", "0.54333323", "0.5419467", "0.53858083", "0.5361628", "0.5343763", "0.5321924", "0.53147...
0.6432987
2
Remove your rating for a movie. A valid session or guest session ID is required. You can read more about how this works <a href="
public DeleteMovieRatingResponse deleteMovieRating(int movieId, String guestSessionId, String sessionId) { // /movie/{movie_id}/rating String path = String.format("/movie/%s/rating", movieId); Map<String, Object> requestParams = new HashMap<>(); requestParams.put("guest_session_id", gues...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean clearRating(User theUser, Video theVideo) throws IllegalArgumentException, NullPointerException;", "void removeRating(String rid);", "private void removeMovie() throws MovieDAOException {\n String movieToRemove = null;\n\n // Find remove movie\n try {\n movieToRem...
[ "0.67211044", "0.66902846", "0.64583176", "0.63870263", "0.62688524", "0.6227098", "0.6043044", "0.6039645", "0.60394675", "0.5946682", "0.5927346", "0.5923138", "0.5902278", "0.5880623", "0.5869575", "0.58686465", "0.57856876", "0.5755768", "0.57531947", "0.5674109", "0.5649...
0.6881009
0
Remove your rating for a movie. A valid session or guest session ID is required. You can read more about how this works <a href="
public DeleteMovieRatingResponse deleteMovieRating(int movieId) { return deleteMovieRating(movieId, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DeleteMovieRatingResponse deleteMovieRating(int movieId, String guestSessionId, String sessionId) {\n // /movie/{movie_id}/rating\n String path = String.format(\"/movie/%s/rating\", movieId);\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"guest_sessi...
[ "0.6882776", "0.6720927", "0.6688721", "0.6457894", "0.63866097", "0.6269442", "0.6226292", "0.60435396", "0.60399723", "0.603925", "0.59453326", "0.59271973", "0.5923105", "0.5900649", "0.5881051", "0.5870259", "0.57859814", "0.5755376", "0.57531714", "0.56740797", "0.564738...
0.586839
16
Get the most newly created movie. This is a live response and will continuously change.
public GetLatestMovieResponse getLatestMovie(String language) { String path = "/movie/latest"; Map<String, Object> requestParams = new HashMap<>(); requestParams.put("language", language); return restClient.get(path, requestParams, new TypeReference<>() { } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetLatestMovieResponse getLatestMovie() {\n return getLatestMovie(null);\n }", "@GetMapping(\"random\")\n\tpublic Movie getRandomMovie() {\n\t\tList<Movie> list = repo.findAll();\n\t\tRandom rand = new Random();\n\t\tint num = rand.nextInt(list.size()) + 1;\n\t\t\n\t\treturn repo.findById(num);\...
[ "0.7410257", "0.62406003", "0.618656", "0.60725164", "0.5992976", "0.5989715", "0.59634304", "0.5922286", "0.5785377", "0.5767612", "0.57529825", "0.57409096", "0.56833315", "0.56494606", "0.5522908", "0.55181205", "0.5510799", "0.550605", "0.5494218", "0.5476454", "0.5431704...
0.56272906
14
Get the most newly created movie. This is a live response and will continuously change.
public GetLatestMovieResponse getLatestMovie() { return getLatestMovie(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"random\")\n\tpublic Movie getRandomMovie() {\n\t\tList<Movie> list = repo.findAll();\n\t\tRandom rand = new Random();\n\t\tint num = rand.nextInt(list.size()) + 1;\n\t\t\n\t\treturn repo.findById(num);\n\t}", "public Movie getMovie() {\n DBMovie movie = new DBMovie();\n movie.setId(th...
[ "0.62406003", "0.618656", "0.60725164", "0.5992976", "0.5989715", "0.59634304", "0.5922286", "0.5785377", "0.5767612", "0.57529825", "0.57409096", "0.56833315", "0.56494606", "0.56272906", "0.5522908", "0.55181205", "0.5510799", "0.550605", "0.5494218", "0.5476454", "0.543170...
0.7410257
0
Get a list of movies in theatres. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range. You can optionally specify a region prameter which will narrow the search to only look for theatrical release dates within the specified country.
public GetNowPlayingResponse getNowPlaying(String language, Integer page, String region) { String path = "/movie/now_playing"; Map<String, Object> requestParams = new HashMap<>(); requestParams.put("language", language); requestParams.put("page", page); requestParams.put("region"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Timetable> getCurriculum(String specialty_YearID,String term)throws Exception;", "@Override\n public List<Show> listAllShowsInCityForMovie(String city, int movieId, Date date){\n return null;\n }", "public List<Refinery> getRefineries(int year);", "public static ArrayList<Movie> getMoviesBy...
[ "0.5150181", "0.49597305", "0.4892724", "0.48408058", "0.48036268", "0.47978368", "0.4719924", "0.46614507", "0.46460003", "0.46167487", "0.4590962", "0.45898026", "0.4525112", "0.4502537", "0.45006576", "0.44862163", "0.4476287", "0.44742945", "0.44722748", "0.44688237", "0....
0.0
-1
Get a list of movies in theatres. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range. You can optionally specify a region prameter which will narrow the search to only look for theatrical release dates within the specified country.
public GetNowPlayingResponse getNowPlaying() { return getNowPlaying(null, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Timetable> getCurriculum(String specialty_YearID,String term)throws Exception;", "@Override\n public List<Show> listAllShowsInCityForMovie(String city, int movieId, Date date){\n return null;\n }", "public List<Refinery> getRefineries(int year);", "public static ArrayList<Movie> getMoviesBy...
[ "0.51504767", "0.49599284", "0.48924273", "0.48399174", "0.48032427", "0.47950047", "0.47207335", "0.4660345", "0.4645196", "0.46166605", "0.45916927", "0.45895737", "0.45231536", "0.45039093", "0.45004886", "0.44855055", "0.44763336", "0.44737428", "0.44724172", "0.44683996", ...
0.0
-1
Get a list of the current popular movies on TMDb. This list updates daily.
public GetPopularMoviesResponse getPopularMovies(String language, Integer page, String region) { String path = "/movie/popular"; Map<String, Object> requestParams = new HashMap<>(); requestParams.put("language", language); requestParams.put("page", page); requestParams.put("regio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetPopularMoviesResponse getPopularMovies() {\n return getPopularMovies(null, null, null);\n }", "public GetTopRatedMoviesResponse getTopRatedMovies() {\n return getTopRatedMovies(null, null, null);\n }", "@Test\r\n public void testGetPopularMovieList() throws MovieDbException {\...
[ "0.66407585", "0.66032964", "0.65275717", "0.65012336", "0.63954353", "0.638139", "0.63042223", "0.62399286", "0.6231167", "0.6225334", "0.6215415", "0.6200053", "0.6165938", "0.61313933", "0.6123669", "0.61216444", "0.60869044", "0.60859054", "0.6079927", "0.6050151", "0.603...
0.0
-1
Get a list of the current popular movies on TMDb. This list updates daily.
public GetPopularMoviesResponse getPopularMovies() { return getPopularMovies(null, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetTopRatedMoviesResponse getTopRatedMovies() {\n return getTopRatedMovies(null, null, null);\n }", "@Test\r\n public void testGetPopularMovieList() throws MovieDbException {\r\n LOG.info(\"getPopularMovieList\");\r\n List<MovieDb> results = tmdb.getPopularMovieList(LANGUAGE_...
[ "0.66032964", "0.65275717", "0.65012336", "0.63954353", "0.638139", "0.63042223", "0.62399286", "0.6231167", "0.6225334", "0.6215415", "0.6200053", "0.6165938", "0.61313933", "0.6123669", "0.61216444", "0.60869044", "0.60859054", "0.6079927", "0.6050151", "0.6034443", "0.6034...
0.66407585
0
Get the top rated movies on TMDb.
public GetTopRatedMoviesResponse getTopRatedMovies(String language, Integer page, String region) { String path = "/movie/top_rated"; Map<String, Object> requestParams = new HashMap<>(); requestParams.put("language", language); requestParams.put("page", page); requestParams.put("r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetTopRatedMoviesResponse getTopRatedMovies() {\n return getTopRatedMovies(null, null, null);\n }", "@Test\r\n public void testGetTopRatedMovies() throws MovieDbException {\r\n LOG.info(\"getTopRatedMovies\");\r\n List<MovieDb> results = tmdb.getTopRatedMovies(LANGUAGE_DEFAUL...
[ "0.7800399", "0.7192736", "0.71030694", "0.67977536", "0.67360073", "0.65625995", "0.6527426", "0.64688635", "0.6273177", "0.6237866", "0.6159505", "0.60919994", "0.60902005", "0.60864085", "0.6082248", "0.60753167", "0.59794253", "0.5969143", "0.5905931", "0.5887851", "0.587...
0.577774
22
Get the top rated movies on TMDb.
public GetTopRatedMoviesResponse getTopRatedMovies() { return getTopRatedMovies(null, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetTopRatedMovies() throws MovieDbException {\r\n LOG.info(\"getTopRatedMovies\");\r\n List<MovieDb> results = tmdb.getTopRatedMovies(LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No top rated movies found\", !results.isEmpty());\r\n }", "@GET(\"movie/top_rated\...
[ "0.71916", "0.7103438", "0.67962414", "0.67377883", "0.65599746", "0.65273696", "0.64681906", "0.6273116", "0.62360656", "0.61562926", "0.60906386", "0.6088732", "0.6086516", "0.6082387", "0.6075496", "0.5981804", "0.5967737", "0.5904634", "0.58902514", "0.5876651", "0.581214...
0.7799949
0
Get a list of upcoming movies in theatres. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range. You can optionally specify a region prameter which will narrow the search to only look for theatrical release dates within the specified country.
public GetUpcomingResponse getUpcoming(String language, Integer page, String region) { String path = "/movie/upcoming"; Map<String, Object> requestParams = new HashMap<>(); requestParams.put("language", language); requestParams.put("page", page); requestParams.put("region", regio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetTopRatedMoviesResponse getTopRatedMovies(String language, Integer page, String region) {\n String path = \"/movie/top_rated\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n requestParams.put(\"page\", page);\n requ...
[ "0.47581878", "0.47219512", "0.46552035", "0.4561502", "0.4504338", "0.44566756", "0.4392517", "0.43533316", "0.42966858", "0.42905572", "0.42473444", "0.4204738", "0.420399", "0.4194646", "0.41824332", "0.41750517", "0.41741925", "0.41109645", "0.41030198", "0.4094146", "0.4...
0.5278073
0
Get a list of upcoming movies in theatres. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range. You can optionally specify a region prameter which will narrow the search to only look for theatrical release dates within the specified country.
public GetUpcomingResponse getUpcoming() { return getUpcoming(null, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetUpcomingResponse getUpcoming(String language, Integer page, String region) {\n String path = \"/movie/upcoming\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n requestParams.put(\"page\", page);\n requestParams.put...
[ "0.5279814", "0.47584012", "0.47232983", "0.4655264", "0.45618582", "0.4503754", "0.44576627", "0.43926892", "0.43548256", "0.42956904", "0.42922363", "0.42498997", "0.4204691", "0.42043778", "0.41967744", "0.41833243", "0.41757765", "0.4173274", "0.41118568", "0.41021618", "...
0.0
-1
Check if ID is contained in GradeSystem
private boolean promptCommand() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkID(int ID)\r\n {\r\n if(student_IDs.contains(ID))\r\n {\r\n throw new IllegalArgumentException(\"There is already a student that exists with this ID: \" + ID);\r\n }\r\n }", "private boolean checkDuplicate(int id) {\r\n boolean x = false;\r\n ...
[ "0.62261736", "0.6159591", "0.6056781", "0.6056781", "0.6056781", "0.6056781", "0.6056781", "0.6056781", "0.6056781", "0.6056781", "0.6056781", "0.60496616", "0.59743166", "0.59003633", "0.5895822", "0.58880454", "0.5806633", "0.5806633", "0.5806633", "0.5806633", "0.5778493"...
0.0
-1
Input command and deal with it
private boolean promptID() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.t...
[ "0.7861732", "0.7442843", "0.7349689", "0.7326489", "0.728833", "0.72790736", "0.72414315", "0.7132667", "0.7119294", "0.7103384", "0.7023427", "0.7021714", "0.7020628", "0.7003186", "0.70022804", "0.6984897", "0.69689214", "0.6931869", "0.69099826", "0.6887487", "0.68844545"...
0.0
-1
Input ID and deal with it
private void showFinishMsg() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setidInput(int idi) {\r\n idInput = idi;\r\n }", "public int askId(){\n int id = askInt(\"Id of an element:\");\n return id;\n }", "private static int readIdFromConsole() {\n\t\tboolean validInput = false; \n\t\tint id = -1; \n\t\twhile (! validInput) {\n\t\t\ttry {\n\t\t\t...
[ "0.7593734", "0.6917203", "0.68305624", "0.65493", "0.6455174", "0.62224895", "0.61909246", "0.615447", "0.61399525", "0.6122216", "0.60961133", "0.6026164", "0.597224", "0.597224", "0.597224", "0.597224", "0.5944176", "0.5891683", "0.5831453", "0.5800234", "0.57841176", "0...
0.0
-1
/ Card can be constructed by inputting suit ("S" or "D") and rank ([1,12]) is face down for all four players
public Card(String s, int r) { if (s.equals("S") || s.equals("D")) { suit = s; } if (1 <= r && r <= 12) { rank = r; } show[0] = false; show[1] = false; show[2] = false; show[3] = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n \r\n //Check the input of cards should be multiple of 5 and more than 0\r\n if (args.length % 5 == 0 && args.length > 0) {\r\n \r\n int player = args.length / N; //count the player based on input\r\n int playerNo; //...
[ "0.76052237", "0.75220025", "0.7458178", "0.73552233", "0.7317181", "0.7314483", "0.72273797", "0.7204567", "0.7167307", "0.7155063", "0.71512115", "0.71184194", "0.7111211", "0.71039236", "0.7097794", "0.70931065", "0.7015604", "0.6968025", "0.688182", "0.68724716", "0.68642...
0.6719462
28
/ player = 0,1,2,3 makes show[player] true returns true if player is 0,1,2,3; else false
public boolean makeVisible(int player) { if (player < 0 || player >= 4) { return false; } show[player] = true; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean showPlayer(){\n\t\t\n\t\tSystem.out.println(\"\\t\"+color+\"\\t \"+playermoney+\"\\t \\t\"+totalminions+\" \\t\"+totalbuildings+\" \\t\\t\"+personalityCard.cardName);\n\t\treturn true;\n\t}", "public boolean activeFor(String player);", "boolean isVisible(Player player, Entity entity);"...
[ "0.65392643", "0.6488187", "0.633699", "0.6227624", "0.61099637", "0.609207", "0.60704416", "0.6004801", "0.5964856", "0.5964372", "0.5905741", "0.5816706", "0.58041555", "0.5768964", "0.57660025", "0.57611156", "0.57507056", "0.57498384", "0.5734993", "0.5711277", "0.5695407...
0.7149018
0
/ player = 0, 1, 2, 3 returns String containing suit and rank if face up for player, else just the suit
public String printCard(int player) { if (player >= 4 || player < 0) { return "Error"; } if (show[player]) { return suit + rank; } return suit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString ()\n {\n return rank + \" of \" + suit;\n }", "private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {...
[ "0.7285563", "0.70415527", "0.69905424", "0.6915873", "0.6820696", "0.68173075", "0.68168527", "0.6793459", "0.67759085", "0.67515516", "0.6742863", "0.6722928", "0.6703711", "0.66643393", "0.66643393", "0.66619205", "0.6604331", "0.6589973", "0.657978", "0.6578912", "0.65728...
0.71386015
1
Called if InstanceID token is updated. This may occur if the security of the previous token had been compromised. This call is initiated by the InstanceID provider.
@Override public void onTokenRefresh() { Log.d("MyInstanceIDService", "onTokenRefresh"); // new GCMDoRequest().execute(new GCMRequest(this, GCMCommand.GET_TOKEN)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify our app's server of any changes (if applicable).\n startService(new Intent(this, RegistrationIntentService.class));\n }", "@Override\n public void onTokenRefresh() {\n // Get updated InstanceI...
[ "0.6993731", "0.68307936", "0.6823155", "0.66679", "0.6593302", "0.65711117", "0.6557518", "0.6534073", "0.6525299", "0.6477398", "0.646921", "0.644942", "0.64370704", "0.6412973", "0.640584", "0.63972455", "0.63888055", "0.6374721", "0.6343724", "0.632706", "0.6228147", "0...
0.661673
4
Generates oAuth 1.0a header which can be pass as Authorization header
public String generateHeader(String httpMethod, String url, Map<String, String> requestParams) { StringBuilder base = new StringBuilder(); String nonce = getNonce(); String timestamp = getTimestamp(); String baseSignatureString = generateSignatureBaseString(httpMethod, url, requestParams...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthorizationHeader() {\n\t\tString auth = getUsername() + \":\" + getPassword();\n\t\tthis.debugAuthentcation();\n\t\tString header = \"Basic \"\n\t\t\t\t+ DatatypeConverter.printBase64Binary(auth.getBytes());\n\t\treturn header;\n\t}", "private void generateHeader() throws IOException {\r\n\t\...
[ "0.6560188", "0.6387308", "0.63563", "0.63485277", "0.6208814", "0.61472714", "0.6097848", "0.60402036", "0.59867424", "0.59685576", "0.59368086", "0.59351814", "0.5914676", "0.59070426", "0.5807657", "0.57903457", "0.57832634", "0.5783137", "0.5775507", "0.57615703", "0.5739...
0.6668716
0
Generate base string to generate the oauth_signature
private String generateSignatureBaseString(String httpMethod, String url, Map<String, String> requestParams, String nonce, String timestamp) { Map<String, String> params = new HashMap<>(); requestParams.entrySet().forEach(entry -> { put(params, entry.getKey(), entry.getValue()); }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutp...
[ "0.7107127", "0.6899989", "0.65680534", "0.64106476", "0.63392204", "0.628836", "0.6139153", "0.61265916", "0.6122024", "0.61141646", "0.60599", "0.60496676", "0.6044179", "0.6010996", "0.6010996", "0.6010996", "0.59320176", "0.5894661", "0.58852726", "0.58547074", "0.5846360...
0.755903
0
Percentage encode String as per RFC 3986, Section 2.1
private String encode(String value) { String encoded = ""; try { encoded = URLEncoder.encode(value, "UTF-8"); } catch (Exception e) { e.printStackTrace(); } String sb = ""; char focus; for (int i = 0; i < encoded.length(); i++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public static String percentEscape(String s)\n {\n boolean changed = false;\n StringBuilder out = new StringBuilde...
[ "0.7359123", "0.6666422", "0.66174024", "0.64979637", "0.6371708", "0.63038856", "0.6300788", "0.6289388", "0.62629455", "0.58739763", "0.57498497", "0.57202774", "0.5704536", "0.56809384", "0.5672269", "0.55896026", "0.55237246", "0.5516325", "0.5509555", "0.5509262", "0.549...
0.6163643
9
The interface Tpc mq tag service.
public interface TpcMqTagService extends IService<TpcMqTag> { /** * 查询Tag列表. * * @param mdcMqTag the mdc mq tag * * @return the list */ List<TpcMqTagVo> listWithPage(TpcMqTag mdcMqTag); /** * 根据ID删除TAG. * * @param tagId the tag id * * @return the int */ int deleteTagById(Long tagId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IMqService {\n /*发送消息到队列的方法,其中TerminalStateProtoBuf是proto格式的消息,根据实际情况更改*/\n /*\n void reportTerminalState(String restaurantId,TerminalStateProtoBuf.TerminalState.StateType stateType);\n */\n}", "public interface MqttMessageType {\n}", "public interface MQPullConsumer extends MQCons...
[ "0.5897946", "0.57524616", "0.5740339", "0.5645875", "0.56226486", "0.55534273", "0.5425056", "0.53947455", "0.53776383", "0.52712244", "0.5236818", "0.5226048", "0.51478255", "0.5138109", "0.513587", "0.5127762", "0.5120719", "0.511515", "0.511515", "0.5103352", "0.50932026"...
0.7731761
0
Prepares data to show on list for exercise edit: exercise data.
@Override protected ResponseState exec(HttpServletRequest request, HttpServletResponse response) throws PersistentException { EntityValidator<Exercise> validator = new ExerciseValidator(); ExerciseService exerciseService = factory.getService(ExerciseService.class); Integer id = validator.val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadData() {\n\t\tempsList.add(\"Pankaj\");\r\n\t\tempsList.add(\"Raj\");\r\n\t\tempsList.add(\"David\");\r\n\t\tempsList.add(\"Lisa\");\r\n\t}", "void onPrepareForSubmit() {\n\t\t// Create the same list as was rendered.\n\t\t// Loop will write its input field values into the list's objects.\n\n\t\tc...
[ "0.60483295", "0.603303", "0.5971852", "0.5961683", "0.5913389", "0.588045", "0.5849972", "0.5805091", "0.57713383", "0.5756221", "0.5743103", "0.5654994", "0.5630044", "0.5611809", "0.56086916", "0.55924416", "0.557784", "0.5500753", "0.5495762", "0.549173", "0.5465927", "...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
To be sure that token index will be relative to file run twice:
@Test public void test() { bridge.chunk("file.txt", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8)); List<TokensLine> lines = bridge.chunk("file.txt", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8)); assertThat(lines.size(), is(3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean incrementToken() throws IOException {\n\t\treturn false;\r\n\t}", "private void createTokenIndex(){\n\t\tLinkedList<String> tokens = new LinkedList<>(tokenDict.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(tokenDict.values());\n\t\tint k = 8;\n\n\t\tKFront kf ...
[ "0.58658975", "0.58227015", "0.58134973", "0.5746046", "0.56184566", "0.5517726", "0.5512075", "0.55029625", "0.54204804", "0.54119927", "0.53519547", "0.52602357", "0.52324235", "0.52293366", "0.521692", "0.52034694", "0.5194445", "0.5190819", "0.51549965", "0.5125063", "0.5...
0.0
-1
/ Linear tekli kodu LinearLayoutManager manager=new LinearLayoutManager(context); manager.setOrientation(RecyclerView.HORIZONTAL); manager.scrollToPosition(0);
public void setRecycler(){ GridLayoutManager manager=new GridLayoutManager(context,2,LinearLayoutManager.HORIZONTAL, false); recyclerView.setLayoutManager(manager); recyclerView.setHasFixedSize(true); MainMenuAdapter mainMenuAdapter=new MainMenuAdapter(menuRows,context,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRecyclerViewLayoutManager() {\n int scrollPosition = 0;\n\n mLayoutManager = new LinearLayoutManager(getActivity());\n\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.scrollToPosition(scrollPosition);\n }", "@Override\n public View onCreateView(L...
[ "0.77535975", "0.7087006", "0.7064638", "0.69552076", "0.68785816", "0.6786062", "0.6762943", "0.6745757", "0.6720749", "0.66569054", "0.6634789", "0.6614073", "0.6611781", "0.65920746", "0.65896994", "0.6579234", "0.6554708", "0.654789", "0.65246934", "0.64978683", "0.647138...
0.7127298
1
Creates new form JCommandInput
public CommandInput(String title, ICSProtocolHandler ics) { super(title); this.ics = ics; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Command createCommand() {\n\t\tList<Object> editparts = editor.getSelectionCache().getSelectionModelForType(MGraphicElement.class);\n\t\tif (editparts.isEmpty())\n\t\t\treturn null;\n\t\tJSSCompoundCommand command = new JSSCompoundCommand(null);\n\t\tfor(Object part : editparts){\n\t\t\tif (...
[ "0.6342444", "0.62803155", "0.62788004", "0.6264776", "0.6221132", "0.6177299", "0.6121644", "0.609508", "0.60604537", "0.6028231", "0.5910572", "0.5892426", "0.58314174", "0.582894", "0.58265173", "0.5773856", "0.5762994", "0.5738659", "0.56381845", "0.5637199", "0.56254554"...
0.59909385
10
This method is called from within the constructor to initialize the form.
private void initComponents() { tfCommand = new TextField(); tfCommand.addActionListener(this); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { ics.disconnect(); System.exit(0); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n ...
[ "0.81576467", "0.8083747", "0.8000033", "0.8000033", "0.8000033", "0.79945505", "0.79333055", "0.7912291", "0.7856781", "0.7803117", "0.7779806", "0.7732862", "0.7715228", "0.7703263", "0.76720756", "0.76395637", "0.7564924", "0.75484955", "0.75443494", "0.7533491", "0.750045...
0.0
-1
Created by ishwor on 11/11/15.
@Repository public interface SprintRepository extends JpaRepository<Sprint,Integer> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n...
[ "0.62177473", "0.6092787", "0.60675585", "0.5995408", "0.59764576", "0.59517366", "0.5942966", "0.5942966", "0.5920411", "0.58942264", "0.5845223", "0.5842439", "0.58076304", "0.580069", "0.5800243", "0.5799488", "0.5799488", "0.5799488", "0.5799488", "0.5799488", "0.57970417...
0.0
-1
=========================================================== Getter & Setter =========================================================== Sets the color using the arithmetic scheme (0.0f 1.0f RGB triple).
@Override public void setColor(final float pRed, final float pGreen, final float pBlue) { this.mRed = pRed; this.mGreen = pGreen; this.mBlue = pBlue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Color(Scalar s) {\n setScalar(s);\n }", "public void setColor(float r, float g, float b, float a);", "Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }", "public Colour() {\n\t\tset(0, 0, 0);\n\t}", "public Color() {\n\n\t\tthis(0, 0, 0);\n\...
[ "0.6804023", "0.6509899", "0.64577925", "0.6435998", "0.6431918", "0.63005596", "0.6262797", "0.6247309", "0.62109816", "0.61752325", "0.6158033", "0.60917854", "0.5990588", "0.5970866", "0.59577", "0.5869508", "0.58622456", "0.5852798", "0.5841239", "0.5835695", "0.5803779",...
0.5449918
85
Sets the color using the arithmetic scheme (0.0f 1.0f RGB quadruple).
@Override public void setColor(final float pRed, final float pGreen, final float pBlue, final float pAlpha) { this.setColor(pRed, pGreen, pBlue); this.mAlpha = pAlpha; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setColor(float r, float g, float b, float a);", "public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}", "public void setColor(int gnum, Color col);", "public vo...
[ "0.637947", "0.6126789", "0.5935448", "0.59260434", "0.5923161", "0.5889876", "0.5854428", "0.5839727", "0.57879585", "0.5667807", "0.56575924", "0.55976415", "0.5584606", "0.556718", "0.5566534", "0.5529745", "0.5516837", "0.54937404", "0.5492008", "0.54617774", "0.54554206"...
0.0
-1
Sets the color using the digital 8bit per channel scheme (0 255 RGB triple).
public void setColor(final int pRed, final int pGreen, final int pBlue) throws IllegalArgumentException { this.setColor(pRed / COLOR_FACTOR_INT_TO_FLOAT, pGreen / COLOR_FACTOR_INT_TO_FLOAT, pBlue / COLOR_FACTOR_INT_TO_FLOAT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBitsPerPixel(int bitsPerPixel);", "void setColor(int r, int g, int b);", "public void setRgbColorAtPowerOnBg(int newval) throws YAPI_Exception\n {\n _rgbColorAtPowerOn = newval;\n _ycolorled.set_rgbColorAtPowerOn(newval);\n }", "public void setColor(int r, int g, int b);", "void...
[ "0.62686014", "0.6124005", "0.6120375", "0.6118282", "0.60576147", "0.6043376", "0.6025739", "0.6010443", "0.59678656", "0.59509736", "0.59509736", "0.5948002", "0.5922748", "0.58670217", "0.5858898", "0.5853788", "0.58334374", "0.5821893", "0.58062893", "0.5776397", "0.57403...
0.0
-1
Sets the color using the digital 8bit per channel scheme (0 255 RGB quadruple).
public void setColor(final int pRed, final int pGreen, final int pBlue, final int pAlpha) throws IllegalArgumentException { this.setColor(pRed / COLOR_FACTOR_INT_TO_FLOAT, pGreen / COLOR_FACTOR_INT_TO_FLOAT, pBlue / COLOR_FACTOR_INT_TO_FLOAT, pAlpha / COLOR_FACTOR_INT_TO_FLOAT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBitsPerPixel(int bitsPerPixel);", "private static void setG8(BufferedImage image, int x, int y, int value) {\n assert (value >= 0 && value <= 255);\n image.setRGB(x, y, value | (value << 8) | (value << 16));\n }", "public void setRgbColorAtPowerOnBg(int newval) throws YAPI_Exception\n ...
[ "0.624212", "0.60578597", "0.6039408", "0.5973661", "0.59704655", "0.58900326", "0.58772105", "0.5845389", "0.5834652", "0.5719302", "0.57119364", "0.5700747", "0.5700747", "0.56795543", "0.5668494", "0.561944", "0.5576234", "0.5573042", "0.5548234", "0.5543661", "0.5532154",...
0.0
-1
=========================================================== Methods for/from SuperClass/Interfaces ===========================================================
@Override public void onDraw(final GL10 pGL, final Camera pCamera) { if(this.mColorEnabled) { pGL.glClearColor(this.mRed, this.mGreen, this.mBlue, this.mAlpha); pGL.glClear(GL10.GL_COLOR_BUFFER_BIT); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "...
[ "0.66493845", "0.6629024", "0.6452968", "0.642971", "0.63373286", "0.63248324", "0.63248324", "0.62520915", "0.62315", "0.6216611", "0.61964023", "0.61958927", "0.6175072", "0.6166632", "0.61429137", "0.61355686", "0.6113214", "0.61115307", "0.61108357", "0.6107379", "0.60699...
0.0
-1
TODO Autogenerated method stub
@Override public Class<?> SupportViewType() { return ImageView.class; }
{ "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
Checks if the enum element can be assigned from a label
public boolean canBeFrom(String label);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetLabel();", "boolean hasLabel();", "boolean hasLabel();", "boolean hasLabel();", "public boolean labelOnOlemassa(String label);", "private void validateTaxonRankEnumLabels(String[] rankToDisplay){\n\t\tfor(int i = 0; i < rankToDisplay.length;i++){\n\t\t\tassertTrue(Rank.getIdFromLabel(rankToD...
[ "0.6794057", "0.6636161", "0.6636161", "0.6636161", "0.6253451", "0.6224056", "0.6098294", "0.608348", "0.5970964", "0.59564036", "0.59528947", "0.58870494", "0.58688873", "0.5859316", "0.5848788", "0.5822931", "0.5788069", "0.5779142", "0.5779142", "0.5779142", "0.5772838", ...
0.7269856
0
/ 19: / 20:
protected InterceptingClientHttpRequest(ClientHttpRequestFactory requestFactory, List<ClientHttpRequestInterceptor> interceptors, URI uri, HttpMethod method) /* 21: */ { /* 22:49 */ this.requestFactory = requestFactory; /* 23:50 */ this.interceptors = interceptors; /* 24:51 */ this.method = method; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int method_2436() {\r\n return 16;\r\n }", "void mo1940i();", "void mo1942k();", "private void kk12() {\n\n\t}", "public void mo21877s() {\n }", "void mo1943l();", "public void method_4270() {}", "public static void listing5_16() {\n }", "@Override\n protected long advanceH(fin...
[ "0.55709076", "0.5493394", "0.5458398", "0.5426563", "0.534869", "0.5294282", "0.5293478", "0.52794755", "0.52790725", "0.5270086", "0.5209938", "0.520411", "0.520026", "0.5138509", "0.5125166", "0.5122229", "0.5110396", "0.5099524", "0.50953853", "0.50886554", "0.5086783", ...
0.0
-1
/ 27: / 28:
public HttpMethod getMethod() /* 29: */ { /* 30:56 */ return this.method; /* 31: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "public int mo36g() {\n return 8;\n }", "public int method_2436() {\r\n return 16;\r\n }", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "public int mo36g() {\n return 4;\n }", "private void m50366E() {...
[ "0.59089875", "0.5902221", "0.58161277", "0.5803234", "0.5738244", "0.5705121", "0.57004946", "0.5676233", "0.5660523", "0.5640618", "0.5608687", "0.5608475", "0.5582639", "0.55378115", "0.55236185", "0.552194", "0.5519444", "0.5516962", "0.55156124", "0.55069053", "0.5500873...
0.0
-1
/ 32: / 33:
public URI getURI() /* 34: */ { /* 35:60 */ return this.uri; /* 36: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo33732Px();", "public int method_2436() {\r\n return 16;\r\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:4...
[ "0.58808213", "0.5879061", "0.5680651", "0.5654", "0.5645227", "0.5630402", "0.5630296", "0.56136394", "0.5568993", "0.5567183", "0.5512024", "0.5504513", "0.5502662", "0.5447573", "0.5416775", "0.53795934", "0.53360534", "0.53123266", "0.5299049", "0.52848846", "0.52829754",...
0.0
-1
/ 37: / 38:
protected final ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput) /* 39: */ throws IOException /* 40: */ { /* 41:65 */ RequestExecution requestExecution = new RequestExecution(null); /* 42: */ /* 43:67 */ return requestExecution.execute(this, bufferedOutput); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void keyLeft();", "@Override\n\tpublic void arrowInput(int keyCode) {\n\t\t\n\t}", "void keyHome();", "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\r\n\t\tkey = e.getKeyCode();\r\n\t\t\r\n\t\t//up arrow\r\n\t\tif (key == KeyEvent.VK_UP) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn = (\"up\");\r\n\t\...
[ "0.6058723", "0.60572654", "0.60206187", "0.60166895", "0.5856919", "0.58431023", "0.5803421", "0.5791283", "0.5791283", "0.5769089", "0.5763379", "0.57580495", "0.57580495", "0.5749001", "0.57311773", "0.57227516", "0.57217073", "0.57159543", "0.56755835", "0.56413704", "0.5...
0.0
-1
/ 50: / 51:
private RequestExecution() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ ...
[ "0.5580609", "0.5490933", "0.5480889", "0.538532", "0.53289974", "0.532048", "0.52723", "0.5267481", "0.5267214", "0.526362", "0.5243596", "0.52351403", "0.5234267", "0.52145743", "0.51939744", "0.51884496", "0.5161046", "0.5149409", "0.51417005", "0.5140835", "0.513383", "...
0.0
-1
/ 52: / 53:
public ClientHttpResponse execute(HttpRequest request, byte[] body) /* 54: */ throws IOException /* 55: */ { /* 56:79 */ if (this.iterator.hasNext()) /* 57: */ { /* 58:80 */ ClientHttpRequestInterceptor nextInterceptor = (ClientHttpRequestInterceptor)this.iterator.next(); /* 59...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo21877s() {\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", ...
[ "0.6148362", "0.6052902", "0.6031856", "0.6028189", "0.6003016", "0.60016537", "0.5985573", "0.59760076", "0.5970174", "0.5965696", "0.5963945", "0.5959638", "0.5948024", "0.5948024", "0.5948024", "0.5948024", "0.5948024", "0.5948024", "0.5948024", "0.5938184", "0.59219855", ...
0.0
-1
Return the error logger (use to log exception or others strange things).
public static Logger getErrorLogger() { return RequestMaker.getErrorLogger(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ErrorLogger errorLogger() {\n return this.m_mds.errorLogger();\n }", "public static LoggerService getLog() {\n\t\tif (log == null) {\n\t\t\t//standard error stream is redirect to the nginx error log file, so we just use System.err as output stream.\n\t\t\tlog = TinyLogService.createDefaultTinyL...
[ "0.8044932", "0.72175574", "0.67776084", "0.67287827", "0.6659185", "0.6629523", "0.65968126", "0.65272844", "0.6521709", "0.64932483", "0.6475538", "0.64259195", "0.64052725", "0.6396268", "0.63878584", "0.63580215", "0.63447607", "0.6339092", "0.63155407", "0.6250857", "0.6...
0.82709014
0
Use this method to receive incoming updates using long polling. An Array of Update objects is returned.
public final List<Update> getUpdates(UpdateRequest upr) { if(upr == null) return null; return rm.getUpdates(upr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receivedUpdateFromServer();", "protected List<Update> getUpdates(long offset, int limit, int timeout) {\n try {\n\n UriComponentsBuilder uri = UriComponentsBuilder.fromHttpUrl(methodUrl(\"getUpdates\"))\n .queryParam(\"offset\", offset)\n .query...
[ "0.60405564", "0.6018049", "0.5948848", "0.5734161", "0.5712599", "0.57125276", "0.56829804", "0.5561061", "0.5495052", "0.5480482", "0.5461204", "0.53601336", "0.53392977", "0.53046304", "0.52950436", "0.5263279", "0.52219576", "0.5197022", "0.5191403", "0.51759", "0.5167634...
0.55020374
8
Use this method to send text messages. On success, the sent Message is returned.
public final Message sendMessage(MessageToSend mts) { if(mts == null) return null; return rm.sendMessage(mts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendText(String content);", "private void sendTextMessage(String message) {\n if ( message == null || message.length() < 1 ) {\n return;\n }\n DateFormat localDateFormat = Constant.getServerDateFormat();\n Chat chat = new Chat(0,tournamentID,clubID,receiverID, selfID,s...
[ "0.7167921", "0.68002677", "0.66795915", "0.66643226", "0.6574952", "0.655691", "0.6543211", "0.6543012", "0.64988744", "0.6454225", "0.64429617", "0.63941664", "0.63783926", "0.6372299", "0.6372174", "0.6349849", "0.63460577", "0.626391", "0.625486", "0.62119216", "0.6195606...
0.5795375
54
Use this method to forward messages of any kind. On success, the sent Message is returned.
public final Message forwardMessage(ForwardMessageToSend fts) { if(fts == null) return null; return rm.forwardMessage(fts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void forward(IMessage message, IChannel sender);", "public void forward() {\n callFunction(\"forward\");\n }", "public void readForward() {\n\t\tiStream = new ByteArrayInputStream(marshalledBytes);\t\n\t\tdin = new DataInputStream(new BufferedInputStream(iStream));\n\t\ttry {\n\t\t\tint nRouteStops =...
[ "0.7271205", "0.60061353", "0.5878664", "0.58387643", "0.57691115", "0.57249355", "0.5651951", "0.5648803", "0.5602021", "0.55832005", "0.55458444", "0.551185", "0.5466512", "0.5461526", "0.54325026", "0.53891224", "0.5380362", "0.53308403", "0.5312583", "0.528225", "0.525797...
0.73515207
0
Use this method to send Photos by file_id, On success, the sent Message is returned.
public final Message sendPhotobyReference(PhotoReferenceToSend prs) { if(prs == null) return null; return rm.sendPhotobyReference(prs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Message sendPhotoFile(PhotoFileToSend pfs)\n\t{\n\t\tif(pfs == null)\n\t\t\treturn null;\n\t\treturn rm.sendPhotoFile(pfs);\n\t}", "void fileSent(IMSession session, String requestId, String fileId);", "public UploadedFileResponse getFileByFileId(String idFile) {\r\n\t\t\treturn this.uploadedFileRe...
[ "0.6413581", "0.5951853", "0.5744477", "0.57063234", "0.5577718", "0.5468314", "0.54381794", "0.534111", "0.5316334", "0.5314955", "0.5300991", "0.5274364", "0.5224843", "0.52080363", "0.5185805", "0.5165753", "0.515424", "0.5145152", "0.51119304", "0.50754035", "0.5045189", ...
0.48124543
39
Use this method to send photos by file. On success, the sent Message is returned.
public final Message sendPhotoFile(PhotoFileToSend pfs) { if(pfs == null) return null; return rm.sendPhotoFile(pfs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendPhotoToService(File photo) {\r\n try {\r\n InetAddress serverAddr = InetAddress.getByName(\"10.0.2.2\");\r\n Socket socket = new Socket(serverAddr, 8001);\r\n try {\r\n OutputStream output = socket.getOutputStream();\r\n InputStr...
[ "0.6687475", "0.63055253", "0.6299177", "0.6243861", "0.6148817", "0.6106429", "0.6084667", "0.60498595", "0.6030504", "0.5981216", "0.5921025", "0.5904178", "0.5857067", "0.5796669", "0.57784665", "0.57165456", "0.5654005", "0.560185", "0.5594979", "0.5588961", "0.5584405", ...
0.70747465
0
Use this method to send Audio by file_id, On success, the sent Message is returned.
public final Message sendAudiobyReference(AudioReferenceToSend ars) { if(ars == null) return null; return rm.sendAudiobyReference(ars); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FormUrlEncoded\n\t@POST(\"messagerie/insert_audio\")\n\tCall<BasicResponse> insertMessageWithAudio(\n\t\t\t@Field(\"id_header\") String idHeader,\n\t\t\t@Field(\"id_receveur\") String idReceveur,\n\t\t\t@Field(\"filename\") String filename);", "public final Message sendAudioFile(AudioFileToSend afs)\n\t{\n\t\ti...
[ "0.68362236", "0.65934044", "0.6135408", "0.60202307", "0.57845306", "0.5678176", "0.5619804", "0.5605697", "0.5590123", "0.55512905", "0.55005515", "0.545563", "0.53866094", "0.5381408", "0.53564477", "0.5356123", "0.5319036", "0.5284715", "0.52622604", "0.52559406", "0.5231...
0.5334064
16
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB ...
public final Message sendAudioFile(AudioFileToSend afs) { if(afs == null) return null; return rm.sendAudioFile(afs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void uploadAudio(String name, MultipartFile file) {\n\t\tisFileEmpty(file);\n\t\t//2. check if file is an audio\n\t\tisAudio(file);\n\t\t\n\t}", "private void sendMusic(String path) {\n try {\n System.out.println(\"start sendMusic\");\n File myFile = new File(path)...
[ "0.63113946", "0.61304635", "0.61194366", "0.60323226", "0.5923353", "0.57839245", "0.5779647", "0.55903286", "0.5557049", "0.553905", "0.5536727", "0.54141235", "0.54048026", "0.54016805", "0.5366692", "0.5338253", "0.5313952", "0.5257254", "0.52450526", "0.5242292", "0.5218...
0.66410166
0
Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
public Message sendDocumentFile(DocumentFileToSend dfs) { if(dfs == null) return null; return rm.sendDocumentFile(dfs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendFile() {\r\n\t\t// 특정 클라이언트에게 파일을 보냄\r\n\t}", "@Override\n\t\t\t\tpublic int fileTransferSend(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, ByteBuffer buffer, int size) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "private void sendFileContents() {\n\t\t// mostramos un log...
[ "0.63934326", "0.6352196", "0.6234011", "0.6029773", "0.5986397", "0.5951005", "0.5912404", "0.5786714", "0.5671795", "0.5612566", "0.5605473", "0.5600978", "0.55962974", "0.5569556", "0.55654204", "0.5445708", "0.53976595", "0.5382908", "0.53769845", "0.5367437", "0.5366291"...
0.56865835
8
Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.
public Message sendDice(DiceToSend dts) { if(dts == null) return null; return rm.sendDice(dts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ReactMethod\n public void sendRandom() {\n long maxPayloadLength = chirpConnect.maxPayloadLength();\n long size = (long) new Random().nextInt((int) maxPayloadLength) + 1;\n byte[] payload = chirpConnect.randomPayload((byte)size);\n\n ChirpError error = chirpConnect.send(payload);\n ...
[ "0.6128838", "0.59238297", "0.55391836", "0.5443463", "0.54125637", "0.5380088", "0.5371535", "0.5309135", "0.52792704", "0.52548003", "0.5232239", "0.5177214", "0.5163606", "0.5075521", "0.5051908", "0.5046397", "0.5042217", "0.5019431", "0.50190306", "0.501372", "0.50112444...
0.0
-1
Use this method to send files by file_id, On success, the sent Message is returned.
public final Message sendDocumentbyReference(DocumentReferenceToSend drs) { if(drs == null) return null; return rm.sendDocumentbyReference(drs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UploadedFileResponse getFileByFileId(String idFile) {\r\n\t\t\treturn this.uploadedFileResponseDAO.getFileByFileId( idFile);\r\n\t\t}", "void fileSent(IMSession session, String requestId, String fileId);", "public boolean sendFile(String inKey, File inFile) throws NuxeoException;", "public void sendFi...
[ "0.64926875", "0.6448579", "0.61397547", "0.6124603", "0.5919846", "0.5886588", "0.58152056", "0.5788351", "0.5787346", "0.5742904", "0.57124376", "0.57073116", "0.5648905", "0.5585548", "0.5564946", "0.555617", "0.5547095", "0.5543955", "0.55274093", "0.550195", "0.5471662",...
0.0
-1
Use this method to send Stickers by file_id, On success, the sent Message is returned.
public final Message sendStickerbyReference(StickerReferenceToSend srs) { if(srs == null) return null; return rm.sendStickerbyReference(srs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Message sendStickerFile(StickerFileToSend sfs)\n\t{\n\t\tif(sfs == null)\n\t\t\treturn null;\n\t\treturn rm.sendStickerFile(sfs);\n\t}", "void fileSent(IMSession session, String requestId, String fileId);", "@Override\n\t\tpublic void asyncSendSuccess(long id) throws ConnectorException {\n\t\t\t\n...
[ "0.59126943", "0.5435172", "0.5060283", "0.5057573", "0.50065815", "0.4972372", "0.49446318", "0.48899528", "0.4884245", "0.48747948", "0.48663685", "0.4844266", "0.47982377", "0.47731075", "0.4767327", "0.47611314", "0.4721157", "0.46647346", "0.4652632", "0.46299285", "0.46...
0.0
-1
Use this method to send .webp stickers. On success, the sent Message is returned.
public final Message sendStickerFile(StickerFileToSend sfs) { if(sfs == null) return null; return rm.sendStickerFile(sfs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void send(WebhookMessage msg);", "public void sendTemplate(){\n int printer_size;\n try {\n printer_size = Integer.parseInt(ls.getString(LocalStorage.PRINTER_PAPER_SIZE,\"48\"));\n }catch (Exception e){\n printer_size = 48;\n }\n\n requestBody = \"<?xml ve...
[ "0.5135181", "0.5096628", "0.49792147", "0.49785703", "0.48704702", "0.48571405", "0.4851263", "0.4818946", "0.4800863", "0.4799393", "0.4756601", "0.47336674", "0.4718465", "0.47018132", "0.4692107", "0.4674187", "0.46455768", "0.46379778", "0.4636553", "0.4634859", "0.46166...
0.48825294
4
Use this method to send video files by file_id, On success, the sent Message is returned.
public final Message sendVideobyReference(VideoReferenceToSend vrs) { if(vrs == null) return null; return rm.sendVideobyReference(vrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Message sendVideoFile(VideoFileToSend vfs)\n\t{\n\t\tif(vfs == null)\n\t\t\treturn null;\n\t\treturn rm.sendVideoFile(vfs);\n\t}", "public void run() {\n\n\n if (videoFile != null) {\n //\n // Add Image to Photo...
[ "0.64213014", "0.5900672", "0.5800765", "0.57076544", "0.5705938", "0.5665746", "0.5648236", "0.5503502", "0.54700744", "0.5429889", "0.5416547", "0.53961706", "0.53441834", "0.5280605", "0.52790767", "0.52185357", "0.51915044", "0.5156471", "0.511383", "0.51080716", "0.51074...
0.4567634
89
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of ...
public final Message sendVoiceFile(VoiceFileToSend vfs) { if(vfs == null) return null; return rm.sendVoiceFile(vfs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Message sendAudioFile(AudioFileToSend afs)\n\t{\n\t\tif(afs == null)\n\t\t\treturn null;\n\t\treturn rm.sendAudioFile(afs);\n\t}", "public void uploadAudio(String name, MultipartFile file) {\n\t\tisFileEmpty(file);\n\t\t//2. check if file is an audio\n\t\tisAudio(file);\n\t\t\n\t}", "@FormUrlEncod...
[ "0.6506765", "0.6323314", "0.61037457", "0.6085831", "0.5995798", "0.594453", "0.5843973", "0.5768724", "0.55848426", "0.5572212", "0.55377686", "0.5510169", "0.5465277", "0.53594476", "0.5349732", "0.5341855", "0.5327413", "0.5301765", "0.5291309", "0.5274193", "0.52637744",...
0.5104921
28
Use this method to send audio files by reference, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice...
public final Message sendVoicebyReference(VoiceReferenceToSend vrs) { if(vrs == null) return null; return rm.sendVoicebyReference(vrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Message sendAudioFile(AudioFileToSend afs)\n\t{\n\t\tif(afs == null)\n\t\t\treturn null;\n\t\treturn rm.sendAudioFile(afs);\n\t}", "public final Message sendAudiobyReference(AudioReferenceToSend ars)\n\t{\n\t\tif(ars == null)\n\t\t\treturn null;\n\t\treturn rm.sendAudiobyReference(ars);\n\t}", "@S...
[ "0.6707627", "0.6298024", "0.6181806", "0.61727405", "0.613965", "0.61360896", "0.5904494", "0.5847101", "0.57906586", "0.5769914", "0.56119514", "0.55628586", "0.5532623", "0.55260545", "0.54679227", "0.54119116", "0.53933764", "0.5389625", "0.5379572", "0.53494495", "0.5297...
0.0
-1
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.
public final Message sendVideoFile(VideoFileToSend vfs) { if(vfs == null) return null; return rm.sendVideoFile(vfs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void videoMessage(Message m);", "public static String uploadVideo(String fileName, String serverUri,\n String serverFolderUploads) {\n\n HttpURLConnection connection = null;\n DataOutputStream outputStream = null;\n\n String pathToOurFile =...
[ "0.6068946", "0.5818066", "0.58042103", "0.5682919", "0.55204725", "0.5501214", "0.54685676", "0.5311899", "0.53105336", "0.5287864", "0.5199108", "0.5190144", "0.51671267", "0.51656044", "0.51225924", "0.51214427", "0.5093676", "0.50268793", "0.4997957", "0.49854335", "0.498...
0.6287589
0
Use this method to send point on the map. On success, the sent Message is returned.
public final Message sendLocation(LocationToSend lts) { if(lts == null) return null; return rm.sendLocation(lts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onSendMap() {\n\t\tif(localBytes != null){\n\t\t\t// Prepare data intent \n\t\t\tIntent data = new Intent();\n\t\t\t// Pass relevant data back as a result\n\t\t\tif(tempLocation != null){\n\t\t\t\tdata.putExtra(\"lat\", tempLocation.getLatitude());\n\t\t\t\tdata.putExtra(\"lon\", tempLocation.getLongi...
[ "0.64566535", "0.63545996", "0.59751064", "0.5900157", "0.58588195", "0.5731633", "0.56830716", "0.5660423", "0.5632403", "0.5598021", "0.5583037", "0.5558792", "0.5535921", "0.5531675", "0.55228555", "0.5429134", "0.5406328", "0.53846365", "0.5380142", "0.53788894", "0.53566...
0.5589636
10
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
public final UserProfilePhotos getUserProfilePhotos(UserProfilePhotosRequest upr) { if(upr == null) return null; return rm.getUserProfilePhotos(upr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ProfilePicture> getProfile() {\r\n\t\t\t\r\n\t\t\treturn (List<ProfilePicture>) userRepo.findAll();\r\n\t\t}", "@RequestMapping(value = \"/{userID}\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Photo> getPhotos(@PathVariable long userID) {\n\t\treturn photoServices.getPhotos(userID);\n\...
[ "0.69601667", "0.60534847", "0.60281706", "0.5969701", "0.5924508", "0.5849462", "0.56335366", "0.5594816", "0.55235714", "0.55194914", "0.5495492", "0.5489286", "0.54726183", "0.5471266", "0.54569775", "0.53966796", "0.53873503", "0.5367045", "0.535644", "0.53524005", "0.532...
0.7100477
0
This method read the message values and pass the message on to the appropriate method.
public final void manageMessage(Message message) { if(message.getText() != null) { textMessage(message); return; } if(message.getAudio() != null) { audioMessage(message); return; } if(message.getDocument() != null) { documentMessage(message); return; } if(message.getPhoto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}", "static private void readMessage(){\r\n\t\t index = 0;\r\n\t\t code = 0;\r\n\t\t firstParam = \"\";\r\n\t\t secondParam = \"\";\r\n\t\t thirdParam = \"\";\r\n\t\t StringTokenizer st = new StringTokenizer(message, \"_\");\r\n\t\t String c...
[ "0.7096755", "0.67303866", "0.6630456", "0.66293454", "0.6593803", "0.65517366", "0.6496011", "0.647352", "0.64346135", "0.6420461", "0.6419841", "0.6395775", "0.6369702", "0.63160044", "0.63144624", "0.6301022", "0.6295714", "0.62676597", "0.6249452", "0.622964", "0.6228845"...
0.5657251
81
This method will be called when bot received a text message.
public abstract void textMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void onTextReceived(String message);", "@EventMapping\n\tpublic static void handleTextMessageEvent(MessageEvent<TextMessageContent> event) throws Exception {\n\t\tTextHandler.handle(event);\n\t}", "@Override\n public void onTextMessage(ReceivedTextMessage message) {\n //ignore the mes...
[ "0.81110054", "0.72586006", "0.7220598", "0.71308815", "0.70948154", "0.6862995", "0.6782687", "0.67743415", "0.6752522", "0.6735662", "0.6731022", "0.6669348", "0.66612005", "0.66563463", "0.6653383", "0.6633448", "0.6582896", "0.6541512", "0.65389156", "0.6524965", "0.65179...
0.6685046
11
This method will be called when bot received an audio file (not voice).
public abstract void audioMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void isAudio(MultipartFile file) {\n\t\t\n\t}", "public void playAudio() {\n if (done==false)\n {\n file.play();\n }\n}", "public boolean isAudio()\n {return false ;\n }", "public void playLocal(String audiofile);", "@Override\r\n\tpublic void OnDlVoiceBegin() {\n\t\tRecordingVoiceDownl...
[ "0.6557164", "0.6411917", "0.6343762", "0.62355393", "0.6232876", "0.6219827", "0.62177646", "0.6116777", "0.61117464", "0.6078054", "0.6058256", "0.6039966", "0.60397834", "0.6034529", "0.5999071", "0.59966063", "0.595865", "0.5946463", "0.593252", "0.59265345", "0.59158015"...
0.645119
1
This method will be called when bot received a video.
public abstract void videoMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onVideoStarted() {\n }", "public void onVideoStarted () {}", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(VideoDetailsActivity.this,\"Reciever fot the result. Do some processing bro\",Toast.LENGTH_LONG).sho...
[ "0.77316475", "0.7727532", "0.7543004", "0.73867774", "0.7325294", "0.72090906", "0.70447236", "0.68052965", "0.67670256", "0.676508", "0.67182785", "0.6707495", "0.6705223", "0.6705223", "0.67043585", "0.66455394", "0.6628641", "0.6582244", "0.65775", "0.65134585", "0.651176...
0.71753985
6
This method will be called when bot received a voice message
public abstract void voiceMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleMessage(Message msg) {\n switch (msg.what) {\n case R.id.clientReady: // 음성인식 준비 가능\n txtResult.setText(\"Connected\");\n writer = new AudioWriterPCM(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/NaverSpeechTest\");\n ...
[ "0.71433896", "0.6837534", "0.6785791", "0.6666517", "0.6659325", "0.6648339", "0.66240174", "0.6516718", "0.6512245", "0.6479113", "0.6459429", "0.6441732", "0.63750434", "0.63670367", "0.6357764", "0.6339002", "0.6321893", "0.6305502", "0.6302029", "0.6281086", "0.62258893"...
0.75842786
0
This method will be called when bot received a sticker.
public abstract void stickerMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StickerTransmitter getStickerTransmitter();", "public void onBetPlaced(Bet bet);", "private void notifyStakeholder(){\n }", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyA...
[ "0.6517976", "0.6342112", "0.6280734", "0.6051171", "0.590359", "0.58864367", "0.5816182", "0.5747859", "0.56751096", "0.5648749", "0.5640351", "0.55857944", "0.556872", "0.5567721", "0.5567721", "0.5567721", "0.5567721", "0.5567721", "0.55669534", "0.55602247", "0.55217874",...
0.616561
3
This method will be called when bot received a File
public abstract void documentMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fileReceived(IMSession session, String requestId, String fileId, String filePath);", "void sendFile() {\r\n\t\t// 특정 클라이언트에게 파일을 보냄\r\n\t}", "public void OnFileComplete();", "private void fileHandler(String line) {\n var splited = line.split(\" \");\n if (splited.length < 3) {\n System.err.pr...
[ "0.76778954", "0.72724044", "0.70081776", "0.69719875", "0.6971043", "0.6969603", "0.68199366", "0.67256325", "0.6574756", "0.65465987", "0.65298367", "0.6525116", "0.6515061", "0.6509446", "0.6396934", "0.63861614", "0.63562155", "0.6303048", "0.6300121", "0.62939394", "0.62...
0.0
-1
This method will be called when bot received a photo
public abstract void photoMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n Bitmap bmp = getURLimage(imageUrl);\n Message msg = new Message();\n msg.what = 0;\n msg.obj = bmp;\n handle.sendMessage(msg);\n ...
[ "0.69587195", "0.69301397", "0.67992336", "0.67911375", "0.66708386", "0.6640953", "0.663192", "0.655826", "0.6486766", "0.6382252", "0.63605046", "0.6311534", "0.6311479", "0.6303237", "0.6300105", "0.6298691", "0.626809", "0.6186901", "0.6186044", "0.61740047", "0.6133447",...
0.72473145
0
This method will be called when bot received a dice
public abstract void diceMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Diceroll()\n\t{\n\t\tdice1 = rand.nextInt(6)+1;\n\t\tdice2 = rand.nextInt(6)+1;\n\t\ttotal = dice1+dice2;\n\t}", "@Override\n public void notifyRollDice() {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyHaveToShotDice();\n }\n ...
[ "0.6891621", "0.6808563", "0.6764175", "0.67571044", "0.67335045", "0.66321623", "0.66124505", "0.6506004", "0.64702725", "0.6468456", "0.6447056", "0.6436898", "0.641776", "0.64006597", "0.6357132", "0.6330277", "0.6328987", "0.6316658", "0.6310561", "0.6292896", "0.6290499"...
0.6667709
5
This method will be called when bot received a contact
public abstract void contactMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleContactInfoUpdated() {\n Call call = getCallToShow(CallList.getInstance());\n if (call != null) {\n showNotification(call);\n }\n }", "private void contactUs() {\n }", "@Override\n\tpublic void onEndContact(Contact c) {\n\t\t\n\t}", "@Override\n ...
[ "0.6518412", "0.64599824", "0.629789", "0.628815", "0.62087154", "0.6195455", "0.61474603", "0.6116845", "0.6100209", "0.60914236", "0.60867405", "0.6079218", "0.607184", "0.603097", "0.60031694", "0.5975979", "0.59588116", "0.5952347", "0.5941814", "0.5934258", "0.59170854",...
0.5874388
25
This method will be called when bot received a location
public abstract void locationMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onReceiveLocation(BDLocation location) {\n }", "void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);", "public void onLocationChanged(Location location) {\n sendResult(location);\n }", "@Override\n public void onReceive...
[ "0.780281", "0.75492764", "0.728457", "0.7208698", "0.71685797", "0.7089109", "0.70877", "0.70877", "0.70844775", "0.7054239", "0.70352757", "0.70299226", "0.70222956", "0.69911623", "0.6986212", "0.6971399", "0.69695526", "0.69600934", "0.6959732", "0.69527835", "0.6944235",...
0.0
-1
This method will be called when bot received a venue
public abstract void venueMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVenue(String venue) {\n\t\tthis.venue = venue;\n\t}", "public String getVenue() {\n Object ref = venue_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n ...
[ "0.62817276", "0.6138867", "0.61142343", "0.60405725", "0.5961554", "0.59128547", "0.5890522", "0.57619995", "0.5705656", "0.5700971", "0.5691814", "0.5678009", "0.56367457", "0.5624484", "0.56083894", "0.56060576", "0.5595165", "0.55951273", "0.55805606", "0.55769974", "0.55...
0.62651044
1
This method will be called when a new member join the Chat.
@Deprecated public abstract void newChatMemberMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onGuildMemberJoin(@NotNull GuildMemberJoinEvent event) {\n super.onGuildMemberJoin(event);\n event.getMember().getUser().openPrivateChannel().queue((channel) -> {\n channel.sendMessage(Settings.WELCOME_MESSAGE).queue();\n });\n }", "private void joinN...
[ "0.71210754", "0.6845368", "0.683801", "0.6835428", "0.672221", "0.64925295", "0.64798516", "0.647386", "0.6467843", "0.6458601", "0.6417521", "0.6406325", "0.6402177", "0.63771874", "0.6372133", "0.6313072", "0.6307846", "0.6300211", "0.6256439", "0.62327445", "0.62082756", ...
0.580036
58
This method will be called when a new members join the Chat.
public abstract void newChatMembersMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onGuildMemberJoin(@NotNull GuildMemberJoinEvent event) {\n super.onGuildMemberJoin(event);\n event.getMember().getUser().openPrivateChannel().queue((channel) -> {\n channel.sendMessage(Settings.WELCOME_MESSAGE).queue();\n });\n }", "private void joinN...
[ "0.68934673", "0.6811187", "0.6726967", "0.6657675", "0.6573548", "0.6486907", "0.6466449", "0.63585824", "0.63585454", "0.6353031", "0.63338846", "0.6309201", "0.6276937", "0.62625915", "0.6258411", "0.6250489", "0.62358797", "0.6228473", "0.6213826", "0.61802816", "0.616910...
0.69039345
0
This method will be called when a member left the chat
public abstract void leftChatMemberMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onUserLeftLobby(LobbyData arg0, String arg1) {\n\t\t\n\t}", "public void leaveChat(){\n toServer.println(\"leavechat\" + \" \" + chatID + \" \" + username);\n toServer.flush();\n gui.dispose();\n clientModel.activeChats.remove(chatID);\n }", "@Override\r\...
[ "0.73790413", "0.7335601", "0.72094154", "0.71364003", "0.7077739", "0.6964042", "0.6875769", "0.6790755", "0.6761453", "0.6755012", "0.67289776", "0.671535", "0.67085654", "0.66256535", "0.6561385", "0.65052104", "0.6483799", "0.6479164", "0.64034194", "0.63777053", "0.63582...
0.8013132
0
This method will be called when the chat title is changed
public abstract void newChatTitleMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTitleChange(String title) {\n poll.setTitle(title);\n }", "@Override\n\tpublic void onTitleChanged(String newTitle) {\n\t\tif (!newTitle.matches(\"\")) {\n getSupportActionBar().setSubtitle(newTitle);\n }\n\t}", "@Override\r\n\tpublic void titleChanged(M...
[ "0.7646996", "0.73016584", "0.7164344", "0.7148847", "0.7112883", "0.70935357", "0.69817686", "0.68341243", "0.6833794", "0.6791691", "0.6765349", "0.6760679", "0.6750152", "0.6740441", "0.67048794", "0.6694207", "0.66898096", "0.66843784", "0.66568154", "0.6620732", "0.66091...
0.7405224
1
This method will be called when the photo chat is changed
public abstract void newChatPhotoMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPhotoAttcher() {\n\n }", "public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}", "@Override\r\n\tpublic void pictureUpdated() {\r\n\t\tif(mDialog != null)\r\n\t\t\tmDialog.loadPicture();\r\n\t\t\r\n\t}", "@Over...
[ "0.69884896", "0.68854505", "0.686691", "0.6762009", "0.66254747", "0.6573335", "0.65079045", "0.63982946", "0.631209", "0.62916356", "0.62900835", "0.62304014", "0.60511804", "0.60036457", "0.60005015", "0.5982451", "0.5950751", "0.58995867", "0.58909017", "0.5875675", "0.58...
0.68229836
3
This method will be called when the photo chat is deleted
public abstract void groupChatPhotoDeleteMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deletePressedPhoto() {\r\n if (lastPressedPhoto == null)\r\n return;\r\n\r\n int photoId = (int) lastPressedPhoto.getTag(R.integer.tag_event_photo);\r\n\r\n LinearLayout layoutPhotos = findViewById(R.id.layoutPhotos);\r\n layoutPhotos.removeView(lastPressedPhoto)...
[ "0.7439261", "0.7191768", "0.6724813", "0.66806376", "0.6666151", "0.6657971", "0.66205716", "0.66172624", "0.65369177", "0.65022004", "0.6460892", "0.64344937", "0.6419463", "0.64128315", "0.6408147", "0.63808244", "0.6353691", "0.63316596", "0.6322307", "0.6305248", "0.6281...
0.75507516
0
This method will be called when the group chat is created
public abstract void groupChatCreatedMessage(Message m);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createGroupChat(View view){\n\t\tif (!AppSharedPreference.getInstance(CreateGroupChatAutoCompleterView.this).getIsConnectedToInternet()){\n\t\t\tDialogUtils.showInternetAlertDialog(CreateGroupChatAutoCompleterView.this);\n\t\t\treturn;\n\t\t}\n\n\t\tif(selectedContactList.size()>0){\n\t\t\tnew GroupCre...
[ "0.7388495", "0.72679", "0.71403795", "0.7096065", "0.67874295", "0.67357194", "0.6669006", "0.66261286", "0.65953153", "0.65579814", "0.6390889", "0.6381874", "0.62933487", "0.6288525", "0.6284387", "0.6224685", "0.62159306", "0.6210965", "0.6193932", "0.6159957", "0.6157788...
0.8082957
0
This method will be called when the update is an inline query
public abstract void inLineQuery(InlineQuery q);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "private void handleInlineQuery (Update update){\r\n\t\ttry {\r\n\t\t\texecute(poll.convertToAnswerInlineQuery(update.getInlineQuery()));//Contestamos a la inlineQuery compartiendo la encuesta.\t\t\t\t\r\n\t\t} catch (TelegramApiException ...
[ "0.7392538", "0.68199176", "0.6676422", "0.6619778", "0.6591115", "0.6583791", "0.65415305", "0.6492434", "0.64755595", "0.6414407", "0.636012", "0.6354333", "0.6346174", "0.6346174", "0.6346174", "0.63113874", "0.630613", "0.63039386", "0.63022226", "0.63015485", "0.62982947...
0.0
-1
This method will be called when the update is a chose inline result
public abstract void chose_inline_result(ChosenInlineResult c);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void adminSelectUpdate() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void upda...
[ "0.692092", "0.6881585", "0.6675145", "0.65448225", "0.6536338", "0.6536338", "0.6536338", "0.6536184", "0.6536184", "0.647148", "0.647148", "0.6446271", "0.6444406", "0.64158916", "0.64145446", "0.64145446", "0.64145446", "0.64145446", "0.64145446", "0.6407681", "0.64026374"...
0.6413512
19
This method will be called when the update is a CallbackQuery
public abstract void callback_query(CallbackQuery cq);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n public void onDataUpdatedCb(Object response_data) {\n \n }", "public boolean onUpdate(Session s) throws CallbackException;", "protected void onUpdate() {\r\n\r\n\t}", "@Override\n\tpublic void queryUpdate() {\n\t\tneedTo...
[ "0.6828147", "0.68065834", "0.6798397", "0.6774716", "0.6743091", "0.67058605", "0.6648636", "0.6368781", "0.63290936", "0.6317029", "0.6293022", "0.624503", "0.6243657", "0.6210364", "0.6210254", "0.61758566", "0.6117246", "0.6107383", "0.61011916", "0.608531", "0.60847384",...
0.68516546
0
Use this factory method to create a new instance of this fragment using the provided parameters.
public static RecommendFragment newInstance() { RecommendFragment fragment = new RecommendFragment(); 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.7259323", "0.72325355", "0.7113618", "0.699069", "0.69899815", "0.6833516", "0.68299687", "0.6813079", "0.6800701", "0.6800411", "0.6765796", "0.67397755", "0.67397755", "0.67275816", "0.6716515", "0.6706048", "0.6691217", "0.66904765", "0.6688572", "0.66629845", "0.664517...
0.0
-1
Do not allow anyone to instantiate this class.
private Input() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Rekenhulp()\n\t{\n\t}", "private Security() { }", "priva...
[ "0.7726602", "0.75089437", "0.74832875", "0.73733336", "0.7224886", "0.71488345", "0.7148517", "0.71308804", "0.7101762", "0.70865136", "0.7035263", "0.7002591", "0.6989072", "0.6984606", "0.69613093", "0.68925965", "0.688325", "0.6865084", "0.68624866", "0.6860479", "0.68486...
0.0
-1
Prompts the user for a currency value.
public static Double nextCurrency(String prompt) { // Gets a currency value. boolean done = false; boolean exceptionCaught; Double currency = null; // To avoid compiler warning. String input; String pleaseEnterNumber, onlyTwoAfterDecimalPoint; int len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double promptForDepositAmount() {\n\n // display the prompt\n depositView.PrintAmountInCent();\n int input = keypad.getInput(); // receive input of deposit amount\n \n // check whether the user canceled or entered a valid amount\n if (input == CANCELED) {\n return CANCE...
[ "0.7029821", "0.6831283", "0.64660776", "0.63081014", "0.627407", "0.61697435", "0.6089928", "0.5964851", "0.5951553", "0.5830015", "0.58080524", "0.58031845", "0.5724962", "0.570842", "0.5705059", "0.56158453", "0.5609162", "0.55848765", "0.5562484", "0.55517036", "0.5518409...
0.59436774
9
Prompts the user for an integer value.
public static Integer nextInteger(String prompt) { // Gets an integer value. int originalLength = prompt.length(); boolean done = false; Integer i = null; String input; // Get the integer. while (!done) { input = JOptionPane.showInputDialog(promp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }", "public static int askForInt(String message){\n int value = Integer.parseInt(JOptionPane.showIn...
[ "0.7465646", "0.74337083", "0.7197336", "0.71963614", "0.71326584", "0.71278095", "0.70926243", "0.70556915", "0.70397776", "0.7036523", "0.70276046", "0.6979968", "0.68687165", "0.6859802", "0.6855085", "0.6855085", "0.6846425", "0.67876214", "0.67868257", "0.67774457", "0.6...
0.6746051
22
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.game_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } else if (id == R.id.new_game) { EventBus.getDefault().post(new FourInARowNewGame...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.7346...
0.0
-1
Handle navigation view item clicks here.
public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.Car_Bingo) { // Handle the camera action } else if (id == R.id.Four_In_A_Row) { } else if (id == R.id.Memory) { } else if (id == R.id.nav_manage) { } else if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
Act do whatever the ArcaneExplosion wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public void act(){ super.act(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act() \n {\n gravity();\n animate();\n }", "public void act() \n {\n // Add your action code here.\n MyWorld world = (MyWorld) getWorld();\n jefe = world.comprobarJefe();\n \n \n explotar();\n \n if(jefe)\n {\n ...
[ "0.71284187", "0.7096956", "0.7040751", "0.69723827", "0.6937668", "0.6928694", "0.69027984", "0.68643826", "0.6823102", "0.6728633", "0.6704605", "0.66740507", "0.6649851", "0.6614966", "0.66125923", "0.66125923", "0.6608517", "0.65760946", "0.6574539", "0.6574539", "0.65745...
0.6130688
80
Remvoe the common prefix from the logger name.
private String formatLoggerName(LogRecord record) { String loggerName = record.getLoggerName(); if(loggerName.startsWith(LOG_SOURCE_PREFIX)) { loggerName = loggerName.substring(LOG_SOURCE_PREFIX.length()); } return loggerName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String computeLoggerPrefix(String contextPath) {\n return contextPath.length() > 0 \n ? contextPath.substring(1).replace('/', '_').concat(\".\") // NOI18N\n : \"ROOT.\"; // NOI18N\n }", "private String getLoggerName(LoggingEvent event) {\n int index...
[ "0.65309715", "0.6328455", "0.59323573", "0.58980435", "0.57913905", "0.5747886", "0.5663826", "0.56182253", "0.5443037", "0.5441409", "0.5414656", "0.5404841", "0.5378442", "0.5366293", "0.53560376", "0.5347273", "0.5343744", "0.53425485", "0.53369087", "0.532808", "0.532532...
0.68411523
0