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
Divide // return new Vector2
public static Vector2 DivideScalar(Vector2 a, float scalar){ return new Vector2(a.x / scalar, a.y / scalar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Vector2 GetUnitVector(Vector2 vector2){\n float length = vector2.Length();\n return new Vector2(vector2.x / length, vector2.y / length);\n }", "public Vector normalize ( );", "private static Point2D getUnitVector(Point2D p1, Point2D p2) {\r\n\t\tPoint2D paux = new Point2D.Double(...
[ "0.6939456", "0.6863585", "0.6774083", "0.67529416", "0.6657245", "0.65993524", "0.65399796", "0.6528436", "0.6525542", "0.65252256", "0.64996135", "0.6494992", "0.64885867", "0.6482732", "0.6463934", "0.6444246", "0.6432625", "0.6425239", "0.64242023", "0.64200515", "0.64092...
0.642315
19
Get Unit Vector // return new Vector2
public static Vector2 GetUnitVector(Vector2 vector2){ float length = vector2.Length(); return new Vector2(vector2.x / length, vector2.y / length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector2D unitVector()\n {\n if (this.getR() != 0)\n return new Vector2D(this.x / this.getR(), this.y / this.getR());\n return new Vector2D(0, 0);\n }", "public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0...
[ "0.79897064", "0.7681566", "0.7579972", "0.74953663", "0.7459637", "0.7334993", "0.7277045", "0.724486", "0.713515", "0.6921156", "0.68706656", "0.6857013", "0.6790272", "0.6764988", "0.66939396", "0.6659498", "0.6656959", "0.6654631", "0.65993845", "0.6581714", "0.6568747", ...
0.82627475
0
up is (0, 1), not (0 , 1)
public static Vector2 GetUp(){ return new Vector2(0, -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer checkUp()\r\n\t{\r\n\t\treturn this.Y - 1;\r\n\t}", "public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private int up(int row, int column, char check, char[][] upBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\t// checks if requesting point off boar...
[ "0.6769549", "0.6698433", "0.6581744", "0.65283114", "0.6487962", "0.6367284", "0.6352743", "0.62609863", "0.6248195", "0.6206082", "0.62012243", "0.61292666", "0.60866326", "0.6046999", "0.6016258", "0.60158557", "0.59841233", "0.596994", "0.5967546", "0.5965148", "0.5958405...
0.6383254
5
Interface to interact with calling activity
public interface GeocoderTaskActions { public void taskCompletionResult(List<Address> result); public void taskInterrupted(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doActivity();", "private void openActivity() {\n }", "public interface ActivityLauncher {\r\n\r\n\tpublic void launchActivity();\r\n\r\n\tpublic void finishCurrentActivity();\r\n\r\n}", "Activity activity();", "public interface MeetingsActivityView {\n void startMainActivity();\n\n void start...
[ "0.7345038", "0.69400203", "0.68950593", "0.67143404", "0.6542694", "0.65003085", "0.6498962", "0.64194953", "0.641637", "0.64028794", "0.6343914", "0.63232905", "0.62874985", "0.6272951", "0.6258887", "0.6250779", "0.6241294", "0.6227644", "0.62198627", "0.6215162", "0.61994...
0.0
-1
For returning a Service now instance equipped with the BaseURL
public static Retrofit serviceNowApi() { return new Retrofit.Builder() .baseUrl(BuildConfig.BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Service newService();", "Object getService(String serviceName);", "public Object getService(String serviceName);", "@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}", "private Service getService() {\n return service;\n }", "IHttpService getHttpService();"...
[ "0.661813", "0.6563616", "0.6508811", "0.64455914", "0.6400953", "0.63834494", "0.624995", "0.6239407", "0.6239407", "0.6239407", "0.62262213", "0.6222273", "0.6219967", "0.6181478", "0.6180793", "0.615532", "0.61509615", "0.61509615", "0.61509615", "0.6134541", "0.6131124", ...
0.58724564
50
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { userPref = getActivity().getSharedPreferences("user", getActivity().MODE_PRIVATE); userEditor = userPref.edit(); return inflater.inflate(R.layout.fragment_profile, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ todo: Konsolen ausgabe deaktiviert zur uebersicht printUI(); if (controller.checkWin()) message("GAME OVER");
@Override public void update(Event e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "public void displayWin()\n {\n if(player1 instanceof GameController){\n player1.gameOver(1);\n } else {\n player2.gameOver(1);\n ...
[ "0.7794028", "0.7626926", "0.73866755", "0.73519444", "0.72608453", "0.7223404", "0.721694", "0.7204977", "0.71079254", "0.70707494", "0.7058773", "0.70384413", "0.70251274", "0.6998696", "0.69581556", "0.6922949", "0.6916349", "0.6886415", "0.6877372", "0.6877372", "0.684246...
0.0
-1
Contructor Human contrains parameters name and age
public Human(String name, int age) { this.name = name; this.age = age; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Human(String name, int age) {\n this.name = name;\n this.age = age;\n }", "public Human(String name,int age, int height){\n //set this object's name with the provided name\n this.name = name;\n //set this object's age with the provided age\n this.age = age;\n ...
[ "0.9051221", "0.86389625", "0.79164517", "0.78725934", "0.78124213", "0.7687129", "0.75261545", "0.7517717", "0.7441079", "0.72523916", "0.7222421", "0.71866596", "0.71788436", "0.71769404", "0.716119", "0.71454793", "0.70932794", "0.7052691", "0.70282024", "0.7007494", "0.69...
0.8737803
1
Method that returns the name of a human
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.Strin...
[ "0.74258715", "0.74258715", "0.74258715", "0.74258715", "0.74258715", "0.74258715", "0.73841774", "0.73841774", "0.73841774", "0.73841774", "0.73841774", "0.73841774", "0.7293244", "0.72775435", "0.72775435", "0.7211891", "0.7204481", "0.7163046", "0.7163046", "0.7163046", "0...
0.0
-1
This method sets the name to a human
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName( String name )\n {\n this.name = name.toLowerCase( Locale.ENGLISH );\n }", "void setName(String name_);", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name...
[ "0.73700374", "0.732154", "0.72355574", "0.72355574", "0.72355574", "0.72355574", "0.7235464", "0.7235464", "0.7235464", "0.72283494", "0.72283494", "0.72283494", "0.72198516", "0.72018534", "0.7191426", "0.7177199", "0.71429044", "0.71248096", "0.7121348", "0.71184015", "0.7...
0.0
-1
Method that returns the age of a human
public int getAge() { return age; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAge()\r\n\t{\r\n\t\tint age = calculateAge();\r\n\t\treturn age;\r\n\t}", "public int age() {\n int age = 0;\n /*MyDate currentDate = new MyDate(\n (Calendar.getInstance().get(Calendar.DATE)),\n (Calendar.getInstance().get(Calendar.MONTH) + 1),\n (Cale...
[ "0.79220784", "0.7854981", "0.76470643", "0.76470643", "0.76470643", "0.76236755", "0.7556252", "0.7556252", "0.7556252", "0.7552489", "0.7552489", "0.7552489", "0.75260967", "0.7524736", "0.75066537", "0.75038534", "0.7489614", "0.7485094", "0.748153", "0.747728", "0.7463653...
0.7597596
7
This method sets the age to a human
public void setAge(int age) { this.age = age; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAge(Age age) {\n this.age = age;\n }", "protected void setAge(int age) {\r\n\t\tthis.age = age;\r\n\t}", "public void setAge(double age) {\r\n\t\tif (age <= 2) setAge(age * 10.5);\r\n\t\telse setAge(21 + (4 * (age - 2)));\r\n\t}", "public void setAge(int age) { \n\t\t this.age = a...
[ "0.76375866", "0.7636725", "0.7559977", "0.7483401", "0.7465797", "0.74573267", "0.74560153", "0.74507105", "0.74507105", "0.74507105", "0.74507105", "0.74507105", "0.74507105", "0.74304974", "0.74304974", "0.74304974", "0.74304974", "0.7429915", "0.74284786", "0.7419098", "0...
0.7398662
29
Instantiates a new Home controller.
@Autowired public HomeController(final CarMakeProvider carMakeProvider) { this.carMakeProvider = carMakeProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HomeController() {\n }", "public HomeController() {\n }", "public HomeController(Application application){\r\n mApplication = application;\r\n homeRepositories = new HomeRepositories(mApplication);\r\n }", "public HomePage() {\n }", "public Home() {\n initComponents(...
[ "0.7854325", "0.7854325", "0.6998011", "0.6711297", "0.6530583", "0.65003324", "0.645592", "0.64502734", "0.64502734", "0.64502734", "0.64502734", "0.6438509", "0.6434636", "0.6392471", "0.6376172", "0.6370583", "0.6361434", "0.63402146", "0.63383937", "0.63143474", "0.630498...
0.5905306
56
Home page. Contains form with filters to find car sale advertisement ListCarMakes provides list car makes to choose.
@GetMapping("/homePage") public String homePage(final Model model) { LOGGER.debug("method homePage was invoked"); model.addAttribute("listCarMakes", carMakeProvider.getCarMakes()); return "homepage"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/carnetshtml\")\n\t/*public String getAll(Model model) {\n\t\tmodel.addAttribute(\"liste\", listeCarnets); // ajoute la liste créer en ArrayList\n\t\t return\"pages/carnets\"; // retourne un string, mais on ne veut pas ca*/\n\t\n\tpublic ModelAndView getAll() {\n\t\tModelAndView mav = new ModelAndVie...
[ "0.60954005", "0.5945621", "0.591501", "0.58160937", "0.5737499", "0.5696684", "0.5685817", "0.56211555", "0.55760044", "0.55714864", "0.5557776", "0.55539745", "0.5539132", "0.55182964", "0.5488758", "0.5457639", "0.54534066", "0.54397106", "0.5432537", "0.54241025", "0.5415...
0.608779
1
Click the button as on the remote control
default public void remoteControlAction(RemoteControlKeyword controlKeyword) { ((JavascriptExecutor) getDriver()).executeScript("mobile: pressButton", ImmutableMap.of("name", controlKeyword.getControlKeyword())); RC_LOGGER.info(String.format("TV OS RemoteController '%s' clicked", controlKeyword.name())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnVSPNButton() {\n if(VSPNButton.isDisplayed()) {\n\t\twaitAndClick(VSPNButton);\n\t}\n }", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void clickOnVINButton() {\n ...
[ "0.73294765", "0.70808417", "0.7022916", "0.6995186", "0.6956488", "0.69543445", "0.6817454", "0.67610973", "0.6756676", "0.67366236", "0.6711174", "0.6669897", "0.66567534", "0.6649661", "0.6590939", "0.6530521", "0.65012854", "0.64880604", "0.64817417", "0.6478651", "0.6435...
0.68919253
6
Click the 'Home' button as on the remote control
default public void clickHome() { remoteControlAction(RemoteControlKeyword.HOME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void backToHome(){\n logger.debug(\"click on Back to Home button\");\n driver.findElement(oBackToHome).click();\n }", "public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n }", "public void clickOnHome() {\n\t\twait.waitForStableDom(2...
[ "0.7363009", "0.7278632", "0.7229199", "0.7180665", "0.7107073", "0.70951134", "0.7019769", "0.6994829", "0.69135845", "0.689393", "0.6843063", "0.6821891", "0.6767136", "0.6603725", "0.66003513", "0.65800595", "0.6579018", "0.65165514", "0.6471776", "0.63938284", "0.6386474"...
0.8987736
0
Click the 'Left' button as on the remote control
default public void clickLeft() { remoteControlAction(RemoteControlKeyword.LEFT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}", "default public void clickRight() {\n\t\tremoteControlAction(RemoteControlKeyword.RIGHT);\n\t}", "default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}", "public void click() {\n\t\tSystem.out.println(\"LinuxButto...
[ "0.7426283", "0.7358129", "0.6714519", "0.6616435", "0.6523688", "0.650659", "0.64922047", "0.64922047", "0.64447445", "0.64429796", "0.63560754", "0.6296138", "0.6254901", "0.6208882", "0.6201648", "0.6137693", "0.61226124", "0.6118738", "0.61141056", "0.61042184", "0.607479...
0.87388265
0
Click the 'Right' button as on the remote control
default public void clickRight() { remoteControlAction(RemoteControlKeyword.RIGHT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default public void clickLeft() {\n\t\tremoteControlAction(RemoteControlKeyword.LEFT);\n\t}", "@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}", "@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}", "public void clickTopRightSignintext()\n\t{\n\t\tdriver.findElement(_regflowTopRightSignintext)...
[ "0.75995106", "0.7269432", "0.7269432", "0.69605905", "0.67104334", "0.66792053", "0.66553205", "0.664704", "0.6632112", "0.6630625", "0.6593086", "0.6559818", "0.6503626", "0.6483315", "0.64627427", "0.6363752", "0.6330812", "0.616604", "0.613064", "0.6123762", "0.61120856",...
0.8612857
0
Click the 'Up' button as on the remote control
default public void clickUp() { remoteControlAction(RemoteControlKeyword.UP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pressUpFromCLI() {\n\t\tupLastPressed = true;\n\t\tif (commandIterator.hasNext()) {\n\t\t\ttextInput.setText(commandIterator.next());\n\t\t}\n\t\tif (downLastPressed) {\n\t\t\ttextInput.setText(commandIterator.next());\n\t\t\tdownLastPressed = false;\n\t\t}\n\t}", "default public void clickDown() {\...
[ "0.74207175", "0.72085685", "0.7165025", "0.687161", "0.67969954", "0.67969954", "0.6774461", "0.6742143", "0.6688487", "0.6567454", "0.64642763", "0.64463264", "0.6421515", "0.64036715", "0.63974196", "0.6390401", "0.6335497", "0.6314717", "0.6304088", "0.62999135", "0.62999...
0.8964801
0
Click the 'Down' button as on the remote control
default public void clickDown() { remoteControlAction(RemoteControlKeyword.DOWN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default public void clickUp() {\n\t\tremoteControlAction(RemoteControlKeyword.UP);\n\t}", "protected abstract boolean down(int button);", "public void downPressed() {\n System.out.println(\"downPressed()\");\n current.translate(1, 0);\n display.showBlocks();\n }", "public void downPre...
[ "0.77478343", "0.6948986", "0.682274", "0.6779026", "0.67154145", "0.66977286", "0.66475415", "0.6607887", "0.65319556", "0.6517366", "0.63773525", "0.63700163", "0.6369084", "0.6366728", "0.6366728", "0.6250203", "0.61131036", "0.6052025", "0.6036102", "0.60226345", "0.60180...
0.87512475
0
Click the 'Menu' button as on the remote control
default public void clickMenu() { remoteControlAction(RemoteControlKeyword.MENU); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickMenuButton(){\n waitForClickable(menuHeaderIcon);\n driver.findElement(menuHeaderIcon).click();\n }", "void clickAmFromMenu();", "public void click_dashboardMenu_button() {\n\t\tdashboardMenu.click();\n\t}", "public void clickOnMenu() {\n\t\tgetAndroidmenubtn().isPresent();\...
[ "0.7449122", "0.73961645", "0.73123854", "0.7240547", "0.7203043", "0.7191348", "0.70698017", "0.6858555", "0.68359", "0.6780067", "0.6703065", "0.65761465", "0.65736556", "0.6546905", "0.65312886", "0.65091324", "0.64869624", "0.6483514", "0.6445926", "0.64178336", "0.639295...
0.8748031
0
Click the 'Back' button as on the remote control
default public void clickBack() { clickMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}", "private void backButton() {\n navigate.goPrev(this.getC...
[ "0.8326437", "0.8250036", "0.8084232", "0.78387177", "0.7815197", "0.7668123", "0.76065814", "0.75076675", "0.7504938", "0.7498202", "0.74953794", "0.7465785", "0.7431185", "0.74162036", "0.736533", "0.7344607", "0.7295485", "0.72879595", "0.7274139", "0.7233642", "0.71793723...
0.7715024
5
Click the 'Select' button as on the remote control
default public void clickSelect() { remoteControlAction(RemoteControlKeyword.SELECT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnVehicleNameDropdownButton() {\r\n\t\tsafeClick(vehicleLinkPath.replace(\"ant-card-head-title\", \"ant-select ant-select-enabled\"), MEDIUMWAIT);\r\n\t}", "public void select() {\n checkboxElement.click();\n }", "private void helperSwitchSelectOn()\r\n\t{\r\n\t\tImageIcon iconButton = For...
[ "0.6786479", "0.6640706", "0.66183424", "0.6501437", "0.6499286", "0.6427756", "0.6389893", "0.63310117", "0.63309646", "0.6330291", "0.6290041", "0.6277965", "0.62362176", "0.6225355", "0.6193478", "0.6165449", "0.61492515", "0.6146534", "0.61456317", "0.6126144", "0.6125516...
0.85324985
0
Click the 'Play/pause' button as on the remote control
default public void clickPlay() { remoteControlAction(RemoteControlKeyword.PLAY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void togglePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.TOGGLE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "private void setPlayButtonToPause() {\n NowPlayingInformation.setPlayButtonStatus(1);\n ...
[ "0.7410999", "0.7292788", "0.7220501", "0.71976566", "0.7189067", "0.70433295", "0.69032747", "0.6903034", "0.68425155", "0.6841674", "0.6785653", "0.67509705", "0.6690713", "0.6680498", "0.6630373", "0.658577", "0.6584852", "0.65644443", "0.65614176", "0.65548104", "0.654101...
0.83747196
0
construct an empty deque
public Deque() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Deque() {\n size = 0;\n first = null;\n last = null;\n }", "public Deque() {\n resetDeque();\n }", "public Deque() {\n first = null;\n last = null;\n len = 0;\n }", "public ArrayDeque() {\n myQ = (T[]) new Object[IDeque.MAX_LENGTH];\n ...
[ "0.7598663", "0.7573738", "0.7542433", "0.74479204", "0.74461347", "0.744521", "0.7432987", "0.74019843", "0.7381615", "0.7371903", "0.736806", "0.7356306", "0.73232234", "0.7276065", "0.7262491", "0.7168991", "0.7168991", "0.70985764", "0.70910513", "0.70799613", "0.70617867...
0.76667625
0
is the deque empty?
public boolean isEmpty() { return first == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() { return (dequeSize == 0); }", "public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}", "boolean isEmpty()\n\t{\n\t\treturn front==-1;\n\t}", "boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() \n {\n\treturn queue.size() == 0;\n }", "b...
[ "0.86400646", "0.7800625", "0.7682804", "0.76651835", "0.76222736", "0.7608162", "0.7595055", "0.7572813", "0.75324225", "0.7528037", "0.75213253", "0.75065756", "0.75065756", "0.7497441", "0.7493133", "0.7448971", "0.74330163", "0.74330163", "0.7432061", "0.7426376", "0.7415...
0.0
-1
return the number of items on the deque
public int size() { return this.size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() { return dequeSize; }", "public int size() {\n\t\t//Because we're the only consumer, we know nothing will be removed while\n\t\t//we're computing the size, so we know there are at least (rear - front)\n\t\t//elements already added.\n\t\treturn (int)(rear.get() - front.get());\n\t}", "public i...
[ "0.77459365", "0.7660299", "0.75504273", "0.7480658", "0.7400839", "0.73807436", "0.73256725", "0.7317093", "0.73169917", "0.72728413", "0.7254625", "0.7249976", "0.72341144", "0.7224791", "0.72035813", "0.7194387", "0.716089", "0.7157015", "0.7154945", "0.7154945", "0.713490...
0.0
-1
add the item to the front
public void addFirst(Item item) { if (item == null) { throw new IllegalArgumentException(); } this.first = new Node(item, this.first, null); if (this.size == 0) { this.last = this.first; } else { this.first.next.prev = this.first; } this.size++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFront(E item) {\r\n\t\tNode<E> node = new Node<E>(item, first);\r\n\t\tif(isEmpty())\r\n\t\t\tfirst = last = node;//it would be the first node so it would be first and last\r\n\t\telse {\r\n\t\t\tfirst = node;//creates a new node and puts it in the 1st position\r\n\t\t}\r\n\t}", "public void pushF...
[ "0.7545115", "0.734564", "0.716254", "0.71477896", "0.7058661", "0.6929179", "0.6906867", "0.6861979", "0.6817409", "0.6804744", "0.6803967", "0.67784566", "0.67276895", "0.6723167", "0.67010933", "0.66882455", "0.66642934", "0.6660615", "0.66572195", "0.66299736", "0.6624024...
0.0
-1
add the item to the back
public void addLast(Item item) { if (item == null) { throw new IllegalArgumentException(); } if (this.size == 0) { addFirst(item); } else { this.last.next = new Node(item, null, this.last); this.last = this.last.next; this.size++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pushBack (O o)\r\n {\r\n //create new VectorItem\r\n VectorItem<O> vi = new VectorItem<O> (o,last, null);\r\n if (isEmpty()) \r\n {\r\n last = vi;\r\n first = vi;\r\n }\r\n else \r\n {\r\n last.setNext(vi);\r\n ...
[ "0.6808673", "0.67139083", "0.6646266", "0.6575679", "0.65149784", "0.6497531", "0.6479731", "0.6468467", "0.64445233", "0.64111775", "0.6396748", "0.6356855", "0.62956", "0.6277961", "0.6238132", "0.6230934", "0.62210673", "0.6182991", "0.6141744", "0.61137706", "0.60972977"...
0.0
-1
remove and return the item from the front
public Item removeFirst() { if (isEmpty()) { throw new NoSuchElementException(); } Node oldFirst = this.first; this.first = oldFirst.next; this.size--; if (this.size != 0) { this.first.prev = null; } else { this.last = null; } return oldFirst.item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public L removeFromFront(){\n\t\tif(isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty\");\n\n\t\tL removedItem = (L) firstNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif(firstNode == lastNode)\n\t\tfir...
[ "0.7883357", "0.7865078", "0.7686264", "0.7592321", "0.75910217", "0.75425607", "0.7415091", "0.73397964", "0.7328858", "0.7315592", "0.7303898", "0.730209", "0.72899884", "0.7261162", "0.7242955", "0.7236106", "0.7184411", "0.71836567", "0.71794116", "0.7129657", "0.7084265"...
0.6852133
47
remove and return the item from the back
public Item removeLast() { if (isEmpty()) { throw new NoSuchElementException(); } Node oldLast = this.last; this.last = this.last.prev; this.size--; if (this.size != 0) { this.last.next = null; } else { this.first = null; } return oldLast.item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item deleteBack() {\n items[size - 1] = null;\n size -= size;\n Item itemToReturn = getBack();\n \n return itemToReturn;\n }", "public L removeFromBack(){\n\t\tif (isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" ...
[ "0.78660935", "0.752806", "0.7327153", "0.7251818", "0.71612227", "0.7116888", "0.7074465", "0.7073037", "0.70555705", "0.70022535", "0.69769573", "0.6964019", "0.6922396", "0.6887851", "0.68793887", "0.6871217", "0.6861452", "0.68401635", "0.68337184", "0.6828537", "0.682110...
0.0
-1
return an iterator over items in order from front to back
public Iterator<Item> iterator() { return new DequeIterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator<E> iterator() {\n\t\tfinal int begin = (int)(front.get() % elements.length()), end = (int)(rear.get() % elements.length());\n\t\treturn new Iterator<E>() {\n\t\t\tprivate int i = begin;\n\t\t\tprivate boolean removed = false;\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn i < en...
[ "0.68995845", "0.65063006", "0.64528465", "0.64100647", "0.63944066", "0.6343827", "0.63150185", "0.62972474", "0.62762535", "0.62723637", "0.6267705", "0.62305", "0.6210183", "0.6202835", "0.6169305", "0.6169305", "0.61653775", "0.61621433", "0.61525697", "0.61148816", "0.61...
0.57971764
77
Check response to null input
@Test public void testNullInputPerturbDataSet() throws Exception { int[] result = NoiseGenerator.perturbDataSet(null, 2); Assert.assertTrue(result == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean validateResponseNoResult ( ResponseWSDTO pResponse ) {\r\n if ( pResponse != null && pResponse.getCode() != null && !pResponse.getCode().isEmpty() && pResponse.getCode() != null && !pResponse.getCode().isEmpty()\r\n && pResponse.getCode().equals( ConstantCommon.WSResponse.CODE_ZERO...
[ "0.67430055", "0.64277077", "0.6348968", "0.6265811", "0.61624074", "0.6104695", "0.60997295", "0.607226", "0.60686636", "0.60570014", "0.60344857", "0.60155135", "0.6013421", "0.5970874", "0.59667975", "0.59647804", "0.5956085", "0.59502107", "0.59471613", "0.5924947", "0.59...
0.0
-1
Check response to invalid scaling factor value
@Test public void testInvalidScalingPerturbDataSet() throws Exception { int[] result = NoiseGenerator.perturbDataSet(dataSet, -1); Assert.assertTrue(result == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkResponse(int scaleResponse) {\r\n return scaleResponse>=minScale && scaleResponse<=maxScale;\r\n }", "int getWrongScale();", "protected void validate() {\n Preconditions.checkArgument(\n dim > 0,\n \"Cannot compute scale along dim =...
[ "0.6700321", "0.6289951", "0.5999986", "0.5982069", "0.57880384", "0.5703514", "0.5679313", "0.56190974", "0.55919474", "0.5583732", "0.55794376", "0.55335546", "0.5523936", "0.5450416", "0.5429126", "0.54260564", "0.54041344", "0.5307113", "0.5300215", "0.5291885", "0.528380...
0.5840492
4
Test invalid size of return elements
@Test public void testSizeRandomBinaryData() throws Exception { /* Test with valid value */ int[] result = NoiseGenerator.randomBinaryData(5,0.50); Assert.assertFalse(result == null); /* Test with invalid value */ result = NoiseGenerator.randomBinaryData(-1,0.50); Assert.assertTrue(result == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int noValueSize() {\r\n return itemSize(false) * 2;\r\n }", "private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }", "private void arraySize(M...
[ "0.69070834", "0.6742952", "0.6562072", "0.65593207", "0.65451723", "0.65334284", "0.65334284", "0.65334284", "0.65334284", "0.6526843", "0.648373", "0.647356", "0.6390341", "0.63750136", "0.63722897", "0.63635486", "0.633843", "0.6319057", "0.6310707", "0.6272065", "0.625573...
0.0
-1
Test with invalid probability i.e. > 0.0
@Test public void testProbInputBinaryData() throws Exception { /* Test with valid value */ int[] result = NoiseGenerator.randomBinaryData(5,0.5); Assert.assertFalse(result == null); /* Test with invalid value */ result = NoiseGenerator.randomBinaryData(5,-0.1); Assert.assertTrue(result == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMissChance();", "public static boolean shouldNull(final double probability) {\n if (probability > 100 || probability < 0)\n throw new IllegalArgumentException(\n \"probParam must be between 0 and 100 found \" + probability);\n return RandomUtils.nextDouble(0, 100) <= probability;\n ...
[ "0.6942401", "0.69386804", "0.68977356", "0.6781776", "0.6693125", "0.65837145", "0.64869446", "0.6483652", "0.64259297", "0.6374286", "0.6359429", "0.63564605", "0.63534665", "0.6334167", "0.6302762", "0.6286177", "0.6286177", "0.6216188", "0.61579865", "0.6150972", "0.61380...
0.6350534
13
Test with invalid prob value <1.0
@Test public void testPropEdgeCaseBinaryData() throws Exception { /* Test with value greater than p = 1.0 */ int[] result = NoiseGenerator.randomBinaryData(10,1.10); Assert.assertTrue(result == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProbOfFailure(int prob) {\n \tif( prob <= 100 || prob >= 0){\n \t\tthis.probOfFailure = prob;\n \t}\n }", "public void setFailureProb(float failprob)\n {\n this.failprob = failprob;\n }", "double getMissChance();", "@Test\n\tpublic void priorsAreReasonable() {\n\t\tdoubl...
[ "0.7073309", "0.6719641", "0.65462035", "0.65431744", "0.6515432", "0.63385546", "0.6289773", "0.6283158", "0.626052", "0.61800534", "0.6172219", "0.61640406", "0.6131745", "0.61131686", "0.60974115", "0.6078857", "0.60776144", "0.6034122", "0.60326356", "0.60256", "0.6008679...
0.0
-1
Constructs a new RaiseToSwitch command.
public RaiseToScale() { super("RaiseToScale", kP, kI, kD); requires(this.elevator = Elevator.getInstance()); requires(this.intake = Intake.getInstance()); this.getPIDController().setOutputRange(-RobotMap.ELEVATOR_SPEED, RobotMap.ELEVATOR_SPEED); setInterruptible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExitCommand() {\n }", "public LookUpSwitchInstruction() {}", "public RedoCommand() {\n }", "public PowerUpASICCommand()\n\t{\n\t\tsuper();\n\t\tcommandString = new String(\"POWERUPASIC\");\n\t}", "public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Comm...
[ "0.5127451", "0.50586975", "0.49291328", "0.48491344", "0.48406008", "0.4836918", "0.4836918", "0.4836918", "0.4836918", "0.4836918", "0.4836918", "0.4836918", "0.4836918", "0.48309147", "0.48309147", "0.48309147", "0.48309147", "0.48309147", "0.48309147", "0.48208678", "0.47...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String s= "westbenagal-kolkata,chennai-karanataka,tamilNadu-bengaluru"; Question4_Collection examp = new Question4_Collection(); System.out.println(examp.getStates(s, ",", "-")); }
{ "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
Called on failure to give us a better chance of success next time. Of course this is probably 60s too late. And we could pick the bad ones at random again. Or remove entries that were sent and succeeded after this was sent but before this failed. But it's a start.
void clearCaches(HashPair hashPair, Lease lease, TunnelInfo inTunnel, TunnelInfo outTunnel) { if (inTunnel != null) { // if we wanted an ack, we sent our lease too leaseSetCache.remove(hashPair); } if (lease != null) { // remove only if still equal to lease (concurrent) leaseCache.remove(hashPair, lease); } if (outTunnel != null) { synchronized(tunnelCache) { TunnelInfo t = backloggedTunnelCache.get(hashPair); if (t != null && t.equals(outTunnel)) backloggedTunnelCache.remove(hashPair); t = tunnelCache.get(hashPair); if (t != null && t.equals(outTunnel)) tunnelCache.remove(hashPair); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fail() {\n mFails++;\n if(mFails > MAX_NUMBER_OF_FAILS) {\n gameOver();\n }\n }", "public void fix_gamesFailed() {\n this._gamesFailed -= 1;\n }", "public void failedChallenge() {\n addGameRound(false);\n playedRounds++;\n updateAct...
[ "0.64820516", "0.63940316", "0.6308744", "0.62876296", "0.5941081", "0.59218067", "0.5885851", "0.58452934", "0.58286107", "0.57988024", "0.5781895", "0.5705265", "0.5683058", "0.56607735", "0.5658207", "0.56461805", "0.5643567", "0.5626327", "0.5600848", "0.5574518", "0.5567...
0.0
-1
Clean out old leaseSets
private static void cleanLeaseSetCache(RouterContext ctx, Map<HashPair, LeaseSet> tc) { long now = ctx.clock().now(); for (Iterator<LeaseSet> iter = tc.values().iterator(); iter.hasNext(); ) { LeaseSet l = iter.next(); if (l.getEarliestLeaseDate() < now) iter.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteAllOptset() {\n this.optionSet = new ArrayList<OptionSet>();\n }", "private static void cleanLeaseCache(Map<HashPair, Lease> tc) {\n for (Iterator<Lease> iter = tc.values().iterator(); iter.hasNext(); ) {\n Lease l = iter.next();\n if (l.isExpired(Router.C...
[ "0.6507632", "0.63203114", "0.6245523", "0.61280984", "0.60965896", "0.60674715", "0.60669845", "0.6026833", "0.599778", "0.5986349", "0.59641474", "0.58400774", "0.5836648", "0.5829964", "0.5815755", "0.58042973", "0.58042973", "0.58042973", "0.58042973", "0.5795994", "0.578...
0.7203226
0
Clean out old leases
private static void cleanLeaseCache(Map<HashPair, Lease> tc) { for (Iterator<Lease> iter = tc.values().iterator(); iter.hasNext(); ) { Lease l = iter.next(); if (l.isExpired(Router.CLOCK_FUDGE_FACTOR)) iter.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "public void cleanUp(){\n for(ShaderProgram sp : shaderlist){\n sp.cleanup();\n }\n }", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n ...
[ "0.71884453", "0.6683308", "0.6651876", "0.6582544", "0.6481288", "0.64787674", "0.64427555", "0.643791", "0.6425001", "0.6406574", "0.6308119", "0.6211957", "0.62092143", "0.6205366", "0.6176362", "0.6170187", "0.6157077", "0.61083215", "0.60704887", "0.6069479", "0.60659444...
0.0
-1
Clean out old tunnels Caller must synchronize on tc.
private static void cleanTunnelCache(RouterContext ctx, Map<HashPair, TunnelInfo> tc) { for (Iterator<Map.Entry<HashPair, TunnelInfo>> iter = tc.entrySet().iterator(); iter.hasNext(); ) { Map.Entry<HashPair, TunnelInfo> entry = iter.next(); HashPair k = entry.getKey(); TunnelInfo tunnel = entry.getValue(); // This is a little sneaky, but get the _from back out of the "opaque" hash key if (!ctx.tunnelManager().isValidTunnel(k.sh, tunnel)) iter.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cleanDeadThreads()\n {\n\t\tSystem.gc();\n }", "public void cleanup() {\n try {\n resManager.stopVirtualNodes();\n } catch (Exception e) {\n logger.error(ITConstants.TS + \": \" + DEL_VM_ERR, e);\n }\n logger.info(\"Cleanup done\");\n }", "...
[ "0.65200245", "0.640784", "0.62622374", "0.6162377", "0.60773146", "0.60164446", "0.5980818", "0.5949806", "0.5900781", "0.5836235", "0.5830396", "0.583034", "0.58062613", "0.5798564", "0.5778519", "0.5761302", "0.57516086", "0.5741416", "0.57303673", "0.5728706", "0.57281816...
0.6704386
0
Clean out old reply times
private static void cleanReplyCache(RouterContext ctx, Map<HashPair, Long> tc) { long now = ctx.clock().now(); for (Iterator<Long> iter = tc.values().iterator(); iter.hasNext(); ) { Long l = iter.next(); if (l.longValue() < now - CLEAN_INTERVAL) iter.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mraiExpire() {\n for (int tDest : this.dirtyDest) {\n this.sendUpdate(tDest);\n }\n this.dirtyDest.clear();\n }", "private void clearHeartBeatRes() {\n if (rspCase_ == 5) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void removeAll(...
[ "0.6119686", "0.60213923", "0.59914225", "0.5952159", "0.59502614", "0.5942819", "0.59134424", "0.5910057", "0.59028476", "0.58658457", "0.58658457", "0.58658457", "0.58658457", "0.5860312", "0.58582467", "0.58582467", "0.58582467", "0.58479714", "0.5831954", "0.5821662", "0....
0.7353153
0
TODO: There is much more information, what to do with it? String state = information.get("State");
@Override public void updateState(Map<String, String> information) { String startTimeString = information.get("Start Time"); Date startTime = parseDate(startTimeString); // Integer smartStart = parseTime(information.get("Smart Start")); String currentProgram = information.get("Program"); // String phase = information.get("Phase"); // Integer remainingTime = parseTime(information.get("Remaining Time")); // Integer duration = parseTime(information.get("Duration")); currentState = new State(startTime, currentProgram); publishMieleState(currentState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getState() { return state; }", "String getState();", "String getState();", "String getState();", "java.lang.String getState();", "public abstract String getState();", "public String getState(){\n return state;\n }", "@Override\n public String getState()\n {\n retu...
[ "0.7904761", "0.77844423", "0.77844423", "0.77844423", "0.7782446", "0.7587346", "0.74844", "0.74717325", "0.7449445", "0.7420919", "0.7420919", "0.74186873", "0.74186873", "0.7379931", "0.73480314", "0.7326802", "0.7326802", "0.7326802", "0.7326802", "0.7326802", "0.7326802"...
0.6823464
75
Creates new form PopulationGrowth
public PopulationGrowth() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void grow() {\n\t\tif (_growthRatio > 1 && (_age & 0x07) == 0x07 && alive && _energy >= _mass/10) {\n\t\t\t_growthRatio--;\n\t\t\tdouble m = _mass;\n\t\t\tdouble I = _I;\n\t\t\tsymmetric();\n\t\t\t// Cynetic energy is constant. If mass changes, speed must also change.\n\t\t\tm = FastMath.sqrt(m/_mass);\n\t...
[ "0.6221424", "0.5967338", "0.5747663", "0.5717889", "0.566557", "0.5610252", "0.5522731", "0.5389406", "0.53505474", "0.53408134", "0.53404325", "0.53274685", "0.5311303", "0.529303", "0.5272727", "0.52717817", "0.5250535", "0.5220153", "0.5195308", "0.5161532", "0.515629", ...
0.7565042
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { title = new javax.swing.JPanel(); startingpoptxt = new javax.swing.JLabel(); popgrowthpercenttxt = new javax.swing.JLabel(); dayspopulatedtext = new javax.swing.JLabel(); startingpop = new javax.swing.JTextField(); popgrowthpercent = new javax.swing.JTextField(); dayspopulated = new javax.swing.JTextField(); populatebutton = new javax.swing.JButton(); populationcounttxt = new javax.swing.JLabel(); populationcount = new javax.swing.JTextField(); percentsign = new javax.swing.JLabel(); exitbutton = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); title.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Population Growth Calculator", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Adobe Arabic", 1, 18), java.awt.Color.blue)); // NOI18N startingpoptxt.setText("Starting Population (minimum 2) :"); popgrowthpercenttxt.setText("Daily population growth percentage:"); dayspopulatedtext.setText("Days allowed to populate:"); populatebutton.setText("Let 'em Populate!"); populatebutton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { populatebuttonActionPerformed(evt); } }); populationcounttxt.setText("Population count:"); percentsign.setText("%"); javax.swing.GroupLayout titleLayout = new javax.swing.GroupLayout(title); title.setLayout(titleLayout); titleLayout.setHorizontalGroup( titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(titleLayout.createSequentialGroup() .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(populatebutton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(titleLayout.createSequentialGroup() .addContainerGap() .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(titleLayout.createSequentialGroup() .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(titleLayout.createSequentialGroup() .addComponent(dayspopulatedtext) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(dayspopulated, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(titleLayout.createSequentialGroup() .addComponent(popgrowthpercenttxt) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(popgrowthpercent, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(titleLayout.createSequentialGroup() .addComponent(startingpoptxt) .addGap(38, 38, 38) .addComponent(startingpop, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(percentsign) .addGap(0, 22, Short.MAX_VALUE)) .addGroup(titleLayout.createSequentialGroup() .addComponent(populationcounttxt) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(populationcount, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(59, 59, 59))))) .addContainerGap()) ); titleLayout.setVerticalGroup( titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(titleLayout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(startingpoptxt) .addComponent(startingpop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(popgrowthpercenttxt) .addComponent(popgrowthpercent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(percentsign)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(dayspopulatedtext) .addComponent(dayspopulated, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(populatebutton, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(titleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(populationcounttxt) .addComponent(populationcount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(18, Short.MAX_VALUE)) ); exitbutton.setText("EXIT"); exitbutton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitbuttonActionPerformed(evt); } }); jButton2.setText("CLEAR"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(layout.createSequentialGroup() .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(exitbutton)) .addComponent(title, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(56, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(title, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(exitbutton) .addComponent(jButton2)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.69455...
0.0
-1
To prevent someone from accidentally instantiating the contract class, make the constructor private.
private DatabaseContract() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Contract() {\n }", "private StoneContract() {\n }", "private BookMasterContract() {\n }", "public ContractMethod() {\n }", "private DishContract() {\n }", "private CatalogContract() {}", "private ProjectContract() {\n }", "private BookContract() {}", "private TMDBContract(...
[ "0.8854432", "0.83715004", "0.81581575", "0.8156208", "0.8140227", "0.8059904", "0.80594116", "0.8021256", "0.79982173", "0.79760444", "0.79760444", "0.7960149", "0.79027", "0.7816072", "0.7811579", "0.78007317", "0.7798251", "0.7783824", "0.7757424", "0.7757424", "0.77076715...
0.7714849
20
list of getters and setters
public short getNumCode() { return numCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public Set<ObjectLabel> getGetters() {\n if (getters == null)\n return Collections.emptySet();\n ...
[ "0.7186322", "0.68939286", "0.65084696", "0.64808196", "0.6369002", "0.63605475", "0.6145899", "0.5933842", "0.5907454", "0.5886128", "0.5787355", "0.57831025", "0.57704735", "0.57644105", "0.57586676", "0.5741653", "0.573759", "0.5735588", "0.5735588", "0.57149273", "0.57129...
0.0
-1
Since ISO year is defined only if ISO week number is defined we assume that getISOWeekNumber checks that they are defined for this calendar.
public final int getISOYear() { final int W = getISOWeekNumber(); if ((W > 50) && (getMonth() == 1)) { return (getYear() - 1); } else if ((W < 10) && (getMonth() == 12)) { return (getYear() + 1); } else { return getYear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getISOWeekNumber()\n {\n if ( ordinal < Jan_01_Leap100RuleYear ) return 0;\n int jan04Ordinal = jan01OfYear(yyyy) + 3;\n int jan04DayOfWeek = (jan04Ordinal + MondayIsZeroAdjustment - MIN_ORDINAL) % 7; // 0=Monday 6=Sunday\n int week1StartOrdinal = jan04Ordinal - jan04DayOf...
[ "0.66450286", "0.64164776", "0.6281223", "0.6274854", "0.6207115", "0.6162239", "0.6112778", "0.61070246", "0.6097315", "0.6088582", "0.6087497", "0.6081166", "0.60310626", "0.60222375", "0.59766597", "0.5969764", "0.59535563", "0.5947139", "0.59337354", "0.5929105", "0.59116...
0.6317548
2
Is (year, doy) a legal date in this calendar?
public boolean isDate (int year, int doy) { return ((year >= FIRST_YEAR) && (1 <= doy && doy <= getLengthOfYear (year))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final boolean ok_date (int year, int month, int day)\n {\n return ((year >= FIRST_YEAR) &&\n (1 <= month && month <= getLastMonthOfYear(year)) &&\n (1 <= day && day <= getLengthOfMonth (year, month)));\n }", "private static Boolean checkYear(){\r\n try{\r\n ...
[ "0.73199433", "0.70082545", "0.69938505", "0.69031584", "0.6845619", "0.67865026", "0.67317736", "0.6712111", "0.6704626", "0.6694838", "0.66607225", "0.66310346", "0.65969956", "0.65685225", "0.6566368", "0.64725137", "0.645952", "0.6414083", "0.64041615", "0.63956887", "0.6...
0.75933266
0
Return last month of year.
public int getLastMonthOfYear (int year) { return 12; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LocalDate getLastOfCurrentMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.lastDayOfMonth());\n\t}", "private static String getYearMonth() {\n LocalDate oneMonthAgo = LocalDate.now().minusMonths(1);\n return oneMonthAgo.getYear() + String.format(\"%02d\", oneMonthAgo.getMo...
[ "0.7003728", "0.69893336", "0.68946564", "0.68718797", "0.6646336", "0.63992506", "0.63901883", "0.6388508", "0.63872045", "0.63672644", "0.6264479", "0.6211561", "0.6205713", "0.6122242", "0.6096714", "0.60807955", "0.60688275", "0.6026085", "0.59548867", "0.5927503", "0.590...
0.7840453
0
Convert day of year to date.
protected final void doy2date (boolean isLeapYear, int year, int doy) { this.year = year; if (isLeapYear) { month = doy2month_in_leap_year[doy]; day = doy2day_in_leap_year[doy]; } else { month = doy2month_in_ordinary_year[doy]; day = doy2day_in_ordinary_year[doy]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Date getYearDate(int year) {\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, year);\n return calendar.getTime();\n }", "protected static final int date2doy\n (boolean isLeapYear, int month, int day)\n {\n return ...
[ "0.6877186", "0.6650547", "0.6491838", "0.6352368", "0.61610156", "0.61315686", "0.61127913", "0.60588115", "0.60457325", "0.60155034", "0.6014781", "0.60059977", "0.60031086", "0.59755343", "0.5968783", "0.5955168", "0.595055", "0.59501183", "0.59499836", "0.5917164", "0.590...
0.68332523
1
Is year a leap year in Gregorian calendar?
protected static final boolean is_leap_year_gregorian (int year) { // Algorithm: Kernighan & Richie, // "The C Programming Language", 1st edition (1978), p. 37. // return (year % 4 == 0 && year % 100 != 0 || year % 400 == 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean Leap_Gregorian(double year)\n {\n return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0)));\n }", "public boolean isLeapYear(){\n\t if (((this.year % 4 == 0) && (this.year % 100 != 0)) || (this.year %400 == 0))\n\t return true;\n\treturn false;\n ...
[ "0.8474977", "0.81733704", "0.8003131", "0.799812", "0.79928404", "0.7942674", "0.791824", "0.79143023", "0.79103345", "0.78910905", "0.7890062", "0.78628093", "0.78430015", "0.7817934", "0.7775342", "0.77721184", "0.7763474", "0.77359205", "0.77307665", "0.7715098", "0.76870...
0.8428624
1
Is year a leap year in Julian calendar?
protected static final boolean is_leap_year_julian (int year) { return (year % 4 == 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLeapYear(){\n\t if (((this.year % 4 == 0) && (this.year % 100 != 0)) || (this.year %400 == 0))\n\t return true;\n\treturn false;\n }", "public boolean Leap_Gregorian(double year)\n {\n return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0)));\n ...
[ "0.8011166", "0.8005503", "0.7888631", "0.78351986", "0.78098166", "0.77989876", "0.7772562", "0.77630836", "0.7757065", "0.77461773", "0.77444816", "0.7741011", "0.7732073", "0.7698661", "0.7680774", "0.7602701", "0.7592635", "0.7588369", "0.7551016", "0.7549822", "0.7539695...
0.81706345
0
Convert date to day of year.
protected static final int date2doy (boolean isLeapYear, int month, int day) { return (isLeapYear ? date2doy_in_leap_year[month][day] : date2doy_in_ordinary_year[month][day]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Integer getYear(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy\"); //EX 2016,02\r\n return new Integer(df.format(date));\r\n }", "public static int getYearByDate(Date val) {\n\t\tif (val != null) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy\");\...
[ "0.6822981", "0.662294", "0.64569306", "0.64169365", "0.6401183", "0.6226506", "0.6221361", "0.6140532", "0.6124349", "0.6109804", "0.61049485", "0.6093542", "0.60907656", "0.60841584", "0.6078564", "0.59993434", "0.59443086", "0.5928045", "0.5898101", "0.58725464", "0.585893...
0.67635286
1
Convert date to day of year.
protected static final int date2doy (boolean isLeapYear, int month, int day, int number_of_deleted_days) { return (date2doy (isLeapYear, month, day) - number_of_deleted_days); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Integer getYear(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy\"); //EX 2016,02\r\n return new Integer(df.format(date));\r\n }", "protected static final int date2doy\n (boolean isLeapYear, int month, int day)\n {\n return (isLeapYear\n ? date2do...
[ "0.6822981", "0.67635286", "0.662294", "0.64569306", "0.64169365", "0.6401183", "0.6226506", "0.6221361", "0.6140532", "0.6124349", "0.6109804", "0.61049485", "0.6093542", "0.60907656", "0.60841584", "0.6078564", "0.59993434", "0.59443086", "0.5928045", "0.5898101", "0.587254...
0.5790192
27
Return number of days in month.
protected static final int days_in_month (boolean isLeapYear, int month) { return (isLeapYear ? days_in_month_in_leap_year[month] : days_in_month_in_ordinary_year[month]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumberOfDaysInTheMonth() {\n YearMonth yearMonthObject = YearMonth.of(year, month);\n return yearMonthObject.lengthOfMonth();\n }", "public int daysInMonth() {\r\n if (month == 4 || month == 6 || month == 9 || month == 11) {\r\n return 30;\r\n } else if (month == ...
[ "0.8406665", "0.83192897", "0.81894076", "0.8115623", "0.7942722", "0.781084", "0.7395993", "0.73333496", "0.72286445", "0.7224112", "0.72180074", "0.7197553", "0.7157822", "0.7140453", "0.7006453", "0.69869447", "0.69678605", "0.6949416", "0.6874253", "0.6820291", "0.681673"...
0.7376659
7
Return true if year >= FIRST_YEAR and month is between 1 and last month of year inclusive and day is between 1 and length of month inclusive.
protected final boolean ok_date (int year, int month, int day) { return ((year >= FIRST_YEAR) && (1 <= month && month <= getLastMonthOfYear(year)) && (1 <= day && day <= getLengthOfMonth (year, month))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isValid (int yyyy, int mm, int dd)\n {\n // null date 0000 00 00 is considered valid\n // but otherwise year 0000 never happened.\n if ( yyyy == 0 ) return(mm == 0) && (dd == 0);\n if ( (yyyy < MIN_YEAR) || (yyyy > MAX_YEAR)\n || (mm < 1) || (mm > 12)\n ...
[ "0.6316971", "0.63122576", "0.6279986", "0.62091804", "0.61518604", "0.6124894", "0.6112128", "0.60899913", "0.60845494", "0.5946317", "0.58859044", "0.58257425", "0.5823895", "0.5814716", "0.5776399", "0.5760748", "0.5758092", "0.5715161", "0.5705555", "0.5700533", "0.568361...
0.7156364
0
Get ISO week number of this date, according to standard ISO 8601:1988. The standard defines the week number for Gregorian calendars only and this function should be called only on full Gregorian years. For example, Finland changed to Gregorian calendar in 1753 when 17 February 1753 was followed by 1 March 1753, and thus the ISO week number is defined in 1754 and afterwards. Algorithm is from the .
protected static final int getISOWeekNumber (int J, int year, int full) { if (year < full) { throw new IllegalArgumentException ("getISOWeekNumber: year < full"); } int d4 = (((J + 31741 - (J % 7)) % 146097) % 36524) % 1461; int L = d4 / 1460; int d1 = ((d4 - L) % 365) + L; return ((d1/7) + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getWeekNumber()\n {\n if ( ordinal < Jan_01_Leap100RuleYear ) return 0;\n int jan01 = jan01OfYear(yyyy);\n int jan01DayOfWeek = dayOfWeek(jan01); // 0=Sunday 6=Saturday\n int sundayOnOrBeforeJan01Ordinal = jan01 - jan01DayOfWeek;\n return((ordinal - sundayOnOrBeforeJa...
[ "0.6648744", "0.65048814", "0.64996725", "0.6477058", "0.64730924", "0.63746923", "0.6297155", "0.5981065", "0.5971993", "0.59582466", "0.5871935", "0.58517647", "0.5770363", "0.57498145", "0.572357", "0.5715649", "0.5707371", "0.56976265", "0.5621419", "0.557901", "0.5573162...
0.5759065
13
for inserting the 'string' in trie
static void insert(String key) { int len=key.length(); trie_node crawl=root; for(int i=0;i<len;i++) { int idx=key.charAt(i); if(crawl.child[idx]==null) crawl.child[idx]=new trie_node(); else crawl.child[idx].f++; crawl=crawl.child[idx]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(!tn.hm.containsKey(c)){\n tn = new TrieNode();\n tn.hm.p...
[ "0.7754438", "0.7692758", "0.7671828", "0.7670398", "0.76132524", "0.76062655", "0.7598675", "0.7598048", "0.75806105", "0.7574154", "0.75676566", "0.75552875", "0.7553957", "0.75505114", "0.75394607", "0.7536067", "0.752506", "0.7522883", "0.75218594", "0.7510762", "0.749848...
0.71790373
36
Getter of x value
public int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getX() { return x; }", "public int getx() {\n return x;\n }", "double getx() {\n return this.x;\n }", "public double getX(){\r\n return x;\r\n }", "public double getX() {\n return x;\r\n }", "public double getX(){\n return this.x;\n }", "p...
[ "0.8363888", "0.83582854", "0.827148", "0.8259412", "0.82441664", "0.82184803", "0.82161176", "0.82158476", "0.82115954", "0.81727517", "0.81466883", "0.81466883", "0.81466883", "0.81466883", "0.81466883", "0.81466883", "0.81466883", "0.81378734", "0.81378734", "0.81378734", ...
0.0
-1
Getter of y value
public int getY() { return y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getY() { return y; }", "public double getY() {\n return y;\r\n }", "public double getYValue(){\n return(yValue);\n }", "public double getY() {\n return y;\n }", "public double getY() {\r\n return y;\r\n }", "public double getY()\n {\n return y;\n ...
[ "0.88684535", "0.8746515", "0.87453085", "0.8730424", "0.8719836", "0.8712299", "0.87045634", "0.87045634", "0.87045634", "0.87045634", "0.87045634", "0.87043625", "0.87043625", "0.87043625", "0.8703209", "0.8698649", "0.8696054", "0.8696054", "0.8696054", "0.8696054", "0.869...
0.0
-1
Starts both the client UI and RMI server.
public static void main(String[] args) { new LockServiceClientUI(); new Thread(new Runnable() { public void run() { try { new LockServiceServer(); } catch (RemoteException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } } }).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "public void start(){\n runServerGUI();\n // new server thread object created\n ServerThread m_Server = new S...
[ "0.6958874", "0.69208574", "0.68775666", "0.6850096", "0.678366", "0.67078906", "0.6644857", "0.6611753", "0.6547907", "0.65411747", "0.6504109", "0.64988655", "0.64851433", "0.64626825", "0.64596283", "0.64488125", "0.6418072", "0.6398198", "0.63487566", "0.633115", "0.63299...
0.58659804
72
Constructor for the class
public RBTMap() { RBT = new TreeMap<K,V>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public PSRelation()\n {\n }", "public _355() {\n\n }", "public Pitonyak_09_02() {\r\n }", "private Instantiation(){}", "public Chick() {\n\t}", "public CSSTidier() {\n\t}", "public Chauf...
[ "0.8684979", "0.83157516", "0.7531155", "0.7512286", "0.7384737", "0.7306363", "0.72895694", "0.7229921", "0.71888965", "0.7186963", "0.7162534", "0.7162355", "0.71531713", "0.71493727", "0.7139213", "0.7135244", "0.71339834", "0.713029", "0.7116769", "0.70741767", "0.7068038...
0.0
-1
Tests whether the map is empty.
public boolean isEmpty() { if(RBT.size() == 0) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}", "@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }", "pub...
[ "0.8940684", "0.8930149", "0.8909432", "0.88942605", "0.88706356", "0.8868513", "0.8846116", "0.87913936", "0.87820244", "0.84880364", "0.82871026", "0.8177375", "0.80016583", "0.7900757", "0.7884539", "0.7855754", "0.78554595", "0.78492767", "0.774423", "0.763746", "0.763393...
0.0
-1
Returns the number of keyvalues pairs in the map.
public int size() { return(RBT.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer sizeOfMap() {\n\t\tMap<String, String> simpleMap = createSimpleMap(\"Key\", \"Value\");\n numberOfEntries = 10;\n\t\treturn simpleMap.size();\n\t}", "@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n ...
[ "0.81357", "0.8003258", "0.7970911", "0.7607968", "0.75806975", "0.75464064", "0.75307137", "0.7529747", "0.75242746", "0.7470363", "0.7455596", "0.74167335", "0.7390134", "0.72865075", "0.7256171", "0.7249243", "0.72481555", "0.72131056", "0.7189266", "0.71852124", "0.716553...
0.0
-1
Inserts a keyvalue pair into the red black tree map.
public void insert(K key, V value) throws KeyFoundException { if (RBT.containsKey(key)) throw new KeyFoundException(); RBT.put(key, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(Key key,Value value){\n\t\troot = insert(root,key,value);\n\t}", "public void insert(Key key, Value value){\n this.root = this.insertHelper(key, value, root);\n }", "public void insert(Key key, Value value) {\r\n root.insert(key,value);\r\n size++;\r\n }", "public v...
[ "0.74341905", "0.7394517", "0.7345232", "0.72505516", "0.7203197", "0.7152395", "0.7104616", "0.6996745", "0.69853616", "0.69720733", "0.69439334", "0.6939598", "0.6908012", "0.6908012", "0.69054526", "0.6884199", "0.6826573", "0.6791595", "0.67471397", "0.6728924", "0.670585...
0.71251804
6
Deletes the keyvalue pair with the specified key from the red black tree map
public void delete(K key) throws KeyNotFoundException { if (!RBT.containsKey(key)) throw new KeyNotFoundException(); RBT.remove(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(Object key){\n map.remove(key);\n }", "void removeEntry(K key);", "@Override\r\n\tpublic void deleteKeyValuePair(String key) {\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \")) {\r\n System.out.println(\"Invalid Key\");\r\n return;\r\n ...
[ "0.74721056", "0.7350365", "0.7281434", "0.7277816", "0.7266306", "0.72339416", "0.72128326", "0.71554923", "0.71345437", "0.71252525", "0.7114782", "0.71063817", "0.70993876", "0.70553595", "0.7034008", "0.7023273", "0.7023273", "0.7023273", "0.7022652", "0.7018702", "0.6999...
0.66445637
75
Returns the value corresponding to key.
public V search(K key) throws KeyNotFoundException { if (!RBT.containsKey(key)) throw new KeyNotFoundException(); return (V) RBT.get(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V getValue(K key);", "public V getValue(K key);", "public Value get(Key key);", "public Value get(Key key) ;", "public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V ...
[ "0.8301667", "0.8301667", "0.8164692", "0.7890435", "0.7885432", "0.7860122", "0.77411824", "0.7712158", "0.77105504", "0.7686313", "0.76855534", "0.7666627", "0.7651288", "0.7647201", "0.7631639", "0.7626154", "0.7585321", "0.75569123", "0.7549231", "0.75413716", "0.7536825"...
0.0
-1
Modifies the value corresponding to key in the red black tree map.
public void modify(K key, V value) throws KeyNotFoundException { if (!RBT.containsKey(key)) throw new KeyNotFoundException(); RBT.put(key, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void replace(K key, V value) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n if (data[hash] == null) {\r\n throw new NullPointerException(\"no such key in the HashMap\" + key);\r\n } else {\r\n No...
[ "0.6607883", "0.6580928", "0.65555537", "0.65345097", "0.6501861", "0.626944", "0.62423104", "0.6163308", "0.61595607", "0.61542624", "0.6150253", "0.611238", "0.6108813", "0.6106191", "0.60631347", "0.60543174", "0.60297394", "0.60213757", "0.6020253", "0.60164493", "0.60103...
0.6011468
20
iterator() performs an inorder traveral of the red black tree
public Iterator<K> iterator() { Set keySet = RBT.keySet(); Iterator itr = keySet.iterator(); return itr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}", "public InorderIterator() {\r\n\t\t\tinorder(); // Traverse binary tree and store elements in list\r\n\t\t}", "public void inOrderTraverseIterative();", "public InorderIterator() {\n ...
[ "0.7352673", "0.7237337", "0.7195069", "0.7193166", "0.7183534", "0.7148356", "0.7142454", "0.69447374", "0.6733115", "0.6657959", "0.6649425", "0.6635653", "0.6616606", "0.6542903", "0.6534995", "0.6492062", "0.6414074", "0.6408677", "0.64029706", "0.6382437", "0.6360636", ...
0.0
-1
Handling banned status responses
private int handleBannedResponses(final JSONArray array) throws JSONException{ if (array == null || array.length() <= 0){ return 0; } for (int v = 0; v < array.length(); v++) { String[] response = array.getString(v).split(";"); OfflinePlayer player = plugin.getServer().getOfflinePlayer(response[0]); if (player == null){ continue; } if(player.isBanned() && "u".equals(response[1])){ player.setBanned(false); // unbanning player } else if(!player.isBanned() && "b".equals(response[1])){ player.setBanned(true); // banning player } } return array.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkBanStatus() {\n if(getBanned() != null && getBanned().after(getLast_join())) {\n Date today = new Date();\n Date banDate = getBanned();\n String timeLeft = ClymeSkyblockCore.getInstance().getTimeUtil().getTimeDifference(banDate, today);\n\n Bukkit...
[ "0.6371253", "0.62374115", "0.6159147", "0.58955383", "0.5828695", "0.58129007", "0.58072215", "0.57893556", "0.57856995", "0.57535684", "0.55668646", "0.5464788", "0.54558563", "0.53771436", "0.53578806", "0.5339195", "0.53306246", "0.53169817", "0.53116393", "0.5298121", "0...
0.71908927
0
Reads .lvl file and creates Sprites
public static ArrayList<Sprite> readLevel(String currentLevel) throws IOException { ArrayList<Sprite> spriteList = new ArrayList<>(); String[] line; String text; try (BufferedReader reader = new BufferedReader(new FileReader(currentLevel))) { while((text = reader.readLine()) != null) { line = text.split(","); switch (line[0]) { case "water": spriteList.add(Tile.createWaterTile(Float.parseFloat(line[1]), Float.parseFloat(line[2]))); break; case "grass": spriteList.add(Tile.createGrassTile(Float.parseFloat(line[1]), Float.parseFloat(line[2]))); break; case "tree": spriteList.add(Tile.createTreeTile(Float.parseFloat(line[1]), Float.parseFloat(line[2]))); break; case "bus": spriteList.add(new Bus(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; case "bulldozer": spriteList.add(new Bulldozer(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; case "log": spriteList.add(new Log(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; case "longLog": spriteList.add(new LongLog(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; case "racecar": spriteList.add(new Racecar(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; case "turtle": spriteList.add(new Turtle(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; case "bike": spriteList.add(new Bike(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3]))); break; } } } return spriteList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readL...
[ "0.6901194", "0.6831201", "0.6830209", "0.6790439", "0.6788926", "0.6728472", "0.6634177", "0.64882714", "0.63989896", "0.62637347", "0.62411475", "0.61991286", "0.61969995", "0.6193565", "0.6192627", "0.61447424", "0.6134973", "0.6130661", "0.61075807", "0.6054655", "0.60459...
0.7487465
0
Picks a random Log or LongLog from the list of Sprites and returns the position of the chosen Log or LongLog in the ArrayList
public static int pickRandomLog(ArrayList<Sprite> list) { Iterator<Sprite> itr = list.iterator(); int logs = 0; while(itr.hasNext()) { Sprite sprite = itr.next(); if (sprite instanceof Log || sprite instanceof LongLog) { logs++; } } return random.nextInt(logs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Vehicle returnChosenLog(ArrayList<Sprite> list, int chosenLogNumber) {\n int n = 0;\n Vehicle spriteReturn = null;\n\n\n for (Sprite sprite: list) {\n if (sprite instanceof Log || sprite instanceof LongLog) {\n if (chosenLogNumber == n) {\n ...
[ "0.7201072", "0.674323", "0.55180573", "0.5489231", "0.53784025", "0.53735614", "0.5346182", "0.5332637", "0.53315943", "0.5314337", "0.5297194", "0.5268248", "0.5254411", "0.5246866", "0.52434254", "0.5235869", "0.5206709", "0.51755774", "0.5163141", "0.5145546", "0.51306564...
0.7942408
0
Returns a shallow copy of the chosen vehicle
public static Vehicle returnChosenLog(ArrayList<Sprite> list, int chosenLogNumber) { int n = 0; Vehicle spriteReturn = null; for (Sprite sprite: list) { if (sprite instanceof Log || sprite instanceof LongLog) { if (chosenLogNumber == n) { spriteReturn = (Vehicle)(sprite); } n++; } } return spriteReturn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object clone(){\n\t\tVehicle car;\n\t\ttry{\n\t\t\tcar = (Vehicle) super.clone();\n\t\t} catch(CloneNotSupportedException e){\n\t\t\treturn null;\n\t\t}\n\t\t\treturn car;\n\t\t}", "@Override\n public JokerVehicle clone(){\n return new JokerVehicle();\n }", "public DessertVO clone() {\r\n ...
[ "0.7348794", "0.7203808", "0.62087166", "0.61653346", "0.6122712", "0.6073202", "0.60564244", "0.60067356", "0.590277", "0.58260036", "0.58188903", "0.5818764", "0.5813841", "0.58092445", "0.5807094", "0.5774096", "0.5759272", "0.5740988", "0.5732106", "0.56913567", "0.568432...
0.0
-1
picks a random time for the extraLife to spawn
public static long randomTime() { return (random.nextInt(11) + 25)*1000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}", "private void eating(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace(...
[ "0.6825387", "0.66418403", "0.66107076", "0.6529036", "0.64902145", "0.64154273", "0.6218039", "0.62016237", "0.6168037", "0.6142473", "0.6129726", "0.61189264", "0.6074231", "0.60711104", "0.6068355", "0.60337216", "0.60288745", "0.6016777", "0.59913", "0.59891444", "0.59741...
0.68536836
0
Elemento de la vista que lanza
void onDataRetrieve(Bundle bFacebookData, String mensaje);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n ...
[ "0.67805487", "0.6509643", "0.6446748", "0.63019997", "0.63008875", "0.6293601", "0.616551", "0.61170834", "0.60731703", "0.6071164", "0.6064507", "0.60636866", "0.604661", "0.60022247", "0.5996882", "0.59714997", "0.5968245", "0.5965783", "0.5951994", "0.5943405", "0.5941093...
0.0
-1
/ compiled from: ProGuard
public interface af { void a(f fVar, View view, ad adVar); void a(f fVar, View view, w wVar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ecDSA512() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA512.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Metho...
[ "0.5694535", "0.5677474", "0.5646119", "0.5626979", "0.5617895", "0.5606381", "0.56032", "0.5595356", "0.5595356", "0.55803204", "0.55772024", "0.5573899", "0.55635905", "0.5550779", "0.55309033", "0.55202353", "0.5500356", "0.5467335", "0.54612356", "0.54006785", "0.53735375...
0.0
-1
get the condition object from the lock that you are ore locking on
private void increment() { for (int i=0; i < 10000; i++) { count++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition getCondition(String conditionName, Lock lock);", "public Lock getLock();", "public abstract ReentrantLock getLock();", "condition getConditionAllocution();", "public Lock getLock() {\n return lock;\n }", "@Override\n\tpublic Lock getLock() {\n\t\treturn this.lock;\n\t}", "public Obj...
[ "0.80395234", "0.70960623", "0.6920749", "0.6780441", "0.67023146", "0.6497378", "0.64273787", "0.6418262", "0.6356068", "0.6294207", "0.6242042", "0.61822563", "0.6171427", "0.61472464", "0.6128284", "0.6111503", "0.6037525", "0.60120726", "0.5946357", "0.59253156", "0.59201...
0.0
-1
T[] ts = (T[]) t.toArray();
@Override public long insertObjs(Collection<T> t) { return insertObjs(false, t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public T[] toArray() {\n return (T[]) array;\n }", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "T[] toArray(T[] a);", "E[] toArray();", "public <T> T[] toArray(T[] arr);", "public T[] toArray() {\n return null;\n }", "public default T[] toArray() ...
[ "0.78457874", "0.77989364", "0.77989364", "0.77989364", "0.7754961", "0.7709485", "0.74408746", "0.71939224", "0.71508694", "0.71251893", "0.7036374", "0.7001196", "0.69817895", "0.6905006", "0.6863155", "0.68626934", "0.6811407", "0.67817926", "0.6781191", "0.67756635", "0.6...
0.0
-1
TODO Autogenerated method stub
@Override public long insertObjs(T... t) { List<T> list = new ArrayList<T>(); for (T obj : t) { list.add(obj); } return insertObjs(list); // int optNum = 0; // for(T obj : t){ // InsertBuider<T> buider = insertBuider(); // buider.addValue(obj); // helper.getDatabase(false).insert(buider.tableInfo.tableName, null, // buider.cvs); // optNum++; // } // return optNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub DeleteBuider builder = deleteBuider();
@Override public long deleteAll() { return deleteAll(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Delete(Builder builder) {\n super(builder);\n }", "public DeleteBuilder delete() {\n return new DeleteBuilder(this);\n }", "private C_DeleteMail(Builder builder) {\n super(builder);\n }", "private S_DeleteMail(Builder builder) {\n super(builder);\n }", "pri...
[ "0.7383196", "0.69592154", "0.6656902", "0.66009045", "0.64815986", "0.6355667", "0.6118621", "0.6087428", "0.6066942", "0.6025913", "0.60256135", "0.5996989", "0.5957636", "0.59496963", "0.5949215", "0.5939456", "0.5930712", "0.5911237", "0.5906688", "0.58817947", "0.587878"...
0.0
-1
TODO Autogenerated method stub
@Override public T queryFirstObj(QueryBuilder mQueryBuilder) { mQueryBuilder.limitIndex = 1; mQueryBuilder.offsetIndex = 0; List<T> list = queryObjs(mQueryBuilder); if (list.size() > 0) { return list.get(0); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public T queryJoinFirstObj(QueryBuilder mQueryBuilder) { mQueryBuilder.limitIndex = 1; mQueryBuilder.offsetIndex = 0; List<T> list = queryJoinObjs(mQueryBuilder); if (list.size() > 0) { return list.get(0); } return null; }
{ "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
Text for saved file.
public String saveText() { return "!Základ!\n\n" + "Hrubá mzda : " + wage + "Kč\n" + "Sleva poplatníka : " + saveTextChoose + "\nSuperhrubá mzda : " + calc.superGrossWage(wage) + " Kč\n" + "\n!Zaměstnavatel odvody z mzdy!\n\n" + "Socialní pojištění : " + calc.socialInsuranceEmployer(wage) + " Kč\n" + "Zdravotní pojištění: " + calc.healthInsuranceEmployer(wage) + " Kč\n" + "\n!Zaměstnanec odvody z mzdy!\n" + "\nSocialní pojištění : " + calc.socialInsuranceEmployee(wage) + " Kč\n" + "Zdravotní pojištění : " + calc.healthInsuranceEmployee(wage) + " Kč\n" + "\n!Daň ze závislé činnosti!\n" + "\nZáklad daní :" + calc.round(wage) + " Kč\n" + "Daň : " + calc.tax(wage) + " Kč \n" + "Daň po odpoču slevy : " + calc.afterDeductionOfDiscounts(wage, choose) + " Kč\n" + "\nČistá mzda : " + calc.netWage(wage, choose) + " Kč"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveText() {\n\t\t\tapp.saveStrings(\"./data/exports/ID_Order.txt\", saveIDOrder);\n\t\t\t//Saving the new name text\n\t\t\tapp.saveStrings(\"./data/exports/Name_Order.txt\", saveNameOrder);\n\t\t\t//Saving the new breed text\n\t\t\tapp.saveStrings(\"./data/exports/Breed_Order.txt\", saveBreedOrder);\n...
[ "0.76707834", "0.76010615", "0.7357467", "0.73186153", "0.71716636", "0.7166662", "0.7071473", "0.7053795", "0.701075", "0.6985699", "0.6846768", "0.6803006", "0.6758836", "0.67099017", "0.66767824", "0.66532534", "0.66379577", "0.6627445", "0.6619293", "0.66116524", "0.66032...
0.679918
12
TODO: Add any fields needed.
public Regular(Node t) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void perish() {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initi...
[ "0.6113826", "0.6016755", "0.59690213", "0.5891289", "0.5891289", "0.5891289", "0.5891289", "0.5891289", "0.5891289", "0.5870982", "0.58570975", "0.5777905", "0.5763084", "0.57049966", "0.56950814", "0.56813776", "0.56813776", "0.5675046", "0.5673933", "0.565275", "0.564431",...
0.0
-1
Created by agustinaindah on 03/05/2017.
public interface ReportMembershipPresenter { void getReportMembership(int page); interface View extends BaseView{ void successListMembership(List<ItemMembership> itemMemberships, int page); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Overri...
[ "0.5942441", "0.58061993", "0.5707567", "0.56786084", "0.56461203", "0.5627534", "0.5585968", "0.5583945", "0.5583945", "0.5517552", "0.55074394", "0.5502245", "0.5502245", "0.5502245", "0.5502245", "0.5502245", "0.5502245", "0.5499103", "0.54960763", "0.54840314", "0.5481229...
0.0
-1
Http request will be intercepted by Token filter before proceeding. GET/
@GetMapping("all") @PreAuthorize("hasAnyRole('admin', 'customer')") @ApiOperation(value = "Retrieve all products from database") @ApiResponses(value = { @ApiResponse(code = 200, message = "Products received."), @ApiResponse(code = 400, message = "Conflict while parsing."), @ApiResponse(code = 401, message = "The user does not have valid authentication credentials for the target resource."), @ApiResponse(code = 403, message = "User does not have permission (Authorized but not enough privileges)"), @ApiResponse(code = 404, message = "The requested resource could not be found."), @ApiResponse(code = 500, message = "Server Internal Error at executing request.") }) // Retrieve all products in database. public ResponseEntity<String> getAllProducts() { // When request successfully reach controller, each controller will empty security context. SecurityContextHolder.getContext().setAuthentication(null); // Query database using Data Access Object classes. DbResult dbResult = new Select().findAllProducts(); if (dbResult.isEmpty()) return new ResponseEntity("Product not found.", HttpStatus.NOT_FOUND); TreeSet<Product> productSet = dbResult.getResult(TreeSet.class); // Each database successful response will be wrapped in a ResponseEntity object after parsed to a Data Transfer Object. // In case of exception, the response will be wrapped in a ResponseStatusException object. try{ RequestBodyParse dto = new RequestBodyParse(productSet); return new ResponseEntity(dto.getJsonSet().toString(), HttpStatus.OK); } catch (Exception exc){ throw new ResponseStatusException(HttpStatus.CONFLICT, exc.getMessage(), exc); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doFilterInternal(HttpServletRequest httpRequest, HttpServletResponse httpResponse, FilterChain chain) throws ServletException, IOException {\n String requestURI = httpRequest.getRequestURI();\n if (isPubicRequest(requestURI)) {\n chain.doFilter(httpRequest, ht...
[ "0.68744177", "0.6695724", "0.6586315", "0.65341043", "0.64801365", "0.638125", "0.63427955", "0.63423485", "0.6330815", "0.63226265", "0.6248364", "0.62433666", "0.62121093", "0.61948425", "0.6132255", "0.6129206", "0.61240405", "0.60977566", "0.6092064", "0.6076929", "0.606...
0.0
-1
When request successfully reach controller, each controller will empty security context.
@GetMapping("{name}") @PreAuthorize("hasAnyRole('admin', 'customer')") @ApiOperation(value = "Retrieve product specified by name") @ApiResponses(value = { @ApiResponse(code = 200, message = "Product received."), @ApiResponse(code = 400, message = "Conflict while parsing."), @ApiResponse(code = 401, message = "The user does not have valid authentication credentials for the target resource."), @ApiResponse(code = 403, message = "User does not have permission (Authorized but not enough privileges)."), @ApiResponse(code = 404, message = "The requested resource could not be found."), @ApiResponse(code = 500, message = "Server Internal Error at executing request.") }) public ResponseEntity<String> getProductByName(@PathVariable String name) { SecurityContextHolder.getContext().setAuthentication(null); // Query database using Data Access Object classes. DbResult dbResult = new Select().findProduct(name.toUpperCase()); if (dbResult.isEmpty()) return new ResponseEntity("Product not found.", HttpStatus.NOT_FOUND); Product product = dbResult.getResult(Product.class); // Each database successful response will be wrapped in a ResponseEntity object after parsed to a Data Transfer Object. // In case of exception, the response will be wrapped in a ResponseStatusException object. try{ RequestBodyParse dto = new RequestBodyParse(product); return new ResponseEntity(dto.getJsonSet().toString(), HttpStatus.OK); } catch (Exception exc){ throw new ResponseStatusException(HttpStatus.CONFLICT, exc.getMessage(), exc); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ControllerContext() {\n\t\t// do nothing\n\t}", "public void clearRequestContext() {\r\n if (SeamUtilities.isSeamEnvironment()) {\r\n try {\r\n getRequestMap().clear();\r\n } catch (IllegalStateException ise) {\r\n // Can be thrown in Seam example applic...
[ "0.6145265", "0.60038733", "0.55634016", "0.5401737", "0.53906596", "0.5356262", "0.532506", "0.5308169", "0.52234775", "0.52116776", "0.5184425", "0.5180411", "0.51278675", "0.5117636", "0.511675", "0.5115381", "0.50874585", "0.50790006", "0.50672", "0.5062618", "0.50524575"...
0.0
-1
When request successfully reach controller, each controller will empty security context.
@GetMapping("tag/{tag}") @PreAuthorize("hasAnyRole('admin', 'customer')") @ApiOperation(value = "Retrieve products by tag") @ApiResponses(value = { @ApiResponse(code = 200, message = "Product received."), @ApiResponse(code = 401, message = "The user does not have valid authentication credentials for the target resource."), @ApiResponse(code = 403, message = "User does not have permission (Authorized but not enough privileges)"), @ApiResponse(code = 404, message = "The requested resource could not be found."), @ApiResponse(code = 500, message = "Server Internal Error at executing request.") }) public ResponseEntity<String> getProductByTag(@PathVariable String tag) { SecurityContextHolder.getContext().setAuthentication(null); // Query database using Data Access Object classes. Set<Product> results = new Select().findByTag(tag).getResult(HashSet.class); // Products will be assigned to a HashSet. Set<String> resultNames = new HashSet<>(); results.forEach(product -> { product.getProduct().keySet().forEach( substance -> resultNames.add(substance.getName()) ); }); // Each database successful response will be wrapped in a ResponseEntity object. if(resultNames.isEmpty()) return new ResponseEntity("Tag not found.", HttpStatus.NOT_FOUND); else return new ResponseEntity(resultNames.toString(), HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ControllerContext() {\n\t\t// do nothing\n\t}", "public void clearRequestContext() {\r\n if (SeamUtilities.isSeamEnvironment()) {\r\n try {\r\n getRequestMap().clear();\r\n } catch (IllegalStateException ise) {\r\n // Can be thrown in Seam example applic...
[ "0.6145265", "0.60038733", "0.55634016", "0.5401737", "0.53906596", "0.5356262", "0.532506", "0.5308169", "0.52234775", "0.52116776", "0.5184425", "0.5180411", "0.51278675", "0.5117636", "0.511675", "0.5115381", "0.50874585", "0.50790006", "0.50672", "0.5062618", "0.50524575"...
0.0
-1
When request successfully reach controller, each controller will empty security context.
@DeleteMapping("") @PreAuthorize("hasRole('admin')") @ApiOperation(value = "Delete items from product by name (Admin only)") @ApiResponses(value = { @ApiResponse(code = 200, message = "Entity deleted."), @ApiResponse(code = 401, message = "The user does not have valid authentication credentials for the target resource."), @ApiResponse(code = 403, message = "User does not have permission (Authorized but not enough privileges)"), @ApiResponse(code = 404, message = "The requested resource could not be found."), @ApiResponse(code = 500, message = "Server Internal Error at executing request.") }) @ApiImplicitParam(name = "body", dataTypeClass = ProductEntityDeleteRequestBody.class) public ResponseEntity<String> deleteEntityFromProduct(@RequestBody LinkedHashMap body) { SecurityContextHolder.getContext().setAuthentication(null); try{ // Query database using Data Access Object classes. //DbResult dbResult = new Delete().deleteProductByName(name.toUpperCase()); DbResult dbResult = new Delete().deleteEntityFromProduct(body); if (dbResult.isEmpty()) return new ResponseEntity("Item not found.", HttpStatus.NOT_FOUND); // Dao Delete class will return result field as true and a null exception field or a non-empty exception // field containing an exception and a null result field. // To avoid checking a null result field as a boolean which needs two checks, we check once the exception field. if(dbResult.getException() != null) { return new ResponseEntity(dbResult.getException().getMessage(), HttpStatus.OK); } if(dbResult.getResult(Boolean.class)){ return new ResponseEntity("Item deleted.", HttpStatus.OK); } else{ // Return something unexpected. Exception exception = new Exception(dbResult.getResult().toString()); throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, exception.getMessage(), exception); } } catch (Exception exc) { throw new ResponseStatusException(HttpStatus.BAD_REQUEST, exc.getMessage(), exc); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ControllerContext() {\n\t\t// do nothing\n\t}", "public void clearRequestContext() {\r\n if (SeamUtilities.isSeamEnvironment()) {\r\n try {\r\n getRequestMap().clear();\r\n } catch (IllegalStateException ise) {\r\n // Can be thrown in Seam example applic...
[ "0.6145265", "0.60038733", "0.55634016", "0.5401737", "0.53906596", "0.5356262", "0.532506", "0.5308169", "0.52234775", "0.52116776", "0.5184425", "0.5180411", "0.51278675", "0.5117636", "0.511675", "0.5115381", "0.50874585", "0.50790006", "0.50672", "0.5062618", "0.50524575"...
0.0
-1
When request successfully reach controller, each controller will empty security context.
@PutMapping("replace") @PreAuthorize("hasRole('admin')") @ApiOperation(value = "Replace existing product by name (Admin only)") @ApiResponses(value = { @ApiResponse(code = 200, message = "Product replaced."), @ApiResponse(code = 400, message = "Request body malformed."), @ApiResponse(code = 401, message = "The user does not have valid authentication credentials for the target resource."), @ApiResponse(code = 403, message = "User does not have permission (Authorized but not enough privileges)"), @ApiResponse(code = 404, message = "The requested resource could not be found."), @ApiResponse(code = 500, message = "Server Internal Error at executing request.") }) @ApiImplicitParam(name = "body", dataTypeClass = ProductReplaceRequestBody.class) public ResponseEntity<String> replaceProduct(@RequestBody LinkedHashMap body) { SecurityContextHolder.getContext().setAuthentication(null); if(body.get("product") == null) { Exception missingProductName = new Exception("Product name is missing."); throw new ResponseStatusException(HttpStatus.BAD_REQUEST, missingProductName.getMessage(), missingProductName); } String name = body.get("product").toString(); // Query database using Data Access Object classes. DbResult dbResult = new Select().findProduct(name.toUpperCase()); if(dbResult.isEmpty()) return new ResponseEntity("Product not found.", HttpStatus.NOT_FOUND); Product product = dbResult.getResult(Product.class); // Each database successful response will be wrapped in a ResponseEntity object. // In case of exception, the response will be wrapped in a ResponseStatusException object. try{ dbResult = new Update().replaceProduct(product, body); if(dbResult.isEmpty()) return new ResponseEntity("Product could not be updated.", HttpStatus.CONFLICT); Set<ArrayList<HashMap>> results = dbResult.getResult(HashSet.class); return new ResponseEntity(results.toString(), HttpStatus.OK); } catch (Exception exc) { throw new ResponseStatusException(HttpStatus.BAD_REQUEST, exc.getMessage(), exc); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ControllerContext() {\n\t\t// do nothing\n\t}", "public void clearRequestContext() {\r\n if (SeamUtilities.isSeamEnvironment()) {\r\n try {\r\n getRequestMap().clear();\r\n } catch (IllegalStateException ise) {\r\n // Can be thrown in Seam example applic...
[ "0.6145265", "0.60038733", "0.55634016", "0.5401737", "0.53906596", "0.5356262", "0.532506", "0.5308169", "0.52234775", "0.52116776", "0.5184425", "0.5180411", "0.51278675", "0.5117636", "0.511675", "0.5115381", "0.50874585", "0.50790006", "0.50672", "0.5062618", "0.50524575"...
0.0
-1
Constructor for the serverConnection Class
public ServerConnection() { //Initializing of the variables used in the constructor this.hostAddress = "http://localhost"; this.port = 8882; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServerConnecter() {\r\n\r\n\t}", "private ServerConnectionParser() {\n }", "public Connection() {\n\t\t\n\t}", "private Connection () {}", "public Server() {}", "public ServerA(){}", "protected ServerConnectionDebugger() {\n\n }", "public ServerWriter(ServerConnection connection) {\n ...
[ "0.7962561", "0.7639455", "0.735292", "0.73466194", "0.732408", "0.7232659", "0.7222294", "0.711753", "0.7107567", "0.7049624", "0.70478886", "0.7036105", "0.7005072", "0.6961819", "0.69592243", "0.69524264", "0.6914663", "0.6867812", "0.6854832", "0.68338895", "0.68317485", ...
0.8277249
0
Method for getting something from the server
public String get(String path) { Client client = Client.create(); WebResource webResource = client.resource(getHostAddress() + ":" + getPort() + "/api/" + path); ClientResponse response = webResource.type("application/json").get(ClientResponse.class); String message = response.getEntity(String.class); return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getDataFromServer();", "String getResponse();", "java.lang.String getResponse();", "R get() throws IOException, ClientProtocolException;", "public abstract String getResponse();", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServe...
[ "0.73205626", "0.710732", "0.70574546", "0.679782", "0.6668464", "0.6612155", "0.66093934", "0.6481297", "0.6453474", "0.6394197", "0.63677776", "0.6353517", "0.6342289", "0.6223175", "0.6200283", "0.61896276", "0.61522263", "0.6143792", "0.61210936", "0.6115632", "0.6107413"...
0.6159945
16
Method for posting something to the server
public int post(String json, String path) { Client client = Client.create(); WebResource webResource = client.resource(getHostAddress() + ":" + getPort() + "/api/" + path); ClientResponse response = webResource.type("application/json").post(ClientResponse.class, json); int responser = response.getStatus(); return responser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String post();", "public void postData() {\n\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "public void doPost( )\n {\n \n }", "public void post(...
[ "0.82401633", "0.7286675", "0.7098206", "0.7088559", "0.7060251", "0.6913353", "0.68909043", "0.688617", "0.685394", "0.67429775", "0.6674582", "0.6536395", "0.6504857", "0.64845675", "0.64720726", "0.6455235", "0.64478534", "0.6407068", "0.6401766", "0.6401466", "0.63894194"...
0.0
-1
Method when putting something to the server
public int put(String json, String path) { Client client = Client.create(); WebResource webResource = client.resource(getHostAddress() + ":" + getPort() + "/api/" + path); ClientResponse response = webResource.type("application/json").put(ClientResponse.class, json); int responser = response.getStatus(); return responser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }", "public void uploadObject() {\n\n\t}", "@Override\n\tpublic void doPut(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "public void saveWalk...
[ "0.65755177", "0.6216617", "0.6200578", "0.618045", "0.59986466", "0.5975584", "0.59150577", "0.5913902", "0.5879767", "0.58063185", "0.58049566", "0.5793422", "0.5789809", "0.57860637", "0.57568836", "0.57492006", "0.5748987", "0.57478756", "0.5747164", "0.572717", "0.571923...
0.0
-1
Method when deleting something from the server
public int delete(String path) { Client client = Client.create(); WebResource webResource = client.resource(getHostAddress() + ":" + getPort() + "/api/" + path); ClientResponse response = webResource.type("application/json").delete(ClientResponse.class); int responser = response.getStatus(); return responser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "void onDelete();", "private void delete() {\n\n\t}", "@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}", "public void delete(){\r\n\r\n }", "private Delete() {}", "private Delete() {}", "public void delete() {\n\n\t...
[ "0.74936", "0.7466032", "0.74239624", "0.7288095", "0.72571427", "0.7243445", "0.7243445", "0.7223907", "0.72154284", "0.72035867", "0.7201175", "0.7172866", "0.71612525", "0.7151497", "0.71485794", "0.714759", "0.71365887", "0.71192163", "0.71192163", "0.71192163", "0.711921...
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:27:0x00a5, code lost: if (r7 != null) goto L_0x00a9; / renamed from: a / Code decompiled incorrectly, please refer to instructions dump.
public static final java.lang.String m40098a(java.lang.String r14, java.lang.String r15) { /* java.util.List r0 = kotlin.p588j0.C12833x.m40180e(r14) java.util.ArrayList r1 = new java.util.ArrayList r1.<init>() java.util.Iterator r2 = r0.iterator() L_0x000d: boolean r3 = r2.hasNext() if (r3 == 0) goto L_0x0026 java.lang.Object r3 = r2.next() r4 = r3 java.lang.String r4 = (java.lang.String) r4 boolean r4 = kotlin.p588j0.C12832w.m40118a(r4) r4 = r4 ^ 1 if (r4 == 0) goto L_0x000d r1.add(r3) goto L_0x000d L_0x0026: java.util.ArrayList r2 = new java.util.ArrayList r3 = 10 int r3 = kotlin.p590y.C13187p.m40525a(r1, r3) r2.<init>(r3) java.util.Iterator r1 = r1.iterator() L_0x0035: boolean r3 = r1.hasNext() if (r3 == 0) goto L_0x004d java.lang.Object r3 = r1.next() java.lang.String r3 = (java.lang.String) r3 int r3 = m40100b(r3) java.lang.Integer r3 = java.lang.Integer.valueOf(r3) r2.add(r3) goto L_0x0035 L_0x004d: java.lang.Comparable r1 = kotlin.p590y.C13199w.m40598k(r2) java.lang.Integer r1 = (java.lang.Integer) r1 r2 = 0 if (r1 == 0) goto L_0x005b int r1 = r1.intValue() goto L_0x005c L_0x005b: r1 = 0 L_0x005c: int r14 = r14.length() int r3 = r15.length() int r4 = r0.size() int r3 = r3 * r4 int r14 = r14 + r3 kotlin.jvm.functions.Function1 r15 = m40099a(r15) int r3 = kotlin.p590y.C13185o.m40507a(r0) java.util.ArrayList r4 = new java.util.ArrayList r4.<init>() java.util.Iterator r0 = r0.iterator() L_0x007c: boolean r5 = r0.hasNext() if (r5 == 0) goto L_0x00b4 java.lang.Object r5 = r0.next() int r6 = r2 + 1 r7 = 0 if (r2 < 0) goto L_0x00b0 java.lang.String r5 = (java.lang.String) r5 if (r2 == 0) goto L_0x0091 if (r2 != r3) goto L_0x0098 L_0x0091: boolean r2 = kotlin.p588j0.C12832w.m40118a(r5) if (r2 == 0) goto L_0x0098 goto L_0x00a9 L_0x0098: java.lang.String r2 = kotlin.p588j0.C12839z.m40186e(r5, r1) if (r2 == 0) goto L_0x00a8 java.lang.Object r2 = r15.invoke(r2) r7 = r2 java.lang.String r7 = (java.lang.String) r7 if (r7 == 0) goto L_0x00a8 goto L_0x00a9 L_0x00a8: r7 = r5 L_0x00a9: if (r7 == 0) goto L_0x00ae r4.add(r7) L_0x00ae: r2 = r6 goto L_0x007c L_0x00b0: kotlin.p590y.C13180m.m40455c() throw r7 L_0x00b4: java.lang.StringBuilder r15 = new java.lang.StringBuilder r15.<init>(r14) r7 = 0 r8 = 0 r9 = 0 r10 = 0 r11 = 0 r12 = 124(0x7c, float:1.74E-43) r13 = 0 java.lang.String r6 = "\n" r5 = r15 kotlin.p590y.C13199w.m40557a(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13) java.lang.StringBuilder r15 = (java.lang.StringBuilder) r15 java.lang.String r14 = r15.toString() java.lang.String r15 = "mapIndexedNotNull { inde…\"\\n\")\n .toString()" kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r14, r15) return r14 */ throw new UnsupportedOperationException("Method not decompiled: kotlin.p588j0.C12823p.m40098a(java.lang.String, java.lang.String):java.lang.String"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n ...
[ "0.72265494", "0.7069324", "0.7033748", "0.69870013", "0.69505346", "0.6891774", "0.6884561", "0.68710554", "0.68119335", "0.6795086", "0.67811775", "0.6756873", "0.67538637", "0.6745057", "0.6725614", "0.66920745", "0.6691125", "0.668121", "0.66593903", "0.66324264", "0.6629...
0.0
-1
/ renamed from: b
private static final int m40100b(String str) { int length = str.length(); int i = 0; while (true) { if (i >= length) { i = -1; break; } else if (!C12798a.m40012a(str.charAt(i))) { break; } else { i++; } } return i == -1 ? str.length() : i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1