query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
b8d76e4bfa6a8a29995230a8384a48de
/ Access modifiers changed, original: protected|final / renamed from: p
[ { "docid": "588c725aba8541e109298febbdaf3d7e", "score": "0.0", "text": "public final void mo10528p(List<Integer> list, List<Long> list2) {\n AppMethodBeat.m2504i(1271);\n C4990ab.m7417i(\"MicroMsg.DelSvrIdMgr\", \"add size:%d\", Integer.valueOf(list.size()));\n dsW();\n int a...
[ { "docid": "a4a91808b103375e3c8064b1217860d6", "score": "0.7858405", "text": "protected void p() {}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.6828502", "text": "protected void method_3848() {}", "title": "" }, { "docid": "f0512ddbeb7af0b9...
6ae7cd970196ad67ea0204624203cb05
This function is run when the robot is first started up and should be used for any initialization code.
[ { "docid": "946f66d74a8f9f06ba18275344978e1e", "score": "0.7640713", "text": "public void robotInit() {\n \t// instantiate subsystems\n\t\tdrivetrain = new DriveTrain();\n\t\tpdp = new PowerDistributionPanel();\n\t\tcompressor = new Compressor();\n\t\tarm_pistons = new ArmPistons();\n\t\tarm_actuator...
[ { "docid": "bd1347c38fa9e333b40b59c9b0819e20", "score": "0.8559335", "text": "public void robotInit() {\n\n\t}", "title": "" }, { "docid": "07890f5118c99a67fc18bdc4e3298e60", "score": "0.84925354", "text": "public void robotInit() {\n }", "title": "" }, { "docid": "789...
c772efa9c31107ba56a268fa2c747631
Returns this transport order's creation time.
[ { "docid": "eff2a9d256793d06157d2861403176ae", "score": "0.0", "text": "public Instant getCreationTime() {\n return creationTime;\n }", "title": "" } ]
[ { "docid": "a52a72ff33d4c60ae38d8e9736194aca", "score": "0.7931701", "text": "public Long createTime() {\n return this.createTime;\n }", "title": "" }, { "docid": "8dbf9036ceb8142268e669a9915801b5", "score": "0.78340477", "text": "public Date getOrderCreateTime() {\n ...
33fcba2eeefd9eb8ca6f3d0cbd50dde1
configura el Logger fijando el panel en el que se van a registrar los mensajes
[ { "docid": "7df2eb1d45845b05d725b3a50ff339fc", "score": "0.59684443", "text": "public void setLogPanel(LayoutContainer logPanel) {\n\t\tthis.logPanel = logPanel;\n\t\tconfigured = true;\n\t\tif(buffer != null) {\n\t\t\tlog(buffer);\n\t\t\tbuffer = null;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "7effba3ce0c0d84f30cfcc655cfc0061", "score": "0.6294099", "text": "private static void configureLogger() {\n Logger logger = Logger.getLogger(JStickyNotes.class.getPackage().getName());\r\n ConsoleHandler cHandler = new ConsoleHandler();\r\n cHandler.setFormatter(new Form...
3b733d52c83706e172b272d6a19cd25a
After completing background task Dismiss the progress dialog and show the data in UI Always use runOnUiThread(new Runnable()) to update UI from background thread, otherwise you will get error
[ { "docid": "246e4033a26f2f2a668cbdbe58a705e3", "score": "0.0", "text": "protected void onPostExecute(String file_url) {\n listener.onPostUpdate();\n }", "title": "" } ]
[ { "docid": "40f95342ab8d4a13287026fd68a110c7", "score": "0.7309239", "text": "@Override\n protected void onPostExecute(Void nothing) {\n if (dialog_progress.isShowing()) {\n dialog_progress.dismiss();\n }\n }", "title": "" }, { "docid": "dc1...
be2fe23a56f8b3c13e1db3899c542898
All spring tests need these I guess
[ { "docid": "125a02d9385df46275e0a2488bc2f03f", "score": "0.0", "text": "private DeploymentBuilder addSpringVariant(DeploymentBuilder builder) {\n builder.addDirectoryOrJARContainingClass(LogFactory.class); // commons-logging\n builder.addDirectoryOrJARContainingClass(Logger.class); // log4j\n\n ...
[ { "docid": "c8ecea9bc072ddd9484f8ca935c68f3a", "score": "0.71199816", "text": "@Before\n public void initializeSpringContext() {\n\n }", "title": "" }, { "docid": "d68aec98a8034889b9fcd38ffd7a4e66", "score": "0.6833311", "text": "@Before\r\n\tpublic void setUp() {\r\n\r\n\t}", ...
cce539bf98889fbd38c6590eb9dcf947
Checks if the given user has the given permission
[ { "docid": "414e267ed2fc9b27e161d6de6fc00a7e", "score": "0.6664406", "text": "private void checkIfAuthorized(String p_username, String p_permission)\n throws VendorException\n {\n try\n {\n PermissionSet ps = Permission.getPermissionManager()\n ....
[ { "docid": "6fdbcd6fb690bac74160df3e46f14f02", "score": "0.8290176", "text": "private boolean hasPermissionForUser(String user, String... permission) {\n List<String> params = new ArrayList<>();\n\n params.add(user);\n Collections.addAll(params, permission);\n\n return hasPolicy(params);\n ...
6fd63fa90e6e5d1a1de1e2104a404082
/ / / / / / / / / / / / / / / / / /
[ { "docid": "8080f68ea474d35a67e62dfaa1995e08", "score": "0.0", "text": "public static String fold(int used, String s) {\n/* 1035 */ if (!foldText) {\n/* 1036 */ return s;\n/* */ }\n/* */ \n/* */ int end;\n/* */ \n/* 1041 */ for (end = s.length() - 1; end...
[ { "docid": "b858c6ff6e97cd194310df71bbeb64ca", "score": "0.557944", "text": "private int s(int pos){return (pos+up)%Global.array_size;}", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.5490681", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", ...
48a7bc807440f0702449cfcabe0d4b22
Combine the parallel graph with the directly follows graph.
[ { "docid": "0431fee134aa89c5a7db404ebd571c28", "score": "0.0", "text": "public Cut findCut(Dfg dfg, DfgMinerState minerState) {\r\n\t\t\r\n\t\t//add edges from parallel graph\r\n\t\tfor (long e : dfg.getConcurrencyGraph().getEdges()) {\r\n\t\t\tlong weight = dfg.getConcurrencyGraph().getEdgeWeight(e);\r...
[ { "docid": "5e794240e15526403367fd95e0e9e153", "score": "0.62293357", "text": "public void joinGraph(IGraph graph);", "title": "" }, { "docid": "a6fab36df87983a4dd13d958fd439736", "score": "0.61356205", "text": "private void transferLocal(Graph graph) {\n Set<NodePair> nonadja...
553041e0e69510769080380c5dae3fe2
Login button action. Get user login data and check if a user exists in the database.
[ { "docid": "be8fb7ef95e36f61be3c1455c78b7271", "score": "0.6722121", "text": "@FXML\n private void login(ActionEvent actionEvent) throws IOException {\n\n // Validate user input\n LoginValidation result = LoginValidation.validResult(inputUsername.getText(), inputPassword.getText());\n ...
[ { "docid": "ff6b7bdc7f2fb7c1e8b01b6c17c59891", "score": "0.74800605", "text": "@Override\n public void onClickLogin() {\n if (Validator.validateLogin(mainBinding.getUser().getUsername(), mainBinding.getUser().getPassword()) &&\n ManagerFactory.getUsersMan...
bc3b9ea5b5fd665f90b90faf92b1c57e
gets possible values for y, x
[ { "docid": "0012893a30bc2fb31a9678ebba5108ee", "score": "0.5518918", "text": "private static ArrayList<Integer> getPossible(int y, int x, Sudoku sudoku) throws Exception {\n ArrayList<Integer> possible = new ArrayList<Integer>();\n if(sudoku.get(y, x) != 0) return possible;\n\n bool...
[ { "docid": "edc3c173e859a70d39a274c6d2cfe6fa", "score": "0.63486606", "text": "public HashSet<Integer> getPossibleValues(Coordinate coord){\n\t\treturn possibleValues.get(coord);\n\t}", "title": "" }, { "docid": "287be1737292ed85e23022199d52e6b0", "score": "0.6242466", "text": "publi...
4906633542ddb7323a483d60dc2935c9
Test get start date time.
[ { "docid": "0c2742eb373ce1e04660036c8cf02d08", "score": "0.7598131", "text": "@Test\n public void testGetStartDateTime( ) throws Exception {\n\n logger.debug( \"Starting test for GetStartDateTime\" );\n\n\n Assert.assertEquals( TestConstants.notEqualsMessage,\n simpleDate...
[ { "docid": "94bd65bb6709a9f5ca066da54913cd28", "score": "0.7850316", "text": "Date getTimeStart();", "title": "" }, { "docid": "92052c0445c4750064ba1936e1d234a1", "score": "0.77957785", "text": "Date getStart();", "title": "" }, { "docid": "d504891b4fdb636c2ae79bc3d5d20cc...
190a6468b777e99d0c9c55a1387af03b
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
[ { "docid": "d27c1eecdc6fdf22205abac7533ea358", "score": "0.0", "text": "public static JfCompany createEntity(EntityManager em) {\n JfCompany jfCompany = new JfCompany().name(DEFAULT_NAME);\n return jfCompany;\n }", "title": "" } ]
[ { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.77248305", "text": "Entity createEntity();", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.77248305", "text": "Entity createEntity();", "title": "" }, { "docid": "e540839c51ba5e66036053...
9d7504898397756535145ec8dcc8f2d7
METHOD: setParentContainer Sets this layout's parent. For use by MContainer.
[ { "docid": "d695dee1edfb3a1146efd9cd7a67f05a", "score": "0.7259986", "text": "public void setParentContainer(MContainer newParent)\n\t{\n\t\tparent = newParent;\n\t}", "title": "" } ]
[ { "docid": "cb3e5ea98d19b04c8ce98213a4fe95e1", "score": "0.69612384", "text": "public void setParent(IContainer parent) {\n\t\t\n\t\tif (this.parent==null || (parent!=null && !parent.equals(this.parent))) {\n\t\t\tthis.parent = parent;\n\t\t\tnotifyPropertiesEventListener(\"parent\");\n\t\t}\n\t}", ...
a87974eed71d9c044921d68f83d17ff1
This method was generated by MyBatis Generator. This method corresponds to the database table hy_hyjbxx
[ { "docid": "daae2ee7c89dd6493401d0049ade7e0b", "score": "0.0", "text": "public Criteria andZfmmGreaterThanColumn(HyHyjbxx.Column column) {\n addCriterion(new StringBuilder(\"zfmm > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "ti...
[ { "docid": "77949980de9f2d320495d4b5a56c8436", "score": "0.5702326", "text": "@Column(name=\"ywlc\")\r\n/* 66: */ public Integer getYwlc()\r\n/* 67: */ {\r\n/* 68: 61 */ return this.ywlc;\r\n/* 69: */ }", "title": "" }, { "docid": "edecab4b1c291f481ff23457836deb70", ...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a939ab7c563140299bf3bf1624dc2a8a", "score": "0.0", "text": "private void setName(String nextLine) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { ...
2e407fc3e7aa4361cf24be6a44746e7e
Sets the device validation controller.
[ { "docid": "d90b05fe38f34afb336472f9a0ed1934", "score": "0.8290417", "text": "public void setDeviceValidationController(ValidationController deviceValidationController)\r\n\t{\r\n\t\tthis.deviceValidationController = deviceValidationController;\r\n\t}", "title": "" } ]
[ { "docid": "c7d40670b36c9d85b0fe9b9689140d6b", "score": "0.69161826", "text": "public ValidationController getDeviceValidationController()\r\n\t{\r\n\t\treturn deviceValidationController;\r\n\t}", "title": "" }, { "docid": "46af13318a97ba0296ae7fc635621654", "score": "0.65916985", "t...
4de99cf614c56b56328ae9de4cb276d5
inserta codigo de agencia
[ { "docid": "200d37ece2beb4334dedd768cd898d0c", "score": "0.0", "text": "public void setCodigoAgencia(String codigoAgencia) {\n this.codigoAgencia = codigoAgencia;\n }", "title": "" } ]
[ { "docid": "589a414a16c8f864369d49cb617aa1ab", "score": "0.73757213", "text": "public void InsertarAutorLibro(int coda, int codl){\n Control_Conexion con=Control_Conexion.getConnection();\n try {\n con.conectar();\n PreparedStatement sql=con.estado().prepareStatement(\"IN...
e9033482d024a83a099621e8e5894d2e
Enqueue Inserta un nodo en la Cola
[ { "docid": "622fb46fdb9af256e04f4bc37c7a3b70", "score": "0.6562", "text": "public void Enqueue(T objeto) {\n if (this.IsEmpty())\n {\n this.setCabeza(new Nodo(objeto));\n }\n else {\n Nodo Aux = this.getCabeza();\n while (Aux.getSiguiente() !=...
[ { "docid": "cc305e1d1d8a84630848c18ac9ec0796", "score": "0.7555761", "text": "public void enqueue( int numCliente )\n { \n listaCola.insertarAlFinal(numCliente); \n }", "title": "" }, { "docid": "ba067b5ba5dd8b6995f75d17cfd4af54", "score": "0.6409177", "text": "void enqueue(...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "49d6ba71e104ecfef0ad8faeeaffcfaf", "score": "0.0", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent SignIntent=new Intent(SignIn.this, LauncherActivity.class);\n\t\t\t\tstartActivity(SignIntent);\n\t\t\t\tfinish();\n\t\t\t\t\n\t\t\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", ...
9371969573570290e2cccb52dd6e6071
Tests the ability to start and stop an instance
[ { "docid": "b36c81a93212d26ccb04efe43512bc7d", "score": "0.772382", "text": "@Test\n public void startAndStopInstanceTest()\n {\n CcdpImageInfo imgInf = CcdpUtils.getImageInfo(\"DOCKER\");\n assertNotNull(\"Could not find Image information\", imgInf);\n CcdpImageInfo image = CcdpImageInfo.cop...
[ { "docid": "2dc88047776efa40f685e60925b6e8ae", "score": "0.75350916", "text": "@Test\n public void startManyAndStopSingleInstanceTest()\n {\n CcdpImageInfo imgInf = CcdpUtils.getImageInfo(\"DOCKER\");\n assertNotNull(\"Could not find Image information\", imgInf);\n CcdpImageInfo image = CcdpI...
ff3d9f2da5eef3dcbe09293d5778f7ed
Task 4 Returns true if two given chars are off by exactly one. Case matters.
[ { "docid": "dcbb27c917611a65533eb61b63a09505", "score": "0.61757016", "text": "@Override\n public boolean equalChars(char x, char y) {\n int diff = x - y;\n\n if(diff == 1 || diff == -1) {\n return true;\n } else {\n return false;\n }\n }", "ti...
[ { "docid": "e9cf32743a68f57430a44245bb7a7d35", "score": "0.70204395", "text": "@Test\n public void Test_equalChars(){\n boolean actual_1 = offByOne.equalChars('a', 'b');\n boolean actual_2 = offByOne.equalChars('B', 'a');\n boolean actual_3 = offByOne.equalChars('a', 'c');\n ...
55f605bde907460859237053d38a5cfa
string ap_mac = 1;
[ { "docid": "697a421e4a66efc8ef8ca4433b3b2495", "score": "0.65417284", "text": "public Builder setApMac(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n apMac_ = value;\n onChanged();\n return this;\n }", "title": ""...
[ { "docid": "dd6f78cd663cc8eec491cceddad6bc2d", "score": "0.73621523", "text": "String getApMac();", "title": "" }, { "docid": "dd6f78cd663cc8eec491cceddad6bc2d", "score": "0.73621523", "text": "String getApMac();", "title": "" }, { "docid": "dd6f78cd663cc8eec491cceddad6bc...
f8004187a3f99af79a588e9f7dce7f8d
This method searches for books by title.
[ { "docid": "e458c9e87f8b548d03b39078208aad50", "score": "0.78608096", "text": "public Set<Book> searchBookByTitle(String bookTitle) throws IOException {\n\t\treturn bookCatalogue.searchByTitle(bookTitle);\n\t}", "title": "" } ]
[ { "docid": "5982ee8bde6f2cce8dcc34e64db1c5aa", "score": "0.8135175", "text": "@Override\n\tpublic List<Book> searchBookByTitle(String title) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6e04e244fb071486e760aacd6c2684b5", "score": "0.79632485", "text": "public ArrayList<Book>...
68e184b756e4d9dfde9836fa111b14b0
set number of played game
[ { "docid": "e0c81f5fad6ef10da3dc4b7a1496483a", "score": "0.796474", "text": "public void setNumOfGame(int num)\n\t\t{\n\t\t\tnumGamesPlayed = num;\n\t\t}", "title": "" } ]
[ { "docid": "5d588fa3fd24dafd5b13f41c94f854f4", "score": "0.7809317", "text": "public void updateNumOfGame()\n\t{\n\t\tnumGamesPlayed++;\n\t}", "title": "" }, { "docid": "667cfeae2b686dd9e34b2ab22a477177", "score": "0.75149995", "text": "public void setNumPlayers(int numPlayers);", ...
8159d64e189e3e4bbcb5ebdf745b8402
Alternative constructor for test mode.
[ { "docid": "4da8c3da17d7fa61a3e52e898a144433", "score": "0.5979343", "text": "public DatabaseHelper(Context context, boolean testMode) {\r\n\t// If the 2nd parameter is null then the database is held in memory --\r\n\t// this form creates an in memory database\r\n\tsuper(context, null, null, DATABASE_VE...
[ { "docid": "633e69731290e3de84f63bfb59cf7361", "score": "0.70394534", "text": "@Test\n\tpublic void contructor() {\n\n\t}", "title": "" }, { "docid": "7b9fb3c633be6b227fd71f4f06ad7f46", "score": "0.69893616", "text": "public TestContext() {\n this(null);\n }", "title": ...
bb948d7f01503b0997b8795274b22261
public static native LLVMLibrary.LLVMGenericValueRef LLVMCreateGenericValueOfPointer(Pointer p);
[ { "docid": "fe93ef6df5a1e1032aa74e7b627e8d2b", "score": "0.80998963", "text": "public static GenericValue createPtr(Pointer<?> p) {\r\n return new GenericValue(LLVMCreateGenericValueOfPointer(p));\r\n }", "title": "" } ]
[ { "docid": "b7716bdfab059e4cc504c0c9c69b3500", "score": "0.68682593", "text": "public Pointer<?> toPointer() {\r\n return LLVMGenericValueToPointer(ref);\r\n }", "title": "" }, { "docid": "52e28cd5459c077ec961ed2351d3434e", "score": "0.61431926", "text": "public static nati...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a31fc9a9f857565a0f77942f478669ab", "score": "0.0", "text": "@Override\n\tpublic void sendCarta(String conteudo) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7961c8cad7dd75e3c98c697a327f19e0", "score": "0.0", "text": "@Override\r\n\tpublic boolean editInfoComment(InfoComment comment) throws Exception {\n\t\treturn commentdao.editInfoComment(comment);\r\n\t}", "title": "" } ]
[ { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.7037216", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.68683225", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n...
86aaa9839b004be7c80601d88d830ef8
This method was generated by MyBatis Generator. This method returns the value of the database column T_EXTERNAL_SERVICE_OBJECT.FILE_PATH
[ { "docid": "3cbac8e69a923c58fa3b45b2a672076c", "score": "0.5179411", "text": "public String getFilePath() {\r\n\t\treturn filePath;\r\n\t}", "title": "" } ]
[ { "docid": "cbb3ab2da9cc62c9a4510339c77d1103", "score": "0.58647627", "text": "java.lang.String getFilePath();", "title": "" }, { "docid": "cfafe87ba3c02437f77dd2c1d568259c", "score": "0.57874316", "text": "public String getFilePath() {\r\n return this.myIDFile.getFilePath();\...
2444b208153be21f6851a5463d43a910
find cost giving the item
[ { "docid": "79134d3620270f29621a4d7b59db4018", "score": "0.60933965", "text": "private static int find_cost(String a)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n for(int x = 0; x < name.size(); x++)\n {\n if(name.ge...
[ { "docid": "2772be2d5d0bce86c0584a4c9a4e6ac7", "score": "0.7498767", "text": "@Test\n\tpublic void getCostForItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\...
964cf3fb9503cde79e5f2b3cd2b31e06
Remove all the interior method blocks so we have exactly what this method will execute. Delayed construction to allow subblocks to be added
[ { "docid": "ffe3eef4c6bc7f65618c89618d875c12", "score": "0.0", "text": "private void findThisMethodsCode()\n {\n if ( !thisMethodsCode.isEmpty())\n {\n // Already done\n return;\n }\n\n if ( subCodeBlocks.isEmpty())\n {\n thisMethods...
[ { "docid": "cd1693e66249a2aca934960829a7d675", "score": "0.6565491", "text": "private void removeBlocks()\r\n {\r\n head.removeSelfFromGrid();\r\n for (Block b : body)\r\n b.removeSelfFromGrid();\r\n }", "title": "" }, { "docid": "5a250c7c94a58d6381462e7c697fbb...
4df7661202f6b8ebc027c4f83f080652
Returns the index of the Expense object.
[ { "docid": "b1a26160b97e4433ddf2168a0e04d832", "score": "0.78801596", "text": "public int findExpenseIndex(Expense e) {\n return expenseList.indexOf(e);\n }", "title": "" } ]
[ { "docid": "35e97777d29c14bf74964235c8246695", "score": "0.7339154", "text": "public int getExp_index() {\n return exp_index;\n }", "title": "" }, { "docid": "087737f35a969032a8a1cc75ebfe3885", "score": "0.70534366", "text": "@ApiModelProperty(value = \"The index of the ent...
d37562ad432e021335ab1d598ce02149
time complexity: O((RL)log(RL)), space complexity: O(1) 7 ms(68.09%), 35.8 MB(60.60%) for 200 tests
[ { "docid": "1eca35f4e7ff0e367f1ee3a21ef714c3", "score": "0.0", "text": "public int countPrimeSetBits4(int L, int R) {\n return IntStream.range(L, R + 1).map(i -> 0b10100010100010101100 >> Integer.bitCount(i) & 1)\n .sum();\n }", "title": "" } ]
[ { "docid": "32a7c13ae22465beaf3257f69d85480b", "score": "0.61457443", "text": "public static void main(String[] args)throws IOException {\n\t BufferedReader f = new BufferedReader(new FileReader(\"C-large.in\"));\r\n\t // input file name goes above\r\n...
6e6ac07b696369918f7d9c32afd6263a
Write code here that turns the phrase above into concrete actions
[ { "docid": "ae1d88392865d43d133b79cacce7ca92", "score": "0.0", "text": "@Then(\"The {string} table contains the following columns:\")\n\tpublic void the_table_contains_the_following_columns(String reportname, List<List<String>> listoflists) {\n\n\t\tReportsLib.verifyResultTableAvailability(reportname);\...
[ { "docid": "16063489700102f3d691c8a843288b9f", "score": "0.6732192", "text": "void actionMessage(String action);", "title": "" }, { "docid": "99f648ae5d7bb8c70dc2be5738066118", "score": "0.6730624", "text": "void performAction(String actionMessage){\n actionMessage = actionMes...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "89f4e9dc31de6212f065d3b066c43239", "score": "0.0", "text": "@Override\n\tpublic boolean tryRemove(Object key, long timeout, TimeUnit timeunit) {\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.7115143", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.67343336", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-g...
29ad5c6d996474f9e7e2b3f47bf63b6d
Get Unterartikel Sucht nach Unterartikel wenn vorhanden
[ { "docid": "ac23d518e36387c0629b3ae0e56e5e97", "score": "0.59330785", "text": "public List<Pair<IArtikel,Integer>> getUnterArtikelByID(int artikelnummer);", "title": "" } ]
[ { "docid": "598b7a3453a57e64886f99dee560e554", "score": "0.6502432", "text": "public IArtikel getArtikelByID(int artikelnummer);", "title": "" }, { "docid": "7db41ae0832c6ea8bad4bfdebd37100b", "score": "0.63186884", "text": "private Konstituentenfolge getIndirekteFrageNachSubjekt() {...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ae8316004cba6b16bf00e1ffaf4780ab", "score": "0.0", "text": "@Override\n\tpublic void receiveFA(int faDataType, String xml) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", ...
48d9c205ac3e446f0a72bdb2ba07dc88
$FF: renamed from: b (int, int, int) int
[ { "docid": "031bd5cee200233cb7f53e6604c3914d", "score": "0.0", "text": "public static int method_234(int var0, int var1, int var2) {\n return (var0 << 16) + (var1 << 8) + var2;\n }", "title": "" } ]
[ { "docid": "3a22ec4b1832428f3068229273c9a598", "score": "0.663911", "text": "public abstract int b(int i2, int i3);", "title": "" }, { "docid": "b5b50bf3e7a20f1df72605a90e956a06", "score": "0.6459881", "text": "interface C30585a {\n /* renamed from: b */\n void mo27952b...
a2346526a69302b385403c1798efcf8d
Remove the three days data
[ { "docid": "cee1a453be137c56c1789a14fe8b749e", "score": "0.6690047", "text": "public void deleteData() {\n LocalDate currentdate = LocalDate.now();\n String currentDay = new Integer(currentdate.getDayOfMonth()).toString();\n List<Weather> expiredData = weatherDataRepository.FindThre...
[ { "docid": "7fd18016c08930350c0a3566e20b9e20", "score": "0.59849674", "text": "@Scheduled(fixedDelay = 5000)\n\tpublic void deleteHistoricData() {\n\t\tlog.debug(\"start delete historic data\");\n\t\tList<Check> checks = checkService.findAll();\n\t\tfor (Check check : checks) {\n\t\t\tGregorianCalendar ...
f50df7df45a6d4ec0c3dc44276d78e75
Test case number: 10 / 1 covered goal: Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 130 TABLESWITCH L829 Case 45 true
[ { "docid": "b2d4c2c5f5d0ae67ddbf3fed85c67b5a", "score": "0.0", "text": "@Test\n public void test010() throws Throwable {\n Frame frame0 = new Frame();\n assertNotNull(frame0);\n \n ClassWriter classWriter0 = new ClassWriter((-3407));\n assertEquals(2, classWriter0.COMPUTE_FRA...
[ { "docid": "d32a7f464dbc43eb87239554f1c86b9b", "score": "0.7139916", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(16777221);\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"\";\n stringArray0[1...
149f30cb9c4d9a88d080e931605ba7e5
Attribute functions RGB Color
[ { "docid": "3a1ce8123c1417ec9b51ae1330be8e1b", "score": "0.0", "text": "public static void sglColor3f( float r, float g, float b )\n\t{\n\t\tcurrent().storage.color = new Color(r, g, b);\n\t}", "title": "" } ]
[ { "docid": "e6bf956bd98b771c61d679397f652632", "score": "0.74396783", "text": "int getColorR();", "title": "" }, { "docid": "fc27c7736d22612f64e3f1258b5c2693", "score": "0.7321347", "text": "long getColor();", "title": "" }, { "docid": "fc27c7736d22612f64e3f1258b5c2693", ...
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "81a7c69dbf49db851ef8520c69772635", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n ...
[ { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7392612", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "156c28fa8...
9f8f93bd561e8e8085152157c8e1431d
Sets the (file) type attribute.
[ { "docid": "b8317d3ac8d53f7592005f1d7d666304", "score": "0.64729565", "text": "public final void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}", "title": "" } ]
[ { "docid": "1e1924d954636cc3c565e103fd1de338", "score": "0.800754", "text": "public void setFileType(String value) {\r\n setAttributeInternal(FILETYPE, value);\r\n }", "title": "" }, { "docid": "436a43799d3984476351ff942d51b802", "score": "0.76782006", "text": "public void ...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "3426b8ba4532f0aa102c450da9336bf3", "score": "0.0", "text": "@Override\n\tpublic List<Map<String, Object>> prepareConnection2(int id) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "663ac6f718361fb243bf093a1c7ded6a", "score": "0.66285414", "text": "@Override\r\n\tprotected void Goukakyuu() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}"...
9be3fa694233c925aacb2f7b3e830e06
/ Validate page index range first.
[ { "docid": "10a887dd68f58c7bc81ef1a8382bee30", "score": "0.0", "text": "public void moveTo(int pageIndex) {\r\n\t\t\tPaging paging= ((Paging)target.getDelegatee());\r\n\r\n\t\t\tif (pageIndex<0 || pageIndex>paging.getPageCount()-1){\r\n\t\t\t\tthrow new AgentException(\"Page index out of bound (0-\"+(pa...
[ { "docid": "0e035cfc0baa97f736f512a583e90f4c", "score": "0.6775595", "text": "private void validate(int index) {\n\t\t\tif (index < 0 || index >= size)\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"start: \" + index + \" should be between 0 and \" + (size - 1));\n\t\t}", "title": "" ...
86a7f903d0759cb0586f1fcb336f2850
Number of buffers queued for write operations.
[ { "docid": "ab9725474d057e8f0ebeea6b3804393a", "score": "0.0", "text": "public Builder writeQueueLength(int writeQueueLength) {\n this.writeQueueLength = writeQueueLength;\n return this;\n }", "title": "" } ]
[ { "docid": "40e53c19c4048cb2e367df0c9d55047a", "score": "0.7792041", "text": "public int getNumBuffers() {\n \n\treturn bufpool.length;\n }", "title": "" }, { "docid": "daa1559c613a2ec31c0a8a0d2a4ce679", "score": "0.7365876", "text": "public int _getNumberOfEmptyBuffers() {\n\tin...
eb2d828bb4cc6ab115cc261d5b6dac8f
Returns the QValue corresponding to the given state and action.
[ { "docid": "4c5d45e3ecf40117402b1d9d24c437e4", "score": "0.69983", "text": "public float getQValue(QState state, QAction action) {\n\t\tFloat qValue = this.qValues.get(state).get(action);\n\n\t\tif (qValue == null) {\n\t\t\treturn 0f;\n\t\t}\n\n\t\treturn qValue.floatValue();\n\t}", "title": "" } ...
[ { "docid": "20d5cd0a86d85210f42e70dbdb37d2f1", "score": "0.6373064", "text": "public int getActionValue() {\n return action_;\n }", "title": "" }, { "docid": "20d5cd0a86d85210f42e70dbdb37d2f1", "score": "0.6373064", "text": "public int getActionValue() {\n return action_...
443c015ebd06058839def283760309a5
Caches the certificates in the entity cache if it is enabled.
[ { "docid": "af4a88aebf973d79637b4db4f5248c06", "score": "0.6072544", "text": "public static void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.Certificate> certificates) {\n\t\tgetPersistence().cacheResult(certificates);\n\t}", "title": "" } ]
[ { "docid": "0fd2c274c58a0ed832c6cabe0f380b2e", "score": "0.58612186", "text": "@ManagedOperation(description = \"Enable the resource cache.\")\n public void enableCache() {\n enabled = true;\n }", "title": "" }, { "docid": "cb089f7a65b7445c5aa00590118f35cf", "score": "0.5...
6f0b6b95a06d86145f2880adc29243ea
$ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__0" $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__0__Impl" ../org.eclipse.xtext.xbase.testlanguages.ui/srcgen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalXImportSectionTestLang.g:16339:1: rule__JvmWildcardTypeReference__G...
[ { "docid": "83269976502a460305f3281c783527a4", "score": "0.80878437", "text": "public final void rule__JvmWildcardTypeReference__Group_2_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xbase.test...
[ { "docid": "fb9a4f7ace2173a2d6180c0243bcdfa6", "score": "0.8281008", "text": "public final void rule__JvmWildcardTypeReference__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xbase.testlanguag...
d6bbdbd868ca493983e71eaa4155bb87
Creates the GETCHUNK message and sends it
[ { "docid": "59442a4a67800a957454c9531694b5f2", "score": "0.7315152", "text": "public void sendGetChunkMessage() throws IOException{\n String message = Message.createGetChunkHeader(this.hashed, this.peer.serverID, this.nextChunk);\n\n byte file[] = message.getBytes();\n ByteArrayOutp...
[ { "docid": "da807d38649f36b400d48d2e9da5b290", "score": "0.6747963", "text": "edu.usfca.cs.dfs.StorageMessages.RetrieveRequestToStorage getRetrieveChunkMsg();", "title": "" }, { "docid": "526773c1471c0dbde75abb57723fabd9", "score": "0.6566621", "text": "@Override\n public void run...
c566ed6bb25c6741f022cf92b9ff164a
The page token. string pageToken = 101 [(.options.FieldExtension.pagingInputToken) = true];
[ { "docid": "7c6870826f60df0b6cebaf5b6a8b76de", "score": "0.0", "text": "public Builder setPageTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n pageToken_ = value;\n...
[ { "docid": "3f978a300e1ac3c7bf94728a3074306a", "score": "0.7097492", "text": "public String pageToken() {\n return pageToken;\n }", "title": "" }, { "docid": "9cb150cbe15661a4657aa039e16a1297", "score": "0.60307467", "text": "public List setPageToken(java.lang.String pageToken) {...
eb35f01734b0c94f4a44dd5807ab18c4
Remove a nucleus. Cleans up child references
[ { "docid": "b59c7ca7c0d38b54364f0f38b56759d4", "score": "0.5671927", "text": "public void removeNuc(String nucName)\n\t\t{\n\t\t//Can also just do parent. but this will automatically fix problems if there is a glitch\n\t\tnuc.remove(nucName);\n\t\tfor(Nuc n:nuc.values())\n\t\t\t{\n\t\t\tn.child.remove(n...
[ { "docid": "e58409f714c90eec07cd8796acd56299", "score": "0.6805307", "text": "public void remover(){\n DatabaseReference firebaseRef = ConfiguracaoFirebase.getFirebaseDataBase();\n DatabaseReference crianca2Ref = firebaseRef\n .child(\"USUARIO-ACOMPANHAMENTO\")\n ...
5d34b1275b3df4135ed3571db027c900
Required default constructor for Firebase object mapping
[ { "docid": "49896e590eef72fcbde9e5d20262e54d", "score": "0.0", "text": "@SuppressWarnings(\"unused\")\n public Chat() {\n }", "title": "" } ]
[ { "docid": "1ae681a47e8d5c99d423d3be5ba73de4", "score": "0.658245", "text": "private FirebaseUtil(){}", "title": "" }, { "docid": "f4708544717974f3d499374221e6af98", "score": "0.63038206", "text": "private FirebaseHandler() {\n\t}", "title": "" }, { "docid": "6d3bbb6fad67...
e91e6b86cdc0d838d2fd53993e6d790b
Update the score of this group taking the values from a series of Yahtzee dice This method updates the score label if the group has not already been chosen
[ { "docid": "c7900b7deda619c12dd01eb6d4e02928", "score": "0.7220335", "text": "public void updateScore(YahtzeeDice[] dice)\n\t{\n\t\tif (!chosen)\n\t\t{\n\t\t\t// Get the score of the alternate system if needed\n\t\t\tif (usingJokerRules)\n\t\t\t{\n\t\t\t\tthis.score.setText(Integer.toString(category\n\t...
[ { "docid": "74836cd63c1e6cb0bd05eca3712841c2", "score": "0.63188934", "text": "void updateScore() {\n scoreLabel.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "42e62f6b0b9f21ae38ab236cfd126cae", "score": "0.63065517", "text": "@Override\n public void upda...
6a46c2a196c3e335b082d539450b28ba
This method was generated by MyBatis Generator. This method returns the value of the database column tb_coupon.available_start_time
[ { "docid": "7d34de07c863cb3096333118ef620f0d", "score": "0.68820435", "text": "public Date getAvailableStartTime() {\n return availableStartTime;\n }", "title": "" } ]
[ { "docid": "3093b54126518618b97859ee8564abd7", "score": "0.6044018", "text": "public long getAvailableTime(long start) {\n return (mEndTime > start) ? mEndTime : start;\n }", "title": "" }, { "docid": "d008e149dee01fd35cd3f045591cbb12", "score": "0.58451307", "text": "publi...
b317d1242a36ef592265b95bc4e8e7da
$ANTLR end "T__27" $ANTLR start "T__28"
[ { "docid": "e3e6fe14000c45f251edf432be3f4502", "score": "0.0", "text": "public final void mT__28() throws RecognitionException {\r\n try {\r\n int _type = T__28;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../br.ufmg.dcc.asml.ui/src-gen/br/ufmg/dcc/asml/ui/co...
[ { "docid": "68293c68be147e6c458cc65454e32174", "score": "0.5790321", "text": "private int yyr28() {\n { yyrv = new And(((Expr)yysv[yysp-3]), ((Expr)yysv[yysp-1])); }\n yysv[yysp-=3] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "2def32f774529048bb5420e93...
dd0bbdb0af51ff91baa120efffeb42c4
Adds element to the beginning of this list
[ { "docid": "31913c614c86cd9643b29306eba0ab07", "score": "0.60643804", "text": "public void addFirst(T element) {\r\n if (element == null)\r\n throw new NullPointerException();\r\n first = new Link<T>(element, first);\r\n }", "title": "" } ]
[ { "docid": "6bfbddce52abdf4bccd4529ac744a5ef", "score": "0.7743978", "text": "public void prepend(Element e) {\n\t\tassert (e != null);\n\t\tlist.add(0, e);\n\t}", "title": "" }, { "docid": "45cc0ba03954cc675b98ca78c85986c5", "score": "0.7299823", "text": "@Override\r\n public void ...
f1667ff97964a461abe9b01d2fabc07e
System.out.println(" user Dao"+user.getUsername()+" password"+user.getPaswword()+" "+user.getUs
[ { "docid": "54bc695e34391c098a78ac530a653bc8", "score": "0.0", "text": "public static boolean personDetails(Person_DTO person) throws SQLException, ParseException\r\n {\n \r\n String itemid =getNewItemIdPerson();\r\n ps2.setString(1,itemid );\r\n ps2.setString(2,person.getP_na...
[ { "docid": "decadceb0489f49544fe10f364cca67a", "score": "0.721043", "text": "void printUserData(User u) {\r\n\r\n\t\tSystem.out.println(\"Id = \" + u.getId());\r\n\t\tSystem.out.println(\"UN = \" + u.getUserName());\r\n\t\tSystem.out.println(\"Psw = \" + u.getPassword());\r\n\t\tSystem.out.println(\"Ph...
e0c6cf5be7722681e2c99a67412156ba
cancel job list by CancelJobParameter list on DashBoard
[ { "docid": "7fbaad76515140fdaa4a3e49cb22fd68", "score": "0.70162016", "text": "int cancelMultipleJobs(List<CancelJobParameter> parameters)\n\t\t\tthrows EdgeServiceFault;", "title": "" } ]
[ { "docid": "647b0aed4af265dabdc7e115a66a5c72", "score": "0.69645596", "text": "void cancel(JobInstance<?> jobInstance);", "title": "" }, { "docid": "18d40bddcd4636b0d4d3c9bef4af5921", "score": "0.6641057", "text": "public void cancel()\n {\n job.cancel();\n }", "titl...
533774c5e18d9cae9e1cbef3b9b7481a
this part has not been finished
[ { "docid": "532aca6e298f38360c08b784a056aa40", "score": "0.0", "text": "public void remove(K key) {\n LinkedListNode<K, V> node = getNodeForKey(key);\n if (node == null) return;\n LinkedListNode prevNode = node.prev;\n LinkedListNode nextNode = node.next;\n if (prevNod...
[ { "docid": "3592eaca1f59d9754b0d38139b304dd4", "score": "0.7260257", "text": "@Override\n protected boolean isFinished() \n {\n return false;\n }", "title": "" }, { "docid": "bb0d4d70bde6d2dfe985294f6e345065", "score": "0.7215829", "text": "@Override\r\n protected boolean isFi...
8e86736bfd2695f7174f73c44e65f328
Input 11 1 4 3 5 0 6 5 7 3 8 5 9 6 10 8 11 8 12 2 13 12 14
[ { "docid": "034705f4bb873fedcf1d74f01f35762d", "score": "0.0", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<Meeting> meetings = new ArrayList<>();\n while (sc.hasNextLine()) {\n if (!sc.hasN...
[ { "docid": "091be8785ba8a89f003d281b74c49fb4", "score": "0.6737288", "text": "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] input = new int[6];\n\t\tString [] temp = scan.nextLine().split(\" \");\n\t\t\n\t\tfor(int i =0;i<temp.length;i++) {\n\t\t\tint...
115569ae289ba1b0ad814b085d34f8d3
que va hacer antes de ejecutar
[ { "docid": "cc4d48f253a2ad171bfb46370dd7edd1", "score": "0.0", "text": "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(Mapa.this);\n pDialog.setMessage(\"Cargando Mapa\");\n pDialog.setIndeterminate(fa...
[ { "docid": "54fed678633888f96f8b64112b30c3e6", "score": "0.7863307", "text": "String ejecutar();", "title": "" }, { "docid": "70c6e6e424a6e7a602a364a2fbecb65c", "score": "0.72907335", "text": "private void ejecutar() {\n\t\tvista = new PrincipalUI(this);\n\t\ttry {\n\t\t\tsetControla...
0e025aa86150c207b59babd7f3652a3a
Configuration point that helps customize query parameter name which is used to lookup query for credentials.
[ { "docid": "e3d8dea9cc227947edcb0d28c97e84ca", "score": "0.0", "text": "String getApiKeyName();", "title": "" } ]
[ { "docid": "01a3e7e6a957f827b60c40cb9fc79f57", "score": "0.5820885", "text": "@Override\n public abstract String getQueryParameter(String key);", "title": "" }, { "docid": "c21e21a2b70d990cbd80a3b0829bcba4", "score": "0.56499654", "text": "public void setQueryName(String queryNam...
b4b866f0a991445c7b414c9d957b8103
Method that gets the day from a Date object.
[ { "docid": "2bd031131da5d775c577eb4230879b56", "score": "0.7109043", "text": "public int getDayFromDateObject(Date date) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n return cal.get(Calendar.DAY_OF_MONTH);\n }", "title": "" } ]
[ { "docid": "deafe0c1336eeaa68ce7a9421eda7652", "score": "0.8191957", "text": "public Day getDay(Date date) {\n return getDay(date, 0);\n }", "title": "" }, { "docid": "81b27ff5a96b14c32b3bd86e8b2bb3a3", "score": "0.70298433", "text": "public int getDay() {\n\t\treturn theDa...
b4df367ebcd78bad833d533cc60103c4
$FF: Couldn't be decompiled
[ { "docid": "c47a300014b18925b7e75ec15f9a31f6", "score": "0.0", "text": "public void run() {\n }", "title": "" } ]
[ { "docid": "7ecc14d368278231b0c4139e2544cda2", "score": "0.8851398", "text": "static void method_9469() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "4cda4de1cf15c34a00e2718bdf6e2749", "score": "0.88238764", "text": "static void method_5472() {\r\n ...
0fd39ded0a0ed46d6cfcbaa2f077a70d
Problema 4: DEVOLVER LOS MEJORES K ELEMENTOS DEL ARRAY (LOS PRIMEROS K ELEMENTOS, PORQUE ES COLA DE PRIORIDAD) Disenyar un metodo estatico, generico e iterativo cPTopK que, dado un array de datos v y un entero k, devuelva una Cola de Prioridad con los k mejores (Top K) datos de v. El metodo debe tener un coste O(X log ...
[ { "docid": "70b886e7e32c2591a17ceedd869f4bd1", "score": "0.7639915", "text": "public static <E extends Comparable<E>> ColaPrioridad<E> cPTopK(E[] v, int k) {\n ColaPrioridad<E> cP = new MonticuloBinario<E>(k+1);\n for(int i = 0; i<v.length; i++){\n cP.insertar(v[i]);\n ...
[ { "docid": "502fe6c7008d5ba983ac0d7566861e73", "score": "0.6473964", "text": "public int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> hm = new HashMap<>();\n for(int val: nums){\n if(!hm.containsKey(val)) hm.put(val, 1);\n else hm.put(val, hm.get(va...
c3be6d96b7f3ead2ce66db05b2bc3954
Sets the lastModifiedById value for this CapMan__Fund__c.
[ { "docid": "e83f804dcabf79d84c087fb5f83a6e10", "score": "0.6479125", "text": "public void setLastModifiedById(java.lang.String lastModifiedById) {\n this.lastModifiedById = lastModifiedById;\n }", "title": "" } ]
[ { "docid": "9d343326509e786c5193bb05969b9497", "score": "0.57150316", "text": "public void setLastModified(long lastModified) {\n this.lastModified = lastModified;\n }", "title": "" }, { "docid": "50af7b11bcd87998372fa055a4ad012a", "score": "0.5528647", "text": "public Bu...
c5db1789bf837be2965f6bd2f817ff1a
.csv.Resource resource = 1;
[ { "docid": "45a5c436740939ae44b1c30cf03de8fa", "score": "0.0", "text": "Message.ResourceOrBuilder getResourceOrBuilder();", "title": "" } ]
[ { "docid": "609b510363bca167473181383adeb525", "score": "0.6185216", "text": "public void CSVoutput(){\n\t\t\n\t}", "title": "" }, { "docid": "04006d3b9873d3e600ea5a0c80f13dc5", "score": "0.6179501", "text": "private CSV(){}", "title": "" }, { "docid": "4401bd7e8976a07c0c...
9853334472254fde99642985efc44ba9
/ Generate the Message and Field related source code.
[ { "docid": "c53cd52ea87af26d8aab44cb76d92758", "score": "0.53736484", "text": "public void generate(Task task) {\r\n try {\r\n generateFieldClasses(task);\r\n generateMessageBaseClass(task);\r\n generateMessageFactoryClass(task);\r\n generateMessag...
[ { "docid": "cf3e79bf533e393e4822d2001062d96b", "score": "0.603201", "text": "private CSMessage() {\n initFields();\n }", "title": "" }, { "docid": "04b2b94956a27dbc597b1e37ac58f405", "score": "0.60225755", "text": "final String javaSource() {\n String typeName = entity...
bc797a27e7f08fada206a8125dbb20fc
.cosmos.base.v1beta1.Coin principal = 3 [(.gogoproto.nullable) = false];
[ { "docid": "33f55624328f526086074f39a381ee38", "score": "0.61372256", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> \n getPrincipal...
[ { "docid": "601526f9b68158bf68f93e98c8c101c7", "score": "0.8578784", "text": "cosmos.base.v1beta1.CoinOuterClass.Coin getPrincipal();", "title": "" }, { "docid": "601526f9b68158bf68f93e98c8c101c7", "score": "0.8578784", "text": "cosmos.base.v1beta1.CoinOuterClass.Coin getPrincipal();...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "35be8d093c232e6d5818db6dd6ef15c9", "score": "0.0", "text": "@Override\n public boolean removeAll(Collection<?> c) {\n return false;\n }", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { ...
17279a1a39caa5c3bbbcc07466168533
$ANTLR end "rule__DmxMultiplicativeExpression__Group_1__1" $ANTLR start "rule__DmxMultiplicativeExpression__Group_1__1__Impl" InternalPubProto.g:10663:1: rule__DmxMultiplicativeExpression__Group_1__1__Impl : ( ( rule__DmxMultiplicativeExpression__RightOperandAssignment_1_1 ) ) ;
[ { "docid": "35ec259171d5fc32dddb718d709f1dfe", "score": "0.81429344", "text": "public final void rule__DmxMultiplicativeExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:10667:1: ( ( ...
[ { "docid": "211180a1cded1d788943e9be5ae77ba6", "score": "0.79677474", "text": "public final void rule__XMultiplicativeExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-g...
453c0db11dff8730bbd6a28a44ed2629
This method was generated by MyBatis Generator. This method returns the value of the database column teacher.t_address
[ { "docid": "8e1ea44a08677715c9b148e7e4cf56e7", "score": "0.71021867", "text": "public String gettAddress() {\n return tAddress;\n }", "title": "" } ]
[ { "docid": "9de3029e6f23abeb8392a27a5bb5a6ad", "score": "0.7002383", "text": "public String getTaddress() {\r\n return taddress;\r\n }", "title": "" }, { "docid": "b6a0bf0df64799451c5c8cf7c22b0f51", "score": "0.6195714", "text": "public String getAddress()\n {\n r...
bd18e11ff4189a2ba48bdfc8215e84cb
Todo: Make list of alarms; Todo: Sort them
[ { "docid": "f731c5783e8a4d0b34f69863086854a4", "score": "0.0", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n mTextView = findViewById(R.id.textView);\n\n Button bu...
[ { "docid": "3c1fa499e028beae2ef058f1d5de6e10", "score": "0.68972534", "text": "public List<ResourceAlarm> getAlarms();", "title": "" }, { "docid": "d747a99ff8127304edccb90047e9c058", "score": "0.6648322", "text": "private void getAlarmsFromPreferences(){\n String tmpString = s...
afcf8c0b9b6f2e81f4c8a0096a3d4908
recursively calculates integer base to power ( exponent )
[ { "docid": "58678b416451b5dad1d7c3b5c5c6a5e0", "score": "0.79978204", "text": "private int toPower( int base, int exponent )\r\n {\r\n if( exponent == 0 )\r\n {\r\n return 1;\r\n }\r\n return base * toPower( base, exponent - 1 );\r\n }", "title": "" } ]
[ { "docid": "0dc7ab5b3e45ea30715f3b256b85ce8f", "score": "0.7861598", "text": "private static int power(int base, int exponent)\r\n\t{\r\n\t\treturn (int)(Math.pow(base, exponent));\r\n\t}", "title": "" }, { "docid": "b3b028583bbf8ebb25b50d4c1d2cafd2", "score": "0.7700947", "text": "p...
1b544633c2886b0d8ef18c775c81cd06
/ renamed from: b
[ { "docid": "28ac58c4f17b9f8da2d0ad06b9f1efa8", "score": "0.0", "text": "public void mo43b(@C0193h0 String str, @C0193h0 C0046n nVar) {\n if (TextUtils.isEmpty(str)) {\n throw new IllegalArgumentException(\"parentId is empty\");\n } else if (nVar != null) {\n this.f34a...
[ { "docid": "181c64ca98d18a777ef722210022db02", "score": "0.648398", "text": "public abstract T b(B b2);", "title": "" }, { "docid": "7c7c2a4f2eea5bd9b0cfc4a996b83139", "score": "0.6413588", "text": "@Override\r\n\t\tpublic void operatorB() {\n\t\t\t\r\n\t\t}", "title": "" }, ...
d979b9fa324756af40e9509a2f95b47c
Constructs a new ArrayQueue.
[ { "docid": "749fc17a0edfc9e7c41d861833a1475e", "score": "0.73757243", "text": "public ArrayQueue() {\r\n backingArray = (T[]) new Object[INITIAL_CAPACITY];\r\n front = 0;\r\n back = 0;\r\n size = 0;\r\n }", "title": "" } ]
[ { "docid": "9e77104cec042fc4d721623119a001f5", "score": "0.7858023", "text": "public ArrayQueue() {\n\t\telements = new Object[5];\n\t\tcurrentSize = 0;\n\t}", "title": "" }, { "docid": "8c4899fdd6d1aa900fe50e8e4ff3fff0", "score": "0.76668066", "text": "public MyQueueArray() {\r\n\t\...
b747d347962ac135138fc7b12679dd66
int32 oneof_1223 = 1223;
[ { "docid": "caac9cc4433aa3f22385422821b042aa", "score": "0.0", "text": "public int getOneof1223() {\n if (hugeOneofCase_ == 1223) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" } ]
[ { "docid": "14d9de64d1d4966292bdc0add6135b79", "score": "0.6228468", "text": "void mo107677b(Integer num);", "title": "" }, { "docid": "70d84d3289af5625e363d1fdc64f1066", "score": "0.61850554", "text": "int intOf();", "title": "" }, { "docid": "bcb5fa3b11bca848a5e6cfd3b39...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9a690e88e5c9b8321f3bed2a3b4e01d1", "score": "0.0", "text": "@Override\n\tprotected void initViews() {\n\t\tbt_photo_picker = (Button) findViewById(R.id.bt_photo_picker);\n\t\tbt_photo_compress = (Button) findViewById(R.id.bt_photo_compress);\n\t\tbt_long_screen_shoot = (Button) findViewById(...
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", ...
91d03327410be533f06120b186765fb4
Gets Says if the other player skips the turn.
[ { "docid": "03dea736ce276d02e2bf39f250d63e28", "score": "0.64647025", "text": "public boolean isSkipTurn() {\n return skipTurn;\n }", "title": "" } ]
[ { "docid": "4b1c3f302b3be93afb77b742a60bd3be", "score": "0.6569402", "text": "private void makePlayerSkipTurn(){\n gameCon.getTurnCon().skipTurnPlayerVerval();\n }", "title": "" }, { "docid": "a670af8d30083cd52e40923000d07e21", "score": "0.6179817", "text": "public void set...
6009f72ee4b7dae83e82d8db3dbd4d02
Returns the content of the choice.
[ { "docid": "349fd0bf07a6106a47fd600756e68ddf", "score": "0.6948809", "text": "public String getChoice() {\n return choice;\n }", "title": "" } ]
[ { "docid": "3288a16f1ff7fffc889e869fc466122a", "score": "0.6887055", "text": "java.lang.String getChoice();", "title": "" }, { "docid": "0d38a498e6adfe938c6aa919d266856c", "score": "0.67758167", "text": "public java.lang.String getChoice() {\n java.lang.Object ref = choice_;\n...
e4f709d9d078602844bbd09cee0b6c0a
Set resource's minimum price with a trader
[ { "docid": "9c62b83715bc8bf9d98608ea6f0305ea", "score": "0.7935354", "text": "public ResourceInfo setMinPriceWithTrader(int minPrice) {\n this.minPriceWithTrader = minPrice;\n\n return this;\n }", "title": "" } ]
[ { "docid": "aaeccec888feb18c2104b71cedb569c2", "score": "0.67841375", "text": "public void setMinDepositPremium(gw.pl.currency.MonetaryAmount value);", "title": "" }, { "docid": "a48518dd885a4adcfd8da86a61dcaf0a", "score": "0.6718721", "text": "void setMin(double min);", "title":...
3cc21096b6eca779a688539d1968913e
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
[ { "docid": "265f681892fe5d936aa0b03a3d908ab8", "score": "0.0", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n //noinspection SimplifiableIfStatement\n\n case R.id.action_name:\n\n Intent intent =...
[ { "docid": "c12f9377447ba11f11e99e1c184f2319", "score": "0.7725491", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n//\t\tcase android.R.id.home:\r\n//\t\t\t// go to previous screen when app icon in action bar is clicked\r\n//\t\t\tInten...
bbeb6aec46a3a73447c8ddf8421fef4d
Find if the Queen move is legal in 15 or so operations
[ { "docid": "9109daf413600b1eb6b70159ac4c83b6", "score": "0.0", "text": "public boolean isValidMove(Move move) {\n return (abs(move.getStart()[0] - move.getEnd()[0]) == abs(move.getEnd()[1] - move.getStart()[1]))\n ||\n (move.getStart()[0] == move.getEnd()[0] && move....
[ { "docid": "70e74114e97640c4fc206f2f4623f738", "score": "0.71098334", "text": "private boolean isQueen(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_QUEEN || aux == Cells.RED_QUEEN);\r\n }", "title": "" }, { "docid": "ea52c6f3f82992ce5b171...
31678944148125a29c054d0345bbd14a
End of constructor PID controller for the robot, slows it down as it gets to the setpoint
[ { "docid": "04d27092e7e08aa15e62086c8e072a7b", "score": "0.67342556", "text": "private void PID() {\n\t\t// Get error and integral from error\n\t\tdouble error = setpoint - (Math.abs(train.getLeftDistance() + train.getRightDistance()) / 2);\n\t\tthis.integral += (error * 0.02);\n\t\t\n\t\t// Get speed f...
[ { "docid": "47fe29b9727757ce7819fbf0c4f035d6", "score": "0.7453867", "text": "@Override\n protected void end() {\n this.getPIDController().disable();\n Robot.driveBasePID.setAllMotors(0);\n }", "title": "" }, { "docid": "432035cae101a5a05f3dc3eb7a49ce33", "score": "0.7318775", ...
d282e3f7d7cb3f51c8878290fe465187
Test case number: 49 /Coverage entropy=0.0
[ { "docid": "a3eee14a06bcc19932d07d41df5a5c57", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n MethodWriter.readInt((byte[]) null, 1125);\n fail(\"Expecting exception: NullPointerException\");\n ...
[ { "docid": "c40bf506d7139506e0e2b9f810637cff", "score": "0.68797386", "text": "public void calculateCoverageTest(){\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"calculateCoverageTest()\");\r\n\t}", "title": "" }, { "docid": "eb91d6f4cebb8fb86024a8fa2618303a", "sc...
ceb3a17736bf24a757c9d5b1d75eb125
Get the needed time of a highscore entry at a given position. Note: The position counting starts at zero. The first entry should contain the best result. See the specification in the task assignment for a definition of 'best' in the highscore.
[ { "docid": "a2f8b1558f883e09d8ba85db55a26651", "score": "0.795093", "text": "public double getTimeAtHighscorePosition(int position) {\n\t\ttry {\n\t\t\treturn hm.getScores().get(position).getNeededTime();\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t return -1;\n\t\t}\n\t}", "title": "" }...
[ { "docid": "1964195af6ca0b8ff07d3d13113fc105", "score": "0.6775368", "text": "public long getBestTime() {\n return legTimes.get(1) + legTimes.get(2);\n }", "title": "" }, { "docid": "46ddc4572093ca3448f70bc2947d52a3", "score": "0.61875343", "text": "public int getRoundsPlayedAtHi...
a278bc03c17061b5c9bc5ebb8e9488ce
Move the rule down
[ { "docid": "30ef765c74eb5ecb3455b004e35b6453", "score": "0.72981465", "text": "@Test\n public void moveDownRuleTest() throws ApiException {\n String storeId = null;\n String ruleId = null;\n api.moveDownRule(storeId, ruleId);\n\n // TODO: test validations\n }", "tit...
[ { "docid": "cf25945ed33108b72b6c26ede70f3d4a", "score": "0.6667166", "text": "public void moveDown()\n\t{\n\t\tmove(0, 1);\n\t\t//cancelMovement = true;\n\t\tfollowBehaviour.stopBehaviour();\n\t}", "title": "" }, { "docid": "242d5f374a63b0fe84a22c5e70b07f08", "score": "0.63839394", "...
b296cfb7a3ecf7c6f0de1241e7dc12e3
/ 93: / 94:
[ { "docid": "1ccff3b9388829c4f2a04f44a017ad65", "score": "0.0", "text": "CompositeByteBuf(ByteBufAllocator alloc)\r\n/* 95: */ {\r\n/* 96: 119 */ super(2147483647);\r\n/* 97: 120 */ this.alloc = alloc;\r\n/* 98: 121 */ this.direct = false;\r\n/* 99: 122 */ this.maxNumCompo...
[ { "docid": "2f3e7c4f4d0072a55c8e0187be049a27", "score": "0.6270326", "text": "public void mo9610b() {\n }", "title": "" }, { "docid": "b7d3abe6b9b1d5ab0c45e5cd3b9613a8", "score": "0.62107646", "text": "public int k_()\r\n/* 140: */ {\r\n/* 141:125 */ return 9;\r\n...
03e4af7104f605c3ad471dc1df7fd62b
Creates a new instance of the Slider control
[ { "docid": "f0ddc93ff4c135c03c0cf21c26f56e30", "score": "0.5750119", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic Slider(BaseScreen screen, Orientation orientation) {\n\t\tsuper(screen);\n\n\t\tsetLayoutManager(new SliderLayout<V>());\n\n\t\tthis.orientation = orientation;\n\n\t\telThumbLock = ne...
[ { "docid": "e12e4b74691b587c16e174fbce1ff6fa", "score": "0.7821947", "text": "private Slider prepareSlider() {\n Slider slider = new Slider();\n slider.setMax(5000);\n slider.setMin(timeStep);\n slider.setPrefWidth(300d);\n slider.setLayoutX(-150);\n slider.setL...
2181e594142ed0dc674cd2a09134f1f3
The Surface has been created, acquire the camera and tell it where to draw.
[ { "docid": "836d2d88980ce925f999676f0d2a5d88", "score": "0.7374351", "text": "public void surfaceCreated(SurfaceHolder holder) {\n camera_ = Camera.open();\r\n try {\r\n camera_.setPreviewDisplay(holder);\r\n } catch (IOException exception) {\r\n camera_.re...
[ { "docid": "425f34264dad1513af95a4e53bd6979a", "score": "0.7686754", "text": "public void surfaceCreated(SurfaceHolder holder)\r\n {\r\n \t \tLog.d(\"camerabasic\", \"PreviewWindow.surfaceCreated called\");\r\n\r\n // The Surface has been created, acquire the camera and tell it where\r\n\t...
ca3a4ea89512b4b032c8e4b2ca4c91e3
Create a file containing text.
[ { "docid": "47cef896ee649fdc3a8daa3024ff46e7", "score": "0.6289383", "text": "@NotNull\n private static DLanguageFile createFileFromText(@NotNull Project project, @NotNull String text) {\n return (DLanguageFile) PsiFileFactory.getInstance(project).createFileFromText(\"A.hs\", DLanguage.INSTANC...
[ { "docid": "2dbdcbb8a975acf5ecd75250ee17a42d", "score": "0.77930987", "text": "private File createTextFile(String text) throws IOException\n {\n File file = File.createTempFile(\"data\", \".txt\");\n PrintStream printStream = new PrintStream(file);\n printStream.print(text);\n ...
809b5f46b4fb3d64d16216fb0c213022
metodo que obtem um trip atraves do id
[ { "docid": "eb5cacfb54d83b10640d5225d1430cdc", "score": "0.7007921", "text": "Trip getTripById(Long id);", "title": "" } ]
[ { "docid": "65d8d66b28555ad21e52a555bc41da52", "score": "0.66911477", "text": "public Trip create(long id);", "title": "" }, { "docid": "d7393537a32a854a6f17abb132aa4c36", "score": "0.6627996", "text": "public void addTrip(int userId, Trip trip);", "title": "" }, { "docid...
ee87687839be9d654d070c77bb8b4b81
Checks if a document already exists in Elasticsearch index by issuing a get request on the identifier
[ { "docid": "65c328cd4d1c2a31b727fda7c600eaf0", "score": "0.65109235", "text": "private boolean lookupId(String id) {\n if (esClient == null)\n esClient = TransportClientSingleton.getEsClient(esNodes, esClustername);\n return esClient.prepareGet(esIndex, esType, id).get().isExist...
[ { "docid": "bb251484efa8d89bd4b2e92e469bd77e", "score": "0.6847687", "text": "public boolean exists (String index, String type, String id) {\n GetRequest getRequest = new GetRequest(index, type, id);\n getRequest.fetchSourceContext(new FetchSourceContext(false)); //Disable fetching _source...
e7d57bc3bceabf9eaa2c48c730bbf110
/ Slows the bot down to speed 0.
[ { "docid": "97aab0c0ec9944639d015c6e075ebbd0", "score": "0.58945566", "text": "public void slowDown(boolean isDirectionForward)\n {\n if(!isDirectionForward)\n {\n for (int i=11; i>=0; i--)\n {\n ...
[ { "docid": "386400d66c4145ab4f58d684058b94f6", "score": "0.7552893", "text": "public void speedDown() {\r\n\t\t--this.speed;\r\n\t}", "title": "" }, { "docid": "7cee1454c62a52293c42db22ceaff264", "score": "0.7242057", "text": "public void speedDown(){\n move.setRate(0.2);\n ...
60ca5017ea7f40390bc448f43fda6f89
The getName method returns the name of the ship.
[ { "docid": "e59170e69641cad7a4402d9ccab9fd2f", "score": "0.0", "text": "public String getName()\n\t{\n\t\treturn name;\n\t}", "title": "" } ]
[ { "docid": "d232aaa34a8d2b694c8a755d747b5ee0", "score": "0.83150333", "text": "public String getShipName()\n\t{\n\t\treturn shipName;\n\t}", "title": "" }, { "docid": "1ca1a2259a1a487edb1b5b197b61f425", "score": "0.82302797", "text": "public String getShipName() {\r\n return s...
249b3ccab8d6cc191d1becffc0b50a99
2. Using sorting and two ptr approach Time Complexity: O(nlogn) + O(n^2) => O(n^2)
[ { "docid": "fd0a3363d7dd0fe9fa81413d180a347f", "score": "0.0", "text": "public boolean tripletSum2(int[] a, int sum) {\r\n\t\tint n = a.length;\r\n\r\n\t\t// 1.Sort the given array\r\n\t\tArrays.sort(a);\r\n\r\n\t\t// 2. Take element one by one from 0th the index\r\n\t\tfor (int i = 0; i < n - 2; i++) {...
[ { "docid": "0d7b715112b1e78c9efd04388b84d8a5", "score": "0.6757067", "text": "private static int[] usingSortingAndTwoPointer(int[] arr, int length, int k) {\n int start = 0, end = length - 1;\n sortArray(arr, start, end);\n while (start < end) {\n if (arr[start] + arr[end...
b8d053498fb961a915b0992a15d6e7ab
Checks to see if a chunk exists at x, y
[ { "docid": "aeea942a8c2324f0e5d32ffaab09a356", "score": "0.81270427", "text": "public boolean chunkExists(int x, int y, int z)\n {\n return true;\n }", "title": "" } ]
[ { "docid": "5abf2c657e9a125784422a850ac33c78", "score": "0.6882164", "text": "public static boolean isValidChunkCoord(double x, double y) {\r\n\t\treturn (x >= 0 && x < Settings.maxChunksX.get() && \r\n\t\t\t\ty >= 0 && y < Settings.maxChunksY.get());\r\n\t}", "title": "" }, { "docid":...
64f5029daa308b52c7a891ade74a9fd1
Create the game and initialise its internal map.
[ { "docid": "0b31d4e3e91f0284912eec403714f484", "score": "0.0", "text": "public Game() \n {\n player = new Player(10);\n createRooms();\n parser = new Parser();\n itemList = new HashMap<String, String>();\n previousRooms = new Stack<Room>(); \n playerInventory...
[ { "docid": "5a5e80fd3ba049d2edafc889ab0358d4", "score": "0.7712794", "text": "private void initiate() {\n gameWorld = new Map(WIDTH, HEIGHT, RANDOM);\n\n for (int i = 0; i < RANDOM.nextInt(((WIDTH * HEIGHT) / 20)) + (WIDTH * HEIGHT) / 50; i++) {\n if (i == 0) {\n ...