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
creating dummy user to fetch
@Test public void getEmployeeById() { userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertNotNull(employeeResource.getEmployee("dummy")); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public void setupUser() {\n }", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void newUser(User user);", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public User getUser(String name);", "public User getUser(String name);", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "private void createUser(final String email, final String password) {\n\n }", "public UserAuthToken createUser(CreateUserRequest request);", "User getUser(String username);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "private User() {}", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "int newUser(String username, String password, Time creationTime);", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "User getUser(String userName) throws UserNotFoundException;", "UserModel retrieveUserModel(String username, String password);", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.7311522", "0.7232854", "0.7155367", "0.6960321", "0.6923856", "0.68625444", "0.68624395", "0.67898864", "0.6771126", "0.6705385", "0.66845834", "0.66408443", "0.6636151", "0.66324365", "0.66104674", "0.6593508", "0.65916556", "0.6583675", "0.6583543", "0.65673333", "0.65028965", "0.648562", "0.6481003", "0.6476652", "0.64627755", "0.64477295", "0.64429927", "0.64096457", "0.64065117", "0.6395996", "0.6395679", "0.6391205", "0.63864195", "0.63846505", "0.6374446", "0.6369601", "0.63579005", "0.635481", "0.63254845", "0.63173753", "0.63164604", "0.6307095", "0.6300897", "0.62857485", "0.6282645", "0.6282076", "0.6280906", "0.6278586", "0.62754834", "0.62724876", "0.6268403", "0.62603164", "0.62508744", "0.62444174", "0.62444174", "0.6237968", "0.6235731", "0.6233614", "0.62324584", "0.62324584", "0.6232336", "0.6228482", "0.6228077", "0.6222829", "0.6210411", "0.6209093", "0.6208135", "0.6207418", "0.6203299", "0.6192439", "0.61894506", "0.61859125", "0.6184391", "0.61817783", "0.61778563", "0.6177479", "0.61721206", "0.61705077", "0.61607975", "0.6158617", "0.61566514", "0.61564827", "0.6148279", "0.61478347", "0.6140469", "0.6129462", "0.61288553", "0.6128664", "0.6121954", "0.6115498", "0.61098063", "0.61075324", "0.61071134", "0.61018974", "0.6099562", "0.60928637", "0.6087048", "0.60816157", "0.6078336", "0.60764813", "0.6073094" ]
0.0
-1
creating dummy user to fetch
@Test public void getEmployeeByIdCatch() { userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertNull(employeeResource.getEmployee("notdummy")); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void setupUser() {\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "public void newUser(User user);", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User getUser(String name);", "public User getUser(String name);", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void createUser(final String email, final String password) {\n\n }", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUser(String username);", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "private User() {}", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "int newUser(String username, String password, Time creationTime);", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "UserModel retrieveUserModel(String username, String password);", "User getUser(String userName) throws UserNotFoundException;", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.73131156", "0.7233597", "0.71575177", "0.6962776", "0.6924706", "0.68638307", "0.6863793", "0.6792539", "0.6771958", "0.6705246", "0.6687561", "0.66420436", "0.6639283", "0.6631671", "0.6612312", "0.6596384", "0.6594715", "0.6585858", "0.6584952", "0.6569473", "0.6506312", "0.6489307", "0.6484966", "0.6477306", "0.646144", "0.644858", "0.6445311", "0.6408408", "0.6407468", "0.63978565", "0.6396243", "0.63940376", "0.6387163", "0.63864005", "0.6372945", "0.6372379", "0.635924", "0.63574576", "0.6328131", "0.63193095", "0.63188463", "0.6307785", "0.63003224", "0.62876165", "0.6284214", "0.6283761", "0.6281222", "0.62774754", "0.62759334", "0.6270499", "0.6268229", "0.6263155", "0.6251893", "0.62434274", "0.62434274", "0.62407106", "0.6238377", "0.6236977", "0.6235345", "0.62310207", "0.6230986", "0.6230986", "0.62284994", "0.6223396", "0.6214226", "0.62116283", "0.6210709", "0.6208149", "0.62057734", "0.6191341", "0.6190706", "0.61844915", "0.61828005", "0.61821055", "0.61796534", "0.61786324", "0.6174487", "0.6170745", "0.616353", "0.6160478", "0.61591953", "0.6158123", "0.6150533", "0.6148183", "0.6141441", "0.61317027", "0.6131593", "0.6129221", "0.612194", "0.6118403", "0.6109835", "0.61057925", "0.6105422", "0.6100869", "0.60972756", "0.6094099", "0.60887253", "0.6082963", "0.6078577", "0.60748726", "0.6072377" ]
0.0
-1
creating dummy user to fetch
@Test public void getAvailableEmployeeById() { userDAO.createUser(new User("dummy3", "dummy3", 1)); //creating dummy shiftlist shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); //test assertNotNull(availableEmployeeResource.getAvailableEmployees(new AvailableEmployee(2,"2017-02-02",3))); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01),1,"dummy3"); userDAO.removeUser("dummy3"); //test clean up assertNull(userResource.getUser("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void setupUser() {\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void newUser(User user);", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "public User getUser(String name);", "public User getUser(String name);", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void createUser(final String email, final String password) {\n\n }", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUser(String username);", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "private User() {}", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "int newUser(String username, String password, Time creationTime);", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "User getUser(String userName) throws UserNotFoundException;", "UserModel retrieveUserModel(String username, String password);", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }" ]
[ "0.73123133", "0.7233645", "0.7156817", "0.69614357", "0.69240624", "0.6863686", "0.6863081", "0.6791472", "0.677324", "0.6705743", "0.66866577", "0.66405857", "0.66374475", "0.6631071", "0.6611255", "0.6594714", "0.65927863", "0.6585084", "0.6584849", "0.65678775", "0.65042096", "0.6486678", "0.64822185", "0.64764154", "0.6460975", "0.64490503", "0.6443802", "0.6407842", "0.6407039", "0.6397461", "0.63961685", "0.63921326", "0.6387317", "0.63853246", "0.6372333", "0.6371762", "0.6357993", "0.6354753", "0.63275325", "0.6318533", "0.6317005", "0.6307315", "0.6302032", "0.6286947", "0.6282521", "0.62824583", "0.628229", "0.6277154", "0.62763506", "0.6270477", "0.6266966", "0.6261111", "0.62494147", "0.6242866", "0.6242866", "0.6239118", "0.6237484", "0.62349486", "0.62349176", "0.62303656", "0.62303656", "0.6229617", "0.62284833", "0.62219113", "0.6211897", "0.6210892", "0.6208338", "0.620712", "0.62034833", "0.6190686", "0.6189853", "0.61834383", "0.61817455", "0.618163", "0.6178174", "0.6177703", "0.6173798", "0.61698365", "0.6161778", "0.6159824", "0.61585945", "0.615687", "0.61492646", "0.6147785", "0.61401397", "0.6129953", "0.61295706", "0.61289316", "0.61202854", "0.6116667", "0.61094373", "0.6104698", "0.6104611", "0.6099497", "0.609643", "0.6093187", "0.60884345", "0.6081985", "0.6077299", "0.6073671", "0.6071355" ]
0.0
-1
creating dummy user to fetch
@Test public void getEmployeeByCategory() { userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertNotNull(employeeResource.getEmployeeCategory(1)); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void setupUser() {\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "public void newUser(User user);", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User getUser(String name);", "public User getUser(String name);", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void createUser(final String email, final String password) {\n\n }", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUser(String username);", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "private User() {}", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "int newUser(String username, String password, Time creationTime);", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "UserModel retrieveUserModel(String username, String password);", "User getUser(String userName) throws UserNotFoundException;", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.73131156", "0.7233597", "0.71575177", "0.6962776", "0.6924706", "0.68638307", "0.6863793", "0.6792539", "0.6771958", "0.6705246", "0.6687561", "0.66420436", "0.6639283", "0.6631671", "0.6612312", "0.6596384", "0.6594715", "0.6585858", "0.6584952", "0.6569473", "0.6506312", "0.6489307", "0.6484966", "0.6477306", "0.646144", "0.644858", "0.6445311", "0.6408408", "0.6407468", "0.63978565", "0.6396243", "0.63940376", "0.6387163", "0.63864005", "0.6372945", "0.6372379", "0.635924", "0.63574576", "0.6328131", "0.63193095", "0.63188463", "0.6307785", "0.63003224", "0.62876165", "0.6284214", "0.6283761", "0.6281222", "0.62774754", "0.62759334", "0.6270499", "0.6268229", "0.6263155", "0.6251893", "0.62434274", "0.62434274", "0.62407106", "0.6238377", "0.6236977", "0.6235345", "0.62310207", "0.6230986", "0.6230986", "0.62284994", "0.6223396", "0.6214226", "0.62116283", "0.6210709", "0.6208149", "0.62057734", "0.6191341", "0.6190706", "0.61844915", "0.61828005", "0.61821055", "0.61796534", "0.61786324", "0.6174487", "0.6170745", "0.616353", "0.6160478", "0.61591953", "0.6158123", "0.6150533", "0.6148183", "0.6141441", "0.61317027", "0.6131593", "0.6129221", "0.612194", "0.6118403", "0.6109835", "0.61057925", "0.6105422", "0.6100869", "0.60972756", "0.6094099", "0.60887253", "0.6082963", "0.6078577", "0.60748726", "0.6072377" ]
0.0
-1
creating dummy user to fetch
@Test public void getEmployeesForShift(){ userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertNotNull(employeeResource.getEmployeesForShift("dummy", 1)); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public void setupUser() {\n }", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void newUser(User user);", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public User getUser(String name);", "public User getUser(String name);", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "private void createUser(final String email, final String password) {\n\n }", "public UserAuthToken createUser(CreateUserRequest request);", "User getUser(String username);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "private User() {}", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "int newUser(String username, String password, Time creationTime);", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "User getUser(String userName) throws UserNotFoundException;", "UserModel retrieveUserModel(String username, String password);", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.7311522", "0.7232854", "0.7155367", "0.6960321", "0.6923856", "0.68625444", "0.68624395", "0.67898864", "0.6771126", "0.6705385", "0.66845834", "0.66408443", "0.6636151", "0.66324365", "0.66104674", "0.6593508", "0.65916556", "0.6583675", "0.6583543", "0.65673333", "0.65028965", "0.648562", "0.6481003", "0.6476652", "0.64627755", "0.64477295", "0.64429927", "0.64096457", "0.64065117", "0.6395996", "0.6395679", "0.6391205", "0.63864195", "0.63846505", "0.6374446", "0.6369601", "0.63579005", "0.635481", "0.63254845", "0.63173753", "0.63164604", "0.6307095", "0.6300897", "0.62857485", "0.6282645", "0.6282076", "0.6280906", "0.6278586", "0.62754834", "0.62724876", "0.6268403", "0.62603164", "0.62508744", "0.62444174", "0.62444174", "0.6237968", "0.6235731", "0.6233614", "0.62324584", "0.62324584", "0.6232336", "0.6228482", "0.6228077", "0.6222829", "0.6210411", "0.6209093", "0.6208135", "0.6207418", "0.6203299", "0.6192439", "0.61894506", "0.61859125", "0.6184391", "0.61817783", "0.61778563", "0.6177479", "0.61721206", "0.61705077", "0.61607975", "0.6158617", "0.61566514", "0.61564827", "0.6148279", "0.61478347", "0.6140469", "0.6129462", "0.61288553", "0.6128664", "0.6121954", "0.6115498", "0.61098063", "0.61075324", "0.61071134", "0.61018974", "0.6099562", "0.60928637", "0.6087048", "0.60816157", "0.6078336", "0.60764813", "0.6073094" ]
0.0
-1
creating dummy user to fetch
@Test public void getEmployeesForDate(){ userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertNotNull(employeeResource.getEMployeesForDate("2017-01-01")); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void setupUser() {\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "public void newUser(User user);", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User getUser(String name);", "public User getUser(String name);", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void createUser(final String email, final String password) {\n\n }", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUser(String username);", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "private User() {}", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "int newUser(String username, String password, Time creationTime);", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "UserModel retrieveUserModel(String username, String password);", "User getUser(String userName) throws UserNotFoundException;", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.73131156", "0.7233597", "0.71575177", "0.6962776", "0.6924706", "0.68638307", "0.6863793", "0.6792539", "0.6771958", "0.6705246", "0.6687561", "0.66420436", "0.6639283", "0.6631671", "0.6612312", "0.6596384", "0.6594715", "0.6585858", "0.6584952", "0.6569473", "0.6506312", "0.6489307", "0.6484966", "0.6477306", "0.646144", "0.644858", "0.6445311", "0.6408408", "0.6407468", "0.63978565", "0.6396243", "0.63940376", "0.6387163", "0.63864005", "0.6372945", "0.6372379", "0.635924", "0.63574576", "0.6328131", "0.63193095", "0.63188463", "0.6307785", "0.63003224", "0.62876165", "0.6284214", "0.6283761", "0.6281222", "0.62774754", "0.62759334", "0.6270499", "0.6268229", "0.6263155", "0.6251893", "0.62434274", "0.62434274", "0.62407106", "0.6238377", "0.6236977", "0.6235345", "0.62310207", "0.6230986", "0.6230986", "0.62284994", "0.6223396", "0.6214226", "0.62116283", "0.6210709", "0.6208149", "0.62057734", "0.6191341", "0.6190706", "0.61844915", "0.61828005", "0.61821055", "0.61796534", "0.61786324", "0.6174487", "0.6170745", "0.616353", "0.6160478", "0.61591953", "0.6158123", "0.6150533", "0.6148183", "0.6141441", "0.61317027", "0.6131593", "0.6129221", "0.612194", "0.6118403", "0.6109835", "0.61057925", "0.6105422", "0.6100869", "0.60972756", "0.6094099", "0.60887253", "0.6082963", "0.6078577", "0.60748726", "0.6072377" ]
0.0
-1
creating dummy user to fetch
@Test public void createEmployeeCatch() { userDAO.createUser(new User("dummy", "dummy", 1)); assertFalse(employeeResource.createEmployee(new Employee("notdummy", "dummy", "dummy", "dummy", "dummy", 1))); //removing test data after tests to avoid clutter in database employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void setupUser() {\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void newUser(User user);", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "public User getUser(String name);", "public User getUser(String name);", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void createUser(final String email, final String password) {\n\n }", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUser(String username);", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "private User() {}", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "int newUser(String username, String password, Time creationTime);", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "User getUser(String userName) throws UserNotFoundException;", "UserModel retrieveUserModel(String username, String password);", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }" ]
[ "0.73123133", "0.7233645", "0.7156817", "0.69614357", "0.69240624", "0.6863686", "0.6863081", "0.6791472", "0.677324", "0.6705743", "0.66866577", "0.66405857", "0.66374475", "0.6631071", "0.6611255", "0.6594714", "0.65927863", "0.6585084", "0.6584849", "0.65678775", "0.65042096", "0.6486678", "0.64822185", "0.64764154", "0.6460975", "0.64490503", "0.6443802", "0.6407842", "0.6407039", "0.6397461", "0.63961685", "0.63921326", "0.6387317", "0.63853246", "0.6372333", "0.6371762", "0.6357993", "0.6354753", "0.63275325", "0.6318533", "0.6317005", "0.6307315", "0.6302032", "0.6286947", "0.6282521", "0.62824583", "0.628229", "0.6277154", "0.62763506", "0.6270477", "0.6266966", "0.6261111", "0.62494147", "0.6242866", "0.6242866", "0.6239118", "0.6237484", "0.62349486", "0.62349176", "0.62303656", "0.62303656", "0.6229617", "0.62284833", "0.62219113", "0.6211897", "0.6210892", "0.6208338", "0.620712", "0.62034833", "0.6190686", "0.6189853", "0.61834383", "0.61817455", "0.618163", "0.6178174", "0.6177703", "0.6173798", "0.61698365", "0.6161778", "0.6159824", "0.61585945", "0.615687", "0.61492646", "0.6147785", "0.61401397", "0.6129953", "0.61295706", "0.61289316", "0.61202854", "0.6116667", "0.61094373", "0.6104698", "0.6104611", "0.6099497", "0.609643", "0.6093187", "0.60884345", "0.6081985", "0.6077299", "0.6073671", "0.6071355" ]
0.0
-1
creating dummy user to fetch
@Test public void updateEmployee() { userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertTrue(employeeResource.updateEmployee(new Employee("dummy", "dummyUpdated", "dummyUpdated", "dummyUpdated", "dummyUpdated", 1))); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void setupUser() {\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "public void newUser(User user);", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User getUser(String name);", "public User getUser(String name);", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void createUser(final String email, final String password) {\n\n }", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUser(String username);", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "private User() {}", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "int newUser(String username, String password, Time creationTime);", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "UserModel retrieveUserModel(String username, String password);", "User getUser(String userName) throws UserNotFoundException;", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.73131156", "0.7233597", "0.71575177", "0.6962776", "0.6924706", "0.68638307", "0.6863793", "0.6792539", "0.6771958", "0.6705246", "0.6687561", "0.66420436", "0.6639283", "0.6631671", "0.6612312", "0.6596384", "0.6594715", "0.6585858", "0.6584952", "0.6569473", "0.6506312", "0.6489307", "0.6484966", "0.6477306", "0.646144", "0.644858", "0.6445311", "0.6408408", "0.6407468", "0.63978565", "0.6396243", "0.63940376", "0.6387163", "0.63864005", "0.6372945", "0.6372379", "0.635924", "0.63574576", "0.6328131", "0.63193095", "0.63188463", "0.6307785", "0.63003224", "0.62876165", "0.6284214", "0.6283761", "0.6281222", "0.62774754", "0.62759334", "0.6270499", "0.6268229", "0.6263155", "0.6251893", "0.62434274", "0.62434274", "0.62407106", "0.6238377", "0.6236977", "0.6235345", "0.62310207", "0.6230986", "0.6230986", "0.62284994", "0.6223396", "0.6214226", "0.62116283", "0.6210709", "0.6208149", "0.62057734", "0.6191341", "0.6190706", "0.61844915", "0.61828005", "0.61821055", "0.61796534", "0.61786324", "0.6174487", "0.6170745", "0.616353", "0.6160478", "0.61591953", "0.6158123", "0.6150533", "0.6148183", "0.6141441", "0.61317027", "0.6131593", "0.6129221", "0.612194", "0.6118403", "0.6109835", "0.61057925", "0.6105422", "0.6100869", "0.60972756", "0.6094099", "0.60887253", "0.6082963", "0.6078577", "0.60748726", "0.6072377" ]
0.0
-1
creating dummy user to fetch
@Test public void updateEmployeeCatch() { userDAO.createUser(new User("dummy", "dummy", 1)); //creating dummy employee employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 1)); assertFalse(employeeResource.updateEmployee(new Employee("notdummy", "dummyUpdated", "dummyUpdated", "dummyUpdated", "dummyUpdated", 1))); //clean up employeeDAO.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "Human_User createHuman_User();", "User createUser();", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void initUser() {\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "protected User createUser(final Request req) {\n final User user = new ServletUser(req);\n return user;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "User getUser(boolean autocreate);", "GenerateUserAccount () {\r\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public void setupUser() {\n }", "public static User createBasicUser () {\n User user = new User();\n user.setUsername(\"basicUser\");\n user.setPassword(\"secret\");\n user.setEmail(\"me@example.com\");\n user.setFirstName(\"firstName\");\n user.setLastName(\"lastName\");\n user.setPhoneNumber(\"123456789123\");\n user.setCountry(\"GB\");\n user.setEnabled(true);\n user.setDescription(\"A basic user\");\n user.setProfileImageUrl(\"https://blabla.images.com/basicuser\");\n\n return user;\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void createUser(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(User user) {\n\n\t}", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "public User getUser (String userName);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void newUser(User user);", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "int createUser(User data) throws Exception;", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUser(String userName);", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static User getRandomDeveloperUser() {\n String name =\n userNames[RandomNumberGenerator.getRandomInt(0, userNames.length - 1)]\n + RandomNumberGenerator.getRandomInt(0, 10000);\n long oidcId = name.hashCode();\n String email = name.replace(\" \", \"\").toLowerCase() + \"@test.foobar\";\n String website = \"http://\" + name.replace(\" \", \"\") + \".something\";\n String description = \"This is the personal description of \" + name + \"!\";\n User user = new User(oidcId, name, email, description, website, User.DEVELOPER);\n return user;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public DummyUserManager()\n {\n }", "@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}", "@Test\n public void autoWireComponet(){\n User user = userUtil.createAnonymousUser();\n \n assertNotNull(user);\n assertNotNull(user.getId());\n assertEquals(\"Anon\", user.getFirstName());\n assertEquals(\"User\", user.getLastName());\n }", "@Test\n public void getUserById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNotNull(userResource.getUser(\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "User getUser();", "User getUser();", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public User getUser(String name);", "public User getUser(String name);", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public User(){\n\t username = \"Anonymous\";\n\t}", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "private void createUser(final String email, final String password) {\n\n }", "public UserAuthToken createUser(CreateUserRequest request);", "User getUser(String username);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "User getUserById(int id);", "public User getUser(String username);", "User getPassedUser();", "private User() {}", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public abstract User getUser();", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "@Test\n public void whenFetchingExistingUserReturn200() throws Exception {\n UserRegistrationRequestDTO request = getSampleRegistrationRequest();\n long userId = api.registerUser(request).execute().body();\n\n // when fetching user details\n Response<UserDTO> response = api.getUserDetails(userId).execute();\n\n // then http status code should be ok\n assertThat(response.code(), is(200));\n\n // and user should have a matching name\n assertThat(response.body().fullName, is(request.fullName));\n }", "int newUser(String username, String password, Time creationTime);", "@Test\n public void testReadUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n User createdUser = userService.createUser(user);\n \n\n //Act\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\"); \n \n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "User createUser(User user);", "User()\n\t{\n\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Test(priority=2)\n\tpublic void ValidateNewUser() {\n\t\t\n\t\tString apiEndPoint = \"https://gorest.co.in/public-api/users/\"+newUserId;\n\t\tSystem.out.println(\"API EndPoint is: \"+apiEndPoint);\n\t\t\t\t\t\t\n\t\tGetUser getuser= given()\n\t\t\t.proxy(\"internet.ford.com\", 83)\n\t\t\t.contentType(\"application/json\")\n\t\t\t.baseUri(apiEndPoint)\t\t\t\n\t\t.when()\n\t\t\t.get(apiEndPoint).as(GetUser.class);\n\t\t\n\t\tAssert.assertEquals(getuser.getCode(),200);\n\t\tAssert.assertEquals(getuser.getData().getName(),\"Stephen M D\");\n\t\tAssert.assertEquals(getuser.getData().getStatus(),\"Active\");\n\t}", "User getUser(String userName) throws UserNotFoundException;", "UserModel retrieveUserModel(String username, String password);", "public User getSpecificUser(String username);", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "static MinimalUser create(ServletRequest request,\n\t\t\t\tShibbolethUserConfiguration config) {\n\t\t\tHttpServletRequest req = (HttpServletRequest) request;\n\n\t\t\tString username = getHeader(req, config.getUsernameKey(), \"\");\n\t\t\tString surname = getHeader(req, config.getSurnameKey(), \"\");\n\t\t\tString firstname = getHeader(req, config.getFirstnameKey(), \"\");\n\t\t\tString profile = getHeader(req, config.getProfileKey(), \"\");\n\n\t\t\tif (username.trim().length() > 0) {\n\n\t\t\t\tMinimalUser user = new MinimalUser();\n\t\t\t\tuser.setUsername(username);\n\t\t\t\tuser.setName(firstname);\n\t\t\t\tuser.setSurname(surname);\n\t\t\t\tuser.setProfile(profile);\n\t\t\t\treturn user;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n public void test_getByUsername_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.getByUsername(user1.getUsername());\n\n assertEquals(\"'getByUsername' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'getByUsername' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'getByUsername' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'getByUsername' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'getByUsername' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'getByUsername' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'getByUsername' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "User loadUser( String username ) throws UserNotFoundException;", "public User getUserByName(String username);" ]
[ "0.7311522", "0.7232854", "0.7155367", "0.6960321", "0.6923856", "0.68625444", "0.68624395", "0.67898864", "0.6771126", "0.6705385", "0.66845834", "0.66408443", "0.6636151", "0.66324365", "0.66104674", "0.6593508", "0.65916556", "0.6583675", "0.6583543", "0.65673333", "0.65028965", "0.648562", "0.6481003", "0.6476652", "0.64627755", "0.64477295", "0.64429927", "0.64096457", "0.64065117", "0.6395996", "0.6395679", "0.6391205", "0.63864195", "0.63846505", "0.6374446", "0.6369601", "0.63579005", "0.635481", "0.63254845", "0.63173753", "0.63164604", "0.6307095", "0.6300897", "0.62857485", "0.6282645", "0.6282076", "0.6280906", "0.6278586", "0.62754834", "0.62724876", "0.6268403", "0.62603164", "0.62508744", "0.62444174", "0.62444174", "0.6237968", "0.6235731", "0.6233614", "0.62324584", "0.62324584", "0.6232336", "0.6228482", "0.6228077", "0.6222829", "0.6210411", "0.6209093", "0.6208135", "0.6207418", "0.6203299", "0.6192439", "0.61894506", "0.61859125", "0.6184391", "0.61817783", "0.61778563", "0.6177479", "0.61721206", "0.61705077", "0.61607975", "0.6158617", "0.61566514", "0.61564827", "0.6148279", "0.61478347", "0.6140469", "0.6129462", "0.61288553", "0.6128664", "0.6121954", "0.6115498", "0.61098063", "0.61075324", "0.61071134", "0.61018974", "0.6099562", "0.60928637", "0.6087048", "0.60816157", "0.6078336", "0.60764813", "0.6073094" ]
0.0
-1
create dummy user to delete first
@Test public void removeEmployee() { userDAO.createUser(new User("dummy", "dummy", 1)); //Create dummy employee to delete employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 3)); //removing dummy data to avoid clutter in database assertTrue(employeeResource.removeEmployee("dummy")); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearUsersTest() {\r\n\r\n\t\tpd.crearUsers();\r\n\t\tpd.pm.deletePersistent(pd.user1);\r\n\r\n\t}", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public void createUser(User user) {\n\n\t}", "@Test\n public void deleteNewAccount() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"gamma@beta.net\");\n createUserRequest.setFirstname(\"Gamma\");\n createUserRequest.setLastname(\"Beta\");\n\n // First, we create the User account that we wish to delete\n final CreateUserResponse response = administration.createUser(token, createUserRequest);\n assertThat(response.isOk(), is(true));\n\n // Now, try to delete the account\n final UserRequest request = new UserRequest();\n request.setUser(response.getUser());\n request.setNewStatus(UserStatus.DELETED);\n final Response deletedUserResponse = administration.controlUserAccount(token, request);\n\n assertThat(deletedUserResponse, is(not(nullValue())));\n assertThat(deletedUserResponse.isOk(), is(true));\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void removeUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userResource.removeUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testCleanupCurrentUser_NonOnBehalfUser() throws Exception {\n idService.cleanUpCurrentUser();\n // user must still exist\n PlatformUser user = getDomainObject(supplierAdminUser,\n PlatformUser.class);\n assertNotNull(user);\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@Test\n public void removeUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.removeUser(\"dummy\"));\n }", "public void deleteUser(String name);", "@Test\r\n public void saveUserShouldCreateNewRowInDB(){\n userDaoJDBCTemplate.delete(38);\r\n userDaoJDBCTemplate.delete(40);\r\n userDaoJDBCTemplate.deleteByName(\"admin3\");\r\n userDaoJDBCTemplate.deleteByName(\"admin4\");\r\n }", "@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}", "public void createUser(User user);", "private void managePreCreatedUsers() {\n int numberRequestedGuests = CarProperties.number_pre_created_guests().orElse(0);\r\n int numberRequestedUsers = CarProperties.number_pre_created_users().orElse(0);\r\n Slog.i(TAG, \"managePreCreatedUsers(): OEM asked for \" + numberRequestedGuests\r\n + \" guests and \" + numberRequestedUsers + \" users\");\r\n if (numberRequestedGuests < 0 || numberRequestedUsers < 0) {\r\n Slog.w(TAG, \"preCreateUsers(): invalid values provided by OEM; \"\r\n + \"number_pre_created_guests=\" + numberRequestedGuests\r\n + \", number_pre_created_users=\" + numberRequestedUsers);\r\n return;\r\n }\r\n\r\n if (numberRequestedGuests == 0 && numberRequestedUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): not defined by OEM\");\r\n return;\r\n }\r\n\r\n // Then checks how many exist already\r\n List<UserInfo> allUsers = mUserManager.getUsers(/* excludePartial= */ true,\r\n /* excludeDying= */ true, /* excludePreCreated= */ false);\r\n\r\n int allUsersSize = allUsers.size();\r\n if (DBG) Slog.d(TAG, \"preCreateUsers: total users size is \" + allUsersSize);\r\n\r\n int numberExistingGuests = 0;\r\n int numberExistingUsers = 0;\r\n\r\n // List of pre-created users that were not properly initialized. Typically happens when\r\n // the system crashed / rebooted before they were fully started.\r\n SparseBooleanArray invalidUsers = new SparseBooleanArray();\r\n\r\n for (int i = 0; i < allUsersSize; i++) {\r\n UserInfo user = allUsers.get(i);\r\n if (!user.preCreated) continue;\r\n if (!user.isInitialized()) {\r\n Slog.w(TAG, \"Found invalid pre-created user that needs to be removed: \"\r\n + user.toFullString());\r\n invalidUsers.append(user.id, /* notUsed=*/ true);\r\n continue;\r\n }\r\n if (user.isGuest()) {\r\n numberExistingGuests++;\r\n } else {\r\n numberExistingUsers++;\r\n }\r\n }\r\n if (DBG) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): system already has \" + numberExistingGuests\r\n + \" pre-created guests,\" + numberExistingUsers + \" pre-created users, and these\"\r\n + \" invalid users: \" + invalidUsers );\r\n }\r\n\r\n int numberGuests = numberRequestedGuests - numberExistingGuests;\r\n int numberUsers = numberRequestedUsers - numberExistingUsers;\r\n int numberInvalidUsers = invalidUsers.size();\r\n\r\n if (numberGuests <= 0 && numberUsers <= 0 && numberInvalidUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): all pre-created and no invalid ones\");\r\n return;\r\n }\r\n\r\n // Finally, manage them....\r\n\r\n // In theory, we could submit multiple user pre-creations in parallel, but we're\r\n // submitting just 1 task, for 2 reasons:\r\n // 1.To minimize it's effect on other system server initialization tasks.\r\n // 2.The pre-created users will be unlocked in parallel anyways.\r\n new Thread( () -> {\r\n TimingsTraceLog t = new TimingsTraceLog(TAG, Trace.TRACE_TAG_SYSTEM_SERVER);\r\n\r\n t.traceBegin(\"preCreateUsers\");\r\n if (numberUsers > 0) {\r\n preCreateUsers(t, numberUsers, /* isGuest= */ false);\r\n }\r\n if (numberGuests > 0) {\r\n preCreateUsers(t, numberGuests, /* isGuest= */ true);\r\n }\r\n t.traceEnd();\r\n\r\n if (numberInvalidUsers > 0) {\r\n t.traceBegin(\"removeInvalidPreCreatedUsers\");\r\n for (int i = 0; i < numberInvalidUsers; i++) {\r\n int userId = invalidUsers.keyAt(i);\r\n Slog.i(TAG, \"removing invalid pre-created user \" + userId);\r\n mUserManager.removeUser(userId);\r\n }\r\n t.traceEnd();\r\n }\r\n }, \"CarServiceHelperManagePreCreatedUsers\").start();\r\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "User createUser();", "@Test\n public void testDeletingActiveUser() {\n // 1. Login as Austria\n // - The test is using Austria per default\n // 2. Create a new User\n final String username = \"mozart@iaeste.at\";\n final CreateUserRequest createRequest = new CreateUserRequest(username, \"Wolfgang\", \"Amadeus\");\n final CreateUserResponse createResponse = administration.createUser(token, createRequest);\n assertThat(createResponse.isOk(), is(true));\n\n // 3. Activate the NEW User\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n final NotificationField field = NotificationField.CODE;\n final String activationCode = spy.getNext(type).getFields().get(field);\n final Response activateResponse = administration.activateUser(activationCode);\n assertThat(activateResponse.isOk(), is(true));\n\n // 4. Delete the ACTIVE User\n final UserRequest deleteRequest = new UserRequest();\n deleteRequest.setUser(createResponse.getUser());\n deleteRequest.setNewStatus(UserStatus.DELETED);\n final Response deleteResponse = administration.controlUserAccount(token, deleteRequest);\n assertThat(deleteResponse.isOk(), is(true));\n }", "void deleteUser(int id);", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "int createUser(User data) throws Exception;", "@Test\n\tvoid testCreateAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample\", \"CreateAccount\", \"CreateAccount@upr.edu\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword\");\n\t\t\t\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertTrue(exist);\n\t}", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tvoid testDeleteAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample2\", \"CreateAccount2\", \"CreateAccount2@upr.edu\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword2\");\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertFalse(exist);\n\t}", "@Test (priority = 0)\n public void test001createUserWithUserNameOnlyTest() {\n close();\n login();\n\n checkLoginIsPerformed();\n //create user with filled user name only\n createUser(SIMPLE_USER_NAME, new HashMap<String, String>());\n checkOperationStatusOk(\"Save (GUI)\");\n\n //search for the created in users list\n searchForElement(SIMPLE_USER_NAME);\n $(By.linkText(SIMPLE_USER_NAME)).shouldBe(visible).click();\n }", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "public Builder clearCreateUser() {\n \n createUser_ = getDefaultInstance().getCreateUser();\n onChanged();\n return this;\n }", "@Before\r\n\tpublic void setUp() {\n\t\tfor (int i=0; i<NUM_USERS; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tNewUser user = CrowdAuthUtil.getUser(userID(i));\r\n\t\t\t\tCrowdAuthUtil.deleteUser(user.getEmail());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// here we are doing the best we can, so just go on to the next one\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "boolean create(User user) throws Exception;", "public static void deleteUser() {\n REGISTRATIONS.clear();\n ALL_EVENTS.clear();\n MainActivity.getPreferences().edit()\n .putString(FACEBOOK_ID.get(), null)\n .putString(USERNAME.get(), null)\n .putString(LAST_NAME.get(), null)\n .putString(FIRST_NAME.get(), null)\n .putString(GENDER.get(), null)\n .putString(BIRTHDAY.get(), null)\n .putString(EMAIL.get(), null)\n .putStringSet(LOCATIONS_INTEREST.get(), null)\n .apply();\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test\r\n public void UserServiceTest_Create()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCDEFG\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"Presenter\"));\r\n user.setRoles(roles);\r\n user.setPassword(\"12345678\");\r\n \r\n UserService service = new UserService();\r\n \r\n try {\r\n service.createAUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n UserServiceTest_Edit();\r\n UserServiceTest_Delete();\r\n }", "void delete(User user);", "void delete(User user);", "@Test(expected = AppException.class)\n public void testCreateNameEmpty() {\n User user = new User(\"login\", \"login@example.com\", null, \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "public void deleteUser(User userToDelete) throws Exception;", "void DeleteCompteUser(int id);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic boolean deleteUser(Integer id) {\n\t\treturn false;\n\t}", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "Human_User createHuman_User();", "@Test\n public void createEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n assertFalse(employeeResource.createEmployee(new Employee(\"notdummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1)));\n\n //removing test data after tests to avoid clutter in database\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "public int Delete_User(String name) {\n\t\treturn 0;\r\n\t}", "void deleteUser( String username );", "@Override\n\tpublic boolean deleteUserById(int id) {\n\t\treturn false;\n\t}", "@Transactional\n public Long createUser(User user) {\n user.setId(null);\n final User createdUser = userRepository.save(user);\n return createdUser.getId();\n }", "void deleteUser(String deleteUserId);", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "Boolean registerNewUser(User user);", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "@Test\r\n\tpublic void testUserEmpty()\r\n\r\n\t{\r\n\r\n\t\tUser gavin = new User (\"gavin\", \"fennelly\", \"21\", \"m\",\"programmer\");\r\n\r\n\t\tassertEquals (0, movierecommender.getUsers().size());\r\n\t\tmovierecommender.createUser(\"gavin\", \"fennelly\", \"21\", \"m\",\"programmer\");\r\n\t\tassertEquals (1, movierecommender.getUsers().size());\r\n\t}", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "@Test\n public void testDeleteUser() {\n System.out.println(\"deleteUser\");\n long userId = 0L;\n UserServiceImpl instance = new UserServiceImpl(passwordService);\n instance.deleteUser(userId);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n void createTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"g.gialli1@wlbadmin.it\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n Admin created = adminJpa.create(anAdmin);\n assertEquals(\"g.gialli1@wlbadmin.it\", created.getEmail());\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.remove(entityManager.merge(anAdmin));\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n }", "@Override\n\tpublic void deleteItem(Long id) {\n\t\tUser user = new User();\n\t\tuser.setId(id);\n\t\tuserRepository.delete(user);\n\t\tSystem.out.println(\"user deleted with succes !\");\n\t}", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "public void UserServiceTest_Delete()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n UserService service = new UserService(); \r\n try {\r\n service.deleteUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }", "@Test(alwaysRun = true, priority = 5)\n public void test006createUserWithExistingNameTest() {\n close();\n login();\n// create user\n createUser(EXISTING_USER_NAME, new HashMap<String, String>());\n checkOperationStatusOk(\"Save (GUI)\");\n //try to create user with the same name\n createUser(EXISTING_USER_NAME, new HashMap<String, String>());\n //check if error message appears\n getFeedbackPanel().find(byText(\"Error processing focus\"));\n }", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public void newUser(User user);", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "public User delete(String user);", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "@Test(alwaysRun = true, priority = 4)\n public void test005createUserWithEmptyFieldsTest() {\n close();\n login();\n //create user with all empty fields\n createUser(\"\", new HashMap<String, String>());\n\n //check if error message appears after user saving\n getFeedbackPanel().find(byText(\"No name in new object\"));\n }", "void deleteUserById(Integer id);", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void deleteDuplicateUser(String userName) {\n\t\t\n\t}", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "public void deleteUser(String username);", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public void creatUser(String name, String phone, String email, String password);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "@Test\n\tpublic void testDeleteAdminAccountWithNonExistingUser() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"Catherine\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(username);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"The user cannot be found.\", error);\n\t}", "UserCreateResponse createUser(UserCreateRequest request);", "GenerateUserAccount () {\r\n }", "@Test\n public void invalidEmptyFieldUserCreation() {\n testUser.setFirstName(\"\");\n\n Assertions.assertFalse(this.userDAO.insertNewUser(testUser));\n }", "@Override\n\tpublic void deleteOneUser(long ids) {\n\t\tregisters.deleteRegisterById(ids);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public UserAuthToken createUser(CreateUserRequest request);", "public DeleteUser(int id) {\n\t\tsuper();\n\t\tthis.id = id;\n\t}", "@AfterAll\r\n public void cleanUp() {\r\n\r\n UserEto savedUserFromDb = this.usermanagement.findUserByName(\"testUser\");\r\n\r\n if (savedUserFromDb != null) {\r\n this.usermanagement.deleteUser(savedUserFromDb.getId());\r\n }\r\n }" ]
[ "0.7142216", "0.6762726", "0.6719003", "0.6709763", "0.6667065", "0.6640683", "0.66167235", "0.66147965", "0.6601649", "0.6601178", "0.65892273", "0.65822476", "0.65526706", "0.6547973", "0.65261185", "0.6520054", "0.6518344", "0.6517695", "0.6496813", "0.64906025", "0.64829195", "0.64301014", "0.64287364", "0.6415023", "0.63922215", "0.63641286", "0.6348612", "0.6344981", "0.6331343", "0.6328196", "0.63191026", "0.63155526", "0.63068134", "0.6303099", "0.6294295", "0.62785405", "0.6274995", "0.62749517", "0.62749517", "0.626799", "0.6256914", "0.6252829", "0.62487966", "0.62487125", "0.6235768", "0.623298", "0.6227747", "0.62113595", "0.6208729", "0.6201792", "0.6185695", "0.61841637", "0.61690253", "0.616729", "0.6164857", "0.6161963", "0.61462164", "0.61434335", "0.61391443", "0.6138049", "0.6133328", "0.6125552", "0.6118251", "0.61169505", "0.61126345", "0.6108355", "0.6107352", "0.6106528", "0.61041325", "0.60973585", "0.6090859", "0.60874456", "0.60872954", "0.6076832", "0.60693157", "0.6068992", "0.6067223", "0.6065244", "0.60558087", "0.6055756", "0.60408986", "0.6039686", "0.6038816", "0.60386163", "0.60383785", "0.6035106", "0.6026325", "0.60211957", "0.6019804", "0.6016777", "0.60132694", "0.601231", "0.6008258", "0.60061467", "0.60025656", "0.60020006", "0.6000706", "0.5999932", "0.5997823", "0.59915936", "0.59913486" ]
0.0
-1
create dummy user to delete first
@Test public void removeEmployeeCatch() { userDAO.createUser(new User("dummy", "dummy", 1)); //Create dummy employee to delete employeeDAO.createEmployee(new Employee("dummy", "dummy", "dummy", "dummy", "dummy", 3)); assertFalse(employeeResource.removeEmployee("notdummy")); //removing dummy data to avoid clutter in database employeeResource.removeEmployee("dummy"); userDAO.removeUser("dummy"); //test clean up assertNull(userResource.getUser("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearUsersTest() {\r\n\r\n\t\tpd.crearUsers();\r\n\t\tpd.pm.deletePersistent(pd.user1);\r\n\r\n\t}", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public void createUser(User user) {\n\n\t}", "@Test\n public void deleteNewAccount() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"gamma@beta.net\");\n createUserRequest.setFirstname(\"Gamma\");\n createUserRequest.setLastname(\"Beta\");\n\n // First, we create the User account that we wish to delete\n final CreateUserResponse response = administration.createUser(token, createUserRequest);\n assertThat(response.isOk(), is(true));\n\n // Now, try to delete the account\n final UserRequest request = new UserRequest();\n request.setUser(response.getUser());\n request.setNewStatus(UserStatus.DELETED);\n final Response deletedUserResponse = administration.controlUserAccount(token, request);\n\n assertThat(deletedUserResponse, is(not(nullValue())));\n assertThat(deletedUserResponse.isOk(), is(true));\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void removeUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userResource.removeUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testCleanupCurrentUser_NonOnBehalfUser() throws Exception {\n idService.cleanUpCurrentUser();\n // user must still exist\n PlatformUser user = getDomainObject(supplierAdminUser,\n PlatformUser.class);\n assertNotNull(user);\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@Test\n public void removeUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.removeUser(\"dummy\"));\n }", "public void deleteUser(String name);", "@Test\r\n public void saveUserShouldCreateNewRowInDB(){\n userDaoJDBCTemplate.delete(38);\r\n userDaoJDBCTemplate.delete(40);\r\n userDaoJDBCTemplate.deleteByName(\"admin3\");\r\n userDaoJDBCTemplate.deleteByName(\"admin4\");\r\n }", "@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}", "public void createUser(User user);", "private void managePreCreatedUsers() {\n int numberRequestedGuests = CarProperties.number_pre_created_guests().orElse(0);\r\n int numberRequestedUsers = CarProperties.number_pre_created_users().orElse(0);\r\n Slog.i(TAG, \"managePreCreatedUsers(): OEM asked for \" + numberRequestedGuests\r\n + \" guests and \" + numberRequestedUsers + \" users\");\r\n if (numberRequestedGuests < 0 || numberRequestedUsers < 0) {\r\n Slog.w(TAG, \"preCreateUsers(): invalid values provided by OEM; \"\r\n + \"number_pre_created_guests=\" + numberRequestedGuests\r\n + \", number_pre_created_users=\" + numberRequestedUsers);\r\n return;\r\n }\r\n\r\n if (numberRequestedGuests == 0 && numberRequestedUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): not defined by OEM\");\r\n return;\r\n }\r\n\r\n // Then checks how many exist already\r\n List<UserInfo> allUsers = mUserManager.getUsers(/* excludePartial= */ true,\r\n /* excludeDying= */ true, /* excludePreCreated= */ false);\r\n\r\n int allUsersSize = allUsers.size();\r\n if (DBG) Slog.d(TAG, \"preCreateUsers: total users size is \" + allUsersSize);\r\n\r\n int numberExistingGuests = 0;\r\n int numberExistingUsers = 0;\r\n\r\n // List of pre-created users that were not properly initialized. Typically happens when\r\n // the system crashed / rebooted before they were fully started.\r\n SparseBooleanArray invalidUsers = new SparseBooleanArray();\r\n\r\n for (int i = 0; i < allUsersSize; i++) {\r\n UserInfo user = allUsers.get(i);\r\n if (!user.preCreated) continue;\r\n if (!user.isInitialized()) {\r\n Slog.w(TAG, \"Found invalid pre-created user that needs to be removed: \"\r\n + user.toFullString());\r\n invalidUsers.append(user.id, /* notUsed=*/ true);\r\n continue;\r\n }\r\n if (user.isGuest()) {\r\n numberExistingGuests++;\r\n } else {\r\n numberExistingUsers++;\r\n }\r\n }\r\n if (DBG) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): system already has \" + numberExistingGuests\r\n + \" pre-created guests,\" + numberExistingUsers + \" pre-created users, and these\"\r\n + \" invalid users: \" + invalidUsers );\r\n }\r\n\r\n int numberGuests = numberRequestedGuests - numberExistingGuests;\r\n int numberUsers = numberRequestedUsers - numberExistingUsers;\r\n int numberInvalidUsers = invalidUsers.size();\r\n\r\n if (numberGuests <= 0 && numberUsers <= 0 && numberInvalidUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): all pre-created and no invalid ones\");\r\n return;\r\n }\r\n\r\n // Finally, manage them....\r\n\r\n // In theory, we could submit multiple user pre-creations in parallel, but we're\r\n // submitting just 1 task, for 2 reasons:\r\n // 1.To minimize it's effect on other system server initialization tasks.\r\n // 2.The pre-created users will be unlocked in parallel anyways.\r\n new Thread( () -> {\r\n TimingsTraceLog t = new TimingsTraceLog(TAG, Trace.TRACE_TAG_SYSTEM_SERVER);\r\n\r\n t.traceBegin(\"preCreateUsers\");\r\n if (numberUsers > 0) {\r\n preCreateUsers(t, numberUsers, /* isGuest= */ false);\r\n }\r\n if (numberGuests > 0) {\r\n preCreateUsers(t, numberGuests, /* isGuest= */ true);\r\n }\r\n t.traceEnd();\r\n\r\n if (numberInvalidUsers > 0) {\r\n t.traceBegin(\"removeInvalidPreCreatedUsers\");\r\n for (int i = 0; i < numberInvalidUsers; i++) {\r\n int userId = invalidUsers.keyAt(i);\r\n Slog.i(TAG, \"removing invalid pre-created user \" + userId);\r\n mUserManager.removeUser(userId);\r\n }\r\n t.traceEnd();\r\n }\r\n }, \"CarServiceHelperManagePreCreatedUsers\").start();\r\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "User createUser();", "@Test\n public void testDeletingActiveUser() {\n // 1. Login as Austria\n // - The test is using Austria per default\n // 2. Create a new User\n final String username = \"mozart@iaeste.at\";\n final CreateUserRequest createRequest = new CreateUserRequest(username, \"Wolfgang\", \"Amadeus\");\n final CreateUserResponse createResponse = administration.createUser(token, createRequest);\n assertThat(createResponse.isOk(), is(true));\n\n // 3. Activate the NEW User\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n final NotificationField field = NotificationField.CODE;\n final String activationCode = spy.getNext(type).getFields().get(field);\n final Response activateResponse = administration.activateUser(activationCode);\n assertThat(activateResponse.isOk(), is(true));\n\n // 4. Delete the ACTIVE User\n final UserRequest deleteRequest = new UserRequest();\n deleteRequest.setUser(createResponse.getUser());\n deleteRequest.setNewStatus(UserStatus.DELETED);\n final Response deleteResponse = administration.controlUserAccount(token, deleteRequest);\n assertThat(deleteResponse.isOk(), is(true));\n }", "void deleteUser(int id);", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "int createUser(User data) throws Exception;", "@Test\n\tvoid testCreateAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample\", \"CreateAccount\", \"CreateAccount@upr.edu\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword\");\n\t\t\t\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertTrue(exist);\n\t}", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "@Test\n\tvoid testDeleteAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample2\", \"CreateAccount2\", \"CreateAccount2@upr.edu\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword2\");\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertFalse(exist);\n\t}", "@Test (priority = 0)\n public void test001createUserWithUserNameOnlyTest() {\n close();\n login();\n\n checkLoginIsPerformed();\n //create user with filled user name only\n createUser(SIMPLE_USER_NAME, new HashMap<String, String>());\n checkOperationStatusOk(\"Save (GUI)\");\n\n //search for the created in users list\n searchForElement(SIMPLE_USER_NAME);\n $(By.linkText(SIMPLE_USER_NAME)).shouldBe(visible).click();\n }", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "public Builder clearCreateUser() {\n \n createUser_ = getDefaultInstance().getCreateUser();\n onChanged();\n return this;\n }", "@Before\r\n\tpublic void setUp() {\n\t\tfor (int i=0; i<NUM_USERS; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tNewUser user = CrowdAuthUtil.getUser(userID(i));\r\n\t\t\t\tCrowdAuthUtil.deleteUser(user.getEmail());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// here we are doing the best we can, so just go on to the next one\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "boolean create(User user) throws Exception;", "public static void deleteUser() {\n REGISTRATIONS.clear();\n ALL_EVENTS.clear();\n MainActivity.getPreferences().edit()\n .putString(FACEBOOK_ID.get(), null)\n .putString(USERNAME.get(), null)\n .putString(LAST_NAME.get(), null)\n .putString(FIRST_NAME.get(), null)\n .putString(GENDER.get(), null)\n .putString(BIRTHDAY.get(), null)\n .putString(EMAIL.get(), null)\n .putStringSet(LOCATIONS_INTEREST.get(), null)\n .apply();\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"gburdell1@gatech.edu\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test\r\n public void UserServiceTest_Create()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCDEFG\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"Presenter\"));\r\n user.setRoles(roles);\r\n user.setPassword(\"12345678\");\r\n \r\n UserService service = new UserService();\r\n \r\n try {\r\n service.createAUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n UserServiceTest_Edit();\r\n UserServiceTest_Delete();\r\n }", "void delete(User user);", "void delete(User user);", "@Test(expected = AppException.class)\n public void testCreateNameEmpty() {\n User user = new User(\"login\", \"login@example.com\", null, \n \"12345678\");\n userService.create(user);\n }", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "public void deleteUser(User userToDelete) throws Exception;", "void DeleteCompteUser(int id);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic boolean deleteUser(Integer id) {\n\t\treturn false;\n\t}", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "Human_User createHuman_User();", "@Test\n public void createEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n assertFalse(employeeResource.createEmployee(new Employee(\"notdummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1)));\n\n //removing test data after tests to avoid clutter in database\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "public int Delete_User(String name) {\n\t\treturn 0;\r\n\t}", "void deleteUser( String username );", "@Override\n\tpublic boolean deleteUserById(int id) {\n\t\treturn false;\n\t}", "@Transactional\n public Long createUser(User user) {\n user.setId(null);\n final User createdUser = userRepository.save(user);\n return createdUser.getId();\n }", "void deleteUser(String deleteUserId);", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "Boolean registerNewUser(User user);", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "@Test\r\n\tpublic void testUserEmpty()\r\n\r\n\t{\r\n\r\n\t\tUser gavin = new User (\"gavin\", \"fennelly\", \"21\", \"m\",\"programmer\");\r\n\r\n\t\tassertEquals (0, movierecommender.getUsers().size());\r\n\t\tmovierecommender.createUser(\"gavin\", \"fennelly\", \"21\", \"m\",\"programmer\");\r\n\t\tassertEquals (1, movierecommender.getUsers().size());\r\n\t}", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "@Test\n public void testDeleteUser() {\n System.out.println(\"deleteUser\");\n long userId = 0L;\n UserServiceImpl instance = new UserServiceImpl(passwordService);\n instance.deleteUser(userId);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n void createTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"g.gialli1@wlbadmin.it\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n Admin created = adminJpa.create(anAdmin);\n assertEquals(\"g.gialli1@wlbadmin.it\", created.getEmail());\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.remove(entityManager.merge(anAdmin));\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n }", "@Override\n\tpublic void deleteItem(Long id) {\n\t\tUser user = new User();\n\t\tuser.setId(id);\n\t\tuserRepository.delete(user);\n\t\tSystem.out.println(\"user deleted with succes !\");\n\t}", "@Test\n public void testCreateUser() throws InvalidUserException {\n //Arrange\n User user = new User();\n user.setEmail(\"user@email.com\");\n user.setFirstName(\"first\");\n user.setLastName(\"last\");\n user.setPassword(\"pass\");\n user.setRole(\"admin\");\n \n //Act\n User createdUser = userService.createUser(user);\n User fetchedUser = userService.readUser(createdUser.getUserId());\n \n //Assert\n assertEquals(fetchedUser.getUserId(), createdUser.getUserId());\n assertEquals(fetchedUser.getEmail(), \"user@email.com\");\n assertEquals(fetchedUser.getFirstName(), \"first\");\n \n }", "public void UserServiceTest_Delete()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n UserService service = new UserService(); \r\n try {\r\n service.deleteUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }", "@Test(alwaysRun = true, priority = 5)\n public void test006createUserWithExistingNameTest() {\n close();\n login();\n// create user\n createUser(EXISTING_USER_NAME, new HashMap<String, String>());\n checkOperationStatusOk(\"Save (GUI)\");\n //try to create user with the same name\n createUser(EXISTING_USER_NAME, new HashMap<String, String>());\n //check if error message appears\n getFeedbackPanel().find(byText(\"Error processing focus\"));\n }", "private AppUser saveDummyAppUserInstance() {\n\t\tAppUser dummyEntry = new AppUser(//\n\t\t\t\t1L//\n\t\t\t\t, \"a@aa.aa\"//\n\t\t\t\t, \"Pin12345\"//\n\t\t\t\t, 5//\n\t\t\t\t, BehaviourIfPoolWithWrongAnswersIsFull.EMPTY_POOL_UNTIL_ALL_QUESTIONS_CORRECT//\n\t\t\t\t, Calendar.getInstance().getTime()//\n\t\t);\n\t\tAppUser result = appUserRepository.save(dummyEntry);\n\t\treturn result;\n\t}", "private void createTestUser() throws InvalidModelException, ConnectionProblemException{\n\t\tSession session = SessionFactoryUtil.getSessionFactory().openSession();\n\t\t\n\t\ttry {\n\t\t\t//Create a new user with seed data\n\t\t\tUser editor = new User();\n\t\t\teditor.setEmail(\"editor@sheffield.ac.uk\");\n\t\t\teditor.setFirstName(\"The\");\n\t\t\teditor.setLastName(\"Editor\");\n\t\t\teditor.setRole(1);\n\t\t\tPasswordHelper passwordHelper = new PasswordHelper(\"password\");\n\t\t\teditor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\teditor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\teditor.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(editor);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser reviewer = new User();\n\t\t\treviewer.setEmail(\"reviewer@sheffield.ac.uk\");\n\t\t\treviewer.setFirstName(\"Mr\");\n\t\t\treviewer.setLastName(\"Reviewer\");\n\t\t\treviewer.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer.validateModel();\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(reviewer);\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\t//Create a new user with seed data\n\t\t\tUser author = new User();\n\t\t\tauthor.setEmail(\"author@sheffield.ac.uk\");\n\t\t\tauthor.setFirstName(\"An\");\n\t\t\tauthor.setLastName(\"Author\");\n\t\t\tauthor.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\tauthor.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\tauthor.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\tauthor.validateModel();\n\t\t\t\n\t\t\tUser reviewer1 = new User();\t\t\t\n\t\t\treviewer1.setEmail(\"reviewer1@sheffield.ac.uk\");\n\t\t\treviewer1.setFirstName(\"Mr\");\n\t\t\treviewer1.setLastName(\"Reviewer1\");\n\t\t\treviewer1.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer1.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer1.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer1.validateModel();\n\t\t\t\n\t\t\tUser reviewer2 = new User();\n\t\t\treviewer2.setEmail(\"reviewer2@sheffield.ac.uk\");\n\t\t\treviewer2.setFirstName(\"Mr\");\n\t\t\treviewer2.setLastName(\"Reviewer2\");\n\t\t\treviewer2.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer2.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer2.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer2.validateModel();\n\t\t\t\n\t\t\tUser reviewer3 = new User();\n\t\t\treviewer3.setEmail(\"reviewer3@sheffield.ac.uk\");\n\t\t\treviewer3.setFirstName(\"Mr\");\n\t\t\treviewer3.setLastName(\"Reviewer3\");\n\t\t\treviewer3.setRole(0);\n\t\t\tpasswordHelper = new PasswordHelper(\"password\");\n\t\t\treviewer3.setPasswordHash(passwordHelper.getPasswordHash());\n\t\t\treviewer3.setPasswordSalt(passwordHelper.getPasswordSalt());\n\t\t\treviewer3.validateModel();\n\t\t\t\n\t\t\tJournal journal = new Journal();\n\t\t\tjournal.setTitle(\"The dissertations\");\n\t\t\tjournal.setAcademicAims(\"The journal aims to outline dissertations written by students from the Department of Computer Sciece at the University of Sheffield.\");\n\t\t\tjournal.setSubmissionGuidelines(\"Each dissertation must be between 30 and 60 pages and it must follow the department's guidelines on 3rd year dissertations.\");\n\t\t\tjournal.validateModel();\n\t\t\t\n\t\t\tVolume volume = new Volume();\n\t\t\tvolume.setPublicationDate(new Date());\n\t\t\tvolume.setVolumeNumber(1);\n\t\t\tvolume.validateModel();\n\t\t\t\n\t\t\tEdition edition = new Edition();\n\t\t\tedition.setPublicationDate(new Date());\n\t\t\tedition.setEditionNumber(1);\n\t\t\tedition.validateModel();\n\t\t\t\n\t\t\tArticle publishedArticle = new Article();\n\t\t\tpublishedArticle.setTitle(\"An example paper\");\n\t\t\tpublishedArticle.setArticle_abstract(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\nLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\tpublishedArticle.setFileName(\"1431099295403.pdf\");\n\t\t\tpublishedArticle.validateModel();\n\t\t\t\n\t\t\tArticle article = new Article();\n\t\t\tarticle.setTitle(\"Shadow Puppetry Using the Kinect\");\n\t\t\tarticle.setArticle_abstract(\"Shadow puppetry is a form of storytelling where the characters are made from the shadows cast by puppets. The goal of this project is to build a real-time shadow puppet storytelling application using the Microsoft Kinect sensor. Its depth sensing ability is the perfect tool for tracking users and allowing them to control puppets onscreen, just by moving their body. The project is developed in the C++ programming language and uses the Cinder library for image processing. The system includes various image processing techniques to achieve a real-time, depth-based blur effect that is both efficient and visually appealing. It also includes a robust gesture recognition system based on the dynamic time warping algorithm to allow users to interact with the system and to create engaging and varied stories. These stories can be recorded and saved to file for later playback, or exported as video files.\");\n\t\t\tarticle.setFileName(\"1431098947160.pdf\");\n\t\t\tarticle.validateModel();\n\t\t\t\n\t\t\tArticle article1 = new Article();\n\t\t\tarticle1.setTitle(\"D Portraiture System\");\n\t\t\tarticle1.setArticle_abstract(\"The proliferation of 3D printers and their applications inevitably depend on the ease and practicality of 3D model construction. The aim of this project is to create a 3D portraiture system capable of capturing real-world facial data via a 360 degree head-scanning algorithm, processing this information and then reproducing a physical representation in the form of a figurine using custom built hardware from LEGO. The milling machine has been constructed and proven functional by producing several figurines, each with minor improvements over its predecessors. The implementation of the head scanning subsystem has also been successfully completed through the utilisation of a Microsoft ’ s Kinect for Windows, which generates partially overlapping point clouds that can subsequently be aligned and merged by means of the Iterative Closest Point algorithm. Future development and improvements to the program should be focused in this subsystem since many advanced techniques and enhancements exist that still remain unincorporated.\");\n\t\t\tarticle1.setFileName(\"1431098976887.pdf\");\n\t\t\tarticle1.validateModel();\n\t\t\t\n\t\t\tArticle article2 = new Article();\n\t\t\tarticle2.setTitle(\"Robot Facial Expressions\");\n\t\t\tarticle2.setArticle_abstract(\"The reason that made me choose this project is that I found it extremely interesting howpeople evolved regarding their interaction with machines. Obviously, as the machines became more and more advanced technologically, the human-computer interaction grew. I think that this growth has brought human kind to the point where we can start considering the possibility of emotions being expressed towards a robot, for example, and maybe in the future, from a robot towards a human being. The aim of this project is to take the first step towards that future by observing and studying how an animated man can be the target of our emotions or to see if the interaction with it can make us feel like we could haveemotions towards it.\");\n\t\t\tarticle2.setFileName(\"1431099010458.pdf\");\n\t\t\tarticle2.validateModel();\n\t\t\t\n\t\t\tArticle article3 = new Article();\n\t\t\tarticle3.setTitle(\"Mobile application for prospective and current Computer Science Students\");\n\t\t\tarticle3.setArticle_abstract(\"Nowadays, mobile phones are part of our life to the point where we are dependent on them. We rely on them for a wide variety of chores, from waking us up in the morning to keeping track of our gym routine. \\n The University of Sheffield offers an application that gives access to its students to certain information; however, its contents are very general. That is why this project aims to offer more specific information and tools to the students of the Computer Science department. On top of that, the application also contains information for any prospective Computer Science students. \\n The paper presents an overview of the current operating systems available on the market and then it looks into the applications that perform similar tasks. Using the data obtained through this research, the functional and non-functional requirements are presented and based on these the application is designed. Towards the end of the report, the techniques and algorithms that run the application are being described, along with the methods in which these have been tested. Finally, the report will end with a discussion based on the challenges faced by the project and an application evaluation. \");\n\t\t\tarticle3.setFileName(\"1431099026185.pdf\");\n\t\t\tarticle3.validateModel();\n\t\t\t\t\t\t\t\t\n\t\t\t//Save the user to the database\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(author);\n\t\t\tsession.save(reviewer1);\n\t\t\tsession.save(reviewer2);\n\t\t\tsession.save(reviewer3);\n\t\t\tsession.save(journal);\n\t\t\t\n\t\t\tvolume.setJournal(journal);\n\t\t\tjournal.getVolumes().add(volume);\n\t\t\tsession.save(volume);\n\t\t\t\n\t\t\tedition.setVolume(volume);\n\t\t\tvolume.getEditions().add(edition);\t\t\t\n\t\t\tsession.save(edition);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tpublishedArticle.setEdition(edition);\n\t\t\tedition.getArticles().add(publishedArticle);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tpublishedArticle.setAuthor(author);\n\t\t\tsession.save(publishedArticle);\n\t\t\t\n\t\t\tarticle.setAuthor(author);\n\t\t\tsession.save(article);\n\t\t\t\n\t\t\tarticle1.setAuthor(reviewer1);\n\t\t\tsession.save(article1);\n\t\t\t\n\t\t\tarticle2.setAuthor(reviewer2);\n\t\t\tsession.save(article2);\n\t\t\t\n\t\t\tarticle3.setAuthor(reviewer3);\n\t\t\tsession.save(article3);\n\t\t\t\t\t\t\n\t\t\tReview review1 = new Review();\n\t\t\treview1.setArticle(article1);\n\t\t\treview1.setOverallJudgement(\"champion\");\n\t\t\treview1.setReviewerExpertise(\"outsider\");\n\t\t\treview1.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview1.setSubstantiveCriticism(\"none\");\n\t\t\treview1.setSmallErrors(\"none\");\n\t\t\treview1.setCommentsForEditor(\"Very very good article. Can go to publishing\");\n\t\t\treview1.setReviewer(author);\n\t\t\treview1.validateModel();\n\t\t\tsession.save(review1);\n\n\t\t\tReview review2 = new Review();\n\t\t\treview2.setArticle(article2);\n\t\t\treview2.setOverallJudgement(\"detractor\");\n\t\t\treview2.setReviewerExpertise(\"outsider\");\n\t\t\treview2.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview2.setSubstantiveCriticism(\"none\");\n\t\t\treview2.setSmallErrors(\"a few spelling mistakes\");\n\t\t\treview2.setCommentsForEditor(\"good article!\");\n\t\t\treview2.setReviewer(author);\n\t\t\treview2.validateModel();\n\t\t\tsession.save(review2);\n\t\t\t\n\t\t\tReview review3 = new Review();\n\t\t\treview3.setArticle(article3);\n\t\t\treview3.setOverallJudgement(\"champion\");\n\t\t\treview3.setReviewerExpertise(\"expert\");\n\t\t\treview3.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview3.setSubstantiveCriticism(\"none\");\n\t\t\treview3.setSmallErrors(\"none\");\n\t\t\treview3.setCommentsForEditor(\"Good for publishing\");\n\t\t\treview3.setReviewer(author);\n\t\t\treview3.validateModel();\n\t\t\tsession.save(review3);\n\t\t\t\n\t\t\tReview review4 = new Review();\n\t\t\treview4.setArticle(article);\n\t\t\treview4.setOverallJudgement(\"champion\");\n\t\t\treview4.setReviewerExpertise(\"expert\");\n\t\t\treview4.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview4.setSubstantiveCriticism(\"none\");\n\t\t\treview4.setSmallErrors(\"the indentation is messed up on page 5\");\n\t\t\treview4.setCommentsForEditor(\"need revising but it's good overall\");\n\t\t\treview4.setReviewer(reviewer1);\n\t\t\treview4.validateModel();\n\t\t\tsession.save(review4);\n\t\t\t\n\t\t\tReview review5 = new Review();\n\t\t\treview5.setArticle(article);\n\t\t\treview5.setOverallJudgement(\"champion\");\n\t\t\treview5.setReviewerExpertise(\"outsider\");\n\t\t\treview5.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview5.setSubstantiveCriticism(\"none\");\n\t\t\treview5.setSmallErrors(\"none\");\n\t\t\treview5.setCommentsForEditor(\"perfect!\");\n\t\t\treview5.setReviewer(reviewer2);\n\t\t\treview5.validateModel();\n\t\t\tsession.save(review5);\n\t\t\t\n\t\t\tReview review6 = new Review();\n\t\t\treview6.setArticle(article);\n\t\t\treview6.setOverallJudgement(\"champion\");\n\t\t\treview6.setReviewerExpertise(\"knowledgable\");\n\t\t\treview6.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview6.setSubstantiveCriticism(\"none\");\n\t\t\treview6.setSmallErrors(\"none\");\n\t\t\treview6.setCommentsForEditor(\"good to go!\");\n\t\t\treview6.setReviewer(reviewer3);\n\t\t\treview6.validateModel();\n\t\t\tsession.save(review6);\n\t\t\t\n\t\t\tReview review7 = new Review();\n\t\t\treview7.setArticle(publishedArticle);\n\t\t\treview7.setOverallJudgement(\"champion\");\n\t\t\treview7.setReviewerExpertise(\"expert\");\n\t\t\treview7.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview7.setSubstantiveCriticism(\"None\");\n\t\t\treview7.setSmallErrors(\"Spelling mistakes here and there.\");\n\t\t\treview7.setCommentsForEditor(\"Very good article!\");\n\t\t\treview7.setReviewer(reviewer1);\n\t\t\treview7.validateModel();\n\t\t\tsession.save(review7);\n\t\t\t\n\t\t\tReview review8 = new Review();\n\t\t\treview8.setArticle(publishedArticle);\n\t\t\treview8.setOverallJudgement(\"champion\");\n\t\t\treview8.setReviewerExpertise(\"knowledgable\");\n\t\t\treview8.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview8.setSubstantiveCriticism(\"Not properly organized into sections. The article does not flow\");\n\t\t\treview8.setSmallErrors(\"Gammar mistakes and spelling mistakes\");\n\t\t\treview8.setCommentsForEditor(\"Good article but need revising\");\n\t\t\treview8.setReviewer(reviewer2);\n\t\t\treview8.validateModel();\n\t\t\tsession.save(review8);\n\t\t\t\n\t\t\tReview review9 = new Review();\n\t\t\treview9.setArticle(publishedArticle);\n\t\t\treview9.setOverallJudgement(\"champion\");\n\t\t\treview9.setReviewerExpertise(\"outsider\");\n\t\t\treview9.setArticleSummary(\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. \\n Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \\n It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\");\n\t\t\treview9.setSubstantiveCriticism(\"None\");\n\t\t\treview9.setSmallErrors(\"Losts of grammar code\");\n\t\t\treview9.setCommentsForEditor(\"N/A\");\n\t\t\treview9.setReviewer(reviewer3);\n\t\t\treview9.validateModel();\n\t\t\tsession.save(review9);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tsession.close();\n\t\t\t\n\t\t\tUserDao.setArticleToReview(article1, author);\n\t\t\tUserDao.setArticleToReview(article2, author);\n\t\t\tUserDao.setArticleToReview(article3, author);\n\t\t\tUserDao.setArticleToReview(article, reviewer1);\n\t\t\tUserDao.setArticleToReview(article, reviewer2);\n\t\t\tUserDao.setArticleToReview(article, reviewer3);\n\t\t\t\n\t\t\tLOGGER.log(Level.FINE, \"Created seed user\");\n\t\t\treturn;\n\t\t} catch (InvalidModelException ex) {\n\t\t\t//If there was any invalid User information then log and throw the message up to the user\n\t\t\tLOGGER.log(Level.INFO, ex.getMessage());\n\t\t\tsession.close();\n\t\t\tthrow ex;\n\t\t} catch (ConstraintViolationException ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getCause().getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new InvalidModelException(\"The seed data entered is invalid, please check and try again.\");\n\t\t} catch (Exception ex) {\n\t\t\t//If an unexpected error occurred then log, attempt to rollback and then throw a user friendly error\n\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage());\n\t\t\tsession.getTransaction().rollback();\n\t\t\tsession.close();\n\t\t\tthrow new ConnectionProblemException(\"A problem occurred and seeding could not be completed.\");\n\t\t}\n\t}", "public void newUser(User user);", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "public User delete(String user);", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "@Test(alwaysRun = true, priority = 4)\n public void test005createUserWithEmptyFieldsTest() {\n close();\n login();\n //create user with all empty fields\n createUser(\"\", new HashMap<String, String>());\n\n //check if error message appears after user saving\n getFeedbackPanel().find(byText(\"No name in new object\"));\n }", "void deleteUserById(Integer id);", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void deleteDuplicateUser(String userName) {\n\t\t\n\t}", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "@Test\n public void getUserByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //test fetching of data\n assertNull(userResource.getUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "public void deleteUser(String username);", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "public void creatUser(String name, String phone, String email, String password);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "@Test\n\tpublic void testDeleteAdminAccountWithNonExistingUser() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"Catherine\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(username);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"The user cannot be found.\", error);\n\t}", "UserCreateResponse createUser(UserCreateRequest request);", "GenerateUserAccount () {\r\n }", "@Test\n public void invalidEmptyFieldUserCreation() {\n testUser.setFirstName(\"\");\n\n Assertions.assertFalse(this.userDAO.insertNewUser(testUser));\n }", "@Override\n\tpublic void deleteOneUser(long ids) {\n\t\tregisters.deleteRegisterById(ids);\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public UserAuthToken createUser(CreateUserRequest request);", "public DeleteUser(int id) {\n\t\tsuper();\n\t\tthis.id = id;\n\t}", "@AfterAll\r\n public void cleanUp() {\r\n\r\n UserEto savedUserFromDb = this.usermanagement.findUserByName(\"testUser\");\r\n\r\n if (savedUserFromDb != null) {\r\n this.usermanagement.deleteUser(savedUserFromDb.getId());\r\n }\r\n }" ]
[ "0.7142216", "0.6762726", "0.6719003", "0.6709763", "0.6667065", "0.6640683", "0.66167235", "0.66147965", "0.6601649", "0.6601178", "0.65892273", "0.65822476", "0.65526706", "0.6547973", "0.65261185", "0.6520054", "0.6518344", "0.6517695", "0.6496813", "0.64906025", "0.64829195", "0.64301014", "0.64287364", "0.6415023", "0.63922215", "0.63641286", "0.6348612", "0.6344981", "0.6331343", "0.6328196", "0.63191026", "0.63155526", "0.63068134", "0.6303099", "0.6294295", "0.62785405", "0.6274995", "0.62749517", "0.62749517", "0.626799", "0.6256914", "0.6252829", "0.62487966", "0.62487125", "0.6235768", "0.623298", "0.6227747", "0.62113595", "0.6208729", "0.6201792", "0.6185695", "0.61841637", "0.61690253", "0.616729", "0.6164857", "0.6161963", "0.61462164", "0.61434335", "0.61391443", "0.6138049", "0.6133328", "0.6125552", "0.6118251", "0.61169505", "0.61126345", "0.6108355", "0.6107352", "0.6106528", "0.61041325", "0.60973585", "0.6090859", "0.60874456", "0.60872954", "0.6076832", "0.60693157", "0.6068992", "0.6067223", "0.6065244", "0.60558087", "0.6055756", "0.60408986", "0.6039686", "0.6038816", "0.60386163", "0.60383785", "0.6035106", "0.6026325", "0.60211957", "0.6019804", "0.6016777", "0.60132694", "0.601231", "0.6008258", "0.60061467", "0.60025656", "0.60020006", "0.6000706", "0.5999932", "0.5997823", "0.59915936", "0.59913486" ]
0.0
-1
creating dummyshift to fetch
@Test public void getShiftById() { shiftDAO.createShift(new Shift(4,4,4,4)); assertNotNull(shiftResource.getShiftById(4)); //deleting dummy-shift shiftDAO.removeShift(4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prepareShifts() {\n // set John first shift\n LocalDateTime johnShift1Start = LocalDateTime.of(2017, 6, 23, 9, 0);\n LocalDateTime johnShift1End = LocalDateTime.of(2017, 6, 23, 17, 0);\n // set John second shift\n LocalDateTime johnShift2Start = LocalDateTime.of(2017, 6, 24, 6, 0);\n LocalDateTime johnShift2End = LocalDateTime.of(2017, 6, 24, 14, 0);\n // add John shifts to the list of shifts\n shifts.add(new Shift(\"John\", johnShift1Start, johnShift1End));\n shifts.add(new Shift(\"John\", johnShift2Start, johnShift2End));\n }", "@Test\n public void getSingleShiftCatch(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy\", 2, false, new Date(2017-01-01), 0, true));\n\n assertNull(shiftListResource.getSingleShift(new Date(2017-01-01), 2, \"notdummy\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 2, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "@Test\n public void getSingleShift(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy\", 2, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getSingleShift(new Date(2017-01-01), 2, \"dummy\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 2, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "private static void testShift() {\n for (int a:new int[]{96754441, -206107026, 803362655, Integer.MIN_VALUE+1}) {\n System.out.println(\"<<\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a<<i) + \" \" + (a<<i));\n }\n System.out.println();\n System.out.println(\">>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>i) + \" \" + (a>>i));\n }\n System.out.println();\n System.out.println(\">>>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>>i) + \" \" + (a>>>i));\n }\n System.out.println();\n }\n }", "public void addShift(Shift shift){shifts_dao.addShift(shift);}", "void shift() {\n deleteStart += txnOps;\n deleteEnd += txnOps;\n updateStart += txnOps;\n updateEnd += txnOps;\n insertStart += txnOps;\n insertEnd += txnOps;\n }", "private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}", "Observable<Shift> createNewShift(Shift shift);", "@Test\n public void getShiftByIdCatch() {\n shiftDAO.createShift(new Shift(4,4,4,4));\n assertNull(shiftResource.getShiftById(5));\n //deleting dummy-shift\n shiftDAO.removeShift(4);\n }", "@Override\n\tpublic ShiftsVo getShiftRecordByShiftId(Integer shiftId) {\n\t\tShiftsVo vo = new ShiftsVo();\n\t\ttry{\t\t\t\n\t\t\tList tempList = sessionFactory.getCurrentSession().createSQLQuery(\"SELECT `Shift_id`, Customer_Id, `Company_id`, `Country_Id`, `Transaction_Date`, `Is_Active`, `Week_Start_Day`, `Week_End_Day`, Time_Zone, `Time_Set_Format`, `Currency_Id`,Default_Pattern_Type FROM `shifts` WHERE Shift_id =\"+shiftId).list();\n\t\t\tfor(Object object : tempList){\n\t\t\t\tObject[] obj = (Object[]) object;\n\t\t\t\t vo.setShiftId((Integer)obj[0]);\n\t\t\t\t vo.setCustomerDetailsId((Integer)obj[1]);\n\t\t\t\t vo.setCompanyDetailsId((Integer)obj[2]);\t \t\n\t \t vo.setCountryId((Integer)obj[3]);\n\t \t vo.setTransactionDate((Date)obj[4]);\n\t \t vo.setIsActive(obj[5]+\"\");\n\t \t vo.setWeekStartDay((Integer)obj[6]);\n\t \t vo.setWeekEndDay((Integer)obj[7]);\n\t \t vo.setTimeZone(obj[8]+\"\");\n\t \t vo.setTimeSetFormat(obj[9]+\"\");\t\t\t\n\t \t vo.setCurrencyId((Integer)obj[10]);\n\t \t vo.setDefaultPatternType(obj[11]+\"\");\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tlog.error(\"Error Occured \",e);\n\t\t}\n\t\treturn vo;\n\t}", "private int addShift( int x ) { x += _nxx; int sz = H2O.CLOUD.size(); return x < sz ? x : x-sz; }", "public abstract void shift(int param);", "public SequenceMapping mapping(int shift) {\n\treturn mapping(shift, null);\n/*\nudanax-top.st:15788:SequenceSpace methodsFor: 'smalltalk: defaults'!\n{SequenceMapping CLIENT} mapping: shift {IntegerVar}\n\t\"A transformation which shifts a value by some number of places and then adds a translation to it.\"\n\t\n\t^self mapping: shift with: NULL!\n*/\n}", "@Override\n public List<Shift> getShifts(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Shift> shifts = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblShifts\");\n for(Map<String,Object> map: data)\n shifts.add(new Shift(map));\n return shifts;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n\n }", "protected void addShiftToCache () {\n if (digitalShift == null)\n for (int j = 0; j <= dim; j++)\n cachedCurPoint[j] = 0;\n else\n for (int j = 0; j <= dim; j++)\n cachedCurPoint[j] = digitalShift[j];\n }", "@Test\n public void getShiftListById(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListById(\"dummy3\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "protected void addShiftToCache () {\n if (digitalShift == null)\n for (int j = 0; j < dimS; j++)\n cachedCurPoint[j] = 0;\n else\n for (int j = 0; j < dimS; j++)\n cachedCurPoint[j] = digitalShift[j];\n }", "static int[][] generateShifts(int maxDistanceLeft, ThreadVariables t){\n return null;\n }", "@Test\n public void getShiftListByIdCatch(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListById(\"notdummy3\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "public static void main(String[] args){\n\t\t int[] input = {1,3,0,3,0,6,0,9,23,45};\n\t\t int[] output = new ShiftAllZero().shiftZero(input);\n\t\t for (int index = 0; index < input.length; index++) {\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(output[index]);\n\t\t\t\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t \n\t }", "void addShift(Shift shiftToAdd);", "private void startHeavyLifting(int first, int count)\n {\n }", "public DigitalNetBase2IteratorShiftNoGray() {\n super(); \n dimS = dim + 1;\n if (digitalShift != null && dimShift < dimS)\n addRandomShift (dimShift, dimS, shiftStream);\n resetCurPointIndex();\n }", "void fetchStartHousesData();", "@Test\n public void getShiftListByDateAndId(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListsByDateAndShiftId(\"2017-01-01\",1));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "public DigitalNetBase2IteratorShiftGenerators() {\n super(); \n dimS = dim + 1;\n if (digitalShift != null && dimShift < dimS)\n addRandomShift (dimShift, dimS, shiftStream);\n resetCurPointIndex();\n }", "Offset createOffset();", "public static void main(String[] args) {\n shift();\n\n }", "public void createCalShift() {\n\t\tString yes = \"Y\";\n\t\tString effectiveToDate = getProperty(\"EFFECTIVE_TO_DATE\");\n\t\tString defShiftStartTime = getProperty(\"SHIFT_START_TIME\");\n\t\tString defShiftEndTime = getProperty(\"SHIFT_END_TIME\");\n\t\tYFCElement effectivePeriodsEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.EFFECTIVE_PERIODS);\n\t\tYFCElement effectivePeriodEle = effectivePeriodsEle.getChildElement(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffectivePeriodEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, effectiveToDate);\n\t\tYFCElement shiftEle=effectivePeriodEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT);\n\t\tshiftEle.setAttribute(XMLLiterals.WEDNESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.TUESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.THURSDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SUNDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SATURDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.MONDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.FRIDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_START_TIME,defShiftStartTime);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_END_TIME,defShiftEndTime);\n\t}", "public void oddRowShift(int shift)\n{\n if(m != null && m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().setOddRowShift((float)(shift*0.01f));\n m.getOutputImageManager().setToRerender();\n }\n}", "private RowMapper<Object[]> getInitalWorkerMapper () {\n\t\treturn new RowMapper<Object[]>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object[] mapRow(ResultSet rs, int rowIndex) throws SQLException {\n\t\t\t\t\n\t\t\t\tResultSetMetaData rsMeta = rs.getMetaData();\n\t\t\t\t\n\t\t\t\tcolCount = rsMeta.getColumnCount() ;\n\t\t\t\tObject[] retval = new Object[colCount];\n\t\t\t\tanalizeQueryResultMetaData(rsMeta, metaData.getDecimalColumns()); \n\t\t\t\tsetRowMapper(getNormalWorkerMapper());\n\t\t\t\tfor ( int i=0 ; i < colCount;i++){\n\t\t\t\t\tretval[i] = rs.getObject(i+1);\n\t\t\t\t}\n\t\t\t\treturn retval;\n\t\t\t}\n\t\t};\n\t}", "void insertEmptyColumns() {\n List<DateTime> starts = new ArrayList<>();\n for (Long startMillis : mColumnsByStartMillis.keySet()) {\n starts.add(new DateTime(startMillis));\n }\n int maxEmptyColumns = 3 / getSegmentStartTimes().length;\n DateTime prev = starts.get(0);\n for (DateTime next : starts) {\n if (!next.isAfter(prev.plusDays(maxEmptyColumns))) {\n for (DateTime dt = prev.plusDays(1); dt.isBefore(next); dt = dt.plusDays(1)) {\n getColumnContainingTime(dt); // creates a column if it doesn't exist yet\n }\n }\n prev = next;\n }\n }", "protected abstract boolean shift();", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "public void evenRowShift(int shift)\n{\n if(m != null && m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().setEvenRowShift((float)(shift*0.01f));\n m.getOutputImageManager().setToRerender();\n }\n}", "@Test\n public void createShiftList(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n\n assertTrue(shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 1, \"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n }", "public void shiftIndexes(int shift, IndexPredicate predicate) {\n if (predicate == null) {\n index1 += shift;\n index2 += shift;\n } else {\n index1 += predicate.execute(index1) ? shift : 0;\n index2 += predicate.execute(index2) ? shift : 0;\n }\n }", "private void createDataProcShiftImm(Code32 code, int op, int cond, int Rd, int Rm, int shiftAmount) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 12) | (shiftAmount << 7) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Test\n public void getWantSwap() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy\", 2, true, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getWantSwap(true));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 2, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "@Test\n public void getShiftListByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListsByDate(new Date(2017-01-01)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "@Override\n\tpublic void visit(BitwiseLeftShift arg0) {\n\t\t\n\t}", "private void initializeAnimalShiftLeftSourceCode() {\r\n\t\tshiftLeftSc = lang.newSourceCode(new Offset(0, 100, shiftRowSc, AnimalScript.DIRECTION_SW), \"shiftLeftSourceCode\", null, sourceCodeProps);\r\n\t\tshiftLeftSc.addCodeLine( \"private int[][] shiftLeft(int[][] matrix, int row){\", null, 0, null);\r\n\t\tshiftLeftSc.addCodeLine(\" for(int i = row; i < row; i++){\", null, 1, null);\r\n\t\tshiftLeftSc.addCodeLine(\" int tmp = matrix[row][0];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][0] = matrix[row][1];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][1] = matrix[row][2];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][2] = matrix[row][3];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][3] = tmp;\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" }\", null, 1, null);\r\n\t\tshiftLeftSc.addCodeLine(\" return matrix;\", null, 3, null);\r\n\t\tshiftLeftSc.addCodeLine(\"}\", null, 0, null);\r\n\t}", "public TribitByte shiftLeft(int shift){\n return shiftRight(-shift);\n }", "@Test\n public void removeShift(){\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n //clean up and test\n assertTrue(shiftResource.removeShift(dummy.getShift_id()));\n }", "private void maskData() throws Throwable\r\n\t{\r\n\t\t// run simple JDBC queries to mask data\r\n\t\t// use java date and random abilities where needed } private createStagingPrivateInstance() {\r\n\t\t//export from production\r\n\t\t// delete private staging schema\r\n\t\t//import to private staging\r\n\r\n\t\tfinal MaskUsingDEMetatdata mask = new MaskUsingDEMetatdata();\r\n\r\n\t\tmask.maskIdentifiedData();\r\n\r\n\t}", "public final PythonParser.shift_expr_return shift_expr() throws RecognitionException {\n PythonParser.shift_expr_return retval = new PythonParser.shift_expr_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_right=null;\n PythonParser.arith_expr_return left = null;\n\n PythonParser.shift_op_return shift_op202 = null;\n\n PythonParser.arith_expr_return right = null;\n right = null;\n RewriteRuleSubtreeStream stream_arith_expr=new RewriteRuleSubtreeStream(adaptor,\"rule arith_expr\");\n RewriteRuleSubtreeStream stream_shift_op=new RewriteRuleSubtreeStream(adaptor,\"rule shift_op\");\n\n List ops = new ArrayList();\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1188:5: (left= arith_expr ( ( shift_op right+= arith_expr )+ | -> $left) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1188:7: left= arith_expr ( ( shift_op right+= arith_expr )+ | -> $left)\n {\n pushFollow(FOLLOW_arith_expr_in_shift_expr5124);\n left=arith_expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arith_expr.add(left.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:9: ( ( shift_op right+= arith_expr )+ | -> $left)\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==RIGHTSHIFT||LA95_0==LEFTSHIFT) ) {\n alt95=1;\n }\n else if ( (LA95_0==EOF||LA95_0==NEWLINE||LA95_0==NAME||(LA95_0>=AND && LA95_0<=AS)||LA95_0==FOR||LA95_0==IF||(LA95_0>=IN && LA95_0<=IS)||(LA95_0>=NOT && LA95_0<=ORELSE)||(LA95_0>=RPAREN && LA95_0<=COMMA)||(LA95_0>=SEMI && LA95_0<=DOUBLESLASHEQUAL)||(LA95_0>=LESS && LA95_0<=AMPER)||LA95_0==RBRACK||(LA95_0>=RCURLY && LA95_0<=BACKQUOTE)) ) {\n alt95=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 95, 0, input);\n\n throw nvae;\n }\n switch (alt95) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:11: ( shift_op right+= arith_expr )+\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:11: ( shift_op right+= arith_expr )+\n int cnt94=0;\n loop94:\n do {\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==RIGHTSHIFT||LA94_0==LEFTSHIFT) ) {\n alt94=1;\n }\n\n\n switch (alt94) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:13: shift_op right+= arith_expr\n \t {\n \t pushFollow(FOLLOW_shift_op_in_shift_expr5138);\n \t shift_op202=shift_op();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_shift_op.add(shift_op202.getTree());\n \t pushFollow(FOLLOW_arith_expr_in_shift_expr5142);\n \t right=arith_expr();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_arith_expr.add(right.getTree());\n \t if (list_right==null) list_right=new ArrayList();\n \t list_right.add(right.getTree());\n\n \t if ( state.backtracking==0 ) {\n\n \t ops.add((shift_op202!=null?shift_op202.op:null));\n \t \n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt94 >= 1 ) break loop94;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(94, input);\n throw eee;\n }\n cnt94++;\n } while (true);\n\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1195:8: \n {\n\n // AST REWRITE\n // elements: left\n // token labels: \n // rule labels: retval, left\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,\"rule left\",left!=null?left.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1195:8: -> $left\n {\n adaptor.addChild(root_0, stream_left.nextTree());\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n if (!ops.isEmpty()) {\n retval.tree = actions.makeBinOp((left!=null?((PythonTree)left.tree):null), ops, list_right);\n }\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "public interface IShiftHandle\r\n{\r\n /**\r\n * Add a new shift to the model\r\n * @param shiftToAdd a shift to add\r\n */\r\n void addShift(Shift shiftToAdd);\r\n\r\n /**\r\n *\r\n * @param userName the represent the all shifts for the specific user\r\n * @return ResultSet that represent all the shifts for the specific user\r\n * @throws GetAllException\r\n */\r\n ResultSet getAllShift(String userName) throws GetAllException;\r\n}", "public ShiftTemplate(Integer shiftId) {\n this.shiftId = shiftId;\n }", "private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "@Test\n public void testQueryWithEmptySegment() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\" [20120101000000_20120102000000]\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\" [20120102000000_20120103000000]\n val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"; // [20120103000000_20120104000000]\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\" [20120104000000_20120105000000]\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\" [20120105000000_20120106000000]\n\n EnhancedUnitOfWork.doInTransactionWithCheckAndRetry(() -> {\n NDataflowManager dfMgr = NDataflowManager.getInstance(getTestConfig(), project);\n NDataflow dataflow = dfMgr.getDataflow(dfId);\n NDataSegment latestReadySegment = dataflow.getSegment(seg3Id);\n if (latestReadySegment != null) {\n NDataSegDetails segDetails = latestReadySegment.getSegDetails();\n List<NDataLayout> allLayouts = segDetails.getAllLayouts();\n\n // update\n NDataflowUpdate dataflowUpdate = new NDataflowUpdate(dfId);\n NDataLayout[] toRemoveLayouts = allLayouts.stream()\n .filter(dataLayout -> dataLayout.getLayoutId() == 20001).toArray(NDataLayout[]::new);\n dataflowUpdate.setToRemoveLayouts(toRemoveLayouts);\n dfMgr.updateDataflow(dataflowUpdate);\n }\n return null;\n }, project);\n\n val sql = \"select cal_dt, sum(price), count(*) from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" //\n + \"group by cal_dt\\n\";\n // can not query\n {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(-1L, storageContext.getLayoutId().longValue());\n }\n\n {\n MetadataTestUtils.updateProjectConfig(project, \"kylin.query.index-match-rules\",\n QueryRouter.USE_VACANT_INDEXES);\n try (QueryContext queryContext = QueryContext.current()) {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(10001L, storageContext.getLayoutId().longValue());\n Assert.assertFalse(queryContext.getQueryTagInfo().isVacant());\n }\n }\n }", "@Override\n\t@Transactional\n\tpublic Shift getShiftFromId(Integer shiftId) {\n\t\treturn theShiftDAO.getShiftFromId(shiftId);\n\t}", "private static int getShiftForChannel(int channel) {\n return 24 - 8 * channel;\n }", "public void moveShiftLeft();", "private void setupMockBase() {\n storage = new MockBase(tsdb, client, true, true, true, true);\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, \n Bytes.fromLong(2L));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, \n Bytes.fromLong(2L));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, \n Bytes.fromLong(2L));\n // forward mappings\n storage.addColumn(UID_TABLE, \"foo\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, \"host\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGK, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, \"web01\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGV, new byte[] {0, 0, 1});\n \n storage.addColumn(UID_TABLE, \"bar\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 2});\n storage.addColumn(UID_TABLE, \"dc\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGK, new byte[] {0, 0, 2});\n storage.addColumn(UID_TABLE, \"web02\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGV, new byte[] {0, 0, 2});\n \n // reverse mappings\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n TAGK, \"host\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n TAGV, \"web01\".getBytes(MockBase.ASCII()));\n \n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"bar\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n TAGK, \"dc\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n TAGV, \"web02\".getBytes(MockBase.ASCII()));\n }", "@Test\n public void testRecordInboundMovement1() throws Exception {\n System.out.println(\"recordInboundMovement\");\n Long factoryId = 1L;\n Long goodsReceiptId = 1L;\n Long toBinId = 500L;\n String status = \"unrestricted\";\n Double quantity = 40D;\n Calendar creationDate = Calendar.getInstance();\n creationDate.set(2014, 9, 30, 15, 0, 0);\n Long expResult = -3L;\n Long result = FactoryInventoryManagementModule.recordInboundMovement(factoryId, goodsReceiptId, toBinId, status, quantity, creationDate);\n assertEquals(expResult, result);\n }", "public ShiftTemplate() {\n }", "int insertSelective(AoD5e466WorkingDay record);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public void shiftLeft() {\n int currentPointer = this.registerPointer;\n\n if (currentPointer == 0)\n this.registerPointer = this.registerCapacity - 1;\n else\n this.registerPointer -= 1;\n }", "public SampleVector shift(int shiftDistance) {\n\t\treturn new OffsetSampleVector(this.samples, this.size, shiftDistance);\n\t}", "private void createStressTestRowIncomingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_INCOMING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public static final int[] get_LEFT_SHIFT(){\n\t\t\n\t\tint[] table = new int[16*16];\n\t\t\n\t\t//\ttable[(T_undefined<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_byte<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_byte] \t\t= (Byte2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_long] \t\t= (Byte2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_short] \t\t= (Byte2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_char] \t\t= (Byte2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_int] \t\t= (Byte2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_long<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_byte] \t\t= (Long2Long<<12)+(Byte2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_long] \t\t= (Long2Long<<12)+(Long2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_short] \t\t= (Long2Long<<12)+(Short2Int<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_char] \t\t= (Long2Long<<12)+(Char2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_int] \t\t= (Long2Long<<12)+(Int2Int<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_short<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_short<<4)+T_byte] \t\t\t= (Short2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_long] \t\t\t= (Short2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_short] \t\t= (Short2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_short<<4)+T_char] \t\t\t= (Short2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_int] \t\t\t= (Short2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_void<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_boolean] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_int] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_String<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_Object<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_short]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_boolean]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_double<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_float<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_boolean<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_String] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_Object] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_double] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_char<<4)+T_undefined] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_byte] \t\t\t= (Char2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_long] \t\t\t= (Char2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_short] \t\t\t= (Char2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_char] \t\t\t= (Char2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_int] \t\t\t= (Char2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_int<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_byte] \t\t= (Int2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_long] \t\t= (Int2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_short] \t\t= (Int2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_char] \t\t= (Int2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_int] \t\t= (Int2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_null<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_null] \t\t\t= T_undefined;\n\t\n\t\treturn table;\n\t}", "private void initializeAnimalShiftRowSourceCode() {\r\n\t\tshiftRowSc = lang.newSourceCode(new Offset(100, 0, mainMatrix, AnimalScript.DIRECTION_NE), \"shiftRowSourceCode\", null, sourceCodeProps);\r\n\t\tshiftRowSc.addCodeLine(\"private void shiftRow(int[][] matrix){\", null, 0, null);\r\n\t\tshiftRowSc.addCodeLine( \" for(int row = 0; row < matrix.length; row++){\", null, 1, null);\r\n\t\tshiftRowSc.addCodeLine(\" matrix = shiftLeft(matrix, row);\", null, 2, null);\r\n\t\tshiftRowSc.addCodeLine(\" }\", null, 1, null);\r\n\t\tshiftRowSc.addCodeLine(\"}\", null, 0, null);\r\n\t}", "private void shiftPartialRowToBeginning() {\n if(true)\n throw new UnsupportedOperationException(\"Need to step through this method\");\n// // Get the length to shift from the beginning of the partial row.\n// int length = lastValidBytePosition_ - currentRowPosition_;\n//\n// // shift the data in the dataBufferStream\n// dataBufferStream_.reset();\n// if (dataBuffer_ != null) {\n// dataBufferStream_.write(dataBuffer_, currentRowPosition_, length);\n// }\n//\n// for (int i = 0; i < length; i++) {\n// dataBuffer_[i] = dataBuffer_[currentRowPosition_ + i];\n// }\n//\n// position_ = length - (lastValidBytePosition_ - position_);\n// lastValidBytePosition_ = length;\n }", "FetchFirst createFetchFirst();", "void setFirstResult(int offset);", "Map<Date, Integer> getFullUniques(Step step) throws SQLException;", "@Test\n public void testRecordInboundMovement4() throws Exception {\n System.out.println(\"recordInboundMovement\");\n Long factoryId = 1L;\n Long goodsReceiptId = 20L;\n Long toBinId = 5L;\n String status = \"\";\n Double quantity = 40D;\n Calendar creationDate = Calendar.getInstance();\n creationDate.set(2014, 9, 30, 15, 0, 0);\n Long expResult = -1L;\n Long result = FactoryInventoryManagementModule.recordInboundMovement(factoryId, goodsReceiptId, toBinId, status, quantity, creationDate);\n assertEquals(expResult, result);\n }", "private T generateShifted(Vector2 origin, int quantity) {\n Vector2 direction = new Vector2(random(), random());\n float r = getSize(quantity);\n return generate(origin, direction, quantity, r);\n }", "public static void main(String[] args) {\n\t\tint[] arr={1,0,2,0,0,-1};\r\n\t\tshift(arr);\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\tSystem.out.println(arr[i]);\r\n\t}", "public static PacketSource makeDummy() {\n\treturn new DummySource();\n }", "@Test\n public void createShiftListCatch(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n\n assertFalse(shiftListResource.createShiftlist(new ShiftList(\"Dumbdummy, but it has way too long of a name. Seriously!\", 1, false, new Date(2017-01-01), 0, true)));\n\n //clean up\n userDAO.removeUser((\"dummy3\"));\n }", "public LR0Item getShiftedItem() {\n\t\tassert (canShift());\n\t\treturn new LR0Item(getLhs(), getRhs(), marker + 1);\n\t}", "public final PythonParser.shift_op_return shift_op() throws RecognitionException {\n PythonParser.shift_op_return retval = new PythonParser.shift_op_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token LEFTSHIFT203=null;\n Token RIGHTSHIFT204=null;\n\n PythonTree LEFTSHIFT203_tree=null;\n PythonTree RIGHTSHIFT204_tree=null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1201:5: ( LEFTSHIFT | RIGHTSHIFT )\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==LEFTSHIFT) ) {\n alt96=1;\n }\n else if ( (LA96_0==RIGHTSHIFT) ) {\n alt96=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 96, 0, input);\n\n throw nvae;\n }\n switch (alt96) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1201:7: LEFTSHIFT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n LEFTSHIFT203=(Token)match(input,LEFTSHIFT,FOLLOW_LEFTSHIFT_in_shift_op5226); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LEFTSHIFT203_tree = (PythonTree)adaptor.create(LEFTSHIFT203);\n adaptor.addChild(root_0, LEFTSHIFT203_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = operatorType.LShift;\n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1203:7: RIGHTSHIFT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n RIGHTSHIFT204=(Token)match(input,RIGHTSHIFT,FOLLOW_RIGHTSHIFT_in_shift_op5244); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n RIGHTSHIFT204_tree = (PythonTree)adaptor.create(RIGHTSHIFT204);\n adaptor.addChild(root_0, RIGHTSHIFT204_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = operatorType.RShift;\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "Observable<ArrayList<Shift>> shifts();", "public static void main(String[] args) {\n\t\tint x = ~0;\r\n\t\tSystem.out.println(Integer.toBinaryString(x));\r\n\t\tint y = x>>>8;\r\n\t\tSystem.out.println(Integer.toBinaryString(y));\r\n\t\tSystem.out.println(x+\" \"+y);\r\n\t\t\r\n\t\tint N = 1<<31;\r\n\t\tint M = 0b11;\r\n\t\tint j=2;\r\n\t\tint i=1;\r\n\t\tSystem.out.println(Integer.toBinaryString(N));\r\n\t\tSystem.out.println(Integer.toBinaryString(M));\r\n\t\tSystem.out.println(Integer.toBinaryString(insertMIntoNFromJtoI(M, N, j, i)));\r\n\t\t\r\n\t}", "@Override\r\n\tprotected NewlyAllocatedFlowSet entryInitialFlow() {\n\t\treturn new NewlyAllocatedFlowSet();\r\n\t}", "public void testGetRowKey() {\n TaskSeriesCollection c = createCollection1();\n }", "public Transaction getDummyTransaction(String action) {\n\n\t\t// Long payerAccountNum = 111l;\n\t\tLong payerRealmNum = 0l;\n\t\tLong payerShardNum = 0l;\n\t\t// Long nodeAccountNum=123l;\n\t\tLong nodeRealmNum = 0l;\n\t\tLong nodeShardNum = 0l;\n\t\tlong transactionFee = 0l;\n\t\tTimestamp startTime =\n\t\t\t\tRequestBuilder.getTimestamp(Instant.now(Clock.systemUTC()).minusSeconds(13));\n\t\tDuration transactionDuration = RequestBuilder.getDuration(100);\n\t\tboolean generateRecord = false;\n\t\tString memo = \"UnitTesting\";\n\t\tint thresholdValue = 10;\n\t\tList<Key> keyList = new ArrayList<>();\n\t\tKeyPair pair = new KeyPairGenerator().generateKeyPair();\n\t\tbyte[] pubKey = ((EdDSAPublicKey) pair.getPublic()).getAbyte();\n\t\tKey akey =\n\t\t\t\tKey.newBuilder().setEd25519(ByteString.copyFromUtf8((MiscUtils.commonsBytesToHex(pubKey)))).build();\n\t\tPrivateKey priv = pair.getPrivate();\n\t\tkeyList.add(akey);\n\t\tlong initBal = 100;\n\t\tlong sendRecordThreshold = 5;\n\t\tlong receiveRecordThreshold = 5;\n\t\tboolean receiverSign = false;\n\t\tDuration autoRenew = RequestBuilder.getDuration(100);\n\t\t;\n\t\tlong proxyAccountNum = 12345l;\n\t\tlong proxyRealmNum = 0l;\n\t\tlong proxyShardNum = 0l;\n\t\tint proxyFraction = 10;\n\t\tint maxReceiveProxyFraction = 10;\n\t\tlong shardID = 0l;\n\t\tlong realmID = 0l;\n\n\t\tTransaction trx = null;\n\t\tSignatureList sigList = SignatureList.getDefaultInstance();\n\t\tTimestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\n\t\t/**\n\t\t * SignatureList sigList = SignatureList.getDefaultInstance(); Transaction transferTx =\n\t\t * RequestBuilder.getCryptoTransferRequest( payer.getAccountNum(), payer.getRealmNum(),\n\t\t * payer.getShardNum(), nodeAccount.getAccountNum(), nodeAccount.getRealmNum(),\n\t\t * nodeAccount.getShardNum(), 800, timestamp, transactionDuration, false, \"test\", sigList,\n\t\t * payer.getAccountNum(), -100l, nodeAccount.getAccountNum(), 100l); transferTx =\n\t\t * TransactionSigner.signTransaction(transferTx, accountKeys.get(payer));\n\t\t */\n\n\t\tif (\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t\ttrx = RequestBuilder.getCryptoTransferRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 800, timestamp,\n\t\t\t\t\ttransactionDuration, false, \"test\", sigList, payerAccountId.getAccountNum(), -100l,\n\t\t\t\t\tnodeAccountId.getAccountNum(), 100l);\n\t\t\t// trx = TransactionSigner.signTransaction(trx, account2keyMap.get(payerAccountId));\n\t\t}\n\n\t\tif (\"createContract\".equalsIgnoreCase(action)) {\n\t\t\tFileID fileID = FileID.newBuilder().setFileNum(9999l).setRealmNum(1l).setShardNum(2l).build();\n\n\t\t\ttrx = RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 50000000000l, timestamp,\n\t\t\t\t\ttransactionDuration, true, \"createContract\", DEFAULT_CONTRACT_OP_GAS, fileID,\n\t\t\t\t\tByteString.EMPTY, 0, transactionDuration,\n\t\t\t\t\tSignatureList.newBuilder().addSigs(\n\t\t\t\t\t\t\tSignature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t\t\t\t\t\t.build(),\n\t\t\t\t\t\"\");\n\t\t}\n\n\t\t// if(\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t// long durationInSeconds = DAY_SEC * 30;\n\t\t// * Duration contractAutoRenew = Duration.newBuilder().setSeconds(durationInSeconds).build();\n\t\t// * Timestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\t\t// * Duration transactionDuration = RequestBuilder.getDuration(30, 0);\n\t\t// * Transaction createContractRequest =\n\t\t// RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t// * payerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t// * nodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 100l, timestamp,\n\t\t// transactionDuration, true, \"createContract\",\n\t\t// * DEFAULT_CONTRACT_OP_GAS, contractFile, ByteString.EMPTY, 0, contractAutoRenew,\n\t\t// * SignatureList.newBuilder()\n\t\t// *\n\t\t// .addSigs(Signature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t// * .build());\n\t\t// }\n\n\t\treturn trx;\n\n\t}", "private static void createDummyTransactions() {\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 10L, new Transaction(10000d, \"cars\", 0L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 11L, new Transaction(15000d, \"shopping\", 10L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 12L, new Transaction(20000d, \"keys\", 11L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 13L, new Transaction(25000d, \"furniture\", 12L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 14L, new Transaction(30000d, \"keys\", 13L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 15L, new Transaction(40000d, \"cars\", 14L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 16L, new Transaction(50000d, \"cars\", 15L)));\n }", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone insertNewNoPassingZone(int i);", "private void updateIndentityStarts(ExtendedJdbcTemplate ejt) {\r\n\t\tList<IdentityStart> starts = ejt.query(\"select t.tablename, c.columnname, c.autoincrementvalue \" + //\r\n\t\t\t\t\"from sys.syscolumns c join sys.systables t on c.referenceid = t.tableid \" + //\r\n\t\t\t\t\"where t.tabletype='T' and c.autoincrementvalue is not null\", new GenericRowMapper<IdentityStart>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic IdentityStart mapRow(ResultSet rs, int index) throws SQLException {\r\n\t\t\t\t\t\tIdentityStart is = new IdentityStart();\r\n\t\t\t\t\t\tis.table = rs.getString(1);\r\n\t\t\t\t\t\tis.column = rs.getString(2);\r\n\t\t\t\t\t\tis.aiValue = rs.getInt(3);\r\n\t\t\t\t\t\treturn is;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\tfor (IdentityStart is : starts) {\r\n\t\t\tint maxId = ejt.queryForInt(\"select max(\" + is.column + \") from \" + is.table);\r\n\t\t\tif (is.aiValue <= maxId)\r\n\t\t\t\tejt.execute(\"alter table \" + is.table + \" alter column \" + is.column + \" restart with \" + (maxId + 1));\r\n\t\t}\r\n\t}", "protected Object newInitialFlow() {\n\t\treturn emptySet.clone();\n\t}", "@Override\n protected Sequence newSequence(ResultSet sequenceMeta) throws SQLException {\n Sequence seq = super.newSequence(sequenceMeta);\n seq.setIdentifier(DBIdentifier.trim(seq.getIdentifier()));\n return seq;\n }", "public void createRepeatingPayloads(){\n\t\tthis.sets = generateRepeatingPayload();\n\t}", "public FractalMapImpl() {\n this.shift = 0;\n }", "@Test\n public void removeShiftCatch(){\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n //test\n assertFalse(shiftDAO.removeShift(5));\n //clean up\n shiftDAO.removeShift(dummy.getShift_id());\n }", "@Test\n public void getShiftsByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n employeeResource.createEmployee(new Employee(\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\", 1));\n\n assertNotNull(shiftListFunctionResource.getShiftsByDate(\"2017-01-01\"));\n\n //clean up\n employeeResource.removeEmployee(\"dummy3\");\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "@Test\n public void updateShift() {\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n Shift updated = new Shift(4, 2, 2, 2);\n assertTrue(shiftResource.updateShift(updated));\n\n //clean up\n shiftDAO.removeShift(updated.getShift_id());\n }", "@Test\n public void getEmployeesForShift(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEmployeesForShift(\"dummy\", 1));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n }", "@Override\r\n\tpublic LdcDemandAndWeather mapRow(ResultSet rs, int rowNum)\r\n\t\t\tthrows SQLException {\n\t\tDate dstDate = null;\r\n\t\ttry {\r\n\t\t\tdstDate = datetimeWithTimezoneFormat.parse(rs\r\n\t\t\t\t\t.getString(\"reading_datetime_with_timezone\"));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdouble tempMetric = rs\r\n\t\t\t\t.getDouble(\"wunderground_observation.temp_metric\");\r\n\t\tdouble demand = rs.getDouble(\"SmartMeterReadings.Reading\");\r\n\r\n\t\treturn new LdcDemandAndWeather(tempMetric, dstDate, demand);\r\n\t}", "private int[] copyDigitalShift (int[] S) {\n if (S == null) return null;\n int[] T = new int [S.length];\n for (int i = 0; i < S.length; ++i)\n T[i] = S[i];\n return T;\n }", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "int insert(AoD5e466WorkingDay record);", "private void createDataProcMovShiftReg(Code32 code, int op, int cond, int Rd, int Rm, int shiftType, int Rs) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 12) | (Rs << 8) | (shiftType << 5) | (1 << 4) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Override\n public void unshift_native(ThreadContext tc) {\n if (start < 1) {\n int n = 8;\n int i;\n\n /* grow the array */\n int origElems = elems;\n set_size_internal(tc, elems + n);\n\n /* move elements and set start */\n memmove(slots, n, 0, origElems);\n start = n;\n elems = origElems;\n\n /* clear out beginning elements */\n for (i = 0; i < n; i++)\n slots[i] = 0.0;\n }\n\n /* Now do the unshift */\n start--;\n tc.native_type = ThreadContext.NATIVE_NUM;\n slots[start] = tc.native_n;\n elems++;\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n SimpleResultSet simpleResultSet0 = new SimpleResultSet();\n Statement statement0 = DBUtil.getStatement(simpleResultSet0);\n assertNull(statement0);\n }" ]
[ "0.587416", "0.5357545", "0.5283793", "0.52693266", "0.52681726", "0.52659136", "0.51808316", "0.51436925", "0.5091852", "0.5021067", "0.5005133", "0.4986048", "0.49393976", "0.49268287", "0.49100137", "0.4880519", "0.4877255", "0.48620567", "0.48614925", "0.4861345", "0.4833044", "0.48129958", "0.4778407", "0.47687817", "0.47620374", "0.47481257", "0.47433174", "0.47231346", "0.470772", "0.47061127", "0.4704237", "0.46824247", "0.46769214", "0.46608272", "0.46573284", "0.465648", "0.4638168", "0.46312088", "0.46200866", "0.46061856", "0.45995238", "0.4592538", "0.45824188", "0.45685336", "0.45673722", "0.45647386", "0.45633832", "0.4548944", "0.45395255", "0.45173922", "0.45099813", "0.4496933", "0.44908026", "0.4487869", "0.4487667", "0.44854856", "0.44783399", "0.44715592", "0.4467106", "0.4458795", "0.4457444", "0.4453878", "0.44531313", "0.44501227", "0.4449877", "0.44491142", "0.44472525", "0.44465628", "0.44436994", "0.4436474", "0.44362178", "0.4425952", "0.44165343", "0.44138953", "0.43974543", "0.4396162", "0.43906468", "0.4383885", "0.43802813", "0.43714833", "0.43708003", "0.4368216", "0.4362127", "0.4362093", "0.43606558", "0.4358644", "0.43453774", "0.4344881", "0.43400678", "0.43370426", "0.43308195", "0.4330589", "0.43234566", "0.43146643", "0.43118957", "0.43043274", "0.43033504", "0.43019983", "0.4298619", "0.42979532" ]
0.52846295
2
creating dummyshift to fetch
@Test public void getShiftByIdCatch() { shiftDAO.createShift(new Shift(4,4,4,4)); assertNull(shiftResource.getShiftById(5)); //deleting dummy-shift shiftDAO.removeShift(4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prepareShifts() {\n // set John first shift\n LocalDateTime johnShift1Start = LocalDateTime.of(2017, 6, 23, 9, 0);\n LocalDateTime johnShift1End = LocalDateTime.of(2017, 6, 23, 17, 0);\n // set John second shift\n LocalDateTime johnShift2Start = LocalDateTime.of(2017, 6, 24, 6, 0);\n LocalDateTime johnShift2End = LocalDateTime.of(2017, 6, 24, 14, 0);\n // add John shifts to the list of shifts\n shifts.add(new Shift(\"John\", johnShift1Start, johnShift1End));\n shifts.add(new Shift(\"John\", johnShift2Start, johnShift2End));\n }", "@Test\n public void getSingleShiftCatch(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy\", 2, false, new Date(2017-01-01), 0, true));\n\n assertNull(shiftListResource.getSingleShift(new Date(2017-01-01), 2, \"notdummy\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 2, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "@Test\n public void getShiftById() {\n shiftDAO.createShift(new Shift(4,4,4,4));\n assertNotNull(shiftResource.getShiftById(4));\n //deleting dummy-shift\n shiftDAO.removeShift(4);\n }", "@Test\n public void getSingleShift(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy\", 2, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getSingleShift(new Date(2017-01-01), 2, \"dummy\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 2, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "private static void testShift() {\n for (int a:new int[]{96754441, -206107026, 803362655, Integer.MIN_VALUE+1}) {\n System.out.println(\"<<\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a<<i) + \" \" + (a<<i));\n }\n System.out.println();\n System.out.println(\">>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>i) + \" \" + (a>>i));\n }\n System.out.println();\n System.out.println(\">>>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>>i) + \" \" + (a>>>i));\n }\n System.out.println();\n }\n }", "public void addShift(Shift shift){shifts_dao.addShift(shift);}", "void shift() {\n deleteStart += txnOps;\n deleteEnd += txnOps;\n updateStart += txnOps;\n updateEnd += txnOps;\n insertStart += txnOps;\n insertEnd += txnOps;\n }", "private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}", "Observable<Shift> createNewShift(Shift shift);", "@Override\n\tpublic ShiftsVo getShiftRecordByShiftId(Integer shiftId) {\n\t\tShiftsVo vo = new ShiftsVo();\n\t\ttry{\t\t\t\n\t\t\tList tempList = sessionFactory.getCurrentSession().createSQLQuery(\"SELECT `Shift_id`, Customer_Id, `Company_id`, `Country_Id`, `Transaction_Date`, `Is_Active`, `Week_Start_Day`, `Week_End_Day`, Time_Zone, `Time_Set_Format`, `Currency_Id`,Default_Pattern_Type FROM `shifts` WHERE Shift_id =\"+shiftId).list();\n\t\t\tfor(Object object : tempList){\n\t\t\t\tObject[] obj = (Object[]) object;\n\t\t\t\t vo.setShiftId((Integer)obj[0]);\n\t\t\t\t vo.setCustomerDetailsId((Integer)obj[1]);\n\t\t\t\t vo.setCompanyDetailsId((Integer)obj[2]);\t \t\n\t \t vo.setCountryId((Integer)obj[3]);\n\t \t vo.setTransactionDate((Date)obj[4]);\n\t \t vo.setIsActive(obj[5]+\"\");\n\t \t vo.setWeekStartDay((Integer)obj[6]);\n\t \t vo.setWeekEndDay((Integer)obj[7]);\n\t \t vo.setTimeZone(obj[8]+\"\");\n\t \t vo.setTimeSetFormat(obj[9]+\"\");\t\t\t\n\t \t vo.setCurrencyId((Integer)obj[10]);\n\t \t vo.setDefaultPatternType(obj[11]+\"\");\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tlog.error(\"Error Occured \",e);\n\t\t}\n\t\treturn vo;\n\t}", "private int addShift( int x ) { x += _nxx; int sz = H2O.CLOUD.size(); return x < sz ? x : x-sz; }", "public abstract void shift(int param);", "public SequenceMapping mapping(int shift) {\n\treturn mapping(shift, null);\n/*\nudanax-top.st:15788:SequenceSpace methodsFor: 'smalltalk: defaults'!\n{SequenceMapping CLIENT} mapping: shift {IntegerVar}\n\t\"A transformation which shifts a value by some number of places and then adds a translation to it.\"\n\t\n\t^self mapping: shift with: NULL!\n*/\n}", "@Override\n public List<Shift> getShifts(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Shift> shifts = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblShifts\");\n for(Map<String,Object> map: data)\n shifts.add(new Shift(map));\n return shifts;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n\n }", "protected void addShiftToCache () {\n if (digitalShift == null)\n for (int j = 0; j <= dim; j++)\n cachedCurPoint[j] = 0;\n else\n for (int j = 0; j <= dim; j++)\n cachedCurPoint[j] = digitalShift[j];\n }", "@Test\n public void getShiftListById(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListById(\"dummy3\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "protected void addShiftToCache () {\n if (digitalShift == null)\n for (int j = 0; j < dimS; j++)\n cachedCurPoint[j] = 0;\n else\n for (int j = 0; j < dimS; j++)\n cachedCurPoint[j] = digitalShift[j];\n }", "static int[][] generateShifts(int maxDistanceLeft, ThreadVariables t){\n return null;\n }", "@Test\n public void getShiftListByIdCatch(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListById(\"notdummy3\"));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "public static void main(String[] args){\n\t\t int[] input = {1,3,0,3,0,6,0,9,23,45};\n\t\t int[] output = new ShiftAllZero().shiftZero(input);\n\t\t for (int index = 0; index < input.length; index++) {\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(output[index]);\n\t\t\t\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t \n\t }", "void addShift(Shift shiftToAdd);", "private void startHeavyLifting(int first, int count)\n {\n }", "public DigitalNetBase2IteratorShiftNoGray() {\n super(); \n dimS = dim + 1;\n if (digitalShift != null && dimShift < dimS)\n addRandomShift (dimShift, dimS, shiftStream);\n resetCurPointIndex();\n }", "void fetchStartHousesData();", "@Test\n public void getShiftListByDateAndId(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListsByDateAndShiftId(\"2017-01-01\",1));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "public DigitalNetBase2IteratorShiftGenerators() {\n super(); \n dimS = dim + 1;\n if (digitalShift != null && dimShift < dimS)\n addRandomShift (dimShift, dimS, shiftStream);\n resetCurPointIndex();\n }", "Offset createOffset();", "public static void main(String[] args) {\n shift();\n\n }", "public void createCalShift() {\n\t\tString yes = \"Y\";\n\t\tString effectiveToDate = getProperty(\"EFFECTIVE_TO_DATE\");\n\t\tString defShiftStartTime = getProperty(\"SHIFT_START_TIME\");\n\t\tString defShiftEndTime = getProperty(\"SHIFT_END_TIME\");\n\t\tYFCElement effectivePeriodsEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.EFFECTIVE_PERIODS);\n\t\tYFCElement effectivePeriodEle = effectivePeriodsEle.getChildElement(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffectivePeriodEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, effectiveToDate);\n\t\tYFCElement shiftEle=effectivePeriodEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT);\n\t\tshiftEle.setAttribute(XMLLiterals.WEDNESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.TUESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.THURSDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SUNDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SATURDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.MONDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.FRIDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_START_TIME,defShiftStartTime);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_END_TIME,defShiftEndTime);\n\t}", "public void oddRowShift(int shift)\n{\n if(m != null && m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().setOddRowShift((float)(shift*0.01f));\n m.getOutputImageManager().setToRerender();\n }\n}", "private RowMapper<Object[]> getInitalWorkerMapper () {\n\t\treturn new RowMapper<Object[]>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object[] mapRow(ResultSet rs, int rowIndex) throws SQLException {\n\t\t\t\t\n\t\t\t\tResultSetMetaData rsMeta = rs.getMetaData();\n\t\t\t\t\n\t\t\t\tcolCount = rsMeta.getColumnCount() ;\n\t\t\t\tObject[] retval = new Object[colCount];\n\t\t\t\tanalizeQueryResultMetaData(rsMeta, metaData.getDecimalColumns()); \n\t\t\t\tsetRowMapper(getNormalWorkerMapper());\n\t\t\t\tfor ( int i=0 ; i < colCount;i++){\n\t\t\t\t\tretval[i] = rs.getObject(i+1);\n\t\t\t\t}\n\t\t\t\treturn retval;\n\t\t\t}\n\t\t};\n\t}", "void insertEmptyColumns() {\n List<DateTime> starts = new ArrayList<>();\n for (Long startMillis : mColumnsByStartMillis.keySet()) {\n starts.add(new DateTime(startMillis));\n }\n int maxEmptyColumns = 3 / getSegmentStartTimes().length;\n DateTime prev = starts.get(0);\n for (DateTime next : starts) {\n if (!next.isAfter(prev.plusDays(maxEmptyColumns))) {\n for (DateTime dt = prev.plusDays(1); dt.isBefore(next); dt = dt.plusDays(1)) {\n getColumnContainingTime(dt); // creates a column if it doesn't exist yet\n }\n }\n prev = next;\n }\n }", "protected abstract boolean shift();", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "public void evenRowShift(int shift)\n{\n if(m != null && m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().setEvenRowShift((float)(shift*0.01f));\n m.getOutputImageManager().setToRerender();\n }\n}", "@Test\n public void createShiftList(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n\n assertTrue(shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 1, \"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n }", "public void shiftIndexes(int shift, IndexPredicate predicate) {\n if (predicate == null) {\n index1 += shift;\n index2 += shift;\n } else {\n index1 += predicate.execute(index1) ? shift : 0;\n index2 += predicate.execute(index2) ? shift : 0;\n }\n }", "private void createDataProcShiftImm(Code32 code, int op, int cond, int Rd, int Rm, int shiftAmount) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 12) | (shiftAmount << 7) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Test\n public void getWantSwap() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy\", 2, true, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getWantSwap(true));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 2, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "@Test\n public void getShiftListByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListsByDate(new Date(2017-01-01)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "@Override\n\tpublic void visit(BitwiseLeftShift arg0) {\n\t\t\n\t}", "private void initializeAnimalShiftLeftSourceCode() {\r\n\t\tshiftLeftSc = lang.newSourceCode(new Offset(0, 100, shiftRowSc, AnimalScript.DIRECTION_SW), \"shiftLeftSourceCode\", null, sourceCodeProps);\r\n\t\tshiftLeftSc.addCodeLine( \"private int[][] shiftLeft(int[][] matrix, int row){\", null, 0, null);\r\n\t\tshiftLeftSc.addCodeLine(\" for(int i = row; i < row; i++){\", null, 1, null);\r\n\t\tshiftLeftSc.addCodeLine(\" int tmp = matrix[row][0];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][0] = matrix[row][1];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][1] = matrix[row][2];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][2] = matrix[row][3];\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" matrix[row][3] = tmp;\", null, 2, null);\r\n\t\tshiftLeftSc.addCodeLine(\" }\", null, 1, null);\r\n\t\tshiftLeftSc.addCodeLine(\" return matrix;\", null, 3, null);\r\n\t\tshiftLeftSc.addCodeLine(\"}\", null, 0, null);\r\n\t}", "public TribitByte shiftLeft(int shift){\n return shiftRight(-shift);\n }", "@Test\n public void removeShift(){\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n //clean up and test\n assertTrue(shiftResource.removeShift(dummy.getShift_id()));\n }", "private void maskData() throws Throwable\r\n\t{\r\n\t\t// run simple JDBC queries to mask data\r\n\t\t// use java date and random abilities where needed } private createStagingPrivateInstance() {\r\n\t\t//export from production\r\n\t\t// delete private staging schema\r\n\t\t//import to private staging\r\n\r\n\t\tfinal MaskUsingDEMetatdata mask = new MaskUsingDEMetatdata();\r\n\r\n\t\tmask.maskIdentifiedData();\r\n\r\n\t}", "public final PythonParser.shift_expr_return shift_expr() throws RecognitionException {\n PythonParser.shift_expr_return retval = new PythonParser.shift_expr_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_right=null;\n PythonParser.arith_expr_return left = null;\n\n PythonParser.shift_op_return shift_op202 = null;\n\n PythonParser.arith_expr_return right = null;\n right = null;\n RewriteRuleSubtreeStream stream_arith_expr=new RewriteRuleSubtreeStream(adaptor,\"rule arith_expr\");\n RewriteRuleSubtreeStream stream_shift_op=new RewriteRuleSubtreeStream(adaptor,\"rule shift_op\");\n\n List ops = new ArrayList();\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1188:5: (left= arith_expr ( ( shift_op right+= arith_expr )+ | -> $left) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1188:7: left= arith_expr ( ( shift_op right+= arith_expr )+ | -> $left)\n {\n pushFollow(FOLLOW_arith_expr_in_shift_expr5124);\n left=arith_expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arith_expr.add(left.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:9: ( ( shift_op right+= arith_expr )+ | -> $left)\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==RIGHTSHIFT||LA95_0==LEFTSHIFT) ) {\n alt95=1;\n }\n else if ( (LA95_0==EOF||LA95_0==NEWLINE||LA95_0==NAME||(LA95_0>=AND && LA95_0<=AS)||LA95_0==FOR||LA95_0==IF||(LA95_0>=IN && LA95_0<=IS)||(LA95_0>=NOT && LA95_0<=ORELSE)||(LA95_0>=RPAREN && LA95_0<=COMMA)||(LA95_0>=SEMI && LA95_0<=DOUBLESLASHEQUAL)||(LA95_0>=LESS && LA95_0<=AMPER)||LA95_0==RBRACK||(LA95_0>=RCURLY && LA95_0<=BACKQUOTE)) ) {\n alt95=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 95, 0, input);\n\n throw nvae;\n }\n switch (alt95) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:11: ( shift_op right+= arith_expr )+\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:11: ( shift_op right+= arith_expr )+\n int cnt94=0;\n loop94:\n do {\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==RIGHTSHIFT||LA94_0==LEFTSHIFT) ) {\n alt94=1;\n }\n\n\n switch (alt94) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:13: shift_op right+= arith_expr\n \t {\n \t pushFollow(FOLLOW_shift_op_in_shift_expr5138);\n \t shift_op202=shift_op();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_shift_op.add(shift_op202.getTree());\n \t pushFollow(FOLLOW_arith_expr_in_shift_expr5142);\n \t right=arith_expr();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_arith_expr.add(right.getTree());\n \t if (list_right==null) list_right=new ArrayList();\n \t list_right.add(right.getTree());\n\n \t if ( state.backtracking==0 ) {\n\n \t ops.add((shift_op202!=null?shift_op202.op:null));\n \t \n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt94 >= 1 ) break loop94;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(94, input);\n throw eee;\n }\n cnt94++;\n } while (true);\n\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1195:8: \n {\n\n // AST REWRITE\n // elements: left\n // token labels: \n // rule labels: retval, left\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,\"rule left\",left!=null?left.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1195:8: -> $left\n {\n adaptor.addChild(root_0, stream_left.nextTree());\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n if (!ops.isEmpty()) {\n retval.tree = actions.makeBinOp((left!=null?((PythonTree)left.tree):null), ops, list_right);\n }\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "public interface IShiftHandle\r\n{\r\n /**\r\n * Add a new shift to the model\r\n * @param shiftToAdd a shift to add\r\n */\r\n void addShift(Shift shiftToAdd);\r\n\r\n /**\r\n *\r\n * @param userName the represent the all shifts for the specific user\r\n * @return ResultSet that represent all the shifts for the specific user\r\n * @throws GetAllException\r\n */\r\n ResultSet getAllShift(String userName) throws GetAllException;\r\n}", "public ShiftTemplate(Integer shiftId) {\n this.shiftId = shiftId;\n }", "private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "@Test\n public void testQueryWithEmptySegment() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\" [20120101000000_20120102000000]\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\" [20120102000000_20120103000000]\n val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"; // [20120103000000_20120104000000]\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\" [20120104000000_20120105000000]\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\" [20120105000000_20120106000000]\n\n EnhancedUnitOfWork.doInTransactionWithCheckAndRetry(() -> {\n NDataflowManager dfMgr = NDataflowManager.getInstance(getTestConfig(), project);\n NDataflow dataflow = dfMgr.getDataflow(dfId);\n NDataSegment latestReadySegment = dataflow.getSegment(seg3Id);\n if (latestReadySegment != null) {\n NDataSegDetails segDetails = latestReadySegment.getSegDetails();\n List<NDataLayout> allLayouts = segDetails.getAllLayouts();\n\n // update\n NDataflowUpdate dataflowUpdate = new NDataflowUpdate(dfId);\n NDataLayout[] toRemoveLayouts = allLayouts.stream()\n .filter(dataLayout -> dataLayout.getLayoutId() == 20001).toArray(NDataLayout[]::new);\n dataflowUpdate.setToRemoveLayouts(toRemoveLayouts);\n dfMgr.updateDataflow(dataflowUpdate);\n }\n return null;\n }, project);\n\n val sql = \"select cal_dt, sum(price), count(*) from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" //\n + \"group by cal_dt\\n\";\n // can not query\n {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(-1L, storageContext.getLayoutId().longValue());\n }\n\n {\n MetadataTestUtils.updateProjectConfig(project, \"kylin.query.index-match-rules\",\n QueryRouter.USE_VACANT_INDEXES);\n try (QueryContext queryContext = QueryContext.current()) {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(10001L, storageContext.getLayoutId().longValue());\n Assert.assertFalse(queryContext.getQueryTagInfo().isVacant());\n }\n }\n }", "@Override\n\t@Transactional\n\tpublic Shift getShiftFromId(Integer shiftId) {\n\t\treturn theShiftDAO.getShiftFromId(shiftId);\n\t}", "private static int getShiftForChannel(int channel) {\n return 24 - 8 * channel;\n }", "public void moveShiftLeft();", "private void setupMockBase() {\n storage = new MockBase(tsdb, client, true, true, true, true);\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, \n Bytes.fromLong(2L));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, \n Bytes.fromLong(2L));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, \n Bytes.fromLong(2L));\n // forward mappings\n storage.addColumn(UID_TABLE, \"foo\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, \"host\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGK, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, \"web01\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGV, new byte[] {0, 0, 1});\n \n storage.addColumn(UID_TABLE, \"bar\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 2});\n storage.addColumn(UID_TABLE, \"dc\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGK, new byte[] {0, 0, 2});\n storage.addColumn(UID_TABLE, \"web02\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGV, new byte[] {0, 0, 2});\n \n // reverse mappings\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n TAGK, \"host\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n TAGV, \"web01\".getBytes(MockBase.ASCII()));\n \n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"bar\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n TAGK, \"dc\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n TAGV, \"web02\".getBytes(MockBase.ASCII()));\n }", "@Test\n public void testRecordInboundMovement1() throws Exception {\n System.out.println(\"recordInboundMovement\");\n Long factoryId = 1L;\n Long goodsReceiptId = 1L;\n Long toBinId = 500L;\n String status = \"unrestricted\";\n Double quantity = 40D;\n Calendar creationDate = Calendar.getInstance();\n creationDate.set(2014, 9, 30, 15, 0, 0);\n Long expResult = -3L;\n Long result = FactoryInventoryManagementModule.recordInboundMovement(factoryId, goodsReceiptId, toBinId, status, quantity, creationDate);\n assertEquals(expResult, result);\n }", "public ShiftTemplate() {\n }", "int insertSelective(AoD5e466WorkingDay record);", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public void shiftLeft() {\n int currentPointer = this.registerPointer;\n\n if (currentPointer == 0)\n this.registerPointer = this.registerCapacity - 1;\n else\n this.registerPointer -= 1;\n }", "public SampleVector shift(int shiftDistance) {\n\t\treturn new OffsetSampleVector(this.samples, this.size, shiftDistance);\n\t}", "private void createStressTestRowIncomingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_INCOMING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public static final int[] get_LEFT_SHIFT(){\n\t\t\n\t\tint[] table = new int[16*16];\n\t\t\n\t\t//\ttable[(T_undefined<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_byte<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_byte] \t\t= (Byte2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_long] \t\t= (Byte2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_short] \t\t= (Byte2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_char] \t\t= (Byte2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_int] \t\t= (Byte2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_long<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_byte] \t\t= (Long2Long<<12)+(Byte2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_long] \t\t= (Long2Long<<12)+(Long2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_short] \t\t= (Long2Long<<12)+(Short2Int<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_char] \t\t= (Long2Long<<12)+(Char2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_int] \t\t= (Long2Long<<12)+(Int2Int<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_short<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_short<<4)+T_byte] \t\t\t= (Short2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_long] \t\t\t= (Short2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_short] \t\t= (Short2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_short<<4)+T_char] \t\t\t= (Short2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_int] \t\t\t= (Short2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_void<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_boolean] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_int] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_String<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_Object<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_short]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_boolean]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_double<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_float<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_boolean<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_String] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_Object] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_double] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_char<<4)+T_undefined] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_byte] \t\t\t= (Char2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_long] \t\t\t= (Char2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_short] \t\t\t= (Char2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_char] \t\t\t= (Char2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_int] \t\t\t= (Char2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_int<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_byte] \t\t= (Int2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_long] \t\t= (Int2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_short] \t\t= (Int2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_char] \t\t= (Int2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_int] \t\t= (Int2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_null<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_null] \t\t\t= T_undefined;\n\t\n\t\treturn table;\n\t}", "private void initializeAnimalShiftRowSourceCode() {\r\n\t\tshiftRowSc = lang.newSourceCode(new Offset(100, 0, mainMatrix, AnimalScript.DIRECTION_NE), \"shiftRowSourceCode\", null, sourceCodeProps);\r\n\t\tshiftRowSc.addCodeLine(\"private void shiftRow(int[][] matrix){\", null, 0, null);\r\n\t\tshiftRowSc.addCodeLine( \" for(int row = 0; row < matrix.length; row++){\", null, 1, null);\r\n\t\tshiftRowSc.addCodeLine(\" matrix = shiftLeft(matrix, row);\", null, 2, null);\r\n\t\tshiftRowSc.addCodeLine(\" }\", null, 1, null);\r\n\t\tshiftRowSc.addCodeLine(\"}\", null, 0, null);\r\n\t}", "private void shiftPartialRowToBeginning() {\n if(true)\n throw new UnsupportedOperationException(\"Need to step through this method\");\n// // Get the length to shift from the beginning of the partial row.\n// int length = lastValidBytePosition_ - currentRowPosition_;\n//\n// // shift the data in the dataBufferStream\n// dataBufferStream_.reset();\n// if (dataBuffer_ != null) {\n// dataBufferStream_.write(dataBuffer_, currentRowPosition_, length);\n// }\n//\n// for (int i = 0; i < length; i++) {\n// dataBuffer_[i] = dataBuffer_[currentRowPosition_ + i];\n// }\n//\n// position_ = length - (lastValidBytePosition_ - position_);\n// lastValidBytePosition_ = length;\n }", "FetchFirst createFetchFirst();", "void setFirstResult(int offset);", "Map<Date, Integer> getFullUniques(Step step) throws SQLException;", "@Test\n public void testRecordInboundMovement4() throws Exception {\n System.out.println(\"recordInboundMovement\");\n Long factoryId = 1L;\n Long goodsReceiptId = 20L;\n Long toBinId = 5L;\n String status = \"\";\n Double quantity = 40D;\n Calendar creationDate = Calendar.getInstance();\n creationDate.set(2014, 9, 30, 15, 0, 0);\n Long expResult = -1L;\n Long result = FactoryInventoryManagementModule.recordInboundMovement(factoryId, goodsReceiptId, toBinId, status, quantity, creationDate);\n assertEquals(expResult, result);\n }", "private T generateShifted(Vector2 origin, int quantity) {\n Vector2 direction = new Vector2(random(), random());\n float r = getSize(quantity);\n return generate(origin, direction, quantity, r);\n }", "public static void main(String[] args) {\n\t\tint[] arr={1,0,2,0,0,-1};\r\n\t\tshift(arr);\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\tSystem.out.println(arr[i]);\r\n\t}", "public static PacketSource makeDummy() {\n\treturn new DummySource();\n }", "@Test\n public void createShiftListCatch(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n\n assertFalse(shiftListResource.createShiftlist(new ShiftList(\"Dumbdummy, but it has way too long of a name. Seriously!\", 1, false, new Date(2017-01-01), 0, true)));\n\n //clean up\n userDAO.removeUser((\"dummy3\"));\n }", "public LR0Item getShiftedItem() {\n\t\tassert (canShift());\n\t\treturn new LR0Item(getLhs(), getRhs(), marker + 1);\n\t}", "public final PythonParser.shift_op_return shift_op() throws RecognitionException {\n PythonParser.shift_op_return retval = new PythonParser.shift_op_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token LEFTSHIFT203=null;\n Token RIGHTSHIFT204=null;\n\n PythonTree LEFTSHIFT203_tree=null;\n PythonTree RIGHTSHIFT204_tree=null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1201:5: ( LEFTSHIFT | RIGHTSHIFT )\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==LEFTSHIFT) ) {\n alt96=1;\n }\n else if ( (LA96_0==RIGHTSHIFT) ) {\n alt96=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 96, 0, input);\n\n throw nvae;\n }\n switch (alt96) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1201:7: LEFTSHIFT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n LEFTSHIFT203=(Token)match(input,LEFTSHIFT,FOLLOW_LEFTSHIFT_in_shift_op5226); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LEFTSHIFT203_tree = (PythonTree)adaptor.create(LEFTSHIFT203);\n adaptor.addChild(root_0, LEFTSHIFT203_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = operatorType.LShift;\n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1203:7: RIGHTSHIFT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n RIGHTSHIFT204=(Token)match(input,RIGHTSHIFT,FOLLOW_RIGHTSHIFT_in_shift_op5244); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n RIGHTSHIFT204_tree = (PythonTree)adaptor.create(RIGHTSHIFT204);\n adaptor.addChild(root_0, RIGHTSHIFT204_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = operatorType.RShift;\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "Observable<ArrayList<Shift>> shifts();", "public static void main(String[] args) {\n\t\tint x = ~0;\r\n\t\tSystem.out.println(Integer.toBinaryString(x));\r\n\t\tint y = x>>>8;\r\n\t\tSystem.out.println(Integer.toBinaryString(y));\r\n\t\tSystem.out.println(x+\" \"+y);\r\n\t\t\r\n\t\tint N = 1<<31;\r\n\t\tint M = 0b11;\r\n\t\tint j=2;\r\n\t\tint i=1;\r\n\t\tSystem.out.println(Integer.toBinaryString(N));\r\n\t\tSystem.out.println(Integer.toBinaryString(M));\r\n\t\tSystem.out.println(Integer.toBinaryString(insertMIntoNFromJtoI(M, N, j, i)));\r\n\t\t\r\n\t}", "@Override\r\n\tprotected NewlyAllocatedFlowSet entryInitialFlow() {\n\t\treturn new NewlyAllocatedFlowSet();\r\n\t}", "public void testGetRowKey() {\n TaskSeriesCollection c = createCollection1();\n }", "public Transaction getDummyTransaction(String action) {\n\n\t\t// Long payerAccountNum = 111l;\n\t\tLong payerRealmNum = 0l;\n\t\tLong payerShardNum = 0l;\n\t\t// Long nodeAccountNum=123l;\n\t\tLong nodeRealmNum = 0l;\n\t\tLong nodeShardNum = 0l;\n\t\tlong transactionFee = 0l;\n\t\tTimestamp startTime =\n\t\t\t\tRequestBuilder.getTimestamp(Instant.now(Clock.systemUTC()).minusSeconds(13));\n\t\tDuration transactionDuration = RequestBuilder.getDuration(100);\n\t\tboolean generateRecord = false;\n\t\tString memo = \"UnitTesting\";\n\t\tint thresholdValue = 10;\n\t\tList<Key> keyList = new ArrayList<>();\n\t\tKeyPair pair = new KeyPairGenerator().generateKeyPair();\n\t\tbyte[] pubKey = ((EdDSAPublicKey) pair.getPublic()).getAbyte();\n\t\tKey akey =\n\t\t\t\tKey.newBuilder().setEd25519(ByteString.copyFromUtf8((MiscUtils.commonsBytesToHex(pubKey)))).build();\n\t\tPrivateKey priv = pair.getPrivate();\n\t\tkeyList.add(akey);\n\t\tlong initBal = 100;\n\t\tlong sendRecordThreshold = 5;\n\t\tlong receiveRecordThreshold = 5;\n\t\tboolean receiverSign = false;\n\t\tDuration autoRenew = RequestBuilder.getDuration(100);\n\t\t;\n\t\tlong proxyAccountNum = 12345l;\n\t\tlong proxyRealmNum = 0l;\n\t\tlong proxyShardNum = 0l;\n\t\tint proxyFraction = 10;\n\t\tint maxReceiveProxyFraction = 10;\n\t\tlong shardID = 0l;\n\t\tlong realmID = 0l;\n\n\t\tTransaction trx = null;\n\t\tSignatureList sigList = SignatureList.getDefaultInstance();\n\t\tTimestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\n\t\t/**\n\t\t * SignatureList sigList = SignatureList.getDefaultInstance(); Transaction transferTx =\n\t\t * RequestBuilder.getCryptoTransferRequest( payer.getAccountNum(), payer.getRealmNum(),\n\t\t * payer.getShardNum(), nodeAccount.getAccountNum(), nodeAccount.getRealmNum(),\n\t\t * nodeAccount.getShardNum(), 800, timestamp, transactionDuration, false, \"test\", sigList,\n\t\t * payer.getAccountNum(), -100l, nodeAccount.getAccountNum(), 100l); transferTx =\n\t\t * TransactionSigner.signTransaction(transferTx, accountKeys.get(payer));\n\t\t */\n\n\t\tif (\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t\ttrx = RequestBuilder.getCryptoTransferRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 800, timestamp,\n\t\t\t\t\ttransactionDuration, false, \"test\", sigList, payerAccountId.getAccountNum(), -100l,\n\t\t\t\t\tnodeAccountId.getAccountNum(), 100l);\n\t\t\t// trx = TransactionSigner.signTransaction(trx, account2keyMap.get(payerAccountId));\n\t\t}\n\n\t\tif (\"createContract\".equalsIgnoreCase(action)) {\n\t\t\tFileID fileID = FileID.newBuilder().setFileNum(9999l).setRealmNum(1l).setShardNum(2l).build();\n\n\t\t\ttrx = RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 50000000000l, timestamp,\n\t\t\t\t\ttransactionDuration, true, \"createContract\", DEFAULT_CONTRACT_OP_GAS, fileID,\n\t\t\t\t\tByteString.EMPTY, 0, transactionDuration,\n\t\t\t\t\tSignatureList.newBuilder().addSigs(\n\t\t\t\t\t\t\tSignature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t\t\t\t\t\t.build(),\n\t\t\t\t\t\"\");\n\t\t}\n\n\t\t// if(\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t// long durationInSeconds = DAY_SEC * 30;\n\t\t// * Duration contractAutoRenew = Duration.newBuilder().setSeconds(durationInSeconds).build();\n\t\t// * Timestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\t\t// * Duration transactionDuration = RequestBuilder.getDuration(30, 0);\n\t\t// * Transaction createContractRequest =\n\t\t// RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t// * payerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t// * nodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 100l, timestamp,\n\t\t// transactionDuration, true, \"createContract\",\n\t\t// * DEFAULT_CONTRACT_OP_GAS, contractFile, ByteString.EMPTY, 0, contractAutoRenew,\n\t\t// * SignatureList.newBuilder()\n\t\t// *\n\t\t// .addSigs(Signature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t// * .build());\n\t\t// }\n\n\t\treturn trx;\n\n\t}", "private static void createDummyTransactions() {\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 10L, new Transaction(10000d, \"cars\", 0L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 11L, new Transaction(15000d, \"shopping\", 10L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 12L, new Transaction(20000d, \"keys\", 11L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 13L, new Transaction(25000d, \"furniture\", 12L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 14L, new Transaction(30000d, \"keys\", 13L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 15L, new Transaction(40000d, \"cars\", 14L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 16L, new Transaction(50000d, \"cars\", 15L)));\n }", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone insertNewNoPassingZone(int i);", "private void updateIndentityStarts(ExtendedJdbcTemplate ejt) {\r\n\t\tList<IdentityStart> starts = ejt.query(\"select t.tablename, c.columnname, c.autoincrementvalue \" + //\r\n\t\t\t\t\"from sys.syscolumns c join sys.systables t on c.referenceid = t.tableid \" + //\r\n\t\t\t\t\"where t.tabletype='T' and c.autoincrementvalue is not null\", new GenericRowMapper<IdentityStart>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic IdentityStart mapRow(ResultSet rs, int index) throws SQLException {\r\n\t\t\t\t\t\tIdentityStart is = new IdentityStart();\r\n\t\t\t\t\t\tis.table = rs.getString(1);\r\n\t\t\t\t\t\tis.column = rs.getString(2);\r\n\t\t\t\t\t\tis.aiValue = rs.getInt(3);\r\n\t\t\t\t\t\treturn is;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\tfor (IdentityStart is : starts) {\r\n\t\t\tint maxId = ejt.queryForInt(\"select max(\" + is.column + \") from \" + is.table);\r\n\t\t\tif (is.aiValue <= maxId)\r\n\t\t\t\tejt.execute(\"alter table \" + is.table + \" alter column \" + is.column + \" restart with \" + (maxId + 1));\r\n\t\t}\r\n\t}", "protected Object newInitialFlow() {\n\t\treturn emptySet.clone();\n\t}", "@Override\n protected Sequence newSequence(ResultSet sequenceMeta) throws SQLException {\n Sequence seq = super.newSequence(sequenceMeta);\n seq.setIdentifier(DBIdentifier.trim(seq.getIdentifier()));\n return seq;\n }", "public void createRepeatingPayloads(){\n\t\tthis.sets = generateRepeatingPayload();\n\t}", "public FractalMapImpl() {\n this.shift = 0;\n }", "@Test\n public void removeShiftCatch(){\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n //test\n assertFalse(shiftDAO.removeShift(5));\n //clean up\n shiftDAO.removeShift(dummy.getShift_id());\n }", "@Test\n public void getShiftsByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n employeeResource.createEmployee(new Employee(\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\", 1));\n\n assertNotNull(shiftListFunctionResource.getShiftsByDate(\"2017-01-01\"));\n\n //clean up\n employeeResource.removeEmployee(\"dummy3\");\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "@Test\n public void updateShift() {\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n Shift updated = new Shift(4, 2, 2, 2);\n assertTrue(shiftResource.updateShift(updated));\n\n //clean up\n shiftDAO.removeShift(updated.getShift_id());\n }", "@Test\n public void getEmployeesForShift(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEmployeesForShift(\"dummy\", 1));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n }", "@Override\r\n\tpublic LdcDemandAndWeather mapRow(ResultSet rs, int rowNum)\r\n\t\t\tthrows SQLException {\n\t\tDate dstDate = null;\r\n\t\ttry {\r\n\t\t\tdstDate = datetimeWithTimezoneFormat.parse(rs\r\n\t\t\t\t\t.getString(\"reading_datetime_with_timezone\"));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdouble tempMetric = rs\r\n\t\t\t\t.getDouble(\"wunderground_observation.temp_metric\");\r\n\t\tdouble demand = rs.getDouble(\"SmartMeterReadings.Reading\");\r\n\r\n\t\treturn new LdcDemandAndWeather(tempMetric, dstDate, demand);\r\n\t}", "private int[] copyDigitalShift (int[] S) {\n if (S == null) return null;\n int[] T = new int [S.length];\n for (int i = 0; i < S.length; ++i)\n T[i] = S[i];\n return T;\n }", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "int insert(AoD5e466WorkingDay record);", "private void createDataProcMovShiftReg(Code32 code, int op, int cond, int Rd, int Rm, int shiftType, int Rs) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 12) | (Rs << 8) | (shiftType << 5) | (1 << 4) | Rm;\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Override\n public void unshift_native(ThreadContext tc) {\n if (start < 1) {\n int n = 8;\n int i;\n\n /* grow the array */\n int origElems = elems;\n set_size_internal(tc, elems + n);\n\n /* move elements and set start */\n memmove(slots, n, 0, origElems);\n start = n;\n elems = origElems;\n\n /* clear out beginning elements */\n for (i = 0; i < n; i++)\n slots[i] = 0.0;\n }\n\n /* Now do the unshift */\n start--;\n tc.native_type = ThreadContext.NATIVE_NUM;\n slots[start] = tc.native_n;\n elems++;\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n SimpleResultSet simpleResultSet0 = new SimpleResultSet();\n Statement statement0 = DBUtil.getStatement(simpleResultSet0);\n assertNull(statement0);\n }" ]
[ "0.587416", "0.5357545", "0.52846295", "0.5283793", "0.52693266", "0.52681726", "0.52659136", "0.51808316", "0.51436925", "0.5021067", "0.5005133", "0.4986048", "0.49393976", "0.49268287", "0.49100137", "0.4880519", "0.4877255", "0.48620567", "0.48614925", "0.4861345", "0.4833044", "0.48129958", "0.4778407", "0.47687817", "0.47620374", "0.47481257", "0.47433174", "0.47231346", "0.470772", "0.47061127", "0.4704237", "0.46824247", "0.46769214", "0.46608272", "0.46573284", "0.465648", "0.4638168", "0.46312088", "0.46200866", "0.46061856", "0.45995238", "0.4592538", "0.45824188", "0.45685336", "0.45673722", "0.45647386", "0.45633832", "0.4548944", "0.45395255", "0.45173922", "0.45099813", "0.4496933", "0.44908026", "0.4487869", "0.4487667", "0.44854856", "0.44783399", "0.44715592", "0.4467106", "0.4458795", "0.4457444", "0.4453878", "0.44531313", "0.44501227", "0.4449877", "0.44491142", "0.44472525", "0.44465628", "0.44436994", "0.4436474", "0.44362178", "0.4425952", "0.44165343", "0.44138953", "0.43974543", "0.4396162", "0.43906468", "0.4383885", "0.43802813", "0.43714833", "0.43708003", "0.4368216", "0.4362127", "0.4362093", "0.43606558", "0.4358644", "0.43453774", "0.4344881", "0.43400678", "0.43370426", "0.43308195", "0.4330589", "0.43234566", "0.43146643", "0.43118957", "0.43043274", "0.43033504", "0.43019983", "0.4298619", "0.42979532" ]
0.5091852
9
creating dummy data to fetch
@Test public void updateShift() { Shift dummy = new Shift(4, 1, 1, 1); shiftDAO.createShift(dummy); Shift updated = new Shift(4, 2, 2, 2); assertTrue(shiftResource.updateShift(updated)); //clean up shiftDAO.removeShift(updated.getShift_id()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void updateShiftCatch() { Shift dummy = new Shift(4, 1, 1, 1); shiftDAO.createShift(dummy); Shift updated = new Shift(5, 2, 2, 2); assertFalse(shiftResource.updateShift(updated)); //clean up shiftDAO.removeShift(dummy.getShift_id()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void removeShift(){ Shift dummy = new Shift(4, 1, 1, 1); shiftDAO.createShift(dummy); //clean up and test assertTrue(shiftResource.removeShift(dummy.getShift_id())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void removeShiftCatch(){ Shift dummy = new Shift(4, 1, 1, 1); shiftDAO.createShift(dummy); //test assertFalse(shiftDAO.removeShift(5)); //clean up shiftDAO.removeShift(dummy.getShift_id()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
dummy data and dates
@Test public void updateBusy() { ArrayList<Busy> b = new ArrayList<Busy>(); b.add(new Busy("dummy", 1, new Date(1970-05-07))); b.add(new Busy("dummy", 1, new Date(1974-05-07))); userDAO.createUser(new User("dummy", "dummy", 1)); busyDAO.createBusy(new Busy("dummy", 1, new Date(1970-05-07))); assertTrue(busyResource.updateBusy(b)); //clean up busyDAO.removeBusy(new Date(1974-05-07), 1, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "Date getDataIns();", "public StoredDay(LocalDate date) {\n this.date = date;\n this.recipes = new StoredRecipe[0];\n }", "Dates() {\n clear();\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public FillDate() {\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private void fillStatsRandomlyForDebug() {\n int[] numberOfPeriodsEachDay = {4, 5, 5, 4, 4, 4};\n\n GregorianCalendar dateToFillFrom = new GregorianCalendar(2016, Calendar.AUGUST, 1);\n GregorianCalendar rightNow = new GregorianCalendar();\n rightNow.add(isMonthDisplayed ? Calendar.MONTH : Calendar.WEEK_OF_YEAR, -1);\n\n //sundays are never in statistics\n if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\n rightNow.add(Calendar.DAY_OF_WEEK, -1);\n }\n\n while (dateToFillFrom.get(Calendar.YEAR) != rightNow.get(Calendar.YEAR)\n || dateToFillFrom.get(Calendar.MONTH) != rightNow.get(Calendar.MONTH)\n || dateToFillFrom.get(Calendar.DATE) != rightNow.get(Calendar.DATE)) {\n\n if (dateToFillFrom.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) {\n ArrayList<Boolean> arr = new ArrayList<>();\n for (int j = 0; j < numberOfPeriodsEachDay[dateToFillFrom.get(Calendar.DAY_OF_WEEK) - 2]; j++) {\n arr.add((ThreadLocalRandom.current().nextInt(0, 2) == 0));\n }\n stats.attendanceHistory.add(new StatsDay(arr, StatsUtils.copyCalendarConstructor(dateToFillFrom)));\n }\n\n dateToFillFrom.add(Calendar.DATE, 1);\n }\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "public void readDayData() {\n\t\tlogger.info(\"Reading data for date: \" + date);\n\t}", "public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}", "@Test\r\n public void testSimpleDate() {\r\n SimpleDate d1 = new SimpleDate();\r\n }", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void getData(int day){\n try {\n String today = DateUtilities.getCurrentDateInString();\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date currentDate = dateFormat.parse(today);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(currentDate);\n calendar.add(Calendar.DAY_OF_YEAR,-day);\n Date datebefore = calendar.getTime();\n String dateBeforeStr = dateFormat.format(datebefore);\n\n stepsTakenModels = db.stepsTakenDao().getStepsTakenInrange(dateBeforeStr,today);\n// stepsTakenModels.addAll(db.stepsTakenDao().getStepsTakenInrange(\"01-10-2019\",today));\n\n for(int i = 0 ; i < 7 ; i++){\n stepsTakenModelsLastWeek.add(stepsTakenModels.get(i));\n }\n\n for(int i = 7 ; i<stepsTakenModels.size() ; i++){\n stepsTakenModelsThisWeek.add(stepsTakenModels.get(i));\n }\n// if(stepsTakenModelsThisWeek.size()==0){\n// StepsTakenModel stepsTakenModel = new StepsTakenModel();\n// stepsTakenModel.setSteps(659);\n// stepsTakenModel.setDate(today);\n// stepsTakenModelsThisWeek.add(stepsTakenModel);\n// }\n\n }catch (Exception e){\n Log.d(\"TAG\",e.getMessage());\n }\n }", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "@Test()\n public void testGetExpensesByTypeAndDayNull() {\n\tString type = \"DAILY\";\n\tLocalDate date = LocalDate.of(2015, 3, 25);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndDay(type, date);\n\tassertEquals(0, expensesForDisplay.size(), 0);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "@DataProvider(name=\"datagenerator\")\n\tpublic String[][] providedate() {\n\t\tString[][] s= {{\"a\",\"b\"}};\n\t\t\n\t\tfor(Object s1:s) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\t\n\t\treturn s;\n\t\t\n\t\t\n\t}", "public SampleSummary(Date date) {\n this.date = date;\n }", "public final void testNoDate() {\n testTransaction1.setDate(null);\n assertFalse(testTransaction1.isValidTransaction());\n }", "protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "private List<Date> getTestDates() {\n List<Date> testDates = new ArrayList<Date>();\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 0, 2);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 1, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2011, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n return testDates;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "public void verifyData() {\n\n saveDay();\n\n }", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "@BeforeSuite\r\n\tpublic void fillTestDate() {\r\n\t\tPath path = Paths.get(\"test.txt\");\r\n\t\tList<String> lines = new ArrayList<String>();\r\n\t\tString line = null;\r\n\t\t\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8)) {\r\n\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tlines.add(line);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tpages = new PageBean(3, lines);\r\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@BeforeEach\n\tprotected void setUp()\n\t{\n\t\tformatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n\t}", "private void getDayNonSedTimeData(String accessToken) {\r\n String[] taskParams = new String[2];\r\n taskParams[0] = accessToken;\r\n\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.fitbit_date_format));\r\n String formattedEndDate = dateFormat.format(endDate.getTime());\r\n\r\n taskParams[1] = \"https://api.fitbit.com/1/user/-/activities/steps/date/\"\r\n + formattedEndDate + \"/1d/15min.json\";\r\n\r\n updateRequestCount(taskParams.length - 1);\r\n\r\n new FitbitGetRequestTask(this).execute(taskParams);\r\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private void fillData()\n {\n\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tfutureDate = Calendar.getInstance();\n\t\tfutureDate.set(2015, 1, 1);\n\t\tpastDate = Calendar.getInstance();\n\t\tpastDate.set(2000, 1, 1);\n\t}", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "public Date212[] getNumbDates(int a){ //a is the number that signfies the dates passed in.\n // System.out.println(a+ \"a is\");\n Date212 myDates[] = new Date212[a]; //initalize it from the a.\n\n for(int d = 0; d< myTempDates.length; d++){ //that \"myTempDates\" array which holds the dates is used to copy it into the specified array.\n if(myTempDates[d] != null){ //if next index is not null then copy.\n myDates[d] = myTempDates[d];\n }\n }\n return myDates; //return the array to method calling it!\n }", "public void setSpecimenNumberToDate(long number) {\n specimenNumberToDate = number;\n }", "public void resetRepositoryDefaultData() {\n\t\trepository.deleteAll();\n\t\tList<Temper> tempers = new ArrayList<Temper>();\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-01T11:30:00\"), 25.4F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-07-31T04:13:00\"), 9.8F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-07-31T09:09:00\"), 16.8F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-03T05:15:00\"), 5.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-04T08:00:00\"), 15.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-13T12:00:00\"), 25.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-13T12:00:01\"), 25.01F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-15T13:20:00\"), 17F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-25T12:00:00\"), 17F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-27T11:30:00\"), 35F));\n\t\trepository.saveAll(tempers);\n\t}", "private void mInitData(int DaysRange, int HourRange) {\n mDaysRange = DaysRange;\n mHourRange = HourRange;\n\n mDateList = new ArrayList<>();\n mHourList = new ArrayList<>();\n mTimeWithMeridianList = new ArrayList<>();\n mDatewithYearList = new ArrayList<>();\n\n // Calculate Date List\n calculateDateList();\n }", "private Date init(InputStream ouiData) throws IOException {\n DataInputStream din = new DataInputStream(ouiData);\n Date result = new Date(din.readLong());\n while (din.available() > 0) {\n Oui oui = new Oui(din);\n _byHashCode.put(oui.hashCode(), oui);\n }\n return result;\n }", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "private void buildDaily(SummaryProvider.Summary summary, int log_id, String suffix,\n long midnight, int dataIndex, Bundle bundle) {\n ArrayList<DetailProvider.Detail> details = detailDB.getDetails(context, log_id);\n double[] raw_xdata = new double[details.size() + 2];\n double[] raw_ydata = new double[details.size() + 2];\n\n // set the first x and y values\n int xstart = bundle.getInt(\"xorigin\" + suffix, 0);\n raw_xdata[0] = xstart - 3600;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[0] = details.get(0).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[0] = details.get(0).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[0] = UtilsMisc.getValueinRange(details.get(0).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n // set the y values from the detail records\n for (int i = 1; i < details.size() + 1; i++) {\n DetailProvider.Detail detail = details.get(i-1);\n raw_xdata[i] = UtilsDate.getTimeSeconds((detail.getTimestamp() * 1000) - midnight);\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[i] = detail.getWatts_generated(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[i] = detail.getWatts_now();break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[i] = detail.getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[i] = detail.getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[i] = UtilsMisc.getValueinRange(detail.getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n }\n\n // set the last y value\n int xend = UtilsDate.getTimeSeconds(details.get(details.size()-1).getTimestamp()* 1000 - midnight);\n raw_xdata[details.size()+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[details.size() + 1] = summary.getGenerated_watts(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[details.size() + 1] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[details.size() + 1] =\n UtilsMisc.getValueinRange(details.get(details.size()-1).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n LinearInterpolation lp = new LinearInterpolation(raw_xdata, raw_ydata);\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList = new ArrayList<>();\n while (time < xend) {\n float yval = (float) lp.interpolate(time);\n xList.add(time);\n yList.add(yval);\n time += Integer.parseInt(sharedPreferences.getString(Constants.MONITORING_FREQUENCY, \"5\")) * 60; // seconds\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata = Floats.toArray(yList);\n bundle.putIntArray(\"xdata\" + suffix, xdata);\n bundle.putFloatArray(\"ydata\" + suffix, ydata);\n\n switch (dataIndex) {\n case Constants.DATA_TEMPERATURE:\n case Constants.DATA_WIND:\n case Constants.DATA_CLOUDS:\n smooth_plot(bundle, true, suffix);\n }\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public void clear() {\n this.dates = new HashSet<>();\n }", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "@Test\n\tpublic void testTradeDateFrom0() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D15;\n\n\t\tfinal DateTime today = new DateTime(\"2012-01-18T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2012);\n\t\tassertEquals(trade.getMonthOfYear(), 01);\n\t\tassertEquals(trade.getDayOfMonth(), 15);\n\n\t}", "private RandomData() {\n initFields();\n }", "@Test\r\n public void getDateValue() throws Exception {\r\n assertEquals(dt1,point1.getDateValue());\r\n assertEquals(dt2,point2.getDateValue());\r\n assertEquals(dt3,point3.getDateValue());\r\n assertEquals(dt4,point4.getDateValue());\r\n }", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }", "public SummaryDailyVisitation() {\n departmentName = \"\";\n totalNonNightVisits = 0;\n totalNightVisits = 0;\n numVisits = 0;\n }", "public static Date getData(Date data) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\r\n\t\tcalendar.setTime(data);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\r\n\t\treturn calendar.getTime();\r\n\t}", "@Test()\n public void testGetForecastPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 12);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(0, forecast, 0);\n }", "public void setLineData(ArrayList<Integer> allDay) {\r\n\r\n ArrayList<String> xVals = new ArrayList<String>();\r\n for (int i = 1; i <= 24; i++) {\r\n xVals.add((i) + \"\");\r\n }\r\n\r\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n\r\n for (int i = 1; i <= 24; i++) {\r\n vals1.add(new Entry(allDay.get(i-1), i));\r\n }\r\n Log.v(\"vals1\",vals1.toString());\r\n \t\r\n \t\r\n// \tint count = 45;\r\n// \tint range = 100; \r\n// \tArrayList<String> xVals = new ArrayList<String>();\r\n// for (int i = 0; i < count; i++) {\r\n// xVals.add((1990 +i) + \"\");\r\n// }\r\n//\r\n// ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n//\r\n// for (int i = 0; i < count; i++) {\r\n// float mult = (range + 1);\r\n// float val = (float) (Math.random() * mult) + 20;// + (float)\r\n// // ((mult *\r\n// // 0.1) / 10);\r\n// vals1.add(new Entry(val, i));\r\n// }\r\n// \r\n \t\r\n // create a dataset and give it a type\r\n LineDataSet set1 = new LineDataSet(vals1, \"DataSet 1\");\r\n set1.setDrawCubic(true);\r\n set1.setCubicIntensity(0.2f);\r\n set1.setDrawFilled(true);\r\n set1.setDrawCircles(false); \r\n set1.setLineWidth(2f);\r\n set1.setCircleSize(5f);\r\n set1.setHighLightColor(Color.rgb(244, 117, 117));\r\n set1.setColor(Color.rgb(104, 241, 175));\r\n\r\n ArrayList<LineDataSet> dataSets = new ArrayList<LineDataSet>();\r\n dataSets.add(set1);\r\n\r\n // create a data object with the datasets\r\n LineData data = new LineData(xVals, dataSets);\r\n\r\n // set data\r\n nChart.setData(data);\r\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "private ListSeries getTodayData() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tdouble number = 0;\n\t\tnumber = controler.getTodaysTransactionSummary();\n\t\tdollarEarning.addData(number);\n\t\t\n\t\treturn dollarEarning;\n\t}", "@Test\n void BasicTestCase_inValidMonth() {\n Solution reso = new Solution();\n // Input Dictionary has invalid month\n Map<String, Integer> input1 = Stream.of(new Object[][]{\n {\"2020-71-01\", 6}, {\"2020-01-04\", 12}, {\"2020-01-05\", 14}, {\"2020-01-06\", 2}, {\"2020-01-07\", 4}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n LinkedHashMap<String, Integer> result = reso.dateToDay(input1);\n assertNull(result);\n }", "@Test\n public void testGetDailyListingFromFileSystemInvalidDate() {\n ListingFileHelper instance = new ListingFileHelper();\n\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n GregorianCalendar calendar = new GregorianCalendar(2009, 0, 1);\n List<Listing> result = instance.getDailyListingFromFileSystem(new Date(calendar.getTimeInMillis()));\n \n assertTrue(result.isEmpty());\n }", "public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}", "private Date getTestDate(int numberOfDays) {\n Calendar c = Calendar.getInstance();\n c.add(Calendar.DATE, numberOfDays);\n return c.getTime();\n }", "private void formData(final String label, final int datasetIndex, final int year, final int month, final int day, final LinkedHashMap<Long,Double> data)\n {\n if (thread != null)\n thread.interrupt();\n chart.clearValues();\n if(day==0)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String days[] =getResources().getStringArray(R.array.days);\n int day = (int) value % days.length;\n if(day<0)\n return \"\";\n else\n return days[day];\n }\n });\n thread = new Thread(new Runnable()\n {\n\n @Override\n public void run()\n {\n Double[] daysSumArray = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | all | all || days\n ----------------------------------------------------\n 2020 | all | all || days->2020\n ----------------------------------------------------\n 2020 | jan | all || days->2020->jan\n ----------------------------------------------------\n all | jan | all || days->jan*/\n if(month==0 && year==0)\n daysSumArray[day_to_show-1] += value;\n else if(month==0 && year>0)\n {\n //days->2020\n if(year_to_show==year)\n daysSumArray[day_to_show-1] += value;\n }\n else if(month>0 && year>0)\n {\n //days->2020->jan\n if(year_to_show==year && month_to_show == month)\n daysSumArray[day_to_show-1] += value;\n }\n else if(month>0 && year==0)\n {\n //days->jan\n if(month_to_show == month)\n daysSumArray[day_to_show-1] += value;\n }\n\n\n }\n for(int c=0; c<=6; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c+1,daysSumArray[c]));\n\n }\n });\n\n thread.start();\n }\n else if( day >0 && day <8)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String hours[] =getResources().getStringArray(R.array.hours_24);\n int hour = (int) value % hours.length;\n if(hour<0)\n return \"\";\n else\n return hours[hour];\n }\n });\n thread = new Thread(new Runnable()\n {\n\n @Override\n public void run()\n {\n\n Double[] hoursSumArray = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n int hour_of_day = getHourNumber(date);\n\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n 2020 | jan | mon || hours->2020->jan->mon\n ----------------------------------------------------\n all | jan | mon || hours->jan->mon\n ----------------------------------------------------\n all | all | mon || hours->mon\n ----------------------------------------------------\n 2020 | all | mon || hours->2020->mon\n ----------------------------------------------------\n */\n if(month>0 && year>0 && day_to_show == day)\n {\n if(year_to_show==year && month_to_show == month)\n hoursSumArray[hour_of_day]+=value;\n }\n else if(month>0 && year==0 && day_to_show == day)\n {\n if(month_to_show == month)\n hoursSumArray[hour_of_day]+=value;\n }\n\n else if(month==0 && year==0 && day_to_show == day)\n hoursSumArray[hour_of_day]+=value;\n else if(month==0 && year>0 && day_to_show == day)\n {\n //days->2020\n if(year_to_show==year)\n hoursSumArray[hour_of_day]+=value;\n }\n\n }\n for(int c=0; c<=23; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c,hoursSumArray[c]));\n\n\n }\n });\n\n thread.start();\n\n\n }\n else if( day == 8 && month !=13)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String months[] =getResources().getStringArray(R.array.months);\n int month = (int) value % months.length;\n if(month<0)\n return \"\";\n else\n return months[month];\n }\n });\n thread = new Thread(new Runnable() {\n\n @Override\n public void run()\n {\n Double monthsSumArray[] = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | all | hide || months\n ----------------------------------------------------\n all | jan | hide || months->jan\n ----------------------------------------------------\n 2020 | jan | hide || months->jan->2020\n ----------------------------------------------------\n */\n if(month==0 && year==0)\n monthsSumArray[month_to_show-1] += value;\n else if(month>0 && year==0 && month==month_to_show)\n monthsSumArray[month_to_show-1] += value;\n else if(month>0 && year>0 && month==month_to_show)\n monthsSumArray[month_to_show-1] += value;\n\n\n }\n for(int c=0; c<=11; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c+1,monthsSumArray[c]));\n\n }\n });\n thread.start();\n }\n else if(day==8 && month==13)\n {\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | hide | hide || years\n ----------------------------------------------------\n */\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n return String.valueOf((int)value);\n }\n });\n thread = new Thread(new Runnable() {\n\n @Override\n public void run()\n {\n //REMEBER TO UPDATE STRING ARRAY FOR YEARS IN arrays.xml\n Double yearsSumArray[] = {0.0,0.0 };\n LinkedHashMap<Integer,Double > data_years = new LinkedHashMap<>();\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data_years.get(key);\n Date date = new Date(key);\n int year = getYearNumber(date);\n if(data_years.get(year) == null)\n data_years.put(year,value);\n else\n data_years.put(year,data_years.get(year)+value);\n\n }\n Iterator iterator = data_years.entrySet().iterator();\n while (iterator.hasNext())\n {\n LinkedHashMap.Entry<Integer, Double>set = (LinkedHashMap.Entry<Integer, Double>) iterator.next();\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)set.getKey(),set.getValue()));\n }\n\n }\n });\n thread.start();\n }\n\n /*else if(monthly)\n {\n\n }\n else if(yearly)\n {\n\n }*/\n }", "public void ustawDate(Date data) {\n\t\tcalendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(data);\r\n\t\tthis.rok = calendar.get(Calendar.YEAR);\r\n\t\tthis.miesiac = calendar.get(Calendar.MONTH);\r\n\t\tif ((this.rok % 4 == 0 && this.rok % 100 != 0) || this.rok % 400 == 0) {\r\n\t\t\tmiesiace[1] = 29;\r\n\t\t} else {\r\n\t\t\tmiesiace[1] = 28;\r\n\t\t}\r\n\r\n\t\twypelnijTabele();\r\n\t}", "public Date(String dateType, int year, int month, int day)\r\n\t\t\tthrows BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = this.minute = this.second = 0;\r\n\t\tthis.dateOnly = true;\r\n\r\n\t\tString yearStr, monthStr, dayStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tvalue = yearStr + monthStr + dayStr;\r\n\r\n\t\t// Add attribute that says date-only\r\n\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t}", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\t\n\t\tdata = new ArrayList<>();\n\t\tdata.add(new StockTimeFrameData(\"1\", 0, 0, 0, 0, 0, 22.27, false)); \n\t\tdata.add(new StockTimeFrameData(\"2\", 0, 0, 0, 0, 0, 22.19, false)); \n\t\tdata.add(new StockTimeFrameData(\"3\", 0, 0, 0, 0, 0, 22.08, false)); \n\t\tdata.add(new StockTimeFrameData(\"4\", 0, 0, 0, 0, 0, 22.17, false));\t\n\t\tdata.add(new StockTimeFrameData(\"5\", 0, 0, 0, 0, 0, 22.18, false)); \n\t\tdata.add(new StockTimeFrameData(\"6\", 0, 0, 0, 0, 0, 22.13, false)); \n\t\tdata.add(new StockTimeFrameData(\"7\", 0, 0, 0, 0, 0, 22.23, false)); \t\n\t\tdata.add(new StockTimeFrameData(\"8\", 0, 0, 0, 0, 0, 22.43, false)); \n\t\tdata.add(new StockTimeFrameData(\"9\", 0, 0, 0, 0, 0, 22.24, false)); \n\t\tdata.add(new StockTimeFrameData(\"10\", 0, 0, 0, 0, 0, 22.29, false)); \n\t\tdata.add(new StockTimeFrameData(\"11\", 0, 0, 0, 0, 0, 22.15, false)); \n\t\tdata.add(new StockTimeFrameData(\"12\", 0, 0, 0, 0, 0, 22.39, false)); \n\t\tdata.add(new StockTimeFrameData(\"13\", 0, 0, 0, 0, 0, 22.38, false)); \n\t\tdata.add(new StockTimeFrameData(\"14\", 0, 0, 0, 0, 0, 22.61, false)); \n\t\t//data.add(new StockTimeFrameData(\"15\", 0, 0, 0, 0, 0, 23.36, false)); \n\n\t\tmacd = new MACD(data, 10, 4, 6);\n\t}", "public void setDateFilled() {\n\t\tthis.dateFilled = new Date();\n\t\tSystem.out.println(\"DF \" + dateFilled);\n\t}", "public void enviarConviteExame(LocalDate dataExame) {\n }", "public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }", "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "private void initData() {\n\t}", "private void buildMonthly(int year, int month, int numdays, int dataIndex, Bundle bundle) {\n\n double[] raw_xdata = new double[numdays + 2];\n double[] raw_ydata1 = new double[numdays + 2];\n double[] raw_ydata2 = new double[numdays + 2];\n double[] raw_ydata3 = null;\n if (dataIndex == Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata3 = new double[numdays + 2];\n Arrays.fill(raw_ydata1, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata2, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata3, Constants.DATA_INVALID);\n }\n\n // set the first y1 and y2 values\n int xstart = bundle.getInt(\"xorigin1\", 0);\n raw_xdata[0] = xstart;\n\n // set the y1 and y2 values for the month\n for (int i = 1; i < numdays + 1; i++) {\n raw_xdata[i] = i;\n String filename = UtilsMisc.getDecimalFormat(year, 4) + \"-\" +\n UtilsMisc.getDecimalFormat(month + 1, 2) + \"-\" +\n UtilsMisc.getDecimalFormat(i, 2);\n if (summaryDB.isInSummaryTable(context, filename)) {\n int log_id = summaryDB.getMonitorID(context, filename);\n SummaryProvider.Summary summary = summaryDB.getSummary(context, log_id);\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS:\n raw_ydata1[i] = summary.getPeak_watts();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_PEAKTIME:\n long midnight = UtilsDate.get_midNightTimestamp(summary.getStart_time(), lat, lon);\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getPeak_time() - midnight);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_SUNLIGHT:\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getEnd_time() - summary.getStart_time());\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_READINGS:\n raw_ydata1[i] = summaryDB.getDetailCount(context, log_id);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_TEMPERATURE:\n raw_ydata1[i] = summary.getMinTemperature();\n raw_ydata2[i] = summary.getMaxTemperature();\n raw_ydata3[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n raw_ydata1[i] = summary.getAvgClouds();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n default:\n break;\n }\n } else {\n if (dataIndex != Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata1[i] = 0.0;\n raw_ydata2[i] = 0.0;\n }\n }\n }\n\n // set the first and last y1 and y2 values\n int xend = numdays;\n raw_xdata[numdays+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_PEAKTIME :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_SUNLIGHT :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_READINGS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_CLOUDS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_TEMPERATURE :\n Number[] numbers = UtilsMisc.toNumber(raw_ydata1, -273); // convert from kelvin to centigrade\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata1 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata2, -273);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata2 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata3);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata3 = UtilsMisc.toDouble(numbers);\n default :\n break;\n }\n\n LinearInterpolation lp1 = new LinearInterpolation(raw_xdata, raw_ydata1);\n LinearInterpolation lp2 = new LinearInterpolation(raw_xdata, raw_ydata2);\n LinearInterpolation lp3 = (raw_ydata3 != null)? new LinearInterpolation(raw_xdata, raw_ydata3): null;\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList1 = new ArrayList<>();\n ArrayList<Float> yList2 = new ArrayList<>();\n ArrayList<Float> yList3 = new ArrayList<>();\n while (time < (xend+1)) {\n xList.add(time);\n yList1.add((float) lp1.interpolate(time));\n yList2.add((float) lp2.interpolate(time));\n if (lp3 != null)\n yList3.add((float) lp3.interpolate(time));\n time += 1;\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata1 = Floats.toArray(yList1);\n float[] ydata2 = Floats.toArray(yList2);\n float[] ydata3 = Floats.toArray(yList3);\n bundle.putIntArray(\"xdata1\", xdata);\n bundle.putIntArray(\"xdata2\", xdata);\n bundle.putIntArray(\"xdata3\", xdata);\n bundle.putFloatArray(\"ydata1\", ydata1);\n bundle.putFloatArray(\"ydata2\", ydata2);\n bundle.putFloatArray(\"ydata3\", ydata3.length > 0? ydata3: null);\n\n switch (dataIndex) {\n case Constants.DATA_MONTHLY_TEMPERATURE:\n smooth_plot(bundle, true, \"1\");\n smooth_plot(bundle, true, \"2\");\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n smooth_plot(bundle, true, \"1\");\n break;\n }\n\n }", "@Before\n\tpublic void setUp() throws ParseException{\n\t\tbc = new Bank_Control();\n\t\tmyDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"1997-03-20\");\n\t}", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "@Test\n\tvoid lackOfDataTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 8, 1);\n\t\texpected = \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "public void startDateQuestionSet() {\n this.dateQuestionSet = new HashSet<>();//creates a new dateQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 4) {//if the question is type Date Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.dateQuestionSet.add(newQuest);//adds the new Quest to the new dateQuestionSet\n }\n }\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "private void initData() {\n }", "public void setDataA(LocalDate dataA) \r\n\t\t{\r\n\t\t\tDataA = dataA;\r\n\t\t}", "public void setDataV(LocalDate dataV) \r\n\t\t{\r\n\t\t\tDataV = dataV;\r\n\t\t}", "@Before\n public void SetUp(){\n calendar = new SystemCalendar(2018,4,25);\n DepartureTime = \"9:00AM\";\n DayOfWeek = calendar.getDayOfMonth();\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "void createColumnsForDay(LocalDate date) {\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n DateTime start = fenceposts[i];\n DateTime stop = fenceposts[i + 1];\n Column column = new Column(start, stop, formatDayNumber(date));\n mColumnsByStartMillis.put(column.start.getMillis(), column);\n }\n }", "@Test()\n public void testGetForecastPerYearNull() {\n\tYear year = Year.of(2015);\n\tdouble forecast = expenseManager.getForecastPerYear(year);\n\tassertEquals(0, forecast, 0);\n }", "@Test\r\n public void testSetDataNascimento() {\r\n System.out.println(\"setDataNascimento\");\r\n Date dataNascimento = null;\r\n Integrante instance = new Integrante();\r\n instance.setDataNascimento(dataNascimento);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@LogMethod\r\n private void publishDataToDateBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY3);\r\n\r\n clickAndWait(Locator.linkWithText(\"Manage\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n clickAndWait(Locator.linkWithText(\"Create New Timepoint\"));\r\n setFormElement(Locator.name(\"label\"), \"Preexisting Timepoint\");\r\n setFormElement(Locator.name(\"sequenceNumMin\"), \"50\");\r\n setFormElement(Locator.name(\"sequenceNumMax\"), \"89\");\r\n selectOptionByText(Locator.name(\"typeCode\"), \"Screening\");\r\n\r\n clickButton(\"Save\");\r\n assertElementPresent(Locator.tagWithAttribute(\"a\", \"data-original-title\", \"edit\"), 1);\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study3\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY3 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] dates = new String[]{\"2000-02-02\", \"2000-03-03\", \"2000-04-04\", \"2000-05-05\", \"2000-06-06\", \"2001-01-01\", \"2000-01-01\", \"2000-02-02\", \"2000-03-03\"};\r\n int idx = 1;\r\n for (String d : dates)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='date'])[\" + idx + \"]\"), d);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='AAA07XMC-02'] and following-sibling::td[text()='301.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='AAA07XMC-04'] and following-sibling::td[not(text())]]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 90 - 95' and following-sibling::td/a[text()='AAA07XSF-02'] and following-sibling::td[not(text())]]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 120 - 127' and following-sibling::td/a[text()='AssayTestControl1'] and following-sibling::td[text()='5.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 152 - 159' and following-sibling::td/a[text()='AssayTestControl2'] and following-sibling::td[text()='6.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 0 - 7' and following-sibling::td/a[text()='BAQ00051-09'] and following-sibling::td[text()='7.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='BAQ00051-08'] and following-sibling::td[text()='8.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='BAQ00051-11'] and following-sibling::td[text()='9.0']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"2\", \"2\", \"1\", \"1\", \"1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \"1 / 1\", \"2 / 2\", \"2 / 2\", \"1 / 1\", \"1 / 1\", \"1 / 1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Manage Study\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n assertTextPresent(\r\n \"Day 0 - 7\",\r\n \"Day 32 - 39\",\r\n \"Day 90 - 95\",\r\n \"Day 120 - 127\",\r\n \"Day 152 - 159\");\r\n }", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }", "public int MagicDate(){\n return month = day = year = 1;\n \n }", "public void addDailyReport(GregorianCalendar date, LinkedList<Reading> readings){\r\n LinkedList<Double> loRainfall = new LinkedList<>();\r\n LinkedList<Double> loTemp = new LinkedList<>();\r\n for(Reading read : readings)\r\n loRainfall.add(read.getRainfall());\r\n for(Reading read : readings)\r\n loTemp.add(read.getTemp());\r\n dailyReports.add(new DailyWeatherReport(date, loTemp, loRainfall));\r\n }", "boolean isSetDate();" ]
[ "0.6405553", "0.58688873", "0.5793942", "0.570229", "0.5667311", "0.56600475", "0.56042236", "0.55857724", "0.5566966", "0.55598754", "0.5558969", "0.55449843", "0.55264246", "0.5524276", "0.5516987", "0.5492104", "0.548908", "0.54830706", "0.54761773", "0.5466397", "0.5461063", "0.5458508", "0.5450922", "0.5414603", "0.54090524", "0.5401541", "0.5392693", "0.53731394", "0.536561", "0.5358782", "0.5346486", "0.5336958", "0.53332824", "0.5330246", "0.5258743", "0.5255793", "0.524767", "0.5241422", "0.5237199", "0.5224847", "0.52248144", "0.5216907", "0.5205894", "0.5191811", "0.5188994", "0.51879936", "0.51876926", "0.5179536", "0.51749915", "0.5173811", "0.5171852", "0.5167486", "0.51602125", "0.5156302", "0.5155128", "0.5151986", "0.5150812", "0.5149199", "0.51462245", "0.5144137", "0.5143173", "0.51386285", "0.5135017", "0.513375", "0.5121984", "0.51218396", "0.51206714", "0.5107095", "0.5106863", "0.51060206", "0.51002425", "0.5098877", "0.50980216", "0.5097395", "0.50855434", "0.5082305", "0.5079297", "0.50770295", "0.50718987", "0.5070797", "0.50633705", "0.50631213", "0.50505245", "0.50456077", "0.50334764", "0.5032835", "0.5032045", "0.5027863", "0.50272954", "0.5024355", "0.5021121", "0.5012491", "0.5012126", "0.50102186", "0.5009079", "0.50012803", "0.4996728", "0.4992923", "0.4990958", "0.49908334", "0.49866554" ]
0.0
-1
dummy data and dates
@Test public void removeBusy() { Date date = new Date(2017-11-12); userDAO.createUser(new User("dummy", "dummy", 1)); busyDAO.createBusy(new Busy("dummy", 1, date)); assertTrue(busyResource.removeBusy(date, 1,"dummy")); //clean up userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "Date getDataIns();", "public StoredDay(LocalDate date) {\n this.date = date;\n this.recipes = new StoredRecipe[0];\n }", "Dates() {\n clear();\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public FillDate() {\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private void fillStatsRandomlyForDebug() {\n int[] numberOfPeriodsEachDay = {4, 5, 5, 4, 4, 4};\n\n GregorianCalendar dateToFillFrom = new GregorianCalendar(2016, Calendar.AUGUST, 1);\n GregorianCalendar rightNow = new GregorianCalendar();\n rightNow.add(isMonthDisplayed ? Calendar.MONTH : Calendar.WEEK_OF_YEAR, -1);\n\n //sundays are never in statistics\n if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\n rightNow.add(Calendar.DAY_OF_WEEK, -1);\n }\n\n while (dateToFillFrom.get(Calendar.YEAR) != rightNow.get(Calendar.YEAR)\n || dateToFillFrom.get(Calendar.MONTH) != rightNow.get(Calendar.MONTH)\n || dateToFillFrom.get(Calendar.DATE) != rightNow.get(Calendar.DATE)) {\n\n if (dateToFillFrom.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) {\n ArrayList<Boolean> arr = new ArrayList<>();\n for (int j = 0; j < numberOfPeriodsEachDay[dateToFillFrom.get(Calendar.DAY_OF_WEEK) - 2]; j++) {\n arr.add((ThreadLocalRandom.current().nextInt(0, 2) == 0));\n }\n stats.attendanceHistory.add(new StatsDay(arr, StatsUtils.copyCalendarConstructor(dateToFillFrom)));\n }\n\n dateToFillFrom.add(Calendar.DATE, 1);\n }\n }", "public void readDayData() {\n\t\tlogger.info(\"Reading data for date: \" + date);\n\t}", "@Override\n\tpublic void initDate() {\n\n\t}", "public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "@Test\r\n public void testSimpleDate() {\r\n SimpleDate d1 = new SimpleDate();\r\n }", "private void getData(int day){\n try {\n String today = DateUtilities.getCurrentDateInString();\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date currentDate = dateFormat.parse(today);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(currentDate);\n calendar.add(Calendar.DAY_OF_YEAR,-day);\n Date datebefore = calendar.getTime();\n String dateBeforeStr = dateFormat.format(datebefore);\n\n stepsTakenModels = db.stepsTakenDao().getStepsTakenInrange(dateBeforeStr,today);\n// stepsTakenModels.addAll(db.stepsTakenDao().getStepsTakenInrange(\"01-10-2019\",today));\n\n for(int i = 0 ; i < 7 ; i++){\n stepsTakenModelsLastWeek.add(stepsTakenModels.get(i));\n }\n\n for(int i = 7 ; i<stepsTakenModels.size() ; i++){\n stepsTakenModelsThisWeek.add(stepsTakenModels.get(i));\n }\n// if(stepsTakenModelsThisWeek.size()==0){\n// StepsTakenModel stepsTakenModel = new StepsTakenModel();\n// stepsTakenModel.setSteps(659);\n// stepsTakenModel.setDate(today);\n// stepsTakenModelsThisWeek.add(stepsTakenModel);\n// }\n\n }catch (Exception e){\n Log.d(\"TAG\",e.getMessage());\n }\n }", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "@Test()\n public void testGetExpensesByTypeAndDayNull() {\n\tString type = \"DAILY\";\n\tLocalDate date = LocalDate.of(2015, 3, 25);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndDay(type, date);\n\tassertEquals(0, expensesForDisplay.size(), 0);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "@DataProvider(name=\"datagenerator\")\n\tpublic String[][] providedate() {\n\t\tString[][] s= {{\"a\",\"b\"}};\n\t\t\n\t\tfor(Object s1:s) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\t\n\t\treturn s;\n\t\t\n\t\t\n\t}", "public SampleSummary(Date date) {\n this.date = date;\n }", "public final void testNoDate() {\n testTransaction1.setDate(null);\n assertFalse(testTransaction1.isValidTransaction());\n }", "protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "private List<Date> getTestDates() {\n List<Date> testDates = new ArrayList<Date>();\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 0, 2);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 1, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2011, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n return testDates;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }", "public void verifyData() {\n\n saveDay();\n\n }", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "@BeforeSuite\r\n\tpublic void fillTestDate() {\r\n\t\tPath path = Paths.get(\"test.txt\");\r\n\t\tList<String> lines = new ArrayList<String>();\r\n\t\tString line = null;\r\n\t\t\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8)) {\r\n\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tlines.add(line);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tpages = new PageBean(3, lines);\r\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@BeforeEach\n\tprotected void setUp()\n\t{\n\t\tformatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n\t}", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private void getDayNonSedTimeData(String accessToken) {\r\n String[] taskParams = new String[2];\r\n taskParams[0] = accessToken;\r\n\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.fitbit_date_format));\r\n String formattedEndDate = dateFormat.format(endDate.getTime());\r\n\r\n taskParams[1] = \"https://api.fitbit.com/1/user/-/activities/steps/date/\"\r\n + formattedEndDate + \"/1d/15min.json\";\r\n\r\n updateRequestCount(taskParams.length - 1);\r\n\r\n new FitbitGetRequestTask(this).execute(taskParams);\r\n }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private void fillData()\n {\n\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tfutureDate = Calendar.getInstance();\n\t\tfutureDate.set(2015, 1, 1);\n\t\tpastDate = Calendar.getInstance();\n\t\tpastDate.set(2000, 1, 1);\n\t}", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "public Date212[] getNumbDates(int a){ //a is the number that signfies the dates passed in.\n // System.out.println(a+ \"a is\");\n Date212 myDates[] = new Date212[a]; //initalize it from the a.\n\n for(int d = 0; d< myTempDates.length; d++){ //that \"myTempDates\" array which holds the dates is used to copy it into the specified array.\n if(myTempDates[d] != null){ //if next index is not null then copy.\n myDates[d] = myTempDates[d];\n }\n }\n return myDates; //return the array to method calling it!\n }", "public void setSpecimenNumberToDate(long number) {\n specimenNumberToDate = number;\n }", "public void resetRepositoryDefaultData() {\n\t\trepository.deleteAll();\n\t\tList<Temper> tempers = new ArrayList<Temper>();\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-01T11:30:00\"), 25.4F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-07-31T04:13:00\"), 9.8F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-07-31T09:09:00\"), 16.8F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-03T05:15:00\"), 5.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-04T08:00:00\"), 15.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-13T12:00:00\"), 25.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-13T12:00:01\"), 25.01F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-15T13:20:00\"), 17F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-25T12:00:00\"), 17F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-27T11:30:00\"), 35F));\n\t\trepository.saveAll(tempers);\n\t}", "private void mInitData(int DaysRange, int HourRange) {\n mDaysRange = DaysRange;\n mHourRange = HourRange;\n\n mDateList = new ArrayList<>();\n mHourList = new ArrayList<>();\n mTimeWithMeridianList = new ArrayList<>();\n mDatewithYearList = new ArrayList<>();\n\n // Calculate Date List\n calculateDateList();\n }", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "private Date init(InputStream ouiData) throws IOException {\n DataInputStream din = new DataInputStream(ouiData);\n Date result = new Date(din.readLong());\n while (din.available() > 0) {\n Oui oui = new Oui(din);\n _byHashCode.put(oui.hashCode(), oui);\n }\n return result;\n }", "private void buildDaily(SummaryProvider.Summary summary, int log_id, String suffix,\n long midnight, int dataIndex, Bundle bundle) {\n ArrayList<DetailProvider.Detail> details = detailDB.getDetails(context, log_id);\n double[] raw_xdata = new double[details.size() + 2];\n double[] raw_ydata = new double[details.size() + 2];\n\n // set the first x and y values\n int xstart = bundle.getInt(\"xorigin\" + suffix, 0);\n raw_xdata[0] = xstart - 3600;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[0] = details.get(0).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[0] = details.get(0).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[0] = UtilsMisc.getValueinRange(details.get(0).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n // set the y values from the detail records\n for (int i = 1; i < details.size() + 1; i++) {\n DetailProvider.Detail detail = details.get(i-1);\n raw_xdata[i] = UtilsDate.getTimeSeconds((detail.getTimestamp() * 1000) - midnight);\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[i] = detail.getWatts_generated(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[i] = detail.getWatts_now();break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[i] = detail.getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[i] = detail.getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[i] = UtilsMisc.getValueinRange(detail.getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n }\n\n // set the last y value\n int xend = UtilsDate.getTimeSeconds(details.get(details.size()-1).getTimestamp()* 1000 - midnight);\n raw_xdata[details.size()+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[details.size() + 1] = summary.getGenerated_watts(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[details.size() + 1] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[details.size() + 1] =\n UtilsMisc.getValueinRange(details.get(details.size()-1).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n LinearInterpolation lp = new LinearInterpolation(raw_xdata, raw_ydata);\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList = new ArrayList<>();\n while (time < xend) {\n float yval = (float) lp.interpolate(time);\n xList.add(time);\n yList.add(yval);\n time += Integer.parseInt(sharedPreferences.getString(Constants.MONITORING_FREQUENCY, \"5\")) * 60; // seconds\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata = Floats.toArray(yList);\n bundle.putIntArray(\"xdata\" + suffix, xdata);\n bundle.putFloatArray(\"ydata\" + suffix, ydata);\n\n switch (dataIndex) {\n case Constants.DATA_TEMPERATURE:\n case Constants.DATA_WIND:\n case Constants.DATA_CLOUDS:\n smooth_plot(bundle, true, suffix);\n }\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "private RandomData() {\n initFields();\n }", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "public void clear() {\n this.dates = new HashSet<>();\n }", "@Test\n\tpublic void testTradeDateFrom0() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D15;\n\n\t\tfinal DateTime today = new DateTime(\"2012-01-18T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2012);\n\t\tassertEquals(trade.getMonthOfYear(), 01);\n\t\tassertEquals(trade.getDayOfMonth(), 15);\n\n\t}", "@Test\r\n public void getDateValue() throws Exception {\r\n assertEquals(dt1,point1.getDateValue());\r\n assertEquals(dt2,point2.getDateValue());\r\n assertEquals(dt3,point3.getDateValue());\r\n assertEquals(dt4,point4.getDateValue());\r\n }", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }", "public SummaryDailyVisitation() {\n departmentName = \"\";\n totalNonNightVisits = 0;\n totalNightVisits = 0;\n numVisits = 0;\n }", "public static Date getData(Date data) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\r\n\t\tcalendar.setTime(data);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\r\n\t\treturn calendar.getTime();\r\n\t}", "public void setLineData(ArrayList<Integer> allDay) {\r\n\r\n ArrayList<String> xVals = new ArrayList<String>();\r\n for (int i = 1; i <= 24; i++) {\r\n xVals.add((i) + \"\");\r\n }\r\n\r\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n\r\n for (int i = 1; i <= 24; i++) {\r\n vals1.add(new Entry(allDay.get(i-1), i));\r\n }\r\n Log.v(\"vals1\",vals1.toString());\r\n \t\r\n \t\r\n// \tint count = 45;\r\n// \tint range = 100; \r\n// \tArrayList<String> xVals = new ArrayList<String>();\r\n// for (int i = 0; i < count; i++) {\r\n// xVals.add((1990 +i) + \"\");\r\n// }\r\n//\r\n// ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n//\r\n// for (int i = 0; i < count; i++) {\r\n// float mult = (range + 1);\r\n// float val = (float) (Math.random() * mult) + 20;// + (float)\r\n// // ((mult *\r\n// // 0.1) / 10);\r\n// vals1.add(new Entry(val, i));\r\n// }\r\n// \r\n \t\r\n // create a dataset and give it a type\r\n LineDataSet set1 = new LineDataSet(vals1, \"DataSet 1\");\r\n set1.setDrawCubic(true);\r\n set1.setCubicIntensity(0.2f);\r\n set1.setDrawFilled(true);\r\n set1.setDrawCircles(false); \r\n set1.setLineWidth(2f);\r\n set1.setCircleSize(5f);\r\n set1.setHighLightColor(Color.rgb(244, 117, 117));\r\n set1.setColor(Color.rgb(104, 241, 175));\r\n\r\n ArrayList<LineDataSet> dataSets = new ArrayList<LineDataSet>();\r\n dataSets.add(set1);\r\n\r\n // create a data object with the datasets\r\n LineData data = new LineData(xVals, dataSets);\r\n\r\n // set data\r\n nChart.setData(data);\r\n }", "@Test()\n public void testGetForecastPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 12);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(0, forecast, 0);\n }", "private ListSeries getTodayData() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tdouble number = 0;\n\t\tnumber = controler.getTodaysTransactionSummary();\n\t\tdollarEarning.addData(number);\n\t\t\n\t\treturn dollarEarning;\n\t}", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "@Test\n void BasicTestCase_inValidMonth() {\n Solution reso = new Solution();\n // Input Dictionary has invalid month\n Map<String, Integer> input1 = Stream.of(new Object[][]{\n {\"2020-71-01\", 6}, {\"2020-01-04\", 12}, {\"2020-01-05\", 14}, {\"2020-01-06\", 2}, {\"2020-01-07\", 4}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n LinkedHashMap<String, Integer> result = reso.dateToDay(input1);\n assertNull(result);\n }", "private Date getTestDate(int numberOfDays) {\n Calendar c = Calendar.getInstance();\n c.add(Calendar.DATE, numberOfDays);\n return c.getTime();\n }", "public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}", "@Test\n public void testGetDailyListingFromFileSystemInvalidDate() {\n ListingFileHelper instance = new ListingFileHelper();\n\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n GregorianCalendar calendar = new GregorianCalendar(2009, 0, 1);\n List<Listing> result = instance.getDailyListingFromFileSystem(new Date(calendar.getTimeInMillis()));\n \n assertTrue(result.isEmpty());\n }", "private void formData(final String label, final int datasetIndex, final int year, final int month, final int day, final LinkedHashMap<Long,Double> data)\n {\n if (thread != null)\n thread.interrupt();\n chart.clearValues();\n if(day==0)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String days[] =getResources().getStringArray(R.array.days);\n int day = (int) value % days.length;\n if(day<0)\n return \"\";\n else\n return days[day];\n }\n });\n thread = new Thread(new Runnable()\n {\n\n @Override\n public void run()\n {\n Double[] daysSumArray = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | all | all || days\n ----------------------------------------------------\n 2020 | all | all || days->2020\n ----------------------------------------------------\n 2020 | jan | all || days->2020->jan\n ----------------------------------------------------\n all | jan | all || days->jan*/\n if(month==0 && year==0)\n daysSumArray[day_to_show-1] += value;\n else if(month==0 && year>0)\n {\n //days->2020\n if(year_to_show==year)\n daysSumArray[day_to_show-1] += value;\n }\n else if(month>0 && year>0)\n {\n //days->2020->jan\n if(year_to_show==year && month_to_show == month)\n daysSumArray[day_to_show-1] += value;\n }\n else if(month>0 && year==0)\n {\n //days->jan\n if(month_to_show == month)\n daysSumArray[day_to_show-1] += value;\n }\n\n\n }\n for(int c=0; c<=6; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c+1,daysSumArray[c]));\n\n }\n });\n\n thread.start();\n }\n else if( day >0 && day <8)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String hours[] =getResources().getStringArray(R.array.hours_24);\n int hour = (int) value % hours.length;\n if(hour<0)\n return \"\";\n else\n return hours[hour];\n }\n });\n thread = new Thread(new Runnable()\n {\n\n @Override\n public void run()\n {\n\n Double[] hoursSumArray = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n int hour_of_day = getHourNumber(date);\n\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n 2020 | jan | mon || hours->2020->jan->mon\n ----------------------------------------------------\n all | jan | mon || hours->jan->mon\n ----------------------------------------------------\n all | all | mon || hours->mon\n ----------------------------------------------------\n 2020 | all | mon || hours->2020->mon\n ----------------------------------------------------\n */\n if(month>0 && year>0 && day_to_show == day)\n {\n if(year_to_show==year && month_to_show == month)\n hoursSumArray[hour_of_day]+=value;\n }\n else if(month>0 && year==0 && day_to_show == day)\n {\n if(month_to_show == month)\n hoursSumArray[hour_of_day]+=value;\n }\n\n else if(month==0 && year==0 && day_to_show == day)\n hoursSumArray[hour_of_day]+=value;\n else if(month==0 && year>0 && day_to_show == day)\n {\n //days->2020\n if(year_to_show==year)\n hoursSumArray[hour_of_day]+=value;\n }\n\n }\n for(int c=0; c<=23; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c,hoursSumArray[c]));\n\n\n }\n });\n\n thread.start();\n\n\n }\n else if( day == 8 && month !=13)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String months[] =getResources().getStringArray(R.array.months);\n int month = (int) value % months.length;\n if(month<0)\n return \"\";\n else\n return months[month];\n }\n });\n thread = new Thread(new Runnable() {\n\n @Override\n public void run()\n {\n Double monthsSumArray[] = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | all | hide || months\n ----------------------------------------------------\n all | jan | hide || months->jan\n ----------------------------------------------------\n 2020 | jan | hide || months->jan->2020\n ----------------------------------------------------\n */\n if(month==0 && year==0)\n monthsSumArray[month_to_show-1] += value;\n else if(month>0 && year==0 && month==month_to_show)\n monthsSumArray[month_to_show-1] += value;\n else if(month>0 && year>0 && month==month_to_show)\n monthsSumArray[month_to_show-1] += value;\n\n\n }\n for(int c=0; c<=11; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c+1,monthsSumArray[c]));\n\n }\n });\n thread.start();\n }\n else if(day==8 && month==13)\n {\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | hide | hide || years\n ----------------------------------------------------\n */\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n return String.valueOf((int)value);\n }\n });\n thread = new Thread(new Runnable() {\n\n @Override\n public void run()\n {\n //REMEBER TO UPDATE STRING ARRAY FOR YEARS IN arrays.xml\n Double yearsSumArray[] = {0.0,0.0 };\n LinkedHashMap<Integer,Double > data_years = new LinkedHashMap<>();\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data_years.get(key);\n Date date = new Date(key);\n int year = getYearNumber(date);\n if(data_years.get(year) == null)\n data_years.put(year,value);\n else\n data_years.put(year,data_years.get(year)+value);\n\n }\n Iterator iterator = data_years.entrySet().iterator();\n while (iterator.hasNext())\n {\n LinkedHashMap.Entry<Integer, Double>set = (LinkedHashMap.Entry<Integer, Double>) iterator.next();\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)set.getKey(),set.getValue()));\n }\n\n }\n });\n thread.start();\n }\n\n /*else if(monthly)\n {\n\n }\n else if(yearly)\n {\n\n }*/\n }", "public void ustawDate(Date data) {\n\t\tcalendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(data);\r\n\t\tthis.rok = calendar.get(Calendar.YEAR);\r\n\t\tthis.miesiac = calendar.get(Calendar.MONTH);\r\n\t\tif ((this.rok % 4 == 0 && this.rok % 100 != 0) || this.rok % 400 == 0) {\r\n\t\t\tmiesiace[1] = 29;\r\n\t\t} else {\r\n\t\t\tmiesiace[1] = 28;\r\n\t\t}\r\n\r\n\t\twypelnijTabele();\r\n\t}", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "public Date(String dateType, int year, int month, int day)\r\n\t\t\tthrows BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = this.minute = this.second = 0;\r\n\t\tthis.dateOnly = true;\r\n\r\n\t\tString yearStr, monthStr, dayStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tvalue = yearStr + monthStr + dayStr;\r\n\r\n\t\t// Add attribute that says date-only\r\n\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\t\n\t\tdata = new ArrayList<>();\n\t\tdata.add(new StockTimeFrameData(\"1\", 0, 0, 0, 0, 0, 22.27, false)); \n\t\tdata.add(new StockTimeFrameData(\"2\", 0, 0, 0, 0, 0, 22.19, false)); \n\t\tdata.add(new StockTimeFrameData(\"3\", 0, 0, 0, 0, 0, 22.08, false)); \n\t\tdata.add(new StockTimeFrameData(\"4\", 0, 0, 0, 0, 0, 22.17, false));\t\n\t\tdata.add(new StockTimeFrameData(\"5\", 0, 0, 0, 0, 0, 22.18, false)); \n\t\tdata.add(new StockTimeFrameData(\"6\", 0, 0, 0, 0, 0, 22.13, false)); \n\t\tdata.add(new StockTimeFrameData(\"7\", 0, 0, 0, 0, 0, 22.23, false)); \t\n\t\tdata.add(new StockTimeFrameData(\"8\", 0, 0, 0, 0, 0, 22.43, false)); \n\t\tdata.add(new StockTimeFrameData(\"9\", 0, 0, 0, 0, 0, 22.24, false)); \n\t\tdata.add(new StockTimeFrameData(\"10\", 0, 0, 0, 0, 0, 22.29, false)); \n\t\tdata.add(new StockTimeFrameData(\"11\", 0, 0, 0, 0, 0, 22.15, false)); \n\t\tdata.add(new StockTimeFrameData(\"12\", 0, 0, 0, 0, 0, 22.39, false)); \n\t\tdata.add(new StockTimeFrameData(\"13\", 0, 0, 0, 0, 0, 22.38, false)); \n\t\tdata.add(new StockTimeFrameData(\"14\", 0, 0, 0, 0, 0, 22.61, false)); \n\t\t//data.add(new StockTimeFrameData(\"15\", 0, 0, 0, 0, 0, 23.36, false)); \n\n\t\tmacd = new MACD(data, 10, 4, 6);\n\t}", "public void setDateFilled() {\n\t\tthis.dateFilled = new Date();\n\t\tSystem.out.println(\"DF \" + dateFilled);\n\t}", "public void enviarConviteExame(LocalDate dataExame) {\n }", "public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }", "private void initData() {\n\t}", "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "private void buildMonthly(int year, int month, int numdays, int dataIndex, Bundle bundle) {\n\n double[] raw_xdata = new double[numdays + 2];\n double[] raw_ydata1 = new double[numdays + 2];\n double[] raw_ydata2 = new double[numdays + 2];\n double[] raw_ydata3 = null;\n if (dataIndex == Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata3 = new double[numdays + 2];\n Arrays.fill(raw_ydata1, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata2, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata3, Constants.DATA_INVALID);\n }\n\n // set the first y1 and y2 values\n int xstart = bundle.getInt(\"xorigin1\", 0);\n raw_xdata[0] = xstart;\n\n // set the y1 and y2 values for the month\n for (int i = 1; i < numdays + 1; i++) {\n raw_xdata[i] = i;\n String filename = UtilsMisc.getDecimalFormat(year, 4) + \"-\" +\n UtilsMisc.getDecimalFormat(month + 1, 2) + \"-\" +\n UtilsMisc.getDecimalFormat(i, 2);\n if (summaryDB.isInSummaryTable(context, filename)) {\n int log_id = summaryDB.getMonitorID(context, filename);\n SummaryProvider.Summary summary = summaryDB.getSummary(context, log_id);\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS:\n raw_ydata1[i] = summary.getPeak_watts();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_PEAKTIME:\n long midnight = UtilsDate.get_midNightTimestamp(summary.getStart_time(), lat, lon);\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getPeak_time() - midnight);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_SUNLIGHT:\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getEnd_time() - summary.getStart_time());\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_READINGS:\n raw_ydata1[i] = summaryDB.getDetailCount(context, log_id);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_TEMPERATURE:\n raw_ydata1[i] = summary.getMinTemperature();\n raw_ydata2[i] = summary.getMaxTemperature();\n raw_ydata3[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n raw_ydata1[i] = summary.getAvgClouds();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n default:\n break;\n }\n } else {\n if (dataIndex != Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata1[i] = 0.0;\n raw_ydata2[i] = 0.0;\n }\n }\n }\n\n // set the first and last y1 and y2 values\n int xend = numdays;\n raw_xdata[numdays+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_PEAKTIME :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_SUNLIGHT :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_READINGS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_CLOUDS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_TEMPERATURE :\n Number[] numbers = UtilsMisc.toNumber(raw_ydata1, -273); // convert from kelvin to centigrade\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata1 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata2, -273);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata2 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata3);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata3 = UtilsMisc.toDouble(numbers);\n default :\n break;\n }\n\n LinearInterpolation lp1 = new LinearInterpolation(raw_xdata, raw_ydata1);\n LinearInterpolation lp2 = new LinearInterpolation(raw_xdata, raw_ydata2);\n LinearInterpolation lp3 = (raw_ydata3 != null)? new LinearInterpolation(raw_xdata, raw_ydata3): null;\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList1 = new ArrayList<>();\n ArrayList<Float> yList2 = new ArrayList<>();\n ArrayList<Float> yList3 = new ArrayList<>();\n while (time < (xend+1)) {\n xList.add(time);\n yList1.add((float) lp1.interpolate(time));\n yList2.add((float) lp2.interpolate(time));\n if (lp3 != null)\n yList3.add((float) lp3.interpolate(time));\n time += 1;\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata1 = Floats.toArray(yList1);\n float[] ydata2 = Floats.toArray(yList2);\n float[] ydata3 = Floats.toArray(yList3);\n bundle.putIntArray(\"xdata1\", xdata);\n bundle.putIntArray(\"xdata2\", xdata);\n bundle.putIntArray(\"xdata3\", xdata);\n bundle.putFloatArray(\"ydata1\", ydata1);\n bundle.putFloatArray(\"ydata2\", ydata2);\n bundle.putFloatArray(\"ydata3\", ydata3.length > 0? ydata3: null);\n\n switch (dataIndex) {\n case Constants.DATA_MONTHLY_TEMPERATURE:\n smooth_plot(bundle, true, \"1\");\n smooth_plot(bundle, true, \"2\");\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n smooth_plot(bundle, true, \"1\");\n break;\n }\n\n }", "@Before\n\tpublic void setUp() throws ParseException{\n\t\tbc = new Bank_Control();\n\t\tmyDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"1997-03-20\");\n\t}", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "@Test\n\tvoid lackOfDataTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 8, 1);\n\t\texpected = \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "public void startDateQuestionSet() {\n this.dateQuestionSet = new HashSet<>();//creates a new dateQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 4) {//if the question is type Date Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.dateQuestionSet.add(newQuest);//adds the new Quest to the new dateQuestionSet\n }\n }\n }", "private void initData() {\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "public void setDataA(LocalDate dataA) \r\n\t\t{\r\n\t\t\tDataA = dataA;\r\n\t\t}", "public void setDataV(LocalDate dataV) \r\n\t\t{\r\n\t\t\tDataV = dataV;\r\n\t\t}", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "@Before\n public void SetUp(){\n calendar = new SystemCalendar(2018,4,25);\n DepartureTime = \"9:00AM\";\n DayOfWeek = calendar.getDayOfMonth();\n }", "void createColumnsForDay(LocalDate date) {\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n DateTime start = fenceposts[i];\n DateTime stop = fenceposts[i + 1];\n Column column = new Column(start, stop, formatDayNumber(date));\n mColumnsByStartMillis.put(column.start.getMillis(), column);\n }\n }", "@Test()\n public void testGetForecastPerYearNull() {\n\tYear year = Year.of(2015);\n\tdouble forecast = expenseManager.getForecastPerYear(year);\n\tassertEquals(0, forecast, 0);\n }", "@Test\r\n public void testSetDataNascimento() {\r\n System.out.println(\"setDataNascimento\");\r\n Date dataNascimento = null;\r\n Integrante instance = new Integrante();\r\n instance.setDataNascimento(dataNascimento);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@LogMethod\r\n private void publishDataToDateBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY3);\r\n\r\n clickAndWait(Locator.linkWithText(\"Manage\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n clickAndWait(Locator.linkWithText(\"Create New Timepoint\"));\r\n setFormElement(Locator.name(\"label\"), \"Preexisting Timepoint\");\r\n setFormElement(Locator.name(\"sequenceNumMin\"), \"50\");\r\n setFormElement(Locator.name(\"sequenceNumMax\"), \"89\");\r\n selectOptionByText(Locator.name(\"typeCode\"), \"Screening\");\r\n\r\n clickButton(\"Save\");\r\n assertElementPresent(Locator.tagWithAttribute(\"a\", \"data-original-title\", \"edit\"), 1);\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study3\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY3 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] dates = new String[]{\"2000-02-02\", \"2000-03-03\", \"2000-04-04\", \"2000-05-05\", \"2000-06-06\", \"2001-01-01\", \"2000-01-01\", \"2000-02-02\", \"2000-03-03\"};\r\n int idx = 1;\r\n for (String d : dates)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='date'])[\" + idx + \"]\"), d);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='AAA07XMC-02'] and following-sibling::td[text()='301.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='AAA07XMC-04'] and following-sibling::td[not(text())]]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 90 - 95' and following-sibling::td/a[text()='AAA07XSF-02'] and following-sibling::td[not(text())]]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 120 - 127' and following-sibling::td/a[text()='AssayTestControl1'] and following-sibling::td[text()='5.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 152 - 159' and following-sibling::td/a[text()='AssayTestControl2'] and following-sibling::td[text()='6.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 0 - 7' and following-sibling::td/a[text()='BAQ00051-09'] and following-sibling::td[text()='7.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='BAQ00051-08'] and following-sibling::td[text()='8.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='BAQ00051-11'] and following-sibling::td[text()='9.0']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"2\", \"2\", \"1\", \"1\", \"1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \"1 / 1\", \"2 / 2\", \"2 / 2\", \"1 / 1\", \"1 / 1\", \"1 / 1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Manage Study\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n assertTextPresent(\r\n \"Day 0 - 7\",\r\n \"Day 32 - 39\",\r\n \"Day 90 - 95\",\r\n \"Day 120 - 127\",\r\n \"Day 152 - 159\");\r\n }", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }", "public void addDailyReport(GregorianCalendar date, LinkedList<Reading> readings){\r\n LinkedList<Double> loRainfall = new LinkedList<>();\r\n LinkedList<Double> loTemp = new LinkedList<>();\r\n for(Reading read : readings)\r\n loRainfall.add(read.getRainfall());\r\n for(Reading read : readings)\r\n loTemp.add(read.getTemp());\r\n dailyReports.add(new DailyWeatherReport(date, loTemp, loRainfall));\r\n }", "public int MagicDate(){\n return month = day = year = 1;\n \n }", "boolean isSetDate();" ]
[ "0.640487", "0.58672583", "0.57924384", "0.56985164", "0.56688184", "0.5657424", "0.56047165", "0.5582448", "0.556604", "0.5558115", "0.5556309", "0.5544858", "0.55254054", "0.5524832", "0.551773", "0.54919624", "0.5488586", "0.54827046", "0.5474207", "0.54698825", "0.5461254", "0.5456503", "0.5447443", "0.5414309", "0.5405326", "0.53977215", "0.5393514", "0.5371769", "0.53643364", "0.5355062", "0.53420836", "0.53400874", "0.53339565", "0.5333364", "0.5258997", "0.52523214", "0.5247044", "0.52448183", "0.5235173", "0.5227324", "0.52223533", "0.5219555", "0.5208806", "0.51895887", "0.51883566", "0.51866627", "0.5185062", "0.5179009", "0.517568", "0.5175355", "0.51722693", "0.5166978", "0.5163403", "0.51541865", "0.5153107", "0.51524395", "0.51496184", "0.5147765", "0.5144141", "0.51436675", "0.5141813", "0.51367015", "0.5134201", "0.5132878", "0.51219845", "0.51184475", "0.5117487", "0.5104769", "0.5103774", "0.5102281", "0.50988984", "0.50971246", "0.50949806", "0.50946414", "0.50876963", "0.5079034", "0.5077513", "0.5074487", "0.507375", "0.507006", "0.5063033", "0.5061676", "0.50485176", "0.5045753", "0.5030338", "0.50302106", "0.50301224", "0.5030113", "0.50293136", "0.50240576", "0.50212026", "0.5014079", "0.5011407", "0.50095594", "0.5008428", "0.50010085", "0.4996396", "0.49908176", "0.4988838", "0.4988313", "0.4981652" ]
0.0
-1
dummy data and dates
@Test public void removeBusyCatch() { Date date = new Date(2017-11-12); userDAO.createUser(new User("dummy", "dummy", 1)); busyDAO.createBusy(new Busy("dummy", 1, date)); assertFalse(busyResource.removeBusy(date, 1,"notdummy")); //clean up busyResource.removeBusy(date, 1, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "Date getDataIns();", "public StoredDay(LocalDate date) {\n this.date = date;\n this.recipes = new StoredRecipe[0];\n }", "Dates() {\n clear();\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public FillDate() {\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private void fillStatsRandomlyForDebug() {\n int[] numberOfPeriodsEachDay = {4, 5, 5, 4, 4, 4};\n\n GregorianCalendar dateToFillFrom = new GregorianCalendar(2016, Calendar.AUGUST, 1);\n GregorianCalendar rightNow = new GregorianCalendar();\n rightNow.add(isMonthDisplayed ? Calendar.MONTH : Calendar.WEEK_OF_YEAR, -1);\n\n //sundays are never in statistics\n if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\n rightNow.add(Calendar.DAY_OF_WEEK, -1);\n }\n\n while (dateToFillFrom.get(Calendar.YEAR) != rightNow.get(Calendar.YEAR)\n || dateToFillFrom.get(Calendar.MONTH) != rightNow.get(Calendar.MONTH)\n || dateToFillFrom.get(Calendar.DATE) != rightNow.get(Calendar.DATE)) {\n\n if (dateToFillFrom.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) {\n ArrayList<Boolean> arr = new ArrayList<>();\n for (int j = 0; j < numberOfPeriodsEachDay[dateToFillFrom.get(Calendar.DAY_OF_WEEK) - 2]; j++) {\n arr.add((ThreadLocalRandom.current().nextInt(0, 2) == 0));\n }\n stats.attendanceHistory.add(new StatsDay(arr, StatsUtils.copyCalendarConstructor(dateToFillFrom)));\n }\n\n dateToFillFrom.add(Calendar.DATE, 1);\n }\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "public void readDayData() {\n\t\tlogger.info(\"Reading data for date: \" + date);\n\t}", "public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}", "@Test\r\n public void testSimpleDate() {\r\n SimpleDate d1 = new SimpleDate();\r\n }", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void getData(int day){\n try {\n String today = DateUtilities.getCurrentDateInString();\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date currentDate = dateFormat.parse(today);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(currentDate);\n calendar.add(Calendar.DAY_OF_YEAR,-day);\n Date datebefore = calendar.getTime();\n String dateBeforeStr = dateFormat.format(datebefore);\n\n stepsTakenModels = db.stepsTakenDao().getStepsTakenInrange(dateBeforeStr,today);\n// stepsTakenModels.addAll(db.stepsTakenDao().getStepsTakenInrange(\"01-10-2019\",today));\n\n for(int i = 0 ; i < 7 ; i++){\n stepsTakenModelsLastWeek.add(stepsTakenModels.get(i));\n }\n\n for(int i = 7 ; i<stepsTakenModels.size() ; i++){\n stepsTakenModelsThisWeek.add(stepsTakenModels.get(i));\n }\n// if(stepsTakenModelsThisWeek.size()==0){\n// StepsTakenModel stepsTakenModel = new StepsTakenModel();\n// stepsTakenModel.setSteps(659);\n// stepsTakenModel.setDate(today);\n// stepsTakenModelsThisWeek.add(stepsTakenModel);\n// }\n\n }catch (Exception e){\n Log.d(\"TAG\",e.getMessage());\n }\n }", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "@Test()\n public void testGetExpensesByTypeAndDayNull() {\n\tString type = \"DAILY\";\n\tLocalDate date = LocalDate.of(2015, 3, 25);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndDay(type, date);\n\tassertEquals(0, expensesForDisplay.size(), 0);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "@DataProvider(name=\"datagenerator\")\n\tpublic String[][] providedate() {\n\t\tString[][] s= {{\"a\",\"b\"}};\n\t\t\n\t\tfor(Object s1:s) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\t\n\t\treturn s;\n\t\t\n\t\t\n\t}", "public SampleSummary(Date date) {\n this.date = date;\n }", "public final void testNoDate() {\n testTransaction1.setDate(null);\n assertFalse(testTransaction1.isValidTransaction());\n }", "protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "private List<Date> getTestDates() {\n List<Date> testDates = new ArrayList<Date>();\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 0, 2);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 1, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2011, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n return testDates;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "public void verifyData() {\n\n saveDay();\n\n }", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "@BeforeSuite\r\n\tpublic void fillTestDate() {\r\n\t\tPath path = Paths.get(\"test.txt\");\r\n\t\tList<String> lines = new ArrayList<String>();\r\n\t\tString line = null;\r\n\t\t\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8)) {\r\n\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tlines.add(line);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tpages = new PageBean(3, lines);\r\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@BeforeEach\n\tprotected void setUp()\n\t{\n\t\tformatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n\t}", "private void getDayNonSedTimeData(String accessToken) {\r\n String[] taskParams = new String[2];\r\n taskParams[0] = accessToken;\r\n\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.fitbit_date_format));\r\n String formattedEndDate = dateFormat.format(endDate.getTime());\r\n\r\n taskParams[1] = \"https://api.fitbit.com/1/user/-/activities/steps/date/\"\r\n + formattedEndDate + \"/1d/15min.json\";\r\n\r\n updateRequestCount(taskParams.length - 1);\r\n\r\n new FitbitGetRequestTask(this).execute(taskParams);\r\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private void fillData()\n {\n\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tfutureDate = Calendar.getInstance();\n\t\tfutureDate.set(2015, 1, 1);\n\t\tpastDate = Calendar.getInstance();\n\t\tpastDate.set(2000, 1, 1);\n\t}", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "public Date212[] getNumbDates(int a){ //a is the number that signfies the dates passed in.\n // System.out.println(a+ \"a is\");\n Date212 myDates[] = new Date212[a]; //initalize it from the a.\n\n for(int d = 0; d< myTempDates.length; d++){ //that \"myTempDates\" array which holds the dates is used to copy it into the specified array.\n if(myTempDates[d] != null){ //if next index is not null then copy.\n myDates[d] = myTempDates[d];\n }\n }\n return myDates; //return the array to method calling it!\n }", "public void setSpecimenNumberToDate(long number) {\n specimenNumberToDate = number;\n }", "public void resetRepositoryDefaultData() {\n\t\trepository.deleteAll();\n\t\tList<Temper> tempers = new ArrayList<Temper>();\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-01T11:30:00\"), 25.4F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-07-31T04:13:00\"), 9.8F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-07-31T09:09:00\"), 16.8F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-03T05:15:00\"), 5.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-04T08:00:00\"), 15.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-13T12:00:00\"), 25.0F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-13T12:00:01\"), 25.01F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-15T13:20:00\"), 17F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-25T12:00:00\"), 17F));\n\t\ttempers.add(new Temper(LocalDateTime.parse(\"2021-08-27T11:30:00\"), 35F));\n\t\trepository.saveAll(tempers);\n\t}", "private void mInitData(int DaysRange, int HourRange) {\n mDaysRange = DaysRange;\n mHourRange = HourRange;\n\n mDateList = new ArrayList<>();\n mHourList = new ArrayList<>();\n mTimeWithMeridianList = new ArrayList<>();\n mDatewithYearList = new ArrayList<>();\n\n // Calculate Date List\n calculateDateList();\n }", "private Date init(InputStream ouiData) throws IOException {\n DataInputStream din = new DataInputStream(ouiData);\n Date result = new Date(din.readLong());\n while (din.available() > 0) {\n Oui oui = new Oui(din);\n _byHashCode.put(oui.hashCode(), oui);\n }\n return result;\n }", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "private void buildDaily(SummaryProvider.Summary summary, int log_id, String suffix,\n long midnight, int dataIndex, Bundle bundle) {\n ArrayList<DetailProvider.Detail> details = detailDB.getDetails(context, log_id);\n double[] raw_xdata = new double[details.size() + 2];\n double[] raw_ydata = new double[details.size() + 2];\n\n // set the first x and y values\n int xstart = bundle.getInt(\"xorigin\" + suffix, 0);\n raw_xdata[0] = xstart - 3600;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[0] = details.get(0).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[0] = details.get(0).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[0] = UtilsMisc.getValueinRange(details.get(0).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n // set the y values from the detail records\n for (int i = 1; i < details.size() + 1; i++) {\n DetailProvider.Detail detail = details.get(i-1);\n raw_xdata[i] = UtilsDate.getTimeSeconds((detail.getTimestamp() * 1000) - midnight);\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[i] = detail.getWatts_generated(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[i] = detail.getWatts_now();break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[i] = detail.getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[i] = detail.getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[i] = UtilsMisc.getValueinRange(detail.getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n }\n\n // set the last y value\n int xend = UtilsDate.getTimeSeconds(details.get(details.size()-1).getTimestamp()* 1000 - midnight);\n raw_xdata[details.size()+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[details.size() + 1] = summary.getGenerated_watts(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[details.size() + 1] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[details.size() + 1] =\n UtilsMisc.getValueinRange(details.get(details.size()-1).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n LinearInterpolation lp = new LinearInterpolation(raw_xdata, raw_ydata);\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList = new ArrayList<>();\n while (time < xend) {\n float yval = (float) lp.interpolate(time);\n xList.add(time);\n yList.add(yval);\n time += Integer.parseInt(sharedPreferences.getString(Constants.MONITORING_FREQUENCY, \"5\")) * 60; // seconds\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata = Floats.toArray(yList);\n bundle.putIntArray(\"xdata\" + suffix, xdata);\n bundle.putFloatArray(\"ydata\" + suffix, ydata);\n\n switch (dataIndex) {\n case Constants.DATA_TEMPERATURE:\n case Constants.DATA_WIND:\n case Constants.DATA_CLOUDS:\n smooth_plot(bundle, true, suffix);\n }\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public void clear() {\n this.dates = new HashSet<>();\n }", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "@Test\n\tpublic void testTradeDateFrom0() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D15;\n\n\t\tfinal DateTime today = new DateTime(\"2012-01-18T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2012);\n\t\tassertEquals(trade.getMonthOfYear(), 01);\n\t\tassertEquals(trade.getDayOfMonth(), 15);\n\n\t}", "private RandomData() {\n initFields();\n }", "@Test\r\n public void getDateValue() throws Exception {\r\n assertEquals(dt1,point1.getDateValue());\r\n assertEquals(dt2,point2.getDateValue());\r\n assertEquals(dt3,point3.getDateValue());\r\n assertEquals(dt4,point4.getDateValue());\r\n }", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }", "public SummaryDailyVisitation() {\n departmentName = \"\";\n totalNonNightVisits = 0;\n totalNightVisits = 0;\n numVisits = 0;\n }", "public static Date getData(Date data) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\r\n\t\tcalendar.setTime(data);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\r\n\t\treturn calendar.getTime();\r\n\t}", "@Test()\n public void testGetForecastPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 12);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(0, forecast, 0);\n }", "public void setLineData(ArrayList<Integer> allDay) {\r\n\r\n ArrayList<String> xVals = new ArrayList<String>();\r\n for (int i = 1; i <= 24; i++) {\r\n xVals.add((i) + \"\");\r\n }\r\n\r\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n\r\n for (int i = 1; i <= 24; i++) {\r\n vals1.add(new Entry(allDay.get(i-1), i));\r\n }\r\n Log.v(\"vals1\",vals1.toString());\r\n \t\r\n \t\r\n// \tint count = 45;\r\n// \tint range = 100; \r\n// \tArrayList<String> xVals = new ArrayList<String>();\r\n// for (int i = 0; i < count; i++) {\r\n// xVals.add((1990 +i) + \"\");\r\n// }\r\n//\r\n// ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n//\r\n// for (int i = 0; i < count; i++) {\r\n// float mult = (range + 1);\r\n// float val = (float) (Math.random() * mult) + 20;// + (float)\r\n// // ((mult *\r\n// // 0.1) / 10);\r\n// vals1.add(new Entry(val, i));\r\n// }\r\n// \r\n \t\r\n // create a dataset and give it a type\r\n LineDataSet set1 = new LineDataSet(vals1, \"DataSet 1\");\r\n set1.setDrawCubic(true);\r\n set1.setCubicIntensity(0.2f);\r\n set1.setDrawFilled(true);\r\n set1.setDrawCircles(false); \r\n set1.setLineWidth(2f);\r\n set1.setCircleSize(5f);\r\n set1.setHighLightColor(Color.rgb(244, 117, 117));\r\n set1.setColor(Color.rgb(104, 241, 175));\r\n\r\n ArrayList<LineDataSet> dataSets = new ArrayList<LineDataSet>();\r\n dataSets.add(set1);\r\n\r\n // create a data object with the datasets\r\n LineData data = new LineData(xVals, dataSets);\r\n\r\n // set data\r\n nChart.setData(data);\r\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "private ListSeries getTodayData() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tdouble number = 0;\n\t\tnumber = controler.getTodaysTransactionSummary();\n\t\tdollarEarning.addData(number);\n\t\t\n\t\treturn dollarEarning;\n\t}", "@Test\n void BasicTestCase_inValidMonth() {\n Solution reso = new Solution();\n // Input Dictionary has invalid month\n Map<String, Integer> input1 = Stream.of(new Object[][]{\n {\"2020-71-01\", 6}, {\"2020-01-04\", 12}, {\"2020-01-05\", 14}, {\"2020-01-06\", 2}, {\"2020-01-07\", 4}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n LinkedHashMap<String, Integer> result = reso.dateToDay(input1);\n assertNull(result);\n }", "@Test\n public void testGetDailyListingFromFileSystemInvalidDate() {\n ListingFileHelper instance = new ListingFileHelper();\n\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n GregorianCalendar calendar = new GregorianCalendar(2009, 0, 1);\n List<Listing> result = instance.getDailyListingFromFileSystem(new Date(calendar.getTimeInMillis()));\n \n assertTrue(result.isEmpty());\n }", "public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}", "private Date getTestDate(int numberOfDays) {\n Calendar c = Calendar.getInstance();\n c.add(Calendar.DATE, numberOfDays);\n return c.getTime();\n }", "private void formData(final String label, final int datasetIndex, final int year, final int month, final int day, final LinkedHashMap<Long,Double> data)\n {\n if (thread != null)\n thread.interrupt();\n chart.clearValues();\n if(day==0)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String days[] =getResources().getStringArray(R.array.days);\n int day = (int) value % days.length;\n if(day<0)\n return \"\";\n else\n return days[day];\n }\n });\n thread = new Thread(new Runnable()\n {\n\n @Override\n public void run()\n {\n Double[] daysSumArray = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | all | all || days\n ----------------------------------------------------\n 2020 | all | all || days->2020\n ----------------------------------------------------\n 2020 | jan | all || days->2020->jan\n ----------------------------------------------------\n all | jan | all || days->jan*/\n if(month==0 && year==0)\n daysSumArray[day_to_show-1] += value;\n else if(month==0 && year>0)\n {\n //days->2020\n if(year_to_show==year)\n daysSumArray[day_to_show-1] += value;\n }\n else if(month>0 && year>0)\n {\n //days->2020->jan\n if(year_to_show==year && month_to_show == month)\n daysSumArray[day_to_show-1] += value;\n }\n else if(month>0 && year==0)\n {\n //days->jan\n if(month_to_show == month)\n daysSumArray[day_to_show-1] += value;\n }\n\n\n }\n for(int c=0; c<=6; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c+1,daysSumArray[c]));\n\n }\n });\n\n thread.start();\n }\n else if( day >0 && day <8)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String hours[] =getResources().getStringArray(R.array.hours_24);\n int hour = (int) value % hours.length;\n if(hour<0)\n return \"\";\n else\n return hours[hour];\n }\n });\n thread = new Thread(new Runnable()\n {\n\n @Override\n public void run()\n {\n\n Double[] hoursSumArray = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n int hour_of_day = getHourNumber(date);\n\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n 2020 | jan | mon || hours->2020->jan->mon\n ----------------------------------------------------\n all | jan | mon || hours->jan->mon\n ----------------------------------------------------\n all | all | mon || hours->mon\n ----------------------------------------------------\n 2020 | all | mon || hours->2020->mon\n ----------------------------------------------------\n */\n if(month>0 && year>0 && day_to_show == day)\n {\n if(year_to_show==year && month_to_show == month)\n hoursSumArray[hour_of_day]+=value;\n }\n else if(month>0 && year==0 && day_to_show == day)\n {\n if(month_to_show == month)\n hoursSumArray[hour_of_day]+=value;\n }\n\n else if(month==0 && year==0 && day_to_show == day)\n hoursSumArray[hour_of_day]+=value;\n else if(month==0 && year>0 && day_to_show == day)\n {\n //days->2020\n if(year_to_show==year)\n hoursSumArray[hour_of_day]+=value;\n }\n\n }\n for(int c=0; c<=23; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c,hoursSumArray[c]));\n\n\n }\n });\n\n thread.start();\n\n\n }\n else if( day == 8 && month !=13)\n {\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n String months[] =getResources().getStringArray(R.array.months);\n int month = (int) value % months.length;\n if(month<0)\n return \"\";\n else\n return months[month];\n }\n });\n thread = new Thread(new Runnable() {\n\n @Override\n public void run()\n {\n Double monthsSumArray[] = {0.0,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data.get(key);\n Date date = new Date(key);\n int day_to_show = getDayNumber(date); //days start at 1 which is SUN\n int year_to_show = getYearNumber(date);\n int month_to_show = getMonthNumber(date)+1; //months start ta 0 which is JAN\n\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | all | hide || months\n ----------------------------------------------------\n all | jan | hide || months->jan\n ----------------------------------------------------\n 2020 | jan | hide || months->jan->2020\n ----------------------------------------------------\n */\n if(month==0 && year==0)\n monthsSumArray[month_to_show-1] += value;\n else if(month>0 && year==0 && month==month_to_show)\n monthsSumArray[month_to_show-1] += value;\n else if(month>0 && year>0 && month==month_to_show)\n monthsSumArray[month_to_show-1] += value;\n\n\n }\n for(int c=0; c<=11; c++)\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)c+1,monthsSumArray[c]));\n\n }\n });\n thread.start();\n }\n else if(day==8 && month==13)\n {\n /* YEAR | MONTH | DAY || GRAPH FILTER\n ----------------------------------------------------\n all | hide | hide || years\n ----------------------------------------------------\n */\n chart.getXAxis().setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value)\n {\n return String.valueOf((int)value);\n }\n });\n thread = new Thread(new Runnable() {\n\n @Override\n public void run()\n {\n //REMEBER TO UPDATE STRING ARRAY FOR YEARS IN arrays.xml\n Double yearsSumArray[] = {0.0,0.0 };\n LinkedHashMap<Integer,Double > data_years = new LinkedHashMap<>();\n SortedSet<Long> keys = new TreeSet<>(data.keySet());\n for (Long key : keys)\n {\n Double value = data_years.get(key);\n Date date = new Date(key);\n int year = getYearNumber(date);\n if(data_years.get(year) == null)\n data_years.put(year,value);\n else\n data_years.put(year,data_years.get(year)+value);\n\n }\n Iterator iterator = data_years.entrySet().iterator();\n while (iterator.hasNext())\n {\n LinkedHashMap.Entry<Integer, Double>set = (LinkedHashMap.Entry<Integer, Double>) iterator.next();\n getActivity().runOnUiThread(new OneShotTask(label, datasetIndex,(long)set.getKey(),set.getValue()));\n }\n\n }\n });\n thread.start();\n }\n\n /*else if(monthly)\n {\n\n }\n else if(yearly)\n {\n\n }*/\n }", "public void ustawDate(Date data) {\n\t\tcalendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(data);\r\n\t\tthis.rok = calendar.get(Calendar.YEAR);\r\n\t\tthis.miesiac = calendar.get(Calendar.MONTH);\r\n\t\tif ((this.rok % 4 == 0 && this.rok % 100 != 0) || this.rok % 400 == 0) {\r\n\t\t\tmiesiace[1] = 29;\r\n\t\t} else {\r\n\t\t\tmiesiace[1] = 28;\r\n\t\t}\r\n\r\n\t\twypelnijTabele();\r\n\t}", "public Date(String dateType, int year, int month, int day)\r\n\t\t\tthrows BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = this.minute = this.second = 0;\r\n\t\tthis.dateOnly = true;\r\n\r\n\t\tString yearStr, monthStr, dayStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tvalue = yearStr + monthStr + dayStr;\r\n\r\n\t\t// Add attribute that says date-only\r\n\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t}", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\t\n\t\tdata = new ArrayList<>();\n\t\tdata.add(new StockTimeFrameData(\"1\", 0, 0, 0, 0, 0, 22.27, false)); \n\t\tdata.add(new StockTimeFrameData(\"2\", 0, 0, 0, 0, 0, 22.19, false)); \n\t\tdata.add(new StockTimeFrameData(\"3\", 0, 0, 0, 0, 0, 22.08, false)); \n\t\tdata.add(new StockTimeFrameData(\"4\", 0, 0, 0, 0, 0, 22.17, false));\t\n\t\tdata.add(new StockTimeFrameData(\"5\", 0, 0, 0, 0, 0, 22.18, false)); \n\t\tdata.add(new StockTimeFrameData(\"6\", 0, 0, 0, 0, 0, 22.13, false)); \n\t\tdata.add(new StockTimeFrameData(\"7\", 0, 0, 0, 0, 0, 22.23, false)); \t\n\t\tdata.add(new StockTimeFrameData(\"8\", 0, 0, 0, 0, 0, 22.43, false)); \n\t\tdata.add(new StockTimeFrameData(\"9\", 0, 0, 0, 0, 0, 22.24, false)); \n\t\tdata.add(new StockTimeFrameData(\"10\", 0, 0, 0, 0, 0, 22.29, false)); \n\t\tdata.add(new StockTimeFrameData(\"11\", 0, 0, 0, 0, 0, 22.15, false)); \n\t\tdata.add(new StockTimeFrameData(\"12\", 0, 0, 0, 0, 0, 22.39, false)); \n\t\tdata.add(new StockTimeFrameData(\"13\", 0, 0, 0, 0, 0, 22.38, false)); \n\t\tdata.add(new StockTimeFrameData(\"14\", 0, 0, 0, 0, 0, 22.61, false)); \n\t\t//data.add(new StockTimeFrameData(\"15\", 0, 0, 0, 0, 0, 23.36, false)); \n\n\t\tmacd = new MACD(data, 10, 4, 6);\n\t}", "public void setDateFilled() {\n\t\tthis.dateFilled = new Date();\n\t\tSystem.out.println(\"DF \" + dateFilled);\n\t}", "public void enviarConviteExame(LocalDate dataExame) {\n }", "public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }", "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "private void initData() {\n\t}", "private void buildMonthly(int year, int month, int numdays, int dataIndex, Bundle bundle) {\n\n double[] raw_xdata = new double[numdays + 2];\n double[] raw_ydata1 = new double[numdays + 2];\n double[] raw_ydata2 = new double[numdays + 2];\n double[] raw_ydata3 = null;\n if (dataIndex == Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata3 = new double[numdays + 2];\n Arrays.fill(raw_ydata1, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata2, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata3, Constants.DATA_INVALID);\n }\n\n // set the first y1 and y2 values\n int xstart = bundle.getInt(\"xorigin1\", 0);\n raw_xdata[0] = xstart;\n\n // set the y1 and y2 values for the month\n for (int i = 1; i < numdays + 1; i++) {\n raw_xdata[i] = i;\n String filename = UtilsMisc.getDecimalFormat(year, 4) + \"-\" +\n UtilsMisc.getDecimalFormat(month + 1, 2) + \"-\" +\n UtilsMisc.getDecimalFormat(i, 2);\n if (summaryDB.isInSummaryTable(context, filename)) {\n int log_id = summaryDB.getMonitorID(context, filename);\n SummaryProvider.Summary summary = summaryDB.getSummary(context, log_id);\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS:\n raw_ydata1[i] = summary.getPeak_watts();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_PEAKTIME:\n long midnight = UtilsDate.get_midNightTimestamp(summary.getStart_time(), lat, lon);\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getPeak_time() - midnight);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_SUNLIGHT:\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getEnd_time() - summary.getStart_time());\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_READINGS:\n raw_ydata1[i] = summaryDB.getDetailCount(context, log_id);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_TEMPERATURE:\n raw_ydata1[i] = summary.getMinTemperature();\n raw_ydata2[i] = summary.getMaxTemperature();\n raw_ydata3[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n raw_ydata1[i] = summary.getAvgClouds();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n default:\n break;\n }\n } else {\n if (dataIndex != Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata1[i] = 0.0;\n raw_ydata2[i] = 0.0;\n }\n }\n }\n\n // set the first and last y1 and y2 values\n int xend = numdays;\n raw_xdata[numdays+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_PEAKTIME :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_SUNLIGHT :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_READINGS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_CLOUDS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_TEMPERATURE :\n Number[] numbers = UtilsMisc.toNumber(raw_ydata1, -273); // convert from kelvin to centigrade\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata1 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata2, -273);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata2 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata3);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata3 = UtilsMisc.toDouble(numbers);\n default :\n break;\n }\n\n LinearInterpolation lp1 = new LinearInterpolation(raw_xdata, raw_ydata1);\n LinearInterpolation lp2 = new LinearInterpolation(raw_xdata, raw_ydata2);\n LinearInterpolation lp3 = (raw_ydata3 != null)? new LinearInterpolation(raw_xdata, raw_ydata3): null;\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList1 = new ArrayList<>();\n ArrayList<Float> yList2 = new ArrayList<>();\n ArrayList<Float> yList3 = new ArrayList<>();\n while (time < (xend+1)) {\n xList.add(time);\n yList1.add((float) lp1.interpolate(time));\n yList2.add((float) lp2.interpolate(time));\n if (lp3 != null)\n yList3.add((float) lp3.interpolate(time));\n time += 1;\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata1 = Floats.toArray(yList1);\n float[] ydata2 = Floats.toArray(yList2);\n float[] ydata3 = Floats.toArray(yList3);\n bundle.putIntArray(\"xdata1\", xdata);\n bundle.putIntArray(\"xdata2\", xdata);\n bundle.putIntArray(\"xdata3\", xdata);\n bundle.putFloatArray(\"ydata1\", ydata1);\n bundle.putFloatArray(\"ydata2\", ydata2);\n bundle.putFloatArray(\"ydata3\", ydata3.length > 0? ydata3: null);\n\n switch (dataIndex) {\n case Constants.DATA_MONTHLY_TEMPERATURE:\n smooth_plot(bundle, true, \"1\");\n smooth_plot(bundle, true, \"2\");\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n smooth_plot(bundle, true, \"1\");\n break;\n }\n\n }", "@Before\n\tpublic void setUp() throws ParseException{\n\t\tbc = new Bank_Control();\n\t\tmyDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"1997-03-20\");\n\t}", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "@Test\n\tvoid lackOfDataTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 8, 1);\n\t\texpected = \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "public void startDateQuestionSet() {\n this.dateQuestionSet = new HashSet<>();//creates a new dateQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 4) {//if the question is type Date Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.dateQuestionSet.add(newQuest);//adds the new Quest to the new dateQuestionSet\n }\n }\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "private void initData() {\n }", "public void setDataA(LocalDate dataA) \r\n\t\t{\r\n\t\t\tDataA = dataA;\r\n\t\t}", "public void setDataV(LocalDate dataV) \r\n\t\t{\r\n\t\t\tDataV = dataV;\r\n\t\t}", "@Before\n public void SetUp(){\n calendar = new SystemCalendar(2018,4,25);\n DepartureTime = \"9:00AM\";\n DayOfWeek = calendar.getDayOfMonth();\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "void createColumnsForDay(LocalDate date) {\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n DateTime start = fenceposts[i];\n DateTime stop = fenceposts[i + 1];\n Column column = new Column(start, stop, formatDayNumber(date));\n mColumnsByStartMillis.put(column.start.getMillis(), column);\n }\n }", "@Test()\n public void testGetForecastPerYearNull() {\n\tYear year = Year.of(2015);\n\tdouble forecast = expenseManager.getForecastPerYear(year);\n\tassertEquals(0, forecast, 0);\n }", "@Test\r\n public void testSetDataNascimento() {\r\n System.out.println(\"setDataNascimento\");\r\n Date dataNascimento = null;\r\n Integrante instance = new Integrante();\r\n instance.setDataNascimento(dataNascimento);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@LogMethod\r\n private void publishDataToDateBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY3);\r\n\r\n clickAndWait(Locator.linkWithText(\"Manage\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n clickAndWait(Locator.linkWithText(\"Create New Timepoint\"));\r\n setFormElement(Locator.name(\"label\"), \"Preexisting Timepoint\");\r\n setFormElement(Locator.name(\"sequenceNumMin\"), \"50\");\r\n setFormElement(Locator.name(\"sequenceNumMax\"), \"89\");\r\n selectOptionByText(Locator.name(\"typeCode\"), \"Screening\");\r\n\r\n clickButton(\"Save\");\r\n assertElementPresent(Locator.tagWithAttribute(\"a\", \"data-original-title\", \"edit\"), 1);\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study3\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY3 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] dates = new String[]{\"2000-02-02\", \"2000-03-03\", \"2000-04-04\", \"2000-05-05\", \"2000-06-06\", \"2001-01-01\", \"2000-01-01\", \"2000-02-02\", \"2000-03-03\"};\r\n int idx = 1;\r\n for (String d : dates)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='date'])[\" + idx + \"]\"), d);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='AAA07XMC-02'] and following-sibling::td[text()='301.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='AAA07XMC-04'] and following-sibling::td[not(text())]]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 90 - 95' and following-sibling::td/a[text()='AAA07XSF-02'] and following-sibling::td[not(text())]]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 120 - 127' and following-sibling::td/a[text()='AssayTestControl1'] and following-sibling::td[text()='5.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 152 - 159' and following-sibling::td/a[text()='AssayTestControl2'] and following-sibling::td[text()='6.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 0 - 7' and following-sibling::td/a[text()='BAQ00051-09'] and following-sibling::td[text()='7.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='BAQ00051-08'] and following-sibling::td[text()='8.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='BAQ00051-11'] and following-sibling::td[text()='9.0']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"2\", \"2\", \"1\", \"1\", \"1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \"1 / 1\", \"2 / 2\", \"2 / 2\", \"1 / 1\", \"1 / 1\", \"1 / 1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Manage Study\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n assertTextPresent(\r\n \"Day 0 - 7\",\r\n \"Day 32 - 39\",\r\n \"Day 90 - 95\",\r\n \"Day 120 - 127\",\r\n \"Day 152 - 159\");\r\n }", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }", "public int MagicDate(){\n return month = day = year = 1;\n \n }", "public void addDailyReport(GregorianCalendar date, LinkedList<Reading> readings){\r\n LinkedList<Double> loRainfall = new LinkedList<>();\r\n LinkedList<Double> loTemp = new LinkedList<>();\r\n for(Reading read : readings)\r\n loRainfall.add(read.getRainfall());\r\n for(Reading read : readings)\r\n loTemp.add(read.getTemp());\r\n dailyReports.add(new DailyWeatherReport(date, loTemp, loRainfall));\r\n }", "boolean isSetDate();" ]
[ "0.6405553", "0.58688873", "0.5793942", "0.570229", "0.5667311", "0.56600475", "0.56042236", "0.55857724", "0.5566966", "0.55598754", "0.5558969", "0.55449843", "0.55264246", "0.5524276", "0.5516987", "0.5492104", "0.548908", "0.54830706", "0.54761773", "0.5466397", "0.5461063", "0.5458508", "0.5450922", "0.5414603", "0.54090524", "0.5401541", "0.5392693", "0.53731394", "0.536561", "0.5358782", "0.5346486", "0.5336958", "0.53332824", "0.5330246", "0.5258743", "0.5255793", "0.524767", "0.5241422", "0.5237199", "0.5224847", "0.52248144", "0.5216907", "0.5205894", "0.5191811", "0.5188994", "0.51879936", "0.51876926", "0.5179536", "0.51749915", "0.5173811", "0.5171852", "0.5167486", "0.51602125", "0.5156302", "0.5155128", "0.5151986", "0.5150812", "0.5149199", "0.51462245", "0.5144137", "0.5143173", "0.51386285", "0.5135017", "0.513375", "0.5121984", "0.51218396", "0.51206714", "0.5107095", "0.5106863", "0.51060206", "0.51002425", "0.5098877", "0.50980216", "0.5097395", "0.50855434", "0.5082305", "0.5079297", "0.50770295", "0.50718987", "0.5070797", "0.50633705", "0.50631213", "0.50505245", "0.50456077", "0.50334764", "0.5032835", "0.5032045", "0.5027863", "0.50272954", "0.5024355", "0.5021121", "0.5012491", "0.5012126", "0.50102186", "0.5009079", "0.50012803", "0.4996728", "0.4992923", "0.4990958", "0.49908334", "0.49866554" ]
0.0
-1
creating dummy data to fetch
@Test public void getTimeListsById(){ userDAO.createUser(new User("dummy", "dummy", 1)); timeListDAO.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0)); assertNotNull(timeListResource.getTimeListById("dummy")); //clean up timeListDAO.removeTimeList(1990,0, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void getTimeListsByIdCatch(){ userDAO.createUser(new User("dummy", "dummy", 1)); timeListDAO.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0)); assertTrue(timeListResource.getTimeListById("notdummy").isEmpty()); //clean up timeListDAO.removeTimeList(1990,0, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getTimeListsByMonth(){ userDAO.createUser(new User("dummy", "dummy", 1)); timeListDAO.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0)); assertNotNull(timeListResource.getTimeListsByMonth(1990,0)); //clean up timeListDAO.removeTimeList(1990,0, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void rowExists(){ userDAO.createUser(new User("dummy", "dummy", 1)); timeListDAO.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0)); assertTrue(timeListResource.rowExists("dummy",1990,0)); //clean up timeListDAO.removeTimeList(1990,0, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getSingleTimeList() { userDAO.createUser(new User("dummy", "dummy", 1)); timeListDAO.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0)); assertNotNull(timeListResource.getSingleTimeList(1990, 0, "dummy")); //clean up timeListDAO.removeTimeList(1990, 0, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void getSingleTimeListCatch() { userDAO.createUser(new User("dummy", "dummy", 1)); timeListDAO.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0)); assertNull(timeListResource.getSingleTimeList(1990, 0, "notdummy")); //clean up timeListDAO.removeTimeList(1990, 0, "dummy"); userDAO.removeUser("dummy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void createTimelist(){ userDAO.createUser(new User("dummy", "dummy", 1)); assertTrue(timeListResource.createTimeList(new TimeList("dummy", 1990, 0, 60, 0, 0))); //clean up timeListDAO.removeTimeList(1990, 0, "dummy"); userDAO.removeUser(("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void createTimelistCatch(){ userDAO.createUser(new User("dummy", "dummy", 1)); assertFalse(timeListResource.createTimeList(new TimeList("Dumbdummy, but it has way too long of a name. Seriously!", 1990, 0, 60, 0, 0))); //clean up userDAO.removeUser(("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void updateTimeList(){ userDAO.createUser(new User("dummy2", "dummy2", 1)); timeListDAO.createTimeList(new TimeList("dummy2", 1990, 0, 60, 0, 0)); assertTrue(timeListResource.updateTimeList(new TimeList("dummy2", 1990, 0, 65, 1, 1))); //clean up timeListDAO.removeTimeList(1990, 0, "dummy2"); userDAO.removeUser("dummy2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void updateTimeListCatch(){ userDAO.createUser(new User("dummy2", "dummy2", 1)); timeListDAO.createTimeList(new TimeList("dummy2", 1990, 0, 60, 0, 0)); assertFalse(timeListResource.updateTimeList(new TimeList("notdummy2", 1990, 0, 65, 1, 1))); //clean up timeListDAO.removeTimeList(1990, 0, "dummy2"); userDAO.removeUser("dummy2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void removeTimeList(){ userDAO.createUser(new User("dummy2", "dummy2", 1)); timeListDAO.createTimeList(new TimeList("dummy2", 1990, 0, 60, 0, 0)); assertTrue(timeListResource.removeTimeList(1990, 0, "dummy2")); //clean up userDAO.removeUser("dummy2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void removeTimeListCatch(){ userDAO.createUser(new User("dummy2", "dummy2", 1)); timeListDAO.createTimeList(new TimeList("dummy2", 1990, 0, 60, 0, 0)); assertFalse(timeListResource.removeTimeList(1990, 0, "notdummy2")); //clean up timeListDAO.removeTimeList(1990, 0, "dummy2"); userDAO.removeUser("dummy2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getShiftListById(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertNotNull(shiftListResource.getShiftListById("dummy3")); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01),1,"dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void getShiftListByIdCatch(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertNotNull(shiftListResource.getShiftListById("notdummy3")); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01),1,"dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getShiftListByDate(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertNotNull(shiftListResource.getShiftListsByDate(new Date(2017-01-01))); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01),1,"dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void getShiftListByDateAndId(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertNotNull(shiftListResource.getShiftListsByDateAndShiftId("2017-01-01",1)); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01),1,"dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getSingleShift(){ userDAO.createUser(new User("dummy", "dummy", 1)); shiftListResource.createShiftlist(new ShiftList("dummy", 2, false, new Date(2017-01-01), 0, true)); assertNotNull(shiftListResource.getSingleShift(new Date(2017-01-01), 2, "dummy")); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 2, "dummy"); userDAO.removeUser(("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void getSingleShiftCatch(){ userDAO.createUser(new User("dummy", "dummy", 1)); shiftListResource.createShiftlist(new ShiftList("dummy", 2, false, new Date(2017-01-01), 0, true)); assertNull(shiftListResource.getSingleShift(new Date(2017-01-01), 2, "notdummy")); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 2, "dummy"); userDAO.removeUser(("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getWantSwap() { userDAO.createUser(new User("dummy", "dummy", 1)); shiftListResource.createShiftlist(new ShiftList("dummy", 2, true, new Date(2017-01-01), 0, true)); assertNotNull(shiftListResource.getWantSwap(true)); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 2, "dummy"); userDAO.removeUser(("dummy")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void createShiftList(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); assertTrue(shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true))); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void createShiftListCatch(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); assertFalse(shiftListResource.createShiftlist(new ShiftList("Dumbdummy, but it has way too long of a name. Seriously!", 1, false, new Date(2017-01-01), 0, true))); //clean up userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void updateShiftList(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertTrue(shiftListResource.updateShiftlist(new ShiftList("dummy3", 1, true, new Date(2015-01-02), 50, false))); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void updateShiftListCatch(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertFalse(shiftListResource.updateShiftlist(new ShiftList("notdummy3", 1, true, new Date(2015-01-01), 50, false))); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
creating dummy data to fetch
@Test public void registerDeviance(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); assertTrue(shiftListResource.registerDeviance(new ShiftList("dummy3", 1, true, new Date(2015-01-02), 50, false))); //clean up shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void removeShiftList(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); //clean up and test assertTrue(shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "dummy3")); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "CreationData creationData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private void InitData() {\n\t}", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559288", "0.62240356", "0.6138819", "0.6096648", "0.6091225", "0.59705603", "0.5926542", "0.59240705", "0.59070516", "0.58988863", "0.5869239", "0.5864892", "0.58590573", "0.5844855", "0.5836232", "0.58106863", "0.58038366", "0.5794362", "0.579281", "0.57674026", "0.5729048", "0.57207924", "0.570485", "0.5701865", "0.5686136", "0.5674368", "0.56624043", "0.56601185", "0.5644623", "0.5639778", "0.56341624", "0.56316763", "0.5628241", "0.5615681", "0.5615227", "0.55753875", "0.55618954", "0.5549876", "0.5549876", "0.55394524", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.5534095", "0.55307484", "0.5530319", "0.55232364", "0.54824394", "0.54778767", "0.54662323", "0.546309", "0.5448189", "0.5443184", "0.5435055", "0.5426755", "0.5421609", "0.54154825", "0.5410192", "0.54024106", "0.5401747", "0.5398924", "0.5393996", "0.5392638", "0.5392048", "0.5391562", "0.5388689", "0.53878266", "0.538263", "0.53804296", "0.537845", "0.537374", "0.5368612", "0.5350346", "0.5343917", "0.5343917", "0.53434426", "0.5340464", "0.5336143", "0.53352857", "0.5332807", "0.53307873", "0.5330042", "0.5321337", "0.531736", "0.531736", "0.5317196", "0.5312421", "0.53078014", "0.5305174", "0.53038096", "0.52983624", "0.52969205", "0.5295688", "0.52945215", "0.5294294", "0.52939004", "0.528149", "0.5280256", "0.52795655" ]
0.0
-1
creating dummy data to fetch
@Test public void removeShiftListCatch(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); //clean up and test assertFalse(shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "notdummy3")); shiftListResource.removeShiftlist(new Date(2017-01-01), 1, "dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public UsersDataSet() {}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559596", "0.62234956", "0.6138237", "0.6096403", "0.6091064", "0.59705985", "0.5926924", "0.59237796", "0.59062964", "0.5897724", "0.5868686", "0.5864413", "0.5858379", "0.58438164", "0.5835481", "0.5810882", "0.5803194", "0.579354", "0.5792111", "0.5767312", "0.57292587", "0.57213604", "0.5704447", "0.5702365", "0.5684798", "0.56739247", "0.5662685", "0.5659214", "0.5644675", "0.56395954", "0.563305", "0.5631557", "0.5627562", "0.5615426", "0.5614466", "0.5574428", "0.55624735", "0.5548984", "0.5548984", "0.5538682", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.55333817", "0.5530913", "0.5530281", "0.55237997", "0.5482096", "0.54783374", "0.5465874", "0.5462655", "0.54482883", "0.54432875", "0.5435427", "0.5426253", "0.5422966", "0.54149926", "0.5410333", "0.5402049", "0.5401658", "0.53984183", "0.53932375", "0.5392128", "0.53920925", "0.5391823", "0.5388407", "0.5387824", "0.5383133", "0.5380329", "0.53777933", "0.53746647", "0.5369265", "0.53496915", "0.5343098", "0.5343098", "0.53426313", "0.5340138", "0.533636", "0.533569", "0.5332051", "0.53307056", "0.53304064", "0.5320104", "0.5317112", "0.53166926", "0.53166926", "0.5312354", "0.5306927", "0.5304515", "0.53043115", "0.5298062", "0.529669", "0.5296269", "0.5294568", "0.52937114", "0.529359", "0.52803814", "0.52802193", "0.52787197" ]
0.0
-1
creating dummy data to fetch
@Test public void getShiftsByDate(){ userDAO.createUser(new User("dummy3", "dummy3", 1)); shiftListResource.createShiftlist(new ShiftList("dummy3", 1, false, new Date(2017-01-01), 0, true)); employeeResource.createEmployee(new Employee("dummy3","dummy3","dummy3","dummy3","dummy3", 1)); assertNotNull(shiftListFunctionResource.getShiftsByDate("2017-01-01")); //clean up employeeResource.removeEmployee("dummy3"); shiftListResource.removeShiftlist(new Date(2017-01-01),1,"dummy3"); userDAO.removeUser(("dummy3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "private RandomData() {\n initFields();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "void populateData();", "void fetchForSaleHousesData();", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private void initData() {\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "void fetchStartHousesData();", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "private void initData() {\n }", "void fetchForRentHousesData();", "public void generateData()\n {\n }", "private void initData() {\n\n }", "public static void populateData() {\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "protected abstract D createData();", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void fillData()\n {\n\n }", "public void dummyUsersToDB(){\n\t\tUser nick = new User(db,\"Nick\",9);\n\t\tUser lin = new User(db,\"Lin\",10);\n\t\tUser evan = new User(db,\"Evan\",8);\n\t\tUser karthik = new User(db,\"Karthik\",10);\n\t\tUser bernadette = new User(db,\"Bernadette\",8);\n\t\tUser james = new User(db,\"James\",7);\n\t}", "private List<StadiumModel> dummyDataStadiumList()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\tfinal List<StadiumModel> stadiums = new ArrayList<StadiumModel>();\n\t\tstadiums.add(wembley);\n\t\treturn stadiums;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "private void initialData() {\n\n }", "void fetchHolidayRentalHousesData();", "DataList createDataList();", "public InitialData(){}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "abstract void initializeNeededData();", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "CreationData creationData();", "private void initData(){\n\n }", "private void loadTestData() {\n try(Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n PromotionsResponseDto promotionsResponseDto =\n PromotionsApiFactory.gson().fromJson(TEST_ANF_FULL_RESPONSE, PromotionsResponseDto.class);\n for(PromotionDto promotionDto : promotionsResponseDto.getPromotions()) {\n Promotion promotion = Promotion.fromDto(promotionDto);\n r.copyToRealm(promotion);\n }\n }\n });\n }\n }", "public void initData() {\n }", "public void initData() {\n }", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "DataFactory getDataFactory();", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private RowData() {\n initFields();\n }", "private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "private static boolean fetchDefaultData() {\n if (!Data.DEBUG) return false;\n System.err.println(\"We cannot fetch from any online sources, so default weather data has been injected.\");\n sky = Util.rand(\"partly sunny\", \"mostly cloudy\", \"rainy\", \"mostly sunny\");\n windDir = Util.rand(\"north\", \"south\", \"east\", \"west\");\n windSpeed = Util.rand(0, 5, 10, 15);\n temp = Util.rand(40, 50, 60, 70, 80);\n sunriseHour = 6.5;\n sunsetHour = 20.0;\n return true;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "public void LoadDummyData(View view) {\n /*this overwrites everything in the friends tree by inserting hashmap of dummy items*/\n loadDummyDataHashMap(friendsDatabaseReference);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "private void InitData() {\n\t}", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public objData getTestSet(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TSDB_REFID, TSDB_SET_NAME, TST_REFID FROM TEST_SET_DB WHERE TSDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void loadSimulatedMixedData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.1);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.6);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(2.1);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }", "public UsersDataSet() {}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6559866", "0.62240016", "0.61383736", "0.6097171", "0.60916007", "0.59706473", "0.59268403", "0.59241235", "0.59062773", "0.58973235", "0.58686894", "0.5864154", "0.5858345", "0.58437234", "0.58354115", "0.58109635", "0.58031756", "0.57934964", "0.5792206", "0.5767641", "0.5729554", "0.57212794", "0.57047486", "0.5702378", "0.5684815", "0.5673723", "0.566277", "0.56592107", "0.5644682", "0.5639859", "0.56327426", "0.56321603", "0.5627516", "0.5615979", "0.56145006", "0.55743086", "0.5562765", "0.5548844", "0.5548844", "0.55390185", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.55330867", "0.5530926", "0.5530495", "0.5523684", "0.5482144", "0.54786116", "0.54660946", "0.54629725", "0.5447638", "0.5443545", "0.5435634", "0.5426232", "0.54229546", "0.5415458", "0.54101044", "0.54022896", "0.54015064", "0.5398145", "0.5393019", "0.53924704", "0.53920615", "0.53917164", "0.5388764", "0.53877574", "0.5382834", "0.53807735", "0.5378037", "0.53746223", "0.5369353", "0.5349514", "0.534285", "0.534285", "0.5342287", "0.53402406", "0.5336392", "0.53355116", "0.5332137", "0.5330727", "0.5330241", "0.53204066", "0.531718", "0.5316388", "0.5316388", "0.53122675", "0.5306701", "0.5304361", "0.53043187", "0.5297927", "0.5297378", "0.5296768", "0.5294231", "0.5293585", "0.52932477", "0.5280697", "0.52798116", "0.5278426" ]
0.0
-1
wiki.download is primarily used for dump files; default to .xml.bz2; NOTE: changed from ".xml"; DATE:20131107
@Override public String Async_key() {return Key_wiki_download;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n try {\n String url = \"file:///C:/enwiktionary-latest-pages-articles.xml.bz2.xml.bz2.xml\";\n// String url = \"file:///D:/enWikt_Samp.xml\n File file = new File(new URI(url));\n System.out.println(file.toURI());\n\n\n// fileLoader(file);\n staxReader(file);\n// vtdReader(file); vtd is where kittens go to die.\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "File downloadExtension(DownloadExtensionRequest request);", "String generalFileName(String url);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "default String getFileExtension() {\n return \"bin\";\n }", "public void download() {\n }", "@Override\n\tpublic void fileDownLoad(HttpServletResponse response, String file_name) {\n\t\t\n\t}", "private static String getUrl(String packageId, int packageIdx, int numPackages, String baseFileName) {\n try {\n String suggestedName;\n try {\n suggestedName = URLEncoder.encode(baseFileName, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n suggestedName = \"DownloadPackage\";\n }\n if (numPackages > 1) suggestedName += \"-part\" + (packageIdx + 1);\n\n suggestedName += \".zip\";\n\n File zipFile = getZipFile(packageId, packageIdx);\n\n return getUrl(zipFile,suggestedName );\n\n } catch (RuntimeException e) {\n Logger.debug(\"id= \" + packageId + \" baseFileName= \" + baseFileName);\n throw e;\n }\n }", "private static void getFile(String strFileName, String strURL, Boolean blnExtract)\r\n {\r\n String webPageContentsRaw = \"\";\r\n String webPageContentsCleaned = \"\";\r\n String webPageURL = strURL;\r\n INET net = new INET();\r\n\r\n\r\n\r\n if(!blnExtract)\r\n {\r\n System.out.println(strFileName);\r\n try {\r\n webPageContentsRaw = net.getURLRaw(webPageURL);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n webPageContentsCleaned = webPageContentsRaw.trim();\r\n\r\n if (strFileName.equals(strFileName.endsWith(\"data/FBIN.txt\")||strFileName.endsWith(\"data/World.txt\"))) {\r\n webPageContentsCleaned = net.getPREData(webPageContentsRaw);\r\n }\r\n\r\n webPageContentsCleaned = webPageContentsCleaned.trim();\r\n\r\n try {\r\n net.saveToFile(strFileName, webPageContentsCleaned);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "void downloadingFile(String path);", "private void dowloadFile(String dir, String file, String webPage) throws IOException {\n\t\tURL url = new URL(webPage);\n\t\tURLConnection connection = url.openConnection();\n\t\tconnection.connect();\n\t\tInputStream input = new BufferedInputStream(url.openStream());\n\t\tFile f = new File(dir, file);\n\t\tif (f.exists()) f.delete();\n\t\tf.getParentFile().mkdirs();\n\t\tFileOutputStream output = new FileOutputStream(f);\n\t\tbyte data[] = new byte[1024];\n\t\tint n;\n\t\twhile ((n = input.read(data)) != -1) {\n\t\t\toutput.write(data, 0, n);\n\t\t}\n\t\toutput.flush();\n\t\toutput.close();\n\t\tinput.close();\n\t}", "void mo54427b(DownloadInfo downloadInfo);", "@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException {\r\n br = new Browser();\r\n // need to correct links that are added prior to fixing!\r\n correctDownloadLink(link);\r\n prepBrowser(br);\r\n br.setFollowRedirects(true);\r\n final URLConnectionAdapter con = br.openGetConnection(link.getDownloadURL());\r\n if (con.getResponseCode() == 503 || con.getResponseCode() == 404) {\r\n con.disconnect();\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n br.followConnection();\r\n if (br.containsHTML(\"<title>\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Access denied\r\n if (br.containsHTML(\"Access denied<|资源已被禁止访问</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Not found\r\n if (br.containsHTML(\"<span>(资源未找到|Not found)</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n /* Wrong link */\r\n if (br.containsHTML(\">Wrong</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n String filename = null, filesize = null;\r\n // if (br.getURL().matches(\"http://page\\\\d+\\\\.yunfile.com/fs/[a-z0-9]+/\")) ;\r\n filename = br.getRegex(\"Downloading:&nbsp;<a></a>&nbsp;([^<>]*) - [^<>]+<\").getMatch(0);\r\n if (filename == null) {\r\n filename = br.getRegex(\"<title>(.*?)\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n filename = br.getRegex(\"<h2 class=\\\"title\\\">文件下载\\\\&nbsp;\\\\&nbsp;([^<>\\\"]*?)</h2>\").getMatch(0);\r\n }\r\n filesize = br.getRegex(\"文件大小: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"File Size: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n }\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"id=\\\"file_show_filename\\\">[^<>]+</span> \\\\- ([^<>\\\"]+) <\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n link.setName(decode(\"111\", filename.trim()));\r\n link.setDownloadSize(SizeFormatter.getSize(filesize));\r\n return AvailableStatus.TRUE;\r\n }", "public String getPageFileName();", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\r\n\tpublic void downloadHomework() {\n\t\t\r\n\t}", "entities.Torrent.DownloadRequest getDownloadRequest();", "void fileDownloaded(String path);", "@Override\n public void fileDownLoad(HttpServletResponse response, String path) {\n }", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public String getSourceDownloadUrl();", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void downloadAlfrescoDocument(){\n\t\t//el boton solo esta activo si un fichero esta seleccionado en la tabla de ficheros\n\t\t//Se abre un filechooser y se elije un directorio\n\t\t//Se enviara la direccion y el nodo con el content alfresco y se generara un File a partir de ellos (si no hay una opcion mejor con alfresco api)\n\t\t//se descarga el documento en el directorio elegido\n\n\t\tif(getFileChooser(JFileChooser.DIRECTORIES_ONLY).showOpenDialog(this)==JFileChooser.APPROVE_OPTION){\n\t\t\tAlfrescoNode node = (AlfrescoNode) getDynamicTreePanel().getDragTable().getValueAt(getDynamicTreePanel().getDragTable().getSelectedRow(),0);\n\t\t\t//if(alfrescoManager.downloadFile(new AlfrescoKey(node.getUuid(), AlfrescoKey.KEY_UUID), getFileChooser().getSelectedFile().getAbsolutePath()))\n\t\t\ttry {\n\t\t\t\talfrescoDocumentClient.downloadFile(new AlfrescoKey(node.getUuid(), AlfrescoKey.KEY_UUID), getFileChooser().getSelectedFile().getAbsolutePath(), node.getName());\n\t\t\t\tJOptionPane.showMessageDialog(this, \"El documento se ha descargado correctamente.\");\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Error al descargar el documento.\");\n\t\t\t}\n\t\t}\n\t}", "public String download(){\r\n\t\treturn \"template\";\r\n\t}", "@RequestMapping(\n\t\t\tvalue = \"/ristore/foundation/xml/{filename}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = \"application/xml\")\n\tpublic ResponseEntity<byte[]> downloadXMLFile(@PathVariable String filename) throws IOException {\n\t\tFileInputStream fileStream;\n fileStream = new FileInputStream(new File(\"/rsrch1/rists/moonshot/data/prod/foundation/xml/\" + filename + \".xml\"));\n byte[] content = IOUtils.toByteArray(fileStream);\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.parseMediaType(\"application/pdf\"));\n headers.setContentDispositionFormData(filename + \".xml\", filename + \".xml\");\n return new ResponseEntity<byte[]>(content, headers, HttpStatus.OK);\n\t}", "String download(String path) throws IOException;", "public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected abstract File download(Exception previousException) throws Exception;", "void downloadNdwi6(File file, int id) throws IOException, SQLException;", "public String getFileName() {\n if (url.endsWith(\"/\")) {\n url = url.substring(0, url.length() - 1);\n }\n\n //Replace illegal characters\n String urlFileName = url.replace(\"http://\", \"\");\n urlFileName = urlFileName.replace(\"https://\", \"\");\n urlFileName = urlFileName.replace(\"/\", \"\");\n urlFileName += \".txt\";\n\n return urlFileName;\n }", "@RequestMapping(value = \"download.do\")\r\n\tpublic ModelAndView download(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows Exception {\n\t\tString storeName = request.getParameter(\"name\");\r\n\t\tString contentType = \"application/octet-stream\";\r\n\t\t// 获取项目根目录\r\n\t\tString ctxPath = request.getSession().getServletContext().getRealPath(\"\");\r\n\t\t// 获取下载文件露肩\r\n\t\tString downLoadPath = ctxPath + \"/data/\" + storeName;\r\n\t\tFileUploadController.download(request, response, storeName, downLoadPath, contentType);\r\n\t\treturn null;\r\n\t}", "public String getPackageDownloadUrl();", "default void download(SearchResult result) {\n download(result, \".\");\n }", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "private String downloadFile(String strURL, int index, boolean delete)\n {\n int npos = strURL.lastIndexOf('/');\n if (npos == strURL.length()-1) { \n \tm_ErrorCode = 1;\n return null;\n }\n\n String filename = strURL.substring(npos+1);\n try {\n // setup streams to download and write to file\n String outputFilePath = Update.pathSD + filename;\n File fSettingsZip = new File(outputFilePath);\n if (fSettingsZip.exists()) { // todo: do we want this configurable?\n //m_logWriter.write(\"Deleting old file: \"+outputFilePath+\"\\n\");\n \tif (!delete)\n \t\treturn outputFilePath;\n \t\n \tfSettingsZip.delete();\n \t//return outputFilePath;\n }\n\n publishProgress(PROGRESS_DOWNLOAD, (int)(0.5 * index));\n //m_logWriter.write(\"Trying URL: \"+strURL+\", filename: \"+filename+\"\\n\");\n //m_logWriter.flush();\n URL url = new URL(strURL);\n HttpURLConnection conn = (HttpURLConnection)url.openConnection();\n conn.setRequestProperty(\"User-Agent\", \"Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91) AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1\");\n conn.connect();\n\n mContentLength = conn.getContentLength();\n\n InputStream is = new BufferedInputStream(url.openStream(), 8192);\n OutputStream os = new BufferedOutputStream(new FileOutputStream(outputFilePath));\n byte data[] = new byte[1024];\n mTotalRead = 0;\n int read=0;\n //while ((read = is.read(data)) != -1)\n while (true) {\n if (isCancelled()) {\n outputFilePath = null;\n m_ErrorCode = 2;\n break;\n }\n \n if (m_DownloadStop)\n \tcontinue;\n \n if ((read = is.read(data)) == -1)\n \tbreak;\n\n mTotalRead += read;\n\n // progress if we know the content length\n if (mContentLength > 0)\n publishProgress(PROGRESS_DOWNLOAD, (int)(0.5 * (index + mTotalRead*100/mContentLength)));\n \tmPrecent = (int)mTotalRead*100 / mContentLength;\n // write to file\n os.write(data, 0, read);\n }\n\n // close and get ready to bail\n os.flush();\n os.close();\n is.close();\n filename = outputFilePath;\n }\n catch(Exception e) {\n filename = null;\n m_ErrorCode = 3;\n }\n\n return filename;\n }", "public DownloadUtil(Download download) throws IOException {\n this.download = download;\n if (!download.getLink().startsWith(\"http://\") && !download.getLink().startsWith(\"https://\"))\n url = new URL(\"http://\" + download.getLink());\n else\n url = new URL(download.getLink());\n\n }", "protected abstract String getFileExtension();", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "static void downloadFile(String [] addresses, String filename, int downloadType) {\n\t\ttry {\n\t\t\tHttpURLConnection con = null;\n\t\t\t// For each address in addresses, deconstruct the string and try to connect\n\t\t\tfor(String address: addresses) {\n\t\t\t\t// Uses the character } to separate the URL from the username - split it\n\t\t\t\tString[] stringDeconstruction = address.split(\"}\");\n\t\t\t\t// The address part is before the } and the username is after\n\t\t\t\tString addressPart = stringDeconstruction[0];\n\t\t\t\tString usernamePart = stringDeconstruction[1];\n\t\t\t\t// Now, try to make a URL object that is a combination of the address, the filename, and username\n\t\t\t\ttry {\n\t\t\t\t\t// Create the URL object and set the con to the casted HttpURLConnection\n\t\t\t\t\tURL url = new URL(addressPart + \"/\" + filename + \"}\" + usernamePart);\n\t\t\t\t\tcon = (HttpURLConnection)url.openConnection();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// If unable to connect, keep looping\n\t\t\t\tcatch(ConnectException e) {\n\t\t\t\t\tcon = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If unable to make any connections, return to the calling function after informing the user\n\t\t\tif(con == null) {\n\t\t\t\tSystem.out.println(\"Unable to connect to a user peer to download.\");\n\t\t\t\tSystem.out.println(\"The user may have gone offline or stopped sharing the file.\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Create a new byteStream in order to transfer files of all types\n\t\t\tByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t\t\t// Set a buffer based on a reasonable size\n\t\t\tbyte[] buffer = new byte[4096];\n\n\t\t\t// Set up an InputStream for the connection to prepare for the file's contents\n\t\t\tInputStream incoming = con.getInputStream();\n\n\t\t\t// Write the bytes of the file through the byteStream\n\t\t\twhile(true) {\n\t\t\t\tint i = incoming.read(buffer);\n\t\t\t\tif( i < 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbyteStream.write(buffer,0,i);\n\t\t\t}\n\t\t\tincoming.close();\n\n\t\t\t// If the download type was 1, assemble the byteStream.toByteArray which should create the original file\n\t\t\t// Then save it to the user's directory under \"shared\" and inform the user of the status\n\t\t\tif(downloadType == 1) {\n\t\t\t\tPath sharedPath = Paths.get(\"users/\"+username+\"/shared/\" + filename);\n\t\t\t\tFiles.write(sharedPath, byteStream.toByteArray());\n\t\t\t\tserver.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n\t\t\t\tserver.registerFiles(username);\n\t\t\t\tSystem.out.println(\"The file has been downloaded and is now also being shared!\");\n\t\t\t}\n\n\t\t\t// If the download type was 2, assemble the byteStream.toByteArray which should create the original file\n\t\t\t// Then save it to the user's directory under \"not-shared\" and inform the user of the status\n\t\t\telse{\n\t\t\t\tPath notSharedPath = Paths.get(\"users/\"+username+\"/not-shared/\" + filename);\n\t\t\t\tFiles.write(notSharedPath, byteStream.toByteArray());\n\t\t\t\tserver.clearNotSharedFiles(username);\n server.clearSharedFiles(username);\n\t\t\t\tserver.registerFiles(username);\n\t\t\t\tSystem.out.println(\"The file has been downloaded and is not being shared!\");\n\t\t\t}\n\t\t}\n\t\t// Otherwise, we hit some sort of error. Print to the user and the function will terminate\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Error! : \" + e.getMessage());\n\t\t}\n\t}", "public abstract String getFileExtension();", "private File downloadJSON(String urlString) throws IOException {\r\n\t\tString filename = \"\";\r\n\t\t\r\n\t\t//We choose to name the files as word_opensearch and word_wikipage, referring to the two File objects representing the JSONs we downloaded.\r\n\t\tif(urlString.contains(\"search\")) {\r\n\t\t\tfilename = \"JSON/\" + this.word + \"_opensearch.json\";\r\n\t\t} else {\r\n\t\t\tfilename = \"JSON/\" + this.word + \"_wikipage.json\";\r\n\t\t}\r\n\t\t\r\n\t\t//Constructing the File toReturn with the appropriate filename as checked above.\r\n\t\tFile toReturn = new File(filename);\r\n\t\t\r\n\t\t//This line deals with errors you recieve when dealing with how to fill whitespace when represented as a URL\r\n\t\tString messageText = URLEncoder.encode(this.word, \"UTF-8\");\r\n\t\t\r\n\t\t//Constructing the URL object from our long URL and converted text in message data\r\n\t\tURL website = new URL(urlString + messageText);\r\n\t\t\r\n\t\t//Write the bytes recieved from wikipedia's response to us opening a datastream\r\n\t\tReadableByteChannel rbc = Channels.newChannel(website.openStream());\r\n\t\tFileOutputStream fos;\r\n\t\ttry {\r\n\t\t\tfos = new FileOutputStream(toReturn);\r\n\t\t\tfos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\r\n\t\t\tfos.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn toReturn;\r\n\t}", "@Override\n\tpublic String imageDownLoad(String url, String name) {\n\t\treturn HttpUtil.httpDownLoad(url, name);\n\t}", "private File download( final File workDir, final URL url, final String displayName, final Boolean overwrite,\n final boolean checkAttributes, final boolean downloadFeeback )\n throws PlatformException\n {\n LOGGER.debug( \"Downloading [\" + url + \"]\" );\n File downloadedBundlesFile = new File( workDir, \"bundles/downloaded_bundles.properties\" );\n Properties fileNamesForUrls = loadProperties( downloadedBundlesFile );\n \n String downloadedFileName = fileNamesForUrls.getProperty( url.toExternalForm() );\n String hashFileName = \"\" + url.toExternalForm().hashCode();\n if( downloadedFileName == null )\n {\n // destination will be made based on the hashcode of the url to be downloaded\n downloadedFileName = hashFileName + \".jar\";\n \n }\n File destination = new File( workDir, \"bundles/\" + downloadedFileName );\n \n // download the bundle only if is a forced overwrite or the file does not exist or the file is there but is\n // invalid\n boolean forceOverwrite = overwrite || !destination.exists();\n if( !forceOverwrite )\n {\n try\n {\n String newFileName = validateBundleAndGetFilename( url, destination, hashFileName, checkAttributes );\n if( !destination.getName().equals( newFileName ) )\n {\n throw new PlatformException( \"File \" + destination + \" should have name \" + newFileName );\n }\n }\n catch( PlatformException ignore )\n {\n forceOverwrite = true;\n }\n }\n if( forceOverwrite )\n {\n try\n {\n LOGGER.debug( \"Creating new file at destination: \" + destination.getAbsolutePath() );\n destination.getParentFile().mkdirs();\n destination.createNewFile();\n BufferedOutputStream os = null;\n try\n {\n os = new BufferedOutputStream( new FileOutputStream( destination ) );\n StreamUtils.ProgressBar progressBar = null;\n if( LOGGER.isInfoEnabled() )\n {\n if( downloadFeeback )\n {\n progressBar = new StreamUtils.FineGrainedProgressBar( displayName );\n }\n else\n {\n progressBar = new StreamUtils.CoarseGrainedProgressBar( displayName );\n }\n }\n StreamUtils.streamCopy( url, os, progressBar );\n LOGGER.debug( \"Succesfully downloaded to [\" + destination + \"]\" );\n }\n finally\n {\n if( os != null )\n {\n os.close();\n }\n }\n }\n catch( IOException e )\n {\n throw new PlatformException( \"[\" + url + \"] could not be downloaded\", e );\n }\n }\n \n wrapNonBundleJar( destination, url );\n String newFileName = validateBundleAndGetFilename( url, destination, hashFileName, checkAttributes );\n File newDestination = new File( destination.getParentFile(), newFileName );\n if( !newFileName.equals( destination.getName() ) )\n {\n if( newDestination.exists() )\n {\n if( !newDestination.delete() )\n {\n throw new PlatformException( \"Cannot delete \" + newDestination );\n }\n }\n if( !destination.renameTo( newDestination ) )\n {\n throw new PlatformException( \"Cannot rename \" + destination + \" to \" + newDestination );\n }\n fileNamesForUrls.setProperty( url.toExternalForm(), newFileName );\n saveProperties( fileNamesForUrls, downloadedBundlesFile );\n }\n \n return newDestination;\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "public void downloadFilePagesWithoutListener(String fileKey, String fileType, Context context) {\n\n\n TransferObserver downloadObserver =\n transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey)));\n\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n // Handle a completed upload.\n\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n // Handle errors\n\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "@Override\n\t\t\t\t\tpublic void isDownload(String fileString, int DOWN_OVER) {\n\t\t\t\t\t\tmHandler.sendEmptyMessage(DOWN_OVER);\n\t\t\t\t\t\tfileName = fileString;\n\t\t\t\t\t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "static void downloadFileFromGenBank(GenbankSequence sequence) {\n String urlString = \"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=\" + sequence.getId() + \"&rettype=fasta&retmode=text\";\n File dstFile = null;\n File dstFolderFile = null;\n String path = \"DownloadedFiles\" + File.separator + sequence.getSpecies() + File.separator + sequence.getName() + \".fasta\"; //TODO:Add timestamp?\n // Check the directory for existence:\n String dstFolder = path.substring(0, path.lastIndexOf(File.separator));\n if (!(dstFolder.endsWith(File.separator) || dstFolder.endsWith(\"/\"))) {\n dstFolder += File.separator;\n }\n // Creates the destination folder if doesn't not exists:\n dstFile = new File(path);\n dstFolderFile = new File(dstFolder);\n if (!dstFile.exists()) {\n dstFolderFile.mkdirs();\n }\n\n try {\n URL url = new URL(urlString);\n FileUtils.copyURLToFile(url, dstFile);\n } catch (Exception e) {\n System.err.println(e);\n e.printStackTrace();\n }\n }", "private String downloadFile(String url) throws Exception {\n StringBuilder builder = new StringBuilder();\n \n URL u = new URL(url);\n URLConnection conn = u.openConnection();\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n while ((line = rd.readLine()) != null) {\n builder.append(line);\n }\n \n return builder.toString();\n }", "@RequestMapping(\"api/admin/fileDownload.do\")\n\tpublic void fileDownload(HttpServletRequest request,HttpServletResponse response,@RequestParam(value=\"fileName\")String fileName) throws IOException{\n\t\tServletContext context = request.getServletContext();\n \n // construct the complete absolute path of the file\n String fullPath = boardPath+fileName; \n File downloadFile = new File(fullPath);\n FileInputStream inputStream = new FileInputStream(downloadFile);\n \n // get MIME type of the file\n String mimeType = context.getMimeType(fullPath);\n if (mimeType == null) {\n // set to binary type if MIME mapping not found\n mimeType = \"application/octet-stream\";\n }\n System.out.println(\"MIME type: \" + mimeType);\n \n // set content attributes for the response\n response.setContentType(mimeType);\n response.setContentLength((int) downloadFile.length());\n \n // set headers for the response\n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\",\n URLEncoder.encode(downloadFile.getName(),\"UTF-8\"));\n System.out.println(downloadFile.getName());\n \n response.setHeader(headerKey, headerValue);\n \n // get output stream of the response\n OutputStream outStream = response.getOutputStream();\n \n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead = -1;\n \n // write bytes read from the input stream into the output stream\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n \n inputStream.close();\n outStream.close();\n \n \n \n\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "void downloadNdwi5(File file, int id) throws IOException, SQLException;", "protected File getJnlpFile(HttpServletRequest request)\n {\n String query = getCodebase(request) + getHref(request) + '?' + request.getQueryString();\n String hash = Integer.toString(query.hashCode()).replace('-', 'a') + \".jnlp\";\n return context.getDataFile(hash);\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "public boolean downloadAndSaveBinaryFile(String theUrl, String saveAsFileName){\n \t\t //Log.i(\"ZZ\", \"AppDelegate:downloadAndSaveBinaryFile: \" + URL); \n\t \ttry {\n\t\t \n\t \tURL u = new URL(theUrl);\n\t URLConnection uc = u.openConnection();\n\t String contentType = uc.getContentType();\n\t int contentLength = uc.getContentLength();\n\t if (contentType.startsWith(\"text/\") || contentLength == -1) {\n\t return false; // not binary\n\t }\n\t InputStream raw = uc.getInputStream();\n\t InputStream in = new BufferedInputStream(raw);\n\t byte[] data = new byte[contentLength];\n\t int bytesRead = 0;\n\t int offset = 0;\n\t while (offset < contentLength) {\n\t bytesRead = in.read(data, offset, data.length - offset);\n\t if (bytesRead == -1)\n\t break;\n\t offset += bytesRead;\n\t }\n\t in.close();\n\t \t\t\t \t\n\t \t\t\t \n\t if (offset != contentLength) {\n\t\t return false; //problem reading stream?\n\t }\n\t \n\n\t //save file\n\t\t\t\t\tFileOutputStream fos = super.openFileOutput(saveAsFileName, MODE_WORLD_READABLE);\n\t\t\t\t\tfos.write(data);\n\t\t\t\t\tfos.flush();\n\t\t\t\t\tfos.close();\n\t \n\t return true;\n\t }catch (Exception je){\n\t\t\t Log.i(\"ZZ\", \"AppDelegate:downloadAndSaveBinaryFile: ERROR - 2: \" + je.getMessage()); \n\t \t return false;\n\t\t } \n\t }", "public static void main(String[] args) {\n\t\t\n\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\tprofile.setPreference(\"browser.download.folderList\", 2); //0(Desktop) , 1(Downloads folder), 2(Specific folder)\n\t\tprofile.setPreference(\"browser.download.manager.showWhenStarting\", false);//Prevent download manager window\n\t\tprofile.setPreference(\"browser.download.dir\", \"C:\\\\tmp\"); //Path where files to be downloaded\n\t\t\n\t\t//Mime types\n\t\tprofile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"text/csv,application/x-msexcel,application/excel,application/x-excel,application/vnd.ms-excel,image/jpeg,text/html,text/plain,application/msword,application/xml,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/x-rar-compressed,application/octet-stream\");\n\t\tprofile.setPreference(\"browser.download.manager.alertOnEXEOpen\", false); //\n\t\t\n\t\tWebDriver driver = new FirefoxDriver(profile);\n\t\tdriver.get(\"http://qtpselenium.com/test/testdownload.php\");\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.findElement(By.xpath(\"html/body/a[1]\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/a[2]\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/a[4]\")).click();\n\t\t\n\t}", "public void downloadFile(String fileURL, String saveDir)\n throws IOException {\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n\n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n\n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n\n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n\n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n\n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n int progress = 0;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n progress += bytesRead;\n setChanged();\n notifyObservers((int) ((progress * 100) / contentLength));\n }\n\n outputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n }", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "public Resource cargarArchivo(String nombreArchivo) throws MalformedURLException;", "public String getDownloadLink() {\r\n\t\tString site = MySoup.getSite();\r\n\t\tString authKey = MySoup.getAuthKey();\r\n\t\tString passKey = MySoup.getPassKey();\r\n\t\tString downloadLink = site + \"torrents.php?action=download&id=\" + id + \"&authkey=\" + authKey + \"&torrent_pass=\" + passKey;\r\n\t\treturn downloadLink;\r\n\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "boolean checkShouldDownloadFile(String target, String name) {\n return Boolean.TRUE.equals(DOWNLOAD_FILES.retrieve(target, name));\n }", "public Blob downloadFile(String inKey, String inFileName);", "@Override\n public String doPackageDownloadUrlFor(PackageURL purl) {\n StringBuffer sb = new StringBuffer(this.repoBaseUrl);\n sb.append(\"source/\");\n sb.append(purl.getName().substring(0, 1)).append(\"/\");\n sb.append(purl.getName()).append(\"/\");\n sb.append(purl.getName()).append(\"-\");\n sb.append(purl.getVersion()).append(\".tar.gz\");\n\n return sb.toString();\n }", "public void downloadFile() {\n String path = images.get(viewPager.getCurrentItem()).getFilePath();\n String uRl = \"https://image.tmdb.org/t/p/w500\" + path;\n String name = path.substring(1, 5);\n File direct = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Cinemato\");\n if (!direct.exists()) {\n direct.mkdirs();\n }\n DownloadManager mgr = (DownloadManager) Objects.requireNonNull(getContext())\n .getSystemService(Context.DOWNLOAD_SERVICE);\n Uri downloadUri = Uri.parse(uRl);\n DownloadManager.Request request = new DownloadManager.Request(\n downloadUri);\n request.setAllowedNetworkTypes(\n DownloadManager.Request.NETWORK_WIFI\n | DownloadManager.Request.NETWORK_MOBILE)\n .setAllowedOverRoaming(false).setTitle(name)\n .setDescription(\"Saved images from Cinemato\")\n .setDestinationInExternalPublicDir(Environment.DIRECTORY_PICTURES + \"/Cinemato\", name + \".jpg\");\n assert mgr != null;\n mgr.enqueue(request);\n // Open Download Manager to view File progress\n Toast.makeText(getContext(), \"Downloading...\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));\n }", "private File downloadFile(String osSdkRoot, ITaskMonitor monitor, boolean forceHttp) {\n String name = getParentPackage().getShortDescription();\n String desc = String.format(\"Downloading %1$s\", name);\n monitor.setDescription(desc);\n monitor.setResult(desc);\n String link = getUrl();\n if (!link.startsWith(\"http://\") && !link.startsWith(\"https://\") && !link.startsWith(\"ftp://\")) {\n Package pkg = getParentPackage();\n RepoSource src = pkg.getParentSource();\n if (src == null) {\n monitor.setResult(\"Internal error: no source for archive %1$s\", name);\n return null;\n }\n String repoXml = src.getUrl();\n int pos = repoXml.lastIndexOf('/');\n String base = repoXml.substring(0, pos + 1);\n link = base + link;\n }\n if (forceHttp) {\n link = link.replaceAll(\"https://\", \"http://\");\n }\n int pos = link.lastIndexOf('/');\n String base = link.substring(pos + 1);\n File tmpFolder = getTempFolder(osSdkRoot);\n if (!tmpFolder.isDirectory()) {\n if (tmpFolder.isFile()) {\n deleteFileOrFolder(tmpFolder);\n }\n if (!tmpFolder.mkdirs()) {\n monitor.setResult(\"Failed to create directory %1$s\", tmpFolder.getPath());\n return null;\n }\n }\n File tmpFile = new File(tmpFolder, base);\n if (tmpFile.exists()) {\n if (tmpFile.length() == getSize() && fileChecksum(tmpFile, monitor).equalsIgnoreCase(getChecksum())) {\n return tmpFile;\n }\n deleteFileOrFolder(tmpFile);\n }\n if (fetchUrl(tmpFile, link, desc, monitor)) {\n return tmpFile;\n } else {\n deleteFileOrFolder(tmpFile);\n return null;\n }\n }", "public boolean downloadFile(String url)\n\t{\n\t\tString filepath=null;\n\t\t\n\t\tHttpClient httpClient=new HttpClient();\n\t\n\t\t//set overtime of request to http-5000ms\n\t\thttpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);\n\t\t\n\t\tPostMethod postMethod=new PostMethod(url);\n\t\t//PostMethod postMethod=new PostMethod(\"http://weibo.com/\");\n\t\t//NameValuePair[] postData=new NameValuePair[2];\n\t\t//postData[0]=new NameValuePair(\"loginName\",\"379045776@qq.com\");\n\t\t//postData[1]=new NameValuePair(\"loginPswd\",\"iamyours\");\n\t\t//postMethod.addParameters(postData);\n\t\tint statusCode;\n\t\t/*try {\n\t\t\tstatusCode = httpClient.executeMethod(postMethod);\n\t\t} catch (HttpException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}*/\n\t\t//build get method\n\t\t//GetMethod getMethod=new GetMethod(url);\n\t\t//set overtime of request to get-5000ms\n\t\t//getMethod.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, 50000);\n\t\t//retry machine\n\t\t//getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,new DefaultHttpMethodRetryHandler());\n\t\t//execute get request\n\t\tString[] li=null;\n\t\ttry\n\t\t{ \n\t\t statusCode=httpClient.executeMethod(postMethod);\n\t\t\t//judge status code\n\t\t\tif(statusCode!=HttpStatus.SC_OK)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Method failed:\"+postMethod.getStatusLine());\n\t\t\t\tfilepath=null;\n\t\t\t}\n\t\t //success, process the response froom http\n\t\t\tbyte[] responseBody=postMethod.getResponseBody();\n\t\t\tfilepath=\"test\\\\\"+getFileNameByUrl(url,postMethod.getResponseHeader(\"Content-Type\").getValue());\n\t\t\t\n\t\t\tString entity=new String(responseBody,\"UTF-8\");\n\t\t\tif(entity.indexOf(\"{\\\"pid\\\":\\\"pl_weibo_feedlist\\\"\")==-1)\n\t\t\t\treturn false;\n\t\t\tString feed_list=entity.substring(entity.indexOf(\"{\\\"pid\\\":\\\"pl_weibo_feedlist\\\"\"));\n\t\t \n feed_list=feed_list.substring(0,feed_list.indexOf(\")</script>\"));\n FeedList fl=JSON.parseObject(feed_list,FeedList.class);\n \n String aResult=fl.getHtml();\n /*\n String plun=fl.getHtml().toString();\n String[] l=plun.split(\"\\\" action-type=\\\"login\\\">评论\");\n li=new String[l.length-1];\n for(int i=0;i<l.length-1;i++)\n { \n \tli[i]=l[i].substring(l[i].lastIndexOf(\"<a href=\\\"\")+9);\n \tSystem.out.println(li[i]);\n }\n \n */\n \n \n\t\t\tsaveToLocal(aResult.getBytes(),filepath);\n\t\t}catch(HttpException e)\n\t\t{\n\t\t\t//proposal incorrect || content of response has erros\n\t\t\tSystem.out.println(\"Please check out your provided http address!\");\n\t\t\te.printStackTrace();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\t//erros in your connection\n\t\t\te.printStackTrace();\n\t\t}finally\n\t\t{\n\t\t //release connection\n\t\t\t//getMethod.releaseConnection();\n\t\t\tpostMethod.releaseConnection();\n\t\t}\n\t\treturn true;\n\t}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void retrieveFile(String fileName, String ext);", "void mo54428b(DownloadTask downloadTask);", "private static URL getDeployableXmlUrl(Class<?> clazz)\n {\n // Initialize\n StringBuffer urlString = new StringBuffer();\n\n // Assemble filename in form \"fullyQualifiedClassName\"\n urlString.append(clazz.getName());\n\n // Make a String\n String flatten = urlString.toString();\n\n // Adjust for filename structure instead of package structure\n flatten = flatten.replace('.', '/');\n\n // Append Suffix\n flatten = flatten + DEFAULT_SUFFIX_DEPLOYABLE_XML;\n\n // Get URL\n URL url = Thread.currentThread().getContextClassLoader().getResource(flatten);\n assert url != null : \"URL was not found for \" + flatten;\n \n // Return\n return url;\n }", "private void downFile(HttpServletRequest req, HttpServletResponse res, String file_path ,String file_id, String file_name) throws Exception{\n\t\tSystem.out.println(file_path);\n\t\tSystem.out.println(file_id);\n\t\tSystem.out.println(file_name);\n\t\tFile file = null;\n\t\tBufferedInputStream fin = null;\n\t\tBufferedOutputStream outs = null;\n\ttry {\n\n\t\tfile = new File(file_path + \"\\\\\" + file_id);\n\t // ���� ����\n\t int filelength = (int) file.length();\n\t byte[] bytestream = new byte[2048];\n\t int read = 0;\n\t \n\t if(!file.exists()){\n\t \tthrow new Exception(\"mis.file.noexist\");\n\t }\n\t\t\n\t fin = new BufferedInputStream(new FileInputStream(file));\n\t outs = new BufferedOutputStream(res.getOutputStream());\n\t \n\t\n\t\tString clientHead = req.getHeader(\"User-Agent\");\n\t\t\n\t\tres.setContentLength(filelength);\n\t\tif (clientHead.indexOf(\"MSIE 5.5\") > -1)\n\t\t{\t\t\t\n\t\t\tres.setContentType(\"application/x-filler; charset=EUC-KR\");\n\t\t\tres.setHeader(\"Content-Type\", \"doesn/matter;\");\n\t\t\tres.setHeader(\"Content-Disposition\", \"filename=\\\"\" + file_name + \"\\\";\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tres.setHeader(\"Content-Type\", \"application/octet-stream;\");\n\t\t\tres.setHeader(\"Content-Disposition\", \"attachment;filename=\\\"\" + file_name + \"\\\";\");\n\t\t}\n\t\tres.setHeader (\"Content-Length\", \"\" + filelength);\n\t\n\t //try {\n\t\tif(filelength>0) {\n\t\t\twhile ((read = fin.read(bytestream)) != -1) {\n\t\t\t\touts.write(bytestream, 0, read);\n\t\t\t}\n\t\t}\n\t \n\t //close\n\t outs.close();\n\t fin.close();\n\t} catch (Exception e) {\n\t\t\n\t} finally {\n\t\tif(outs != null) { try { outs.close(); } catch(Exception e) {} }\n\t\tif(fin != null) { try { fin.close(); } catch(Exception e) {} }\n\t}\n}", "private String downloadFile(String theTicker) throws MalformedURLException, IOException\r\n {\r\n String preUrl = \"http://chart.finance.yahoo.com/table.csv?s=\" + theTicker + \"&a=3&b=12&c=1996&d=0&e=31&f=2017&g=d&ignore=.csv\";\r\n String fileLocString = \"StockFiles\\\\\" + theTicker + \".csv\";\r\n\r\n File currentFile = new File (fileLocString); // creates the file object to be used two lines down\r\n URL currentUrl = new URL (preUrl); //creates a url to use on next line\r\n FileUtils.copyURLToFile(currentUrl, currentFile); //actually downloads the file\r\n \r\n \r\n return fileLocString;\r\n }", "public static void convert(String filename1) throws IOException {\n\t\tFile myfile = new File(\"C:\\\\Users\\\\user\\\\Desktop\\\\1000_web_htm_archive\\\\1000_web_htm_archive\\\\\" + filename1); //location of html pages\r\n\t\torg.jsoup.nodes.Document doc = Jsoup.parse(myfile, \"UTF-8\");\r\n\t\tString text = doc.text();\r\n\r\n\t\t// Save the content of htm file into text(.txt) file \r\n\t\tString modifiedfilename = filename1.replaceFirst(\"[.][^.]+$\", \"\");\r\n\t\tPrintWriter out = new PrintWriter(\r\n\t\t\t\t\"C:\\\\Users\\\\user\\\\Desktop\\\\Files_Converted\\\\\" + modifiedfilename + \".txt\"); \r\n\t\tout.println(text);\r\n\t\tout.close();\r\n\t}", "private void downloadLibrary(String fileName) throws Exception {\n File f = new File(fileName);\n if (f.exists()) {\n f.delete();\n }\n FileOutputStream fos = new FileOutputStream(f);\n\n if (m_applet.libURL==null) {\n throw new Exception(\"Library URL is null\");\n }\n\n URL u = new URL(m_applet.libURL);\n HttpURLConnection huc = (HttpURLConnection) u.openConnection();\n huc.setRequestMethod(\"GET\");\n huc.connect();\n InputStream is = huc.getInputStream();\n int code = huc.getResponseCode();\n int stotal = 0;\n if (code >= 200 && code < 300) {\n byte[] buf = new byte[2400];\n int l = 0;\n while ((l = is.read(buf))>0) {\n fos.write(buf,0,l);\n stotal += l;\n }\n }\n fos.close();\n huc.disconnect();\nSystem.err.println(\"Downloaded \" + stotal + \" bytes, saved as \" + fileName);\n }", "public void addOfficialFileWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), OFFICIALFILEWEBPAGE, value);\r\n\t}", "public static void download(String args,String file) throws IOException {\n\t\tResponse resultImageResponse;\n\t\t\n\t\t// output here\n\t\tFileOutputStream out;\n\t\ttry {\n//\t\t\tresultImageResponse = Jsoup.connect(args)\n//\t\t\t\t\t.userAgent(\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31\")\n//\t\t\t\t\t//.userAgent(\"Opera/9.80 (Android 2.3.4; Linux; Opera Mobi/build-1107180945; U; en-GB) Presto/2.8.149 Version/11.10\")\n//\t\t\t\t\t.header(\"Accept\", \"text/html\")\n//\t\t.header(\"Accept-Charset\", \"utf-8\")\n//\t\t.header(\"Accept-Encoding\", \"gzip\")\n//\t\t.header(\"Accept-Language\", \"en-US,en\")\n//\t\t\t\t\t.ignoreContentType(true)\n//\t\t\t\t\t.execute();\n\t\t\tConnection conn = Jsoup.connect(args);\n\t\t\t\n\t\t\tconn.header(\"Accept\", \"text/html\");\n\t\t\tconn.header(\"Accept-Charset\", \"utf-8\");\n\t\t\tconn.header(\"Accept-Encoding\", \"gzip\");\n\t\t\tconn.header(\"Accept-Language\", \"en-US,en\");\n\t\t\tconn.userAgent(\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.160 Safari/537.22\");\n\t\t\tconn.ignoreContentType(true);\n\t\t\tresultImageResponse = conn.execute();\n\t\t\tout = (new FileOutputStream(new java.io.File(file)));\n\t\t\tout.write(resultImageResponse.bodyAsBytes()); \n\t\t\t// resultImageResponse.body() is where the image's contents are.\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t}", "void downloadFeature(File file, int id) throws IOException, SQLException;", "private void manageDownloadZipFile(HttpServletRequest request, HttpServletResponse response, String folderName, String exportFileName) {\n\t\tlogger.debug(\"IN\");\n\t\ttry {\n\t\t\tString fileExtension = \"zip\";\n\t\t\tmanageDownload(exportFileName, fileExtension, folderName, response, false);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error while downloading importation log file\", e);\n\t\t} finally {\n\t\t\tlogger.debug(\"OUT\");\n\t\t}\n\t}", "String wget(String url);", "private File downloadSystemFile( final File workDir, final PlatformDefinition definition, final Boolean overwrite,\n final boolean downloadFeeback )\n throws PlatformException\n {\n return download(\n workDir, definition.getSystemPackage(), definition.getSystemPackageName(), overwrite, false, downloadFeeback\n );\n }", "public static File getDownloadingFile() {\n\t\treturn downloadingFile;\n\t}", "private static void addDefaultWebXml(IFacetedProjectWorkingCopy fpjwc, IDataModel dm)\n \t\tthrows CoreException {\n \t\tIPath webinfPath = fpjwc.getProjectLocation().append(\"docroot/WEB-INF\");\n \n \t\tif (ProjectUtil.isExtProject(fpjwc.getProject()) || fpjwc.getProjectLocation().lastSegment().endsWith(\"-ext\")) {\n \t\t\tfpjwc.getProjectLocation().append(IPluginFacetConstants.EXT_PLUGIN_SDK_CONFIG_FOLDER);\n \t\t}\n \n \t\tif (webinfPath.toFile().exists()) {\n \t\t\tFile webXml = webinfPath.append(\"web.xml\").toFile();\n \n \t\t\tif (!webXml.exists()) {\n \t\t\t\tProjectUtil.setGenerateDD(dm, false);\n \n \t\t\t\tProjectUtil.createDefaultWebXml(webXml);\n \n \t\t\t\tIProject project = fpjwc.getProject();\n \n \t\t\t\tif (project != null) {\n \t\t\t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, null);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "String getFileExtension();", "public SortedMap<String, File> download() {\n Set<String> versionsToCheck = getAvailableVersions();\n\n SortedMap<String, File> versionMap = new TreeMap<>(new VersionStringComparator());\n\n System.out.print(ansi().saveCursorPosition());\n\n int i = 1;\n for (String ver : versionsToCheck) {\n String filename = \"checkstyle-\" + ver + \".jar\";\n File f = new File(csBinaries, filename);\n if (!f.exists()) {\n if (print)\n System.out.print(ansi()\n .eraseLine()\n .restoreCursorPosition()\n .a(MessageFormat.format(res.getString(\"downloadprogmsg\"),\n i++, versionsToCheck.size(), ver)));\n try {\n FileUtils.copyURLToFile(new URL(res.getString(\"mavenCheckstyleURL\") + ver + \"/\" + filename), f);\n versionMap.put(ver, f);\n } catch (IOException e) {\n System.err.print(\"Failed: \");\n System.err.println(e.getMessage());\n System.err.println(\"Skipping...\");\n }\n } else {\n versionMap.put(ver, f);\n }\n }\n\n if (print)\n System.out.println();\n\n return versionMap;\n }", "String getWiki();", "@RequestMapping (value=\"/DownloadFileNote/{filename}\", method=RequestMethod.GET )\r\n public void doDownload(HttpServletRequest request,\r\n HttpServletResponse response, @PathVariable(value = \"filename\") String fileName ) throws IOException {\n ServletContext context = request.getServletContext();\r\n String appPath = context.getRealPath(\"\");\r\n System.out.println(\"filepath = \" + dirNotes);\r\n\r\n // construct the complete absolute path of the file\r\n\r\n File downloadFile = new File(dirNotes+fileName);\r\n FileInputStream inputStream = new FileInputStream(downloadFile);\r\n\r\n // get MIME type of the file\r\n String mimeType = context.getMimeType(dirNotes+fileName);\r\n if (mimeType == null) {\r\n // set to binary type if MIME mapping not found\r\n mimeType = \"application/octet-stream\";\r\n }\r\n System.out.println(\"MIME type: \" + mimeType);\r\n\r\n // set content attributes for the response\r\n response.setContentType(mimeType);\r\n response.setContentLength((int) downloadFile.length());\r\n\r\n // set headers for the response\r\n String headerKey = \"Content-Disposition\";\r\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\",\r\n downloadFile.getName());\r\n response.setHeader(headerKey, headerValue);\r\n\r\n // get output stream of the response\r\n OutputStream outStream = response.getOutputStream();\r\n\r\n byte[] buffer = new byte[BUFFER_SIZE];\r\n int bytesRead = -1;\r\n\r\n // write bytes read from the input stream into the output stream\r\n while ((bytesRead = inputStream.read(buffer)) != -1) {\r\n outStream.write(buffer, 0, bytesRead);\r\n }\r\n\r\n inputStream.close();\r\n outStream.close();\r\n }", "public static void main(String args[]) {\n\t\t GetXMLEncoding t = new GetXMLEncoding();\n\t\t String xml = t.getContent(\"http://news.163.com/special/00011K6L/rss_newstop.xml\");\n//\t System.out.println(xml);\n//\t System.out.println();\n\t if(t.checkXml(xml))\n\t System.out.println(t.getXmlencoding());\n\t }", "public void downloadCompleted(File f);", "public void onDownloadSuccess(String fileInfo);", "default String getContentType() {\n return \"application/octet-stream\";\n }", "@Override\r\n\tpublic boolean downloadFile() throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \" + getClass().getName() + \":download()\");\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tgetFileData(0, \"\");\r\n\t\t\tdisconnect();\r\n\t\t\tif (stop) {\r\n\t\t\t\tthrow new FileSystemUtilException(\"999\");\r\n\t\t\t}\r\n\t\t\tFileSystemUtilsPlugin zu = new FileSystemUtilPluginFactory().getFileUtils(FileSystemTypeConstants.ZIP);\r\n\t\t\tif (zu.isZip(localFilePath)) {\r\n\r\n\t\t\t\t// unzip the localfilepath (a common method at import util level\r\n\t\t\t\t// can be used)\r\n\t\t\t\t// rename the extracted file to localfilepath+\".txt\r\n\t\t\t\t// delete the localfilepath\r\n\t\t\t}\r\n\t\t\tzu = null;\r\n\t\t\tlogger.debug(\"End: \" + getClass().getName() + \":download()\");\r\n\t\t\treturn true;\r\n\t\t} catch (FileSystemUtilException e) {\r\n\t\t\tdisconnect();\r\n\t\t\tlogger.info(new Date() + \":: Unable to download with parameters \" + \", username= \" + username\r\n\t\t\t\t\t+ \" , password = \" + password + \" , remotefilePath = \" + remoteFilePath + \", \" + \"localFilePath = \"\r\n\t\t\t\t\t+ localFilePath + \" , host= \" + hostname + \" and port =\" + port);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "@Override\n public String getContentType() {\n return command.dirDeploy ? null : \"application/zip\";\n }", "@Override\n\tpublic byte[] fetchFile(String fileName) throws RemoteException {\n return null;\n\n\t}", "public String getFileExtension();", "private void setDownloadButton() throws FileNotFoundException {\r\n Button downloadButton;\r\n if (parent.getParentUI().language.equals(\"Deutsch\")) {\r\n downloadButton = new Button(\"Paket Download\");\r\n } else {\r\n downloadButton = new Button(\"Download Package\");\r\n }\r\n downloadButton.setWidth(\"100%\");\r\n downloadButton.addStyleName(ValoTheme.BUTTON_SMALL);\r\n downloadButton.addStyleName(ValoTheme.LABEL_SMALL);\r\n buttonLayout.addComponent(downloadButton);\r\n buttonLayout.setComponentAlignment(downloadButton, Alignment.TOP_CENTER);\r\n\r\n // get base id of the object in question\r\n String sourceDirPath = valuesMapLocal.get(\"localpath\");\r\n\r\n // zip on the fly\r\n StreamResource myResource4 =\r\n new StreamResource(\r\n new StreamSource() {\r\n private static final long serialVersionUID = 1L;\r\n final ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n\r\n @Override\r\n public InputStream getStream() {\r\n Path directory2 = Paths.get(sourceDirPath);\r\n try (ZipOutputStream zipStream = new ZipOutputStream(out)) {\r\n Files.walk(directory2)\r\n .filter(path -> !Files.isDirectory(path))\r\n .forEach(\r\n path -> {\r\n try {\r\n addToZipStream(\r\n path, zipStream, sourceDirPath);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n });\r\n } catch (IOException e) {\r\n System.out.println(\"Error while zipping.\" + e);\r\n }\r\n return new ByteArrayInputStream(out.toByteArray());\r\n }\r\n },\r\n valuesMapLocal.get(\"digitalObjectId\") + \".zip\");\r\n\r\n FileDownloader fileDownloader3 = new FileDownloader(myResource4);\r\n fileDownloader3.extend(downloadButton);\r\n\r\n downloadButton.addClickListener(\r\n new Button.ClickListener() {\r\n private static final long serialVersionUID = 1L;\r\n\r\n public void buttonClick(ClickEvent event) {\r\n parent.getParentUI().log(\"Click on package download button\");\r\n }\r\n });\r\n }", "public File getFile(String url){\n String filename=String.valueOf(url.hashCode());\n //Another possible solution (thanks to grantland)\n //String filename = URLEncoder.encode(url);\n File f = new File(cacheDir, filename);\n return f;\n \n }" ]
[ "0.62936896", "0.6165052", "0.5876829", "0.56793505", "0.5671341", "0.5533413", "0.5529583", "0.5520333", "0.5499506", "0.5499388", "0.5406445", "0.5371037", "0.5280102", "0.5250585", "0.52436364", "0.5223598", "0.52111846", "0.5195117", "0.5189536", "0.51881725", "0.5176736", "0.51767313", "0.5163725", "0.51501226", "0.5146155", "0.5139733", "0.5118241", "0.511669", "0.5114377", "0.5083888", "0.507491", "0.5073896", "0.5065206", "0.5059454", "0.50430804", "0.5037212", "0.5012643", "0.5011456", "0.5011025", "0.50004727", "0.49849442", "0.49791858", "0.4970725", "0.49701676", "0.4951684", "0.49512953", "0.49497315", "0.49385127", "0.49359888", "0.49294886", "0.49293467", "0.49255154", "0.49154663", "0.49142003", "0.4905233", "0.49051762", "0.49047264", "0.49040323", "0.4903439", "0.48892865", "0.4870713", "0.48678726", "0.4864023", "0.48509383", "0.48268348", "0.48218033", "0.48197296", "0.4813881", "0.48136964", "0.48126194", "0.48115718", "0.48053414", "0.48049125", "0.47995436", "0.47915438", "0.47910646", "0.4787426", "0.47740844", "0.47658974", "0.47542372", "0.4752838", "0.47507414", "0.47391653", "0.47390288", "0.4733073", "0.47302186", "0.47277978", "0.47271827", "0.47246405", "0.4720087", "0.47200653", "0.4714216", "0.4708152", "0.47009185", "0.46947294", "0.4692217", "0.46901685", "0.46876585", "0.4681758", "0.46801093" ]
0.52574575
13
private static final byte[] Bry_windows_zip = ByteAry_.new_ascii_("windows.zip"); static final String Src_imageMagick = "ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/";
public Xoi_cmd_imageMagick_download(Gfo_usr_dlg usr_dlg, Gfui_kit kit, Io_url trg) {this.Ctor(usr_dlg, kit); this.trg = trg;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public byte Async_init() {\n\t\tString src = \"http://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/ImageMagick-6.8.8-1-Q16-x86-windows.zip\";\r\n\t\tthis.Init(\"downloading\", src, trg);\r\n\t\treturn super.Async_init();\r\n\t}", "private static final byte[] pkgload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 0, 0,\n\t\t\t\t0, -91, 42, 42, -128, -128, -128, 94, 94, 94, -1, -1, -1, -1,\n\t\t\t\t-1, 0, -64, -64, -64, 94, 24, 24, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32,\n\t\t\t\t71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0, 0,\n\t\t\t\t16, 0, 16, 0, 0, 4, 88, 16, 73, 32, 103, -67, 8, -128, 64, 51,\n\t\t\t\t-17, -43, 22, -116, -38, 72, 98, -101, 38, 12, 37, 120, 1, 66,\n\t\t\t\t60, -60, 84, 44, -124, -33, -38, 18, -4, 45, -110, 63, 78, -63,\n\t\t\t\t64, -16, -91, 14, -100, -49, 112, 120, -53, 108, -112, 74, -61,\n\t\t\t\t-14, 102, -85, 90, -103, 8, 1, 111, -53, 45, 2, 10, 84, -62,\n\t\t\t\t82, 74, 30, -62, -102, -38, -79, 90, 0, -109, 104, -53, -16,\n\t\t\t\t66, -37, 77, -120, -109, -39, 21, -85, -98, 29, 1, 0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] pkg_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -1,\n\t\t\t\t-6, -51, 0, 0, 0, -91, 42, 42, -128, -128, -128, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100,\n\t\t\t\t101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4,\n\t\t\t\t1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 64, 8, -86,\n\t\t\t\t-79, -48, 110, -123, 32, 32, -99, 110, -118, 93, 41, -57, -34,\n\t\t\t\t54, 13, 83, 88, 61, -35, -96, 6, -21, 37, -87, 48, 27, 75, -23,\n\t\t\t\t-38, -98, -26, 88, 114, 120, -18, 75, -102, 96, 7, -62, 16, 85,\n\t\t\t\t-116, 39, -38, -121, -105, 44, 46, 121, 68, -122, 39, -124,\n\t\t\t\t-119, 72, 47, 81, -85, 84, -101, 0, 0, 59 };\n\t\treturn data;\n\t}", "private static boolean loadFromZip(android.content.Context r8, java.io.File r9, java.io.File r10, java.lang.String r11) {\n /*\n r3 = 0;\n r0 = 1;\n r1 = 0;\n r4 = r9.listFiles();\t Catch:{ Exception -> 0x0013 }\n r5 = r4.length;\t Catch:{ Exception -> 0x0013 }\n r2 = r1;\n L_0x0009:\n if (r2 >= r5) goto L_0x0017;\n L_0x000b:\n r6 = r4[r2];\t Catch:{ Exception -> 0x0013 }\n r6.delete();\t Catch:{ Exception -> 0x0013 }\n r2 = r2 + 1;\n goto L_0x0009;\n L_0x0013:\n r2 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r2);\n L_0x0017:\n r4 = new java.util.zip.ZipFile;\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r2 = r8.getApplicationInfo();\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r2 = r2.sourceDir;\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r4.<init>(r2);\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2.<init>();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"lib/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.append(r11);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"libtmessages.27.so\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r4.getEntry(r2);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n if (r2 != 0) goto L_0x0084;\n L_0x004a:\n r0 = new java.lang.Exception;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2.<init>();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"Unable to find file in apk:lib/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.append(r11);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"tmessages.27\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r0.<init>(r2);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n throw r0;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n L_0x0072:\n r0 = move-exception;\n r2 = r3;\n r3 = r4;\n L_0x0075:\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ all -> 0x0102 }\n if (r2 == 0) goto L_0x007d;\n L_0x007a:\n r2.close();\t Catch:{ Exception -> 0x00eb }\n L_0x007d:\n if (r3 == 0) goto L_0x0082;\n L_0x007f:\n r3.close();\t Catch:{ Exception -> 0x00f0 }\n L_0x0082:\n r0 = r1;\n L_0x0083:\n return r0;\n L_0x0084:\n r3 = r4.getInputStream(r2);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2.<init>(r10);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r5 = 4096; // 0x1000 float:5.74E-42 double:2.0237E-320;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n L_0x0091:\n r6 = r3.read(r5);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n if (r6 <= 0) goto L_0x00a3;\n L_0x0097:\n java.lang.Thread.yield();\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r7 = 0;\n r2.write(r5, r7, r6);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n goto L_0x0091;\n L_0x009f:\n r0 = move-exception;\n r2 = r3;\n r3 = r4;\n goto L_0x0075;\n L_0x00a3:\n r2.close();\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = 1;\n r5 = 0;\n r10.setReadable(r2, r5);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = 1;\n r5 = 0;\n r10.setExecutable(r2, r5);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = 1;\n r10.setWritable(r2);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = r10.getAbsolutePath();\t Catch:{ Error -> 0x00d5 }\n java.lang.System.load(r2);\t Catch:{ Error -> 0x00d5 }\n r2 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x00d5 }\n r5 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x00d5 }\n init(r2, r5);\t Catch:{ Error -> 0x00d5 }\n r2 = 1;\n nativeLoaded = r2;\t Catch:{ Error -> 0x00d5 }\n L_0x00c5:\n if (r3 == 0) goto L_0x00ca;\n L_0x00c7:\n r3.close();\t Catch:{ Exception -> 0x00e6 }\n L_0x00ca:\n if (r4 == 0) goto L_0x0083;\n L_0x00cc:\n r4.close();\t Catch:{ Exception -> 0x00d0 }\n goto L_0x0083;\n L_0x00d0:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x0083;\n L_0x00d5:\n r2 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r2);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n goto L_0x00c5;\n L_0x00da:\n r0 = move-exception;\n L_0x00db:\n if (r3 == 0) goto L_0x00e0;\n L_0x00dd:\n r3.close();\t Catch:{ Exception -> 0x00f5 }\n L_0x00e0:\n if (r4 == 0) goto L_0x00e5;\n L_0x00e2:\n r4.close();\t Catch:{ Exception -> 0x00fa }\n L_0x00e5:\n throw r0;\n L_0x00e6:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x00ca;\n L_0x00eb:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\n goto L_0x007d;\n L_0x00f0:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\n goto L_0x0082;\n L_0x00f5:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x00e0;\n L_0x00fa:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x00e5;\n L_0x00ff:\n r0 = move-exception;\n r4 = r3;\n goto L_0x00db;\n L_0x0102:\n r0 = move-exception;\n r4 = r3;\n r3 = r2;\n goto L_0x00db;\n L_0x0106:\n r0 = move-exception;\n r2 = r3;\n goto L_0x0075;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.messenger.NativeLoader.loadFromZip(android.content.Context, java.io.File, java.io.File, java.lang.String):boolean\");\n }", "private static final byte[] pkgclose_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 0, 0,\n\t\t\t\t0, -91, 42, 42, -128, -128, -128, 94, 94, 94, 94, 24, 24, 0, 0,\n\t\t\t\t-128, -1, -1, -1, -1, -1, 0, -64, -64, -64, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t33, -1, 11, 78, 69, 84, 83, 67, 65, 80, 69, 50, 46, 48, 3, 1,\n\t\t\t\t0, 0, 0, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104,\n\t\t\t\t32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 5, 0, 44, 0, 0, 0,\n\t\t\t\t0, 16, 0, 16, 0, 0, 4, 75, -80, 72, 32, 103, -67, 5, -128, 64,\n\t\t\t\t51, -17, -43, 22, -116, -38, 72, 98, -101, 38, 12, 37, 120, 1,\n\t\t\t\t66, 60, -60, 110, -8, -83, 45, 106, 126, 123, -35, 18, 31,\n\t\t\t\t-115, 80, 51, -39, 0, 1, -120, -92, 18, -47, 17, 29, -103, 74,\n\t\t\t\t36, 72, -13, -124, 34, -103, 40, 77, 52, -118, -103, 36, -91,\n\t\t\t\t-33, 110, 6, -6, -59, 118, -81, 75, 115, 118, 40, -116, 0, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 1, 0, 44, 7, 0, 7, 0, 9, 0, 9, 0, 0, 4,\n\t\t\t\t22, 16, -56, 73, -111, -67, 72, -26, 11, 114, -33, -97, 102,\n\t\t\t\t125, -34, -72, -107, 100, 39, 98, 30, 69, 69, 0, 59 };\n\t\treturn data;\n\t}", "public ImageFile(String filename) throws ImageException, FileNotFoundException, IOException {\r\n\tFile file = new File(filename);\r\n\tif (!file.exists()){\r\n\t\tthrow new ImageException(\"image file '\"+filename+\"' not found\");\r\n\t}\r\n\ttry {\r\n\t\t//\r\n\t\t// try native format\r\n\t\t//\r\n\t\tloadNativeFormat(filename);\r\n\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully as native format\");\r\n\t}catch (Exception e){\r\n\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), exception loading native format, trying TIFF, exception=\"+e.getMessage());\r\n\t\ttry {\t\t\t\t\r\n\t\t\t// try TIFF format\r\n\t\t\tloadTIFFFormat(new FileTiffInputSource(filename));\r\n\t\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully as TIFF\");\r\n\t\t\treturn;\r\n\t\t}catch (Exception e2){\r\n\t\t\tSystem.out.println(\"ImageFile:ImageFile(\"+filename+\"), exception loading TIFF, trying zip format, exception=\"+e2.getMessage());\r\n\t\t\tbyte buffer[] = new byte[65536];\r\n\t\t\tFileInputStream fis = new FileInputStream(filename);\r\n\t\t\ttry {\r\n\t\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\t\t\tint numBytesRead = 0;\r\n\t\t\t\twhile ((numBytesRead = fis.read(buffer)) > 0){\r\n\t\t\t\t\tbos.write(buffer,0,numBytesRead);\r\n\t\t\t\t}\r\n\t\t\t\tbyte imageData[] = bos.toByteArray();\r\n\t\t\t\tbyte entries[][] = getZipFileEntries(imageData);\r\n\t\t\t\tif (entries!=null){\r\n\t\t\t\t\tVCImage vcImage = getVCImageFromZSeries(entries);\r\n\t\t\t\t\tcreateFromVCImage(vcImage);\r\n\t\t\t\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new ImageException(\"Image format not recognized for file '\"+filename+\"'\");\r\n\t\t\t\t}\r\n\t\t\t}finally {\r\n\t\t\t\tif (fis!=null){\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n}", "@Test\n public void testDERIVATIVE_EXTRACT_CRC___() throws IOException {\n \n\t Configuration.CRC=true;\n\t Configuration.EXTRACT=true;\n\t Configuration.DERIVATIVE_EXTRACT_CRC=true;\n\t Configuration.COMPRESS=true;\n if(Configuration.CRC && Configuration.EXTRACT && Configuration.DERIVATIVE_EXTRACT_CRC && Configuration.COMPRESS) {\n \n ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/Teste.txt.zip\")));\n zos.putNextEntry(new ZipEntry(homeDir + \"/files/Teste.txt.zip\"));\n zos.write(new byte[32]);\n ZipInputStream zis = new ZipInputStream(new FileInputStream(new File(\n homeDir + \"/files/Teste.txt.zip\")));\n ZipEntry ze = zis.getNextEntry();\n assertTrue(ze != null);\n zis.available();\n zos.close();\n }\n }", "default String getFileExtension() {\n return \"bin\";\n }", "public static void main(String[] args){\n\t\tString path = FileLogic.createDateSplitDirYYYYMMDDHH(\"d:/test\");\n\t\tNetworkUtil.downloadImage(\"http://www.51homevip.com/portal/web/images/home-top.png\", path + \"/gg.png\");\n\t}", "private void makeBinariesExecutable() throws IOException {\n\t\tif (!isWindows()) {\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tFile binDir = new File(FileLocator.toFileURL(FileLocator.find(bundle, new Path(\"bin\"), null)).getPath());\n\t\t\tnew File(binDir, \"align-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"filter-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"strip-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"shape-it\").setExecutable(true);\n\t\t}\n\t}", "private CompressionTools() {}", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\r\n// /**Any -> TXT **/\r\n//\t\t\r\n//\t\tgetTXTfromAny(\"./images/DJI_0707.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0708.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0709.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0710.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0711.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0712.txt\");\r\n\t\t\r\n\t\t/**Any -> BMP **/\r\n//\t\tgetBMPfromAny(\"./images/DJI_0707.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0708.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0709.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0710.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0711.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0712.JPG\");\r\n\t\t\r\n//\t\t/**Any -> JPG **/\r\n\t\tgetJPGfromAny(\"./images/DJI_0707.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0708.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0709.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0710.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0711.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0712.txt\");\r\n\r\n\t}", "private ImageUtils() {}", "private static final byte[] pkgclose_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 96,\n\t\t\t\t96, 96, -96, -96, -96, -33, -33, -33, 94, 94, 94, 94, 24, 24,\n\t\t\t\t-128, -128, -128, -1, -1, -1, -128, -128, -128, -112, -112,\n\t\t\t\t-112, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101, 32,\n\t\t\t\t119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0,\n\t\t\t\t3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 4, 75, 112, 72, 32, 103,\n\t\t\t\t-67, 3, -128, 64, 51, -17, -43, 22, -116, -38, 72, 98, -101,\n\t\t\t\t38, 104, 41, 54, 9, 48, 16, -69, -98, -54, 114, -88, -7, -23,\n\t\t\t\t-32, -108, 110, -123, -96, 80, -24, -29, 4, 10, -120, -92, 18,\n\t\t\t\t81, -104, -112, -114, 76, 37, -78, -23, 3, 38, -89, 87, 20, 0,\n\t\t\t\t121, -107, -46, -72, 88, -26, 55, -38, -91, 98, -72, 75, -79,\n\t\t\t\t107, -56, -114, 0, 0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] xfj_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, -1, 0,\n\t\t\t\t0, 0, 0, 102, 0, 0, 65, -52, -52, -1, -1, -1, -1, -1, -1, -52,\n\t\t\t\t-35, 0, 0, 102, 102, -52, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33,\n\t\t\t\t-2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73,\n\t\t\t\t77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0, 0, 16, 0,\n\t\t\t\t16, 0, 0, 4, 92, 16, 73, 9, -24, -84, 51, 99, 84, 119, -106, 1,\n\t\t\t\t16, -124, -31, 7, 6, 2, -112, 10, -23, 24, 76, -63, 48, -90,\n\t\t\t\t-86, -8, 34, 119, 64, 12, -78, 27, -53, 56, 24, 97, -57, -29,\n\t\t\t\t13, 95, 55, 28, -95, 48, 100, 46, -111, -97, 0, 115, 122, 76,\n\t\t\t\t26, -82, -40, -31, 18, -104, -63, 94, -117, 50, -62, -31, 32,\n\t\t\t\t25, 123, 125, -53, 37, 25, -31, 53, 104, -99, 99, -55, 21, 113,\n\t\t\t\t-8, -14, -58, 107, -74, -95, -21, -5, -52, 77, -128, 17, 0, 59 };\n\t\treturn data;\n\t}", "public ImageHandler() {\n if (System.getProperty(\"os.name\").toLowerCase().contains(\"win\")) {\n this.OS = \"windows/\";\n } else {\n this.OS = \"mac/\";\n }\n }", "public String\n getProgram() \n {\n if(PackageInfo.sOsType == OsType.Windows) \n return (\"winimage.exe\");\n return super.getProgram();\n }", "public void mo3106a(boolean z) {\n this.f2613i = this.f2612h.name();\n int i = this.f2605a;\n if (i != -1) {\n if (i != 1) {\n String str = \"UTF-16\";\n if (i == 2) {\n this.f2607c = ((String) this.f2606b).getBytes(Charset.forName(str));\n return;\n } else if (i == 3) {\n this.f2607c = (byte[]) this.f2606b;\n return;\n } else if (i == 4) {\n this.f2607c = this.f2606b.toString().getBytes(Charset.forName(str));\n return;\n } else if (i != 5) {\n return;\n }\n }\n if (z) {\n Bitmap bitmap = (Bitmap) this.f2606b;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n bitmap.compress(CompressFormat.PNG, 90, byteArrayOutputStream);\n this.f2607c = byteArrayOutputStream.toByteArray();\n return;\n }\n this.f2608d = (Parcelable) this.f2606b;\n } else if (!z) {\n this.f2608d = (Parcelable) this.f2606b;\n } else {\n throw new IllegalArgumentException(\"Can't serialize Icon created with IconCompat#createFromIcon\");\n }\n }", "public boolean CompressWithLzma(String cmd) {\n Runtime rn=Runtime.getRuntime();\r\n try{\r\n \tSystem.out.println(\"compress, it will take some time\");\r\n \tProcess process = rn.exec(JarPath+\"7za a -t7z \"+cmd);\r\n \tWatchThread wt = new WatchThread(process); \r\n \twt.start(); \r\n \tprocess.waitFor();\r\n \twt.setOver(true); \r\n \twt.join();\r\n }catch(Exception e){\r\n \toutputstr(\"Error: compress \"+cmd);\r\n \treturn false; \r\n } \t\t\r\n\t\treturn true;\r\n\t}", "public void ExtractFileFromJar()\n\t{\n\t\tString thisDir = getClass().getResource(\"\").getPath();\n\t\t\n\t\tif(thisDir.contains(\"file:\")) //Mac system path\n\t\t\tthisDir= thisDir.replace(\"file:\", \"\");\n\t\telse //Windows system path \"/C:/\", we need to get rid of the first '/'\n\t\t\tthisDir= thisDir.substring(1);\n\t\t\n\t\t//System.out.println(\"thisDir is \"+thisDir);\n\t\tString jarPath = thisDir.replace(\"!/data/\", \"\"); //Get path of jar file\n\t\tint lastSlashIndex = jarPath.lastIndexOf(\"/\");\n\t\tjarFileName = new String(jarPath.substring(lastSlashIndex+1));\n\t\tdestDir = thisDir.replace(jarFileName+\"!/data/\", \"\"); //Set destDir as the current folder in which jar file sits\n\n\t\t//Find Jar file\n\t\ttry {\n\t\t\tFile jarFile = new File(jarPath);\n\t\t\tif (jarFile.isDirectory() || !jarFile.exists()) { //If we cant find jar File in this jarPath\n\t\t\t\t//In windows it is like this \"C:/Users/Esheen/Desktop/ConnChem_1.1.0/Simulation/data/\" \n\t\t\t\tFile newJarfile = new File(jarPath);\n\t\t\t\tString parent = newJarfile.getParentFile().getParent();\n\t\t\t\tparent = parent.concat(new String(\"\\\\\"+jarFileName));\n\t\t\t\t\n\t\t\t\tjarPath= new String(parent);\n\t\t\t\t\n\t\t\t} \n\t\t\tjava.util.jar.JarFile jar = new java.util.jar.JarFile(jarPath);\n\t\t\t\n\t\t\t//Unzip database from jar file\n\t\t\tZipEntry entry = jar.getEntry(\"data/chemdb\");\n\t\t\tFile outputFile = new File(destDir, dbFileName);\n\t\t\t\n\t\t\t\tif (entry.isDirectory()) { // if its a directory, create it\n\t\t\t\t\toutputFile.mkdir();\n\t\t\t\t}\n\t\t\t\tInputStream in = jar.getInputStream(entry);\n\t\t\t\tFileOutputStream fos = new java.io.FileOutputStream(outputFile);\n\t\t\t\twhile (in.available() > 0) { // write contents of 'is' to 'fos'\n\t\t\t\t\tfos.write(in.read());\n\t\t\t\t}\n\t\t\t\tfos.close();\n\t\t\t\tin.close();\n\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "ImageTranscoder mo28916a(ImageFormat cVar, boolean z);", "public static void main(String[] x) throws Exception {\n\t\tInputStream is \n\t\t\t= KirimFile.class\n\t\t\t.getResourceAsStream(\"/akb481.jpg\");\n\n\t\t// 2. Buka socket\n\t\tString ipPenerima = \"127.0.0.1\";\n\t\tInteger portPenerima = 10000;\n\t\tSocket s = new Socket(ipPenerima, portPenerima);\n\t\tOutputStream os = s.getOutputStream();\n\t\t\n\t\t// 3. Kirim isi file\n\t\tint data;\n\t\twhile((data = is.read()) != -1){\n\t\t\tos.write(data);\n\t\t}\n\n\t\t// 4. Tutup resources\n\t\tis.close();\n\t\tos.close();\n\t\ts.close();\n\t}", "public static String m58670dY(String str, int i) {\n int i2 = 0;\n AppMethodBeat.m2504i(79319);\n if (str == null || str.length() == 0) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"getIconPath : invalid argument\");\n AppMethodBeat.m2505o(79319);\n return null;\n }\n C5728b c5728b = new C5728b(C34832a.bYG());\n if (!c5728b.exists()) {\n if (!c5728b.dMC().exists()) {\n C5728b dMC = c5728b.dMC();\n C5728b c5728b2 = new C5728b(C5736j.m8649w(dMC.dMD()) + System.currentTimeMillis());\n if (c5728b2.mkdirs()) {\n c5728b2.mo11675o(dMC);\n } else {\n C4990ab.m7413e(\"MicroMsg.AppInfoStorage\", \"mkdir error, %s\", C5736j.m8649w(dMC.dMD()));\n if (i2 == 0) {\n AppMethodBeat.m2505o(79319);\n return null;\n }\n String str2;\n switch (i) {\n case 1:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \".png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 2:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_wm.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 3:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sg.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 4:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sp.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 5:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sl.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n default:\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"getIconPath, unknown iconType = \".concat(String.valueOf(i)));\n AppMethodBeat.m2505o(79319);\n return null;\n }\n }\n }\n if (!(c5728b.mkdirs() && c5728b.isDirectory())) {\n C4990ab.m7413e(\"MicroMsg.AppInfoStorage\", \"mkdir error. %s\", r3);\n if (i2 == 0) {\n }\n }\n }\n i2 = 1;\n if (i2 == 0) {\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tFileChannel fc = FileChannel.open(Paths.get(\"F:/eclipse-jee-luna-SR2-win32-x86_64.zip\"), StandardOpenOption.READ);\r\n\t\tFileChannel w = FileChannel.open(Paths.get(\"‪F:/mobansdfd.zip\"), EnumSet.of(StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE));\r\n\t\tSelector s = Selector.open();\r\n\t\tByteBuffer b = ByteBuffer.allocate(1024);\r\n\t\twhile(fc.read(b) != -1) {\r\n\t\t\tw.write(b);\r\n\t\t}\r\n\t}", "private void createImageFiles() {\n\t\tswitchIconClosed = Icon.createImageIcon(\"/images/events/switchImageClosed.png\");\n\t\tswitchIconOpen = Icon.createImageIcon(\"/images/events/switchImageOpen.png\");\n\t\tswitchIconEmpty = Icon.createImageIcon(\"/images/events/switchImageEmpty.png\");\n\t\tswitchIconOff = Icon.createImageIcon(\"/images/events/switchImageOff.png\");\n\t\tswitchIconOn = Icon.createImageIcon(\"/images/events/switchImageOn.png\");\n\t\tleverIconClean = Icon.createImageIcon(\"/images/events/leverImageClean.png\");\n\t\tleverIconRusty = Icon.createImageIcon(\"/images/events/leverImageRusty.png\");\n\t\tleverIconOn = Icon.createImageIcon(\"/images/events/leverImageOn.png\");\n\t}", "public static boolean m128357b(String str) {\n C7573i.m23587b(str, \"imagePath\");\n if (!C38527bf.m123172a(str)) {\n return false;\n }\n Options options = new Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(str, options);\n String str2 = options.outMimeType;\n CharSequence charSequence = str2;\n if (!TextUtils.isEmpty(charSequence)) {\n C7573i.m23582a((Object) str2, \"type\");\n if (C7634n.m23776c(charSequence, (CharSequence) \"png\", false) || C7634n.m23776c(charSequence, (CharSequence) \"webp\", false) || C7634n.m23776c(charSequence, (CharSequence) \"bmp\", false) || C7634n.m23776c(charSequence, (CharSequence) \"jpg\", false) || C7634n.m23776c(charSequence, (CharSequence) \"jpeg\", false)) {\n return true;\n }\n }\n return false;\n }", "private static final byte[] xfsl_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 0, 0,\n\t\t\t\t-103, -83, 0, 0, -124, -124, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t44, -100, -113, -87, -53, 7, -48, -36, -101, 108, 90, 42, -81,\n\t\t\t\t-122, 59, 108, 62, 5, -34, -122, -120, 95, 18, 12, -126, 38,\n\t\t\t\t40, 41, 32, -84, -16, -22, 14, 83, -116, -107, 54, -119, 26,\n\t\t\t\t90, -28, -125, 0, -127, 5, 0, 59 };\n\t\treturn data;\n\t}", "private void createDesktopIcon(String linkName) {\n File icoFile = new File(pladipusFolder, \"pladipus.ico\");\r\n try (OutputStream out = new FileOutputStream(icoFile); InputStream in = getClass().getClassLoader().getResourceAsStream(\"images/pladipus.ico\")) {\r\n if (in != null) {\r\n IOUtils.copy(in, out);\r\n //set this icon as the ico\r\n String iconFileLocation = icoFile.getAbsolutePath();\r\n JShellLink link = new JShellLink();\r\n link.setFolder(JShellLink.getDirectory(\"desktop\"));\r\n link.setName(linkName);\r\n link.setIconLocation(iconFileLocation);\r\n link.setPath(jarFilePath);\r\n link.save();\r\n }\r\n } catch (IOException e) {\r\n\r\n LOGGER.error(e);\r\n System.out.println(\"An error occurred when trying to create a desktop shortcut...\");\r\n }\r\n }", "@Test\n\tpublic void test03JavaxActivationJavaxImageIOAsSystemPackageExtra()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}", "private static final byte[] xfuzzyload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -82,\n\t\t\t\t69, 12, -128, -128, -128, -1, -1, -1, -64, -64, -64, -1, -1, 0,\n\t\t\t\t0, 0, 0, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 6, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 75, 8, -86,\n\t\t\t\t-42, 11, 45, -82, -24, 32, -83, -42, -80, 43, -39, -26, -35,\n\t\t\t\t22, -116, 1, -9, 24, -127, -96, 10, 101, 23, 44, 2, 49, -56,\n\t\t\t\t108, 21, 15, -53, -84, -105, 74, -86, -25, 50, -62, -117, 68,\n\t\t\t\t44, -54, 74, -87, -107, 82, 21, 40, 8, 81, -73, -96, 78, 86,\n\t\t\t\t24, 53, 82, -46, 108, -77, -27, -53, 78, -85, -111, -18, 116,\n\t\t\t\t87, 8, 23, -49, -123, 4, 0, 59 };\n\t\treturn data;\n\t}", "public native int getCompression() throws MagickException;", "private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }", "public native String getMagick() throws MagickException;", "private static final byte[] xfj_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 76,\n\t\t\t\t76, 76, 11, 11, 11, 7, 7, 7, -47, -47, -47, -1, -1, -1, -7, -7,\n\t\t\t\t-7, -128, -128, -128, 113, 113, 113, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104,\n\t\t\t\t32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0,\n\t\t\t\t0, 16, 0, 16, 0, 0, 4, 93, 16, 73, 9, -24, -84, 51, 99, 84,\n\t\t\t\t119, -106, 1, 16, -124, -31, 7, 6, 2, -112, 10, -23, 24, 76,\n\t\t\t\t-63, 48, -90, -86, -8, 34, 119, 64, 12, -78, 27, -53, 56, 24,\n\t\t\t\t97, -57, -29, 13, 95, 55, 28, -95, 48, 100, 46, -111, -97, 0,\n\t\t\t\t115, 122, 76, 26, -82, -40, -31, 18, -104, -63, 94, -117, 50,\n\t\t\t\t-62, -31, 32, 41, 20, -68, -66, -27, -110, -116, -16, 26, -76,\n\t\t\t\t-50, -79, -28, -118, 56, 27, -118, 99, 118, -37, -48, -11, 125,\n\t\t\t\t-24, 38, -127, 17, 0, 59 };\n\t\treturn data;\n\t}", "private void m9e() {\n String str;\n ApplicationInfo applicationInfo = getApplicationInfo();\n String str2 = applicationInfo.dataDir + \"/tx_shell\";\n f1b = applicationInfo.sourceDir;\n int i = VERSION.SDK_INT;\n Object obj = null;\n if (i >= 19) {\n if (i > 19) {\n String[] strArr = Build.SUPPORTED_64_BIT_ABIS;\n if (strArr != null && strArr.length > 1) {\n obj = 1;\n }\n } else if (new File(\"/system/lib64\").exists()) {\n obj = 1;\n }\n }\n String str3 = null;\n if (VERSION.SDK_INT < 21) {\n str3 = Build.CPU_ABI;\n }\n if ((str3 == null || str3.length() < 2) && VERSION.SDK_INT >= 21) {\n str3 = Build.SUPPORTED_ABIS[0];\n }\n Object obj2 = 1;\n if (str3.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n } else if (VERSION.SDK_INT >= 21) {\n String[] strArr2 = Build.SUPPORTED_ABIS;\n if (strArr2 != null) {\n for (String str4 : strArr2) {\n if (str4.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n }\n }\n }\n }\n Object obj3 = null;\n if (str3.toLowerCase(Locale.US).contains(\"mips\")) {\n obj3 = 1;\n }\n String str5 = VERSION.SDK_INT > 8 ? applicationInfo.nativeLibraryDir : \"/data/data/\" + mPKName + \"/lib\";\n String str6 = \"\";\n String str7 = \"\";\n String str8 = \"\";\n str8 = \"\";\n if (obj2 != null) {\n str4 = m10f() + \"-\" + m5c();\n } else {\n str4 = \"shellx-\" + m5c();\n str8 = m10f() + \"-\" + m5c();\n }\n str6 = str6 + \"lib\" + str4 + \".so\";\n str8 = str7 + \"lib\" + str8 + \".so\";\n File file = new File(str5 + \"/\" + str6);\n File file2 = new File(str2 + \"/\" + str8);\n if (obj2 == null && VERSION.SDK_INT < 19) {\n if (!file2.exists()) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str8) == 0) {\n if (ZipUtil.extract(f1b, \"lib/armeabi/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n } else if (ZipUtil.extract(f1b, \"lib/armeabi-v7a/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n }\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str2 + \"/\" + str8);\n System.load(str2 + \"/\" + str8);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (file.exists()) {\n System.loadLibrary(str4);\n } else {\n str5 = \"\";\n str4 = str2 + \"/\" + str6;\n if (ZipUtil.exist(f1b, \"lib/\" + str3 + \"/\" + str6) == 0) {\n str5 = \"lib/\" + str3 + \"/\" + str6;\n } else if (obj != null) {\n if (obj2 == null) {\n if (VERSION.SDK_INT >= 21) {\n String[] strArr3 = Build.SUPPORTED_ABIS;\n r0 = \"\";\n if (strArr3 != null) {\n int i2 = 0;\n while (i2 < strArr3.length) {\n if (ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str8) == 0 || ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str6) == 0) {\n str3 = strArr3[i2].toLowerCase(Locale.US);\n obj = 1;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else {\n if (str3.compareTo(\"arm64-v8a\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n }\n } else if (str3.compareTo(\"x86\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n }\n } else if (str3.compareTo(\"armeabi-v7a\") == 0 || str3.compareTo(\"armeabi\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str3 = str5;\n }\n if (VERSION.SDK_INT < 21 || r0 == null) {\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = str3;\n } else {\n i2++;\n }\n }\n }\n }\n obj = null;\n str3 = str5;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n str5 = str3;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str5 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n } else if (obj2 != null) {\n Object obj4;\n if (obj3 == null || ZipUtil.exist(f1b, \"lib/mips/\" + str6) != 0) {\n obj4 = null;\n r0 = str5;\n } else {\n obj4 = 1;\n r0 = \"lib/mips/\" + str6;\n }\n if (obj4 == null) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n r0 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n r0 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = r0;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str5 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n if (ZipUtil.extract(f1b, str5, str4) == 0) {\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str4);\n System.load(str4);\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n }\n }", "private ZipCompressor(){}", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public static void copy(String suffix) {\r\n boolean success = false;\r\n boolean doVideo = true;\r\n String imgSrcDir = zipDir0 + \"/R\";\r\n String videoSrcDir = zipDir0 + \"/Video\";\r\n String imgDstDir = rImagesDir0 + \"/Images\" + suffix;\r\n String videoDstDir = rVideoDir0 + \"/Video\" + suffix;\r\n File imgSrcDirFile = new File(imgSrcDir);\r\n File videoSrcDirFile = new File(videoSrcDir);\r\n File imgDstDirFile = new File(imgDstDir);\r\n File videoDstDirFile = new File(videoDstDir);\r\n\r\n // Check and create directories\r\n if(!imgSrcDirFile.isDirectory()) {\r\n System.err.println(\"Not a directory: \" + imgSrcDirFile.getPath());\r\n System.exit(1);\r\n }\r\n if(!videoSrcDirFile.isDirectory()) {\r\n doVideo = false;\r\n }\r\n if(!imgDstDirFile.isDirectory()) {\r\n success = imgDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + imgDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n if(doVideo && !videoDstDirFile.isDirectory()) {\r\n success = videoDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + videoDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n\r\n // Images\r\n System.out.println(\"\\nCopying images:\");\r\n System.out.println(\"From: \" + imgSrcDirFile.getPath());\r\n System.out.println(\"To: \" + imgDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(imgSrcDirFile, imgDstDirFile, saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + imgSrcDirFile.getPath()\r\n + \"\\n To: \" + imgDstDirFile.getPath() + \"\\n\");\r\n }\r\n\r\n // Video\r\n System.out.println(\"\\nCopying video:\");\r\n if(!doVideo) {\r\n System.out.println(\"No video found\");\r\n return;\r\n }\r\n System.out.println(\"From: \" + videoSrcDirFile.getPath());\r\n System.out.println(\"To: \" + videoDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(videoSrcDirFile, videoDstDirFile,\r\n saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + videoSrcDirFile.getPath()\r\n + \"\\n To: \" + videoDstDirFile.getPath() + \"\\n\");\r\n }\r\n }", "@Test\n public void testDERIVATIVE_COMPRESS_CRC() throws IOException {\n// ZipMeVariables.getSINGLETON().setCRC___(true);\n// ZipMeVariables.getSINGLETON().setCOMPRESS___(true);\n// ZipMeVariables.getSINGLETON().setDERIVATIVE_COMPRESS_CRC___(true);\n\t Configuration.CRC=true;\n\t Configuration.COMPRESS=true;\n\t Configuration.DERIVATIVE_COMPRESS_CRC=true;\n if(Configuration.CRC && Configuration.COMPRESS && Configuration.DERIVATIVE_COMPRESS_CRC) { \n ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/src.zip\")));\n zout.crc.update(1);\n ZipEntry ze = new ZipEntry(\"C://\");\n zout.putNextEntry(ze);\n zout.hook41();\n assertTrue(zout.crc.crc == 0);\n\n zout.write(new byte[32], 0, 31);\n assertTrue(zout.size == 31);\n zout.closeEntry();\n assertTrue(ze.getCrc() == zout.crc.crc);\n }\n }", "public static void main(String args[]) {\r\n String packageFilename = \"ImageAsData\";\r\n PApplet.main(new String[] { packageFilename });\r\n }", "private ByteTools(){}", "private ImageDownloader(){ \t\n \n }", "@Test\n\tpublic void test01JavaxActivationJavaxImageIOMissing() throws Exception {\n\t\tstartFramework();\n\t\ttry {\n\t\t\tinstallAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\t} catch (BundleException ex) {\n\t\t\t// we will expect a resolution failed exception\n\t\t\tAssert.assertTrue(\"Bundle will not resolve\", ex.getMessage()\n\t\t\t\t\t.contains(\"Resolution failed\"));\n\t\t\tAssert.assertTrue(\"Bundle will not resolve\", ex.getMessage()\n\t\t\t\t\t.contains(\"javax.imageio\"));\n\t\t\tAssert.assertTrue(\"Bundle will not resolve\", ex.getMessage()\n\t\t\t\t\t.contains(\"javax.imageio.metadata\"));\n\t\t}\n\t\tstopFramework();\n\t}", "private int m128366a() {\n String c = C40173d.m128358c();\n if (!new File(c).exists()) {\n new File(c).mkdirs();\n }\n for (MediaModel mediaModel : this.f104446a) {\n String str = mediaModel.f88156b;\n C7573i.m23582a((Object) str, \"model.filePath\");\n if (C40173d.m128357b(str)) {\n Bitmap a = C40168a.f104413a.mo99928a(mediaModel.f88156b, 720, 1280);\n if (a != null) {\n StringBuilder sb = new StringBuilder();\n sb.append(c);\n sb.append(C40173d.m128354a(\".png\"));\n String sb2 = sb.toString();\n C42341f.m134636a(a, new File(sb2), 50, CompressFormat.PNG);\n C40168a.m128334a(a);\n mediaModel.f88156b = sb2;\n }\n }\n }\n return 0;\n }", "public static boolean generateZipFile(ArrayList<String> sourcesFilenames, String destinationDir, String zipFilename){\n byte[] buf = new byte[1024]; \r\n\r\n try \r\n {\r\n // VER SI HAY QUE CREAR EL ROOT PATH\r\n boolean result = (new File(destinationDir)).mkdirs();\r\n\r\n String zipFullFilename = destinationDir + \"/\" + zipFilename;\r\n\r\n System.out.println(result);\r\n\r\n // Create the ZIP file \r\n ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFullFilename)); \r\n \r\n // Compress the files \r\n for (String filename: sourcesFilenames) { \r\n FileInputStream in = new FileInputStream(filename); \r\n // Add ZIP entry to output stream. \r\n File file = new File(filename); //\"Users/you/image.jpg\"\r\n out.putNextEntry(new ZipEntry(file.getName())); //\"image.jpg\" \r\n // Transfer bytes from the file to the ZIP file \r\n int len; \r\n while ((len = in.read(buf)) > 0) { \r\n out.write(buf, 0, len); \r\n } \r\n // Complete the entry \r\n out.closeEntry(); \r\n in.close(); \r\n } // Complete the ZIP file \r\n out.close();\r\n\r\n return true;\r\n } \r\n catch (Exception e) \r\n { \r\n System.out.println(e);\r\n return false;\r\n } \r\n }", "public static void main(String[] args) throws IOException {\n HttpPageExtractor httpPageExtractor = new HttpPageExtractor();\n Page page = httpPageExtractor.extractPage(\"http://www.obrazki.org/upload/ob_0_33793200_1306404375.JPEG\");\n // new BufferedWriter(new FileWriter(new File(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obrazek.jpeg\")))\n //Files.write(Paths.get(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obraze.png\"), page.getBody().getBytes());\n try (InputStream in = URI.create(\"https://demotywatory.pl/uploads/201008/1282322197_by_MACTEP_600.jpg\").toURL().openStream()) {\n Files.copy(in, Paths.get(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obrazek1.png\"));\n }\n }", "public static void main(String[] args) {\n\t\ttry (FileInputStream in = new FileInputStream(\"java-logo.jpg\");\n\t\t\t FileOutputStream out = new FileOutputStream(\"copy-java-logo.jpg\")) {\n\t\t\tvar buffer = new byte[1024];\n\t\t\tvar length = 0;\n\t\t\tvar readCount = 1;\n\t\t\twhile ((length = in.read(buffer)) != -1) {\n\t\t\t\tout.write(buffer, 0, length);\n\t\t\t\tSystem.out.printf(\"reads = %d, length = %d%n\", readCount++, length);\n\t\t\t}\n\t\t\tSystem.out.printf(\"reads = %d, length = %d%n\", readCount++, length);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static final byte[] xfmt_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -128,\n\t\t\t\t-128, -128, -1, -1, -1, 0, 0, 0, 0, 0, -1, -64, -64, -64, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 62, 88, -70,\n\t\t\t\t-36, 11, 48, 74, -8, -126, -67, -40, 10, 5, -126, -8, 32, -40,\n\t\t\t\t109, -59, 56, -100, -24, 57, 114, -34, 16, -92, -86, -57, 10,\n\t\t\t\t48, -70, -106, 109, 61, -36, -90, -50, -25, -75, -97, 96, 34,\n\t\t\t\t-111, -31, 50, 72, 82, 33, -60, 4, 57, 58, 23, 2, 64, -71, 104,\n\t\t\t\t54, 29, -40, 70, 2, 0, 59 };\n\t\treturn data;\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile targetFile = new File(\"D:\\\\program\\\\360cse\\\\360Chrome\\\\test.zip\");\n\t\tFile sourceFiles = new File(\"D:\\\\temple\\\\sysMenu-add.html\");\n\t\tboolean flag = compressZip(false, targetFile, sourceFiles);\n\t\tSystem.out.println(flag);\n\t}", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "java.lang.String getPackageImageURL();", "private static final byte[] xfsim_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -128,\n\t\t\t\t-128, -128, -64, -64, -64, 0, 0, 0, -1, -1, -1, 0, 0, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 14, 48, -58, 23, -86, -83, 64, 48, 48, -70, -17, -112,\n\t\t\t\t-74, 112, 66, 105, 14, -31, 54, 8, 68, -37, -94, -103, -54,\n\t\t\t\t-70, 4, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t2, 4, 68, 28, -97, -57, 24, 43, -124, -128, 2, 104, -54, 40,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "private Image makeAnImage(String s) throws IOException {\n //String imageName = s.substring(s.indexOf(\"\\\\(\") + 1, s.indexOf(\"\\\\)\"));\n String[] parts = s.split(\"\\\\(\");\n String imageName = parts[1].substring(0, parts[1].length() - 1);\n // load the image data into an java.awt.Image object.\n Image img = null;\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(imageName);\n try {\n img = ImageIO.read(is);\n } catch (IOException e) {\n System.out.println(\"Error: failed to load image\");\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n System.out.println(\"Failing closing the image\");\n }\n }\n }\n return img;\n }", "private static final byte[] xfuzzysave_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -82,\n\t\t\t\t69, 12, 0, 0, -128, -1, -1, -1, -1, -1, 0, -64, -64, -64, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 64, 8, -86,\n\t\t\t\t-43, 11, 45, -82, -24, 32, -83, -74, -80, 43, -39, -26, -35, 7,\n\t\t\t\t98, -39, -24, -119, -41, 23, 8, 67, -37, 10, -127, 86, -82, 66,\n\t\t\t\t109, 7, 79, -76, -70, 111, -52, -47, -74, -102, -17, 18, 40,\n\t\t\t\t26, -115, -96, 34, 97, -71, 44, 38, 3, 77, -88, -13, 7, 37, 40,\n\t\t\t\t-89, -60, 42, -77, -104, 0, 0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] xfsl_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 86,\n\t\t\t\t86, 86, 51, 51, 51, -111, -111, -111, -1, -1, -1, 33, -2, 14,\n\t\t\t\t77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80,\n\t\t\t\t0, 33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0,\n\t\t\t\t2, 44, -100, -113, -87, -53, 7, -48, -36, -101, 108, 90, 42,\n\t\t\t\t-81, -122, 59, 108, 62, 5, -34, -122, -120, 95, 18, 12, -126,\n\t\t\t\t38, 40, 41, 32, -84, -16, -22, 14, 83, -116, -107, 54, -119,\n\t\t\t\t26, 90, -28, -125, 0, -127, 5, 0, 59 };\n\t\treturn data;\n\t}", "private static void unpackFfmpeg() throws IOException {\n if(Converter.launchType.equals(LaunchType.JAR)) {\n String ffmpegStr = \"\";\n switch (Converter.osType) {\n case WINDOWS:\n ffmpegStr = \"ffmpeg.exe\";\n break;\n case OSX:\n ffmpegStr = \"ffmpeg\";\n break;\n }\n\n // unzip ffmpeg from inside the JAR\n JarFile jarfile = new JarFile(System.getProperty(\"java.class.path\"));\n\n //Enumeration<JarEntry> entries = jarfile.entries();\n //while(entries.hasMoreElements()) {\n // JarEntry e = entries.nextElement();\n // System.out.println(e.getName() + \" \" + e.toString());\n //}\n\n System.out.println(\"will now try to capture \" + ffmpegStr + \" from jar file\");\n ZipEntry ffmpeg = jarfile.getEntry(ffmpegStr);\n if(ffmpeg==null) {\n System.out.println(\"could not extract \" + ffmpegStr + \" from jar file - exit\");\n System.exit(-1);\n }\n\n InputStream inputStream = jarfile.getInputStream(ffmpeg);\n Files.copy(inputStream, Paths.get(ffmpegStr));\n\n return;\n }\n\n\n if(Converter.launchType.equals(LaunchType.TERMINAL)) {\n switch (Converter.osType) {\n case WINDOWS:\n Files.copy(Paths.get(\"lib/ffmpeg.exe\"), Paths.get(\"ffmpeg.exe\"), StandardCopyOption.REPLACE_EXISTING) ;\n break;\n case OSX:\n Files.copy(Paths.get(\"lib/ffmpeg\"), Paths.get(\"ffmpeg\"), StandardCopyOption.REPLACE_EXISTING) ;\n break;\n }\n return;\n }\n\n Log.appendToInfoArea(\"we could not detect if we were running from JAR or from TERMINAL so ffmpeg was not unpacked\");\n System.out.println(\"we could not detect if we were running from JAR or from TERMINAL so ffmpeg was not unpacked\");\n }", "static String getMascotImageFilename() {\n Path filePath = Paths.get(badgeResourcePath, \"kumoricon_2017-mascot_chibi.png\");\n return filePath.toAbsolutePath().toString();\n }", "public void jieya() {\n\t\tlong startTime=System.currentTimeMillis();\n\t\ttry {\n\t\t\tZipInputStream Zin=new ZipInputStream(new FileInputStream(\n\t\t\t\t\tf1.getText()));//输入源zip路径\n\t\t\tBufferedInputStream Bin=new BufferedInputStream(Zin);\n\t\t\tString Parent=\"D:\\\\XM\\\\解压\"; //输出路径(文件夹目录)\n\t\t\tFile Fout=null;\n\t\t\tZipEntry entry;\n\t\t\ttry {\n\t\t\t\twhile((entry = Zin.getNextEntry())!=null && !entry.isDirectory()){\n\t\t\t\t\tFout=new File(Parent,entry.getName());\n\t\t\t\t\tif(!Fout.exists()){\n\t\t\t\t\t\t(new File(Fout.getParent())).mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\tFileOutputStream out=new FileOutputStream(Fout);\n\t\t\t\t\tBufferedOutputStream Bout=new BufferedOutputStream(out);\n\t\t\t\t\tint b;\n\t\t\t\t\twhile((b=Bin.read())!=-1){\n\t\t\t\t\t\tBout.write(b);\n\t\t\t\t\t}\n\t\t\t\t\tBout.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\tJOptionPane.showMessageDialog(null,Fout+\"解压成功\");\t\n\t\t\t\t}\n\t\t\t\tBin.close();\n\t\t\t\tZin.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlong endTime=System.currentTimeMillis();\n\t}", "private static final byte[] xfsim_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, 0, 0,\n\t\t\t\t0, -128, -128, -128, -64, -64, -64, 28, 28, 28, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 30, 48, -58, 39, -86, -83, 1, -80, 64, -70, -17, -112,\n\t\t\t\t-74, 112, 64, 105, 18, -31, 70, 0, 67, -37, -94, -103, -54,\n\t\t\t\t-70, 3, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t10, 8, 68, 28, -97, -57, 24, 43, -124, -128, 0, 104, -54, 8,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "void makeZip(String zipFilePath, String srcFilePaths[],\n\t\t\tMessageDisplay msgDisplay) {\n\t\t...\n\t\tfor (int i = 0; i < srcFilePaths.length; i++) {\n\t\t\tmsgDisplay.showMessage(\"Zipping \"+srcFilePaths[i]);\n\t\t\t//add the file srcFilePaths[i] into the zip file.\n\t\t\t...\n\t\t}\n\t}", "public native double testyolo(String imgfile);", "public static void createFileToZip(BufferedImage image, String path, int name,ZipOutputStream zipOS) throws FileNotFoundException, IOException {\n //Create the jpeg image\n File f = new File(path+Integer.toString(name)+\".jpg\");\n //Create the inputstream\n FileInputStream fis = new FileInputStream(f);\n //Create a zipentry for the file we are gonna include to the zip\n ZipEntry zipEntry = new ZipEntry(path+Integer.toString(name)+\".jpg\");\n //Store the image into the zip as an array of bytes\n zipOS.putNextEntry(zipEntry);\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n }", "public static void main(String[] args) {\n try {\n File image = new File(\"petite_image.png\");\n ImageSerializer serializer = new ImageSerializerBase64Impl();\n\n // Sérialization\n String encodedImage = (String) serializer.serialize(image);\n System.out.println(splitDisplay(encodedImage,76));\n\n // Désérialisation\n byte[] deserializedImage = (byte[]) serializer.deserialize(encodedImage);\n\n // Vérifications\n // 1/ Automatique\n assert (Arrays.equals(deserializedImage, Files.readAllBytes(image.toPath())));\n System.out.println(\"Cette sérialisation est bien réversible :)\");\n // 2/ Manuelle\n File extractedImage = new File(\"petite_image_extraite.png\");\n new FileOutputStream(extractedImage).write(deserializedImage);\n System.out.println(\"Je peux vérifier moi-même en ouvrant mon navigateur de fichiers et en ouvrant l'image extraite dans le répertoire de ce Test\");\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args){\r\n List<File> xzQueue = new ArrayList<>();\r\n List<File> unpackQueue = new ArrayList<>();\r\n List<File> packXZQueue = new ArrayList<>();\r\n\r\n for(int i=0; i<args.length; ++i){\r\n if(args[i].equalsIgnoreCase(\"-packxz\")){\r\n if(i+1<args.length){\r\n ++i;\r\n String[] paths = args[i].split(\",\");\r\n for(String s : paths){\r\n packXZQueue.add(new File(s));\r\n }\r\n }\r\n } else if(args[i].equalsIgnoreCase(\"-xz\")){\r\n if(i+1<args.length){\r\n ++i;\r\n String[] paths = args[i].split(\",\");\r\n for(String s : paths){\r\n xzQueue.add(new File(s));\r\n }\r\n }\r\n } else if(args[i].equalsIgnoreCase(\"-pack\")){\r\n if(i+1<args.length){\r\n ++i;\r\n String[] paths = args[i].split(\",\");\r\n for(String s : paths){\r\n unpackQueue.add(new File(s));\r\n }\r\n }\r\n }\r\n }\r\n\r\n for(File f : packXZQueue) unpack(extractXZ(f));\r\n for(File f : xzQueue) extractXZ(f);\r\n for(File f : unpackQueue) unpack(f);\r\n }", "public static String getBinaryFile(){\r\n return Input.getString(\"What is the name of the binary file? Please add .dat file extension: \");\r\n }", "private void m2a(String str) {\n String str2;\n ApplicationInfo applicationInfo = getApplicationInfo();\n String str3 = applicationInfo.dataDir + \"/tx_shell\";\n f1b = applicationInfo.sourceDir;\n int i = VERSION.SDK_INT;\n Object obj = null;\n if (i >= 19) {\n if (i > 19) {\n String[] strArr = Build.SUPPORTED_64_BIT_ABIS;\n if (strArr != null && strArr.length > 1) {\n obj = 1;\n }\n } else if (new File(\"/system/lib64\").exists()) {\n obj = 1;\n }\n }\n String str4 = null;\n if (VERSION.SDK_INT < 21) {\n str4 = Build.CPU_ABI;\n }\n if ((str4 == null || str4.length() < 2) && VERSION.SDK_INT >= 21) {\n str4 = Build.SUPPORTED_ABIS[0];\n }\n Object obj2 = 1;\n if (str4.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n } else if (VERSION.SDK_INT >= 21) {\n String[] strArr2 = Build.SUPPORTED_ABIS;\n if (strArr2 != null) {\n for (String str22 : strArr2) {\n if (str22.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n }\n }\n }\n }\n Object obj3 = null;\n if (str4.toLowerCase(Locale.US).contains(\"mips\")) {\n obj3 = 1;\n }\n String str5 = VERSION.SDK_INT > 8 ? applicationInfo.nativeLibraryDir : \"/data/data/\" + mPKName + \"/lib\";\n String str6 = \"\";\n String str7 = \"\";\n String str8 = \"\";\n str8 = \"\";\n if (obj2 != null) {\n str22 = str + m7d();\n } else {\n str22 = str + m7d();\n str8 = str + m7d();\n }\n str6 = str6 + \"lib\" + str22 + \".so\";\n str8 = str7 + \"lib\" + str8 + \".so\";\n File file = new File(str5 + \"/\" + str6);\n File file2 = new File(str3 + \"/\" + str8);\n if (obj2 == null && VERSION.SDK_INT < 19) {\n if (!file2.exists()) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str8) == 0) {\n if (ZipUtil.extract(f1b, \"lib/armeabi/\" + str8, str3 + \"/\" + str8) == 0) {\n }\n } else if (ZipUtil.extract(f1b, \"lib/armeabi-v7a/\" + str8, str3 + \"/\" + str8) == 0) {\n }\n }\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str3 + \"/\" + str8);\n System.load(str3 + \"/\" + str8);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (file.exists()) {\n System.loadLibrary(str22);\n } else {\n String str9;\n str5 = \"\";\n str8 = str3 + \"/\" + str6;\n if (ZipUtil.exist(f1b, \"lib/\" + str4 + \"/\" + str6) == 0) {\n str9 = \"lib/\" + str4 + \"/\" + str6;\n } else {\n if (obj != null) {\n if (obj2 != null) {\n if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str9 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str9 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str9 = \"lib/armeabi-v7a/\" + str6;\n }\n } else if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str9 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str9 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str9 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str9 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str9 = \"lib/armeabi-v7a/\" + str6;\n }\n } else if (obj2 != null) {\n Object obj4;\n if (obj3 == null || ZipUtil.exist(f1b, \"lib/mips/\" + str6) != 0) {\n obj4 = null;\n str9 = str5;\n } else {\n obj4 = 1;\n str9 = \"lib/mips/\" + str6;\n }\n if (obj4 == null) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str9 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str9 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str9 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str9 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str9 = \"lib/armeabi-v7a/\" + str6;\n }\n str9 = str5;\n }\n if (ZipUtil.extract(f1b, str9, str8) == 0) {\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str8);\n System.load(str8);\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n }\n }", "@Override\r\n public void pack() {\r\n super.pack();\r\n JkFileTree.of(this.classDir()).exclude(\"**/*.jar\").zip().to(packer().jarFile(\"lean\"));\r\n distrib();\r\n }", "private static String nativeLocationInJar() {\n\t\tString OS = System.getProperty(\"os.name\");\n\t\tString arch = System.getProperty(\"os.arch\");\n\t\tlog.info(\"Found OS={}, arch={}\", OS, arch);\n\t\tString key = OS+\"_\"+arch;\n\t\tswitch(key)\n\t\t{\n\t\tcase \"Linux_amd64\":\n\t\t\treturn \"native/MANIFEST.Linux_amd64\";\n\t\tcase \"Windows 7_amd64\":\n\t\tcase \"Windows 8_amd64\":\n\t\tcase \"Windows 8.1_amd64\":\n\t\t\treturn \"native/MANIFEST.Windows_amd64\";\n\t\t}\n\t\tlog.error(\"No matching native library for {}\", key);\n\t\tthrow new Error(\"No matching native library for \"+key);\n\t}", "default void buildMainGenerateCustomRuntimeImage() {\n if (!bach().project().settings().tools().enabled(\"jlink\")) return;\n say(\"Assemble custom runtime image\");\n var image = bach().folders().workspace(\"image\");\n Paths.deleteDirectories(image);\n bach().run(buildMainJLink(image));\n }", "public static int PrepareSecurefiles(Context ctx, ZipFile apkzf) {\r\n ZipEntry fileUnzip;\r\n ZipEntry fileUnzip2;\r\n ZipEntry fileUnzip3;\r\n RandomAccessFile raf = null;\r\n FileLock file_lock = null;\r\n RandomAccessFile raf2 = null;\r\n String Appfiledir = new StringBuilder(String.valueOf(ctx.getFilesDir().getAbsolutePath())).append(\"/prodexdir\").toString();\r\n File Appprofiledir = new File(Appfiledir);\r\n if (!Appprofiledir.isDirectory()) {\r\n Appprofiledir.mkdir();\r\n }\r\n String Cookiefilepath = new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(versionname).toString();\r\n String backupfilepath = new StringBuilder(String.valueOf(Appfiledir)).append(\"/backUp\").toString();\r\n String firstloadfilepath = new StringBuilder(String.valueOf(Appfiledir)).append(\"/firstLoad\").toString();\r\n String Cookiefileinzip = \"assets/\" + versionname;\r\n String Libnameinapk = \"libtosprotection.\" + CPUABI + \".so\";\r\n try {\r\n raf = new RandomAccessFile(Cookiefilepath, \"rw\");\r\n try {\r\n raf = raf.getChannel();\r\n file_lock = raf.lock();\r\n File Cookiefile = new File(Cookiefilepath);\r\n try {\r\n if (Cookiefile.length() != 0) {\r\n int compareResult = Comparetxtinzip(apkzf, Cookiefileinzip, Cookiefile);\r\n if (compareResult == 1) {\r\n File secureDataFile = new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename5).toString());\r\n if (!secureDataFile.exists() || secureDataFile.length() == 0) {\r\n SafeUnzipFile(apkzf, \"assets/\" + securename5, secureDataFile, 0);\r\n } else {\r\n SafeUnzipFile(apkzf, \"assets/\" + securename5, secureDataFile, getFileCRC32(secureDataFile));\r\n }\r\n ZipEntry fileUnzip4 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip4 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip4.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip5 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip5 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip5.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip6 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip6 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip6.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip7 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip7 != null && !isFileValid(Cookiefilepath, fileUnzip7.getSize())) {\r\n File file = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n RandomAccessFile randomAccessFile = raf;\r\n File file2 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e2) {\r\n e2.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e3) {\r\n e3.printStackTrace();\r\n RandomAccessFile randomAccessFile2 = raf;\r\n File file3 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile3 = raf;\r\n File file4 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e4) {\r\n e4.printStackTrace();\r\n RandomAccessFile randomAccessFile4 = raf;\r\n File file5 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e5) {\r\n e5.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e6) {\r\n e6.printStackTrace();\r\n RandomAccessFile randomAccessFile5 = raf;\r\n File file6 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e7) {\r\n e7.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e8) {\r\n e8.printStackTrace();\r\n RandomAccessFile randomAccessFile6 = raf;\r\n File file7 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile7 = raf;\r\n File file8 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e9) {\r\n e9.printStackTrace();\r\n RandomAccessFile randomAccessFile8 = raf;\r\n File file9 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile9 = raf;\r\n File file10 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e10) {\r\n e10.printStackTrace();\r\n RandomAccessFile randomAccessFile10 = raf;\r\n File file11 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e11) {\r\n e11.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e12) {\r\n e12.printStackTrace();\r\n RandomAccessFile randomAccessFile11 = raf;\r\n File file12 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile12 = raf;\r\n File file13 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e13) {\r\n e13.printStackTrace();\r\n RandomAccessFile randomAccessFile13 = raf;\r\n File file14 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile14 = raf;\r\n File file15 = Cookiefile;\r\n return 2;\r\n } else if (compareResult != 0) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n }\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString());\r\n int file_count = 0;\r\n while (file_count < MAX_DEX_NUM) {\r\n int deletedexresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count)).toString());\r\n int deletejarresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(CreatenewFileName(securename1, \".\", \"_\" + file_count)).toString());\r\n int deleteodexresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count)).toString());\r\n int deleteflagresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count)).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(\"oat/arm\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count)).toString());\r\n if (ERROR_FILE_NOT_FOUND == deletedexresult && ERROR_FILE_NOT_FOUND == deletejarresult && ERROR_FILE_NOT_FOUND == deleteodexresult) {\r\n break;\r\n }\r\n if (ERROR_EXCEPTION == deletedexresult || ERROR_EXCEPTION == deletejarresult || ERROR_EXCEPTION == deleteodexresult) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n file_count++;\r\n }\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename9).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename5).toString());\r\n UnzipFile(apkzf, \"assets/\" + securename5, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename5).toString()));\r\n UnzipFile(apkzf, \"assets/\" + libname, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n File file16 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file16);\r\n for (int file_count2 = 0; file_count2 < file_count; file_count2++) {\r\n int deletedexresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count2)).toString());\r\n int deletejarresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(CreatenewFileName(securename1, \".\", \"_\" + file_count2)).toString());\r\n int deleteodexresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count2)).toString());\r\n int deleteflagresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count2)).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(\"oat/arm\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count2)).toString());\r\n if (ERROR_FILE_NOT_FOUND == deletedexresult2 && ERROR_FILE_NOT_FOUND == deletejarresult2 && ERROR_FILE_NOT_FOUND == deleteodexresult2) {\r\n break;\r\n }\r\n if (ERROR_EXCEPTION == deletedexresult2 || ERROR_EXCEPTION == deletejarresult2 || ERROR_EXCEPTION == deleteodexresult2) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n }\r\n for (int file_count3 = 0; file_count3 < file_count; file_count3++) {\r\n int deletedexresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count3)).toString());\r\n int deletejarresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(CreatenewFileName(securename1, \".\", \"_\" + file_count3)).toString());\r\n int deleteodexresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count3)).toString());\r\n int deleteflagresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count3)).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(\"oat/arm\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count3)).toString());\r\n if (ERROR_FILE_NOT_FOUND == deletedexresult3 && ERROR_FILE_NOT_FOUND == deletejarresult3 && ERROR_FILE_NOT_FOUND == deleteodexresult3) {\r\n break;\r\n }\r\n if (ERROR_EXCEPTION == deletedexresult3 || ERROR_EXCEPTION == deletejarresult3 || ERROR_EXCEPTION == deleteodexresult3) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n }\r\n ZipEntry fileUnzip8 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip8 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip8.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip9 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip9 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip9.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip10 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip10 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip10.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip11 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip11 != null && !isFileValid(Cookiefilepath, fileUnzip11.getSize())) {\r\n File file17 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file17);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e14) {\r\n e14.printStackTrace();\r\n RandomAccessFile randomAccessFile15 = raf;\r\n File file18 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e15) {\r\n e15.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e16) {\r\n e16.printStackTrace();\r\n RandomAccessFile randomAccessFile16 = raf;\r\n File file19 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile17 = raf;\r\n File file20 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e17) {\r\n e17.printStackTrace();\r\n RandomAccessFile randomAccessFile18 = raf;\r\n File file21 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e18) {\r\n e18.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e19) {\r\n e19.printStackTrace();\r\n RandomAccessFile randomAccessFile19 = raf;\r\n File file22 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e20) {\r\n e20.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e21) {\r\n e21.printStackTrace();\r\n RandomAccessFile randomAccessFile20 = raf;\r\n File file23 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile21 = raf;\r\n File file24 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e22) {\r\n e22.printStackTrace();\r\n RandomAccessFile randomAccessFile22 = raf;\r\n File file25 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile23 = raf;\r\n File file26 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e23) {\r\n e23.printStackTrace();\r\n RandomAccessFile randomAccessFile24 = raf;\r\n File file27 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e24) {\r\n e24.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e25) {\r\n e25.printStackTrace();\r\n RandomAccessFile randomAccessFile25 = raf;\r\n File file28 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile26 = raf;\r\n File file29 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e26) {\r\n e26.printStackTrace();\r\n RandomAccessFile randomAccessFile27 = raf;\r\n File file30 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile28 = raf;\r\n File file31 = Cookiefile;\r\n return 0;\r\n } catch (Exception e27) {\r\n e = e27;\r\n raf2 = raf;\r\n File file32 = Cookiefile;\r\n } catch (Throwable th) {\r\n th = th;\r\n raf2 = raf;\r\n File file33 = Cookiefile;\r\n ZipEntry fileUnzip12 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip12 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip12.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n ZipEntry fileUnzip13 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip13 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip13.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n ZipEntry fileUnzip14 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip14 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip14.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n ZipEntry fileUnzip15 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip15 != null && !isFileValid(Cookiefilepath, fileUnzip15.getSize())) {\r\n File file34 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file34);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e28) {\r\n e28.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e29) {\r\n e29.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e30) {\r\n e30.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e31) {\r\n e31.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e32) {\r\n e32.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e33) {\r\n e33.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e34) {\r\n e34.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e35) {\r\n e35.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e36) {\r\n e36.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e37) {\r\n e37.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e38) {\r\n e38.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e39) {\r\n e39.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e40) {\r\n e40.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n throw th;\r\n }\r\n } catch (Exception e41) {\r\n e = e41;\r\n raf2 = raf;\r\n try {\r\n e.printStackTrace();\r\n fileUnzip = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n }\r\n fileUnzip2 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip2 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip2.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n }\r\n fileUnzip3 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip3 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip3.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip16 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip16 != null && !isFileValid(Cookiefilepath, fileUnzip16.getSize())) {\r\n File file35 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file35);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e42) {\r\n e42.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e43) {\r\n e43.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e44) {\r\n e44.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e45) {\r\n e45.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e46) {\r\n e46.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e47) {\r\n e47.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e48) {\r\n e48.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e49) {\r\n e49.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e50) {\r\n e50.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e51) {\r\n e51.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e52) {\r\n e52.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e53) {\r\n e53.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e54) {\r\n e54.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } catch (Throwable th2) {\r\n th = th2;\r\n ZipEntry fileUnzip122 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n ZipEntry fileUnzip132 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n ZipEntry fileUnzip142 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n ZipEntry fileUnzip152 = apkzf.getEntry(Cookiefileinzip);\r\n File file342 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file342);\r\n if (file_lock != null) {\r\n }\r\n throw th;\r\n }\r\n } catch (Throwable th3) {\r\n th = th3;\r\n raf2 = raf;\r\n ZipEntry fileUnzip1222 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n ZipEntry fileUnzip1322 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n ZipEntry fileUnzip1422 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n ZipEntry fileUnzip1522 = apkzf.getEntry(Cookiefileinzip);\r\n File file3422 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file3422);\r\n if (file_lock != null) {\r\n }\r\n throw th;\r\n }\r\n } catch (Exception e55) {\r\n e = e55;\r\n e.printStackTrace();\r\n fileUnzip = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip != null) {\r\n }\r\n fileUnzip2 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip2 != null) {\r\n }\r\n fileUnzip3 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip3 != null) {\r\n }\r\n ZipEntry fileUnzip162 = apkzf.getEntry(Cookiefileinzip);\r\n File file352 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file352);\r\n if (file_lock != null) {\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }", "public void initIcons(){\n\t \troot_iconsFileNames = new ArrayList<String>();\n\t root_iconsBitmaps = new ArrayList<Bitmap>(); \n \t\ttry{\n \t\t\tResources res = this.getResources();\n \t\t\tInputStream iconInputStream = res.openRawResource(R.raw.icons);\n \t\t\tZipInputStream zipStream = new ZipInputStream(iconInputStream);\n \t\t ZipEntry entry;\n\n \t\t while ((entry = zipStream.getNextEntry()) != null) {\n \t\t \t//file name may start with MACOSX. This is strange, ignore it.\n \t\t \tString fileName = entry.getName();\n \t\t \tif(fileName.length() > 1){\n\t \t\t \tif(fileName.contains(\".png\") && !entry.isDirectory()){\n\t \t\t \t\tif(!fileName.contains(\"MACOSX\")){ //OSX adds junk sometimes, ignore it\n\t \t\t \t\t\tfileName = fileName.replace(\"icons/\",\"\");\n\t \t\t \t\t\tBitmap iconBitmap = BitmapFactory.decodeStream(zipStream); \n\t \t\t \t\t\troot_iconsFileNames.add(fileName);\n\t \t\t \t\t\troot_iconsBitmaps.add(iconBitmap);\n\t \t\t \t\t\t//Log.i(\"ZZ\", \"loading bitmaps: \" + fileName); \n\t \t\t \t\t}\n\t \t\t \t} //macosx\n\t \t\t } // fileName\n \t\t }//end while\n \t\t \n \t\t //clean up\n \t\t if(zipStream != null){\n \t\t \tzipStream.close();\n \t\t }\n \t\t \n \t\t}catch(Exception ex){\n \t\t\t Log.i(\"ZZ\", \"getZippedIcon: \" + ex.toString()); \n \t\t}\t \n\t }", "java.lang.String getOutputjar();", "Pointer __stdcallwkhtmltoimage_version();", "Imagem getImagem();", "String getIconFile();", "public static String convertImageInStdout(String mscgen_path, String codePath){\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(); \n\t\tif (mscgen_path == \"MSCGEN PATH EMPTY\") {\n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler path not set.\";\n\t\t}\n\t\t\n\t\telse if (mscgen_path == \"MSCGEN EXE NOT FOUND\") {\n\t\t\t \n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler not found.\";\n\t\t}\n String OS = System.getProperty(\"os.name\");\n if(OS.startsWith(\"Windows\")){\n codePath = codePath.replace(\"\\\\\",\"\\\\\\\\\");\n /* \n * Ref: PLUG-5262\n * In case of windows environment if we have space in-between the compiler path \n * then we need to set parent directory as the directory of ProcessBuilder. \n */\n File f = new File(mscgen_path);\n pb.directory(f.getParentFile());\n pb.command(\"cmd.exe\", \"/c\",f.getName(),\"-T\",\"png\",\"-i\",codePath);\n }else{\n pb.command(mscgen_path,\"-T\",\"png\",\"-i\",codePath); \n }\n Process p = null;\n\t\ttry {\n\t\t\tp = pb.start();\n\t\t\tp.waitFor();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tString error=checkError(p);\n\t\tif(error!=\"\"){\n\t\t\treturn getErrorLine(error)+\",ERROR:\"+error;\n\t\t}\n\t\tBufferedImage image=null;\t\n\t\ttry {\n File f = new File(codePath+\".png\");\n\t\t\timage=ImageIO.read(f);\n \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in read\");\n\t\t} \n String imageString = null;\n ByteArrayOutputStream imageInBytes = new ByteArrayOutputStream();\n\t try {\n\t\t\tImageIO.write(image, \"png\", imageInBytes);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in write\");\n\t\t}\n\t byte[] imageBytes = imageInBytes.toByteArray();\n\t imageString = DatatypeConverter.printBase64Binary(imageBytes);\n\t try {\n\t\t\timageInBytes.close();\n\t\t\tp.getInputStream().close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in close\");\n }\n\t\treturn imageString;\n\t}", "public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }", "@Test\n\tpublic void test02JavaxActivationJavaxImageIOAsSystemPackageExtraWithBootdelegation()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tlaunchArgs.put(\"org.osgi.framework.bootdelegation\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}", "String getImage();", "private ImageLoader() {}", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "public static void main(String[] args) throws IOException {\n\n _project _sc = _project.of();\n //reads from a maven-central jar file\n _downloadArchiveConsumer.of(\"https://search.maven.org/remotecontent?filepath=com/github/javaparser/javaparser-core/3.15.18/javaparser-core-3.15.18-sources.jar\",\n (ZipEntry ze, InputStream is)-> {\n if( ze.getName().endsWith(\".java\")){\n _sc.add( _codeUnit.of(is) );\n }\n });\n System.out.println( _sc.size() );\n\n _project _src = _githubProject.of(\"https://github.com/edefazio/bincat\").load();\n //_sources _src = _sources.of();\n //_downloadArchive _da = _downloadArchive.of(url, (ZipEntry ze,InputStream is)-> {\n // if( ze.getName().endsWith(\".java\")){\n // _src.add( _codeUnit.of(is) );\n // }\n //});\n /*\n try( InputStream inputStream = url.openStream();\n ZipInputStream zis = new ZipInputStream(inputStream) ) {\n\n byte[] buffer = new byte[2048];\n\n while (zis.available() > 0) {\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"reading \" + ze.getName());\n\n if( ze.isDirectory() ){\n ze.\n } else if( ze.)\n\n if (!ze.isDirectory() && ze.getName().endsWith(\".java\")) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int len;\n while ((len = zis.read(buffer)) > 0) {\n baos.write(buffer, 0, len);\n }\n try {\n System.out.println(\"adding\" + ze.getName());\n _src.add(_codeUnit.of(baos.toString()));\n } catch (Exception e) {\n throw new _ioException(\"could not read from entry \" + ze.getName());\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n */\n\n System.out.println( \"finished reading \"+ _src.size());\n }", "public native String getFileName() throws MagickException;", "public static void main(String[] args) {\n\t\tfinal String path = args.length > 0 ? args[0] : \"/tmp/images.rar\";\n\t\t// start ImageJ\n\t\tnew ImageJ();\n\n\t\t// run the plugin\n\t\tnew Import_RAR().run(path);\n\t}", "private BufferedImage CreateBuffedImage(WinFileMappingBuffer fm, boolean bWithAlphaChanle) {\n BitmapFileBuffer bitmap = new BitmapFileBuffer();\n if (!bitmap.Load(fm.getBuffer())) {\n return null;\n }\n return bitmap.GetBuffedImage(bWithAlphaChanle);\n }", "@Test\n\tpublic void testImagePlusString() {\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"hongKongFooey.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNull(ip.getImage());\n\n\t\t// try a file that should exist\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNotNull(ip.getImage());\n\t\tassertEquals(2,ip.getNDimensions());\n\t\tassertEquals(2,ip.getHeight());\n\t\tassertEquals(3,ip.getWidth());\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.getNFrames());\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\t\tassertEquals(\"gray8-3x2-sub1.tif\",ip.getTitle());\n\t}", "public static void main(String[] src) throws UnsupportedEncodingException {\n List<String> cmd = new ArrayList<>();\n cmd.add(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n cmd.add(\"-no-remote\");\n cmd.add(\"-P\");\n cmd.add(\"aesha2\");\n// cmd.add(\"\\\"fileName\\\"\");\n ProcessBuilder builder = new ProcessBuilder().command(cmd);\n Process process = null;\n int exitCode=-1;\n\n try {\n process = builder.start();\n final Process finalProcess = process;\n Thread t=new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n finalProcess.destroy();\n }\n });\n t.start();\n exitCode = process.waitFor();\n } catch (InterruptedException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n } catch (IOException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n }\n process.destroy();\n System.out.println(exitCode);\n }", "private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}", "public static void main(String[] args) {\n Process p;\n try {\n String filename=\"/home/pramit/Desktop/Developers/Try/Test/orig_IMG_2.jpg\",isdl=\"1\";\n String[] cmd = { \"/bin/sh\",\"-c\",\"/home/pramit/IdeaProjects/DigitalKYCServer/src/com/company/crop_n_rotate.py \"\n +filename+\" \"+isdl};\n\n p = Runtime.getRuntime().exec(cmd);\n BufferedReader reader=new BufferedReader(new InputStreamReader(\n p.getInputStream()));\n p.waitFor();\n String z=String.valueOf(p.exitValue());\n System.out.println(\"z= \"+z);\n String line;\n while((line = reader.readLine()) != null) {\n System.out.println(line);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tSocket client=new Socket(\"localhost\",8888);\n\t\tInputStream is=new BufferedInputStream(new FileInputStream(\"src/ndl.png\"));\n\t\tOutputStream os=new BufferedOutputStream(client.getOutputStream());\n\t\tbyte[] flush=new byte[1024];\n\t\tint len=-1;\n\t\twhile((len=is.read(flush))!=-1) {\n\t\t\tos.write(flush, 0, len);\n\t\t}\n\t\tos.flush();\n\t\tos.close();\n\t\tis.close();\n\t\tclient.close();\n\t}", "private void addSystemDirFilesToImage() throws IOException {\n File sourceSystemDir = new File(builderContext.sourceTbOptionsDir, \"system.v2\");\n if (!isValidCSMSource(sourceSystemDir)) {\n // Fall back to the system default, ~/Amplio/ACM/system.v2\n sourceSystemDir = new File(AmplioHome.getAppSoftwareDir(), \"system.v2\");\n }\n\n File targetSystemDir = new File(imageDir, \"system\");\n\n // The csm_data.txt file. Control file for the TB.\n File csmData = new File(sourceSystemDir, \"csm_data.txt\");\n FileUtils.copyFileToDirectory(csmData, targetSystemDir);\n\n // Optionally, the source for csm_data.txt file. \n File controlDefFile = new File(sourceSystemDir, \"control_def.txt\");\n if (controlDefFile.exists()) {\n FileUtils.copyFileToDirectory(controlDefFile, targetSystemDir);\n }\n\n // If UF is hidden in the deployment, copy the appropriate 'uf.der' file to 'system/'\n if (deploymentInfo.isUfHidden()) {\n UfKeyHelper ufKeyHelper = new UfKeyHelper(builderContext.project);\n byte[] publicKey = ufKeyHelper.getPublicKeyFor(builderContext.deploymentNo);\n File derFile = new File(targetSystemDir, \"uf.der\");\n try (FileOutputStream fos = new FileOutputStream(derFile);\n DataOutputStream dos = new DataOutputStream(fos)){\n dos.write(publicKey);\n }\n }\n }", "private static final byte[] xfmt_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -94, 1, 0, 0, 0,\n\t\t\t\t0, -1, -1, -1, 28, 28, 28, -128, -128, -128, -64, -64, -64, -1,\n\t\t\t\t-1, -1, 0, 0, 0, 0, 0, 0, 33, -7, 4, 1, 0, 0, 1, 0, 44, 0, 0,\n\t\t\t\t0, 0, 16, 0, 16, 0, 0, 3, 62, 24, -70, -36, 59, 48, 74, -8,\n\t\t\t\t-118, -67, -40, 2, 53, 10, -8, 32, -40, 109, -63, 40, -100,\n\t\t\t\t-24, 57, 114, -98, 80, -92, -86, -57, 2, 48, -70, -106, 109,\n\t\t\t\t45, -36, -90, -50, -25, -75, 31, 96, 34, -111, -31, 50, 72, 82,\n\t\t\t\t32, -60, 4, 57, 58, 23, -62, 64, -71, 104, 54, 29, -40, 70, 2,\n\t\t\t\t0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] xfuzzysave_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, 96,\n\t\t\t\t96, 96, -128, -128, -128, -112, -112, -112, -64, -64, -64,\n\t\t\t\t-112, -112, -112, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -2,\n\t\t\t\t14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77,\n\t\t\t\t80, 0, 33, -7, 4, 1, 10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0,\n\t\t\t\t0, 3, 64, 8, -86, -43, 11, 45, -82, -24, 32, -83, -74, -80, 43,\n\t\t\t\t-39, -26, -35, 7, 98, -39, -24, -119, -41, 23, 8, 67, -37, 10,\n\t\t\t\t-127, 86, -82, 66, 109, 7, 79, -76, -70, 111, -52, -47, -74,\n\t\t\t\t-102, -17, 18, 40, 26, -115, -96, 34, 97, -71, 44, 38, 3, 77,\n\t\t\t\t-88, -13, 7, 37, 40, -89, -60, 42, -77, -104, 0, 0, 59 };\n\t\treturn data;\n\t}", "public static void main(String[] args) {\n// file.getParentFile().mkdirs();\r\n// System.out.println(file.getParentFile().exists());\r\n\r\n String filePath = \"e:\\\\hello\";\r\n String filePath1 = \"e:\\\\_hello.txt\";\r\n String filePath2 = \"e:\\\\688885d3df6a19bbc8c827419650ca75(2)\";\r\n String filePath3 = \"e:\\\\688885d3df6a19bbc8c827419650ca75.jpg\";\r\n String filePath4 = \"e:\\\\ASP Export Web Service\";\r\n\r\n\r\n\r\n\r\n File file = new File(filePath);\r\n File file1 = new File(filePath2);\r\n File file2 = new File(filePath4);\r\n// try (\r\n// InputStream is = new BufferedInputStream(new FileInputStream(file));\r\n// InputStream is1 = new BufferedInputStream(new FileInputStream(file1));\r\n// InputStream is2 = new BufferedInputStream(new FileInputStream(file2));\r\n// ) {\r\n// AutoDetectParser parser = new AutoDetectParser();\r\n// Detector detector = parser.getDetector();\r\n// Metadata md = new Metadata();\r\n// md.add(Metadata.RESOURCE_NAME_KEY, filePath);\r\n// MediaType mediaType = detector.detect(is, md);\r\n// System.out.println(mediaType.toString());\r\n//\r\n// md.add(Metadata.RESOURCE_NAME_KEY, filePath2);\r\n// mediaType = detector.detect(is1, md);\r\n// System.out.println(mediaType.toString());\r\n//\r\n// md.add(Metadata.RESOURCE_NAME_KEY, filePath4);\r\n// mediaType = detector.detect(is2, md);\r\n// System.out.println(mediaType.toString());\r\n// }catch(IOException e){\r\n// e.printStackTrace();\r\n// }\r\n\r\n\r\n// MimeUtil2 mimeUtil = new MimeUtil2();\r\n// mimeUtil.registerMimeDetector(\"eu.medsea.mimeutil.detector.MagicMimeMimeDetector\");\r\n// String mimeType = MimeUtil2.getMostSpecificMimeType(mimeUtil.getMimeTypes(filePath)).toString();\r\n// System.out.println(mimeType);\r\n// String mimeType1 = MimeUtil2.getMostSpecificMimeType(mimeUtil.getMimeTypes(filePath1)).toString();\r\n// System.out.println(mimeType1);\r\n\r\n// String ext1 = URLConnection.guessContentTypeFromName(filePath);\r\n// System.out.println(ext1);\r\n// String ext2 = URLConnection.guessContentTypeFromName(filePath1);\r\n// System.out.println(ext2);\r\n\r\n// File file = new File(filePath);\r\n// File file1 = new File(filePath1);\r\n// try (\r\n// InputStream is = new BufferedInputStream(new FileInputStream(file));\r\n// InputStream is1 = new BufferedInputStream(new FileInputStream(file1));\r\n// ){\r\n// String mimeType = URLConnection.guessContentTypeFromStream(is);\r\n// System.out.println(mimeType);\r\n//\r\n// String mimeType1 = URLConnection.guessContentTypeFromStream(is1);\r\n// System.out.println(mimeType1);\r\n// }catch(IOException e){\r\n// e.printStackTrace();\r\n// }\r\n\r\n// FileDataSource ds = new FileDataSource(filePath);\r\n// String contentType = ds.getContentType();\r\n// System.out.println(\"1-The MIME type of the file e:\\\\hello is: \" + contentType);\r\n//\r\n// FileTypeMap fileTypeMap = FileTypeMap.getDefaultFileTypeMap();\r\n// String fileTypeMapST = fileTypeMap.getContentType(filePath);\r\n// System.out.println(\"2-The MIME type of the file e:\\\\hello is: \" + fileTypeMapST);\r\n//\r\n String extension = FilenameUtils.getExtension(filePath);\r\n System.out.println(\"3:>\"+extension+\"<\");\r\n String extension1 = FilenameUtils.getExtension(filePath1);\r\n System.out.println(\"4:>\"+extension1+\"<\");\r\n//\r\n// String extension2 = com.google.common.io.Files.getFileExtension(filePath);\r\n// System.out.println(\"5:>\"+extension2+\"<\");\r\n// String extension3 = com.google.common.io.Files.getFileExtension(filePath1);\r\n// System.out.println(\"6:>\"+extension3+\"<\");\r\n//\r\n// try{\r\n// java.nio.file.Path path4 = java.nio.file.Paths.get(filePath);\r\n// String extension4 = java.nio.file.Files.probeContentType(path4);\r\n// System.out.println(\"7:>\"+extension4+\"<\");\r\n// String extension5 = com.google.common.io.Files.getFileExtension(filePath1);\r\n// System.out.println(\"8:>\"+extension5+\"<\");\r\n// }catch(IOException e){\r\n// e.printStackTrace();\r\n// }\r\n//\r\n// File file6 = new File(filePath);\r\n// String s6 = new MimetypesFileTypeMap().getContentType(file6);\r\n// System.out.println(\"9:>\"+s6+\"<\");\r\n// File file7 = new File(filePath1);\r\n// String s7 = new MimetypesFileTypeMap().getContentType(file7);\r\n// System.out.println(\"10:>\"+s7+\"<\");\r\n }", "public String getImageResource() {\n \t\t// if (isWindows)\n \t\t// return \"/\" + new File(imageResource).getPath();\n \t\t// else\n \t\treturn imageResource;\n \t}", "@Test\n void testQuickBasics() throws Exception {\n HMEFMessage msg;\n try (InputStream is = _samples.openResourceAsStream(\"quick-winmail.dat\")) {\n msg = new HMEFMessage(is);\n }\n\n MAPIAttribute rtfAttr = msg.getMessageMAPIAttribute(MAPIProperty.RTF_COMPRESSED);\n assertNotNull(rtfAttr);\n assertTrue(rtfAttr instanceof MAPIRtfAttribute);\n\n // Check the start of the compressed version\n byte[] data = ((MAPIRtfAttribute) rtfAttr).getRawData();\n assertEquals(5907, data.length);\n\n // First 16 bytes is header stuff\n // Check it has the length + compressed marker\n assertEquals(5907 - 4, LittleEndian.getShort(data));\n assertEquals(\n \"LZFu\",\n StringUtil.getFromCompressedUnicode(data, 8, 4)\n );\n\n\n // Now Look at the code\n byte[] exp = {\n (byte) 0x07, // Flag: cccUUUUU\n (byte) 0x00, // c1a: offset 0 / 0x000\n (byte) 0x06, // c1b: length 6+2 -> {\\rtf1\\a\n (byte) 0x01, // c2a: offset 16 / 0x010\n (byte) 0x01, // c2b: length 1+2 -> def\n (byte) 0x0b, // c3a: offset 182 / 0xb6\n (byte) 0x60, // c3b: length 0+2 -> la\n (byte) 0x6e, // n\n (byte) 0x67, // g\n (byte) 0x31, // 1\n (byte) 0x30, // 0\n (byte) 0x32, // 2\n\n (byte) 0x66, // Flag: UccUUccU\n (byte) 0x35, // 5\n (byte) 0x00, // c2a: offset 6 / 0x006\n (byte) 0x64, // c2b: length 4+2 -> \\ansi\\a\n (byte) 0x00, // c3a: offset 7 / 0x007\n (byte) 0x72, // c3b: length 2+2 -> nsi\n (byte) 0x63, // c\n (byte) 0x70, // p\n (byte) 0x0d, // c6a: offset 221 / 0x0dd\n (byte) 0xd0, // c6b: length 0+2 -> g1\n (byte) 0x0e, // c7a: offset 224 / 0x0e0\n (byte) 0x00, // c7b: length 0+2 -> 25\n (byte) 0x32, // 2\n };\n\n assertArrayEquals(exp, Arrays.copyOfRange(data, 16, 16+25));\n }", "public static BufferedImage iconMaker(String s){\n BufferedImage buttonIcon;\n try{\n buttonIcon = ImageIO.read(new File(FILE_PATH + s));\n }catch(IOException e){\n buttonIcon = null;\n System.out.println(\"BooHOO\");\n }\n return buttonIcon;\n }", "private void init() {\r\n try {\r\n // extracts just sizes only.\r\n ZipFile zf = new ZipFile(jarFileName);\r\n Enumeration e = zf.entries();\r\n ZipEntry zentry = null;\r\n while (e.hasMoreElements()) {\r\n zentry = (ZipEntry) e.nextElement();\r\n if (debugOn) {\r\n System.out.println(dumpZipEntry(zentry));\r\n }\r\n htSizes.put(zentry.getName(), (int) zentry.getSize());\r\n }\r\n if (zf != null) {\r\n zf.close();\r\n }\r\n zf = null;\r\n e = null;\r\n zentry = null;\r\n // extract resources and put them into the hashtable.\r\n FileInputStream fis = new FileInputStream(jarFileName);\r\n BufferedInputStream bis = new BufferedInputStream(fis);\r\n ZipInputStream zis = new ZipInputStream(bis);\r\n ZipEntry ze = null;\r\n while ((ze = zis.getNextEntry()) != null) {\r\n if (ze.isDirectory()) {\r\n continue;\r\n }\r\n if (debugOn) {\r\n System.out.println(\"ze.getName()=\" + ze.getName() + \",\" + \"getSize()=\" + ze.getSize());\r\n }\r\n int size = (int) ze.getSize();\r\n // -1 means unknown size.\r\n if (size == -1) {\r\n size = ((Integer) htSizes.get(ze.getName())).intValue();\r\n }\r\n byte[] b = new byte[size];\r\n int rb = 0;\r\n int chunk = 0;\r\n while ((size - rb) > 0) {\r\n chunk = zis.read(b, rb, size - rb);\r\n if (chunk == -1) {\r\n break;\r\n }\r\n rb += chunk;\r\n }\r\n // add to internal resource hashtable\r\n htJarContents.put(ze.getName(), b);\r\n b = null;\r\n if (debugOn) {\r\n System.out.println(ze.getName() + \" rb=\" + rb + \",size=\" + size + \",csize=\"\r\n + ze.getCompressedSize());\r\n }\r\n }\r\n if (fis != null) {\r\n fis.close();\r\n }\r\n if (bis != null) {\r\n bis.close();\r\n }\r\n if (zis != null) {\r\n zis.close();\r\n }\r\n fis = null;\r\n bis = null;\r\n zis = null;\r\n ze = null;\r\n } catch (NullPointerException e) {\r\n System.out.println(\"done.\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private Images() {}" ]
[ "0.649006", "0.5785937", "0.55668765", "0.550811", "0.53534263", "0.53470325", "0.52456963", "0.5195447", "0.516976", "0.5136963", "0.51057553", "0.50884914", "0.5077349", "0.50251997", "0.5007816", "0.5006118", "0.5004697", "0.49998137", "0.49725136", "0.49710113", "0.49604294", "0.49585366", "0.49552602", "0.4952523", "0.49489316", "0.4942261", "0.49334535", "0.49225354", "0.490523", "0.49008453", "0.4899095", "0.48936027", "0.48697945", "0.4862279", "0.48308945", "0.4830081", "0.4813455", "0.4813068", "0.4810765", "0.47923437", "0.47900683", "0.47891498", "0.47869495", "0.47857824", "0.47794577", "0.47781193", "0.4757857", "0.47575277", "0.47504196", "0.47435695", "0.47416812", "0.47357646", "0.47296804", "0.47258413", "0.4718524", "0.47169435", "0.4714144", "0.470906", "0.46928167", "0.46902475", "0.46894398", "0.46844774", "0.4676363", "0.46734205", "0.46679965", "0.46672833", "0.46576536", "0.46530047", "0.46409532", "0.4638946", "0.46364895", "0.46347535", "0.46303448", "0.46195775", "0.46115443", "0.45927253", "0.45884338", "0.45775732", "0.45773613", "0.45738047", "0.45724994", "0.45657125", "0.45655707", "0.45619166", "0.4561236", "0.45596346", "0.4550186", "0.45496166", "0.45477733", "0.45473924", "0.45472178", "0.45464596", "0.45393595", "0.45376447", "0.4534834", "0.4532797", "0.45249003", "0.4519895", "0.45174354", "0.45168805" ]
0.49906713
18
byte[] raw = xrg.Exec_as_bry(Src_imageMagick); int find_pos = Byte_ary_finder.Find_fwd(raw, Bry_windows_zip);if (find_pos == ByteAry_.NotFound) return Fail(); int bgn_pos = Byte_ary_finder.Find_bwd(raw, Byte_ascii.Quote, find_pos);if (bgn_pos == ByteAry_.NotFound) return Fail(); ++bgn_pos; int end_pos = Byte_ary_finder.Find_fwd(raw, Byte_ascii.Quote, bgn_pos);if (end_pos == ByteAry_.NotFound) return Fail(); String src = Src_imageMagick + String_.new_ascii_(ByteAry_.Mid(raw, bgn_pos, end_pos));
@Override public byte Async_init() { String src = "http://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/ImageMagick-6.8.8-1-Q16-x86-windows.zip"; this.Init("downloading", src, trg); return super.Async_init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String executeCommand(String zipCommand) {\n\t\tString res = \"\";\n\t\t//String command = zipCommand + \" \" + givenFile + targetDir;\n\t\tString command = zipCommand;\n\t\tString[] commandAndArgs = new String[]{ \"/bin/sh\", \"-c\", command};\n\t\t//System.out.println(commandAndArgs);\n\t\t// Get Runtime instance.\n\t\tRuntime rt = Runtime.getRuntime();\n\t\t// Declare a process.\n\t\tProcess p0 = null;\n\t\ttry {\n\t\t\t// Let's execute the command.\n\t\t\tp0 = rt.exec(commandAndArgs);\n\t\t\t// Get any input stream.\n\t\t\tInputStream instd = p0.getInputStream();\n\t\t\t// Let's get it through buffered reader.\n\t\t\tBufferedReader buf_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(instd));\n\t\t\tString temp = \"\";\n\t\t\t// System.out.println(\"new line executed command: \" + command);\n\t\t\twhile ((temp = buf_reader.readLine()) != null) {\n\t\t\t\t// System.out.println(\"temp: \" + temp);\n\t\t\t\t//res += temp + \"\\n\";\n\t\t\t}\n\t\t\t// Let's close buffered reader\n\t\t\tbuf_reader.close();\n\n\t\t\t// Get any error stream.\n\t\t\tInputStream errstd = p0.getErrorStream();\n\t\t\t// Let's get it through buffered reader.\n\t\t\tBufferedReader buf_err_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(errstd));\n\t\t\t// Initialize a temporary variable.\n\t\t\ttemp = \"\";\n\t\t\t// Until there's no more error message,\n\t\t\twhile ((temp = buf_err_reader.readLine()) != null) {\n\t\t\t\t// Append a current error message to the error message\n\t\t\t\t// container.\n\t\t\t\tres += temp + \"\\n\";\n\t\t\t}\n\t\t\t// Report an error.\n\t\t\tSystem.err.println(res);\n\t\t\t// Close buffered error reader.\n\t\t\tbuf_err_reader.close();\n\t\t\t// Let's wait p0 for completion.\n\t\t\tp0.waitFor();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "public native String getMagick() throws MagickException;", "private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }", "private static final byte[] xfuzzyload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -82,\n\t\t\t\t69, 12, -128, -128, -128, -1, -1, -1, -64, -64, -64, -1, -1, 0,\n\t\t\t\t0, 0, 0, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 6, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 75, 8, -86,\n\t\t\t\t-42, 11, 45, -82, -24, 32, -83, -42, -80, 43, -39, -26, -35,\n\t\t\t\t22, -116, 1, -9, 24, -127, -96, 10, 101, 23, 44, 2, 49, -56,\n\t\t\t\t108, 21, 15, -53, -84, -105, 74, -86, -25, 50, -62, -117, 68,\n\t\t\t\t44, -54, 74, -87, -107, 82, 21, 40, 8, 81, -73, -96, 78, 86,\n\t\t\t\t24, 53, 82, -46, 108, -77, -27, -53, 78, -85, -111, -18, 116,\n\t\t\t\t87, 8, 23, -49, -123, 4, 0, 59 };\n\t\treturn data;\n\t}", "public static boolean m128357b(String str) {\n C7573i.m23587b(str, \"imagePath\");\n if (!C38527bf.m123172a(str)) {\n return false;\n }\n Options options = new Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(str, options);\n String str2 = options.outMimeType;\n CharSequence charSequence = str2;\n if (!TextUtils.isEmpty(charSequence)) {\n C7573i.m23582a((Object) str2, \"type\");\n if (C7634n.m23776c(charSequence, (CharSequence) \"png\", false) || C7634n.m23776c(charSequence, (CharSequence) \"webp\", false) || C7634n.m23776c(charSequence, (CharSequence) \"bmp\", false) || C7634n.m23776c(charSequence, (CharSequence) \"jpg\", false) || C7634n.m23776c(charSequence, (CharSequence) \"jpeg\", false)) {\n return true;\n }\n }\n return false;\n }", "private static final byte[] pkgload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 0, 0,\n\t\t\t\t0, -91, 42, 42, -128, -128, -128, 94, 94, 94, -1, -1, -1, -1,\n\t\t\t\t-1, 0, -64, -64, -64, 94, 24, 24, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32,\n\t\t\t\t71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0, 0,\n\t\t\t\t16, 0, 16, 0, 0, 4, 88, 16, 73, 32, 103, -67, 8, -128, 64, 51,\n\t\t\t\t-17, -43, 22, -116, -38, 72, 98, -101, 38, 12, 37, 120, 1, 66,\n\t\t\t\t60, -60, 84, 44, -124, -33, -38, 18, -4, 45, -110, 63, 78, -63,\n\t\t\t\t64, -16, -91, 14, -100, -49, 112, 120, -53, 108, -112, 74, -61,\n\t\t\t\t-14, 102, -85, 90, -103, 8, 1, 111, -53, 45, 2, 10, 84, -62,\n\t\t\t\t82, 74, 30, -62, -102, -38, -79, 90, 0, -109, 104, -53, -16,\n\t\t\t\t66, -37, 77, -120, -109, -39, 21, -85, -98, 29, 1, 0, 59 };\n\t\treturn data;\n\t}", "private static boolean loadFromZip(android.content.Context r8, java.io.File r9, java.io.File r10, java.lang.String r11) {\n /*\n r3 = 0;\n r0 = 1;\n r1 = 0;\n r4 = r9.listFiles();\t Catch:{ Exception -> 0x0013 }\n r5 = r4.length;\t Catch:{ Exception -> 0x0013 }\n r2 = r1;\n L_0x0009:\n if (r2 >= r5) goto L_0x0017;\n L_0x000b:\n r6 = r4[r2];\t Catch:{ Exception -> 0x0013 }\n r6.delete();\t Catch:{ Exception -> 0x0013 }\n r2 = r2 + 1;\n goto L_0x0009;\n L_0x0013:\n r2 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r2);\n L_0x0017:\n r4 = new java.util.zip.ZipFile;\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r2 = r8.getApplicationInfo();\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r2 = r2.sourceDir;\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r4.<init>(r2);\t Catch:{ Exception -> 0x0106, all -> 0x00ff }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2.<init>();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"lib/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.append(r11);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"libtmessages.27.so\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r4.getEntry(r2);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n if (r2 != 0) goto L_0x0084;\n L_0x004a:\n r0 = new java.lang.Exception;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2.<init>();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"Unable to find file in apk:lib/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.append(r11);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"/\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r5 = \"tmessages.27\";\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r0.<init>(r2);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n throw r0;\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n L_0x0072:\n r0 = move-exception;\n r2 = r3;\n r3 = r4;\n L_0x0075:\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ all -> 0x0102 }\n if (r2 == 0) goto L_0x007d;\n L_0x007a:\n r2.close();\t Catch:{ Exception -> 0x00eb }\n L_0x007d:\n if (r3 == 0) goto L_0x0082;\n L_0x007f:\n r3.close();\t Catch:{ Exception -> 0x00f0 }\n L_0x0082:\n r0 = r1;\n L_0x0083:\n return r0;\n L_0x0084:\n r3 = r4.getInputStream(r2);\t Catch:{ Exception -> 0x0072, all -> 0x00da }\n r2 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2.<init>(r10);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r5 = 4096; // 0x1000 float:5.74E-42 double:2.0237E-320;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n L_0x0091:\n r6 = r3.read(r5);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n if (r6 <= 0) goto L_0x00a3;\n L_0x0097:\n java.lang.Thread.yield();\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r7 = 0;\n r2.write(r5, r7, r6);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n goto L_0x0091;\n L_0x009f:\n r0 = move-exception;\n r2 = r3;\n r3 = r4;\n goto L_0x0075;\n L_0x00a3:\n r2.close();\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = 1;\n r5 = 0;\n r10.setReadable(r2, r5);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = 1;\n r5 = 0;\n r10.setExecutable(r2, r5);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = 1;\n r10.setWritable(r2);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n r2 = r10.getAbsolutePath();\t Catch:{ Error -> 0x00d5 }\n java.lang.System.load(r2);\t Catch:{ Error -> 0x00d5 }\n r2 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x00d5 }\n r5 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x00d5 }\n init(r2, r5);\t Catch:{ Error -> 0x00d5 }\n r2 = 1;\n nativeLoaded = r2;\t Catch:{ Error -> 0x00d5 }\n L_0x00c5:\n if (r3 == 0) goto L_0x00ca;\n L_0x00c7:\n r3.close();\t Catch:{ Exception -> 0x00e6 }\n L_0x00ca:\n if (r4 == 0) goto L_0x0083;\n L_0x00cc:\n r4.close();\t Catch:{ Exception -> 0x00d0 }\n goto L_0x0083;\n L_0x00d0:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x0083;\n L_0x00d5:\n r2 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r2);\t Catch:{ Exception -> 0x009f, all -> 0x00da }\n goto L_0x00c5;\n L_0x00da:\n r0 = move-exception;\n L_0x00db:\n if (r3 == 0) goto L_0x00e0;\n L_0x00dd:\n r3.close();\t Catch:{ Exception -> 0x00f5 }\n L_0x00e0:\n if (r4 == 0) goto L_0x00e5;\n L_0x00e2:\n r4.close();\t Catch:{ Exception -> 0x00fa }\n L_0x00e5:\n throw r0;\n L_0x00e6:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x00ca;\n L_0x00eb:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\n goto L_0x007d;\n L_0x00f0:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\n goto L_0x0082;\n L_0x00f5:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x00e0;\n L_0x00fa:\n r1 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r1);\n goto L_0x00e5;\n L_0x00ff:\n r0 = move-exception;\n r4 = r3;\n goto L_0x00db;\n L_0x0102:\n r0 = move-exception;\n r4 = r3;\n r3 = r2;\n goto L_0x00db;\n L_0x0106:\n r0 = move-exception;\n r2 = r3;\n goto L_0x0075;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.messenger.NativeLoader.loadFromZip(android.content.Context, java.io.File, java.io.File, java.lang.String):boolean\");\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "private static final byte[] xfsl_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 0, 0,\n\t\t\t\t-103, -83, 0, 0, -124, -124, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t44, -100, -113, -87, -53, 7, -48, -36, -101, 108, 90, 42, -81,\n\t\t\t\t-122, 59, 108, 62, 5, -34, -122, -120, 95, 18, 12, -126, 38,\n\t\t\t\t40, 41, 32, -84, -16, -22, 14, 83, -116, -107, 54, -119, 26,\n\t\t\t\t90, -28, -125, 0, -127, 5, 0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] xfsim_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -128,\n\t\t\t\t-128, -128, -64, -64, -64, 0, 0, 0, -1, -1, -1, 0, 0, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 14, 48, -58, 23, -86, -83, 64, 48, 48, -70, -17, -112,\n\t\t\t\t-74, 112, 66, 105, 14, -31, 54, 8, 68, -37, -94, -103, -54,\n\t\t\t\t-70, 4, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t2, 4, 68, 28, -97, -57, 24, 43, -124, -128, 2, 104, -54, 40,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "@Override\n public byte[] getBytes(EscPosImage image) {\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n //\n bytes.write(ESC);\n bytes.write('a');\n bytes.write(justification.value);\n //\n int paramSize = image.getRasterSizeInBytes() + 10;\n int pL = paramSize & 0xFF;\n int pH = (paramSize & 0xFF00) >> 8 ;\n\n bytes.write(GS);\n bytes.write('(');\n bytes.write('L');\n bytes.write(pL); // pl\n bytes.write(pH); // ph\n bytes.write(48); // m\n bytes.write(112); //fn\n bytes.write(48); // a\n bytes.write(graphicsImageBxBy.bx); // bx\n bytes.write(graphicsImageBxBy.by); // by\n bytes.write(49); // c\n\n // bits in horizontal direction for the bit image\n int horizontalBits = image.getWidthOfImageInBits();\n int xL = horizontalBits & 0xFF;\n int xH = (horizontalBits & 0xFF00) >> 8 ;\n // \n // bits in vertical direction for the bit image\n int verticalBits = image.getHeightOfImageInBits();\n // getting first and second bytes separatted\n int yL = verticalBits & 0xFF;\n int yH = (verticalBits & 0xFF00) >> 8 ;\n \n bytes.write(xL);\n bytes.write(xH);\n bytes.write(yL);\n bytes.write(yH);\n // write bytes\n byte [] rasterBytes = image.getRasterBytes().toByteArray();\n bytes.write(rasterBytes,0,rasterBytes.length);\n \n // function 050\n bytes.write(GS);\n bytes.write('(');\n bytes.write('L');\n bytes.write(2); // pl\n bytes.write(0); // ph\n bytes.write(48); //m\n bytes.write(50); //fn\n \n \n \n\n //\n return bytes.toByteArray();\n \n }", "private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}", "private static final byte[] pkgclose_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 0, 0,\n\t\t\t\t0, -91, 42, 42, -128, -128, -128, 94, 94, 94, 94, 24, 24, 0, 0,\n\t\t\t\t-128, -1, -1, -1, -1, -1, 0, -64, -64, -64, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t33, -1, 11, 78, 69, 84, 83, 67, 65, 80, 69, 50, 46, 48, 3, 1,\n\t\t\t\t0, 0, 0, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104,\n\t\t\t\t32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 5, 0, 44, 0, 0, 0,\n\t\t\t\t0, 16, 0, 16, 0, 0, 4, 75, -80, 72, 32, 103, -67, 5, -128, 64,\n\t\t\t\t51, -17, -43, 22, -116, -38, 72, 98, -101, 38, 12, 37, 120, 1,\n\t\t\t\t66, 60, -60, 110, -8, -83, 45, 106, 126, 123, -35, 18, 31,\n\t\t\t\t-115, 80, 51, -39, 0, 1, -120, -92, 18, -47, 17, 29, -103, 74,\n\t\t\t\t36, 72, -13, -124, 34, -103, 40, 77, 52, -118, -103, 36, -91,\n\t\t\t\t-33, 110, 6, -6, -59, 118, -81, 75, 115, 118, 40, -116, 0, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 1, 0, 44, 7, 0, 7, 0, 9, 0, 9, 0, 0, 4,\n\t\t\t\t22, 16, -56, 73, -111, -67, 72, -26, 11, 114, -33, -97, 102,\n\t\t\t\t125, -34, -72, -107, 100, 39, 98, 30, 69, 69, 0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] pkg_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -1,\n\t\t\t\t-6, -51, 0, 0, 0, -91, 42, 42, -128, -128, -128, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100,\n\t\t\t\t101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4,\n\t\t\t\t1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 64, 8, -86,\n\t\t\t\t-79, -48, 110, -123, 32, 32, -99, 110, -118, 93, 41, -57, -34,\n\t\t\t\t54, 13, 83, 88, 61, -35, -96, 6, -21, 37, -87, 48, 27, 75, -23,\n\t\t\t\t-38, -98, -26, 88, 114, 120, -18, 75, -102, 96, 7, -62, 16, 85,\n\t\t\t\t-116, 39, -38, -121, -105, 44, 46, 121, 68, -122, 39, -124,\n\t\t\t\t-119, 72, 47, 81, -85, 84, -101, 0, 0, 59 };\n\t\treturn data;\n\t}", "public static String bU(String str) {\n Throwable th;\n Throwable th2;\n ZipFile zipFile = null;\n if (str == null) {\n return \"\";\n }\n ZipFile zipFile2;\n BufferedReader bufferedReader;\n BufferedReader bufferedReader2;\n try {\n zipFile2 = new ZipFile(str);\n try {\n String readLine;\n if (new File(str).exists()) {\n ZipEntry entry = zipFile2.getEntry(\"META-INF/MANIFEST.MF\");\n if (entry != null) {\n int indexOf;\n bufferedReader = new BufferedReader(new InputStreamReader(zipFile2.getInputStream(entry)));\n while (true) {\n try {\n readLine = bufferedReader.readLine();\n if (readLine == null) {\n break;\n } else if (readLine.contains(\"classes.dex\")) {\n readLine = bufferedReader.readLine();\n if (readLine != null && readLine.contains(\"SHA1-Digest\")) {\n indexOf = readLine.indexOf(\":\");\n if (indexOf > 0) {\n break;\n }\n }\n }\n } catch (Throwable th3) {\n th = th3;\n zipFile = zipFile2;\n th2 = th;\n }\n }\n readLine = readLine.substring(indexOf + 1).trim();\n if (bufferedReader != null) {\n try {\n bufferedReader.close();\n } catch (Throwable th4) {\n d.c(\"SoftListProfileService\", th4);\n }\n }\n if (zipFile2 != null) {\n try {\n zipFile2.close();\n } catch (Throwable th22) {\n d.c(\"SoftListProfileService\", th22);\n }\n }\n return readLine;\n }\n if (bufferedReader2 != null) {\n try {\n bufferedReader2.close();\n } catch (Throwable th32) {\n d.c(\"SoftListProfileService\", th32);\n }\n }\n if (zipFile2 != null) {\n try {\n zipFile2.close();\n } catch (Throwable th222) {\n d.c(\"SoftListProfileService\", th222);\n }\n }\n return \"\";\n }\n readLine = \"\";\n if (zipFile2 != null) {\n try {\n zipFile2.close();\n } catch (Throwable th2222) {\n d.c(\"SoftListProfileService\", th2222);\n }\n }\n return readLine;\n } catch (Throwable th42) {\n th = th42;\n Object obj = zipFile;\n zipFile = zipFile2;\n th2222 = th;\n if (bufferedReader != null) {\n try {\n bufferedReader.close();\n } catch (Throwable th422) {\n d.c(\"SoftListProfileService\", th422);\n }\n }\n if (zipFile != null) {\n try {\n zipFile.close();\n } catch (Throwable th322) {\n d.c(\"SoftListProfileService\", th322);\n }\n }\n throw th2222;\n }\n } catch (Throwable th5) {\n th2222 = th5;\n bufferedReader = zipFile;\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (zipFile != null) {\n zipFile.close();\n }\n throw th2222;\n }\n }", "public static String m58670dY(String str, int i) {\n int i2 = 0;\n AppMethodBeat.m2504i(79319);\n if (str == null || str.length() == 0) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"getIconPath : invalid argument\");\n AppMethodBeat.m2505o(79319);\n return null;\n }\n C5728b c5728b = new C5728b(C34832a.bYG());\n if (!c5728b.exists()) {\n if (!c5728b.dMC().exists()) {\n C5728b dMC = c5728b.dMC();\n C5728b c5728b2 = new C5728b(C5736j.m8649w(dMC.dMD()) + System.currentTimeMillis());\n if (c5728b2.mkdirs()) {\n c5728b2.mo11675o(dMC);\n } else {\n C4990ab.m7413e(\"MicroMsg.AppInfoStorage\", \"mkdir error, %s\", C5736j.m8649w(dMC.dMD()));\n if (i2 == 0) {\n AppMethodBeat.m2505o(79319);\n return null;\n }\n String str2;\n switch (i) {\n case 1:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \".png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 2:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_wm.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 3:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sg.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 4:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sp.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 5:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sl.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n default:\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"getIconPath, unknown iconType = \".concat(String.valueOf(i)));\n AppMethodBeat.m2505o(79319);\n return null;\n }\n }\n }\n if (!(c5728b.mkdirs() && c5728b.isDirectory())) {\n C4990ab.m7413e(\"MicroMsg.AppInfoStorage\", \"mkdir error. %s\", r3);\n if (i2 == 0) {\n }\n }\n }\n i2 = 1;\n if (i2 == 0) {\n }\n }", "private static final byte[] xfj_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, -1, 0,\n\t\t\t\t0, 0, 0, 102, 0, 0, 65, -52, -52, -1, -1, -1, -1, -1, -1, -52,\n\t\t\t\t-35, 0, 0, 102, 102, -52, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33,\n\t\t\t\t-2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73,\n\t\t\t\t77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0, 0, 16, 0,\n\t\t\t\t16, 0, 0, 4, 92, 16, 73, 9, -24, -84, 51, 99, 84, 119, -106, 1,\n\t\t\t\t16, -124, -31, 7, 6, 2, -112, 10, -23, 24, 76, -63, 48, -90,\n\t\t\t\t-86, -8, 34, 119, 64, 12, -78, 27, -53, 56, 24, 97, -57, -29,\n\t\t\t\t13, 95, 55, 28, -95, 48, 100, 46, -111, -97, 0, 115, 122, 76,\n\t\t\t\t26, -82, -40, -31, 18, -104, -63, 94, -117, 50, -62, -31, 32,\n\t\t\t\t25, 123, 125, -53, 37, 25, -31, 53, 104, -99, 99, -55, 21, 113,\n\t\t\t\t-8, -14, -58, 107, -74, -95, -21, -5, -52, 77, -128, 17, 0, 59 };\n\t\treturn data;\n\t}", "public static void main(String[] args) {\n\t\tString str = \"http://192.168.1.188/stw/images/20160814/33db29ec33d5.jpg\";\n\t\tSystem.out.println(str.substring(str.lastIndexOf(\"images\")+7,str.length()));\n\t\t\n\t}", "public native MagickImage minifyImage() throws MagickException;", "byte[] getRecipeImage(CharSequence query);", "public ImageFile(String filename) throws ImageException, FileNotFoundException, IOException {\r\n\tFile file = new File(filename);\r\n\tif (!file.exists()){\r\n\t\tthrow new ImageException(\"image file '\"+filename+\"' not found\");\r\n\t}\r\n\ttry {\r\n\t\t//\r\n\t\t// try native format\r\n\t\t//\r\n\t\tloadNativeFormat(filename);\r\n\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully as native format\");\r\n\t}catch (Exception e){\r\n\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), exception loading native format, trying TIFF, exception=\"+e.getMessage());\r\n\t\ttry {\t\t\t\t\r\n\t\t\t// try TIFF format\r\n\t\t\tloadTIFFFormat(new FileTiffInputSource(filename));\r\n\t\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully as TIFF\");\r\n\t\t\treturn;\r\n\t\t}catch (Exception e2){\r\n\t\t\tSystem.out.println(\"ImageFile:ImageFile(\"+filename+\"), exception loading TIFF, trying zip format, exception=\"+e2.getMessage());\r\n\t\t\tbyte buffer[] = new byte[65536];\r\n\t\t\tFileInputStream fis = new FileInputStream(filename);\r\n\t\t\ttry {\r\n\t\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\t\t\tint numBytesRead = 0;\r\n\t\t\t\twhile ((numBytesRead = fis.read(buffer)) > 0){\r\n\t\t\t\t\tbos.write(buffer,0,numBytesRead);\r\n\t\t\t\t}\r\n\t\t\t\tbyte imageData[] = bos.toByteArray();\r\n\t\t\t\tbyte entries[][] = getZipFileEntries(imageData);\r\n\t\t\t\tif (entries!=null){\r\n\t\t\t\t\tVCImage vcImage = getVCImageFromZSeries(entries);\r\n\t\t\t\t\tcreateFromVCImage(vcImage);\r\n\t\t\t\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new ImageException(\"Image format not recognized for file '\"+filename+\"'\");\r\n\t\t\t\t}\r\n\t\t\t}finally {\r\n\t\t\t\tif (fis!=null){\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n}", "public native String getFileName() throws MagickException;", "private static final byte[] xfsim_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, 0, 0,\n\t\t\t\t0, -128, -128, -128, -64, -64, -64, 28, 28, 28, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 30, 48, -58, 39, -86, -83, 1, -80, 64, -70, -17, -112,\n\t\t\t\t-74, 112, 64, 105, 18, -31, 70, 0, 67, -37, -94, -103, -54,\n\t\t\t\t-70, 3, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t10, 8, 68, 28, -97, -57, 24, 43, -124, -128, 0, 104, -54, 8,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "public static String m2877a(byte[] bArr, boolean z) {\n int length = bArr.length;\n StringBuilder sb = new StringBuilder(length << 1);\n int i = 0;\n while (i < length && (!z || i != length - 1 || (bArr[i] & ExifInterface.MARKER) != 0)) {\n char[] cArr = f3519a;\n sb.append(cArr[(bArr[i] & 240) >>> 4]);\n sb.append(cArr[bArr[i] & 15]);\n i++;\n }\n return sb.toString();\n }", "private static final byte[] xfsg_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -77, 15, 0, 16,\n\t\t\t\t67, 118, -39, 99, 98, 59, 89, -124, -8, -47, 35, 122, -116,\n\t\t\t\t-109, -17, -114, 100, -16, -35, -75, -28, 81, 59, -27, -97,\n\t\t\t\t-106, -1, -32, 102, -1, -42, 36, -1, -42, 35, -1, -17, -65, -1,\n\t\t\t\t-43, 32, -31, 58, 62, -1, -1, -1, 33, -7, 4, 1, 0, 0, 15, 0,\n\t\t\t\t44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 4, 105, -16, -55, -87, -106,\n\t\t\t\t-86, 107, 106, -39, 84, 98, 76, 114, 109, -46, -14, -127, -88,\n\t\t\t\t-46, 108, 77, -29, 20, 6, 104, 16, 64, 75, -75, 78, 94, -48,\n\t\t\t\t64, -35, -107, 56, 71, -64, 1, 16, 20, 91, -103, -57, -94, 85,\n\t\t\t\t56, 4, 16, 4, -29, 0, 9, 108, -48, 4, 4, 68, -32, -48, 106, 36,\n\t\t\t\t-105, -115, -98, 81, -24, -32, 122, 31, -71, 52, -111, 80, -56,\n\t\t\t\t-103, 21, 18, -75, 3, 5, 42, -4, 38, 106, 58, 67, -91, -111,\n\t\t\t\t-97, 68, 112, 120, 14, 113, 14, 22, 24, 125, -125, 120, 36,\n\t\t\t\t-126, -117, -117, 17, 0, 59 };\n\t\treturn data;\n\t}", "private static void zza(byte[] arrby, StringBuffer stringBuffer) {\n if (arrby == null) {\n stringBuffer.append(\"\\\"\\\"\");\n return;\n }\n stringBuffer.append('\\\"');\n int n = 0;\n do {\n if (n >= arrby.length) {\n stringBuffer.append('\\\"');\n return;\n }\n int n2 = arrby[n] & 0xFF;\n if (n2 == 92 || n2 == 34) {\n stringBuffer.append('\\\\').append((char)n2);\n } else if (n2 >= 32 && n2 < 127) {\n stringBuffer.append((char)n2);\n } else {\n stringBuffer.append(String.format(\"\\\\%03o\", n2));\n }\n ++n;\n } while (true);\n }", "public native int getCompression() throws MagickException;", "public InputStream mo7250b(String str, Object obj) {\n HttpURLConnection c = mo7251c(str, obj);\n int i = 0;\n while (c.getResponseCode() / 100 == 3 && i < 5) {\n c = mo7251c(c.getHeaderField(\"Location\"), obj);\n i++;\n }\n try {\n InputStream inputStream = c.getInputStream();\n if (mo7249a(c)) {\n return new C0558gl(new BufferedInputStream(inputStream, 32768), c.getContentLength());\n }\n C0597hm.m1054a((Closeable) inputStream);\n throw new IOException(\"Image request failed with response code \" + c.getResponseCode());\n } catch (IOException e) {\n C0597hm.m1055a(c.getErrorStream());\n throw e;\n }\n }", "private static final byte[] xfmt_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -128,\n\t\t\t\t-128, -128, -1, -1, -1, 0, 0, 0, 0, 0, -1, -64, -64, -64, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 62, 88, -70,\n\t\t\t\t-36, 11, 48, 74, -8, -126, -67, -40, 10, 5, -126, -8, 32, -40,\n\t\t\t\t109, -59, 56, -100, -24, 57, 114, -34, 16, -92, -86, -57, 10,\n\t\t\t\t48, -70, -106, 109, 61, -36, -90, -50, -25, -75, -97, 96, 34,\n\t\t\t\t-111, -31, 50, 72, 82, 33, -60, 4, 57, 58, 23, 2, 64, -71, 104,\n\t\t\t\t54, 29, -40, 70, 2, 0, 59 };\n\t\treturn data;\n\t}", "private static final byte[] xfuzzysave_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -82,\n\t\t\t\t69, 12, 0, 0, -128, -1, -1, -1, -1, -1, 0, -64, -64, -64, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 64, 8, -86,\n\t\t\t\t-43, 11, 45, -82, -24, 32, -83, -74, -80, 43, -39, -26, -35, 7,\n\t\t\t\t98, -39, -24, -119, -41, 23, 8, 67, -37, 10, -127, 86, -82, 66,\n\t\t\t\t109, 7, 79, -76, -70, 111, -52, -47, -74, -102, -17, 18, 40,\n\t\t\t\t26, -115, -96, 34, 97, -71, 44, 38, 3, 77, -88, -13, 7, 37, 40,\n\t\t\t\t-89, -60, 42, -77, -104, 0, 0, 59 };\n\t\treturn data;\n\t}", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "private static final byte[] xfuzzyclose_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -82,\n\t\t\t\t69, 12, 0, 0, 0, -64, -64, -64, -1, -1, -1, 33, -2, 14, 77, 97,\n\t\t\t\t100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33,\n\t\t\t\t-7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2, 54,\n\t\t\t\t-124, 61, 121, -112, 125, -83, 24, -116, 114, -96, -23, -48,\n\t\t\t\t-59, 121, 115, 90, 125, -102, 55, 109, -63, -119, -94, 86, 24,\n\t\t\t\t8, -18, 43, 4, 75, -45, -74, 110, -51, -39, -11, -99, -65, 118,\n\t\t\t\t-36, -117, 9, -127, -104, -35, -115, 56, -7, -63, 2, -71, 84,\n\t\t\t\t-86, 0, 0, 59 };\n\t\treturn data;\n\t}", "private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}", "public byte[] readImagePNG(BufferedImage bufferedimage) throws IOException{\n byte[] data = ImageUtil.toByteArray(bufferedimage);\r\n /* \r\n for (int i = 0; i < data.length; i++) {\r\n if(i!=0&&i%4==0)\r\n System.out.println();\r\n System.out.format(\"%02X \",data[i]);\r\n }\r\n */ \r\n \r\n \r\n \r\n \r\n byte[] stximage = getStximage();\r\n byte[] etximage = getEtximage();\r\n \r\n byte[] stxdata = new byte[stximage.length];\r\n byte[] etxdata = new byte[etximage.length];\r\n byte[] length = new byte[4];\r\n \r\n boolean stxsw=false;\r\n boolean etxsw=false;\r\n byte[] full_data=null;\r\n byte[] only_data=null;\r\n try{\r\n for (int i = 0; i < data.length; i++) {\r\n System.arraycopy(data, i, stxdata,0, stxdata.length);\r\n stxsw = ByteUtil.equals(stximage, stxdata);\r\n int subindex=i+stxdata.length;\r\n if(stxsw){\r\n System.arraycopy(data, subindex, length,0, length.length);\r\n int length_fulldata = ConversionUtil.toInt(length);\r\n // System.out.format(\"%02X %d subIndex[%d]\",data[subindex],length_fulldata,subindex);\r\n \r\n \r\n subindex+=i+length.length;\r\n int etx_index= subindex+ length_fulldata;\r\n // System.out.println(\"subindex : \"+subindex+\" etx_index : \"+etx_index);\r\n System.arraycopy(data, etx_index, etxdata,0, etxdata.length);\r\n \r\n// for (int j = 0; j < etxdata.length; j++) {\r\n// System.out.format(\"%02X \",etxdata[j]);\r\n// }\r\n \r\n etxsw = ByteUtil.equals(etximage, etxdata);\r\n if(etxsw){\r\n full_data = new byte[etx_index-subindex];\r\n System.arraycopy(data, subindex, full_data,0, full_data.length); //fulldata\r\n break;\r\n }else{\r\n continue;\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n /////only data search\r\n System.arraycopy(full_data, 0, length,0, length.length);\r\n int length_onlydata = ConversionUtil.toInt(length); \r\n only_data = new byte[length_onlydata];\r\n System.arraycopy(full_data, length.length, only_data,0, only_data.length);\r\n \r\n \r\n \r\n }catch (Exception e) {\r\n return null;\r\n }\r\n \r\n return only_data;\r\n \r\n }", "@Test\n public void testDERIVATIVE_EXTRACT_CRC___() throws IOException {\n \n\t Configuration.CRC=true;\n\t Configuration.EXTRACT=true;\n\t Configuration.DERIVATIVE_EXTRACT_CRC=true;\n\t Configuration.COMPRESS=true;\n if(Configuration.CRC && Configuration.EXTRACT && Configuration.DERIVATIVE_EXTRACT_CRC && Configuration.COMPRESS) {\n \n ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/Teste.txt.zip\")));\n zos.putNextEntry(new ZipEntry(homeDir + \"/files/Teste.txt.zip\"));\n zos.write(new byte[32]);\n ZipInputStream zis = new ZipInputStream(new FileInputStream(new File(\n homeDir + \"/files/Teste.txt.zip\")));\n ZipEntry ze = zis.getNextEntry();\n assertTrue(ze != null);\n zis.available();\n zos.close();\n }\n }", "java.lang.String getImage();", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "private static final byte[] xfuzzy_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -1,\n\t\t\t\t-1, -1, -82, 69, 12, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t36, -124, -113, -87, -101, -31, -33, 32, 120, 97, 57, 68, -93,\n\t\t\t\t-54, -26, 90, -24, 49, 84, -59, 116, -100, 88, -99, -102, 25,\n\t\t\t\t30, -19, 36, -103, -97, -89, -62, 117, -119, 51, 5, 0, 59 };\n\t\treturn data;\n\t}", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\r\n// /**Any -> TXT **/\r\n//\t\t\r\n//\t\tgetTXTfromAny(\"./images/DJI_0707.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0708.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0709.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0710.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0711.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0712.txt\");\r\n\t\t\r\n\t\t/**Any -> BMP **/\r\n//\t\tgetBMPfromAny(\"./images/DJI_0707.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0708.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0709.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0710.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0711.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0712.JPG\");\r\n\t\t\r\n//\t\t/**Any -> JPG **/\r\n\t\tgetJPGfromAny(\"./images/DJI_0707.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0708.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0709.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0710.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0711.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0712.txt\");\r\n\r\n\t}", "public boolean CompressWithLzma(String cmd) {\n Runtime rn=Runtime.getRuntime();\r\n try{\r\n \tSystem.out.println(\"compress, it will take some time\");\r\n \tProcess process = rn.exec(JarPath+\"7za a -t7z \"+cmd);\r\n \tWatchThread wt = new WatchThread(process); \r\n \twt.start(); \r\n \tprocess.waitFor();\r\n \twt.setOver(true); \r\n \twt.join();\r\n }catch(Exception e){\r\n \toutputstr(\"Error: compress \"+cmd);\r\n \treturn false; \r\n } \t\t\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args){\r\n List<File> xzQueue = new ArrayList<>();\r\n List<File> unpackQueue = new ArrayList<>();\r\n List<File> packXZQueue = new ArrayList<>();\r\n\r\n for(int i=0; i<args.length; ++i){\r\n if(args[i].equalsIgnoreCase(\"-packxz\")){\r\n if(i+1<args.length){\r\n ++i;\r\n String[] paths = args[i].split(\",\");\r\n for(String s : paths){\r\n packXZQueue.add(new File(s));\r\n }\r\n }\r\n } else if(args[i].equalsIgnoreCase(\"-xz\")){\r\n if(i+1<args.length){\r\n ++i;\r\n String[] paths = args[i].split(\",\");\r\n for(String s : paths){\r\n xzQueue.add(new File(s));\r\n }\r\n }\r\n } else if(args[i].equalsIgnoreCase(\"-pack\")){\r\n if(i+1<args.length){\r\n ++i;\r\n String[] paths = args[i].split(\",\");\r\n for(String s : paths){\r\n unpackQueue.add(new File(s));\r\n }\r\n }\r\n }\r\n }\r\n\r\n for(File f : packXZQueue) unpack(extractXZ(f));\r\n for(File f : xzQueue) extractXZ(f);\r\n for(File f : unpackQueue) unpack(f);\r\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "private byte[] readBinaryZipEntry(ZipInputStream zis)\r\n\t\tthrows IOException\r\n\t{\r\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\tint read;\r\n\t\tbyte[] buffer = new byte[1024];\r\n\r\n\t\twhile ((read = zis.read(buffer, 0, buffer.length)) != -1)\r\n\t\t\tbos.write(buffer, 0, read);\r\n\r\n\t\treturn bos.toByteArray();\r\n\t}", "public Uri mo10091b(String str, List<String> list, boolean z) {\n String sb;\n try {\n String a = this.f2761d.mo10274a(mo10075g(), str, this.f2759a.mo9869G(), list, z, this.f2763f);\n if (C1277l.m3042b(a)) {\n File a2 = this.f2761d.mo10273a(a, mo10075g());\n if (a2 != null) {\n Uri fromFile = Uri.fromFile(a2);\n if (fromFile != null) {\n return fromFile;\n }\n sb = \"Unable to extract Uri from image file\";\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Unable to retrieve File from cached image filename = \");\n sb2.append(a);\n sb = sb2.toString();\n }\n mo10072d(sb);\n }\n } catch (Throwable th) {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Failed to cache image at url = \");\n sb3.append(str);\n mo10069a(sb3.toString(), th);\n }\n return null;\n }", "private final int zza(T r18, byte[] r19, int r20, int r21, int r22, int r23, int r24, int r25, int r26, long r27, int r29, com.google.android.gms.internal.clearcut.zzay r30) throws java.io.IOException {\n /*\n r17 = this;\n r0 = r17;\n r1 = r18;\n r3 = r19;\n r4 = r20;\n r2 = r22;\n r8 = r23;\n r5 = r24;\n r9 = r27;\n r6 = r29;\n r11 = r30;\n r12 = zzmh;\n r7 = r0.zzmi;\n r13 = r6 + 2;\n r7 = r7[r13];\n r13 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r7 = r7 & r13;\n r13 = (long) r7;\n r7 = 5;\n r15 = 2;\n switch(r26) {\n case 51: goto L_0x0168;\n case 52: goto L_0x0158;\n case 53: goto L_0x0148;\n case 54: goto L_0x0148;\n case 55: goto L_0x013b;\n case 56: goto L_0x012f;\n case 57: goto L_0x0124;\n case 58: goto L_0x010e;\n case 59: goto L_0x00e2;\n case 60: goto L_0x00bc;\n case 61: goto L_0x00a4;\n case 62: goto L_0x013b;\n case 63: goto L_0x0076;\n case 64: goto L_0x0124;\n case 65: goto L_0x012f;\n case 66: goto L_0x0068;\n case 67: goto L_0x005a;\n case 68: goto L_0x0028;\n default: goto L_0x0026;\n };\n L_0x0026:\n goto L_0x017c;\n L_0x0028:\n r7 = 3;\n if (r5 != r7) goto L_0x017c;\n L_0x002b:\n r2 = r2 & -8;\n r7 = r2 | 4;\n r2 = r0.zzad(r6);\n r3 = r19;\n r4 = r20;\n r5 = r21;\n r6 = r7;\n r7 = r30;\n r2 = zza(r2, r3, r4, r5, r6, r7);\n r3 = r12.getInt(r1, r13);\n if (r3 != r8) goto L_0x004b;\n L_0x0046:\n r15 = r12.getObject(r1, r9);\n goto L_0x004c;\n L_0x004b:\n r15 = 0;\n L_0x004c:\n if (r15 != 0) goto L_0x0052;\n L_0x004e:\n r3 = r11.zzff;\n goto L_0x0154;\n L_0x0052:\n r3 = r11.zzff;\n r3 = com.google.android.gms.internal.clearcut.zzci.zza(r15, r3);\n goto L_0x0154;\n L_0x005a:\n if (r5 != 0) goto L_0x017c;\n L_0x005c:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzb(r3, r4, r11);\n r3 = r11.zzfe;\n r3 = com.google.android.gms.internal.clearcut.zzbk.zza(r3);\n goto L_0x0150;\n L_0x0068:\n if (r5 != 0) goto L_0x017c;\n L_0x006a:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r3 = r11.zzfd;\n r3 = com.google.android.gms.internal.clearcut.zzbk.zzm(r3);\n goto L_0x0143;\n L_0x0076:\n if (r5 != 0) goto L_0x017c;\n L_0x0078:\n r3 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r4 = r11.zzfd;\n r5 = r0.zzaf(r6);\n if (r5 == 0) goto L_0x009a;\n L_0x0084:\n r5 = r5.zzb(r4);\n if (r5 == 0) goto L_0x008b;\n L_0x008a:\n goto L_0x009a;\n L_0x008b:\n r1 = zzn(r18);\n r4 = (long) r4;\n r4 = java.lang.Long.valueOf(r4);\n r1.zzb(r2, r4);\n r2 = r3;\n goto L_0x017d;\n L_0x009a:\n r2 = java.lang.Integer.valueOf(r4);\n r12.putObject(r1, r9, r2);\n r2 = r3;\n goto L_0x0178;\n L_0x00a4:\n if (r5 != r15) goto L_0x017c;\n L_0x00a6:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r4 = r11.zzfd;\n if (r4 != 0) goto L_0x00b2;\n L_0x00ae:\n r3 = com.google.android.gms.internal.clearcut.zzbb.zzfi;\n goto L_0x0154;\n L_0x00b2:\n r3 = com.google.android.gms.internal.clearcut.zzbb.zzb(r3, r2, r4);\n r12.putObject(r1, r9, r3);\n L_0x00b9:\n r2 = r2 + r4;\n goto L_0x0178;\n L_0x00bc:\n if (r5 != r15) goto L_0x017c;\n L_0x00be:\n r2 = r0.zzad(r6);\n r5 = r21;\n r2 = zza(r2, r3, r4, r5, r11);\n r3 = r12.getInt(r1, r13);\n if (r3 != r8) goto L_0x00d3;\n L_0x00ce:\n r15 = r12.getObject(r1, r9);\n goto L_0x00d4;\n L_0x00d3:\n r15 = 0;\n L_0x00d4:\n if (r15 != 0) goto L_0x00da;\n L_0x00d6:\n r3 = r11.zzff;\n goto L_0x0154;\n L_0x00da:\n r3 = r11.zzff;\n r3 = com.google.android.gms.internal.clearcut.zzci.zza(r15, r3);\n goto L_0x0154;\n L_0x00e2:\n if (r5 != r15) goto L_0x017c;\n L_0x00e4:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r4 = r11.zzfd;\n if (r4 != 0) goto L_0x00ef;\n L_0x00ec:\n r3 = \"\";\n goto L_0x0154;\n L_0x00ef:\n r5 = 536870912; // 0x20000000 float:1.0842022E-19 double:2.652494739E-315;\n r5 = r25 & r5;\n if (r5 == 0) goto L_0x0103;\n L_0x00f5:\n r5 = r2 + r4;\n r5 = com.google.android.gms.internal.clearcut.zzff.zze(r3, r2, r5);\n if (r5 == 0) goto L_0x00fe;\n L_0x00fd:\n goto L_0x0103;\n L_0x00fe:\n r1 = com.google.android.gms.internal.clearcut.zzco.zzbp();\n throw r1;\n L_0x0103:\n r5 = new java.lang.String;\n r6 = com.google.android.gms.internal.clearcut.zzci.UTF_8;\n r5.<init>(r3, r2, r4, r6);\n r12.putObject(r1, r9, r5);\n goto L_0x00b9;\n L_0x010e:\n if (r5 != 0) goto L_0x017c;\n L_0x0110:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzb(r3, r4, r11);\n r3 = r11.zzfe;\n r5 = 0;\n r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));\n if (r7 == 0) goto L_0x011e;\n L_0x011c:\n r15 = 1;\n goto L_0x011f;\n L_0x011e:\n r15 = 0;\n L_0x011f:\n r3 = java.lang.Boolean.valueOf(r15);\n goto L_0x0154;\n L_0x0124:\n if (r5 != r7) goto L_0x017c;\n L_0x0126:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzc(r19, r20);\n r2 = java.lang.Integer.valueOf(r2);\n goto L_0x0162;\n L_0x012f:\n r2 = 1;\n if (r5 != r2) goto L_0x017c;\n L_0x0132:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzd(r19, r20);\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0173;\n L_0x013b:\n if (r5 != 0) goto L_0x017c;\n L_0x013d:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r3 = r11.zzfd;\n L_0x0143:\n r3 = java.lang.Integer.valueOf(r3);\n goto L_0x0154;\n L_0x0148:\n if (r5 != 0) goto L_0x017c;\n L_0x014a:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzb(r3, r4, r11);\n r3 = r11.zzfe;\n L_0x0150:\n r3 = java.lang.Long.valueOf(r3);\n L_0x0154:\n r12.putObject(r1, r9, r3);\n goto L_0x0178;\n L_0x0158:\n if (r5 != r7) goto L_0x017c;\n L_0x015a:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzf(r19, r20);\n r2 = java.lang.Float.valueOf(r2);\n L_0x0162:\n r12.putObject(r1, r9, r2);\n r2 = r4 + 4;\n goto L_0x0178;\n L_0x0168:\n r2 = 1;\n if (r5 != r2) goto L_0x017c;\n L_0x016b:\n r2 = com.google.android.gms.internal.clearcut.zzax.zze(r19, r20);\n r2 = java.lang.Double.valueOf(r2);\n L_0x0173:\n r12.putObject(r1, r9, r2);\n r2 = r4 + 8;\n L_0x0178:\n r12.putInt(r1, r13, r8);\n goto L_0x017d;\n L_0x017c:\n r2 = r4;\n L_0x017d:\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(java.lang.Object, byte[], int, int, int, int, int, int, int, long, int, com.google.android.gms.internal.clearcut.zzay):int\");\n }", "void mo8445a(int i, String str, int i2, byte[] bArr);", "public static String convertImageInStdout(String mscgen_path, String codePath){\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(); \n\t\tif (mscgen_path == \"MSCGEN PATH EMPTY\") {\n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler path not set.\";\n\t\t}\n\t\t\n\t\telse if (mscgen_path == \"MSCGEN EXE NOT FOUND\") {\n\t\t\t \n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler not found.\";\n\t\t}\n String OS = System.getProperty(\"os.name\");\n if(OS.startsWith(\"Windows\")){\n codePath = codePath.replace(\"\\\\\",\"\\\\\\\\\");\n /* \n * Ref: PLUG-5262\n * In case of windows environment if we have space in-between the compiler path \n * then we need to set parent directory as the directory of ProcessBuilder. \n */\n File f = new File(mscgen_path);\n pb.directory(f.getParentFile());\n pb.command(\"cmd.exe\", \"/c\",f.getName(),\"-T\",\"png\",\"-i\",codePath);\n }else{\n pb.command(mscgen_path,\"-T\",\"png\",\"-i\",codePath); \n }\n Process p = null;\n\t\ttry {\n\t\t\tp = pb.start();\n\t\t\tp.waitFor();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tString error=checkError(p);\n\t\tif(error!=\"\"){\n\t\t\treturn getErrorLine(error)+\",ERROR:\"+error;\n\t\t}\n\t\tBufferedImage image=null;\t\n\t\ttry {\n File f = new File(codePath+\".png\");\n\t\t\timage=ImageIO.read(f);\n \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in read\");\n\t\t} \n String imageString = null;\n ByteArrayOutputStream imageInBytes = new ByteArrayOutputStream();\n\t try {\n\t\t\tImageIO.write(image, \"png\", imageInBytes);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in write\");\n\t\t}\n\t byte[] imageBytes = imageInBytes.toByteArray();\n\t imageString = DatatypeConverter.printBase64Binary(imageBytes);\n\t try {\n\t\t\timageInBytes.close();\n\t\t\tp.getInputStream().close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in close\");\n }\n\t\treturn imageString;\n\t}", "public native byte[] imageToBlob(ImageInfo imageInfo);", "public static void main(String[] args) {\n Process p;\n try {\n String filename=\"/home/pramit/Desktop/Developers/Try/Test/orig_IMG_2.jpg\",isdl=\"1\";\n String[] cmd = { \"/bin/sh\",\"-c\",\"/home/pramit/IdeaProjects/DigitalKYCServer/src/com/company/crop_n_rotate.py \"\n +filename+\" \"+isdl};\n\n p = Runtime.getRuntime().exec(cmd);\n BufferedReader reader=new BufferedReader(new InputStreamReader(\n p.getInputStream()));\n p.waitFor();\n String z=String.valueOf(p.exitValue());\n System.out.println(\"z= \"+z);\n String line;\n while((line = reader.readLine()) != null) {\n System.out.println(line);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "void mo30633b(int i, String str, byte[] bArr);", "Bitmap mo27481a(String str);", "private String removeBinFirstAndLast(String runtimeBin) {\n if (StringUtils.isBlank(runtimeBin)) {\n return null;\n }\n if (runtimeBin.startsWith(\"0x\")) {\n runtimeBin = StringUtils.removeStart(runtimeBin, \"0x\");\n }\n if (runtimeBin.length() > 68) {\n runtimeBin = runtimeBin.substring(0, runtimeBin.length() - 68);\n }\n return runtimeBin;\n }", "private static final byte[] xfsl_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 86,\n\t\t\t\t86, 86, 51, 51, 51, -111, -111, -111, -1, -1, -1, 33, -2, 14,\n\t\t\t\t77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80,\n\t\t\t\t0, 33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0,\n\t\t\t\t2, 44, -100, -113, -87, -53, 7, -48, -36, -101, 108, 90, 42,\n\t\t\t\t-81, -122, 59, 108, 62, 5, -34, -122, -120, 95, 18, 12, -126,\n\t\t\t\t38, 40, 41, 32, -84, -16, -22, 14, 83, -116, -107, 54, -119,\n\t\t\t\t26, 90, -28, -125, 0, -127, 5, 0, 59 };\n\t\treturn data;\n\t}", "NativeLong wkhtmltoimage_get_output(PointerByReference converter, PointerByReference charPtrPtr1);", "public static StringBuffer getContentFromGZIPBytes(byte[] bytes) throws ZipException, IOException{\n\t\tbyte[] b = null;\n\t\tByteArrayInputStream bain = new ByteArrayInputStream(bytes);\n\t\tGZIPInputStream gzip = new GZIPInputStream(bain);\n\t\t\n\t\tbyte[] buf = new byte[1024]; \n\t\tint num = -1; \n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream(); \n\t\twhile ((num = gzip.read(buf, 0, buf.length)) != -1) {\n\t\t\tbaos.write(buf, 0, num); \n\t\t}\n\t\t\n\t\tb = baos.toByteArray();\n\t\tbaos.flush();\n\t\tbaos.close();\n\t\tgzip.close();\n\t\tbain.close(); \n\t\t\n\t\t\n\t\treturn new StringBuffer(new String(b));\n\t}", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "private static String bmpTack(String name) {\n if (name.endsWith(\".bmp\"))\n return name;\n else\n return name+\".bmp\";\n }", "public native double testyolo(String imgfile);", "public static void main(String args[]) {\n\t\tString destination = \"C:\\\\Users\\\\VIIPL02\\\\Desktop\\\\hii\\\\kk_(1).jpg\";\n\t\t//System.out.println(destination);\n\t\t int index1= destination.lastIndexOf(\"_(\");\n \t int index2= destination.lastIndexOf(\")\");\n \t String rig_val=\"\";\n\t\t for(int k=2;k<(index2-index1);k++)\n \t\t rig_val=rig_val+destination.charAt(index1+k)+\"\";\n\t\t \n\t\t \n\t\t //System.out.println(rig_val);\n\t\tfor(int i=0;i<10000000;i++) {\n//\t\tdestination= destination.replace(\"_(\"+(destination.charAt((destination.lastIndexOf(\"(\")+1)))+\")\",\"_(\"+((Integer.parseInt((destination.charAt((destination.lastIndexOf(\"(\")+1)))+\"\" ))+1)+\")\").replace(\"_(\"+(destination.charAt((destination.lastIndexOf(\"(\")+1)))+\")\",\"_(\"+((Integer.parseInt((destination.charAt((destination.lastIndexOf(\"(\")+1)))+\"\" ))+1)+\")\");\n\t\t\t\n\t\t\n\t\t\tdestination=destination.replace(\"_(\"+rig_val+\")\",\"_(\"+(Integer.parseInt(rig_val)+1)+\")\");\n\t\t\trig_val=\"\"+(Integer.parseInt(rig_val)+1);\n\t\t\t//System.out.println(destination);\n\t\t}\n//\t\t //System.out.println( destination.replace(\"_(\"+(destination.charAt((destination.lastIndexOf(\"(\")+1)))+\")\",\"_(\"+((Integer.parseInt((destination.charAt((destination.lastIndexOf(\"(\")+1)))+\"\" ))+1)+\")\"));\n\n\t\t//System.out.println(\"completed\");\n\t}", "public void decodeBX() throws Exception {\r\n\t\tLog.p(tag, \"Decode Binary XML...\");\r\n\t\tLog.d(tag, \"Number of Binary XML files: \"+ xmlFiles.size());\r\n\t\tLog.d(tag, \"-> \"+ xmlFiles);\r\n\t\t\r\n\t\t\r\n\t\t// Convert WBXML to XML\r\n\t\t/*\r\n\t\t * aapt (Android Assents Packaging Tool) converts XML files to Android Binary XML. It is not same as\r\n\t\t * WBXML format.\r\n\t\t */\r\n\t\tfor(int i=0; i<xmlFiles.size(); i++)\r\n\t\t{\r\n\t\t\tLog.p(tag, \"XML File: \"+ xmlFiles.get(i));\r\n\t\t\t\r\n\t\t\t// 23rd March, 2012. Prasanta. \r\n\t\t\t// Skip exception while parsing any file and complete the complete parsing cycle.\r\n\t\t\tAndroid_BX2 abx2;\r\n\t\t\ttry{\r\n\t\t\t\tabx2 = new Android_BX2(new GenXML());\r\n\t\t\t\tabx2.parse(xmlFiles.get(i));\r\n\t\t\t\t\r\n\t\t\t}catch(Exception ex){\r\n\t\t\t\tLog.e(tag, \"Fail to parse - \"+ xmlFiles.get(i), ex);\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tabx2 = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final void zza(java.lang.String r8, int r9, int r10, int r11, int r12, int[] r13) throws com.google.android.gms.internal.ads.zzis {\n /*\n r7 = this;\n java.lang.String r12 = \"audio/raw\"\n boolean r12 = r12.equals(r8)\n r0 = 1\n r12 = r12 ^ r0\n if (r12 == 0) goto L_0x000f\n int r8 = zzaz(r8)\n goto L_0x0010\n L_0x000f:\n r8 = r11\n L_0x0010:\n r1 = 0\n if (r12 != 0) goto L_0x004a\n int r11 = com.google.android.gms.internal.ads.zzpq.zzg(r11, r9)\n r7.zzakr = r11\n com.google.android.gms.internal.ads.zziz r11 = r7.zzajq\n r11.zzb(r13)\n com.google.android.gms.internal.ads.zzie[] r11 = r7.zzajs\n int r13 = r11.length\n r2 = 0\n r3 = 0\n L_0x0023:\n if (r2 >= r13) goto L_0x0044\n r4 = r11[r2]\n boolean r5 = r4.zzb(r10, r9, r8) // Catch:{ zzih -> 0x003d }\n r3 = r3 | r5\n boolean r5 = r4.isActive()\n if (r5 == 0) goto L_0x003a\n int r9 = r4.zzfj()\n int r8 = r4.zzfk()\n L_0x003a:\n int r2 = r2 + 1\n goto L_0x0023\n L_0x003d:\n r8 = move-exception\n com.google.android.gms.internal.ads.zzis r9 = new com.google.android.gms.internal.ads.zzis\n r9.<init>((java.lang.Throwable) r8)\n throw r9\n L_0x0044:\n if (r3 == 0) goto L_0x004b\n r7.zzfn()\n goto L_0x004b\n L_0x004a:\n r3 = 0\n L_0x004b:\n r11 = 252(0xfc, float:3.53E-43)\n r13 = 12\n switch(r9) {\n case 1: goto L_0x0080;\n case 2: goto L_0x007d;\n case 3: goto L_0x007a;\n case 4: goto L_0x0077;\n case 5: goto L_0x0074;\n case 6: goto L_0x0071;\n case 7: goto L_0x006e;\n case 8: goto L_0x006b;\n default: goto L_0x0052;\n }\n L_0x0052:\n com.google.android.gms.internal.ads.zzis r8 = new com.google.android.gms.internal.ads.zzis\n r10 = 38\n java.lang.StringBuilder r11 = new java.lang.StringBuilder\n r11.<init>(r10)\n java.lang.String r10 = \"Unsupported channel count: \"\n r11.append(r10)\n r11.append(r9)\n java.lang.String r9 = r11.toString()\n r8.<init>((java.lang.String) r9)\n throw r8\n L_0x006b:\n int r2 = com.google.android.gms.internal.ads.zzha.CHANNEL_OUT_7POINT1_SURROUND\n goto L_0x0081\n L_0x006e:\n r2 = 1276(0x4fc, float:1.788E-42)\n goto L_0x0081\n L_0x0071:\n r2 = 252(0xfc, float:3.53E-43)\n goto L_0x0081\n L_0x0074:\n r2 = 220(0xdc, float:3.08E-43)\n goto L_0x0081\n L_0x0077:\n r2 = 204(0xcc, float:2.86E-43)\n goto L_0x0081\n L_0x007a:\n r2 = 28\n goto L_0x0081\n L_0x007d:\n r2 = 12\n goto L_0x0081\n L_0x0080:\n r2 = 4\n L_0x0081:\n int r4 = com.google.android.gms.internal.ads.zzpq.SDK_INT\n r5 = 23\n r6 = 5\n if (r4 > r5) goto L_0x00a8\n java.lang.String r4 = com.google.android.gms.internal.ads.zzpq.DEVICE\n java.lang.String r5 = \"foster\"\n boolean r4 = r5.equals(r4)\n if (r4 == 0) goto L_0x00a8\n java.lang.String r4 = com.google.android.gms.internal.ads.zzpq.MANUFACTURER\n java.lang.String r5 = \"NVIDIA\"\n boolean r4 = r5.equals(r4)\n if (r4 == 0) goto L_0x00a8\n r4 = 3\n if (r9 == r4) goto L_0x00a9\n if (r9 == r6) goto L_0x00a9\n r11 = 7\n if (r9 == r11) goto L_0x00a5\n goto L_0x00a8\n L_0x00a5:\n int r11 = com.google.android.gms.internal.ads.zzha.CHANNEL_OUT_7POINT1_SURROUND\n goto L_0x00a9\n L_0x00a8:\n r11 = r2\n L_0x00a9:\n int r2 = com.google.android.gms.internal.ads.zzpq.SDK_INT\n r4 = 25\n if (r2 > r4) goto L_0x00be\n java.lang.String r2 = com.google.android.gms.internal.ads.zzpq.DEVICE\n java.lang.String r4 = \"fugu\"\n boolean r2 = r4.equals(r2)\n if (r2 == 0) goto L_0x00be\n if (r12 == 0) goto L_0x00be\n if (r9 != r0) goto L_0x00be\n goto L_0x00bf\n L_0x00be:\n r13 = r11\n L_0x00bf:\n if (r3 != 0) goto L_0x00d4\n boolean r11 = r7.isInitialized()\n if (r11 == 0) goto L_0x00d4\n int r11 = r7.zzaka\n if (r11 != r8) goto L_0x00d4\n int r11 = r7.zzahn\n if (r11 != r10) goto L_0x00d4\n int r11 = r7.zzajz\n if (r11 != r13) goto L_0x00d4\n return\n L_0x00d4:\n r7.reset()\n r7.zzaka = r8\n r7.zzakc = r12\n r7.zzahn = r10\n r7.zzajz = r13\n r11 = 2\n if (r12 == 0) goto L_0x00e3\n goto L_0x00e4\n L_0x00e3:\n r8 = 2\n L_0x00e4:\n r7.zzakb = r8\n int r8 = com.google.android.gms.internal.ads.zzpq.zzg(r11, r9)\n r7.zzaku = r8\n if (r12 == 0) goto L_0x00fd\n int r8 = r7.zzakb\n if (r8 == r6) goto L_0x00fa\n r9 = 6\n if (r8 != r9) goto L_0x00f6\n goto L_0x00fa\n L_0x00f6:\n r8 = 49152(0xc000, float:6.8877E-41)\n goto L_0x0133\n L_0x00fa:\n r8 = 20480(0x5000, float:2.8699E-41)\n goto L_0x0133\n L_0x00fd:\n int r8 = r7.zzakb\n int r8 = android.media.AudioTrack.getMinBufferSize(r10, r13, r8)\n r9 = -2\n if (r8 == r9) goto L_0x0107\n goto L_0x0108\n L_0x0107:\n r0 = 0\n L_0x0108:\n com.google.android.gms.internal.ads.zzoz.checkState(r0)\n int r9 = r8 << 2\n r10 = 250000(0x3d090, double:1.235164E-318)\n long r10 = r7.zzdx(r10)\n int r11 = (int) r10\n int r10 = r7.zzaku\n int r10 = r10 * r11\n long r0 = (long) r8\n r2 = 750000(0xb71b0, double:3.70549E-318)\n long r2 = r7.zzdx(r2)\n int r8 = r7.zzaku\n long r4 = (long) r8\n long r2 = r2 * r4\n long r0 = java.lang.Math.max(r0, r2)\n int r8 = (int) r0\n if (r9 >= r10) goto L_0x012f\n r8 = r10\n goto L_0x0133\n L_0x012f:\n if (r9 <= r8) goto L_0x0132\n goto L_0x0133\n L_0x0132:\n r8 = r9\n L_0x0133:\n r7.zzakd = r8\n if (r12 == 0) goto L_0x013d\n r8 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n goto L_0x0145\n L_0x013d:\n int r9 = r7.zzaku\n int r8 = r8 / r9\n long r8 = (long) r8\n long r8 = r7.zzdw(r8)\n L_0x0145:\n r7.zzake = r8\n com.google.android.gms.internal.ads.zzhu r8 = r7.zzafh\n r7.zzb(r8)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zza(java.lang.String, int, int, int, int, int[]):void\");\n }", "public String call() {\n String str = \"\";\n boolean z = false;\n int i = 0;\n for (MediaModel mediaModel : this.f81056a) {\n if (mediaModel.isVideo()) {\n C30954u.m100738a(this.f81057b, mediaModel);\n } else {\n str = C30954u.m100737a(this.f81057b, mediaModel, this.f81058c);\n i++;\n }\n }\n if (str.length() > 0) {\n z = true;\n }\n if (!z || i <= 1) {\n return str;\n }\n String string = C6399b.m19921a().getString(R.string.bi7);\n C7573i.m23582a((Object) string, \"AppContextManager.getApp…im_compress_failed_multi)\");\n return string;\n }", "@Test\n void testQuickBasics() throws Exception {\n HMEFMessage msg;\n try (InputStream is = _samples.openResourceAsStream(\"quick-winmail.dat\")) {\n msg = new HMEFMessage(is);\n }\n\n MAPIAttribute rtfAttr = msg.getMessageMAPIAttribute(MAPIProperty.RTF_COMPRESSED);\n assertNotNull(rtfAttr);\n assertTrue(rtfAttr instanceof MAPIRtfAttribute);\n\n // Check the start of the compressed version\n byte[] data = ((MAPIRtfAttribute) rtfAttr).getRawData();\n assertEquals(5907, data.length);\n\n // First 16 bytes is header stuff\n // Check it has the length + compressed marker\n assertEquals(5907 - 4, LittleEndian.getShort(data));\n assertEquals(\n \"LZFu\",\n StringUtil.getFromCompressedUnicode(data, 8, 4)\n );\n\n\n // Now Look at the code\n byte[] exp = {\n (byte) 0x07, // Flag: cccUUUUU\n (byte) 0x00, // c1a: offset 0 / 0x000\n (byte) 0x06, // c1b: length 6+2 -> {\\rtf1\\a\n (byte) 0x01, // c2a: offset 16 / 0x010\n (byte) 0x01, // c2b: length 1+2 -> def\n (byte) 0x0b, // c3a: offset 182 / 0xb6\n (byte) 0x60, // c3b: length 0+2 -> la\n (byte) 0x6e, // n\n (byte) 0x67, // g\n (byte) 0x31, // 1\n (byte) 0x30, // 0\n (byte) 0x32, // 2\n\n (byte) 0x66, // Flag: UccUUccU\n (byte) 0x35, // 5\n (byte) 0x00, // c2a: offset 6 / 0x006\n (byte) 0x64, // c2b: length 4+2 -> \\ansi\\a\n (byte) 0x00, // c3a: offset 7 / 0x007\n (byte) 0x72, // c3b: length 2+2 -> nsi\n (byte) 0x63, // c\n (byte) 0x70, // p\n (byte) 0x0d, // c6a: offset 221 / 0x0dd\n (byte) 0xd0, // c6b: length 0+2 -> g1\n (byte) 0x0e, // c7a: offset 224 / 0x0e0\n (byte) 0x00, // c7b: length 0+2 -> 25\n (byte) 0x32, // 2\n };\n\n assertArrayEquals(exp, Arrays.copyOfRange(data, 16, 16+25));\n }", "public void jieya() {\n\t\tlong startTime=System.currentTimeMillis();\n\t\ttry {\n\t\t\tZipInputStream Zin=new ZipInputStream(new FileInputStream(\n\t\t\t\t\tf1.getText()));//输入源zip路径\n\t\t\tBufferedInputStream Bin=new BufferedInputStream(Zin);\n\t\t\tString Parent=\"D:\\\\XM\\\\解压\"; //输出路径(文件夹目录)\n\t\t\tFile Fout=null;\n\t\t\tZipEntry entry;\n\t\t\ttry {\n\t\t\t\twhile((entry = Zin.getNextEntry())!=null && !entry.isDirectory()){\n\t\t\t\t\tFout=new File(Parent,entry.getName());\n\t\t\t\t\tif(!Fout.exists()){\n\t\t\t\t\t\t(new File(Fout.getParent())).mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\tFileOutputStream out=new FileOutputStream(Fout);\n\t\t\t\t\tBufferedOutputStream Bout=new BufferedOutputStream(out);\n\t\t\t\t\tint b;\n\t\t\t\t\twhile((b=Bin.read())!=-1){\n\t\t\t\t\t\tBout.write(b);\n\t\t\t\t\t}\n\t\t\t\t\tBout.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\tJOptionPane.showMessageDialog(null,Fout+\"解压成功\");\t\n\t\t\t\t}\n\t\t\t\tBin.close();\n\t\t\t\tZin.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlong endTime=System.currentTimeMillis();\n\t}", "void nikon_e900_load_raw()\n{\n int offset=0, irow, row, col;\n\n for (irow=0; irow < height; irow++) {\n row = irow * 2 % height;\n if (row == 1)\n offset = - (-offset & -4096);\n CTOJ.fseek (ifp, offset, CTOJ.SEEK_SET);\n offset += raw_width;\n getbits(-1);\n for (col=0; col < width; col++)\n BAYER(row,col, (short)getbits(10));\n }\n}", "String getImage();", "private static final byte[] pkgclose_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 96,\n\t\t\t\t96, 96, -96, -96, -96, -33, -33, -33, 94, 94, 94, 94, 24, 24,\n\t\t\t\t-128, -128, -128, -1, -1, -1, -128, -128, -128, -112, -112,\n\t\t\t\t-112, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101, 32,\n\t\t\t\t119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0,\n\t\t\t\t3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 4, 75, 112, 72, 32, 103,\n\t\t\t\t-67, 3, -128, 64, 51, -17, -43, 22, -116, -38, 72, 98, -101,\n\t\t\t\t38, 104, 41, 54, 9, 48, 16, -69, -98, -54, 114, -88, -7, -23,\n\t\t\t\t-32, -108, 110, -123, -96, 80, -24, -29, 4, 10, -120, -92, 18,\n\t\t\t\t81, -104, -112, -114, 76, 37, -78, -23, 3, 38, -89, 87, 20, 0,\n\t\t\t\t121, -107, -46, -72, 88, -26, 55, -38, -91, 98, -72, 75, -79,\n\t\t\t\t107, -56, -114, 0, 0, 59 };\n\t\treturn data;\n\t}", "public static int Comparetxtinzip(ZipFile apkzf, String filepathinzip, File fileinfiledir) {\r\n String tmpzipstr;\r\n BufferedInputStream checkfbr;\r\n int result;\r\n BufferedInputStream checkzbr = null;\r\n BufferedInputStream checkfbr2 = null;\r\n ZipEntry cookie_entry = apkzf.getEntry(filepathinzip);\r\n if (cookie_entry == null) {\r\n try {\r\n Log.i(TAG, \"no this file in zip\");\r\n if (checkzbr != null) {\r\n try {\r\n checkzbr.close();\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n } catch (IOException e2) {\r\n e2.printStackTrace();\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e3) {\r\n e3.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n return ERROR_EXCEPTION;\r\n } finally {\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e4) {\r\n e4.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND_INZIP;\r\n } catch (Exception e5) {\r\n e = e5;\r\n try {\r\n e.printStackTrace();\r\n if (checkzbr != null) {\r\n try {\r\n checkzbr.close();\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e6) {\r\n e6.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n } catch (IOException e7) {\r\n e7.printStackTrace();\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e8) {\r\n e8.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n return ERROR_EXCEPTION;\r\n } finally {\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e9) {\r\n e9.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_EXCEPTION;\r\n } catch (Throwable th) {\r\n th = th;\r\n if (checkzbr != null) {\r\n try {\r\n checkzbr.close();\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e10) {\r\n e10.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n } catch (IOException e11) {\r\n e11.printStackTrace();\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e12) {\r\n e12.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n return ERROR_EXCEPTION;\r\n } finally {\r\n if (checkfbr2 != null) {\r\n try {\r\n checkfbr2.close();\r\n } catch (IOException e13) {\r\n e13.printStackTrace();\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n }\r\n }\r\n throw th;\r\n }\r\n }\r\n } else {\r\n byte[] checkzipbuf = new byte[1024];\r\n byte[] checkfilebuf = new byte[1024];\r\n BufferedInputStream checkzbr2 = new BufferedInputStream(apkzf.getInputStream(cookie_entry));\r\n try {\r\n tmpzipstr = new String(checkzipbuf).substring(0, checkzbr2.read(checkzipbuf));\r\n checkfbr = new BufferedInputStream(new FileInputStream(fileinfiledir));\r\n } catch (Exception e14) {\r\n e = e14;\r\n checkzbr = checkzbr2;\r\n e.printStackTrace();\r\n if (checkzbr != null) {\r\n }\r\n return ERROR_EXCEPTION;\r\n } catch (Throwable th2) {\r\n th = th2;\r\n checkzbr = checkzbr2;\r\n if (checkzbr != null) {\r\n }\r\n throw th;\r\n }\r\n try {\r\n if (new String(checkfilebuf).substring(0, checkfbr.read(checkfilebuf)).equals(tmpzipstr)) {\r\n result = 1;\r\n } else {\r\n result = 0;\r\n }\r\n if (checkzbr2 != null) {\r\n try {\r\n checkzbr2.close();\r\n if (checkfbr != null) {\r\n try {\r\n checkfbr.close();\r\n } catch (IOException e15) {\r\n e15.printStackTrace();\r\n BufferedInputStream bufferedInputStream = checkfbr;\r\n BufferedInputStream bufferedInputStream2 = checkzbr2;\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n } catch (IOException e16) {\r\n e16.printStackTrace();\r\n if (checkfbr != null) {\r\n try {\r\n checkfbr.close();\r\n } catch (IOException e17) {\r\n e17.printStackTrace();\r\n BufferedInputStream bufferedInputStream3 = checkfbr;\r\n BufferedInputStream bufferedInputStream4 = checkzbr2;\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n BufferedInputStream bufferedInputStream5 = checkfbr;\r\n BufferedInputStream bufferedInputStream6 = checkzbr2;\r\n return ERROR_EXCEPTION;\r\n } finally {\r\n if (checkfbr != null) {\r\n try {\r\n checkfbr.close();\r\n } catch (IOException e18) {\r\n e18.printStackTrace();\r\n BufferedInputStream bufferedInputStream7 = checkfbr;\r\n BufferedInputStream bufferedInputStream8 = checkzbr2;\r\n return ERROR_EXCEPTION;\r\n }\r\n }\r\n }\r\n }\r\n BufferedInputStream bufferedInputStream9 = checkfbr;\r\n BufferedInputStream bufferedInputStream10 = checkzbr2;\r\n return result;\r\n } catch (Exception e19) {\r\n e = e19;\r\n checkfbr2 = checkfbr;\r\n checkzbr = checkzbr2;\r\n } catch (Throwable th3) {\r\n th = th3;\r\n checkfbr2 = checkfbr;\r\n checkzbr = checkzbr2;\r\n if (checkzbr != null) {\r\n }\r\n throw th;\r\n }\r\n }\r\n }", "public static String getBMPfromAny(String path) {\r\n\r\n\t\tFile oldfile = new File(path);\r\n\t\tString filename = oldfile.getName();\r\n\t\tString newfile = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < filename.length(); i++) {\r\n\t\t\tnewfile += filename.charAt(i);\r\n\t\t\tif (filename.charAt(i) == '.') {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tnewfile += \"bmp\";\r\n\t\tFile file2 = new File(\"./images/\"+ newfile);\r\n\t\tboolean success = oldfile.renameTo(file2);\r\n\t\tif (!success) {\r\n\t\t\tMessages.failedPhase1_3(oldfile);\r\n\t\t}else{\r\n\t\t\tMessages.succeedPhase1_3(oldfile, newfile);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn newfile;\r\n\r\n\t}", "File resolveImage(Box box);", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static final byte[] xfj_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 76,\n\t\t\t\t76, 76, 11, 11, 11, 7, 7, 7, -47, -47, -47, -1, -1, -1, -7, -7,\n\t\t\t\t-7, -128, -128, -128, 113, 113, 113, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104,\n\t\t\t\t32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0,\n\t\t\t\t0, 16, 0, 16, 0, 0, 4, 93, 16, 73, 9, -24, -84, 51, 99, 84,\n\t\t\t\t119, -106, 1, 16, -124, -31, 7, 6, 2, -112, 10, -23, 24, 76,\n\t\t\t\t-63, 48, -90, -86, -8, 34, 119, 64, 12, -78, 27, -53, 56, 24,\n\t\t\t\t97, -57, -29, 13, 95, 55, 28, -95, 48, 100, 46, -111, -97, 0,\n\t\t\t\t115, 122, 76, 26, -82, -40, -31, 18, -104, -63, 94, -117, 50,\n\t\t\t\t-62, -31, 32, 41, 20, -68, -66, -27, -110, -116, -16, 26, -76,\n\t\t\t\t-50, -79, -28, -118, 56, 27, -118, 99, 118, -37, -48, -11, 125,\n\t\t\t\t-24, 38, -127, 17, 0, 59 };\n\t\treturn data;\n\t}", "public static void main(String[] args) {\n try {\n File image = new File(\"petite_image.png\");\n ImageSerializer serializer = new ImageSerializerBase64Impl();\n\n // Sérialization\n String encodedImage = (String) serializer.serialize(image);\n System.out.println(splitDisplay(encodedImage,76));\n\n // Désérialisation\n byte[] deserializedImage = (byte[]) serializer.deserialize(encodedImage);\n\n // Vérifications\n // 1/ Automatique\n assert (Arrays.equals(deserializedImage, Files.readAllBytes(image.toPath())));\n System.out.println(\"Cette sérialisation est bien réversible :)\");\n // 2/ Manuelle\n File extractedImage = new File(\"petite_image_extraite.png\");\n new FileOutputStream(extractedImage).write(deserializedImage);\n System.out.println(\"Je peux vérifier moi-même en ouvrant mon navigateur de fichiers et en ouvrant l'image extraite dans le répertoire de ce Test\");\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public final byte[] zzd(java.lang.String r11) {\n /*\n r10 = this;\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r11)\n r10.zzd()\n r10.zzak()\n r0 = 0\n android.database.sqlite.SQLiteDatabase r1 = r10.mo40210c_() // Catch:{ SQLiteException -> 0x0059, all -> 0x0057 }\n java.lang.String r2 = \"apps\"\n java.lang.String r3 = \"remote_config\"\n java.lang.String[] r3 = new java.lang.String[]{r3} // Catch:{ SQLiteException -> 0x0059, all -> 0x0057 }\n java.lang.String r4 = \"app_id=?\"\n r5 = 1\n java.lang.String[] r5 = new java.lang.String[r5] // Catch:{ SQLiteException -> 0x0059, all -> 0x0057 }\n r9 = 0\n r5[r9] = r11 // Catch:{ SQLiteException -> 0x0059, all -> 0x0057 }\n r6 = 0\n r7 = 0\n r8 = 0\n android.database.Cursor r1 = r1.query(r2, r3, r4, r5, r6, r7, r8) // Catch:{ SQLiteException -> 0x0059, all -> 0x0057 }\n boolean r2 = r1.moveToFirst() // Catch:{ SQLiteException -> 0x0055 }\n if (r2 != 0) goto L_0x0033\n if (r1 == 0) goto L_0x0032\n r1.close()\n L_0x0032:\n return r0\n L_0x0033:\n byte[] r2 = r1.getBlob(r9) // Catch:{ SQLiteException -> 0x0055 }\n boolean r3 = r1.moveToNext() // Catch:{ SQLiteException -> 0x0055 }\n if (r3 == 0) goto L_0x004e\n com.google.android.gms.measurement.internal.zzez r3 = r10.zzr() // Catch:{ SQLiteException -> 0x0055 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ SQLiteException -> 0x0055 }\n java.lang.String r4 = \"Got multiple records for app config, expected one. appId\"\n java.lang.Object r5 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r11) // Catch:{ SQLiteException -> 0x0055 }\n r3.zza(r4, r5) // Catch:{ SQLiteException -> 0x0055 }\n L_0x004e:\n if (r1 == 0) goto L_0x0054\n r1.close()\n L_0x0054:\n return r2\n L_0x0055:\n r2 = move-exception\n goto L_0x005b\n L_0x0057:\n r11 = move-exception\n goto L_0x0074\n L_0x0059:\n r2 = move-exception\n r1 = r0\n L_0x005b:\n com.google.android.gms.measurement.internal.zzez r3 = r10.zzr() // Catch:{ all -> 0x0072 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ all -> 0x0072 }\n java.lang.String r4 = \"Error querying remote config. appId\"\n java.lang.Object r11 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r11) // Catch:{ all -> 0x0072 }\n r3.zza(r4, r11, r2) // Catch:{ all -> 0x0072 }\n if (r1 == 0) goto L_0x0071\n r1.close()\n L_0x0071:\n return r0\n L_0x0072:\n r11 = move-exception\n r0 = r1\n L_0x0074:\n if (r0 == 0) goto L_0x0079\n r0.close()\n L_0x0079:\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zzd(java.lang.String):byte[]\");\n }", "public native MagickImage magnifyImage() throws MagickException;", "public static void main(String[] src) throws UnsupportedEncodingException {\n List<String> cmd = new ArrayList<>();\n cmd.add(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n cmd.add(\"-no-remote\");\n cmd.add(\"-P\");\n cmd.add(\"aesha2\");\n// cmd.add(\"\\\"fileName\\\"\");\n ProcessBuilder builder = new ProcessBuilder().command(cmd);\n Process process = null;\n int exitCode=-1;\n\n try {\n process = builder.start();\n final Process finalProcess = process;\n Thread t=new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n finalProcess.destroy();\n }\n });\n t.start();\n exitCode = process.waitFor();\n } catch (InterruptedException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n } catch (IOException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n }\n process.destroy();\n System.out.println(exitCode);\n }", "public static void main(String[] args) throws IOException {\n BmpFile c = new ImageReader().read();\n \n BmpFileTransformer t = new BmpFileTransformer();\n c = t.transform(c);\n \n new ImageInHtmlWriter().create(c);\n BmpFileWriter w = new BmpFileWriter();\n w.write(c);\n }", "public static void main(String[] args){\n\t\tString path = FileLogic.createDateSplitDirYYYYMMDDHH(\"d:/test\");\n\t\tNetworkUtil.downloadImage(\"http://www.51homevip.com/portal/web/images/home-top.png\", path + \"/gg.png\");\n\t}", "public final int zzb(CharSequence charSequence, byte[] bArr, int i, int i2) {\n char c;\n long j;\n long j2;\n long j3;\n CharSequence charSequence2 = charSequence;\n byte[] bArr2 = bArr;\n int i3 = i;\n int i4 = i2;\n long j4 = (long) i3;\n long j5 = ((long) i4) + j4;\n int length = charSequence.length();\n String str = \" at index \";\n String str2 = \"Failed writing \";\n if (length > i4 || bArr2.length - i4 < i3) {\n char charAt = charSequence2.charAt(length - 1);\n int i5 = i3 + i4;\n StringBuilder sb = new StringBuilder(37);\n sb.append(str2);\n sb.append(charAt);\n sb.append(str);\n sb.append(i5);\n throw new ArrayIndexOutOfBoundsException(sb.toString());\n }\n int i6 = 0;\n while (true) {\n c = 128;\n j = 1;\n if (i6 >= length) {\n break;\n }\n char charAt2 = charSequence2.charAt(i6);\n if (charAt2 >= 128) {\n break;\n }\n long j6 = 1 + j4;\n zziv.zza(bArr2, j4, (byte) charAt2);\n i6++;\n j4 = j6;\n }\n if (i6 == length) {\n return (int) j4;\n }\n while (i6 < length) {\n char charAt3 = charSequence2.charAt(i6);\n if (charAt3 < c && j4 < j5) {\n long j7 = j4 + j;\n zziv.zza(bArr2, j4, (byte) charAt3);\n j3 = j;\n j2 = j7;\n } else if (charAt3 < 2048 && j4 <= j5 - 2) {\n long j8 = j4 + j;\n zziv.zza(bArr2, j4, (byte) ((charAt3 >>> 6) | 960));\n long j9 = j8 + j;\n zziv.zza(bArr2, j8, (byte) ((charAt3 & '?') | 128));\n j2 = j9;\n j3 = j;\n } else if ((charAt3 < 55296 || 57343 < charAt3) && j4 <= j5 - 3) {\n long j10 = j4 + j;\n zziv.zza(bArr2, j4, (byte) ((charAt3 >>> 12) | 480));\n long j11 = j10 + j;\n zziv.zza(bArr2, j10, (byte) (((charAt3 >>> 6) & 63) | 128));\n long j12 = j11 + 1;\n zziv.zza(bArr2, j11, (byte) ((charAt3 & '?') | 128));\n j2 = j12;\n j3 = 1;\n } else if (j4 <= j5 - 4) {\n int i7 = i6 + 1;\n if (i7 != length) {\n char charAt4 = charSequence2.charAt(i7);\n if (Character.isSurrogatePair(charAt3, charAt4)) {\n int codePoint = Character.toCodePoint(charAt3, charAt4);\n long j13 = j4 + 1;\n zziv.zza(bArr2, j4, (byte) ((codePoint >>> 18) | 240));\n long j14 = j13 + 1;\n zziv.zza(bArr2, j13, (byte) (((codePoint >>> 12) & 63) | 128));\n long j15 = j14 + 1;\n zziv.zza(bArr2, j14, (byte) (((codePoint >>> 6) & 63) | 128));\n j3 = 1;\n j2 = j15 + 1;\n zziv.zza(bArr2, j15, (byte) ((codePoint & 63) | 128));\n i6 = i7;\n } else {\n i6 = i7;\n }\n }\n throw new zzjb(i6 - 1, length);\n } else {\n if (55296 <= charAt3 && charAt3 <= 57343) {\n int i8 = i6 + 1;\n if (i8 == length || !Character.isSurrogatePair(charAt3, charSequence2.charAt(i8))) {\n throw new zzjb(i6, length);\n }\n }\n StringBuilder sb2 = new StringBuilder(46);\n sb2.append(str2);\n sb2.append(charAt3);\n sb2.append(str);\n sb2.append(j4);\n throw new ArrayIndexOutOfBoundsException(sb2.toString());\n }\n i6++;\n c = 128;\n long j16 = j3;\n j4 = j2;\n j = j16;\n }\n return (int) j4;\n }", "public byte[] Img2Bin (String path){\t \n\t\tByteArrayOutputStream bin = new ByteArrayOutputStream();\n\t\t\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(new File(path));\n\t\t\tImageIO.write(image, \"jpg\", bin);\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Img2Bin didn't succeed. Error: {}\",e);\n\t\t\treturn null;\n\t\t}\n\n\t return bin.toByteArray();\n\t}", "private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }", "public static void copy(String suffix) {\r\n boolean success = false;\r\n boolean doVideo = true;\r\n String imgSrcDir = zipDir0 + \"/R\";\r\n String videoSrcDir = zipDir0 + \"/Video\";\r\n String imgDstDir = rImagesDir0 + \"/Images\" + suffix;\r\n String videoDstDir = rVideoDir0 + \"/Video\" + suffix;\r\n File imgSrcDirFile = new File(imgSrcDir);\r\n File videoSrcDirFile = new File(videoSrcDir);\r\n File imgDstDirFile = new File(imgDstDir);\r\n File videoDstDirFile = new File(videoDstDir);\r\n\r\n // Check and create directories\r\n if(!imgSrcDirFile.isDirectory()) {\r\n System.err.println(\"Not a directory: \" + imgSrcDirFile.getPath());\r\n System.exit(1);\r\n }\r\n if(!videoSrcDirFile.isDirectory()) {\r\n doVideo = false;\r\n }\r\n if(!imgDstDirFile.isDirectory()) {\r\n success = imgDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + imgDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n if(doVideo && !videoDstDirFile.isDirectory()) {\r\n success = videoDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + videoDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n\r\n // Images\r\n System.out.println(\"\\nCopying images:\");\r\n System.out.println(\"From: \" + imgSrcDirFile.getPath());\r\n System.out.println(\"To: \" + imgDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(imgSrcDirFile, imgDstDirFile, saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + imgSrcDirFile.getPath()\r\n + \"\\n To: \" + imgDstDirFile.getPath() + \"\\n\");\r\n }\r\n\r\n // Video\r\n System.out.println(\"\\nCopying video:\");\r\n if(!doVideo) {\r\n System.out.println(\"No video found\");\r\n return;\r\n }\r\n System.out.println(\"From: \" + videoSrcDirFile.getPath());\r\n System.out.println(\"To: \" + videoDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(videoSrcDirFile, videoDstDirFile,\r\n saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + videoSrcDirFile.getPath()\r\n + \"\\n To: \" + videoDstDirFile.getPath() + \"\\n\");\r\n }\r\n }", "public final void zza(T r25, byte[] r26, int r27, int r28, com.google.android.gms.internal.clearcut.zzay r29) throws java.io.IOException {\n /*\n r24 = this;\n r15 = r24;\n r14 = r25;\n r12 = r26;\n r13 = r28;\n r11 = r29;\n r0 = r15.zzmq;\n if (r0 == 0) goto L_0x01e1;\n L_0x000e:\n r9 = zzmh;\n r0 = r27;\n L_0x0012:\n if (r0 >= r13) goto L_0x01d8;\n L_0x0014:\n r1 = r0 + 1;\n r0 = r12[r0];\n if (r0 >= 0) goto L_0x0024;\n L_0x001a:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r0, r12, r1, r11);\n r1 = r11.zzfd;\n r10 = r0;\n r16 = r1;\n goto L_0x0027;\n L_0x0024:\n r16 = r0;\n r10 = r1;\n L_0x0027:\n r6 = r16 >>> 3;\n r7 = r16 & 7;\n r8 = r15.zzai(r6);\n if (r8 < 0) goto L_0x01b8;\n L_0x0031:\n r0 = r15.zzmi;\n r1 = r8 + 1;\n r5 = r0[r1];\n r0 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r0 = r0 & r5;\n r4 = r0 >>> 20;\n r0 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r0 = r0 & r5;\n r2 = (long) r0;\n r0 = 17;\n r1 = 2;\n if (r4 > r0) goto L_0x0106;\n L_0x0046:\n r0 = 5;\n r6 = 1;\n switch(r4) {\n case 0: goto L_0x00f9;\n case 1: goto L_0x00ec;\n case 2: goto L_0x00db;\n case 3: goto L_0x00db;\n case 4: goto L_0x00ce;\n case 5: goto L_0x00c1;\n case 6: goto L_0x00b7;\n case 7: goto L_0x00a2;\n case 8: goto L_0x0091;\n case 9: goto L_0x0079;\n case 10: goto L_0x006d;\n case 11: goto L_0x00ce;\n case 12: goto L_0x0069;\n case 13: goto L_0x00b7;\n case 14: goto L_0x00c1;\n case 15: goto L_0x005b;\n case 16: goto L_0x004d;\n default: goto L_0x004b;\n };\n L_0x004b:\n goto L_0x01b8;\n L_0x004d:\n if (r7 != 0) goto L_0x01b8;\n L_0x004f:\n r6 = com.google.android.gms.internal.clearcut.zzax.zzb(r12, r10, r11);\n r0 = r11.zzfe;\n r4 = com.google.android.gms.internal.clearcut.zzbk.zza(r0);\n goto L_0x00e3;\n L_0x005b:\n if (r7 != 0) goto L_0x01b8;\n L_0x005d:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r12, r10, r11);\n r1 = r11.zzfd;\n r1 = com.google.android.gms.internal.clearcut.zzbk.zzm(r1);\n goto L_0x00d6;\n L_0x0069:\n if (r7 != 0) goto L_0x01b8;\n L_0x006b:\n goto L_0x00d0;\n L_0x006d:\n if (r7 != r1) goto L_0x01b8;\n L_0x006f:\n r0 = com.google.android.gms.internal.clearcut.zzax.zze(r12, r10, r11);\n L_0x0073:\n r1 = r11.zzff;\n L_0x0075:\n r9.putObject(r14, r2, r1);\n goto L_0x0012;\n L_0x0079:\n if (r7 != r1) goto L_0x01b8;\n L_0x007b:\n r0 = r15.zzad(r8);\n r0 = zza(r0, r12, r10, r13, r11);\n r1 = r9.getObject(r14, r2);\n if (r1 != 0) goto L_0x008a;\n L_0x0089:\n goto L_0x0073;\n L_0x008a:\n r4 = r11.zzff;\n r1 = com.google.android.gms.internal.clearcut.zzci.zza(r1, r4);\n goto L_0x0075;\n L_0x0091:\n if (r7 != r1) goto L_0x01b8;\n L_0x0093:\n r0 = 536870912; // 0x20000000 float:1.0842022E-19 double:2.652494739E-315;\n r0 = r0 & r5;\n if (r0 != 0) goto L_0x009d;\n L_0x0098:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzc(r12, r10, r11);\n goto L_0x0073;\n L_0x009d:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzd(r12, r10, r11);\n goto L_0x0073;\n L_0x00a2:\n if (r7 != 0) goto L_0x01b8;\n L_0x00a4:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzb(r12, r10, r11);\n r4 = r11.zzfe;\n r7 = 0;\n r1 = (r4 > r7 ? 1 : (r4 == r7 ? 0 : -1));\n if (r1 == 0) goto L_0x00b1;\n L_0x00b0:\n goto L_0x00b2;\n L_0x00b1:\n r6 = 0;\n L_0x00b2:\n com.google.android.gms.internal.clearcut.zzfd.zza(r14, r2, r6);\n goto L_0x0012;\n L_0x00b7:\n if (r7 != r0) goto L_0x01b8;\n L_0x00b9:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzc(r12, r10);\n r9.putInt(r14, r2, r0);\n goto L_0x00f5;\n L_0x00c1:\n if (r7 != r6) goto L_0x01b8;\n L_0x00c3:\n r4 = com.google.android.gms.internal.clearcut.zzax.zzd(r12, r10);\n r0 = r9;\n r1 = r25;\n r0.putLong(r1, r2, r4);\n goto L_0x0102;\n L_0x00ce:\n if (r7 != 0) goto L_0x01b8;\n L_0x00d0:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r12, r10, r11);\n r1 = r11.zzfd;\n L_0x00d6:\n r9.putInt(r14, r2, r1);\n goto L_0x0012;\n L_0x00db:\n if (r7 != 0) goto L_0x01b8;\n L_0x00dd:\n r6 = com.google.android.gms.internal.clearcut.zzax.zzb(r12, r10, r11);\n r4 = r11.zzfe;\n L_0x00e3:\n r0 = r9;\n r1 = r25;\n r0.putLong(r1, r2, r4);\n r0 = r6;\n goto L_0x0012;\n L_0x00ec:\n if (r7 != r0) goto L_0x01b8;\n L_0x00ee:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzf(r12, r10);\n com.google.android.gms.internal.clearcut.zzfd.zza(r14, r2, r0);\n L_0x00f5:\n r0 = r10 + 4;\n goto L_0x0012;\n L_0x00f9:\n if (r7 != r6) goto L_0x01b8;\n L_0x00fb:\n r0 = com.google.android.gms.internal.clearcut.zzax.zze(r12, r10);\n com.google.android.gms.internal.clearcut.zzfd.zza(r14, r2, r0);\n L_0x0102:\n r0 = r10 + 8;\n goto L_0x0012;\n L_0x0106:\n r0 = 27;\n if (r4 != r0) goto L_0x013e;\n L_0x010a:\n if (r7 != r1) goto L_0x01b8;\n L_0x010c:\n r0 = r9.getObject(r14, r2);\n r0 = (com.google.android.gms.internal.clearcut.zzcn) r0;\n r1 = r0.zzu();\n if (r1 != 0) goto L_0x012a;\n L_0x0118:\n r1 = r0.size();\n if (r1 != 0) goto L_0x0121;\n L_0x011e:\n r1 = 10;\n goto L_0x0123;\n L_0x0121:\n r1 = r1 << 1;\n L_0x0123:\n r0 = r0.zzi(r1);\n r9.putObject(r14, r2, r0);\n L_0x012a:\n r5 = r0;\n r0 = r15.zzad(r8);\n r1 = r16;\n r2 = r26;\n r3 = r10;\n r4 = r28;\n r6 = r29;\n r0 = zza(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x0012;\n L_0x013e:\n r0 = 49;\n if (r4 > r0) goto L_0x0177;\n L_0x0142:\n r0 = (long) r5;\n r17 = r0;\n r0 = r24;\n r1 = r25;\n r19 = r2;\n r2 = r26;\n r3 = r10;\n r5 = r4;\n r4 = r28;\n r21 = r5;\n r5 = r16;\n r22 = r9;\n r15 = r10;\n r9 = r17;\n r11 = r21;\n r12 = r19;\n r14 = r29;\n r0 = r0.zza(r1, r2, r3, r4, r5, r6, r7, r8, r9, r11, r12, r14);\n if (r0 != r15) goto L_0x0169;\n L_0x0166:\n r2 = r0;\n goto L_0x01bc;\n L_0x0169:\n r14 = r25;\n r12 = r26;\n r13 = r28;\n r11 = r29;\n r9 = r22;\n r15 = r24;\n goto L_0x0012;\n L_0x0177:\n r19 = r2;\n r21 = r4;\n r22 = r9;\n r15 = r10;\n r0 = 50;\n r9 = r21;\n if (r9 != r0) goto L_0x019e;\n L_0x0184:\n if (r7 != r1) goto L_0x019c;\n L_0x0186:\n r14 = r15;\n r0 = r24;\n r1 = r25;\n r2 = r26;\n r3 = r14;\n r4 = r28;\n r5 = r8;\n r7 = r19;\n r9 = r29;\n r0 = r0.zza(r1, r2, r3, r4, r5, r6, r7, r9);\n if (r0 != r14) goto L_0x01ca;\n L_0x019b:\n goto L_0x0166;\n L_0x019c:\n r14 = r15;\n goto L_0x01bb;\n L_0x019e:\n r14 = r15;\n r0 = r24;\n r1 = r25;\n r2 = r26;\n r3 = r14;\n r4 = r28;\n r10 = r5;\n r5 = r16;\n r12 = r8;\n r8 = r10;\n r10 = r19;\n r13 = r29;\n r0 = r0.zza(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r12, r13);\n if (r0 != r14) goto L_0x01ca;\n L_0x01b7:\n goto L_0x0166;\n L_0x01b8:\n r22 = r9;\n r14 = r10;\n L_0x01bb:\n r2 = r14;\n L_0x01bc:\n r0 = r16;\n r1 = r26;\n r3 = r28;\n r4 = r25;\n r5 = r29;\n r0 = zza(r0, r1, r2, r3, r4, r5);\n L_0x01ca:\n r15 = r24;\n r14 = r25;\n r12 = r26;\n r13 = r28;\n r11 = r29;\n r9 = r22;\n goto L_0x0012;\n L_0x01d8:\n r4 = r13;\n if (r0 != r4) goto L_0x01dc;\n L_0x01db:\n return;\n L_0x01dc:\n r0 = com.google.android.gms.internal.clearcut.zzco.zzbo();\n throw r0;\n L_0x01e1:\n r4 = r13;\n r5 = 0;\n r0 = r24;\n r1 = r25;\n r2 = r26;\n r3 = r27;\n r4 = r28;\n r6 = r29;\n r0.zza(r1, r2, r3, r4, r5, r6);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(java.lang.Object, byte[], int, int, com.google.android.gms.internal.clearcut.zzay):void\");\n }", "static Image bityNaObraz(String image) throws IOException\n {\n byte[] rysunek = DatatypeConverter.parseBase64Binary(image); \n BufferedImage img = ImageIO.read(new ByteArrayInputStream(rysunek));\n return img;\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "byte[] get_destination_script();", "private static final byte[] xfsg_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -77, 9, 0, 67,\n\t\t\t\t67, 67, 93, 93, 93, 115, 115, 115, -120, -120, -120, -96, -96,\n\t\t\t\t-96, -89, -89, -89, -88, -88, -88, -62, -62, -62, -28, -28,\n\t\t\t\t-28, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t0, 0, 0, 33, -7, 4, 1, 0, 0, 9, 0, 44, 0, 0, 0, 0, 16, 0, 16,\n\t\t\t\t0, 0, 4, 83, 48, -55, 121, -86, -99, 88, 90, -124, 110, 78, 21,\n\t\t\t\t39, 118, 71, 86, 9, -60, 56, 0, 21, 117, 10, -24, 10, -80, 45,\n\t\t\t\t-8, 14, 2, 16, -24, -98, 69, 8, 3, -61, 96, 103, 41, -39, 14,\n\t\t\t\t-85, 64, 16, 87, -44, 84, 102, 59, 32, -20, 2, -85, -26, 6,\n\t\t\t\t-65, 105, -51, 42, 24, 33, 8, 53, -119, -43, 27, 78, 112, 15,\n\t\t\t\t28, -113, 88, -80, 46, 26, -41, 24, -10, 7, 62, -1, 68, 0, 0,\n\t\t\t\t59 };\n\t\treturn data;\n\t}", "public String ApkZipAlign(String apkname) {\n\t\tString outname = null;\r\n Runtime rn=Runtime.getRuntime();\r\n try{\r\n \toutname = apkname.substring(0, apkname.lastIndexOf(\".\"))+\"Align.apk\";\r\n \tSystem.out.println(\"ZipAlign \"+outname); \r\n \tFile zipalignf = new File(outname);\r\n \tif(zipalignf.exists())\r\n \t\tzipalignf.delete();\r\n \t\r\n \tProcess process = rn.exec(JarPath+\"zipalign -v 4 \"+apkname+\" \"+outname); \t \t\r\n \tWatchThread wt = new WatchThread(process); \r\n \twt.start(); \r\n \tprocess.waitFor();\r\n \twt.setOver(true); \r\n \twt.join();\r\n \t\r\n \tif(!new File(outname).exists())\r\n \t{\r\n \toutputstr(\"Error: ZipAlign \"+apkname);\r\n \treturn null; \r\n \t}\r\n \telse\r\n \t{\r\n \t\tnew File(apkname).delete();\r\n \t}\r\n }catch(Exception e){\r\n \toutputstr(\"Error: ZipAlign \"+apkname);\r\n \treturn null; \r\n } \t\t\r\n\t\treturn outname;\r\n\t}", "@Test\n\tpublic void testImagePlusString() {\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"hongKongFooey.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNull(ip.getImage());\n\n\t\t// try a file that should exist\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNotNull(ip.getImage());\n\t\tassertEquals(2,ip.getNDimensions());\n\t\tassertEquals(2,ip.getHeight());\n\t\tassertEquals(3,ip.getWidth());\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.getNFrames());\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\t\tassertEquals(\"gray8-3x2-sub1.tif\",ip.getTitle());\n\t}", "public final String zzg(byte[] bArr, int i, int i2) throws zzgb {\n if ((i | i2 | ((bArr.length - i) - i2)) >= 0) {\n int i3 = i + i2;\n char[] cArr = new char[i2];\n int i4 = 0;\n while (r13 < i3) {\n byte zza = zziv.zza(bArr, (long) r13);\n if (!zziy.zzd(zza)) {\n break;\n }\n i = r13 + 1;\n int i5 = i4 + 1;\n zziy.zza(zza, cArr, i4);\n i4 = i5;\n }\n int i6 = i4;\n while (r13 < i3) {\n int i7 = r13 + 1;\n byte zza2 = zziv.zza(bArr, (long) r13);\n if (zziy.zzd(zza2)) {\n int i8 = i6 + 1;\n zziy.zza(zza2, cArr, i6);\n while (i7 < i3) {\n byte zza3 = zziv.zza(bArr, (long) i7);\n if (!zziy.zzd(zza3)) {\n break;\n }\n i7++;\n int i9 = i8 + 1;\n zziy.zza(zza3, cArr, i8);\n i8 = i9;\n }\n r13 = i7;\n i6 = i8;\n } else if (zziy.zze(zza2)) {\n if (i7 < i3) {\n int i10 = i7 + 1;\n int i11 = i6 + 1;\n zziy.zza(zza2, zziv.zza(bArr, (long) i7), cArr, i6);\n r13 = i10;\n i6 = i11;\n } else {\n throw zzgb.zzhx();\n }\n } else if (zziy.zzf(zza2)) {\n if (i7 < i3 - 1) {\n int i12 = i7 + 1;\n int i13 = i12 + 1;\n int i14 = i6 + 1;\n zziy.zza(zza2, zziv.zza(bArr, (long) i7), zziv.zza(bArr, (long) i12), cArr, i6);\n r13 = i13;\n i6 = i14;\n } else {\n throw zzgb.zzhx();\n }\n } else if (i7 < i3 - 2) {\n int i15 = i7 + 1;\n byte zza4 = zziv.zza(bArr, (long) i7);\n int i16 = i15 + 1;\n int i17 = i16 + 1;\n int i18 = i6 + 1;\n zziy.zza(zza2, zza4, zziv.zza(bArr, (long) i15), zziv.zza(bArr, (long) i16), cArr, i6);\n r13 = i17;\n i6 = i18 + 1;\n } else {\n throw zzgb.zzhx();\n }\n }\n return new String(cArr, 0, i6);\n }\n throw new ArrayIndexOutOfBoundsException(String.format(\"buffer length=%d, index=%d, size=%d\", new Object[]{Integer.valueOf(bArr.length), Integer.valueOf(i), Integer.valueOf(i2)}));\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.readChar();\n javaCharStream0.GetImage();\n assertEquals(1, javaCharStream0.bufpos);\n }", "ImageTranscoder mo28916a(ImageFormat cVar, boolean z);", "public final boolean mo56571e(String str, byte[] bArr, int i) {\n AppMethodBeat.m2504i(79321);\n if (str == null || str.length() == 0 || bArr == null || bArr.length == 0) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"saveIcon, invalid argument\");\n AppMethodBeat.m2505o(79321);\n return false;\n }\n String dY = C35796i.m58670dY(str, i);\n if (dY == null) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"saveIcon fail, iconPath is null\");\n AppMethodBeat.m2505o(79321);\n return false;\n }\n C5728b c5728b = new C5728b(dY);\n if (c5728b.exists()) {\n c5728b.delete();\n }\n OutputStream outputStream = null;\n try {\n outputStream = C5730e.m8641q(c5728b);\n outputStream.write(bArr);\n outputStream.close();\n anF(str);\n AppMethodBeat.m2505o(79321);\n return true;\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.AppInfoStorage\", e, \"\", new Object[0]);\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"saveIcon, exception, e = \" + e.getMessage());\n if (outputStream != null) {\n try {\n outputStream.close();\n } catch (IOException e2) {\n }\n }\n AppMethodBeat.m2505o(79321);\n return false;\n }\n }", "protected final int getBMPOffset(char paramChar) {\n/* 277 */ return (paramChar >= '?' && paramChar <= '?') ? \n/* */ \n/* 279 */ getRawOffset(320, paramChar) : \n/* 280 */ getRawOffset(0, paramChar);\n/* */ }", "private static final byte[] xfuzzyclose_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 96,\n\t\t\t\t96, 96, -128, -128, -128, -112, -112, -112, -1, -1, -1, 33, -2,\n\t\t\t\t14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77,\n\t\t\t\t80, 0, 33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0,\n\t\t\t\t0, 2, 54, -124, 61, 121, -112, 125, -83, 24, -116, 114, -96,\n\t\t\t\t-23, -48, -59, 121, 115, 90, 125, -102, 55, 109, -63, -119,\n\t\t\t\t-94, 86, 24, 8, -18, 43, 4, 75, -45, -74, 110, -51, -39, -11,\n\t\t\t\t-99, -65, 118, -36, -117, 9, -127, -104, -35, -115, 56, -7,\n\t\t\t\t-63, 2, -71, 84, -86, 0, 0, 59 };\n\t\treturn data;\n\t}", "public String generateBarCode(String barCodeStr, String receiptName) {\n\t\tString path = getFileServerPath(barCodeStr+\".jpg\");\r\n\t\t\r\n\t\tif(new File(path).exists()) return path;\r\n\t\t\r\n\t\tFileOutputStream fos = null;\r\n\t\tByteArrayOutputStream bytesOut = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tBarcode128 code128 = new Barcode128();\r\n\t\t\tcode128.setCodeType(Barcode128.CODE128);\r\n\t\t\tcode128.setCode(barCodeStr);\r\n\t\t\tjava.awt.Image img = code128.createAwtImage(Color.BLACK, Color.WHITE);\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tBufferedImage outImage = new BufferedImage(img.getWidth(null),\r\n\t\t\t\timg.getHeight(null), BufferedImage.TYPE_INT_RGB);\r\n\t\t\toutImage.getGraphics().drawImage(img, 0, 0, null);\r\n\t\t\tbytesOut = new ByteArrayOutputStream();\r\n\t\t\r\n\t\t\tImageIO.write(outImage, \"jpg\", bytesOut);\r\n\t\t\t\r\n\t\t\tbyte[] pngImageData = bytesOut.toByteArray();\r\n\t\t\t\r\n\t\t\tfos = new FileOutputStream(new File(path));\r\n\t\t\tfos.write(pngImageData);\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\tif (bytesOut != null) {\r\n\t\t\t\ttry {\t\t\t\t\t\r\n\t\t\t\t\tbytesOut.flush();\r\n\t\t\t\t\tbytesOut.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (fos != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos.flush();\r\n\t\t\t\t\tfos.close();\t\t\t\t\t\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//System.out.println(\"================================ \"+path +\" \"+ new File(path).exists());\r\n\t\t\t//logger.error(\"================================ \"+path +\" \"+ new File(path).exists());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn path;\r\n\t}", "private static ByteString readImageBytes(BlobKey blobKey) throws IOException {\n BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();\n BlobInfo blobInfo = new BlobInfoFactory().loadBlobInfo(blobKey);\n long blobSize = blobInfo.getSize();\n\n ByteArrayOutputStream outputBytes = new ByteArrayOutputStream();\n int fetchSize = BlobstoreService.MAX_BLOB_FETCH_SIZE;\n long currentByteIndex = 0;\n\n // Fetch all the bytes from the blob in fragments of the maximum fetch size.\n while (currentByteIndex < blobSize) {\n // End index is inclusive, so subtract 1 to get fetchSize bytes.\n // Get data starting at currentByteIndex until either the fetch size or\n // the end of the blob is reached.\n byte[] bytes =\n blobstoreService.fetchData(blobKey, currentByteIndex, currentByteIndex + fetchSize - 1);\n outputBytes.write(bytes);\n\n currentByteIndex += fetchSize;\n }\n\n return ByteString.copyFrom(outputBytes.toByteArray());\n }", "public static native int nativeRecoRawdat(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, byte []bresult, int maxsize);", "public static void m97138a(Bitmap bitmap, String str) {\n File file = new File(str);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);\n try {\n byte[] byteArray = byteArrayOutputStream.toByteArray();\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n fileOutputStream.write(byteArray);\n fileOutputStream.flush();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.51982325", "0.51663184", "0.51489747", "0.5119866", "0.5117324", "0.5114616", "0.503752", "0.50165266", "0.49737906", "0.4965839", "0.49298376", "0.48749104", "0.48525462", "0.48482648", "0.4844589", "0.4819682", "0.4815803", "0.47907737", "0.47885427", "0.47884604", "0.47785792", "0.47652537", "0.4756205", "0.47548613", "0.47536796", "0.47531676", "0.47475076", "0.47401166", "0.47315797", "0.4730578", "0.4716236", "0.47104087", "0.4701361", "0.4686005", "0.4682648", "0.46722367", "0.46677932", "0.4645215", "0.46450475", "0.4643382", "0.46404022", "0.46402413", "0.4634784", "0.46199808", "0.4618897", "0.46180978", "0.45978478", "0.4588014", "0.45780355", "0.45737395", "0.45624614", "0.4548285", "0.45458257", "0.4543099", "0.4534422", "0.45324507", "0.45137817", "0.4511789", "0.4511094", "0.45080656", "0.45008475", "0.45005074", "0.4495429", "0.44914418", "0.4482345", "0.44821963", "0.44799098", "0.4466959", "0.44661382", "0.44573542", "0.44540048", "0.44469824", "0.44416866", "0.44379246", "0.44368976", "0.4436813", "0.4435755", "0.44305298", "0.4428821", "0.4418996", "0.44169408", "0.44161877", "0.44147864", "0.44045988", "0.4400841", "0.43883222", "0.43877846", "0.4387299", "0.43822053", "0.43779138", "0.43695652", "0.43645975", "0.43610716", "0.43609324", "0.43597567", "0.4356809", "0.43528476", "0.43457115", "0.43356225", "0.43252712" ]
0.48204517
15
method that parses the Json File by its file name
public static ArrayList<Course> loadJsonByFileName(String jsonFileName) throws NullPointerException{ if (jsonFileName == null){ throw new NullPointerException(ErrorMessage.NULL_JSON_FILE_NAME); } String jsonFile = Data.getFileContentsAsString(jsonFileName); return loadJson(jsonFile); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parse(String jsonFileName) {\n JSONObject jsonObject = null;\n JSONParser jsonParser = new JSONParser();\n Reader jsonFileReader = this.resourceFileLoader.loadJsonReader(jsonFileName);\n\n try {\n jsonObject = (JSONObject) jsonParser.parse(jsonFileReader);\n } catch(Exception e) {\n this.exceptionLogger.log(e);\n }\n\n return jsonObject;\n }", "public void parse(String filename);", "public static void main(String[] args) throws FileNotFoundException {\r\n\t\tJsonParser parser = Json.createParser(new FileReader(JSON_FILE_NAME));\r\n\t\t\r\n\t\t// parse the file\r\n\t\twhile (parser.hasNext()) {\r\n\t\t\tJsonParser.Event event = parser.next();\r\n\t\t\tif (event.equals(JsonParser.Event.KEY_NAME)) {\r\n\t\t\t\tString key = parser.getString();\r\n\t\t\t\tparser.next();\r\n\t\t\t\tString value = parser.getString();\r\n\t\t\t\tSystem.out.printf(\">> %s: %s\\n\", key, value);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void parse(String fileName) throws Exception;", "public static JSONArray parsedFile() {\n JSONParser parser = new JSONParser();\n try {\n String filePath = new File(\"\").getAbsolutePath();\n if (!filePath.substring(filePath.length()-3, filePath.length()).equals(\"src\")) {\n filePath = filePath.concat(\"/src\");\n }\n filePath = filePath.concat(\"/cardData/data.json\");\n FileReader file = new FileReader(filePath);\n Object parsedFile = parser.parse(file);\n return (JSONArray) parsedFile;\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (ParseException p) {\n System.out.println(\"Caught a Parsing Exception\" + p.getMessage());\n p.printStackTrace();\n System.exit(0);\n }\n return null;\n }", "public static JsonObject parseFromFile(String file) {\n\t\tJsonObject res = null;\n\t\ttry {\n\t\t\tJsonStreamParser parser = new JsonStreamParser(new FileReader(file));\n\t\t\tif (parser.hasNext())\n\t\t\t\tres = parser.next().getAsJsonObject();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "private void readFromJSON(String filename) {\n JSONParser parser = new JSONParser();\n\n try\n {\n Object obj = parser.parse(new FileReader(filename));\n JSONObject jsonObject = (JSONObject) obj;\n Menu drinks = getMenu(jsonObject, \"Drink\");\n Menu types = getMenu(jsonObject, \"Type\");\n Menu toppings = getMenu(jsonObject, \"Toppings\");\n Menu sizes = getMenu(jsonObject, \"Size\");\n menuMap.put(\"Drink\", drinks);\n menuMap.put(\"Size\", sizes);\n menuMap.put(\"Toppings\", toppings);\n menuMap.put(\"Type\", types);\n\n } catch (FileNotFoundException e) {\n System.out.println(\"Not found menu.json, exit now.\");\n System.exit(1);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "private static JSONObject fileReader(String path) throws Exception{\r\n return (JSONObject) jsonParser.parse(new String(Files.readAllBytes(Paths.get(path))));\r\n }", "public void parseFile(File dir) {\r\n\t\tFile[] files = dir.listFiles();\r\n\t\tfor(int i = 0; i < files.length; i++) {\r\n\t\t\tif(files[i].isDirectory()) {\r\n\t\t\t\tparseFile(files[i]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!files[i].exists()) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tString fileName = files[i].getName();\r\n\t\t\t\tif(fileName.toLowerCase().endsWith(\".json\")) {\r\n\t\t\t\t\twq.execute(new Worker(library, files[i]));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\r\n\tInputStream is = new FileInputStream(jsonFilePath);\r\n\tJsonReader jsonReader = Json.createReader(is);\r\n\tJsonObject json = jsonReader.readObject();\r\n\tjsonReader.close();\r\n\tis.close();\r\n\treturn json;\r\n }", "private JSONObject readJSONFile(Path path) throws ExtensionManagementException {\n\n if (Files.exists(path) && Files.isRegularFile(path)) {\n try {\n String jsonString = FileUtils.readFileToString(path.toFile(), UTF8);\n return new JSONObject(jsonString);\n } catch (JSONException e) {\n throw new ExtensionManagementException(\"Error while parsing JSON file: \" + path, e);\n } catch (IOException e) {\n throw new ExtensionManagementException(\"Error while reading JSON file: \" + path, e);\n }\n } else {\n throw new ExtensionManagementException(\"JSON file not found: \" + path);\n }\n }", "@Override\n public void fromFile(final String file) {\n // Model会关心文件路径,所以这里需要这个操作\n this.jsonFile = file;\n final JsonObject data = Ut.ioJObject(this.jsonFile);\n this.fromJson(data);\n }", "@Test\n\tpublic void readJSONFromFile() {\n\t\t\n\t\tJsonPath jsonFile = new JsonPath(new File (\"C:\\\\Users\\\\cmlzd\\\\Desktop\\\\employees.json\"));\n\t\t\n\t\tSystem.out.println(jsonFile.getString(\"items.email\"));\n\t\t\n\t\t\n\t}", "private static String readJsonFile (String fileName) {\n if (!fileName.endsWith(\".json\")){\n throw new IllegalArgumentException(\"Invalid file name\");\n }\n String jsonStr = \"\";\n try{\n isFileExistOrCreatIt(fileName);\n File jsonFile = new File(\"src//main//resources\"+\"//\"+fileName);\n Reader reader = new InputStreamReader(new FileInputStream(jsonFile),\"utf-8\");\n int ch = 0;\n StringBuffer sb = new StringBuffer();\n while((ch = reader.read())!=-1){\n sb.append((char) ch);\n }\n reader.close();\n jsonStr = sb.toString();\n return jsonStr;\n\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static LinkedTreeMap<String, Object> importJsonData( String filePath, boolean assetFile )\n {\n FileReader reader = null;\n LinkedTreeMap<String, Object> fileData = null;\n\n if( assetFile )\n {\n AssetManager mgr = WeatherLionApplication.getAppContext().getAssets();\n String filename;\n\n try\n {\n filename = WeatherLionApplication.OPEN_SOURCE_LICENCE;\n InputStream in = mgr.open( filename, AssetManager.ACCESS_BUFFER );\n Writer writer = new StringWriter();\n char[] buffer = new char[ 1024 ];\n\n try\n {\n Reader assetReader = new BufferedReader( new InputStreamReader( in, StandardCharsets.UTF_8 ) );\n int n;\n\n while ( ( n = assetReader.read( buffer ) ) != -1 )\n {\n writer.write( buffer, 0, n) ;\n }// end of while loop\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n fileData = gson.fromJson( writer.toString(),\n new TypeToken<LinkedTreeMap<String, Object>>(){}.getType() );\n\n in.close();\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n else\n {\n try\n {\n File file = new File( filePath );\n\n // if the is a file present then it will contain a list with at least on object\n if( file.exists() )\n {\n reader = new FileReader( file );\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n fileData = gson.fromJson( reader,\n new TypeToken<LinkedTreeMap<String, Object>>(){}.getType() );\n }// end of if block\n\n }// end of try block\n catch ( FileNotFoundException | JsonSyntaxException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n finally\n {\n // close the file reader object\n if( reader != null )\n {\n try\n {\n reader.close();\n } // end of try block\n catch (IOException e)\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE,\n e.getMessage(),TAG + \"::importJsonData [line: \"\n + UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n }// end of finally block\n }// end of else block\n\n return fileData;\n }", "private static JSONTile parse(String configFile) {\n Gson gson = new Gson();\n\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(new FileInputStream(configFile), StandardCharsets.UTF_8))) {\n return gson.fromJson(reader, JSONTile.class);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Error when reading file: \" + configFile, e);\n }\n }", "public static void readFile(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (Reader reader = new FileReader(filename)) {\n JSONObject jo = (JSONObject) jsonParser.parse(reader);\n\n SHORT_PERIOD = (int) (long) jo.get(\"shortPeriod\");\n LONG_PERIOD = (int) (long) jo.get(\"longPeriod\");\n AVG_AMOUNT_PERIOD = (int) (long) jo.get(\"avgAmountPeriod\");\n SESSION_INTERVAL = (int) (long) jo.get(\"sessionInterval\");\n\n\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public String readJsonFile(String fileName)\n {\n FileInputStream fileInputStream = null;\n String text;\n StringBuilder stringBuilder = new StringBuilder();\n\n try\n {\n fileInputStream = mainContext.openFileInput(fileName);\n InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\n while((text = bufferedReader.readLine()) != null)\n {\n stringBuilder.append(text).append(\"\\n\");\n }\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n }\n\n return stringBuilder.toString();\n }", "public JSONDocument parse (File fl){\n JSONDocument temp = null;\n String data = \"\";\n if (fl != null){\n try (FileReader fr = new FileReader(fl)){\n int c;\n while((c = fr.read()) != -1) data += (char)c;\n temp = this.parseString(this.cleanString(data));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }else throw new IllegalArgumentException(\"File cannot be null\");\n return temp;\n }", "public Integer loadJSONFile()\n {\n JSONParser parser = new JSONParser();\n try{\n\n Object obj = parser.parse(new FileReader(\"/Users/rnuka/Desktop/sample.json\"));\n JSONObject jsonObj = (JSONObject)obj;\n\n Long age = (Long)jsonObj.get(\"age\");\n System.out.println(\"age:\"+age);\n\n String name = (String)jsonObj.get(\"name\");\n System.out.println(\"name:\" + name);\n\n JSONArray address = (JSONArray)jsonObj.get(\"address\");\n\n for(Object str : address){\n System.out.println(str);\n }\n\n\n\n }catch(Exception e){\n e.printStackTrace();\n }\n return 1;\n }", "public static OMDBJsonResponse getMoviesFromJSON(File jsonFile)\n {\n Gson gson = new Gson();\n OMDBJsonResponse searchResult = null;\n\n //using try \"with resources\"\n try(\n FileReader fileReader = new FileReader(jsonFile);\n JsonReader jsonReader = new JsonReader(fileReader);\n )\n {\n searchResult = gson.fromJson(jsonReader, OMDBJsonResponse.class);\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n return searchResult;\n }", "private void loadJSON() throws FileNotFoundException\n\t{\n\n\t\tGsonBuilder builder= new GsonBuilder();\n\t\tGson gson = builder.create();\n\t\t\t\t\n\t\t//get a list of folders in the data directory\n\t\t\n\t\tFile[] directories = new File(\"data\").listFiles();\n\n\t\t//Loop through folders in data directory\n\t\tfor(File folder : directories)\n\t\t\t{\n\t\t\t\t//get a list of files inside the folder\n\t\t\t\tFile[] jsonItems = new File(folder.toString()).listFiles();\n\t\t\t\t\n\t\t\t\t//Loop through files inside the folder \n\t\t\t\tfor(File file : jsonItems)\n\t\t\t\t{\n\t\t\t\t\t//Store in directory map... substring to remove the \"data/\" portion... placed by filename to foldername\n\t\t\t\t\tString dir = file.toString().substring(5);\n\t\t\t\t\t\n\t\t\t\t\t//Generate player data from gson\n\t\t\t\t\tJsonReader reader = new JsonReader(new FileReader(file));\n\t\t\t\t\tPlayer player = gson.fromJson(reader, Player.class);\n\t\t\t\t\t\n\t\t\t\t\t//Store it in the map tied to it's directory\n\t\t\t\t\tplayerData.put(dir, player);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public JsonReader(String file) {\n this.file = file;\n }", "public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }", "public JSONObject LoadJson(String filename) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tnew FileInputStream(filename), \"UTF-8\"));\n\t\t\tStringBuffer buffer = new StringBuffer(1024);\n\t\t\tString line;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tbuffer.append(line);\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\treturn new JSONObject(buffer.toString());\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.format(\"[Error]Failed to open file %s!\", filename);\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (JSONException e) {\n\t\t\tSystem.err.format(\"[Error]Failed to parse json file %s!\", filename);\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private void inflateFromFile() {\n\t\t\n\t\tFile file = null;\t\t\n\t\ttry {\n\t\t\tfile = new File(FILE_PATH);\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tFileReader reader = null;\t\t\n\t\ttry {\n\t\t\treader = new FileReader(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Can't find source (json file)\");\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t\t\n\t\t}\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(\n\t\t\t\tnew JSONTokener(reader)\n\t\t\t\t);\n\t\t\n\t\tJSONArray array = jsonObject.getJSONArray(\"students\");\n\t\t\n\t\tfor (int i = 0; i < array.length(); i++) {\t\t\t\n\t\t\tJSONObject student = array.getJSONObject(i);\t\t\t\n\t\t\tString name = student.getString(\"name\");\n\t\t\tString secondName = student.getString(\"secondName\");\n\t\t\tString surname = student.getString(\"surname\");\n\t\t\tString birthday = student.getString(\"birthday\");\n\t\t\tString facultet = student.getString(\"facultet\");\n\t\t\tint groupNumber = student.getInt(\"groupNumber\");\n\t\t\t\n\t\t\tDate dateBirthday = null; \n\t\t\t//делаем Date из строки\t\t\t\n\t\t\ttry {\n\t\t\t\tdateBirthday = new SimpleDateFormat(\"dd.MM.yyyy\").parse(birthday);\n\t\t\t} catch(ParseException e) {\n\t\t\t\tSystem.err.println(\"Can't understand the date format from source.\");\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tstudents.add(\n\t\t\t\t\tStudent.get(name, secondName, surname, dateBirthday, facultet, groupNumber)\n\t\t\t\t\t);\t\t\t\n\t\t}\t\t\t\n\t}", "public ArrayList <JSONObject> parseJSONFiles(String JSONdir) throws IOException {\n BufferedReader br;\n String jsonString;\n JSONParser parser = new JSONParser();\n ArrayList <JSONObject> jsonArrayList = new ArrayList<>();\n\n //visit dir that holds JSON files\n File dir = new File(JSONdir);\n\n //process every json object in given dir\n File[] jsonFiles = dir.listFiles((dir1, filename) -> filename.endsWith(\".json\"));\n\n //each newline in json object is a tweet\n for (File jsonFile : requireNonNull(jsonFiles)) {\n\n //create br to read tweets\n br = new BufferedReader(new FileReader(jsonFile.getCanonicalPath()));\n\n //while buffer has tweets to read\n while ((jsonString = br.readLine()) != null) {\n //parse the tweet\n try {\n jsonArrayList.add((JSONObject) parser.parse(jsonString));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }\n //close br and open next text file\n br.close();\n }\n return jsonArrayList;\n }", "public String parse(File file);", "public static String readJsonObject(String filename) {\r\n\t\tBufferedReader br = null;\r\n\t\tFileReader fr = null;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString sCurrentLine;\r\n\t\ttry {\r\n\r\n\t\t\tfr = new FileReader(filename);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\r\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\r\n\t\t\t\tsb.append(sCurrentLine);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\tif (fr != null)\r\n\t\t\t\t\tfr.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String fileToString(String file){\n String path = new File(\"./Users/Colin/AndroidStudioProjects/FlightCompare/app/json/flights.json\").getAbsolutePath();\n File fileObj = new File(path);\n Log.d(\"Reading JSON file\", \"File exists: \" + fileObj.exists());\n Log.d(\"Reading JSON file\", \"File is directory: \" + fileObj.isDirectory());\n Log.d(\"Reading JSON file\", \"File can read: \" + fileObj.canRead());\n Log.d(\"Reading JSON file\", \"Current directory: \" + path);\n Log.d(\"Reading JSON file\", \"The path is: \" + file);\n try(Scanner in = new Scanner(new File(file))){\n StringBuilder sb = new StringBuilder();\n while(in.hasNextLine()){\n sb.append(in.nextLine());\n sb.append('\\n');\n }\n in.close();\n\n return sb.toString();\n }\n catch (FileNotFoundException ex){\n ex.printStackTrace();\n }\n return null;\n }", "public static ResponseUserObj parseGSON() throws FileNotFoundException {\n\n Gson gson = new Gson();\n\n ResponseUserObj data = gson.fromJson(new JsonReader(new FileReader(\"classwork/json/example.json\")), ResponseUserObj.class);\n\n return data;\n }", "public File findJSON(List<File> files) {\n\t\t\tFile jsonFile = null;\n\t\t\tfor (File file : files) {\n\t\t\t\tif (file.getName().endsWith(\".json\")) {\n\t\t\t\t\tjsonFile = file;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (jsonFile == null) {\n\t\t\t\tSystem.err.println(\"JSON file not found !!!\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\treturn jsonFile;\n\t\t}", "private void parseJSON(String response)\n {\n try\n {\n // Using orj.json, get the file string and convert it to an object\n JSONObject object = (JSONObject) new JSONTokener(response).nextValue();\n\n // The Winnipeg Transit JSON results usually have nested values\n // We can identify the request by the first key of the first level\n\n // The method names() will retrieve an JSONArray with the key names\n JSONArray objectNames = object.names();\n\n // Retrieve the first key of the first level\n String firstKey = objectNames.getString(0);\n\n if (firstKey.equals(\"status\"))\n {\n parseStatus(object.getJSONObject(firstKey));\n }\n else if (firstKey.equals(\"stop-schedule\"))\n {\n parseStopSchedule(object.getJSONObject(firstKey));\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n }", "private JSONObject importFlowJSON (Path pathToFolder) {\n // Create a JSONParser to parse the content of the file\n JSONParser parser = new JSONParser();\n\n // The JSONObject instance that will be returned\n JSONObject flow;\n\n try{\n // Read and parse the json file\n flow = (JSONObject) parser.parse(new FileReader(pathToFolder.toString() + \"/\" + FLOW_FILE_NAME));\n // If the file has been found and parsed we return it as a JSONObject\n return flow;\n } catch (ParseException | IOException e) {\n // If the file hasn't been found we return null\n e.printStackTrace();\n return null;\n }\n }", "@Override\n public String toString() {return \"Json-File Reader\";}", "public static JsonObject fileToJson(File jsonFile) {\n Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create();\n JsonObject jsonObject = null;\n\n try {\n Reader reader = new FileReader(jsonFile);\n jsonObject = gson.fromJson(reader, JsonObject.class);\n } catch (FileNotFoundException e) {\n //log.error(\"FileNotFound Exception occurred when converting JSON file to JSON Object\", e); //todo: FileNotFound exception occured. error message?\n e.printStackTrace();\n }\n\n return jsonObject;\n }", "public static HashMap<String,String> read_json_file(String filepath){\n HashMap<String,String> map = new HashMap<String,String>();\n try{\n BufferedReader bufferedReader = new BufferedReader(new FileReader(filepath));\n Gson gson = new Gson();\n Object json = gson.fromJson(bufferedReader, Object.class);\n map = new Gson().fromJson(\n json.toString(), new TypeToken<HashMap<String, String>>() {}.getType()\n );\n } catch (FileNotFoundException e ) {\n e.printStackTrace();\n }\n return map;\n }", "private static ArrayList<Movie> getJsonArray(String fileName){\n String s = readJsonFile(fileName);\n return (ArrayList<Movie>) JSONObject.parseArray(s, Movie.class);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Object> pareseFile(String fileName) throws FileNotFoundException, IOException, ParseException {\n\t\tJSONParser parser = new JSONParser();\n\t\tObject object = parser.parse(new FileReader(new File(fileName)));\n\t\tJSONArray array = (JSONArray) object;\n\t\tArrayList<Object> arrayList = new ArrayList<>();\n\t\tfor (int i = 0; i < array.size(); i++) {\n\t\t\tJSONObject obj = (JSONObject) array.get(i);\n\t\t\tarrayList.add(obj);\n\t\t} \n\n\t\treturn arrayList;\n\t}", "@Override\n public Object loadFromJson(Context context) {\n Gson gson = new Gson();\n String json = FileManager.getInstance().loadFromFile(getFileName(), context);\n if(json.equals(\"\")) {\n return null;\n }\n\n return gson.fromJson(json, MatchStorage.class);\n\n }", "public static List<User> getUserFromJson(String filename){\n \tString s = readJsonFile(filename);\n \tList<User> users = JSONObject.parseArray(s, User.class);\n \treturn users;\n }", "public JsonParser createParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 755 */ IOContext ctxt = _createContext(f, true);\n/* 756 */ InputStream in = new FileInputStream(f);\n/* 757 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public String parseJSON(){\r\n String json = null;\r\n try{\r\n InputStream istream = context.getAssets().open(\"restaurantopeninghours.json\");\r\n int size = istream.available();\r\n byte[] buffer = new byte[size];\r\n istream.read(buffer);\r\n istream.close();\r\n json = new String(buffer, \"UTF-8\");\r\n }catch (IOException ex){\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n return json;\r\n }", "public void parseFile(String filePath) {\r\n\r\n\t\t// get the file content\r\n\t\tString fileContent = getFileContent(filePath);\r\n\r\n\t\tJSONObject flightEnvObj = new JSONObject(fileContent);\r\n\r\n\t\tairports = flightEnvObj.getJSONObject(\"airports\");\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tJSONObject bufferGeometry = flightEnvObj.getJSONObject(\"bufferGeometry\");\r\n\t\twaypoints = flightEnvObj.getJSONObject(\"pathPoints\");\r\n\t\troutes = flightEnvObj.getJSONObject(\"paths\");\r\n\r\n\t\t_airportsFeatures = airports.getJSONArray(\"features\");\r\n\t\t_waypointsFeatures = waypoints.getJSONArray(\"features\");\r\n\t\t_routesFeatures = routes.getJSONArray(\"features\");\r\n\r\n\t\t// call private method\r\n\t\tgenerateLayerAirports();\r\n\t\tgenerateLayerWaypoints();\r\n\t\tgenerateLayerRoutes();\r\n\r\n\t}", "public static void loadPracticeListFromFile() {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"src/practiceList.json\")) {\n // Read JSON file\n Object object = jsonParser.parse(reader);\n\n //Iterate over word list array\n JSONArray wordList = (JSONArray) object;\n for (Object o : wordList) {\n\n JSONObject next = (JSONObject) o;\n String extra = \"\";\n\n if (((String) next.get(\"wordType\")).equalsIgnoreCase(\"verb\")) {\n extra = \"to \";\n }\n\n Word loadedWord = new Word(extra + next.get(\"english\"), (String) next.get(\"welsh\"), (String) next.get(\"wordType\"));\n\n addIntoPracticedWords(loadedWord);\n }\n\n } catch (ParseException | IOException e) {\n System.out.println(\"PracticeList file not found, will be created on exit.\");\n }\n }", "private static void loadJsonFile() throws FileNotFoundException {\n Log.println(Log.INFO, \"FileAccessing\", \"Loading settings file.\");\n StringBuilder stringBuilder = new StringBuilder();\n InputStreamReader inputStreamReader = new InputStreamReader(context.openFileInput(\"settingDetails.json\"), StandardCharsets.UTF_8);\n try (BufferedReader reader = new BufferedReader(inputStreamReader)) {\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file reading error.\");\n throw new FileNotFoundException();\n }\n if (stringBuilder.toString().equals(\"\")) {\n Log.println(Log.INFO, \"FileAccessing\", \"Settings file does not exist.\");\n throw new FileNotFoundException();\n }\n\n Gson gson = new Gson();\n JsonObject jsonObject = gson.fromJson(stringBuilder.toString(), JsonObject.class);\n if (jsonObject == null) {\n throw new FileNotFoundException();\n }\n JsonArray mappingControls = (JsonArray) jsonObject.get(\"mappingControls\");\n\n TaskDetail.actionToTask.clear();\n for (JsonElement o : mappingControls) {\n JsonObject individualMapping = (JsonObject) o;\n byte combinedAction = individualMapping.get(\"combinedAction\").getAsByte();\n int outerControl = individualMapping.get(\"task\").getAsInt();\n TaskDetail.actionToTask.put(combinedAction, TaskDetail.taskDetails.get(outerControl));\n }\n\n int setting = 0;\n JsonArray generalSettings = (JsonArray) jsonObject.get(\"generalSettings\");\n for (JsonElement o : generalSettings) {\n JsonObject individualSetting = (JsonObject) o;\n int status = individualSetting.get(\"status\").getAsInt();\n SettingDetail.settingDetails.get(setting++).changeSetting(status);\n }\n\n DeviceDetail.deviceDetails.clear();\n JsonArray deviceList = (JsonArray) jsonObject.get(\"devices\");\n for (JsonElement o : deviceList) {\n JsonObject individualDevice = (JsonObject) o;\n String deviceName = individualDevice.get(\"name\").getAsString();\n String deviceMac = individualDevice.get(\"mac\").getAsString();\n DeviceDetail.deviceDetails.add(new DeviceDetail(deviceMac, deviceName));\n }\n\n SensitivitySetting.sensitivitySettings.clear();\n JsonArray sensitivityList = (JsonArray) jsonObject.get(\"sensitivities\");\n for (JsonElement o : sensitivityList) {\n JsonObject individualSensitivity = (JsonObject) o;\n int multiplicativeFactor = individualSensitivity.get(\"factor\").getAsInt();\n int sensitivity = individualSensitivity.get(\"sensitivity\").getAsInt();\n SensitivitySetting.sensitivitySettings.add(new SensitivitySetting(multiplicativeFactor, sensitivity));\n }\n\n int currentDevice = jsonObject.get(\"currentlySelected\").getAsInt();\n DeviceDetail.setIndexSelected(currentDevice);\n\n updateAllSetting(false);\n }", "public static List<DataItem> importFromJSON(Context context){\n FileReader reader = null;\n File file = new File(Environment.getExternalStorageDirectory(), FILE_NAME);\n\n try {\n //Instantiate FileReader with file\n reader = new FileReader(file);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public TranscriptEntry(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (FileReader reader = new FileReader(filename)){\n Object obj = jsonParser.parse(reader);\n\n JSONObject entry = (JSONObject) obj;\n JSONObject myCourse = (JSONObject) entry.get(\"course\");\n course = parseCourse(myCourse);\n grade = (String) entry.get(\"grade\");\n inProgress = (boolean) entry.get(\"inProgress\");\n courseComplete = (boolean) entry.get(\"courseComplete\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void readInventoryMainJsonFile() throws IOException, ParseException {\n\n\t\t// Providing read-only access to JSON data.\n\t\tJSONParser parser = new JSONParser();\n\n\t\t// Reading the external JSON file.\n\t\tFileReader reader = new FileReader(\".\\\\resources\\\\InventoryMain.json\");\n\n\t\t// Creating main object to store JSONParser, JSONObject and JSONArray.\n\t\tObject inventoryMain = parser.parse(reader);\n\n\t\t// Parsing object to JSONObject from InventoryMain.json file.\n\t\tJSONObject inventoryObj = (JSONObject) inventoryMain;\n\n\t\t// Getting the arrays of JSON file.\n\t\tJSONArray riceArray = (JSONArray) inventoryObj.get(\"Rice\");\n\t\tJSONArray pulseArray = (JSONArray) inventoryObj.get(\"Pulses\");\n\t\tJSONArray wheatArray = (JSONArray) inventoryObj.get(\"Wheat\");\n\n\t\t// Getting details of rice.\n\t\tSystem.out.println(\"Details of Rice are: \");\n\t\tfor (int i = 0; i < riceArray.size(); i++) {\n\t\t\tJSONObject riceDetails = (JSONObject) riceArray.get(i);\n\n\t\t\tString name = (String) riceDetails.get(\"name\");\n\t\t\tlong weight = (long) riceDetails.get(\"weight\");\n\t\t\tlong price = (long) riceDetails.get(\"price\");\n\n\t\t\tSystem.out.println(\"\\nName: \" + name);\n\t\t\tSystem.out.println(\"Weight: \" + weight);\n\t\t\tSystem.out.println(\"Price per KG is: \" + price);\n\n\t\t\t// Calculating price of different types of rice.\n\t\t\tlong ricePrice = weight * price;\n\t\t\tSystem.out.println(\"\\nTotal price of \" + riceDetails.get(\"name\") + \" is \" + ricePrice);\n\n\t\t}\n\n\t\t// Getting details of Pulse.\n\t\tSystem.out.println(\"\\nDetails of Pulse are: \");\n\t\tfor (int j = 0; j < pulseArray.size(); j++) {\n\t\t\tJSONObject pulseDetails = (JSONObject) pulseArray.get(j);\n\n\t\t\tString name = (String) pulseDetails.get(\"name\");\n\t\t\tlong weight = (long) pulseDetails.get(\"weight\");\n\t\t\tlong price = (long) pulseDetails.get(\"price\");\n\n\t\t\tSystem.out.println(\"\\nName: \" + name);\n\t\t\tSystem.out.println(\"Weight: \" + weight);\n\t\t\tSystem.out.println(\"Price per KG is: \" + price);\n\n\t\t\t// Calculating price of different types of Pulses.\n\t\t\tlong pulsePrice = weight * price;\n\t\t\tSystem.out.println(\"\\nTotal price of \" + pulseDetails.get(\"name\") + \" is \" + pulsePrice);\n\n\t\t}\n\t\t// Getting details of Wheat.\n\t\tSystem.out.println(\"\\nDetails of Wheat are: \");\n\t\tfor (int i = 0; i < wheatArray.size(); i++) {\n\t\t\tJSONObject wheatDetails = (JSONObject) wheatArray.get(i);\n\n\t\t\tString name = (String) wheatDetails.get(\"name\");\n\t\t\tlong weight = (long) wheatDetails.get(\"weight\");\n\t\t\tlong price = (long) wheatDetails.get(\"price\");\n\n\t\t\tSystem.out.println(\"\\nName: \" + name);\n\t\t\tSystem.out.println(\"Weight: \" + weight);\n\t\t\tSystem.out.println(\"Price per KG is: \" + price);\n\t\t\t// Calculating price of different types of Wheat.\n\t\t\tlong wheatPrice = weight * price;\n\t\t\tSystem.out.println(\"\\nTotal price of \" + wheatDetails.get(\"name\") + \" is \" + wheatPrice);\n\n\t\t}\n\n\t}", "public void parseFile(File file) throws IOException {\r\n if (file.isDirectory()) {\r\n for (File subFile : file.listFiles()) {\r\n if (subFile.isDirectory() || subFile.getName().endsWith(\".java\")) {\r\n parseFile(subFile);\r\n }\r\n }\r\n } else {\r\n parseSourceCode(new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8));\r\n }\r\n }", "@SuppressWarnings(\"unused\")\n public AppCMSPageUI getDataFromFile(String fileName) {\n StringBuilder buf = new StringBuilder();\n try {\n InputStream json = currentActivity.getAssets().open(fileName);\n BufferedReader in =\n new BufferedReader(new InputStreamReader(json, \"UTF-8\"));\n String str;\n\n while ((str = in.readLine()) != null) {\n buf.append(str);\n }\n\n in.close();\n } catch (Exception e) {\n //Log.e(TAG, \"Error getting data from file: \" + e.getMessage());\n }\n\n Gson gson = new Gson();\n\n return gson.fromJson(buf.toString().trim(), AppCMSPageUI.class);\n }", "public JSONObject reader_File(JSONObject obj)\n {\n CSVReader reader = null;\n try\n {\n\n String path = obj.get(\"path\").toString(); //retrieve path of file from json obj\n JSONObject json = (JSONObject)obj.get(\"query\"); //retrieve json object that has query from json obj\n\n reader = new CSVReader(new FileReader(path), ',');\n\n String [] nextLine;\n\n //Read one line at a time\n JSONObject json3 = new JSONObject();\n\n //need to use JSONArray\n JSONArray jArr = new JSONArray(); //create an object of JSONArray\n while ((nextLine = reader.readNext()) != null)\n {\n\n JSONObject json2 = search(json, nextLine); //return json object that contains all the value of each lines if query matches\n\n if(!json2.isEmpty()){ //check whether json2 is empty\n jArr.add(json2); //insert json2 in in jsonArray\n\n }\n\n }\n json3.put(\"response\", jArr); //insert jArr in json3\n return json3;\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}", "public void gatherLevelJson(String filename) {\r\n\t\tif(level == 0) { // Get level editor level\r\n\t\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\t\tif(prefs.contains(filename)) {\r\n\t\t\t\tlevelAssets = new JsonReader().parse(prefs.getString(filename));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFileHandle file = Gdx.files.internal(filename);\r\n\t\t\tString text = file.readString();\r\n\t\t\tlevelAssets = new JsonReader().parse(text);//directory.getEntry( String.format(\"level%d\", level), JsonValue.class);\r\n\t\t}\r\n\t}", "public static void reading(String fileName)\n {\n\n }", "public static String getJSONData( String filePath, boolean assetFile )\n {\n FileReader reader = null;\n String jsonData = null;\n\n if( assetFile )\n {\n AssetManager mgr = WeatherLionApplication.getAppContext().getAssets();\n String filename;\n\n try\n {\n filename = WeatherLionApplication.OPEN_SOURCE_LICENCE;\n InputStream in = mgr.open( filename, AssetManager.ACCESS_BUFFER );\n Writer writer = new StringWriter();\n char[] buffer = new char[ 1024 ];\n\n try\n {\n Reader assetReader = new BufferedReader( new InputStreamReader( in, StandardCharsets.UTF_8 ) );\n int n;\n\n while ( ( n = assetReader.read( buffer ) ) != -1 )\n {\n writer.write( buffer, 0, n) ;\n }// end of while loop\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::getJSONData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n\n jsonData = writer.toString();\n\n in.close();\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::getJSONData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n else\n {\n try\n {\n File file = new File( filePath );\n\n // if the is a file present then it will contain a list with at least on object\n if( file.exists() )\n {\n reader = new FileReader( file );\n jsonData = reader.toString();\n }// end of if block\n\n }// end of try block\n catch ( FileNotFoundException | JsonSyntaxException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::getJSONData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n finally\n {\n // close the file reader object\n if( reader != null )\n {\n try\n {\n reader.close();\n } // end of try block\n catch (IOException e)\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE,\n e.getMessage(),TAG + \"::getJSONData [line: \"\n + UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n }// end of finally block\n }// end of else block\n\n return jsonData;\n }", "public String generateJsonFileFromParsedTextFile(String textFilePathStr) {\n\t\tBufferedReader br = null;\n\t\tList<String> wordList = new ArrayList<>();\n\t\tFile file = new File (textFilePathStr);\n\t\tif (!file.exists() || file.isDirectory()) {\n\t\t\tSystem.out.println(\"Text file \" + file.getAbsolutePath() + \" does not exist\");\n\t\t\treturn \"not found\";\n\t\t}\n\t\ttry {\n\t\t \n\t br = new BufferedReader(new FileReader(textFilePathStr));\n\t String line;\n while ((line = br.readLine()) != null) {\n \t populateListFromLine(line, wordList);\n }\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n } finally {\n \tif (br != null) {\n \t\ttry {\n \t\t br.close();\n \t\t}\n \t\tcatch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n }\n\t\tString jsonStr = getWordStatsFromList(wordList);\n\t\tFile outFile = new File(file.getAbsolutePath().substring(0, file.getAbsolutePath().indexOf(file.getName()) ) + \"//\" + JSONOUTPUTFILE);\n\t\ttry (PrintWriter out = new PrintWriter(outFile)) {\n\t\t out.println(jsonStr);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"done\";\n\t}", "public String getJSONString(String fileName){\n\n String line = \"\";\n String jsonString = \"\";\n\n try {\n FileReader fileReader = new FileReader(fileName);\n\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n jsonString+=line+'\\n';\n }\n bufferedReader.close();\n }\n catch (FileNotFoundException ex){\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n }\n catch (IOException ex) {\n System.out.println( \"Error reading file '\" + fileName +\"'\");\n }\n\n return jsonString;\n }", "public static String getFilenameExtension() {return \"json\";}", "private String readDeserialize(String fileName, AssetManager assetManager) {\n StringBuffer sb = new StringBuffer();\n try {\n InputStream is = assetManager.open(fileName);\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n line = br.readLine();\n }\n br.close();\n isr.close();\n is.close();\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", String.format(\"File not found: %s\", e.toString()));\n } catch (IOException e) {\n Log.e(\"login activity\", String.format(\"Can not read file: %s\", e.toString()));\n }\n return sb.toString();\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "private static JsonObject readJSON(String path) {\n\n\t\tString fileContents = \"\";\n\t\tBufferedReader reader = null;\n\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(path));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(ErrorMessage.inputFileNotFoundError);\n\t\t}\n\n\t\tString line;\n\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tfileContents += line;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tfail(ErrorMessage.readFileError);\n\t\t}\n\n\t\ttry {\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tfail(ErrorMessage.closeFileError);\n\t\t}\n\n\t\tJsonObject jsonLicense = Json.createReader(new StringReader(fileContents)).readObject();\n\n\t\treturn jsonLicense;\n\t}", "public static Books readJSON(){\n Gson gson = new GsonBuilder().create();\n Books books = new Books();\n try {\n books = gson.fromJson(new JsonReader(new FileReader(\"books.json\")), Books.class);\n } catch (IOException e){\n e.printStackTrace();\n }\n return books;\n }", "static JsonResource forFile( File file ) {\n return new JsonResource() {\n @Override\n public <T> T readFrom( ReadMethod<T> consumer ) throws IOException {\n try ( FileInputStream stream = new FileInputStream(file) ) {\n return consumer.read(stream);\n }\n }\n };\n }", "public PropFileReader(String filename, String jsonFileName){\n this.ruleJsonFile=jsonFileName;\n this.filename=filename;\n this.propertyBuilder();\n }", "private void parseFile(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(fileName));\n\t\t\tString line;\n\t\t\tint counter = 0;\n\t\t\tString lastMethod = null;\n\t\t\t\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t// Logic for method consolidation\n\t\t\t\tif (line.contains(\"Method Call\")) {\n\t\t\t\t\tlastMethod = line.substring(line.indexOf(\"target=\")+7);\n\t\t\t\t\tlastMethod = lastMethod.substring(lastMethod.indexOf('#')+1).replace(\"\\\"\",\"\").trim();\n\t\t\t\t\tlastMethod = lastMethod + \":\" + counter++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (line.contains(\"Field Write\")) {\n\t\t\t\t\tString[] tokens = line.split(\",\");\n\t\t\t\t\t\n\t\t\t\t\tString object = tokens[4].substring(tokens[4].indexOf(\"=\") + 1).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString field = tokens[5].substring(0, tokens[5].indexOf(\"=\")).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString value = tokens[5].substring(tokens[5].indexOf(\"=\") + 1).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString fld = object.replace(\"/\", \".\") + \".\" + field;\n\t\t\t\t\tevents.add(new Event(fld, value, lastMethod));\n\t\t\t\t\t\n\t\t\t\t\tallFields.add(fld);\n\t\t\t\t}\n//\t\t\t\tif (line.contains(\"Method Returned\")) {\n//\t\t\t\t\t//operations for this method ended\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "<T> T readJson(FsPath path, Class<T> clazz);", "private JSONObject getAssetJson(String filename) {\n return new JSONObject(\n resourceHandler.getResourceFileAsString(ResourceHandler.VALORANT_BASE_PATH + \"Data/\" + filename)\n );\n }", "private static ArrayList<Team> jsontoTeam(ArrayList<File> fileList, String path){\n ArrayList<Team> teamArray = new ArrayList<Team>();\r\n int count = 0;\r\n\r\n for(File file: fileList){\r\n try {\r\n //reads the file as a JsonElement\r\n JsonElement fileElement = JsonParser.parseReader(new FileReader(file));\r\n //converts the jsonElement into as jsonObject\r\n JsonObject fileObject = fileElement.getAsJsonObject();\r\n //reads team array and stores as a JsonArray\r\n JsonArray jsonArrayTeam = fileObject.get(\"team\").getAsJsonArray();\r\n\r\n String extra_comments = fileObject.get(\"extra_comments\").getAsString();\r\n teamArray.add(new Team(extra_comments,file.toString()));\r\n\r\n //searches through all JSON files converts to a team\r\n for(JsonElement tokimonElement: jsonArrayTeam){\r\n JsonObject tokimonJsonObject = tokimonElement.getAsJsonObject();\r\n try {\r\n String name = tokimonJsonObject.get(\"name\").getAsString();\r\n String id = tokimonJsonObject.get(\"id\").getAsString();\r\n\r\n JsonObject compatibilityObject = tokimonJsonObject.get(\"compatibility\").getAsJsonObject();\r\n Double score = compatibilityObject.get(\"score\").getAsDouble();\r\n if(score<0){\r\n System.out.println(\"Score less than 0\");\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n String comment = compatibilityObject.get(\"comment\").getAsString();\r\n teamArray.get(count).addToki(new Tokimon(name, id, new Compatibility(score, comment)));\r\n } catch(Exception e){\r\n e.printStackTrace();\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n count++;\r\n }\r\n return teamArray;\r\n }", "private List<String[]> parseFileByName(String name){\n\n List<String[]> content = new ArrayList<>();\n String csvFile = name;\n BufferedReader br = null;\n String line = \"\";\n String cvsSplitBy = \",\";\n\n try {\n\n br = new BufferedReader(new FileReader(csvFile));\n while ((line = br.readLine()) != null) {\n\n // use comma as separator\n String[] data = line.split(cvsSplitBy);\n content.add(data);\n\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return content;\n }", "public void parse() throws IOException, StopDataMissingException, JSONException{\n DataProvider dataProvider = new FileDataProvider(filename);\n\n parseStops(dataProvider.dataSourceToString());\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void readMapFromFile() {\r\n\t\ttry {\r\n\t\t\tType type = new TypeToken<HashMap<String, Country>>() {}.getType();\r\n\t\t\tthis.daoMap = (HashMap<String, Country>) gson.fromJson(new FileReader(path), type);\r\n\t\t} catch (JsonSyntaxException | JsonIOException | FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public String loadJSONFile(int resourceIdentifier) {\n if (resourceIdentifier != 0) {\n InputStream input = getResources().openRawResource(resourceIdentifier);\n java.util.Scanner s = new java.util.Scanner(input).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : null;\n } else {\n return null;\n }\n }", "public JSONArray readFromJSON(){\n\n JSONArray jsonArray=null;\n\n try {\n InputStream inputStream =context.getResources().getAssets().open(FILE_NAME);\n int size = inputStream.available();\n byte[] data = new byte[size];\n inputStream.read(data);\n inputStream.close();\n String json = new String(data, \"UTF-8\");\n jsonArray = new JSONArray(json);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonArray;\n }", "public void parseJson() {\n\n try {\n JSONParser parser = new JSONParser();\n jsonReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/resources/bangor-library.json\")));\n JSONObject jsonObj = (JSONObject) parser.parse(jsonReader);\n \n String name = (String) jsonObj.get(\"name\");\n libraryName = name;\n JSONArray extractedBooks = (JSONArray) jsonObj.get(\"books\");\n\n Iterator i = extractedBooks.iterator();\n while (i.hasNext()) {\n rec = new LibraryRecord();\n rec.setLib_name(libraryName);\n JSONObject innerObj = (JSONObject) i.next();\n rec.setBook_name(innerObj.get(\"name\").toString());\n rec.setAuth_name(innerObj.get(\"author\").toString());\n rec.setCat_name(innerObj.get(\"category\").toString());\n\n if (!LibraryAccess.bookShelves.isEmpty()) {\n for (LibraryRecord bookSaved : LibraryAccess.bookShelves) {\n if (this.rec.getHashOfContent() == bookSaved.getHashOfContent()) {\n duplicate = true;\n rec = null;\n }\n }\n if (!duplicate) {\n LibraryAccess.addRecord(rec);\n }\n duplicate = false;\n\n } else {\n System.out.println(\"Library empty : Adding records...\");\n LibraryAccess.addRecord(this.rec);\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(JsnParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(JsnParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ParseException ex) {\n Logger.getLogger(JsnParser.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static JsonObject getTestVectors(String filename) throws \n IOException {\n InputStream is = JsonUtil.class.getClassLoader().getResourceAsStream(filename);\n JsonReader reader = new JsonReader(new InputStreamReader(is, UTF_8));\n JsonElement elem = JsonParser.parseReader(reader);\n return elem.getAsJsonObject();\n }", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "private static void readUserListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"users.json\")) {\n\n\t\t\tJSONArray userListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < userListJSON.size(); i++) {\n\t\t\t\tJSONObject user = (JSONObject) userListJSON.get(i);\n\t\t\t\tString name = (String) user.get(\"name\");\n\t\t\t\tString surname = (String) user.get(\"surname\");\n\t\t\t\tString username = (String) user.get(\"username\");\n\t\t\t\tString password = (String) user.get(\"password\");\n\t\t\t\tString account = (String) user.get(\"account\");\n\n\t\t\t\tif(account.equals(\"employee\")) {\n\t\t\t\t\tMain.userList.add(new Employee(username, name, surname, password));\n\t\t\t\t} else {\n\t\t\t\t\tMain.userList.add(new Customer(username, name, surname, password));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Quote[] readFromJson(String filename) throws IOException {\n File file = new File(filename);\n file.createNewFile();\n Gson read = new Gson();\n InputStream inStream = new FileInputStream(filename);\n BufferedReader buffer = new BufferedReader(new InputStreamReader(inStream));\n Quote[] quotes = read.fromJson(buffer, Quote[].class);\n buffer.close();\n return quotes;\n }", "public static String loadJSONFromAsset(Context context, String fileName) {\n String jsonString = null;\n try {\n InputStream is = context.getAssets().open(fileName);\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n jsonString = new String(buffer, StandardCharsets.UTF_8);\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return jsonString;\n }", "public static void consumeObjectArrayFromFile(String filePath, Consumer<JsonObject> consumer) throws Exception {\r\n\r\n\t\ttry (InputStream is = new FileInputStream(filePath);\r\n\t\t\tJsonReader reader = Json.createReader(is)\r\n\t\t) {\r\n\t\t\tJsonArray array = reader.readArray();\r\n\t\t\tfor (JsonObject item : array.getValuesAs(JsonObject.class)) {\r\n\t\t\t\tconsumer.accept(item);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static JSONObject readJSONFromFile(File file) throws IOException, ParseException {\n JSONParser parser = new JSONParser();\n Reader reader = new FileReader(file);\n JSONObject jsonObject = (JSONObject) parser.parse(reader);\n return jsonObject;\n }", "public static String getFileType() {return \"json\";}", "public static Level readJson(String jsonName) {\n\n InputStream levelInputStream;\n try {\n levelInputStream = new FileInputStream(jsonName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n JsonReader levelReader = Json.createReader(levelInputStream);\n\n JsonObject fileObject = levelReader.readObject();\n JsonObject levelInfo = fileObject.getJsonObject(\"Level Info\");\n JsonObject tiles = fileObject.getJsonObject(\"Tiles\");\n JsonArray rows = (JsonArray) tiles.get(\"rows\");\n\n int rowCount = levelInfo.getInt(\"rowCount\");\n int colCount = levelInfo.getInt(\"columnCount\");\n JsonArray enemies = (JsonArray) levelInfo.get(\"Enemies\");\n Position playerStart = new Position(levelInfo.getInt(\"playerX\"), levelInfo.getInt(\"playerY\"));\n\n AbstractTile[][] tileArray = new AbstractTile[colCount][rowCount];\n\n Iterator<JsonValue> rowsIterator = rows.iterator();\n\n while (rowsIterator.hasNext()) {\n // Convert from jsonValue to jsonObject, then get the array of tiles\n JsonObject currentRowObject = (JsonObject) rowsIterator.next();\n JsonArray currentRow = (JsonArray) currentRowObject.get(\"objects\");\n\n // Iterate through each row of tiles\n Iterator<JsonValue> currentRowIterator = currentRow.iterator();\n while (currentRowIterator.hasNext()) {\n JsonObject currentTile = (JsonObject) currentRowIterator.next();\n JsonValue type = currentTile.get(\"Tile Type\");\n JsonValue row = currentTile.get(\"row\");\n JsonValue column = currentTile.get(\"column\");\n JsonValue rotated = currentTile.get(\"Rotation\");\n boolean isRotated = false;\n if (rotated.toString().equals(\"\\\"Horizontal\\\"\")) {\n isRotated = false;\n } else if (rotated.toString().equals(\"\\\"Vertical\\\"\")) {\n isRotated = true;\n }\n String tileName = type.toString();\n int tileRow = stringToInt(row.toString());\n int tileColumn = stringToInt(column.toString());\n AbstractTile tileObject;\n if (tileName.equals(\"\\\"Key\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new Key(tileColour);\n } else if (tileName.equals(\"\\\"ExitPortal\\\"\")) {\n tileObject = new ExitPortal();\n } else if (tileName.equals(\"\\\"ExitLock\\\"\")) {\n tileObject = new ExitLock(isRotated);\n } else if (tileName.equals(\"\\\"InfoField\\\"\")) {\n JsonValue infoText = currentTile.get(\"InfoText\");\n String tileInfoText = infoText.toString();\n tileObject = new InfoField(tileInfoText);\n } else if (tileName.equals(\"\\\"LockedDoor\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new LockedDoor(isRotated, tileColour);\n } else if (tileName.equals(\"\\\"Treasure\\\"\")) {\n tileObject = new Treasure();\n } else if (tileName.equals(\"\\\"DeathTile\\\"\")) {\n tileObject = new DeathTile();\n } else if (tileName.equals(\"\\\"Wall\\\"\")) {\n tileObject = new Wall();\n // Free tile\n } else {\n tileObject = new FreeTile();\n }\n tileArray[tileColumn][tileRow] = tileObject;\n }\n }\n\n ArrayList<AbstractActor> enemiesArrayList = new ArrayList<AbstractActor>();\n\n Iterator<JsonValue> enemiesIterator = enemies.iterator();\n JsonObject currentEnemyObject;\n\n while (enemiesIterator.hasNext()) {\n AbstractActor currentEnemy;\n currentEnemyObject = (JsonObject) enemiesIterator.next();\n int xstartPos = currentEnemyObject.getInt(\"startingX\");\n int ystartPos = currentEnemyObject.getInt(\"startingY\");\n JsonValue aiType = currentEnemyObject.get(\"AI Type\");\n int tickSpeed = currentEnemyObject.getInt(\"Tick Speed\");\n JsonValue movement = currentEnemyObject.get(\"Movement String\");\n\n Position aiStartPos = new Position(xstartPos, ystartPos);\n\n String aiTypeString = aiType.toString();\n String movementString = movement.toString();\n aiTypeString = aiTypeString.substring(1, aiTypeString.length() - 1);\n movementString = movementString.substring(1, movementString.length() - 1);\n\n if (aiTypeString.equals(\"PatternEnemy\")) {\n currentEnemy = new PatternEnemy(aiStartPos, tickSpeed, movementString);\n enemiesArrayList.add(currentEnemy);\n } else if (aiTypeString.equals(\"StalkerEnemy\")) {\n currentEnemy = new StalkerEnemy(aiStartPos, tickSpeed);\n enemiesArrayList.add(currentEnemy);\n }\n\n }\n\n Player returnPlayer = new Player(playerStart);\n Set<AbstractActor> returnEnemies = new HashSet<AbstractActor>();\n returnEnemies.addAll(enemiesArrayList);\n int maxTime = levelInfo.getInt(\"timeLimit\");\n Level returnLevel = new Level(maxTime, returnPlayer, tileArray, returnEnemies);\n return returnLevel;\n\n }", "private void readMonsters(String filename)\r\n throws FileNotFoundException, IOException, ParseException {\r\n\r\n this.filename = filename;\r\n\r\n slugIndex = new BTree<String, Integer>(7);\r\n typeIndex = new BTree<String, Integer>(7);\r\n crIndex = new BTree<Float, Integer>(7);\r\n xpIndex = new BTree<Integer, Integer>(7);\r\n\r\n JSONParser parser = new JSONParser();\r\n JSONObject json = (JSONObject) parser.parse(new FileReader(filename));\r\n JSONArray monsters = (JSONArray) json.get(\"results\");\r\n\r\n for (int i = 0; i < monsters.size(); i++) {\r\n JSONObject jsonMon = (JSONObject) monsters.get(i);\r\n String slug = (String) jsonMon.get(\"slug\");\r\n String type = (String) jsonMon.get(\"type\");\r\n float CR = (float) jsonMon.get(\"challenge_rating\");\r\n Integer XP = this.convertToXP(CR);\r\n slugIndex.insert(slug, i);\r\n if (type.length() > 0) {\r\n typeIndex.insert(type, i);\r\n }\r\n crIndex.insert(CR, i);\r\n xpIndex.insert(XP, i);\r\n }\r\n }", "public static ArrayList<Movie> getMoviesFromJson(String filename){\n ArrayList<Movie> movies = getJsonArray(filename);\n if (movies == null){\n return new ArrayList<>();\n }\n return movies;\n\n }", "public static ArrayList<String> getArray(String jsonFile, String jsonName,String jsonNames, String jsonKey, Context context)\n {\n String jsonCategorias = Common.loadJSONFromAsset(context,jsonFile);\n JSONObject obj_categorias;\n JSONObject obj_categoria;\n\n\n ArrayList<String> lista = new ArrayList<String>();\n\n ///////////////\n try {\n\n obj_categorias = new JSONObject(jsonCategorias);\n JSONArray res = obj_categorias.getJSONArray(jsonName);\n\n for (int i = 0; i < res.length(); i++) {\n obj_categoria = res.getJSONObject(i).getJSONObject(jsonNames);\n\n String name = obj_categoria.getString(jsonKey);\n lista.add(name);\n\n }\n\n\n\n }\n\n catch (Exception e)\n {\n Log.d(\"Utils\",\"Can not read json file categories\");\n //return null;\n\n }\n\n ///////\n return lista;\n\n }", "protected abstract void parseFile(File f) throws IOException;", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "public Song parseSongs(Path path, String extension){\n\t\tJSONParser parser = new JSONParser();\n\t\ttry (BufferedReader reader = Files.newBufferedReader(path, Charset.forName(\"UTF-8\"))){\n\n\t\t\tJSONObject contents = (JSONObject) parser.parse(reader);\n\t\t\tSong song = new Song(contents);\n\t\t\t\n\t\t\treturn song;\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t\t\n\t}", "public String generateJsonFileFromParsedTextFileInApp() {\n\t\treturn generateJsonFileFromParsedTextFile(TEXTSAMPLEFILE);\n\t}", "private ModInfo getModInfo(File file){\n try {\n ZipFile zipFile = new ZipFile(file); //Get the zipfile\n Enumeration<? extends ZipEntry> entries = zipFile.entries(); //Get all the entries\n\n //Loop over each entry.\n while (entries.hasMoreElements()) {\n ZipEntry zipEntry = entries.nextElement(); //Next\n if(zipEntry.getName().endsWith(\"info.json\")) //Only take info.json\n return mapper.readValue(zipFile.getInputStream(zipEntry), ModInfo.class);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "@Override\n public ArrayList parseFile(String pathToFile) {\n\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(pathToFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<String> data = new ArrayList<>();\n while (scanner.hasNext()) {\n data.add(scanner.next());\n }\n scanner.close();\n\n return data;\n }", "public String readJsonResponse(String filePath){\n\t\tBufferedReader br = null;\n\t\tString jsonString=\"\";\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(filePath));\n\t\t\tString line=\"\";\n\t\t\twhile((line = br.readLine()) != null){\n\t\t\t\tjsonString += line +\"\\n\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treportObj.AddDataToTestReport(\"Exception in readJsonResponse. \"+e.getMessage(), false);\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tif(br != null){\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn jsonString;\n\t}", "public native Object parse( Object json, String texturePath );", "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public static JsonObject readFile(String path) throws FileNotFoundException\n\t{\n\t\tJsonReaderFactory factory = Json.createReaderFactory(null);\n\t\tInputStream is = new FileInputStream(path);\n\t\tJsonReader rdr = factory.createReader(is, java.nio.charset.StandardCharsets.UTF_8);\n\t\tJsonObject obj = rdr.readObject();\n\t\trdr.close();\n\t\treturn obj;\n\t}", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.67195386", "0.66850877", "0.65608436", "0.6548895", "0.653453", "0.65093845", "0.64211154", "0.6388421", "0.6382074", "0.63805985", "0.63758487", "0.6345763", "0.6326485", "0.6310224", "0.6306935", "0.6306468", "0.6284369", "0.62704057", "0.6264315", "0.6227653", "0.61980194", "0.6173051", "0.6170075", "0.61605203", "0.61540496", "0.61502594", "0.6143239", "0.6138121", "0.6119625", "0.6023331", "0.5957183", "0.593958", "0.5934657", "0.59032154", "0.58903277", "0.58784795", "0.58656657", "0.5853475", "0.584251", "0.58294606", "0.58263457", "0.5809537", "0.5786713", "0.573762", "0.57365197", "0.57094157", "0.570635", "0.56994534", "0.5692673", "0.5690364", "0.56804925", "0.567284", "0.5668559", "0.5662468", "0.56577116", "0.5654331", "0.56197107", "0.56191003", "0.56151545", "0.561035", "0.5589227", "0.558319", "0.5578974", "0.55691254", "0.5564719", "0.5548118", "0.5541325", "0.5536404", "0.5536287", "0.55198085", "0.5507264", "0.5505899", "0.550519", "0.54811233", "0.5475042", "0.5466564", "0.5462118", "0.5445819", "0.54434264", "0.5424461", "0.5418104", "0.53981125", "0.53980035", "0.5385962", "0.53816175", "0.53774583", "0.5362255", "0.5358346", "0.5349501", "0.5347682", "0.53412306", "0.5340249", "0.53339326", "0.5325259", "0.53242147", "0.5316964", "0.531281", "0.53125846", "0.5309161", "0.53078854" ]
0.62203896
20
a method Loading all Json from Files into a list of Course array first, get the String list of all json file names get the courses arraylist semester by semester and add them together in one new list
public static ArrayList<Course> loadAllJsonFlies(){ List<String> jsonFileNames = Data.getJsonFilesAsList(); ArrayList<Course> coursesOfAllSemesters = new ArrayList<>(); for (String jsonFileName:jsonFileNames){ ArrayList<Course> coursesOfSemester = loadJsonByFileName(jsonFileName); coursesOfAllSemesters.addAll(coursesOfSemester); } return coursesOfAllSemesters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadSavedCourses() {\n courseList = new CourseList(new ArrayList<>());\n try {\n courseList = reader.readCourseList();\n } catch (IOException ioe) {\n System.err.println(\"Course File Missing\");\n } catch (JSONException je) {\n System.err.println(\"Empty File - Course\");\n System.out.println(je);\n }\n }", "public static void main(String[] args) {\n ArrayList<Course> courses = new ArrayList<>();\n courses.add(new Course(\"Math\", \"12030\"));\n courses.add(new Course(\"English\", \"46537\"));\n courses.add(new Course(\"Programming\", \"64537\"));\n\n ArrayList<Teacher> teachers = new ArrayList<>();\n teachers.add(new Teacher(\"Albert\", \"Einstein\", \"ae@gmail.com\", \"1\"));\n teachers.add(new Teacher(\"Nikola\", \"Tesla\", \"nt@gmail.com\", \"2\"));\n teachers.add(new Teacher(\"Ada\", \"Lovelace\", \"al@gmail.com\", \"3\"));\n teachers.add(new Teacher(\"Charles\", \"Babbage\", \"cb@gmail.com\", \"4\"));\n\n courses.get(0).getTaughtBy().add(teachers.get(1));\n courses.get(0).getTaughtBy().add(teachers.get(2));\n courses.get(1).getTaughtBy().add(teachers.get(0));\n courses.get(1).getTaughtBy().add(teachers.get(1));\n courses.get(2).getTaughtBy().add(teachers.get(2));\n\n\n\n ArrayList<Student> students = new ArrayList<>();\n students.add(new Student(\"Irina\", \"Smirnova\", \"is@gmail.com\", \"245\"));\n students.add(new Student(\"Andrey\", \"Smirnov\", \"as@gmail.com\", \"249\"));\n students.add(new Student(\"Galina\", \"Kutarina\", \"gk@gmail.com\", \"246\"));\n\n courses.get(0).getTakenBy().add(students.get(1));\n courses.get(0).getTakenBy().add(students.get(2));\n courses.get(1).getTakenBy().add(students.get(1));\n courses.get(2).getTakenBy().add(students.get(0));\n\n\n listCourses(courses);\n // listTeachers(teachers);\n// listStudents(students);\n\n\n\n }", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "public static ArrayList<Course> loadJsonByFileName(String jsonFileName) throws NullPointerException{\n if (jsonFileName == null){\n throw new NullPointerException(ErrorMessage.NULL_JSON_FILE_NAME);\n }\n String jsonFile = Data.getFileContentsAsString(jsonFileName);\n return loadJson(jsonFile);\n }", "private static ArrayList<Team> jsontoTeam(ArrayList<File> fileList, String path){\n ArrayList<Team> teamArray = new ArrayList<Team>();\r\n int count = 0;\r\n\r\n for(File file: fileList){\r\n try {\r\n //reads the file as a JsonElement\r\n JsonElement fileElement = JsonParser.parseReader(new FileReader(file));\r\n //converts the jsonElement into as jsonObject\r\n JsonObject fileObject = fileElement.getAsJsonObject();\r\n //reads team array and stores as a JsonArray\r\n JsonArray jsonArrayTeam = fileObject.get(\"team\").getAsJsonArray();\r\n\r\n String extra_comments = fileObject.get(\"extra_comments\").getAsString();\r\n teamArray.add(new Team(extra_comments,file.toString()));\r\n\r\n //searches through all JSON files converts to a team\r\n for(JsonElement tokimonElement: jsonArrayTeam){\r\n JsonObject tokimonJsonObject = tokimonElement.getAsJsonObject();\r\n try {\r\n String name = tokimonJsonObject.get(\"name\").getAsString();\r\n String id = tokimonJsonObject.get(\"id\").getAsString();\r\n\r\n JsonObject compatibilityObject = tokimonJsonObject.get(\"compatibility\").getAsJsonObject();\r\n Double score = compatibilityObject.get(\"score\").getAsDouble();\r\n if(score<0){\r\n System.out.println(\"Score less than 0\");\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n String comment = compatibilityObject.get(\"comment\").getAsString();\r\n teamArray.get(count).addToki(new Tokimon(name, id, new Compatibility(score, comment)));\r\n } catch(Exception e){\r\n e.printStackTrace();\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Path and Filename: \" + file.toString());\r\n System.exit(-1);\r\n }\r\n count++;\r\n }\r\n return teamArray;\r\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\"})\n\tpublic static ArrayList<StudentCourse> initStudentCourses() throws IOException, ParseException {\n\t\t// read String from text file\n\t\tArrayList<String> stringArray = (ArrayList) IO.read(Main.studentcoursepath.toString());\n\t\t\t\n\t\tif (stringArray.size() == 0){\n\t\t\treturn new ArrayList<StudentCourse>();\n\t\t}\n for (int i = 0 ; i < stringArray.size() ; i++) {\n\t\t\t\tString field = (String) stringArray.get(i);\n\n\t\t\t\t// get individual 'fields' of the string separated by SEPARATOR\n\t\t\t\t// pass in the string to the string tokenizer using delimiter \",\"\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(field, SEPARATOR);\n\n\t\t\t\t//first to fifth tokens\n\t\t\t\tString userID = tokenizer.nextToken().trim();\n\t\t\t\tString userName = tokenizer.nextToken().trim();\n\t\t\t\tString courseID = tokenizer.nextToken().trim();\n\t\t\t\tint indexID = Integer.parseInt(tokenizer.nextToken().trim());\n\t\t\t\tString registerStatus = tokenizer.nextToken().trim();\n\n\t\t\t\t// create Course object from file data\n\t\t\t\tStudentCourse course = new StudentCourse(userID, userName, courseID, indexID, registerStatus);\n\t\t\t\t// add to Courses list\n\t\t\t\tstudentCourseList.add(course) ;\n\t\t}\n\t\treturn studentCourseList ;\n\t}", "private ArrayList<Course> getCourses(File coursePath,ArrayList<Node> nodes)\n {\n //add event to the log file\n Start.log(\"Getting Courses\");\n ArrayList<Course> tempCourses = new ArrayList<Course>();\n ArrayList<String> file = getFile(coursePath);\n for (int i = 0; i < file.size();i++)\n {\n //pharse the data into there relivant feilds\n Scanner scan = new Scanner(file.get(i));\n ArrayList<Node> tnodes = new ArrayList<Node>();\n char ident = scan.next().charAt(0);\n //find the nodes that match and add them to the course\n int noNodes = scan.nextInt();\n for (int j = 0; j < noNodes;j++)\n {\n int nodeNo = scan.nextInt();\n for (int k = 0; k < nodes.size();k++)\n {\n if (nodes.get(k).getNode() == nodeNo)\n {\n tnodes.add(nodes.get(k));\n break;\n }\n }\n }\n //finaly add the course to the list\n tempCourses.add(new Course(ident,tnodes));\n }\n return tempCourses;\n }", "private ArrayList<Entrant> getEntrants(File path,ArrayList<Course> courses)\n {\n Start.log(\"Getting Entrants\");\n ArrayList<Entrant> tempEntrants = new ArrayList<Entrant>();\n ArrayList<String> file = getFile(path);\n for (int i = 0; i < file.size();i++)\n {\n //scan and pharse the data into th relivant feilds\n Scanner scan = new Scanner(file.get(i));\n int entrantNo = scan.nextInt();\n char course = scan.next().charAt(0);\n String name = scan.next() + \" \" + scan.next();\n Course tcourse = null;\n //find the correct course for the entrant and add it in \n for (int j = 0;j < courses.size();j++)\n {\n if (courses.get(j).getIdent() == course)\n {\n tcourse = courses.get(j);\n break; \n }\n } \n tempEntrants.add(new Entrant(entrantNo,tcourse,name));\n }\n \n return tempEntrants;\n }", "static void loadCourse() {\n\t\tScanner inputStreamC = null; // create object variable for Course\n\n\t\ttry { // create Scanner object & assign to variable\n\t\t\tinputStreamC = new Scanner(new File(\"course.txt\"));\n\t\t\tinputStreamC.useDelimiter(\",\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No Course Infomation was Loaded\");\n\t\t\t// System.exit(0);\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\twhile (inputStreamC.hasNext()) {\n\n\t\t\t\tString readCourseID = inputStreamC.next();\n\t\t\t\tString readCourseName = inputStreamC.next();\n\t\t\t\tString readCourseUserName = inputStreamC.next();\n\t\t\t\t\n\t\t\t\tCourse c1 = new Course(readCourseID, readCourseName, readCourseUserName);\n\t\t\t\tcourseInfoArray.add(c1);\n\t\t\t\t//System.out.println(\"Read a Course \" + c1.getCourseID() + \" \" + c1.getCourseName() + \" \"\t+ c1.getCoordinatorUserID());\n\t\t\t\t\n\t\t\t} //eo while\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.err.println(\"Could not read from the file\");\n\t\t} catch (InputMismatchException e) {\n\t\t\tSystem.err.println(\"Something wrong happened while reading the file\");\n\t\t}\n\t\tinputStreamC.close();\n\t}", "public static void loadPracticeListFromFile() {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"src/practiceList.json\")) {\n // Read JSON file\n Object object = jsonParser.parse(reader);\n\n //Iterate over word list array\n JSONArray wordList = (JSONArray) object;\n for (Object o : wordList) {\n\n JSONObject next = (JSONObject) o;\n String extra = \"\";\n\n if (((String) next.get(\"wordType\")).equalsIgnoreCase(\"verb\")) {\n extra = \"to \";\n }\n\n Word loadedWord = new Word(extra + next.get(\"english\"), (String) next.get(\"welsh\"), (String) next.get(\"wordType\"));\n\n addIntoPracticedWords(loadedWord);\n }\n\n } catch (ParseException | IOException e) {\n System.out.println(\"PracticeList file not found, will be created on exit.\");\n }\n }", "private void inflateFromFile() {\n\t\t\n\t\tFile file = null;\t\t\n\t\ttry {\n\t\t\tfile = new File(FILE_PATH);\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tFileReader reader = null;\t\t\n\t\ttry {\n\t\t\treader = new FileReader(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Can't find source (json file)\");\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t\t\n\t\t}\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(\n\t\t\t\tnew JSONTokener(reader)\n\t\t\t\t);\n\t\t\n\t\tJSONArray array = jsonObject.getJSONArray(\"students\");\n\t\t\n\t\tfor (int i = 0; i < array.length(); i++) {\t\t\t\n\t\t\tJSONObject student = array.getJSONObject(i);\t\t\t\n\t\t\tString name = student.getString(\"name\");\n\t\t\tString secondName = student.getString(\"secondName\");\n\t\t\tString surname = student.getString(\"surname\");\n\t\t\tString birthday = student.getString(\"birthday\");\n\t\t\tString facultet = student.getString(\"facultet\");\n\t\t\tint groupNumber = student.getInt(\"groupNumber\");\n\t\t\t\n\t\t\tDate dateBirthday = null; \n\t\t\t//делаем Date из строки\t\t\t\n\t\t\ttry {\n\t\t\t\tdateBirthday = new SimpleDateFormat(\"dd.MM.yyyy\").parse(birthday);\n\t\t\t} catch(ParseException e) {\n\t\t\t\tSystem.err.println(\"Can't understand the date format from source.\");\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tstudents.add(\n\t\t\t\t\tStudent.get(name, secondName, surname, dateBirthday, facultet, groupNumber)\n\t\t\t\t\t);\t\t\t\n\t\t}\t\t\t\n\t}", "private static HashMap<Integer, Course> getCourses() {\r\n return IO.getCoursesFromInput(); // get courses from file\r\n }", "public List<Courses> courseInfo(String courseid) {\n\t\t\n\t\tList<Courses> courselist = new ArrayList<Courses>();\n\t\t\n\t\tMongoConnection mongocon = new MongoConnection();\n\t\tDBCursor resultcursor = mongocon.getDBObject(\"courseid\", courseid, \"Course\");\n\t\tif(resultcursor.hasNext()){\n\t\t\tDBObject theObj = resultcursor.next();\n\t\t\t\n\t\t\tCourses courses = new Courses();\n\t\t\tcourses.setCourseCategory((String)theObj.get(\"courseCategory\"));\n\t\t\tcourses.setCourseDescription((String)theObj.get(\"courseDescription\"));\n\t\t\tcourses.setCourseFee((String)theObj.get(\"courseFee\"));\n\t\t\tcourses.setCourseid((String)theObj.get(\"courseid\"));\n\t\t\tcourses.setCourseimageid((String)theObj.get(\"courseimageid\"));\n\t\t\tcourses.setCourseName((String)theObj.get(\"courseName\"));\n\t\t\tcourses.setCourseownerid((String)theObj.get(\"courseownerid\"));\n\t\t\tString[] partners = ((String)theObj.get(\"coursePartners\")).split(\",\");\n\t\t\tcourses.setCoursePartners(partners);\n\t\t\t//String[] reviews = ((String)theObj.get(\"courseReview\")).split(\",\");\n\t\t\tcourses.setCourseReview((String)theObj.get(\"courseReview\"));\n\t\t\tString[] sponsors = ((String)theObj.get(\"courseSponsors\")).split(\",\");\n\t\t\tcourses.setCourseSponsors(sponsors);\n\t\t\tString[] faqids = ((String)theObj.get(\"FAQid\")).split(\",\");\n\t\t\tcourses.setFAQid(faqids) ;\n\t\t\t\n\t\t\tcourselist.add(courses);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\n\t\t/*\n\t\t * for(int i=0;i<courseinfo.size();i++){ Courses corselst =\n\t\t * courseinfo.get(i); courselist.add(corselst.getCoursename());\n\t\t * courselist.add(corselst.getCourseid());\n\t\t * courselist.add(corselst.getCourseCategory());\n\t\t * courselist.add(corselst.getCourseDescription());\n\t\t * courselist.add(corselst.getCourseFee());\n\t\t * courselist.add(corselst.getCourseimageid());\n\t\t * courselist.add(corselst.getTimeduration());\n\t\t * courselist.add(corselst.getFAQ());\n\t\t * \n\t\t * \n\t\t * ApplicationContext ctx1 = new\n\t\t * AnnotationConfigApplicationContext(SpringMongoConfig.class);\n\t\t * MongoOperations mongoOperation1 = (MongoOperations)\n\t\t * ctx1.getBean(\"mongoTemplate\");\n\t\t * \n\t\t * //User Details Query query1 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40)); query1.addCriteria(Criteria.where(\"userid\").is(\n\t\t * \"572f7777bc22c22add92894e\")); List<Profile> profileinfo =\n\t\t * (List<Profile>) mongoOperation1.find(query1, Profile.class); for(int\n\t\t * j=0;j<profileinfo.size();j++){\n\t\t * \n\t\t * Profile prof = profileinfo.get(j);\n\t\t * \n\t\t * courselist.add(prof.getAboutme());\n\t\t * courselist.add(prof.getProfileThumbnailid());\n\t\t * courselist.add(prof.getCoursesids());\n\t\t * courselist.add(prof.getEmailid());\n\t\t * courselist.add(prof.getExperience());\n\t\t * courselist.add(prof.getFollowers());\n\t\t * \n\t\t * }\n\t\t * \n\t\t * \n\t\t * //Partners details String[] coursePartners =\n\t\t * corselst.getCoursePartners(); for(int\n\t\t * m=0;m<coursePartners.length;m++){\n\t\t * \n\t\t * List partners;\n\t\t * \n\t\t * Query query2 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query2.addCriteria(Criteria.where(\"companyid\").is(coursePartners[m]))\n\t\t * ; partners = (List<Company>) mongoOperation.find(query2,\n\t\t * Company.class);\n\t\t * \n\t\t * if(partners.isEmpty()){ Query query3 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query3.addCriteria(Criteria.where(\"organizationID\").is(coursePartners\n\t\t * [m])); partners = (List<Organization>) mongoOperation.find(query1,\n\t\t * Organization.class);\n\t\t * \n\t\t * for(int n=0;n<partners.size();n++){ Organization org = (Organization)\n\t\t * partners.get(n); courselist.add(org.getOrganizationID());\n\t\t * courselist.add(org.getOrglogoid()); }\n\t\t * \n\t\t * \n\t\t * }else{ for(int n=0;n<partners.size();n++){ Company company =\n\t\t * (Company) partners.get(n); courselist.add(company.getCompanyid());\n\t\t * courselist.add(company.getCompanylogoid()); } }\n\t\t * \n\t\t * }\n\t\t * \n\t\t * \n\t\t * \n\t\t * //Sponsor details String[] courseSponsors =\n\t\t * corselst.getCourseSponsors(); for(int\n\t\t * o=0;o<courseSponsors.length;o++){\n\t\t * \n\t\t * List sponsors;\n\t\t * \n\t\t * Query query2 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query2.addCriteria(Criteria.where(\"companyid\").is(courseSponsors[o]))\n\t\t * ; sponsors = (List<Company>) mongoOperation.find(query1,\n\t\t * Company.class);\n\t\t * \n\t\t * if(sponsors.isEmpty()){ Query query3 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query3.addCriteria(Criteria.where(\"organizationID\").is(courseSponsors\n\t\t * [o])); sponsors = (List<Organization>) mongoOperation.find(query1,\n\t\t * Organization.class);\n\t\t * \n\t\t * for(int n=0;n<sponsors.size();n++){ Organization org = (Organization)\n\t\t * sponsors.get(n); courselist.add(org.getOrganizationID());\n\t\t * courselist.add(org.getOrglogoid()); }\n\t\t * \n\t\t * \n\t\t * }else{ for(int n=0;n<sponsors.size();n++){ Company company =\n\t\t * (Company) sponsors.get(n); courselist.add(company.getCompanyid());\n\t\t * courselist.add(company.getCompanylogoid()); } }\n\t\t * \n\t\t * }\n\t\t * \n\t\t * //Review details\n\t\t * \n\t\t * }\n\t\t */\n\n\t\tSystem.out.println(\"courseinfo >>.\" + courselist);\n\n\t\treturn courselist;\n\n\t}", "public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }", "public CourseSearch() {\n\n String json = null;\n\n try {\n json = new JsonReader(\"http://api.umd.io/v0/courses/list\")\n .readUrl();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n ArrayList<Course> allCourses = new Gson().fromJson(json, new\n TypeToken<ArrayList<Course>>(){}.getType());\n\n courses = new TreeMap<>();\n\n for (Course c : allCourses) {\n courses.put(c.getCourseId(), c);\n }\n }", "public static ArrayList<String> getArray(String jsonFile, String jsonName,String jsonNames, String jsonKey, Context context)\n {\n String jsonCategorias = Common.loadJSONFromAsset(context,jsonFile);\n JSONObject obj_categorias;\n JSONObject obj_categoria;\n\n\n ArrayList<String> lista = new ArrayList<String>();\n\n ///////////////\n try {\n\n obj_categorias = new JSONObject(jsonCategorias);\n JSONArray res = obj_categorias.getJSONArray(jsonName);\n\n for (int i = 0; i < res.length(); i++) {\n obj_categoria = res.getJSONObject(i).getJSONObject(jsonNames);\n\n String name = obj_categoria.getString(jsonKey);\n lista.add(name);\n\n }\n\n\n\n }\n\n catch (Exception e)\n {\n Log.d(\"Utils\",\"Can not read json file categories\");\n //return null;\n\n }\n\n ///////\n return lista;\n\n }", "public TreeMap<String, Course> getCourses(String params) {\n\n StringBuffer json = new StringBuffer();\n ArrayList<Course> allCourses = new ArrayList<>();\n\n try {\n\n int i = 1;\n while (true) {\n if (params == null) {\n json.append(new JsonReader(\"http://api.umd.io/v0/courses?per_page=100&page=\" + i).readUrl());\n } else {\n json.append(new JsonReader(\"http://api.umd.io/v0/courses?per_page=100&page=\" + i + \"&\" + params).readUrl());\n }\n\n allCourses.addAll(new Gson().fromJson(json.toString().replace\n (\"][\", \",\"),\n new TypeToken<ArrayList<Course>>(){}.getType()));\n\n if (allCourses.size() % 100 == 0) {\n i++;\n continue;\n } else {\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n TreeMap<String, Course> genCourses = new TreeMap<>();\n\n for (Course c : allCourses) {\n genCourses.put(c.getCourseId(), c);\n }\n\n return genCourses;\n }", "private void getProfession(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the name of the student to array list\n Profession.add(json.getString(\"category\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public void readFile(File inputFile) throws FileNotFoundException, IOException, ClassNotFoundException {\n\n ArrayList<Student> studentList = null;\n int noOfStudents = 1; int noOfProjects = 0;\n int count = 1;\n String title; String school; String supervisor; Project project = null; \n ArrayList<Project> projectList = new ArrayList<>();\n\n Scanner scan = new Scanner(new FileReader(inputFile));\n String line = null;\n\n while (scan.hasNextLine()) {\n studentList = new ArrayList<>();\n \n if (count == 1) {\n line = scan.nextLine();\n noOfProjects = Integer.parseInt(line);\n System.out.println(line);\n }\n\n line = scan.nextLine();\n String[] projectInfo = line.split(\",\", 5);\n noOfStudents = Integer.parseInt(projectInfo[3]);\n String[] studentInfo = projectInfo[4].split(\",\");\n\n Student student = null;\n \n for (int k = 0; k < studentInfo.length; k+=4) {\n //new Student(AdminNo, Name, Course, Gender)\n student = new Student(studentInfo[k], studentInfo[k+1], studentInfo[k+2], studentInfo[k+3]);\n studentList.add(student); //Add new Student to List\n }\n\n title = projectInfo[0];\n school = projectInfo[1];\n supervisor = projectInfo[2];\n project = new Project(title, school, supervisor, noOfStudents, studentList);\n \n System.out.println(line);\n count++;\n \n projectList.add(project);\n }\n\n for (Student stud: studentList) {\n System.out.println(stud.getAdminNo() + stud.getCourse() + stud.getGender() + stud.getName());\n }\n \n writeToFile(project);\n \n scan.close();\n }", "public void parseJson() {\n\n try {\n JSONParser parser = new JSONParser();\n jsonReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/resources/bangor-library.json\")));\n JSONObject jsonObj = (JSONObject) parser.parse(jsonReader);\n \n String name = (String) jsonObj.get(\"name\");\n libraryName = name;\n JSONArray extractedBooks = (JSONArray) jsonObj.get(\"books\");\n\n Iterator i = extractedBooks.iterator();\n while (i.hasNext()) {\n rec = new LibraryRecord();\n rec.setLib_name(libraryName);\n JSONObject innerObj = (JSONObject) i.next();\n rec.setBook_name(innerObj.get(\"name\").toString());\n rec.setAuth_name(innerObj.get(\"author\").toString());\n rec.setCat_name(innerObj.get(\"category\").toString());\n\n if (!LibraryAccess.bookShelves.isEmpty()) {\n for (LibraryRecord bookSaved : LibraryAccess.bookShelves) {\n if (this.rec.getHashOfContent() == bookSaved.getHashOfContent()) {\n duplicate = true;\n rec = null;\n }\n }\n if (!duplicate) {\n LibraryAccess.addRecord(rec);\n }\n duplicate = false;\n\n } else {\n System.out.println(\"Library empty : Adding records...\");\n LibraryAccess.addRecord(this.rec);\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(JsnParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(JsnParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ParseException ex) {\n Logger.getLogger(JsnParser.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic List<AASTranscriptCourse> getAASTranscriptCourse(String stuId, String acaYear, String semesterId) {\n\t\tList<AASTranscriptCourse> arr = new ArrayList<>();\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = oConnection.getOracleConnection();\n\t\t\tString sql =\"select aca_year,subjectid,subjectname,credits,credits_earn,letter_mark\"+ \n\t\t\t\t\t\" from v_course\"+ \n\t\t\t\t\t\" where id_student= ?\"+ \n\t\t\t\t\t\" and aca_year= ?\"+\n\t\t\t\t\t\" and semester= ?\"+\n\t\t\t\t\t\" and aas_sgt= 0\"+ \n\t\t\t\t\t\" order by subjectid\";\n\t\t\tstatement = conn.prepareStatement(sql);\n\t\t\tstatement.setString(1, stuId);\n\t\t\tstatement.setString(2, acaYear);\n\t\t\tstatement.setString(3, semesterId);\n\t\t\trs = statement.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tarr.add(new AASTranscriptCourse(rs.getString(\"aca_year\"),rs.getString(\"subjectid\"),rs.getString(\"subjectname\")\n\t\t\t\t\t\t, rs.getString(\"credits\"), rs.getString(\"credits_earn\"), rs.getString(\"letter_mark\")));\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstatement.close();\n\t\t\tconn.close();\n\t\t\treturn arr;\n\t\t} catch (SQLException e) {\n\t\t\treturn null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry {\n\t\t\t\tif (rs != null)\n\t\t\t\t\trs.close();\n\t\t\t\tif (statement != null)\n\t\t\t\t\tstatement.close();\n\t\t\t\tif (conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Input readData() {\n JSONParser jsonParser = new JSONParser();\n List<Consumer> consumers = new ArrayList<>();\n List<Distributor> distributors = new ArrayList<>();\n List<Producer> producers = new ArrayList<>();\n List<MonthlyUpdates> monthlyUpdates = new ArrayList<>();\n long numberOfTurns;\n\n try {\n // Parsing the contents of the JSON file\n JSONObject jsonObject = (JSONObject) jsonParser.parse(new FileReader(inputPath));\n numberOfTurns = (long) (jsonObject.get(\"numberOfTurns\"));\n JSONObject initialData = (JSONObject) jsonObject.get(\"initialData\");\n JSONArray jsonConsumers = (JSONArray) initialData.get(\"consumers\");\n JSONArray jsonDistributors = (JSONArray) initialData.get(\"distributors\");\n JSONArray jsonProducers = (JSONArray) initialData.get(\"producers\");\n\n if (jsonConsumers != null) {\n ConsumerFactory consumerFactory = ConsumerFactory.getInstance();\n for (Object jsonConsumer : jsonConsumers) {\n consumers.add(consumerFactory.createConsumer(\n (long) ((JSONObject) jsonConsumer).get(\"id\"),\n (long) ((JSONObject) jsonConsumer).get(\"initialBudget\"),\n (long) ((JSONObject) jsonConsumer).get(\"monthlyIncome\")));\n }\n }\n\n if (jsonDistributors != null) {\n DistributorFactory distributorFactory = DistributorFactory.getInstance();\n for (Object jsonDistributor : jsonDistributors) {\n distributors.add(distributorFactory.createDistributor(\n (long) ((JSONObject) jsonDistributor).get(\"id\"),\n (long) ((JSONObject) jsonDistributor).get(\"contractLength\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialBudget\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialInfrastructureCost\"),\n (long) ((JSONObject) jsonDistributor).get(\"energyNeededKW\"),\n EnergyChoiceStrategyType.valueOf(((JSONObject) jsonDistributor).\n get(\"producerStrategy\").toString())));\n }\n }\n\n if (jsonProducers != null) {\n for (Object jsonProducer : jsonProducers) {\n producers.add(new Producer(((long) ((JSONObject) jsonProducer).get(\"id\")),\n EnergyType.valueOf(((JSONObject) jsonProducer).\n get(\"energyType\").toString()),\n (long) ((JSONObject) jsonProducer).get(\"maxDistributors\"),\n (double) ((JSONObject) jsonProducer).get(\"priceKW\"),\n (long) ((JSONObject) jsonProducer).get(\"energyPerDistributor\")));\n }\n }\n\n JSONArray jsonUpdates = (JSONArray) jsonObject.get(\"monthlyUpdates\");\n\n for (JSONObject monthlyUpdate : (Iterable<JSONObject>) jsonUpdates) {\n MonthlyUpdates update = new MonthlyUpdates();\n JSONArray newConsumers = (JSONArray) monthlyUpdate.get(\"newConsumers\");\n for (JSONObject newConsumer : (Iterable<JSONObject>) newConsumers) {\n update.getNewConsumers().add(new Consumer(Long.parseLong(newConsumer.get(\"id\").\n toString()),\n Long.parseLong(newConsumer.get(\"initialBudget\").toString()),\n Long.parseLong(newConsumer.get(\"monthlyIncome\").toString())));\n }\n org.json.simple.JSONArray costsChanges = (JSONArray) monthlyUpdate.\n get(\"distributorChanges\");\n for (JSONObject costsChange : (Iterable<JSONObject>) costsChanges) {\n update.getCostsChanges().add(new CostsChanges(Long.parseLong(costsChange.\n get(\"id\").toString()),\n Long.parseLong(costsChange.get(\"infrastructureCost\").toString())));\n }\n monthlyUpdates.add(update);\n }\n return new Input(numberOfTurns, consumers, distributors, producers, monthlyUpdates);\n\n } catch (ParseException | IOException e) {\n e.printStackTrace();\n }\n\n return new Input(0, consumers, distributors, producers, monthlyUpdates);\n\n }", "private void listCourses() {\n Call<List<Course>> callListCourses = mService.listCourses(new HashMap<String, String>() {{\n put(\"wstoken\", mToken);\n put(\"wsfunction\", \"core_course_get_courses\");\n put(\"moodlewsrestformat\", \"json\");\n }});\n callListCourses.enqueue(new Callback<List<Course>>() {\n @Override\n public void onResponse(Call<List<Course>> call, Response<List<Course>> response) {\n List<Course> courses = response.body();\n mCourseAdapter.updateCourses(courses);\n }\n\n @Override\n public void onFailure(Call<List<Course>> call, Throwable t) {\n Log.e(\"ListCourses\", t.getMessage());\n }\n });\n }", "static void loadAttendanceData(String year) {\r\n\t\tJSONArray jsona = null;\r\n\t\ttry {\r\n\t\t\tString data = Engine.db.getCollection(\"Students\").find(eq(\"sid\", Personal.tsid.getText())).first().toJson();\r\n\t\t\tjsona = new JSONObject(data).getJSONArray(year.toLowerCase());\r\n\t\t} catch (JSONException e) {\r\n\t\t}\r\n\t\tIterator<?> it = jsona.iterator();\r\n\t\tatsem1.getItems().clear();\r\n\t\tatsem2.getItems().clear();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tJSONObject json = (JSONObject) it.next();\r\n\t\t\tString name = json.getString(\"name\");\r\n\t\t\tint at = json.getInt(\"attended\");\r\n\t\t\tint att = json.getInt(\"attendedTotal\");\r\n\t\t\tint sem = json.getInt(\"sem\");\r\n\r\n\t\t\tPlatform.runLater(() -> {\r\n\t\t\t\tif (sem % 2 == 1) {\r\n\t\t\t\t\tatsem1.setTooltip(new Tooltip(\"Semester: \" + Integer.toString(sem)));\r\n\t\t\t\t\tatrbsem1.setText(\"Semester: \" + Integer.toString(sem));\r\n\t\t\t\t\tatsem1.getItems().add(new AttendanceData(name, at, att));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tatsem2.setTooltip(new Tooltip(\"Semester: \" + Integer.toString(sem)));\r\n\t\t\t\t\tatsem2.getItems().add(new AttendanceData(name, at, att));\r\n\t\t\t\t\tatrbsem2.setText(\"Semester: \" + Integer.toString(sem));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\t}", "private static List<Student> loadStudentList(File file) throws IOException {\n return loadStudentList(new FileInputStream(file));\n }", "public ArrayList<Course> loadExams(File file) {\n\n if (finalsTerm == null) {\n \n finalsTerm = \" \";\n }\n \n ArrayList<Course> returnList = readWrite.loadExams(file);\n finalsTerm = readWrite.getSemester();\n \n return returnList;\n }", "private void loadCourses(final MyCallback2 myCallback) {\n //Reading courses\n mDatabase = FirebaseDatabase.getInstance().getReference().child(\"courses\");\n mDatabase.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n //reset courses incase returning from create course fragment\n courses = new ArrayList<>();\n //loop to go through all the child nodes of courses\n for (final DataSnapshot uniqueKeySnapshot : dataSnapshot.getChildren()) {\n //Store courses into arraylist\n courses.add(new Course(uniqueKeySnapshot.child(\"id\").getValue().toString(), uniqueKeySnapshot.child(\"name\").getValue().toString()));\n }\n }\n myCallback.onCallback();\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "@Test\n public void testCreatePropertyAssessments() {\n System.out.println(\"createPropertyAssessments\");\n //cas ou le fichier d'entrée est valide\n \n String fileIn = \"json/testFileInOK.json\";\n String fileOut = \"json/testFileOutOK.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileIn, fileOut);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInOK.json\"),\n IOsJsonFiles.loadJsonFile(fileOut));\n\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas1 où le nombre de clés de l'objet json principal est erroné\n \n String fileErrorCase1 = \"json/testFileInErrorlength.json\";\n String errorOutCase1 = \"json/testFileOutErrorLength.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase1,\n errorOutCase1);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorLength.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase1));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n \n //cas2 où le nombre de lots dépasse 10\n \n String fileErrorCase2 = \"json/testFileInErrorNumParselling.json\";\n String errorOutCase2 = \"json/testFileOutErrorNumParselling.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase2,\n errorOutCase2);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorNumParselling.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase2));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas3 où une proprièté possède un espace dans son titre\n String fileErrorCase3 = \"json/testFileInErrorBlankKey.json\";\n String errorOutCase3 = \"json/testFileOutErrorBlankKey.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase3,\n errorOutCase3);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorBlankKey.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase3));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas4 où une proprièté possède une lettre en majuscule dans son titre\n \n String fileErrorCase4 = \"json/testFileInErrorUpperCase.json\";\n String errorOutCase4 = \"json/testFileOutErrorUpperCase.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase4,\n errorOutCase4);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorUpperCase.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase4));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n \n //cas5 où une proprièté d'une element du tableau lotissements \n //possède un espace dans son titre\n String fileErrorCase5 = \"json/testFileInErrorBlankKeyLot.json\";\n String errorOutCase5 = \"json/testFileOutErrorBlankKeyLot.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase5,\n errorOutCase5);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorBlankKeyLot.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase5));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas6 où une proprièté d'un element du tableau lotissements \n //possède une lettre en majuscule dans son titre\n \n String fileErrorCase6 = \"json/testFileInErrorUpperCaseLot.json\";\n String errorOutCase6 = \"json/testFileOutErrorUpperCaseLot.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase6,\n errorOutCase6);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorUpperCaseLot.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase6));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n }", "public Vector<CourseSubject> getCourses() throws IOException{\n\n\t\tVector<CourseSubject> coursesVector = new Vector<CourseSubject>();\t\n\t\tString sourceLine = \"\";\n\t\tString content = \"\";\t\n\t\t\n\t\tInputStreamReader pageInput = new InputStreamReader(address.openStream());\n\t\tBufferedReader source = new BufferedReader(pageInput);\n\t\twhile( (sourceLine = source.readLine()) != null){\n\t\t\tcontent += sourceLine + \"\\n\";\n\t\t}\n\t\tPattern style = null;\n\t\tPattern p = null;\n\t\tString regex0 = \"\";\t\t// required for the split\n\t\tString regex1 = \"\";\t\t// required for the split\n\t\t\n\t\tswitch (flag) {\t// dependent on different schools\n \tcase 0:\n \t\tregex0 = \"<div class=\\\"ws-course-title\\\"><a href.*?>\";\n \t\tstyle = Pattern.compile(\"<div class=\\\"ws-course-title\\\"><a href.*?>.*?</a></div>\");\n \t\tp = Pattern.compile(\"<a href=\\\".*?skinId=2169\\\">\");\n \t\tregex1 = \"</a></div>\";\n \tbreak;\n }\n\t\t\n\n Matcher mstyle = style.matcher(content);\n String address = null;\n Matcher pstyle = null;\n if( p != null)\n \tpstyle = p.matcher(content);\n \n String tag = \"\";\n String[] str = null;\n // need to change counter for Stanford mstyle has more values then pstyle\n int counter = 0;\n boolean done = false;\n while (mstyle.find() ){\n \tdone = pstyle.find();\n \ttag = mstyle.group();\n \tstr = tag.split(regex0, 3);\n \tif(str.length != 1)\n \t\tstr = str[str.length-1].split(regex1, 3);\t\t// str[0] holds the name of the course\n \tCourseSubject courseSub = new CourseSubject(str[0], null);\t\t// no subclasses yet.\n \t\n \tif(flag == 3){\t\t// for berkeley\n \t\taddress = str[0].trim().replace(' ', '+');\n \t\taddress = cleanURL(address, flag);\n \t}\n \telse{\n \t\tif(flag == 2 && (counter < 9 || !done) )\t// done for stanford\n \t\t\taddress = \"http://www.fail.com\";\t// fail this will be removed in linkedcoursesApp\n \t\telse\n \t\t\taddress = pstyle.group();\n \t\taddress = cleanURL(address, flag);\n \t}\n \tcourseSub.setURL(new URL(address));\n \t\n \tcoursesVector.add(courseSub);\n \tcounter++;\n }\n \n\t\tpageInput.close();\n\t\tsource.close();\n\t\treturn coursesVector;\n\t}", "public GradeBook readIpGradeBook() throws IOException, ParseException {\n\t\tList<String> cList = new ArrayList<>(); \n Map<String, String> gradeItem = new HashMap<>();\n JSONParser parser = new JSONParser();\t\n Object obj = parser.parse(new FileReader(\"src/inputandOutput/input.json\"));\n JSONArray jsonArray;\n JSONObject jsonObject = null;\n if (obj instanceof JSONArray) {\n \tjsonArray = (JSONArray) obj; \n \tjsonObject=(JSONObject) jsonArray.get(0);\n } else if (obj instanceof JSONObject) {\n jsonObject = (JSONObject)obj;\n }\n JSONArray grdBookArray;\n JSONObject grdBookObject = null;\n if(jsonObject.get(\"GradeBook\") instanceof JSONArray){\n \tgrdBookArray = (JSONArray) jsonObject.get(\"GradeBook\");\n grdBookObject=(JSONObject) grdBookArray.get(0);\n } else if(jsonObject.get(\"GradeBook\") instanceof JSONObject){\n \tgrdBookObject=(JSONObject) jsonObject.get(\"GradeBook\");\n }\n \n\n JSONArray gradingSchemaArray;\n JSONObject gradingSchemaObject = null;\n if(grdBookObject.get(\"GradingSchema\") instanceof JSONArray){\n \tgradingSchemaArray = (JSONArray) grdBookObject.get(\"GradingSchema\");\n \tgradingSchemaObject=(JSONObject) gradingSchemaArray.get(0);\n } else if(grdBookObject.get(\"GradingSchema\") instanceof JSONObject){\n \tgradingSchemaObject=(JSONObject) grdBookObject.get(\"GradingSchema\");\n }\n\n JSONArray grdItemArray;\n JSONObject grdItemObject = null;\n if(gradingSchemaObject.get(\"GradeItem\") instanceof JSONArray){\n \tgrdItemArray = (JSONArray) gradingSchemaObject.get(\"GradeItem\");\n \tfor(int i=0; i<grdItemArray.size();i++){\n \t grdItemObject=(JSONObject) grdItemArray.get(i);\n \t String category = (String) grdItemObject.get(\"Category\");\n \t String percentage = (String) grdItemObject.get(\"Percentage\");\n \t cList.add(category);\n \t gradeItem.put(category, percentage);\n } \n } else if(gradingSchemaObject.get(\"GradeItem\") instanceof JSONObject){\n \tgrdItemObject = (JSONObject) gradingSchemaObject.get(\"GradeItem\");\n \tString category = (String) grdItemObject.get(\"Category\");\n\t String percentage = (String) grdItemObject.get(\"Percentage\");\n\t cList.add(category);\n\t gradeItem.put(category, percentage);\n }\n \n grdBook.setGradeItem(gradeItem);\n \tgrdBook.setCategory(cList);\n return grdBook;\n\t}", "private static ArrayList<Galaxy> createGalaxies() {\n ArrayList<Galaxy> galaxies = new ArrayList<>();\n try {\n String bareJSON = new String(Files.readAllBytes(Paths.get(\"Galaxies.json\")));\n JSONArray jarray = new JSONArray(bareJSON);\n\n for(int i = 0; i<jarray.length(); i++) {\n JSONObject JSONgalaxy = jarray.getJSONObject(i);\n\n //System.out.println(\"Galaxyname = \" + JSONgalaxy.getString(\"galaxy\").charAt(0));\n Galaxy galaxy = new Galaxy(JSONgalaxy.getString(\"galaxy\").charAt(0));\n galaxies.add(galaxy);\n\n JSONArray stars = JSONgalaxy.getJSONArray(\"stars\");\n for (int y = 0; y<stars.length(); y++) {\n int number = y+1;\n char colour = stars.getJSONObject(y).getString(\"colour\").charAt(0);\n galaxy.addStar(new Star(colour, number, galaxy));\n }\n setStarNeighbours(galaxy, stars);\n }\n setGalaxyNeighbours(galaxies, jarray);\n } catch (FileNotFoundException fnf) {\n System.out.println(\"File not found\");\n } catch (IOException ieo) {\n System.out.println(\"Could not read file.\");\n }\n return galaxies;\n }", "private void listFileMyVideo() throws JSONException {\n\n listFileMyVideo = new JSONArray();\n\n int count = countFileMyVideo();\n\n for (int i = 0; count > i; i++) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"name\", get_FileName(getPathMyVideo(), i));\n obj.put(\"path\", get_FilePath(getPathMyVideo(), i));\n\n listFileMyVideo.put(obj);\n }\n }", "@PostMapping(path=\"/{id}/courses/add\")\n public Set<Integer> addCourse(@PathVariable Integer id, @RequestBody Map<String, List<Integer>> courses) {\n Set<Integer> addedCourseId = new HashSet<>();\n Optional<Student> student = studentService.findStudentById(id);\n\n if (!student.isPresent()) {\n throw new NotFoundException();\n }\n\n Student s = student.get();\n\n for (Integer i : courses.get(\"id\")) { // loop over the list of courses to be added\n Optional<Course> course = courseService.findCourseById(i);\n if (!course.isPresent()) { // if the course does not exist, throw an exception\n throw new NotFoundException();\n }\n Course c = course.get();\n if (!s.getCourses().contains(c)) { // only add the course if the student does not already has it\n if (c.getFilled() < c.getCapacity()) { // and also if the course is not already filled\n c.setFilled(c.getFilled() + 1);\n s.getCourses().add(c);\n addedCourseId.add(c.getId());\n }\n }\n }\n studentService.saveStudent(s);\n return addedCourseId; // return ids of courses that have been added successfully added\n\n }", "@Override\n public void onResponse(JSONArray response) {\n try{\n // Loop through the array elements\n for(int i=0;i<response.length();i++){\n courseslist.add(response.get(i).toString());\n }\n }catch (JSONException e){\n e.printStackTrace();\n }\n }", "@GET\n \tpublic Response listCourses() throws JsonProcessingException {\n \t\tList<Course> courses = ofy().load().type(Course.class).list();\n \t\t\n \t\t// convert to json\n \t\tString json = new ObjectMapper().writeValueAsString(courses);\n \t\treturn Response.ok(Utils.JsonPad + json).build();\n \t}", "public ArrayList<List<String>> processSemesterFile(String semesterfile) {\n\t\tArrayList<List<String>> semesters = new ArrayList<List<String>>();\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(semesterfile));\n\t\t\tString line = null;\n\t\t\twhile ((line = reader.readLine()) != null) \n\t\t\t{\n\t\t\t\tline = line.trim();\n\t\t\t\t\n\n\t\t\t\tString[] tokens = line.split(\":\");\n\n\t\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\tfor (String token : tokens) \n\t\t\t\t{\n\t\t\t\t\ttoken.trim();\n\t\t\t\t\t//System.out.println(token);\n\t\t\t\t\t//if (token.equals(\"\"))\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tlist.add(token);\n\t\t\t\t}\n\t\t\t\tif (!list.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tsemesters.add(list);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn semesters;\n\t}", "public Collection<Transformation> read() {\n open(); //Open the json file\n\n HashMap<UUID, Transformation> result = new HashMap<>();\n System.out.println(\"result size: \" + result.size());\n JsonHeaderInput headerInput = (JsonHeaderInput)getSection(JsonHeaderInput.class);\n headerInput.setJsonObject(jsonObject);\n headerInput.setInputProgram(inputProgram);\n headerInput.setLoadMessages(getLoadMessages());\n headerInput.read(result);\n header = headerInput.getHeader();\n System.out.println(\"result size: \" + result.size());\n\n JsonFailuresInput failures = (JsonFailuresInput) getSection(JsonFailuresInput.class);\n failures.setJsonObject(jsonObject);\n failures.setInputProgram(inputProgram);\n failures.setLoadMessages(getLoadMessages());\n failures.read(result);\n System.out.println(\"result size: \" + result.size());\n\n JsonTransformationCollectionInput asts = (JsonTransformationCollectionInput)\n getSection(JsonTransformationCollectionInput.class);\n asts.setJsonObject(jsonObject);\n asts.setInputProgram(inputProgram);\n asts.setLoadMessages(getLoadMessages());\n asts.setFailures(failures.getFailures());\n asts.read(result);\n System.out.println(\"result size: \" + result.size());\n\n for ( JsonSectionInput s : sections.values() ) {\n if ( s.equals(headerInput) || s.equals(failures) || s.equals(asts) ) continue;\n s.setInputProgram(inputProgram);\n s.setJsonObject(jsonObject);\n s.read(result);\n }\n\n return result.values();\n }", "public static void loadFiles(String destination, String type) {\n\t\t// This will reference one line at a time\n\t\tString line = null;\n\t\ttry {\n\t\t\t// FileReader reads text files in the default encoding.\n\t\t\tFileReader fileReader = new FileReader(destination);\n\t\t\t// Always wrap FileReader in BufferedReader.\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\t//splits the line into seperate parts\n\t\t\t\tString[] tokens = line.split(\";\");\n\t\t\t\tswitch (type) {\n\t\t\t\tcase \"course\":\n\t\t\t\t\tif (tokens[3].equals(\"null\")) {\n\t\t\t\t\t\tcourseArray.add(new Course(tokens[0], tokens[1], tokens[2], null, Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int i = 0; i < courseArray.size(); i++) {\n\t\t\t\t\t\t\tif (tokens[3].equals(courseArray.get(i).getCourseName())) {\n\t\t\t\t\t\t\t\tcourseArray.add(new Course(tokens[0], tokens[1], tokens[2], courseArray.get(i), Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"courseOfferings\":\n\t\t\t\t\tif (tokens[3].equals(\"null\")) {\n\t\t\t\t\t\tenrolCourseArray.add(new Course(tokens[0], tokens[1], tokens[2], null, Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int i = 0; i < enrolCourseArray.size(); i++) {\n\t\t\t\t\t\t\tif (tokens[3].equals(enrolCourseArray.get(i).getCourseName())) {\n\t\t\t\t\t\t\t\tenrolCourseArray.add(new Course(tokens[0], tokens[1], tokens[2], enrolCourseArray.get(i), Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"lecturer\":\n\t\t\t\t\tlecturerList.add(\n\t\t\t\t\t\t\tnew Lecturer(tokens[0], tokens[1], tokens[2], tokens[3], tokens[4], currentCourseArray));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Always close files.\n\t\t\tbufferedReader.close();\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + destination + \"'\");\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Error reading file '\" + destination + \"'\");\n\t\t\t// Or we could just do this:\n\t\t\t// ex.printStackTrace();\n\t\t}\n\t}", "public static Course readConsol() throws DataFormatException, IOException {\n Course readCourse = new Course();\n Scanner in = new Scanner(System.in);\n boolean valid = false;\n\n System.out.println(\"Input course Title.\");\n System.out.println(\"With a capital letter, using letters,numbers and _.\");\n String title = in.nextLine();\n valid = Validator.validate(title, ValidPaterns.TITLEVLIDPATERN);\n if (valid) {\n readCourse.setTitle(title);\n } else {\n in.close();\n throw new IOException();\n }\n\n System.out.println(\"Input course startDate in formate dd-mm-yyyy-hh-mm. as delims yu can use[.-:]\");\n String startTime = in.nextLine();\n Calendar startDate = DateParser.pars(startTime);\n readCourse.setStartTime(startDate);\n\n System.out.println(\"Input course endDate in formate mm-dd-yyyy-hh-mm. as delims yu can use[.-:]\");\n String endTime = in.nextLine();\n Calendar endtDate = DateParser.pars(endTime);\n readCourse.setEndTime(endtDate);\n\n System.out.println(\"хотите добавить модуль в существующий курс\");\n \n System.out.println(\"Input module Title.\");\n System.out.println(\"With a capital letter, using letters,numbers and _.\");\n String moduleTitle = in.nextLine();\n valid = Validator.validate(moduleTitle, ValidPaterns.TITLEVLIDPATERN);\n if (valid) {\n List<Modul> modules = new ArrayList<>();\n Modul modul1 = new Modul();\n modul1.setTitle(moduleTitle);\n readCourse.setModules(modules);\n modules.add(modul1);\n \n System.out.println(\"Input module startDate in formate dd-mm-yyyy-hh-mm. as delims yu can use[.-:]\");\n String startTimeM = in.nextLine();\n Calendar startDateM = DateParser.pars(startTimeM);\n modul1.setStartTime(startDateM);\n\n System.out.println(\"Input module endDate in formate mm-dd-yyyy-hh-mm. as delims yu can use[.-:]\");\n String endTimeM = in.nextLine();\n Calendar endtDateM = DateParser.pars(endTimeM);\n modul1.setEndTime(endtDateM);\n \n System.out.println(\"This module include the test Yes/No ?\");\n String testInclude = in.nextLine();\n valid = Validator.validate(testInclude, ValidPaterns.TESTAVALIBLEPATERN);\n if (valid) {\n if(testInclude.equals(\"yes\")){\n modul1.setTestInclude(true);\n }\n if(testInclude.equals(\"No\")){\n modul1.setTestInclude(false);\n }\n }\n } else {\n in.close();\n throw new IOException();\n }\n\n in.close();\n return readCourse;\n }", "public void loadComboBoxCourses(){\r\n //Para cargar un combobox\r\n CircularDoublyLinkList tempCourses = new CircularDoublyLinkList();\r\n tempCourses = Util.Utility.getListCourse();\r\n String temporal = \"\";\r\n if(!tempCourses.isEmpty()){\r\n try {\r\n for (int i = 1; i <= tempCourses.size(); i++) {\r\n Course c = (Course)tempCourses.getNode(i).getData(); \r\n temporal = c.getId()+\"-\"+c.getName();\r\n this.cmbCourses.getItems().add(temporal);\r\n }\r\n } catch (ListException ex) {\r\n Logger.getLogger(NewStudentController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n cmbCourses.setValue(temporal);\r\n cmbCourses.getSelectionModel().select(\"Courses\");\r\n }", "public Map<String, SubjectDataContainer> loadAllFromFile(String collectionIdentifier) {\n Path collection = this.container.resolve(collectionIdentifier);\n if (!Files.exists(collection)) {\n return Collections.emptyMap();\n }\n\n Map<String, SubjectDataContainer> holders = new HashMap<>();\n try (Stream<Path> s = Files.list(collection)){\n s.filter(p -> p.getFileName().toString().endsWith(\".json\"))\n .forEach(subjectFile -> {\n try {\n LoadedSubject sub = loadFromFile(subjectFile);\n if (sub != null) {\n holders.put(sub.identifier, sub.data);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n return holders;\n }", "public static List<DataItem> importFromJSON(Context context){\n FileReader reader = null;\n File file = new File(Environment.getExternalStorageDirectory(), FILE_NAME);\n\n try {\n //Instantiate FileReader with file\n reader = new FileReader(file);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "public void readInOrganizations() {\n // read CSV file for Organizations\n allOrganizations = new ArrayList<Organization>();\n InputStream inputStream = getResources().openRawResource(R.raw.organizations);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] organizationInfo = (String[]) scoreList.get(i);\n\n // inputs to Organization constructor:\n // String name, int logoPhotoID, int photo1ID, int photo2ID, int photo3ID\n\n // group together description\n String description = getDescription(5, organizationInfo);\n\n // get all image IDs according to the names\n int logoPhotoID = context.getResources().getIdentifier(organizationInfo[1], \"drawable\", context.getPackageName());\n int photo1ID = context.getResources().getIdentifier(organizationInfo[2], \"drawable\", context.getPackageName());\n int photo2ID = context.getResources().getIdentifier(organizationInfo[3], \"drawable\", context.getPackageName());\n int photo3ID = context.getResources().getIdentifier(organizationInfo[4], \"drawable\", context.getPackageName());\n allOrganizations.add(new Organization(organizationInfo[0], logoPhotoID, photo1ID, photo2ID, photo3ID, description));\n\n //System.out.println(\"organizationInfo: \" + organizationInfo[0] + \" \" + organizationInfo[1] + \" \" + organizationInfo[2] + \" \" + organizationInfo[3] + \" \" + organizationInfo[4]);\n }\n }", "private void cargarJugadoresRetirados() {\n\n\t\tString nombreFichero = \"jugadoresRetirados.csv\";\n\n\t\tListaJugadores.jugadoresRetirados = GestionCSV.obtenerJugadores(nombreFichero);\n\n\t}", "public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}", "private void _generateCourses() {\n for (int i = 0; i < underCourses_.size(); i++) {\n _generateACourse( ( (CourseInfo) underCourses_.get(i)).globalIndex);\n }\n for (int i = 0; i < gradCourses_.size(); i++) {\n _generateAGraduateCourse( ( (CourseInfo) gradCourses_.get(i)).globalIndex);\n }\n for (int i = 0; i < webCourses_.size(); i++) {\n _generateAWebCourse( ( (CourseInfo) webCourses_.get(i)).globalIndex);\n }\n }", "private void prepareAssignmentFiles() {\n for (Assignment assignment : assignments) {\n //---------- initialize the assignmentFiles array list ----------\n assignment.assignmentFiles = new ArrayList<>();\n\n //create a temporary assignment files array list\n ArrayList<File> assignmentFiles = new ArrayList<>();\n\n //---------- call the recursive findAssignmentFiles method ----------\n findAssignmentFiles(assignmentFiles, assignment.assignmentDirectory);\n\n //---------- set the language for the assignment ----------\n if (language.equals( IAGConstant.LANGUAGE_AUTO) ) {\n assignment.language = autoDetectLanguage(assignmentFiles);\n }\n else {\n assignment.language = language;\n }\n\n String[] extensions;\n\n switch (assignment.language) {\n case IAGConstant.LANGUAGE_PYTHON3:\n extensions = IAGConstant.PYTHON_EXTENSIONS;\n break;\n case IAGConstant.LANGUAGE_CPP:\n extensions = IAGConstant.CPP_EXTENSIONS;\n break;\n default: //unable to determine the language\n extensions = new String[] {};\n }\n\n //add only files of the right type to the assignment file list\n for (File f: assignmentFiles) {\n String f_extension = getFileExtension(f).toLowerCase();\n if (Arrays.asList(extensions).contains(f_extension)){\n //---------- if the extension on the file matches\n // one of the extension in the extensions list, add\n // it to the programming files list. ----------\n assignment.assignmentFiles.add(f);\n }\n }\n assignment.bAutoGraded = false; //indicate the assignment has not yet been auto-graded\n }\n\n }", "public static void readData(ArrayList<Student> students, ArrayList<Course> courses)\r\n {\r\n //emfanizie mnm ston xrhsth,dexetai apanthsh apo ton xrhsth\r\n //kai thn apanthsh thn epistrefei ws alfarithmitiko\r\n\r\n //String answer= JOptionPane.showInputDialog(\"Enter your name:\");\r\n\r\n boolean more= true;\r\n\r\n while(more)\r\n {\r\n\r\n String selection= JOptionPane.showInputDialog(\"1:Student 2:Graduate\");\r\n int choice =Integer.parseInt(selection);\r\n\r\n String name= JOptionPane.showInputDialog(\"Name: \");\r\n String id= JOptionPane.showInputDialog(\"Id: \");\r\n\r\n //to arxikopoiw ws null gia na mhn vgazei error\r\n //ayto symvanei dioti an mpei mesa sto if pernei mai timh an omws den mpei den tha parei timh kai tha vgazei error\r\n String supervisor=null;\r\n\r\n if(choice == 2)\r\n {\r\n supervisor= JOptionPane.showInputDialog(\"Supervisor: \");\r\n }\r\n\r\n Student student;\r\n if(choice==1)\r\n {\r\n student= new Student(name,id);\r\n }\r\n else\r\n {\r\n student= new Graduate(name,id,supervisor);\r\n }\r\n\r\n String coursename =JOptionPane.showInputDialog(\"Enter course name: \");\r\n\r\n //ftiaxnoume ena for wste na diatreksw ola ta mathimata poy exie mesa h lista\r\n //sthn synexeia tha sygkrinw to mathima me thn epilogh tou xrhsth\r\n for (Course course:courses)\r\n {\r\n if(course.getName().equals(coursename))\r\n {\r\n student.addCourses(course);\r\n }\r\n\r\n }\r\n\r\n //ton foithth ton topothetoume sthn lista poy yparxeis thn main kai thn pernei ws orisma h synarthsh\r\n students.add(student);\r\n\r\n String answer= JOptionPane.showInputDialog(\"More Students (Y/N)\");\r\n //gia string tha mporousa na kanw==\"n\"\r\n if(answer.equals(\"N\"))\r\n {\r\n more= false;\r\n }\r\n\r\n }\r\n\r\n\r\n }", "public ArrayList<List<String>> processCourseFile(String coursefile) {\n\t\tArrayList<List<String>> courses = new ArrayList<List<String>>();\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(coursefile));\n\t\t\tString line = null;\n\t\t\twhile ((line = reader.readLine()) != null) \n\t\t\t{\n\t\t\t\tline = line.trim();\n\t\t\t\t\n\n\t\t\t\tString[] tokens = line.split(\";\");\n\n\t\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\tfor (String token : tokens) \n\t\t\t\t{\n\t\t\t\t\ttoken.trim();\n\t\t\t\t\t//System.out.println(token);\n\t\t\t\t\t//if (token.equals(\"\"))\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tlist.add(token);\n\t\t\t\t}\n\t\t\t\tif (!list.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tcourses.add(list);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn courses;\n\t}", "static ArrayList<String> loadShop() {\n //check directory, create if missing\n File dir = new File(\"./plugins/SkyblockShop/\");\n if (!dir.exists()) {if (!dir.mkdir()) { System.out.println(\"Failed to create SkyblockShop directory!\");}}\n\n //create fullShop to return all retrieved files\n ArrayList<String> fullShop = new ArrayList<>();\n\n //iterate through all files in directory and add them to fullShop\n File[] files = dir.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.getName().endsWith(\".txt\")) {\n fullShop.addAll(loadShop(file));\n }\n }\n }\n\n return fullShop;\n }", "public List<AudioInformation> getAudioInformationFunction(String path){\n File folder = new File(path);\n File[] listOfFiles = folder.listFiles((FileFilter) null);// get all files in folder\n if(listOfFiles!=null){\n int size = listOfFiles.length;\n numberOfFilesToProcess = numberOfFilesToProcess + size;\n if(progressBar!=null) {\n progressBar.setFilesToProcess(numberOfFilesToProcess);\n }\n\n for (int count = 0; count < size; count++) {\n File file = listOfFiles[count];\n boolean read=false;\n if (!(file.getName().charAt(0) == exclude)) { // if starts with exclude charcter ignore\n if (file.isFile()) {\n boolean isAudioFile = utilities.isAudioFile(file); // check if file is audio file\n if (isAudioFile == true) {\n AudioInformation information=extractAudioInformation.extractAudioInformationFromFile(file);\n if(onCD==true) {\n information.setWriteFieldsToFile(false);\n }\n\n informationList.add(information);\n\n }\n else if(utilities.getExtensionOfFile(file).equalsIgnoreCase(\"cue\")){\n try {\n CueSheet cueSheet=extractAudioInformation.getCueSheet(file);\n List<AudioInformation> tracks=cueSheet.getTracks();\n informationList.addAll(tracks);\n } catch (CueSheetExeception cueSheetExeception) {\n cueSheetExeception.printStackTrace();\n errorMessages.add(cueSheetExeception.getMessage());\n }\n }\n numberOfFilesProcessed++;\n if(progressBar!=null) {\n progressBar.setFilesProcessed(numberOfFilesProcessed);\n }\n } else if (file.isDirectory()) {\n numberOfFilesProcessed++;\n if(progressBar!=null) {\n\n progressBar.setFilesProcessed(numberOfFilesProcessed);\n }\n\n getAudioInformationFunction(listOfFiles[count].getPath());\n }\n if(updateLabel!=null) {\n updateLabel.setText(numberOfFilesToProcess + \" of \" + numberOfFilesToProcess + \"Files Processed\");\n }\n\n }\n }\n }\n return informationList;\n }", "ArrayList retrievestudentdata() throws ClassNotFoundException;", "private void initializeCompletedCourses() {\r\n try {\r\n String query = \"SELECT * FROM completedregistrations WHERE studentid=?\";\r\n PreparedStatement pstmt = conn.prepareStatement(query);\r\n pstmt.setInt(1, id);\r\n ResultSet rs = pstmt.executeQuery();\r\n completeCourses = new ArrayList<>();\r\n while (rs.next()) {\r\n completeCourses.add(new Registration(rs.getInt(\"studentid\"), rs.getInt(\"courseid\"), rs.getInt(\"secnum\"), rs.getString(\"grade\"), conn));\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void listOfCourses() {//admin cagirisa bulunna kurslarin hepsi\n if (Courses.size() != 0) {\n System.out.printf(\"%s kullanicisinin dersleri\\n\", this.getUsername());\n for (int i = 0; i < this.Courses.size(); ++i) {\n System.out.printf(\"%d-%s\\n\", i, Courses.get(i));\n }\n } else {\n System.out.printf(\"%s kullanicinin dersi yok\\n\", this.getUsername());\n }\n }", "public ArrayList getCourses();", "private ArrayList<Book> loadBooks(InputStream is) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder jsonFileContent = new StringBuilder();\r\n\t\t//read line by line from file\r\n\t\tString nextLine = null;\r\n\t\twhile ((nextLine = br.readLine()) != null){\r\n\t\t\tjsonFileContent.append(nextLine);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\t//this is a require type definition by the Gson utility so Gson will \r\n\t\t//understand what kind of object representation should the json file match\r\n\t\tType type = new TypeToken<ArrayList<Book>>(){}.getType();\r\n\t\tArrayList<Book> books = gson.fromJson(jsonFileContent.toString(), type);\r\n\t\t//close\r\n\t\tbr.close();\t\r\n\t\treturn books;\r\n\t}", "public void getCourseData(){\n\n SQLiteDatabase db;\n CourseActivityDatabase courseDB;\n courseDB = new CourseActivityDatabase(this);\n\n db = courseDB.getReadableDatabase();\n courseList = new ArrayList<>();\n\n Cursor cursor = db.query(\n DB_TABLES.COURSE_TABLE_NAME,\n new String[]{DB_TABLES.COURSE_ID, DB_TABLES.LECTURE_IMAGE_URL, DB_TABLES.LECTURE_TOPIC},\n null, null, null, null, null);\n\n if (cursor != null && cursor.getCount() != 0) {\n courseList.clear();\n while (cursor.moveToNext()) {\n SingleItemModel courseInfo = new SingleItemModel();\n\n //getting data from database\n int lecture_id = cursor.getInt(cursor.getColumnIndex(DB_TABLES.COURSE_ID));\n int lectureImg = cursor.getInt(cursor.getColumnIndex(DB_TABLES.LECTURE_IMAGE_URL));\n String lectureTopic = cursor.getString(cursor.getColumnIndex(DB_TABLES.LECTURE_TOPIC));\n\n\n\n //sending data to SingleItemModel\n courseInfo.setFlagId(lecture_id);\n courseInfo.setLectureImg(lectureImg);\n courseInfo.setLectureTopic(lectureTopic);\n\n //adding data to ArrayList\n courseList.add(courseInfo);\n\n }\n }\n //closing cursor and database\n assert cursor != null;\n cursor.close();\n db.close();\n }", "private Collection<User> loadUsers(InputStream is) throws IOException{\r\n\t\t\r\n\t\t//wrap input stream with a buffered reader to allow reading the file line by line\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder jsonFileContent = new StringBuilder();\r\n\t\t//read line by line from file\r\n\t\tString nextLine = null;\r\n\t\twhile ((nextLine = br.readLine()) != null){\r\n\t\t\tjsonFileContent.append(nextLine);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\t//this is a require type definition by the Gson utility so Gson will \r\n\t\t//understand what kind of object representation should the json file match\r\n\t\tType type = new TypeToken<Collection<User>>(){}.getType();\r\n\t\tCollection<User> users = gson.fromJson(jsonFileContent.toString(), type);\r\n\t\t//close\r\n\t\tbr.close();\t\r\n\t\treturn users;\r\n\r\n\t}", "private List<String[]> getCourseEntries() {\n \n List<String[]> list = new LinkedList<String[]>();\n \n String courseCodes = courseEntries.getText();\n StringBuilder temp = new StringBuilder();\n if (courseCodes.length() > 0) {\n \n String[] container = new String[2];\n \n for (int i = 0; i < courseCodes.length() + 1; i++) {\n \n //add the subjectCode to the container array\n if (courseCodes.length() > i && courseCodes.charAt(i) == ' ') {\n\n container[0] = temp.toString();\n temp = new StringBuilder();\n }\n //add text to the string builder\n else if (courseCodes.length() > i && courseCodes.charAt(i) != ';') {\n \n temp.append(courseCodes.charAt(i));\n }\n //add the container object with subjectCode and courseNumber to the list.\n else {\n\n container[1] = temp.toString();\n list.add(container);\n temp = new StringBuilder();\n container = new String[2];\n }\n }\n }\n \n return list;\n }", "public static ArrayList<Item> readCourseFile(String file) {\n ArrayList<Item> courses = new ArrayList<Item>();\n Scanner sc = null;\n \n try{\n sc = new Scanner(new File(file));\n }\n catch(IOException e) {\n System.out.println(\"Problem reading file:\\n\" + e);\n System.exit(1);\n }\n \n String[] split;\n while(sc.hasNextLine()) {\n split = sc.nextLine().split(\" \", 3);\n courses.add(new Item(split[0] + \".\" + split[1], split[2], -1));\n }\n \n return courses;\n }", "public void addCourses(CourseInfo course)\n {\n\t\t //Local Constants\n\n\t\t //Local Variables\n\n\n //checks to see if array is full\n\t\t if(courseCount < courses.length)\n\t\t {\n\t\t\t //adds the courses to the array\n\t\t\t courses[courseCount] = course;\n\n\t\t\t tlHours += course.cHours;\n\t\t\t grPts += course.grPts;\n\t\t\t sGpa = grPts / tlHours;\n\n //increases the course count\n\t\t\t courseCount++;\n\n\t\t }//ends if\n\t\t else\n\t\t {\n //if the array reached its maximum\n\t\t\t System.out.println(\"You have reach the maximum amount of courses\");\n\n\t\t }//ends else\n\n\n }", "private void loadJSON() throws FileNotFoundException\n\t{\n\n\t\tGsonBuilder builder= new GsonBuilder();\n\t\tGson gson = builder.create();\n\t\t\t\t\n\t\t//get a list of folders in the data directory\n\t\t\n\t\tFile[] directories = new File(\"data\").listFiles();\n\n\t\t//Loop through folders in data directory\n\t\tfor(File folder : directories)\n\t\t\t{\n\t\t\t\t//get a list of files inside the folder\n\t\t\t\tFile[] jsonItems = new File(folder.toString()).listFiles();\n\t\t\t\t\n\t\t\t\t//Loop through files inside the folder \n\t\t\t\tfor(File file : jsonItems)\n\t\t\t\t{\n\t\t\t\t\t//Store in directory map... substring to remove the \"data/\" portion... placed by filename to foldername\n\t\t\t\t\tString dir = file.toString().substring(5);\n\t\t\t\t\t\n\t\t\t\t\t//Generate player data from gson\n\t\t\t\t\tJsonReader reader = new JsonReader(new FileReader(file));\n\t\t\t\t\tPlayer player = gson.fromJson(reader, Player.class);\n\t\t\t\t\t\n\t\t\t\t\t//Store it in the map tied to it's directory\n\t\t\t\t\tplayerData.put(dir, player);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "private void readCategories() throws Exception {\n\t\t//reads files in nz category\n\t\tif (_nzCategories.size() > 0) {\n\t\t\tfor (String category: _nzCategories) {\n\t\t\t\t// read each individual line from the category files and store it\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(\"categories/nz/\", category);\n\t\t\t\t\tScanner myReader = new Scanner(file);\n\t\t\t\t\tList<String> allLines = new ArrayList<String>();\n\t\t\t\t\twhile(myReader.hasNextLine()) {\n\t\t\t\t\t\tString fileLine = myReader.nextLine();\n\t\t\t\t\t\tallLines.add(fileLine);\n\t\t\t\t\t}\n\t\t\t\t\tList<String> copy = new ArrayList<String>(allLines);\n\t\t\t\t\t_nzData.put(category, copy);\n\t\t\t\t\tallLines.clear();\n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//reads file in international categories\n\t\tif (_intCategories.size() > 0) {\n\t\t\tfor (String category: _intCategories) {\n\t\t\t\t// read each individual line from the category files and store it\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(\"categories/international/\", category);\n\t\t\t\t\tScanner myReader = new Scanner(file);\n\t\t\t\t\tList<String> allLines = new ArrayList<String>();\n\t\t\t\t\twhile(myReader.hasNextLine()) {\n\t\t\t\t\t\tString fileLine = myReader.nextLine();\n\t\t\t\t\t\tallLines.add(fileLine);\n\t\t\t\t\t}\n\t\t\t\t\tList<String> copy = new ArrayList<String>(allLines);\n\t\t\t\t\t_intData.put(category, copy);\n\t\t\t\t\tallLines.clear();\n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Student> retrieveAllCurrent() {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE users.type LIKE 'Student';\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(date);\r\n\t\t\r\n\t\tint currYear = cal.get(cal.YEAR);\r\n\t\tint currMth = cal.get(cal.MONTH);\r\n\t\t\r\n\t\tint year = 0;\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamId \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tint matricYear = Integer.parseInt(username.substring(username.length() - 4, username.length()));\r\n\t\t\t\t\r\n\t\t\t\tyear = currYear - matricYear;\r\n\t\t\t\t\r\n\t\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamId, prefRole);\r\n\t\t\t\t\r\n\t\t\t\tif(currMth > 8){\r\n\t\t\t\t\tyear++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(year == 3 || year == 4){\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}", "private void readSavedFile() {\n\n String[] files = new String[0];\n \n // On récupère la liste des fichiers\n File file = new File(folderName);\n\n // check if the specified pathname is directory first\n if(file.isDirectory()){\n //list all files on directory\n files = file.list();\n }\n\n if (files != null) {\n for(String currentFile : files) {\n Vehicule voiture;\n try {\n FileInputStream fileIn = new FileInputStream(folderName + \"/\" + currentFile);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n voiture = (Vehicule) in.readObject();\n addVoitureToList(voiture);\n in.close();\n fileIn.close();\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"#Erreur : Impossible de récupérer l'objet \" + currentFile);\n c.printStackTrace();\n return;\n }\n }\n }\n }", "private void addData(String folderName, ArrayList<String> loader1, ArrayList<String> loader2) throws IOException {\n LoadAndSave las =new LoadAndSave();\n las.createNewFolder(folderName);\n for(int x=0;x<loader1.size();x++) {\n las.addWords(loader1.get(x), loader2.get(x*3), loader2.get(x*3+1), folderName);\n }\n }", "public ArrayList <JSONObject> parseJSONFiles(String JSONdir) throws IOException {\n BufferedReader br;\n String jsonString;\n JSONParser parser = new JSONParser();\n ArrayList <JSONObject> jsonArrayList = new ArrayList<>();\n\n //visit dir that holds JSON files\n File dir = new File(JSONdir);\n\n //process every json object in given dir\n File[] jsonFiles = dir.listFiles((dir1, filename) -> filename.endsWith(\".json\"));\n\n //each newline in json object is a tweet\n for (File jsonFile : requireNonNull(jsonFiles)) {\n\n //create br to read tweets\n br = new BufferedReader(new FileReader(jsonFile.getCanonicalPath()));\n\n //while buffer has tweets to read\n while ((jsonString = br.readLine()) != null) {\n //parse the tweet\n try {\n jsonArrayList.add((JSONObject) parser.parse(jsonString));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }\n //close br and open next text file\n br.close();\n }\n return jsonArrayList;\n }", "@Override\n\tpublic List<AASTranscriptSemester> getAASTranscriptSemester(String stuId, String acaYear, String semesterId) {\n\t\tList<AASTranscriptSemester> arr = new ArrayList<>();\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = oConnection.getOracleConnection();\n\t\t\t//If semesterId == 4, it means it's SPRING semester, we have to change it into 1 because numYears variable bellow \n\t\t\t//which is the concatenation between academic year and semester Id (Ex: 20184, 20173,...) cannot be\n\t\t\t//like 20181, 20171, 20151, etc. it has to be like 20184, 20174, 20154, etc. \n\t\t\tif (semesterId.equals(\"4\"))\n\t\t\t\tsemesterId = \"1\";\n\t\t\tString numYear = acaYear + semesterId;\n\t\t\tString sql = \n\t\t\t\t\t\"select id_student,semester_name,aca_year,semester,term_gpa_aas,cum_gpa_aas\"+ \n\t\t\t\t\t\" from v_cum_gpa_aas\"+ \n\t\t\t\t\t\" where id_student = ?\" +\n\t\t\t\t\t\" and num_semester_year < ?\"+\n\t\t\t\t\t\" order by num_semester_year\"; \n\t\t\tstatement = conn.prepareStatement(sql);\n\t\t\tstatement.setString(1, stuId);\n\t\t\tstatement.setString(2, numYear);\n\t\t\trs = statement.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tarr.add(new AASTranscriptSemester(rs.getString(\"id_student\"),rs.getString(\"semester_name\"),rs.getString(\"aca_year\")\n\t\t\t\t\t\t, rs.getString(\"semester\"), rs.getDouble(\"term_gpa_aas\"), rs.getDouble(\"cum_gpa_aas\")));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstatement.close();\n\t\t\tconn.close();\n\t\t\treturn arr;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry {\n\t\t\t\tif (rs != null)\n\t\t\t\t\trs.close();\n\t\t\t\tif (statement != null)\n\t\t\t\t\tstatement.close();\n\t\t\t\tif (conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@GET\n\t@Path(\"{programId}/course\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Course> getCoursesforProgram(@PathParam(\"programId\") String progId){\n\t\treturn ProgramService.getInstance().getCourseForProgram(progId);\n\t}", "public ArrayList<Foire> getListFoire(String json) {\n ArrayList<Foire> listEvent = new ArrayList<>();\n try {\n JSONParser j = new JSONParser();\n Map<String, Object> groupes = j.parseJSON(new CharArrayReader(json.toCharArray()));\n List<Map<String, Object>> list = (List<Map<String, Object>>) groupes.get(\"root\");\n\n for (Map<String, Object> obj : list) {\n Foire e = new Foire();\n e.setIdFoire((int) Float.parseFloat(obj.get(\"idFoire\").toString()));\n e.setTitreFoire(obj.get(\"titreFoire\").toString());\n e.setDescriptionFoire(obj.get(\"descriptionFoire\").toString());\n e.setPrixFoire((int) Float.parseFloat(obj.get(\"prixFoire\").toString()));\n e.setImageFoire(obj.get(\"image\").toString());\n Map<String, Object> listDate = (Map<String, Object>) obj.get(\"dateEvent\");\n SimpleDateFormat sourceFormat = new SimpleDateFormat(\"d/m/Y\");\n \n //Date d = new Date((long) (double) listDate.get(\"timestamp\") * 1000);\n //e.setDateDeCreation(d);\n \n Map<String, Object> listCat = (Map<String, Object>) obj.get(\"idStand\");\n Stand cat = new Stand();\n cat.setIdStand((int) Float.parseFloat(listCat.get(\"idStand\") + \"\"));\n cat.setTitreStand(listCat.get(\"titreStand\") + \"\");\n e.setIdStand(cat);\n listEvent.add(e);\n }\n\n } catch (IOException ex) {\n }\n return listEvent;\n }", "private static void readWineListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"wines.json\")) {\n\n\t\t\tJSONArray wineListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < wineListJSON.size(); i++) {\n\t\t\t\tJSONObject wine = (JSONObject) wineListJSON.get(i);\n\t\t\t\tString name = (String) wine.get(\"name\");\n\t\t\t\tint year = Integer.valueOf(wine.get(\"year\").toString());\n\t\t\t\tString description = (String) wine.get(\"description\");\n\t\t\t\tString vine = (String) wine.get(\"vine\");\n\t\t\t\tint quantity = Integer.valueOf(wine.get(\"quantity\").toString());\n\t\t\t\tdouble price = (double) wine.get(\"price\");\n\n\t\t\t\t// Add the JSON object to the wine list\n\t\t\t\tMain.wineList.add(new Wine(name, year, description, vine, quantity, price));\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public ArrayList<Student> getStudentsForCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n String statement = GET_SUDENTS_FOR_COURSE;\n \n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }", "private void loadCalendarData()\n{\n if (!cal_file.exists()) {\n cal_dlm = 0;\n cal_names.clear();\n cal_names.add(\"primary\");\n }\n else if (cal_file.lastModified() > cal_dlm) {\n cal_dlm = cal_file.lastModified();\n cal_names.clear();\n try (BufferedReader br = new BufferedReader(new FileReader(cal_file))) {\n for ( ; ; ) {\n String ln = br.readLine();\n if (ln == null) break;\n ln = ln.trim();\n if (ln.startsWith(\"#\") || ln.length() == 0) continue;\n cal_names.add(ln);\n }\n if (cal_names.size() == 0) cal_names.add(\"primary\");\n }\n catch (IOException e) {\n BasisLogger.logE(\"GOOGLECAL: Problem reading calendar data\",e);\n }\n }\n}", "public static List<File> splitData(String treeFileName, int foldSize) {\n ArrayList<File> tempFilePaths = new ArrayList<File>();\n Random random = new Random(100);\n for (int i = 0; i < foldSize+1; i++) {\n tempFilePaths.add(new File(String.valueOf(random.nextInt())));\n }\n URL treeResource = CommonUtils.class.getClassLoader().getResource(treeFileName);\n if (treeResource == null) {\n logger.error(\"Make sure the file is in the classpath of the project: \" + treeFileName);\n return null;\n }\n\n URL trainResource = null;\n\n File treeFile = new File(treeResource.getPath());\n ArrayList<String> tempAttributeList = new ArrayList<String>();\n try {\n FileReader treeFileInputStream = new FileReader(treeFile);\n BufferedReader bufferedReader = new BufferedReader(treeFileInputStream);\n String line = null;\n String line1 = null;\n int count = 0;\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (count == 0) {\n trainResource = CommonUtils.class.getClassLoader().getResource(line);\n if (trainResource == null) {\n logger.error(\"Make sure the file is in the classpath of the project: \" + line);\n return null;\n }\n FileReader fileReader = new FileReader(new File(trainResource.getPath()));\n BufferedReader bufferedReader1 = new BufferedReader(fileReader);\n int count1 = 0;\n while ((line1 = bufferedReader1.readLine()) != null) {\n if (count1 == 0) {\n BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(tempFilePaths.get(0)));\n bufferedWriter.write(line1);\n bufferedWriter.write(\"\\n\");\n bufferedWriter.flush();\n bufferedWriter.close();\n }else {\n tempAttributeList.add(line1);\n }\n count1++;\n }\n }\n count++;\n logger.info(line);\n }\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n\n\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n\n // now we randomly write data\n int fileIndex = 1;\n while(tempAttributeList.size()!=0) {\n int index0 = new Random(100).nextInt();\n if(index0<0){\n index0 = index0 * -1;\n }\n String s = tempAttributeList.get(index0 % tempAttributeList.size());\n\n try {\n BufferedWriter bufferedWriter1 = new BufferedWriter(new FileWriter(tempFilePaths.get(fileIndex),true));\n bufferedWriter1.write(s);\n bufferedWriter1.write(\"\\n\");\n bufferedWriter1.flush();\n bufferedWriter1.close();\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n tempAttributeList.remove(s);\n if(fileIndex==foldSize){\n fileIndex=1;\n }else{\n fileIndex++;\n }\n }\n return tempFilePaths;\n }", "public static String loadStudentList() {\n\n // Variable used to organize code and allow buffered reader to close\n String bufferedStudentList = \" \"; \n\n // The try...catch block handles the possible error that may occur if \n // there was an issue with accessing the file. \n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(Constants.STUDENT_LIST));\n bufferedStudentList = bufferedReader.readLine();\n bufferedReader.close();\n } catch (IOException exception) {\n System.out.println(exception);\n } \n return bufferedStudentList; \n }", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "@Override\npublic ArrayList<String> courses() {\n\tArrayList<String> studentCourses = new ArrayList<String>();\n\tstudentCourses.add(\"CMPE - 273\");\n\tstudentCourses.add(\"CMPE - 206\");\n\tstudentCourses.add(\"CMPE - 277\");\n\tSystem.out.println(this.name+\" has take these courses\");\n\tfor(int i = 0 ; i < studentCourses.size() ; i++){\n\t\tSystem.out.println( studentCourses.get(i));\n\t}\n\treturn null;\n}", "public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}", "private static void getResults() {\n\t\t//Variables\n\t\tFile directoryOfChunks = new File(\"output\");\n\t\tFile[] files = directoryOfChunks.listFiles();\n\t\tArrayList<String> filesInFolder = new ArrayList<>();\n\t\tArrayList<String> chunkResults = new ArrayList<>();\n\t\tBufferedReader br = null;\n\t\tReadFromFile rf = new ReadFromFile();\n\n\t\t//Get files from output folder\n\t\tif(directoryOfChunks.exists() && directoryOfChunks.isDirectory()){\n\t\t\tdirectoryName = \"output\";\n\t\t\t//Copy file names into arraylist\n\t\t\tfor (File f: files) {\n\t\t\t\t//Save file names into arraylist.\n\t\t\t\tfilesInFolder.add(f.getName());\n\t\t\t}\n\t\t}\n\t\t//if not a file or directory print error message\n\t\telse{\n\t\t\tSystem.out.println(\"No such file/directory: \" + directoryOfChunks);\n\t\t}\n\n\t\t//for loop to open and read each individual file\n\t\tfor (String file : filesInFolder) {\n\t\t\ttry {\n\n\t\t\t\tFileReader reader = new FileReader(directoryName + \"\\\\\" + file);\n\t\t\t\tbr = new BufferedReader(reader);\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tchunkResults.addAll(rf.readFromChunk(br));\n\t\t}\n\n\t\t//Call sanitizeAndSplit\n\t\tsanitizeAndSplit(chunkResults);\n\t}", "public String getClassList(String semester, int year) {\n String str=String.format(\" %s %d\\n\", semester, year);\n for (TranscriptEntry en : transcripts) {\n if (en == null) break;\n else if ((en.getSemester().equalsIgnoreCase(semester)) && \n (en.getYear()==year))\n str += en.toString() + \"\\n\";\n } \n return str;\n }", "@PostMapping(path = \"/{id}/waitlist/add\")\n public Set<Integer> addWaitlist(@PathVariable Integer id, @RequestBody Map<String, List<Integer>> courses) {\n Set<Integer> addedCourseId = new HashSet<>();\n Optional<Student> student = studentService.findStudentById(id);\n\n if (!student.isPresent()) {\n throw new NotFoundException();\n }\n\n Student s = student.get();\n\n for (Integer i : courses.get(\"id\")) { // loop over the ids of all courses to be added to the student's waitlist\n Optional<Course> course = courseService.findCourseById(i);\n if (!course.isPresent()) {\n throw new NotFoundException();\n }\n\n Course c = course.get();\n if (!s.getCourses().contains(c)) {\n StudentWait studentWait = new StudentWait();\n studentWait.setCourseW(c);\n studentWait.setStudentW(s);\n studentWaitService.saveStudentWait(studentWait);\n addedCourseId.add(c.getId());\n }\n\n }\n return addedCourseId; // return the ids of the courses that have been successfully added to the student's waitlist\n }", "public void UpdateCourses()\n {\n final List<String> your_array_list = new ArrayList<String>();\n String url1=\"http://10.208.20.164:8000/courses/list.json\";\n JsonObjectRequest json_ob = new JsonObjectRequest (Request.Method.GET, url1,null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response)\n {Log.i(\"yo\", \"why this ... working\");\n// System.out.println(response.toString());\n try\n {\n// System.out.println(\"Tabview pe \" + response);\n int current_sem = response.getInt(\"current_sem\");\n int current_year = response.getInt(\"current_year\");\n JSONObject user = response.getJSONObject(\"user\");\n JSONArray courses = response.getJSONArray(\"courses\");\n System.out.println(\"sem :\" +current_sem+\" year: \"+ current_year);\n String name = user.getString(\"first_name\");\n for(int i=0;i<courses.length();i++)\n { JSONObject course= courses.getJSONObject(i);\n int id = course.getInt(\"id\");\n String name_course=course.getString(\"name\") ;\n app_list.course_list.put(id,name_course);\n app_list.course_code.put(id,course.getString(\"code\"));\n your_array_list.add(name_course);\n }\n long totalRequestTime = System.currentTimeMillis() - mRequestStartTime;\n System.out.println(\"Response time for one is==\"+ totalRequestTime );\n } catch (JSONException e)\n {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),\n \"Error: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.i(\"yo\", \"why this not working\");\n Toast.makeText(MainActivity.this, error.toString(), Toast.LENGTH_LONG).show();\n }\n });\n Volley.newRequestQueue(this).add(json_ob);\n Bundle bundle = new Bundle();\n bundle.putString(\"User\", Username);\n bundle.putString(\"Pass\", Password);\n bundle.putStringArrayList(\"String\", (ArrayList<String>) your_array_list);\n One.setArguments(bundle);\n\n }", "private void cargarJugadoresEnMesa() {\n\n\t\tString nombreFichero = String.format(\"jugadoresEnMesa%d.csv\", id);\n\n\t\tthis.jugadoresEnMesa = GestionCSV.obtenerJugadores(nombreFichero);\n\n\t}", "void getStates(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the name of the student to array list\n states.add(json.getString(\"name\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "private ArrayList<BookOfUser> loadBooksOfUser(InputStream is) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder jsonFileContent = new StringBuilder();\r\n\t\t//read line by line from file\r\n\t\tString nextLine = null;\r\n\t\twhile ((nextLine = br.readLine()) != null){\r\n\t\t\tjsonFileContent.append(nextLine);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\t//this is a require type definition by the Gson utility so Gson will \r\n\t\t//understand what kind of object representation should the json file match\r\n\t\tType type = new TypeToken<ArrayList<BookOfUser>>(){}.getType();\r\n\t\tArrayList<BookOfUser> bookOfUser = gson.fromJson(jsonFileContent.toString(), type);\r\n\t\t//close\r\n\t\tbr.close();\t\r\n\t\treturn bookOfUser;\r\n\t}", "public void read_file() throws FileNotFoundException, IOException {\n FileReader fw;\r\n BufferedReader rw;\r\n fw = new FileReader(\"dat.txt\");\r\n rw = new BufferedReader(fw);\r\n\r\n String s;\r\n Boy b;\r\n int i, at, intl, bud;\r\n nb = Integer.parseInt(rw.readLine());\r\n for (i = 1; i <= nb; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n String name = st.nextToken();\r\n at = Integer.parseInt(st.nextToken());\r\n intl = Integer.parseInt(st.nextToken());\r\n bud = Integer.parseInt(st.nextToken());\r\n String type = st.nextToken();\r\n b = new Boy(name, at, intl, bud, type);\r\n boy_arr.add(b);\r\n }\r\n ng = Integer.parseInt(rw.readLine());\r\n Girl g;\r\n for (i = 1; i <= ng; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n String name = st.nextToken();\r\n at = Integer.parseInt(st.nextToken());\r\n intl = Integer.parseInt(st.nextToken());\r\n bud = Integer.parseInt(st.nextToken());\r\n String type = st.nextToken();\r\n g = new Girl(name, at, intl, bud, type);\r\n girl_arr.add(g);\r\n }\r\n fw = new FileReader(\"gift.txt\");\r\n rw = new BufferedReader(fw);\r\n String ty, gid;\r\n int cs, vl,ngg;\r\n ngg = Integer.parseInt(rw.readLine());\r\n for (i = 1; i <= ngg; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n gid = st.nextToken();\r\n cs = Integer.parseInt(st.nextToken());\r\n vl = Integer.parseInt(st.nextToken());\r\n ty = st.nextToken();\r\n Gift gf = new Gift(ty, cs, vl, gid);\r\n gift_arr.add(gf);\r\n }\r\n Collections.sort(gift_arr, new Compare());\r\n}", "private void getDatas(JSONArray j){\n for(int i=0;i<j.length();i++){\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the data to array list\n mNames.add(json.getString(\"name\"));\n mIds.add(json.getString(\"exhibition_id\"));\n\n String r = json.getString(\"rate\");\n if(r.equals(\"-1\"))\n mRates.add(\"目前還沒有評分\");\n else\n mRates.add(r);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}", "@Override\n public void onResponse(JSONArray response) {\n try{\n // Loop through the array elements\n for(int i=0;i<response.length();i++){\n courseslistid.add(response.get(i).toString());\n }\n }catch (JSONException e){\n e.printStackTrace();\n }\n }", "static void ReadAndWriteDataSet(String folderName) throws IOException\n\t{\n\t\t\n\t\t String path = \"data\"+FS+\"data_stage_one\"+FS+folderName; // Folder path \n\t\t \n\t\t String filename, line;\n\t\t File folder = new File(path);\n\t\t File[] listOfFiles = folder.listFiles();\n\t\t BufferedReader br = null;\n\t\t for(int i=0; i < listOfFiles.length; i++)\n\t\t { \n\t\t\t System.out.println(listOfFiles[i].getName());\n\t\t\t filename = path+FS+listOfFiles[i].getName();\n\t\t\t try\n\t\t\t {\n\t\t\t\t br= new BufferedReader(new FileReader(new File(filename)));\n\t\t\t\t while((line = br.readLine())!= null)\n\t\t\t\t {\n\t\t\t\t\tfor(int j=0; j<prep.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\t\t\t\twhile(st.hasMoreTokens())\n\t\t\t\t\t\t\tif(st.nextToken().equalsIgnoreCase(prep[j]))\n\t\t\t\t\t\t\t{\t//System.out.println(line);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(arr[j] == null)\n\t\t\t\t\t\t\t\t\tarr[j] = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tarr[j].add(line.toLowerCase().replaceAll(\"\\\\p{Punct}\",\"\").trim().replaceAll(\"\\\\s+\", \" \"));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.err.println(\"exception: \"+e.getMessage() );\n\t\t\t\t e.printStackTrace();\n\t\t\t\t System.exit(0);\n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }\n\t\t \n\t\t // Writes the entire arraylist(preposition wise seperated files)\n\t\t \n\t\t WriteSeperated(folderName);\n\t\t \n\t\t for(int i=0; i<prep.length; i++)\n\t\t {\n\t\t\t arr[i].clear();\n\t\t }\n\t\t \n\t}", "private void getSubCategory(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n sub_cat.add(json.getString(\"subcategory\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "private void prepareStudentDirectories() {\n //---------- get all directories in the top level directory ----------\n ArrayList<File> listOfFiles = getFilesInDirectory(TopAssignmentsDirectory, true);\n\n /* for directories that don't conform to Moodle names, we will label\n them \"anonymous 1\", \"anonymous 2\", etc... */\n int anonymousCounter = 1;\n\n //---------- go through the list and identify subdirectories ----------\n for (File file : listOfFiles) {\n if (file.isDirectory()) { //check that it is a directory\n\n Assignment newAssignment = new Assignment();\n\n //attempt to extract the student's name\n String studentName = extractStudentNameFromMoodleDirectoryName(file.getName());\n newAssignment.assignmentDirectory = file.toString();\n\n\n if (studentName == null) {\n console(\"skipping directory \" + file.getName());\n } else if (studentName.equals(\"\")) {\n newAssignment.studentName = \"Anonymous \" + anonymousCounter;\n anonymousCounter++;\n //add this assignment to the assignments ArrayList\n assignments.add(newAssignment);\n } else {\n //student name successfully extracted: add to the assignmentDirectories dictionary\n newAssignment.studentName = studentName;\n //add this assignment to the assignments ArrayList\n assignments.add(newAssignment);\n }\n\n }\n }\n }", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "@Override\n\tpublic List<Personne> generateStudents(MultipartFile file) throws IllegalStateException, IOException{\n\t\tList<Personne> students=new ArrayList<Personne>();\n\t\tPersonne student=new Personne();\n\t\tString line = \"\";\n\t\tfile.transferTo(new File(\"D:\\\\files\\\\\" + file.getOriginalFilename()));\n\t\ttry {\n\t\t\tBufferedReader br;\n\t\t\tbr = new BufferedReader( new FileReader(\"D:\\\\files\\\\\" + file.getOriginalFilename()));\n\t\t\twhile((line = br.readLine())!=null)\n\t\t\t{\n\t\t\t\tString [] data =line.split(\",\");\n\t\t\t\tPersonne etudiant = new Personne();\n\t\t\t // etudient.setId((long) Integer.parseInt(data[0]));\n\t\t\t\tetudiant.setNom(data[0]);\n\t\t\t\tetudiant.setPrenom(data[1]);\n\t\t\t\tetudiant.setCin(data[2]);\n\t\t\t\tetudiant.setCin(data[2]);\n\t\t\t\tetudiant.setCin(data[2]);\n\t\t\t\tetudiant.setCin(data[2]);\n\t\t\t\tetudiant.setCin(data[2]);\n\t\t\t\t//etudiant.setNom(data[3]);\n\t\t\t\tstudent=persoRepo.save(etudiant);\n\t\t\t\tif(student !=null) {\n\t\t\t\t\tstudents.add(student);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn students;\n\t\t\n\t}", "private void convertJSONtoArrayList(JSONArray players) {\n try {\n for (int i = 0; i < players.length(); i++) {\n JSONObject employee = players.getJSONObject(i);\n taskList.add(new MainTask(\n employee.getInt(\"id\"),\n employee.optString(\"description\", \"no name\"),\n employee.getInt(\"roomNumber\"),\n employee.optString(\"buildingName\", \"no email\"),\n employee.optString(\"comment\"),\n employee.getBoolean(\"isComplete\")\n ));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public String[] getCourses();", "public CSCourses(String fileName) {\n this();\n try {\n Scanner scan = new Scanner(new File(fileName));\n while (scan.hasNextLine()) {\n Course c = new Course(scan.nextLine(), scan.nextLine(), scan.nextLine(), scan.nextLine(), scan.nextLine(), scan.nextLine(), scan.nextLine());\n String line = scan.nextLine(); // takes care of the \"#\" \n addCourse(c); // after creating a Course object, it is added to the courseList LinkedList\n }\n }\n catch (IOException e) {\n System.out.println(\"Not able to read file: \" + fileName);\n }\n }", "private List<String[]> parseFileByName(String name){\n\n List<String[]> content = new ArrayList<>();\n String csvFile = name;\n BufferedReader br = null;\n String line = \"\";\n String cvsSplitBy = \",\";\n\n try {\n\n br = new BufferedReader(new FileReader(csvFile));\n while ((line = br.readLine()) != null) {\n\n // use comma as separator\n String[] data = line.split(cvsSplitBy);\n content.add(data);\n\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return content;\n }" ]
[ "0.62969744", "0.58894026", "0.5860773", "0.5827693", "0.58255273", "0.5785091", "0.57704556", "0.5690136", "0.5684901", "0.56271535", "0.5576388", "0.55702597", "0.5508259", "0.54703397", "0.53971857", "0.53841716", "0.5382727", "0.53724873", "0.5338889", "0.53274834", "0.53235656", "0.5313622", "0.52979106", "0.52240837", "0.5201127", "0.51954675", "0.5191998", "0.51883274", "0.51562864", "0.51547563", "0.51274633", "0.5116457", "0.51127034", "0.51060575", "0.5104362", "0.5102693", "0.509184", "0.50846344", "0.5071844", "0.506763", "0.506419", "0.50597626", "0.50593656", "0.5058987", "0.5042111", "0.5033602", "0.5015859", "0.49992302", "0.4998889", "0.49848992", "0.49845162", "0.49775958", "0.49709645", "0.49662572", "0.49600986", "0.4947839", "0.49411196", "0.49197257", "0.491226", "0.49122044", "0.4907725", "0.48990437", "0.489089", "0.48862708", "0.4881691", "0.48812506", "0.48737946", "0.48691463", "0.48628438", "0.4857469", "0.4857184", "0.48543742", "0.4830302", "0.48298115", "0.48292798", "0.4829189", "0.48235354", "0.48176268", "0.48024982", "0.47948566", "0.4794681", "0.4790716", "0.47902197", "0.47885752", "0.478815", "0.47875422", "0.47851875", "0.47820866", "0.47781605", "0.47777534", "0.47728106", "0.47657472", "0.47551695", "0.47501624", "0.47487444", "0.4748509", "0.47477895", "0.47447813", "0.47411793", "0.4735799" ]
0.8299063
0
Creates a runner animation
public MovingRunner(int x, int y, int repeat, JComponent component) { super(x, y); this.repeat = repeat; this.component = component; delay = ((int) (Math.random() * 2000) + 1000) / MAX_FRAMES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createAnimation () {\n // KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY), e -> myManager.step());\n // myAnimation = new Timeline();\n // myAnimation.setCycleCount(Timeline.INDEFINITE);\n // myAnimation.getKeyFrames().add(frame);\n }", "@Override\n public void run() {\n runAnimation();\n }", "public void run() {\r\n this.createBallsOnTopOfPaddle();\r\n this.running = true;\r\n this.runner.run(new CountdownAnimation(2, 3, sprites));\r\n this.runner.run(this);\r\n }", "private Animation<TextureRegion> createAnimation(DeathmatchMania game) {\n TextureAtlas textureAtlas = game.getAssetManager().get(\"bulletAtlas.atlas\");\n\n return new Animation(FRAME_TIME, textureAtlas.findRegions(\"bullet\"));\n }", "void startAnimation();", "@Override\n public void run() {\n AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();\n frameAnimation.start();\n }", "Run createRun();", "protected abstract void animationLogicTemplate();", "public abstract void animation(double seconds);", "private Animation<TextureRegion> createWalkingAnimation(MyCumulusGame game) {\n Texture walkingTexture = game.getAssetManager().get(\"bird.png\");\n TextureRegion[][] walkingRegion = TextureRegion.split(walkingTexture, walkingTexture.getWidth() / 3, walkingTexture.getHeight()/3);\n\n TextureRegion[] frames = new TextureRegion[2]; //todo change to accomodate any color of bird\n System.arraycopy(walkingRegion[0], 0, frames, 0, 2);\n\n return new Animation<TextureRegion>(FRAME_TIME, frames);\n }", "public abstract void animationStarted();", "public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }", "@Override public void onAnimationStart(Animator arg0) {\n\n }", "public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureRegion>();\n for(int i=1;i<=8;i++){\n frames.add(new TextureRegion(atlas.findRegion(\"demon01\"), x, 15, 16, 15));\n x+=18;\n }\n this.parado = new Animation(1 / 10f, frames);//5 frames por segundo\n setBounds(0, 0, 18, 15);\n\n }", "@Override\n protected void animStart() {\n }", "public AnimationView(Context context, AttributeSet attrs){\n\t\tsuper(context, attrs);\n\t\t\n\t\t\n\t\t// Initialize Breakout Actors\n\t\tball = new Actor(context, 200, 200, Color.BLUE, 25);\n\t\tpaddle = new Actor(context, 300, 300, Color.RED, 40);\n\t\t\n\t\tpaddle.setWidth(150);\n\t\tpaddle.setHeight(40);\n\t\t\n\t\tball.setDX(10);\n\t\tball.setDY(10);\n\t\t\n\t\t\n\t\t// Initialize Bricks\n\t\tbricks = new ArrayList <Actor> (0); // List of 6\n\t\t\n\t\tfor (int i = 0; i<6; i++) {\n\t\t\tbricks.add(new Actor(context, i*80, 100, Color.GREEN, 40));\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i< bricks.size(); i++) {\n\t\t\tbricks.get(i).setWidth(75);\n\t\t}\n\t\t\n\t \n\t\t\n\t\t\n\t// Initialize actors\n\t\tactorone= new Actor(context, 100, 100, Color.RED, 40);\n\t\tactortwo = new Actor(context, 200, 200, Color.BLUE, 50);\n\t\tactorthree = new Actor(context, 300, 200, Color.GREEN, 100);\n\t\t// Initialize the tardis\n\t\ttardis = new Actor(context, 300, 300, Color.BLUE, 50);\n\t\ttardis.setCostume(R.drawable.tardis);\n\t\tactorone.setDX(5);\n\t\tactorone.setDY(5);\n\t\t\n\t\tactortwo.setDX(10);\n\t\tactortwo.setDY(-10);\n\t\t\n\t \n\t\t// Initialize the Handler\n\t\th = new Handler();\n\t\n\t}", "@Override\n protected Animation<TextureRegion> createAcceleratingAnimation(Arena arena) {\n Texture animated = getAsset(arena, \"spaceship-thrust.png\");\n\n TextureRegion[][] thrustRegion = TextureRegion.split(animated, animated.getWidth() / numberOfAnimations, animated.getHeight());\n\n TextureRegion[] frames = new TextureRegion[numberOfAnimations];\n System.arraycopy(thrustRegion[0], 0, frames, 0, numberOfAnimations);\n\n return new Animation<TextureRegion>(FRAME_TIME, frames);\n }", "private void setupAnimationTimer() {\n new AnimationTimer() {\n @Override\n public void handle(long l) {\n view.movePlayer();\n view.updateView();\n }\n }.start();\n\n // Timeline for UI stuff\n uiTimeline = new Timeline();\n\n KeyFrame keyStart = new KeyFrame(\n Duration.seconds(0),\n e -> view.updateUI((1160 / distance) * 0.005)\n );\n KeyFrame keyEnd = new KeyFrame(Duration.millis(5));\n\n uiTimeline.getKeyFrames().addAll(keyStart, keyEnd);\n uiTimeline.setCycleCount(Timeline.INDEFINITE);\n uiTimeline.setAutoReverse(false);\n\n countdownTimer = new Timeline(\n new KeyFrame(\n Duration.seconds(distance - (1160 / distance) * 0.005),\n e -> journeyComplete()\n )\n );\n\n // Timeline for asteroids\n Timeline asteroidTimer = new Timeline(\n new KeyFrame(Duration.millis(2000), e -> model.AsteroidPool.spawn())\n );\n asteroidTimer.setCycleCount(Timeline.INDEFINITE);\n asteroidTimer.play();\n }", "protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }", "private void animateRight(){\n if(frame == 1){\n setImage(run1);\n }\n else if(frame == 2){\n setImage(run2);\n }\n else if(frame == 3){\n setImage(run3);\n }\n else if(frame == 4){\n setImage(run4);\n }\n else if(frame == 5){\n setImage(run5);\n }\n else if(frame == 6){\n setImage(run6);\n }\n else if(frame == 7){\n setImage(run7);\n }\n else if(frame == 8){\n setImage(run8);\n frame =1;\n return;\n }\n frame ++;\n }", "public void anim() {\n // start the timer\n t.start();\n }", "public abstract void nextAnimationStep();", "private void startAnimation()\n\t{\n\t\tActionListener timerListener = new TimerListener();\n\t\tTimer timer = new Timer(DELAY, timerListener);\n\t\ttimer.start();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void run() {\n Timeline timeline = new Timeline(new KeyFrame(Duration.millis(17),\n t -> this.draw()));\n\n timeline.setCycleCount(Timeline.INDEFINITE);\n timeline.play();\n }", "public void run() {\n\t// Remember the starting time\n\tlong tm = System.currentTimeMillis();\n\twhile (Thread.currentThread() == animator) {\n\t // Display the next frame of animation.\n\t repaint();\n\n\t // Delay depending on how far we are behind.\n\t try {\n\t\ttm += delay;\n\t\tThread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n\t } catch (InterruptedException e) {\n\t\tbreak;\n\t }\n\n\t // Advance the frame\n\t frame++;\n\t}\n }", "@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentTime = t;\n\n\t\t// Fetch current animation\n\t\tBaseAnimation animation = AnimationManager.getInstance().getCurrentAnimation();\n\t\tif (animation == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Draw animation frame with delta time\n\t\tanimation.draw(dt);\n\n\t\t// Send image to driver\n\t\tdriver.displayImage(animation.getImage());\n\n\t\t// Display previews\n\t\tbackground(0);\n\t\tif (ledPreviewEnabled) {\n\t\t\timage(preview.renderPreview(animation.getImage()), 0, 0);\n\t\t} else {\n\t\t\ttextAlign(CENTER);\n\t\t\ttextSize(16);\n\t\t\ttext(\"Press W to preview the animation.\", previewRect.width/2, previewRect.height/2);\n\t\t}\n\t\t\n\t\tif (sourcePreviewEnabled && BaseCanvasAnimation.class.isAssignableFrom(animation.getClass())) {\n\t\t\timage(((BaseCanvasAnimation) animation).getCanvasImage(), 0, 0);\n\t\t} else if (sourcePreviewEnabled) {\n\n\t\t\t// Copy animation image (else the animation image gets resized)\n\t\t\t// and scale it for better visibility\n\t\t\tPImage sourcePreview = animation.getImage().get();\n\t\t\tsourcePreview.resize(130, 405);\n\n\t\t\timage(sourcePreview, 0, 0);\n\t\t}\n\n\t}", "@Test\n\tpublic void animationTest() {\n\t\t\n\t\tMap<Direction, TimeAnimation> animationMap = Player.makePlayerAnimation(PlayerType.CAVEMAN.name(), \n\t\t\t\tPlayerState.IDLE, 1, 1, null);\n\t\t\n\t\t// Test setting idle animation to north\n\t\tarcher.setAnimation(animationMap.get(Direction.N));\n\t\t\n\t\t// Test setting idle animation to south\n\t\tarcher.setAnimation(animationMap.get(Direction.S));\n\t\t\t\t\n\t\t// Test setting idle animation to south west\n\t\tarcher.setAnimation(animationMap.get(Direction.SW));\n\t}", "public AnimRunning(GameView canvas,GameView g)\n\t{\n\t\tthis.canvas = canvas;\n\t\trun = null;\n\t\tpos = 0;\n\t\tthis.g = g;\n\t}", "private void runProfileTutorial() {\n mEnterAnimation = new AlphaAnimation(0f, 1f);\n mEnterAnimation.setDuration(600);\n mEnterAnimation.setFillAfter(true);\n\n mExitAnimation = new AlphaAnimation(1f, 0f);\n mExitAnimation.setDuration(600);\n mExitAnimation.setFillAfter(true);\n\n runOverlay_ContinueMethod();\n }", "protected abstract void animate(int anim);", "private Animation.AnimationListener createAnimationListener() {\n return new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n }\n @Override\n public void onAnimationEnd(Animation animation) {\n // set up button symbol and playback indicator afterwards\n setVisualState();\n }\n @Override\n public void onAnimationRepeat(Animation animation) {\n }\n };\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "void recordButtonAnimationController() {\n\n //Initialize a new handler to handle animation control\n animationHandler = new Handler();\n\n //Runnable to handle idle trove animation\n RecordButtonRunnable = new Runnable() {\n\n //Run record button animation\n @Override\n public void run() {\n recordButtonAnim.start();\n\n //If record button active variable is true, repeat animation once per second - orange animation\n if(recordButtonRunning) {\n animationHandler.postDelayed(this, 1000);\n }\n\n //If the record button active variable is false, cancel the animation handler call back and set image to be the default green record button\n else {\n animationHandler.removeCallbacks(RecordButtonRunnable);\n recordButton.setImageDrawable(recordButtonNonAnim);\n }\n }\n };\n\n //Begin runnable\n animationHandler.post(RecordButtonRunnable);\n }", "public AnimationPanel() {\n initComponents();\n // create a new game board\n game = new GameOfLife(gridSize);\n }", "Builder(android.animation.Animator anim) { throw new RuntimeException(\"Stub!\"); }", "public Zombie() {\r\n\t\tsuper(myAnimationID, 0, 0, 60, 60);\r\n\t}", "private void initAnim()\n {\n \t\n //leftWalk = AnimCreator.createAnimFromPaths(Actor.ANIM_DURATION, \n // AUTO_UPDATE, leftWalkPaths);\n // get the images for leftWalk so we can flip them to use as right.#\n \tImage[] leftWalkImgs = new Image[leftWalkPaths.length];\n \tImage[] rightWalkImgs = new Image[leftWalkPaths.length];\n \tImage[] leftStandImgs = new Image[leftStandPaths.length];\n \tImage[] rightStandImgs = new Image[leftStandPaths.length];\n \t\n \t\n \t\n \tleftWalkImgs = AnimCreator.getImagesFromPaths(\n \t\t\tleftWalkPaths).toArray(leftWalkImgs);\n \t\n \theight = leftWalkImgs[0].getHeight();\n \t\n \trightWalkImgs = AnimCreator.getHorizontallyFlippedCopy(\n \t\t\tleftWalkImgs).toArray(rightWalkImgs);\n \t\n \tleftStandImgs = AnimCreator.getImagesFromPaths(\n \t\t\tleftStandPaths).toArray(leftStandImgs);\n \t\n \trightStandImgs = AnimCreator.getHorizontallyFlippedCopy(\n \t\t\tleftStandImgs).toArray(rightStandImgs);\n \t\n \tboolean autoUpdate = true;\n \t\n \tleftWalk = new /*Masked*/Animation(\n\t\t\t\t\t\t leftWalkImgs, \n\t\t\t\t\t\t Actor.ANIM_DURATION, \n\t\t\t\t\t\t autoUpdate);\n\n \trightWalk = new /*Masked*/Animation(\n \t\t\t\t\t\trightWalkImgs, \n \t\t\t\t\t\tActor.ANIM_DURATION, \n\t\t\t\t autoUpdate);\n \t\n \tleftStand = new /*Masked*/Animation(\n \t\t\t\t\t\tleftStandImgs, \n\t\t\t\t\t\t\tActor.ANIM_DURATION, \n\t\t\t\t\t\t\tautoUpdate);\n \t\n \trightStand = new /*Masked*/Animation(\n \t\t\t\t\t\trightStandImgs, \n \t\t\t\t\t\tActor.ANIM_DURATION,\n \t\t\t\t\t\tautoUpdate);\n \t\n \tsetInitialAnim();\n }", "private void startAnimation(){\n\t TimerActionListener taskPerformer = new TimerActionListener();\n\t new Timer(DELAY, taskPerformer).start();\n \t}", "public static void main(String[] args) {\n\t\tCircle cr=new Circle();\n\t\tcr.draw();\n\t\t\n\t\tShape tr=new Triangle();\n\t\ttr.draw();\n\t\tanimate(new Circle());\n\t\tanimate(new Square());\n\t\tanimate(new Triangle());\n\t}", "public void startAnimation() {\n int delay = 50; // milliseconds\n ActionListener taskPerformer = new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (counter < points.length - 1) {\n counter += 20;\n if (counter > points.length) {\n counter = points.length - 1;\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n validate();\n repaint();\n } else {\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n }\n };\n new Timer(delay, taskPerformer, getFreeColClient()).start();\n }", "private void animateLeft(){\n if(frame == 1){\n setImage(run1_l);\n }\n else if(frame == 2){\n setImage(run2_l);\n }\n else if(frame == 3){\n setImage(run3_l);\n }\n else if(frame == 4){\n setImage(run4_l);\n }\n else if(frame == 5){\n setImage(run5_l);\n }\n else if(frame == 6){\n setImage(run6_l);\n }\n else if(frame == 7){\n setImage(run7_l);\n }\n else if(frame == 8){\n setImage(run8_l);\n frame =1;\n return;\n }\n frame ++;\n }", "@Override\n protected void init() {\n lastHorizontalDirection = direction = Math.random() < 0.5 ? Direction.LEFT : Direction.RIGHT;\n lastVerticalDirection = Direction.UP;\n setBody(new PolygonShape(BODY_WIDTH2, BODY_HEIGHT2), Body.Mode.CHARACTER);\n body().restitution = 0.0;\n size().set(WIDTH, HEIGHT);\n\n this.addAnimation(\"walk\")\n .addFrames(\"smick\", 4, 5, 0, 2)\n .setSpeed(10)\n .loop(true);\n this.addAnimation(\"eatRadish\")\n .addFrames(\"smick\", 4, 5, 8, 9)\n .setSpeed(10)\n .loop(true);\n this.addAnimation(\"eatHector\")\n .addFrames(\"smick\", 4, 5, 10, 10)\n .setSpeed(10)\n .loop(true);\n this.addAnimation(\"jump\")\n .addFrames(\"smick\", 4, 5, 11, 11)\n .setSpeed(10)\n .loop(false);\n this.addAnimation(\"climb\")\n .addFrames(\"smick\", 4, 5, 12, 13)\n .setSpeed(10)\n .loop(false);\n this.addAnimation(\"eatHectorOnRope\")\n .addFrames(\"smick\", 4, 5, 14, 14)\n .setSpeed(10)\n .loop(false);\n this.addAnimation(\"crushing\")\n .addFrames(\"smick\", 4, 5, 16, 16)\n .setSpeed(10)\n .loop(false);\n }", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "public void run()\n {\n // Remember the starting time\n long tm = System.currentTimeMillis();\n while (Thread.currentThread() == animator)\n {\n // Display the next frame of animation.\n update();\n try\n {\n tm += delay;\n Thread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n }\n catch (InterruptedException e)\n {\n break;\n }\n // Advance the frame\n frame++;\n }\n }", "public StartAnimationHandler(SceneRenderer initRenderer) {\n // KEEP THIS FOR LATER\n renderer = initRenderer;\n }", "@Override public void onAnimationRepeat(Animator arg0) {\n\n }", "public void makeTimer(){\n\t\n\t\tframeIndex = 0;\n\t\n\t\t//Create a new interpolator\n\t\tInterpolator lint = new Interpolator();\n\t\n\t\t//interpolate between all of the key frames in the list to fill the array\n\t\tframes = lint.makeFrames(keyFrameList);\n\t\n\t\t//timer delay is set in milliseconds, so 1000/fps gives delay per frame\n\t\tint delay = 1000/fps; \n\t\n\t\n\t\tActionListener taskPerformer = new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tif(frameIndex == frames.length){ frameIndex = 0;}\n\n\t\t\t\tframes[frameIndex].display();\n\t\t\t\tframes[frameIndex].clearDisplay();\n\t\t\t\tframeIndex++;\n\t\t\t}\n\t\t};\n\n\t\ttimer = new Timer(delay, taskPerformer);\t\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "@Test\n public void testAddShape() {\n // add the \"R\" & \"C\" shapes to the animation\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\", testAnimation.toString());\n }", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "@Override\n protected void animateWalking() {\n if (seqIdx > 7) {\n seqIdx = 0;\n }\n if (walking) {\n this.setImage(\"images/bat/bat_\" + seqIdx + FILE_SUFFIX);\n } else {\n this.setImage(\"images/bat/bat_0.png\");\n }\n seqIdx++;\n }", "public abstract void animationReelFinished();", "@Override\n public void onAnimationStart(Animator animation) {\n }", "@Test\n public void testEverything() {\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0);\n move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0);\n move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0);\n\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n\n colorChange1 = new ChangeColor(c, 0, 0, 1, 0, 1, 0);\n\n testAnimation.addEvent(r, move1, 10, 50);\n testAnimation.addEvent(c, move2, 20, 70);\n testAnimation.addEvent(c, colorChange1, 50, 80);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, move3, 70, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R moves from (200.0,200.0) to (300.0,300.0) from time t=10 to t=50\\n\"\n + \"C moves from (500.0,100.0) to (500.0,400.0) from time t=20 to t=70\\n\"\n + \"C changes color from (0,0,1) to (0,1,0) from time t=50 to t=80\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR moves from (300.0,300.0) to (200.0,200.0) from time\"\n + \" t=70 to t=100\\n\",\n testAnimation.toString());\n }", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void run() {\n AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();\n frameAnimation.stop();\n }", "public void run() {\t\t\r\n\t\tif(this.stopped) {\r\n\t\t\tthis.animationFigure.showBusy(false);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(this.state==null || this.state.getState() == State.UNBLOCKED) {\r\n\t\t\tthis.finished=true;\r\n\t\t this.animationFigure.showBusy(false);\r\n\t\t\t//notify Listeners and tell them that animation finished. This listeners are user defined listeners which will be informed.\r\n\t\t\tanimationFigure.notifyAnimationListener(new AnimationFinishedEvent(animationFigure, AnimationFinishedEvent.BUSY_FINISHED));\r\n\t\t\t//notify observers, here the observer which listens if animation is finished. this Observer looks into the animationqueue \r\n\t\t\t//after each finished \r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers(this.animationFigure);\r\n\t\t\t\r\n\t\t\t// notify waiting threads\r\n\t\t\tsynchronized (this) {\r\n\t\t\t\tthis.notifyAll();\r\n\t\t\t}\r\n\t\t return;\r\n\t\t}\r\n\t\tif (counter >= 5) {\r\n\t\t\tcounter = 0;\r\n\t\t\tthis.animationFigure.showBusy(!this.animationFigure.isShowBusy());\r\n\t\t}\r\n\t\tcounter++;\r\n\t\tmap.getDisplay().timerExec(100, this);\t\t\t\r\n\t}", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "public void setUpAnimations(){\n //Vertical movement animation\n this.verticalMovement = new Animation[NUMBER_OF_VERTICAL_FRAMES]; //Number of images\n TextureRegion[][] heroVerticalSpriteSheet = TextureRegion.split(new Texture(\"img/hero/hero_vertical.png\"), HERO_WIDTH_PIXEL, HERO_HEIGHT_PIXEL); //TODO: Load atlas?\n\n for(int i = 0; i < NUMBER_OF_VERTICAL_FRAMES; i++)\n verticalMovement[i] = new Animation(ANIMATION_SPEED, heroVerticalSpriteSheet[0][i]); //TODO HANDLE EXCEPTION?\n\n //Jump animation\n this.jumpMovement = new Animation[NUMBER_OF_JUMP_FRAMES];\n TextureRegion[][] heroJumpSpriteSheet = TextureRegion.split(new Texture(\"img/hero/hero_jump.png\"), HERO_WIDTH_PIXEL, HERO_HEIGHT_PIXEL); //TODO: Load atlas?\n\n for(int i = 0; i < NUMBER_OF_JUMP_FRAMES; i++)\n jumpMovement[i] = new Animation(ANIMATION_SPEED, heroJumpSpriteSheet[0][i]); //TODO HANDLE EXCEPTION?\n\n }", "@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }", "public static void main(String[] args) throws IOException {\n AnimationModel model;\n IView view = null;\n Readable file;\n Appendable output;\n\n\n HashMap<String, String> cla = argsToHM(args);\n\n if (checkValidArgs(cla)) {\n showError(\"Invalid command line args\");\n return;\n }\n\n try {\n file = new FileReader(setFile(cla));\n } catch (FileNotFoundException e) {\n showError(\"File not found\");\n return;\n }\n\n\n model = AnimationReader.parseFile(file,\n new AnimationModelImpl.Builder(\n new AnimationModelImpl()));\n\n\n switch (cla.get(\"-view\")) {\n case \"text\":\n output = System.out;\n view = new TextRepresentation(\n model.getShapes(),\n model.getMaxX(),\n model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n view.createAnimOutput();\n output.append(view.getOutput().toString());\n return;\n\n case \"svg\":\n try {\n File f = new File(cla.get(\"-out\"));\n FileWriter fw = new FileWriter(f);\n BufferedWriter bw = new BufferedWriter(fw);\n view = new SVGRepresentation(model.getShapes(),\n model.getWidth(),\n model.getHeight(),\n Integer.valueOf(cla.get(\"-speed\")));\n view.createAnimOutput();\n System.out.println(view.getOutput().toString());\n bw.append(view.getOutput().toString());\n bw.close();\n return;\n }\n catch (IOException e) {\n showError(\"File unable to be written\");\n }\n break;\n\n case \"visual\":\n IView visPanel = new AnimationPanelView(model.getShapes(),\n Integer.valueOf(cla.get(\"-speed\")));\n\n view = new AnimationGraphicsView(visPanel, model.getMaxX(), model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n break;\n\n case \"edit\":\n AnimationPanelView editPanel = new EditorView(model.getShapes(),\n Integer.valueOf(cla.get(\"-speed\")), true);\n view = new AnimationGraphicsView(editPanel, model.getMaxX(), model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n break;\n default:\n showError(\"unrecognized/incorrect animation type specified\");\n break;\n }\n\n ExcellenceController controller = new ExcellenceController(model, view);\n controller.makeVisible();\n }", "protected AnimationSuite() {\n loop = false;\n started = false;\n finished = false;\n doReset = false;\n setStopAfterMilliseconds(-1);\n }", "public void startAnimation() {\n timer.start();\n }", "public void createTimer() {\n timer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if (animal.changeScore()) {\n setNumber(animal.getPoints());\n }\n if (animal.getStop()) {\n System.out.println(\"Game Ended\");\n background.stopMusic();\n stop();\n background.stop();\n\n ArrayList list = null;\n try {\n list = scoreFile.sortFile(animal.getPoints());\n } catch (IOException e) {\n e.printStackTrace();\n }\n popUp(list);\n }\n }\n };\n }", "public static void main(String[] args) {\r\n double xStart = Double.parseDouble(args[0]);\r\n double yStart = Double.parseDouble(args[1]);\r\n double dx = Double.parseDouble(args[2]);\r\n double dy = Double.parseDouble(args[3]);\r\n drawAnimation(new Point(xStart, yStart), dx, dy);\r\n //drawAnimation(new Point(200,200),3,4);\r\n }", "@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n\n //Animation loop.\n while (Thread.currentThread() == animatorThread) {\n //Advance the animation frame.\n frameNumber++;\n repaint();\n //Delay depending on how far we are behind.\n try {\n startTime += delay;\n Thread.sleep(Math.max(0,\n startTime - System.currentTimeMillis()));\n } catch (InterruptedException e) {\n break;\n }\n }\n }", "@Override\n public Sprite createSprite(MyCumulusGame game) {\n walkingAnimation = createWalkingAnimation(game);\n jumpingAnimation = createJumpingAnimation(game);\n\n return new Sprite(jumpingAnimation);\n }", "public AnimationHook animate() {\n return animation.start();\n }", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "@Override\n public void animate() {\n }", "public Animation() {\n\t\tthis(new ArrayList());\n\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "public TowerAnimation buildAnimation(StackPane root, int row, int col) {\r\n\t\tString mode = \"_attack\";\r\n\t\tthis.animation = new TowerAnimation(root, row, this.speed, mode, this.type, this.frames, col, this.weaponFrames);\r\n\t\tthis.animation.start();\r\n\t\tthis.animation.getAnimation().setRate(this.speed);\r\n\t\treturn this.animation;\r\n\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "private void setupWindowsAnimations() {\n }", "private void runAnimation() {\n if (footage == null) {\n System.out.println(\"Load the footage first\");\n } else {\n Runnable animationToRun = () -> {\n\n Background yellowBg = new Background(new BackgroundFill(Color.YELLOW, CornerRadii.EMPTY, Insets.EMPTY));\n Background blackBg = new Background(new BackgroundFill(Color.BLACK, CornerRadii.EMPTY, Insets.EMPTY));\n Background blueBg = new Background(new BackgroundFill(Color.BLUE, CornerRadii.EMPTY, Insets.EMPTY));\n Background whiteBg = new Background(new BackgroundFill(Color.WHITE, CornerRadii.EMPTY, Insets.EMPTY));\n\n doRun = true;\n int numFrames = footage.getNumFrames();\n int currentFrameIndex = 0;\n Background bck = null;\n while (doRun) {\n if (currentFrameIndex >= numFrames - 1) currentFrameIndex = 0;\n IFrame currentFrame = footage.getFrame(currentFrameIndex);\n // Iterate through the current frame displaying appropriate colour\n for (int row = 0; row < footage.getNumRows(); row++) {\n for (int col = 0; col < footage.getNumRows(); col++) {\n switch (currentFrame.getChar(row, col)) {\n case 'l':\n bck = yellowBg;\n break;\n case 'r':\n bck = blackBg;\n break;\n case 'b':\n bck = blueBg;\n break;\n default:\n bck = whiteBg;\n }\n final int theRow = row;\n final int theCol = col;\n final Background backgroundColour = bck;\n // This is another lambda callback. When the Platform\n // GUI thread is ready it will run this code.\n Platform.runLater(() -> {\n\n // Update UI here\n // We have to make this request on a queue that the GUI thread\n // will run when ready.\n gridArray[theRow][theCol].setBackground(backgroundColour);\n });\n\n }\n }\n try {\n // This is how we delay for 200th of a second\n Thread.sleep(200);\n } catch (InterruptedException e) {\n }\n currentFrameIndex++;\n }\n };\n animation = new Thread(animationToRun);\n animation.start();\n }\n }", "@Before\n public void testFixture() {\n rectangle = new Rectangle(\"r\", 3, 4, 0, 1, 0,1,new Color(255,0,0));\n colorChangeAnimation = new AnimationColorChange(rectangle, 0, 10,\n new Color(1,1,1));\n }", "public void onAnimationRepeat(Animator paramAnonymousAnimator) {}", "@Override\n public Sprite createSprite(DeathmatchMania game) {\n Animation = createAnimation(game);\n return new Sprite(Animation.getKeyFrame(0, true));\n }", "synchronized void run() {\n \n // add pending animations\n animations.addAll(addedAnims);\n addedAnims.clear();\n \n if (numberOfFrames == timeMeasureInterval) {\n startTime = System.nanoTime();\n TOL = 1.0 / getFps();\n }\n \n if (animations.size() > 0) {\n \n ArrayList<AnimationBase> delList = new ArrayList<AnimationBase>();\n \n try {\n \n for (AnimationBase a : animations) {\n \n if (a.deletionRequested()) {\n delList.add(a);\n } else {\n a.run();\n }\n \n if (a.getTime() == 1.0) {\n \n boolean deleteAnimation = a.deleteAfterExecution()\n && (a.getRepeats() >= a.getNumberOfRepeats());\n \n if (deleteAnimation) {\n delList.add(a);\n } else {\n a.reset();\n }\n }\n }\n \n for (AnimationBase a : delList) {\n removeAnimation(a);\n a.reset();\n // System.out.println(\"DEL Anim: \" + a.getClass().getName());\n }\n \n } catch (java.util.ConcurrentModificationException ex) {\n // we ignore this as the worst that can happen are unomportant\n // visual inconsistencies\n ex.printStackTrace(System.err);\n }\n \n } else {\n if (repaintThread != null) {\n repaintThread.stop();\n }\n }\n \n if (oldTime != 0 && numberOfFrames == timeMeasureInterval) {\n long diff = (startTime - oldTime) / timeMeasureInterval;\n if (diff == 0) {\n setFps(30);\n } else {\n setFps((long) 1e9 / diff);\n }\n }\n \n // don't allow 0 fps\n if (Math.abs(getFps()) < TOL){\n setFps(30);\n numberOfFrames = 0; // retrigger fps measurement\n }\n \n // System.out.println(\">> AnimationManager: Frame: \" +\n // numberOfFrames + \" FPS=\" +\n // getFps());\n \n if (isShowFPS()) {\n System.out.println(\">> AnimationManager: FPS=\" + getFps());\n }\n if (numberOfFrames == timeMeasureInterval) {\n oldTime = startTime;\n numberOfFrames = 0;\n }\n numberOfFrames++;\n }", "public Ju(){\n\t\tsuper(STARTING_X, STARTING_Y);\n\t\tsetIsJumping(true);\n\t\tdy = STARTING_DY;\n\t\tjumpHeight = INITIAL_JUMP_HEIGHT;\n\t\thealth = STARTING_LIFE;\n\t\tisStageComplete = false;\n\t\tpoint = 0;\n\t\t//A Sound obj\n\t\t\n\t\t//LOAD THE IMAGES AND CREATE ANIMATION. #check\n\t\tBufferedImage[] rightImages = {ImageManipulator.loadImage(\"Data/Ju/stillRight.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight3.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight4.png\"), ImageManipulator.loadImage(\"Data/Ju/stillJumpRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stillJumpRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runningJumpRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runningJumpRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runningJumpRight3.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stillSitRight.png\"), ImageManipulator.loadImage(\"Data/Ju/stillUpRight.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/deadRight1.png\"), ImageManipulator.loadImage(\"Data/Ju/deadRight2.png\"), \n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/deadRight3.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight5.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight6.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight7.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight8.png\"), ImageManipulator.loadImage(\"Data/Ju/runRightNew.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin1.png\"), ImageManipulator.loadImage(\"Data/Ju/stageWin2.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin3.png\"), ImageManipulator.loadImage(\"Data/Ju/stageWin4.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin5.png\")};\n\t\t//0 == still right\n\t\t//1-4 == walk & run right\n\t\t//5-6 == still jump right\n\t\t//7-9 == running jump right\n\t\t//10 == sit right\n\t\t//11 == still up right\n\t\t//12-14 == dead right\n\t\t//15-16 17 18 == walk & run right new\n\t\t// 19-20 == walk right new\n\t\t//21-24 == win\n\t\tBufferedImage[] leftImages = {null, null, null, null, null, null, null, null, null,\n\t\t\t\tnull, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null};\n\t\tfor(int i=0; i<rightImages.length; i++){\n\t\t\tleftImages[i] = ImageManipulator.horizontalFlip(rightImages[i]);\n\t\t}\n\t\t\n\t\tstillLeft = new Animation(ANIM_TIME).addFrame(leftImages[0]);\n\t\twalkLeft = new Animation(ANIM_TIME+30).addFrame(leftImages[1]).addFrame(leftImages[4]).addFrame(leftImages[15]).addFrame(leftImages[19]).addFrame(leftImages[18]);\n\t\trunLeft = new Animation(ANIM_TIME).addFrame(leftImages[1]).addFrame(leftImages[2]).addFrame(leftImages[3]).addFrame(leftImages[4]).addFrame(leftImages[15]).addFrame(leftImages[16]).addFrame(leftImages[17]).addFrame(leftImages[18]);\n\t\tsitLeft = new Animation(ANIM_TIME).addFrame(leftImages[10]);\n\t\tstillJumpLeft = new Animation(ANIM_TIME).addFrame(leftImages[5], 300).addFrame(leftImages[6], 4000);\n\t\trunningJumpLeft = new Animation(ANIM_TIME).addFrame(leftImages[7]).addFrame(leftImages[8], 400).addFrame(leftImages[9], 4000);\n\t\tchangeLeft = new Animation(ANIM_TIME).addFrame(leftImages[1]);\n\t\tstillUpLeft = new Animation(ANIM_TIME).addFrame(leftImages[11]);\n\t\tdeadLeft = new Animation(ANIM_TIME-30).addFrame(leftImages[12], 500).addFrame(leftImages[13]).addFrame(leftImages[14], 3000);\n\t\t\n\t\tstillRight = new Animation(ANIM_TIME).addFrame(rightImages[0]);\n\t\twalkRight = new Animation(ANIM_TIME+30).addFrame(rightImages[1]).addFrame(rightImages[4]).addFrame(rightImages[15]).addFrame(rightImages[19]).addFrame(rightImages[18]);\n\t\trunRight = new Animation(ANIM_TIME).addFrame(rightImages[1]).addFrame(rightImages[2]).addFrame(rightImages[3]).addFrame(rightImages[4]).addFrame(rightImages[15]).addFrame(rightImages[16]).addFrame(rightImages[17]).addFrame(rightImages[18]);\n\t\tsitRight = new Animation(ANIM_TIME).addFrame(rightImages[10]);\n\t\tstillJumpRight = new Animation(ANIM_TIME).addFrame(rightImages[5], 300).addFrame(rightImages[6], 4000);\n\t\trunningJumpRight = new Animation(ANIM_TIME).addFrame(rightImages[7]).addFrame(rightImages[8], 400).addFrame(rightImages[9], 4000);\n\t\tchangeRight = new Animation(ANIM_TIME).addFrame(rightImages[1]);\n\t\tstillUpRight = new Animation(ANIM_TIME).addFrame(rightImages[11]);\n\t\tdeadRight = new Animation(ANIM_TIME-60).addFrame(rightImages[12], 500).addFrame(rightImages[13]).addFrame(rightImages[14], 3000);\n\t\t\n\t\tstageWin = new Animation(ANIM_TIME+60).addFrame(rightImages[0]).addFrame(rightImages[20]).addFrame(rightImages[21]).addFrame(rightImages[22]).addFrame(rightImages[23]).addFrame(rightImages[24]);\n\t\t\n\t\tsetAnimation(stillRight);\n\t\tcurrLeftAnim = walkLeft;\n\t\tcurrRightAnim = walkRight;\n\t}", "public static void main(String[] args) {\n boolean hasI = false;\n boolean hasV = false;\n String in = \"\";\n String view = \"\";\n int speed = 1;\n\n if (Arrays.asList(args).contains(\"-view\")) {\n int ind = Arrays.asList(args).indexOf(\"-view\") + 1;\n view = Arrays.asList(args).get(ind++);\n hasV = true;\n }\n\n if (Arrays.asList(args).contains(\"-in\")) {\n int ind = Arrays.asList(args).indexOf(\"-in\") + 1;\n in = Arrays.asList(args).get(ind++);\n hasI = true;\n }\n if (!(hasV && hasI)) {\n throw new IllegalArgumentException(\"Must input an in and a view type\");\n }\n\n // Instantiate the correct view & set FileReader object\n ViewFactory factory = new ViewFactory();\n IView v = factory.getView(view);\n\n AnimationBuilder<AnimationModelImpl> builder = AnimationModelImpl.builder();\n Readable rn = null;\n try {\n rn = new FileReader(in);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Parse animation input file\n AnimationReader.parseFile(rn, builder);\n AnimationModel model = builder.build();\n if (Arrays.asList(args).contains(\"-out\")) {\n int ind = Arrays.asList(args).indexOf(\"-out\") + 1;\n String out = Arrays.asList(args).get(ind++);\n Appendable ap = null;\n try {\n ap = new FileWriter(out);\n } catch (IOException e) {\n e.printStackTrace();\n }\n v.setOutput(ap);\n }\n\n if (Arrays.asList(args).contains(\"-speed\")) {\n int speedIndex = Arrays.asList(args).indexOf(\"-speed\") + 1;\n speed = Integer.parseInt(Arrays.asList(args).get(speedIndex));\n }\n v.setSpeed(speed);\n IController controller = new Controller(model, v);\n if (v instanceof VisualAnimationView || v instanceof EditorView) {\n controller.playAnimation();\n }\n if (v.getOut() instanceof FileWriter) {\n try {\n ((FileWriter) v.getOut()).close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n public void onAnimationRepeat(Animator arg0) {\n\n }", "@Override\n public void run() {\n MaterialAnimator.animate(Transition.ZOOMOUT, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.HIDDEN);\n btnFAB.setOpacity(0);\n\n // Setting the visibility of the music panel\n musicPanel.setVisibility(Style.Visibility.VISIBLE);\n musicPanel.setOpacity(1);\n\n // Setting the music label with Bounce up animation\n lblMusic.setText(\"Pharell Williams / Love Yourself to Dance\");\n MaterialAnimator.animate(Transition.BOUNCEINUP, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"http://thatgrapejuice.net/wp-content/uploads/2013/08/pharrell-williams-that-grape-juice.png\");\n }", "public Builder with(Animator anim) {\n/* 377 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public A(){ \n super();\n AtrEA = new GreenfootImage(\"AtrEA.png\");\n DerEA1 = new GreenfootImage(\"DerEA1.png\");\n DerEA2 = new GreenfootImage(\"DerEA2.png\");\n DerEA3 = new GreenfootImage(\"DerEA3.png\");\n FrtEA1 = new GreenfootImage(\"FrtEA1.png\");\n FrtEA2 = new GreenfootImage(\"FrtEA2.png\");\n FrtEA3 = new GreenfootImage(\"FrtEA3.png\");\n IzqEA1 = new GreenfootImage(\"IzqEA1.png\");\n IzqEA2 = new GreenfootImage(\"IzqEA2.png\");\n IzqEA3 = new GreenfootImage(\"IzqEA3.png\"); \n animationE = 0;\n start = 1; \n }", "private void constructAnimationPanel() {\n animationPanel = new EAPanel(model);\n animationPanel.setLayout(new FlowLayout());\n animationPanel.setPreferredSize(new Dimension(model.getWidth(), model.getHeight()));\n mainPanel.add(animationPanel);\n }" ]
[ "0.67972", "0.6403675", "0.60575503", "0.6051037", "0.6010104", "0.59664696", "0.59279644", "0.59196246", "0.58821756", "0.5859794", "0.5857459", "0.57864755", "0.57316136", "0.57259", "0.5723621", "0.57193947", "0.57176137", "0.5710394", "0.5702426", "0.56839395", "0.5668738", "0.5660772", "0.5627465", "0.56241906", "0.5622969", "0.5609518", "0.560916", "0.560884", "0.5591791", "0.5588739", "0.5586987", "0.5573078", "0.5572649", "0.55714816", "0.55689174", "0.55618215", "0.5557773", "0.55522156", "0.5550943", "0.55457246", "0.5541423", "0.5536236", "0.55353063", "0.5531325", "0.5521915", "0.55207413", "0.55152386", "0.5513715", "0.55126506", "0.5511901", "0.5511901", "0.55083287", "0.55083287", "0.55029064", "0.5490621", "0.54894286", "0.54847944", "0.54809356", "0.54763025", "0.54749995", "0.54744256", "0.5469509", "0.5468926", "0.54597723", "0.54570293", "0.54570293", "0.54570293", "0.54570293", "0.544592", "0.54407185", "0.5429715", "0.5423493", "0.5420765", "0.5413127", "0.5408482", "0.54065514", "0.54026717", "0.5392603", "0.53788626", "0.5376421", "0.5373324", "0.53725874", "0.53717595", "0.53709704", "0.53688705", "0.5362374", "0.5362374", "0.5359224", "0.5355714", "0.5352302", "0.535052", "0.5346536", "0.5328482", "0.5324521", "0.5319798", "0.53195", "0.53175294", "0.53153217", "0.53150165", "0.5302668" ]
0.55790085
31
Randomly change the delay between frames of the animation
private void changeDelay() { delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void randomDelay() {\n\n Random random = new Random();\n int delay = 500 + random.nextInt(2000);\n try {\n sleep(delay);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void animate() throws InterruptedException {\n for (int x = 0; x < repeat; x++) {\n for (int i = 0; i < MAX_FRAMES; i++) {\n nextFrame();\n pause();\n }\n changeDelay();\n }\n }", "public abstract void animation(double seconds);", "public GIFMaker withDelay(int delay);", "public void setDelay(double clock);", "public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }", "public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void idleAnimation(){\n timer++;\n if( timer > 4 ){\n setImage(loadTexture());\n animIndex++;\n timer= 0;\n if(animIndex > maxAnimIndex ){\n animIndex = 0;\n }\n }\n }", "public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}", "void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }", "public native void setDelay(int delay) throws MagickException;", "protected void setAnimation(BufferedImage[] sprites, int delay) {\r\n animation.setFrames(sprites);\r\n animation.setDelay(delay);\r\n }", "public void makeTimer(){\n\t\n\t\tframeIndex = 0;\n\t\n\t\t//Create a new interpolator\n\t\tInterpolator lint = new Interpolator();\n\t\n\t\t//interpolate between all of the key frames in the list to fill the array\n\t\tframes = lint.makeFrames(keyFrameList);\n\t\n\t\t//timer delay is set in milliseconds, so 1000/fps gives delay per frame\n\t\tint delay = 1000/fps; \n\t\n\t\n\t\tActionListener taskPerformer = new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tif(frameIndex == frames.length){ frameIndex = 0;}\n\n\t\t\t\tframes[frameIndex].display();\n\t\t\t\tframes[frameIndex].clearDisplay();\n\t\t\t\tframeIndex++;\n\t\t\t}\n\t\t};\n\n\t\ttimer = new Timer(delay, taskPerformer);\t\n\t}", "public void animateMovementDown()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (downMvt.length);\n setImage(downMvt[imageNumber]);\n } \n }", "public void setAnimationFrameTime(int milis) {\r\n animationFrameTime = milis; \r\n timer = new Timer(animationFrameTime, this);\r\n }", "protected abstract float getFrameTimeNormalAnimation();", "public void run() {\n\t// Remember the starting time\n\tlong tm = System.currentTimeMillis();\n\twhile (Thread.currentThread() == animator) {\n\t // Display the next frame of animation.\n\t repaint();\n\n\t // Delay depending on how far we are behind.\n\t try {\n\t\ttm += delay;\n\t\tThread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n\t } catch (InterruptedException e) {\n\t\tbreak;\n\t }\n\n\t // Advance the frame\n\t frame++;\n\t}\n }", "void reset(){ \n cueX= width/2 -150;\n cueY= height/2;\n \n \n redX = random(right , middle); redY = random(top, bottom);\n bluX = random(left, middle); bluY= random(top, bottom);\n yelX = random(left, right); yelY= random(top, bottom);\n \n //speed\n redDX = random(1,3); redDY = random(1,3);\n bluDX = random(1,3); bluDY = random(1,3);\n yelDX = random(1,3); yelDY = random(1,3);\n cueDX = random(1,3); cueDY = random(1,3);\n}", "public void onAnimationRepeat(Animation animation) {\n }", "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n\n //Animation loop.\n while (Thread.currentThread() == animatorThread) {\n //Advance the animation frame.\n frameNumber++;\n repaint();\n //Delay depending on how far we are behind.\n try {\n startTime += delay;\n Thread.sleep(Math.max(0,\n startTime - System.currentTimeMillis()));\n } catch (InterruptedException e) {\n break;\n }\n }\n }", "public void delay(int scale) {\n \ttry {\n \t\tsleep((int)(Math.random()*scale));\n \t} catch (InterruptedException e) { }\n }", "private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }", "protected abstract void animate(int anim);", "T setSequencedAnimation(Boolean sequencedAnimation);", "private void delay() {\n\t\tDelay.msDelay(1000);\n\t}", "private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}", "@Override\n public void setup(){\n frameRate(60);\n noStroke();\n }", "public static int getDelay() {\n\t\treturn ANIMATION_DELAY;\n\t}", "public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}", "public void setAnimationDelay(int animationDelay) {\n\t\tmAnimationDelay = animationDelay;\n\t}", "private void setAnimation(View viewToAnimate, int position) {\n if (position > lastPosition) {\n ScaleAnimation anim = new ScaleAnimation(0.0f, 1.0f, 0.0f, 1.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);\n anim.setDuration(new Random().nextInt(501));//to make duration random number between [0,501)\n viewToAnimate.startAnimation(anim);\n lastPosition = position;\n }\n }", "private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}", "@Override\n public void onAnimationRepeat(Animation arg0) {\n \n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "public void run()\n {\n // Remember the starting time\n long tm = System.currentTimeMillis();\n while (Thread.currentThread() == animator)\n {\n // Display the next frame of animation.\n update();\n try\n {\n tm += delay;\n Thread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n }\n catch (InterruptedException e)\n {\n break;\n }\n // Advance the frame\n frame++;\n }\n }", "private void createAnimation () {\n // KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY), e -> myManager.step());\n // myAnimation = new Timeline();\n // myAnimation.setCycleCount(Timeline.INDEFINITE);\n // myAnimation.getKeyFrames().add(frame);\n }", "@Override\n\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\n\t\t}", "@Override public void onAnimationRepeat(Animator arg0) {\n\n }", "public void onAnimationRepeat(Animation animation) {\n\r\n }", "@Override\r\n public void onAnimationRepeat(Animator arg0)// 动画重复\r\n {\n\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "public void tick() {\n long elapsed = (System.nanoTime()-startTime)/1000000;\n\n if(elapsed>delay) {\n currentFrame++;\n startTime = System.nanoTime();\n }\n if(currentFrame == images.length){\n currentFrame = 0;\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler3.sendMessage(handler3.obtainMessage());\n\t\t\t\t}", "void advance(int tickCount) {\n if (tickCount % 2 == 0) { // slow the animation down a little\n mySequenceIndex++;\n mySequenceIndex %= 4;\n setAnimatedTile(myAnimatedTileIndex,\n FRAME_SEQUENCE[mySequenceIndex]);\n }\n }", "@Override\n\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\n\t\t}", "@Override\n public void onAnimationRepeat(Animator animation) {\n }", "public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "public MovingRunner(int x, int y, int repeat, JComponent component) {\n super(x, y);\n this.repeat = repeat;\n this.component = component;\n delay = ((int) (Math.random() * 2000) + 1000) / MAX_FRAMES;\n }", "@Override\r\n\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t\t}", "@Override\n\tpublic void draw() {\n\t\tfloat delta = Gdx.graphics.getDeltaTime();\n\t\ti+= delta;\n\t\timage.setRegion(animation.getKeyFrame(i, true));\n\t\t//this.getSpriteBatch().draw(animation.getKeyFrame(i, true), 0, 0);\n\t\t\n\t\tGdx.app.log(\"tag\", \"delta = \" + i);\n\t\t\n\t\tsuper.draw();\n\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "public void mo5964b() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{0.0f, 0.3f, 0.5f, 0.7f, 0.9f, 1.0f}).setDuration(j).start();\n this.f5438qa.getMeasuredHeight();\n this.f5384D.getmImageViewHeight();\n C1413m.m6828a(27, this.f5389I);\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n this.f5384D.getmImageView().setImageResource(R.drawable.iqoo_buttonanimation);\n this.f5393M = (AnimationDrawable) this.f5384D.getmImageView().getDrawable();\n this.f5393M.start();\n duration.addListener(new C1300Wa(this));\n }", "public void changeSpeed() {\n Random gen = new Random();\n speedX += gen.nextInt(3);\n speedY += gen.nextInt(3);\n }", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public AnimatedTexture(Texture t,int delay){\n\t\tthis.textures.add(t);\n\t\tthis.t=0;\n\t\tthis.delay = delay;\n\t\tthis.thread.start();\n\t}", "@Override\n\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "public void randomMove() {\r\n\t\tRandom rand = new Random();\r\n\t\tint moveNum = rand.nextInt(100)+100;\r\n\t\tcheck++;\r\n\t\tif(check >= moveNum) {\r\n\t\t\tspeed = speed*-1;\r\n\t\t\tcheck =0;\r\n\r\n\t\t}\r\n\r\n\t\tif(speed > 0) {\r\n\t\t\tsetIcon(rightImage);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetIcon(leftImage);\r\n\t\t}\r\n\t\tx += speed; setLocation(x,y); repaint();\r\n\t}", "public void anim() {\n // start the timer\n t.start();\n }", "private void animationSpeedLeft() \n {\n if(animationCounter % 4 == 0){\n animateLeft();\n }\n }", "@Override\r\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}", "public double getDelay();", "@Override\n public void onAnimationRepeat(Animator animation) {\n\n }", "public void setDelayMove(float delay_)\n\t{\n\t\tdelayMove=delayMove+delay_;\n\t}", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t}", "private void simulateDelay(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException ignored) {\n }\n }", "private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n\tpublic void onAnimationRepeat(Animation animation) {\n\n\t}", "public void setDelay(long d){delay = d;}", "public void setDelay(float time)\n\t{\n\t\tdelayMax=time;\n\t}", "private static void delay(int amount, int gameSize) {\n \n try {\n \n Thread.sleep(amount*3/(gameSize*gameSize));\n \n } catch(InterruptedException ex) {\n \n Thread.currentThread().interrupt();\n }\n }" ]
[ "0.6922207", "0.6669656", "0.655496", "0.6485069", "0.6471692", "0.6377466", "0.6360223", "0.62896496", "0.6273243", "0.61639225", "0.61207485", "0.60967094", "0.6069912", "0.60673785", "0.60671026", "0.6058043", "0.6027237", "0.60209227", "0.60180825", "0.6013373", "0.60057193", "0.59729767", "0.5965426", "0.5947404", "0.59327435", "0.5932682", "0.5924422", "0.5915155", "0.5914031", "0.59090066", "0.58927566", "0.5880529", "0.5872806", "0.58727765", "0.5872311", "0.5872311", "0.5872311", "0.5872311", "0.587016", "0.58585", "0.5852098", "0.5852098", "0.58480465", "0.5844499", "0.58403283", "0.5834375", "0.5834375", "0.5831421", "0.5824245", "0.5823998", "0.5818763", "0.5815348", "0.5814579", "0.5814579", "0.5813889", "0.5813136", "0.58044595", "0.580377", "0.5802896", "0.5802649", "0.5802649", "0.5802649", "0.5802649", "0.5799071", "0.5798393", "0.5798393", "0.57968634", "0.57927144", "0.5791098", "0.5791098", "0.57899415", "0.57896394", "0.57887447", "0.5787133", "0.5785565", "0.5785565", "0.5777993", "0.57776827", "0.5776799", "0.5775526", "0.57576334", "0.57576334", "0.5757276", "0.5753856", "0.5750486", "0.5750486", "0.5750486", "0.5743777", "0.57357544", "0.5716615", "0.57073385", "0.57073385", "0.5705842", "0.5705606", "0.57032627", "0.57032627", "0.5699012", "0.5698748", "0.5691737", "0.56851614" ]
0.8123467
0
Moves the object with a random delay between movements
public void animate() throws InterruptedException { for (int x = 0; x < repeat; x++) { for (int i = 0; i < MAX_FRAMES; i++) { nextFrame(); pause(); } changeDelay(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "@Override\n\tpublic void move() {\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(new Random().nextInt(5));\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Tank moving...\");\n\t}", "private void randomMove() {\n }", "private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }", "@Override\n public final void move() {\n int x = getPosisi().getX();\n int y = getPosisi().getY();\n int dx = 0, dy = 0;\n\n if (getWaktu() % getDeltaTime() == 0) {\n do {\n do {\n Random randomGenerator = new Random();\n dx = randomGenerator.nextInt(N_RAND) - 1;\n dy = randomGenerator.nextInt(N_RAND) - 1;\n } while (dx == 0 && dy == 0);\n } while (x + dx < 0 || x + dx > getWorldSize() - 1\n || y + dy < 0 || y + dy > getWorldSize() - 1);\n }\n setPX(x + dx);\n setPY(y + dy);\n }", "public void randomWalk() {\n if (getX() % GameUtility.GameUtility.TILE_SIZE < 5 && getY() % GameUtility.GameUtility.TILE_SIZE < 5) {\n if (canChangeDirection) {\n direction = (int) (Math.random() * 3);\n direction += 1;\n direction *= 3;\n canChangeDirection = false;\n }\n }\n move(direction);\n if (timer >= timeTillChanngeDirection) {\n canChangeDirection = true;\n timer = 0;\n }\n\n if (lastLocation.x == this.getLocation().x && lastLocation.y == this.getLocation().y) {\n direction = (direction + 3) % 15;\n canChangeDirection = false;\n\n }\n lastLocation = this.getLocation();\n\n }", "public void setDelayMove(float delay_)\n\t{\n\t\tdelayMove=delayMove+delay_;\n\t}", "void move()\n {\n Random rand = new Random();\n int moveOrNot = rand.nextInt(2);//50% chance\n if(moveOrNot == 1)\n super.move();\n }", "public void makeRandomMove() {\n\t\ttry{\r\n\t\t\tif (playerId == game.getState().getTurn()){\r\n\t\t\t\tgame.execute(randPlayer.requestAction(game.getState()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e){\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "@Override\r\n\tpublic void makeRandonMove() {\r\n\t\tif (randPlayer.getPlayerNumber() == game.getState().getTurn() && !game.getState().isFinished()) game.execute(randPlayer.requestAction(game.getState()));\r\n\t}", "public void move(float deltaTime) {\n }", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void move() {\n health -= 2; //health decrement\n age++; //age increment\n if (yPos > 300) {\n speed += 3;\n }\n boolean canMove = false;\n int distancex = (int) (Math.random() * speed);\n int distancey = (int) (Math.random() * speed);\n int counterx = r.nextInt(2);\n int countery = r.nextInt(2);\n while (!canMove) {\n distancex = (int) (Math.random() * speed);\n distancey = (int) (Math.random() * speed);\n counterx = r.nextInt(2);\n countery = r.nextInt(2);\n if (counterx == 0 && this.xPos - distancex > 0\n && countery == 0 && this.yPos - distancey > 0) {\n canMove = true;\n } else if (counterx == 1 && this.xPos + distancex < 510\n && countery == 1 && this.yPos + distancey < 530) {\n canMove = true;\n }\n }\n if (counterx == 0 && countery == 0) {\n xPos -= distancex;\n yPos -= distancey;\n } else if (counterx == 0 && countery == 1) {\n xPos -= distancex;\n yPos += distancey;\n } else if (counterx == 1 && countery == 0) {\n xPos += distancex;\n yPos -= distancey;\n } else if (counterx == 1 && countery == 1) {\n xPos += distancex;\n yPos += distancey;\n }\n }", "void move( float deltaTime, Body body );", "private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void randomMove() {\r\n\t\tRandom rand = new Random();\r\n\t\tint moveNum = rand.nextInt(100)+100;\r\n\t\tcheck++;\r\n\t\tif(check >= moveNum) {\r\n\t\t\tspeed = speed*-1;\r\n\t\t\tcheck =0;\r\n\r\n\t\t}\r\n\r\n\t\tif(speed > 0) {\r\n\t\t\tsetIcon(rightImage);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetIcon(leftImage);\r\n\t\t}\r\n\t\tx += speed; setLocation(x,y); repaint();\r\n\t}", "private void random() {\n GameState gs = cc.getGameState();\n ArrayList<int[]> moves = cc.getPlayerMoves(player);\n ArrayList<GameState> states = nextStates(moves, gs);\n for (int[] m : moves) {\n GameState next = checkMove(m, cc);\n states.add(next);\n }\n Random rand = new Random(System.nanoTime());\n int i = rand.nextInt(states.size());\n cc.setAIMove(states.get(i));\n }", "public void move(int delta);", "public static void randomDelay() {\n\n Random random = new Random();\n int delay = 500 + random.nextInt(2000);\n try {\n sleep(delay);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void move() {\r\n\t\tif(torretas.size() == 0){\r\n\t\t\tagregarExplosiones();\r\n\t\t}\r\n\t\tif(System.currentTimeMillis() - init > delay && !control[0])\r\n\t\t\tif(puedeMoverse()){\r\n\t\t\t\tif(random){\r\n\t\t\t\t\tint select = -1;\r\n\t\t\t\t\tboolean move = false;\r\n\t\t\t\t\twhile(!move){\r\n\t\t\t\t\t\tselect = rn.nextInt(4);\r\n\t\t\t\t\t\tif(select == 0 || select == 3){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(select == 2 && hayTorretas(x + defaultWidth/2 + 190, x+defaultWidth)){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(select == 1 && hayTorretas(x, x+defaultWidth/2 - 190)){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\r\n\t\t\t\t\tint auxX = x;\r\n\t\t\t\t\tint auxY = y;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(select == 0){\r\n\t\t\t\t\t\tmoves[0] = moves[1] = true;\r\n\t\t\t\t\t\tx = -237;\r\n\t\t\t\t\t\ty = -defaultHeight;\r\n\t\t\t\t\t\tvelocidad = 4;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 1){\r\n\t\t\t\t\t\tmoves[2] = moves[3] = true;\r\n\t\t\t\t\t\tx = 800;\r\n\t\t\t\t\t\ty = 0;\r\n\t\t\t\t\t\tvelocidad = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 2){\r\n\t\t\t\t\t\tmoves[4] = moves[5] = true;\r\n\t\t\t\t\t\tx = - defaultWidth;\r\n\t\t\t\t\t\ty = 0;\r\n\t\t\t\t\t\tvelocidad = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 3){\r\n\t\t\t\t\t\tmoves[6] = moves[7] = true;\r\n\t\t\t\t\t\tx = -237;\r\n\t\t\t\t\t\ty = 800;\r\n\t\t\t\t\t\tvelocidad = 5;\r\n\t\t\t\t\t\treproductor.addSound(alarm, false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tactualizarTorretas(x-auxX, y-auxY);\r\n\t\t\t\t\t\r\n\t\t\t\t\trandom = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de arriba a abajo\r\n\t\t\t\tif(!moves[2] && !moves[3] && !moves[4] && !moves[5] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[0] && y + defaultHeight < 500){\r\n\t\t\t\t\ty +=velocidad;\r\n\t\t\t\t\tactualizarTorretas(0, +velocidad);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[0] = false;\r\n\t\t\t\t\tif(y + defaultHeight > -100 && moves[1]){\r\n\t\t\t\t\t\ty-=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(0, -velocidad);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tmoves[1] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de derecha a izquierda\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[4] && !moves[5] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[2] && x > 250){\t\r\n\t\t\t\t\tx-=velocidad;\r\n\t\t\t\t\tactualizarTorretas(-velocidad,0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[2] = false;\r\n\t\t\t\t\tif(x < 900 && moves[3]){\r\n\t\t\t\t\t\tx+=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(velocidad,0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[3] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de izquierda a derecha\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[2] && !moves[3] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[4] && x + defaultWidth < 550){\r\n\t\t\t\t\t\r\n\t\t\t\t\tx+=velocidad;\r\n\t\t\t\t\tactualizarTorretas(velocidad,0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[4] = false;\r\n\t\t\t\t\tif(x + defaultWidth > -100 && moves[5]){\r\n\t\t\t\t\t\tx-=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(-velocidad,0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[5] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de abajo a arriba\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[2] && !moves[3] && !moves[4] && !moves[5])\r\n\t\t\t\tif(moves[6] && y > 250){\r\n\t\t\t\t\ty-=velocidad;\r\n\t\t\t\t\tactualizarTorretas(0,-velocidad);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[6] = false;\r\n\t\t\t\t\tif(y < 700 && moves[7]){\r\n\t\t\t\t\t\ty+=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(0,velocidad);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[7] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tsetMove();\r\n\t}", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "@Override\n public void move() {\n if (movementCooldown > 0) {\n movementCooldown --;\n } else {\n super.move();\n movementCooldown = MAX_MOVEMENT_COOLDOWN;\n }\n }", "public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}", "public void move(long timePassed) {\n\t\tif (x < -100) {\r\n\t\t\tthis.destroy();\r\n\t\t}\r\n\r\n\t\tsuper.move(timePassed);\r\n\t}", "public abstract void move(int elapsedTime);", "public void act() \r\n {\r\n move(5);\r\n if(isAtEdge())\r\n turn(4);\r\n if(Greenfoot.getRandomNumber(35) < 34)\r\n turn(10);\r\n if(Greenfoot.getRandomNumber(20)<5)\r\n turn(-15);\r\n }", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "public void moveRandomly(City city) {\n\n // 20 percent chance of turning\n if (Helper.nextDouble() <= .2) {\n this.changeDirection();\n }\n super.move(city, 1);\n\n }", "public void move(int distance);", "public void move()\n {\n move(WALKING_SPEED);\n }", "public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\n }", "private void randMove(Person[] array){\r\n\t\t\tlogger.info(\"randMoving starts\");\r\n\t\t\tArrayList<Integer> remaining = new ArrayList<>();\r\n\t\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\t\tremaining.add(i);\r\n\t\t\t}\r\n\t\t\tint step = 0;\r\n\t\t\tboolean isAgentArray = false;\r\n\t\t\tif(array[0] instanceof Agent) isAgentArray = true;\r\n\r\n\t\t\t//select from remaining index when remaining is not empty\r\n\t\t\twhile (step<array.length) {\r\n\t\t\t\tint index = randInt(0,remaining.size()-1);\r\n\t\t\t\tif(remaining.get(index)>=0){\r\n\t\t\t\t\t//move agents and cops here\r\n\t\t\t\t\tif(isAgentArray){\r\n\t\t\t\t\t\tif(agents[index].getJailTerm() == 0)\r\n\t\t\t\t\t\t\tagents[index].move();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse cops[index].move();\r\n\t\t\t\t\tremaining.set(index,-1);\r\n\t\t\t\t\tstep++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.info(\"randmove finished after \" + step + \"iterations.\");\r\n\t\t}", "@Override\r\n\tpublic void doTimeStep() {\n\t\tdir = Critter.getRandomInt(8);\r\n\t\t\r\n\t\tnumSteps = Critter.getRandomInt(maxStep) + 1;\r\n\t\t\r\n\t\t//go a random number of steps in that direction\r\n\t\tfor(int i = 0; i < numSteps; i++) {\r\n\t\t\twalk(dir);\r\n\t\t}\t\t\r\n\t}", "static void randomMove() {\n int directionNum; // Randomly set to 0, 1, 2, or 3 to choose direction.\n directionNum = ( int )( Math.random() * 4 );\n\n switch ( directionNum ) {\n case 0: // Move up.\n currentRow--;\n if ( currentRow < 0 )\n currentRow = ROWS - 1;\n break;\n case 1 : // Move right.\n currentColumn++;\n if ( currentColumn >= COLUMNS )\n currentColumn = 0;\n break;\n case 2 : // Move down.\n currentRow++;\n if ( currentRow >= ROWS )\n currentRow = 0;\n break;\n case 3 : // Move left.\n currentColumn--;\n if ( currentColumn < 0 )\n currentColumn = COLUMNS - 1;\n break;\n\n }\n }", "private void move()\r\n {\r\n int num = Game.random(4);\r\n String direction;\r\n if (num == 0)\r\n direction = \"north\";\r\n else if (num == 1)\r\n direction = \"east\";\r\n else if (num == 2)\r\n direction = \"south\";\r\n else //num == 3\r\n direction = \"west\";\r\n Room nextRoom = room.nextRoom(direction);\r\n if (nextRoom != null)\r\n {\r\n changeRoom(nextRoom);\r\n \r\n //Monster or Robot greets everyone was already in the room\r\n ArrayList<Person> peopleList = new ArrayList<Person>();\r\n \r\n peopleList = nextRoom.getPeople();\r\n peopleList.remove(name);\r\n \r\n String greetings =\"Hey \";\r\n for (int i=0; i<peopleList.size(); i++)\r\n \tgreetings += peopleList.get(i).getName() + \", \";\r\n\r\n if (!(peopleList.size()==0))\r\n \tsay(greetings);\r\n } \r\n \r\n }", "@Override\n\tpublic void doTimeStep() {\n\t\tint activity = Critter.getRandomInt(3);\n\t\tif(activity == 0) {\n\t\t\twalk(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(activity == 1) {\t\t\t\t\n\t\t\trun(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(this.getEnergy() >= Params.min_reproduce_energy) {\n\t\t\tCritter4 egg = new Critter4();\n\t\t\tthis.reproduce(egg,Critter.getRandomInt(8));\n\t\t}\n\t\telse {\n\t\t}\n\t}", "private MoveAction wanderRandomly() {\n\t\tint intDir = rand.nextInt(8) + 1;\n\t\tDirection direction = Direction.fromInt(intDir);\n\t\treturn moveInDirection(direction);\n\t}", "public void movimentar_dragao(int pos) {\n\t\tint check = 0;\n\t\tint counter = 0; //After 1000 tries it means that the dragon is trapped and cant move either way\n\t\twhile (check == 0 && counter < 1000) {\n\t\t\tint random = 1 + (int)(Math.random()*4);\n\t\t\tif (random == 1) {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'X' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setX_coord(dragoes[pos].getX_coord()+1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (random == 2) {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'X' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setX_coord(dragoes[pos].getX_coord()-1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (random == 3) {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'X' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setY_coord(dragoes[pos].getY_coord()-1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'X' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setY_coord(dragoes[pos].getY_coord()+1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t}", "public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }", "private void delayElevator() {\n try {\n Thread.sleep(MOVEMENT_DELAY);\n } catch (InterruptedException ex) {\n Logger.getLogger(Elevator.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "@Override\r\n\tprotected void action() {\r\n\t\tdistance = ir.getDistance();\r\n\t\ttimer = getTimer.getTimer();\r\n\t\tcolorID = color.getColorID();\r\n\t\tdirection = random.nextInt(4) + 1;\r\n\t\tDoge.message(6, \"Random: \" + Integer.toString(direction));\r\n\r\n\t\tif (colorID == Color.YELLOW) { // If sensor is on yellow, stop motor\r\n\t\t\tmotor.halt();\r\n\t\t\ttail.wagTail(4,700);\r\n\t\t\twhile (colorID == Color.YELLOW) {\r\n\t\t\t\tcolorID = color.getColorID();\r\n\t\t\t\tDelay.msDelay(500);\r\n\t\t\t}\r\n\t\t} else if (distance > 5 && distance <= 50) { //If something is in front, change direction\r\n\t\t\tif (lastTurn == 0) { \r\n\t\t\t\tmotor.rollRight();\r\n\t\t\t} else if (lastTurn == 1) {\r\n\t\t\t\tmotor.rollLeft();\r\n\t\t\t}\r\n\t\t\twhile (distance > 5 && distance <= 50 && colorID != Color.YELLOW) { // Delay to to\r\n\t\t\t\tDelay.msDelay(1000);\t\t\t\t\t\t\t\t\t\t//give some time\r\n\t\t\t\tdistance = ir.getDistance();\t\t\t\t\t\t\t\t//to turn\r\n\t\t\t\tcolorID = color.getColorID();\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tswitch (direction) { // Switch for random movement orders\r\n\t\t\tcase 1:\r\n\t\t\t\tmotor.gentleLeft(700);\r\n\t\t\t\tlastTurn = 0;\r\n\t\t\t\tDoge.message(4, \"Gentle left\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\tmotor.gentleRight(700);\r\n\t\t\t\tlastTurn = 1;\r\n\t\t\t\tDoge.message(4, \"Gentle right\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 3:\r\n\t\t\t\tmotor.sharpLeft(700);\r\n\t\t\t\tlastTurn = 0;\r\n\t\t\t\tDoge.message(4, \"Sharp left\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 4:\r\n\t\t\t\tmotor.sharpRight(700);\r\n\t\t\t\tlastTurn = 1;\r\n\t\t\t\tDoge.message(4, \"Sharp right\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t}", "public void move() {\r\n\t\tx = x + speed;\r\n\t}", "public void move();", "public void move();", "public void update(){\n // random move\n if(alive){\n posX += velX * cos(angle);\n posY += velY * sin(PI/4);\n angle += 0.04f*dir;\n if(random(0, 16) < 8){\n dir *= -1;\n }\n }\n }", "public void move_to_gantry() {\n\t\tstop_moving();\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmove(gpX, gpY, gpZ);\n\t}", "public void randomMove(Random choiceGen){\n\tint choice = choiceGen.nextInt(4);\n\tswitch(choice){\n case 0:\n\tif(position[0] < worldEdge[0]){\n\t position[0] += 1;\n\t break;\n\t}\n\t\n\tcase 1:\n\t if(position[0] > 0){\n\t\tposition[0] -= 1;\n\t }\n\t else{\n\t position[0] += 1;\n\t }\n\t break;\n\tcase 2:\n\t if(position[1] < worldEdge[1]){\n\t\tposition[1] += 1;\n\t\tbreak;\n\t}\n\tcase 3:\n\t if(position[1] > 0){\n\t\tposition[1] -= 1;\n\t }\n\t else{\n\t\tposition[1] += 1;\n\t }\n\t break;\n\t}\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void mouseMovements() throws InterruptedException{\n\t\t\r\n\t\tint intMouseX = (int)random(10,700);\r\n\t\tint intMouseY = (int)random(10,400);\r\n\t\tint randomMouse = (int)random(0,1000);\r\n\t\t\r\n\t\t// small movements\r\n\t\tif (randomMouse <= 400) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 300) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 375) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// medium movements\r\n\t\telse if (randomMouse <= 800) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 600) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 675) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// large movements\r\n\t\telse if (randomMouse <= 1000) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 950) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 990) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tlog(\"something went wrong with antiban mouse movement\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void mouseMovements() throws InterruptedException{\n\t\t\r\n\t\tint intMouseX = (int)random(10,700);\r\n\t\tint intMouseY = (int)random(10,400);\r\n\t\tint randomMouse = (int)random(0,1000);\r\n\t\t\r\n\t\t// small movements\r\n\t\tif (randomMouse <= 400) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 300) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 375) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// medium movements\r\n\t\telse if (randomMouse <= 800) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 600) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 675) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// large movements\r\n\t\telse if (randomMouse <= 1000) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 950) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 990) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tlog(\"something went wrong with antiban mouse movement\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void timePassed() {\n moveOneStep();\n }", "private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}", "public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }", "@Override\n\tprotected void pathDestinationReached() {\n\t\tif (Util.rand.nextFloat() < 0.3f)\n\t\t\trestartAnimation(dancingAnim);\n\t\telse\n\t\t\trandomMove();\n\t}", "public void changeSpeed() {\n Random gen = new Random();\n speedX += gen.nextInt(3);\n speedY += gen.nextInt(3);\n }", "public void move(){\n\t\t\n\t}", "public void moveBomber(){\n\t\t\t\n\t\t\tif (startredtimer) redtimer++;\n\t\t\tif (redtimer > 5) {\n\t\t\t\tredtimer = 0;\n\t\t\t\tstartredtimer = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (rand.nextInt(21) == 20){ //controls the switching of directions\n\t\t\t\tif (direction == 1) direction = 0;\n\t\t\t\telse if (direction == 0) direction = 1;\n\t\t\t}\n\t\t\tif (direction == 1){ //actually moves the plain\n\t\t\t\tx += 10;\n\t\t\t\tr = true;\n\t\t\t}\n\t\t\telse if (direction == 0){\n\t\t\t\tx -= 10;\n\t\t\t\tr = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (x <= 0) x = 992; //handles the ofscrean plane\n\t\t\telse if ( x >= 992) x = 0;\n\t\t\t\n\t\t\tthis.setBounds(x,y,100,50); //updates the bounds\n\t\t\t\n\t\t}", "void move(int steps);", "void move();", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "@Override\n public void act(AgentImp agent) {\n Coordinate coordinate = agent.generateRandomMove();\n if (coordinate != null)\n agent.step(coordinate.getX(), coordinate.getY());\n else\n agent.skip();\n }", "public void move(long deltaTime) {\n\n Point currentTile = getOccupyingTile(position);\n\n /*\n if (!Simulator.getInstance().getTileMap().isInsideMap(currentTile))\n return;\n\n if (Simulator.getInstance().getTileMap().isAWall(currentTile) || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile))\n return;\n*/\n\n if (Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile))\n return;\n\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n\n\n if (!Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile) && Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector().equals(new Point2D.Double(0.0, 0.0))) {\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n double angle = 0;\n while ((angle >= 60 && angle <= 120) || (angle >= 150 && angle <= 210) || (angle >= 240 && angle <= 300) || (angle >= 330) || (angle <= 30)) {\n\n angle = Math.random() * 360;\n }\n setVector(new Point2D.Double(Math.cos(Math.toRadians(angle)) / 1.5, Math.sin(Math.toRadians(angle)) / 1.5));\n } else {\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n }\n\n\n Point2D vectorDiff = new Point2D.Double(vector.getX() - targetVector.getX(), vector.getY() - targetVector.getY());\n\n if (vectorDiff.getX() < 0)\n vector.setLocation(vector.getX() + 0.001 * velocity * deltaTime, vector.getY());\n else if (vectorDiff.getX() > 0)\n vector.setLocation(vector.getX() - 0.001 * velocity * deltaTime, vector.getY());\n\n if (vectorDiff.getY() < 0)\n vector.setLocation(vector.getX(), vector.getY() + 0.001 * velocity * deltaTime);\n else if (vectorDiff.getY() > 0)\n vector.setLocation(vector.getX(), vector.getY() - 0.001 * velocity * deltaTime);\n\n\n Point2D newPosition = new Point2D.Double(\n position.getX() + (velocity * deltaTime) * vector.getX(), position.getY() + (velocity * deltaTime) * vector.getY());\n\n\n Point targetTile = getOccupyingTile(newPosition);\n\n\n Point direction = getDirection(currentTile, targetTile);\n\n\n if (!Simulator.getInstance().getTileMap().isInsideMap(targetTile) || Simulator.getInstance().getTileMap().isAWall(targetTile)\n || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(targetTile)) {// || Simulator.getInstance().getDestination().getDistanceMap().getTiles()[targetTile.y][targetTile.x].getVector() == new Point2D.Double(0, 0)) {\n\n if (Simulator.getInstance().isUsingBounceCollision()) {\n if (direction.x > 0 || direction.x < 0)\n vector.setLocation(vector.getX() * -0.5, vector.getY());\n if (direction.y > 0 || direction.y < 0)\n vector.setLocation(vector.getX(), vector.getY() * -0.5);\n\n newPosition = new Point2D.Double(\n position.getX() + (velocity * deltaTime) * vector.getX(), position.getY() + (velocity * deltaTime) * vector.getY());\n\n\n targetTile = getOccupyingTile(newPosition);\n\n //Secondary check to make sure the bounce doesn't make it go out of bounds\n if (!Simulator.getInstance().getTileMap().isInsideMap(targetTile) || Simulator.getInstance().getTileMap().isAWall(targetTile)\n || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(targetTile)) { //|| Simulator.getInstance().getDestination().getDistanceMap().getTiles()[targetTile.y][targetTile.x].getVector() == new Point2D.Double(0, 0)) {\n vector.setLocation(0, 0);\n } else {\n setPosition(newPosition);\n }\n\n\n } else {\n vector.setLocation(0, 0);\n }\n\n } else {\n setPosition(newPosition);\n }\n\n }", "public void takeStep() {\n \tRandom rand = new Random();\n\t\tint number = rand.nextInt(4);\n\t if(number == 0) {\n\t \tmoveNorth();\n\t \t}\n\t \telse if(number == 1) {\n\t \t\tmoveSouth();\n\t \t}\n \telse if(number == 2) {\n \t\tmoveWest();\n\t }\n\t \telse if(number == 3) {\n\t \t\tmoveEast();\n\t \t}\n }", "public abstract void randomMoves();", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "void moveNorthEast(){\n xpos = xpos + 3;\n ypos = ypos-xspeed;\n if (xpos > width){ // 20\n xpos = random(-width/2, width/2); // 25\n ypos = width; // 30\n }\n }", "public void move() {\n\r\n\t}", "public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t\tySpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t}", "private void delay() {\n\t\tDelay.msDelay(1000);\n\t}", "void move(IntVector delta);", "private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}", "public void random_dragao(int pos) {\n\t\tint randomX = 1;\n\t\tint randomY = 1;\n\t\twhile (true) {\n\t\t\trandomX = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomY = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomX--;\n\t\t\trandomY--;\n\t\t\tif (labirinto.getLab()[randomX][randomY] == ' ')\n\t\t\t\tbreak;\n\t\t}\n\t\tdragoes[pos].setX_coord(randomX);\n\t\tdragoes[pos].setY_coord(randomY);\n\t\tchange_dragon_pos(pos);\n\t}", "void move(float tpf);", "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n double moveSpeed = this.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue();\n if (timetopee-- < 0 && !bumgave)\n {\n isJumping = false;\n\n if (bumrotation == 999F)\n {\n bumrotation = rotationYaw;\n }\n\n rotationYaw = bumrotation;\n moveSpeed = 0.0F;\n\n if (!onGround)\n {\n motionY -= 0.5D;\n }\n \n /* TODO\n if(worldObj.isRemote)\n {\n \tMCW.proxy.pee(worldObj, posX, posY, posZ, rotationYaw, modelsize);\n } */\n\n if (timetopee < -200)\n {\n timetopee = rand.nextInt(600) + 600;\n bumrotation = 999F;\n int j = MathHelper.floor_double(posX);\n int k = MathHelper.floor_double(posY);\n int l = MathHelper.floor_double(posZ);\n\n for (int i1 = -1; i1 < 2; i1++)\n {\n for (int j1 = -1; j1 < 2; j1++)\n {\n if (rand.nextInt(3) != 0)\n {\n continue;\n }\n\n Block k1 = worldObj.getBlockState(new BlockPos(j + j1, k - 1, l - i1)).getBlock();\n Block l1 = worldObj.getBlockState(new BlockPos(j + j1, k, l - i1)).getBlock();\n\n if (rand.nextInt(2) == 0)\n {\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n worldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.YELLOW_FLOWER.getDefaultState());\n }\n\n continue;\n }\n\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n \tworldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.RED_FLOWER.getDefaultState());\n }\n }\n }\n }\n }\n }", "@Override\r\n public void move(List<Building> landmark, List<Pair<Integer, Integer>> orderedPath) {\r\n int moveChoice = (new Random()).nextInt(2);\r\n // 50% chance to move or not move\r\n if (moveChoice == 0){\r\n // Does not move, i.e. does nothing\r\n }\r\n else if (moveChoice == 1){\r\n // Move\r\n int directionChoice = (new Random()).nextInt(2);\r\n if (directionChoice == 0) {\r\n moveUpPath();\r\n } else if (directionChoice == 1) {\r\n moveDownPath();\r\n }\r\n }\r\n }", "private void move() {\n\t\t\tangle += Math.PI/24;\n\t\n\t\t\tcow.locX = Math.sin(angle) * 2.5 + player.getLocation().getX();\n\t\t\tcow.locZ = Math.cos(angle) * 2.5 + player.getLocation().getZ();\n\t\t\t\n\t\t\tLocation loc = new Location(player.getWorld(), cow.locX, player.getLocation().getY() + 1.5, cow.locZ);\n\t\t\tloc.setDirection(player.getLocation().subtract(loc).toVector()); //Look at the player\n\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, cow.getId(), loc);\n\t\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "public MovingRunner(int x, int y, int repeat, JComponent component) {\n super(x, y);\n this.repeat = repeat;\n this.component = component;\n delay = ((int) (Math.random() * 2000) + 1000) / MAX_FRAMES;\n }", "public void move() {\n\n }", "private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}", "public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }", "public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}", "public void Obstaclemove() {\n for (int i = 0; i < getNumberObstacles(); i++) {\n if (ObstacleDeplace.class.isInstance(getObstacle()[i])) {\n getObstacle()[i].setX(getObstacle()[i].getX() - getObstacle()[i].getSpeed());\n\n if (getObstacle()[i].getX() < -200) {\n getObstacle()[i].setX(600);\n getObstacle()[i].setSpeed(randomGenerator.nextFloat());\n }\n }\n setChanged();\n notifyObstacle(i, getObstacle()[i].getX(), getObstacle()[i].getY());\n }\n }", "public void act() \r\n {\r\n move();\r\n }", "private void goRandomDirection() {\n\t\tdesiredDirection = Math.random() * 360.0;\n\t}", "public void update(){\n if (bossMoveTime > 10){\n if(random(0,16) <= 8){\n dir = 1;\n }else{\n dir = -1;\n }\n velX *= dir;\n bossMoveTime = 0;\n }\n posY *= 0.8f;\n posX += velX;\n posY += velY;\n angle += 0.04f;\n bossMoveTime++;\n }", "@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}", "public void act() \n {\n move(5);\n turn(4);\n }", "void move() {\n x -= speed;\n }", "public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }", "@Override\n public State update() {\n if(mRuntime.seconds()<=time) {\n arm.setPosition(pos);\n return this;\n }\n //(1000);\n\n return NextState;\n\n\n\n\n\n }" ]
[ "0.74253905", "0.72612435", "0.7115825", "0.7034047", "0.69400775", "0.68984574", "0.68266946", "0.6731425", "0.6680898", "0.66718876", "0.66052395", "0.65954643", "0.6574983", "0.64680594", "0.64573735", "0.64534044", "0.6431417", "0.6407829", "0.6395836", "0.63804895", "0.63570315", "0.6355663", "0.6340253", "0.6337756", "0.63134444", "0.6310349", "0.6278915", "0.62743545", "0.62669206", "0.62523335", "0.62447506", "0.6234202", "0.6233719", "0.618797", "0.6165133", "0.61626947", "0.6161023", "0.61476403", "0.6137974", "0.6122306", "0.6118226", "0.61174005", "0.60965407", "0.60790896", "0.60767335", "0.6073512", "0.6070688", "0.6060669", "0.6053269", "0.60485405", "0.6040379", "0.600452", "0.600452", "0.5989375", "0.5988288", "0.5968236", "0.5963312", "0.59564364", "0.59564364", "0.5954437", "0.5947112", "0.5942591", "0.5922499", "0.59199107", "0.59191465", "0.5908151", "0.5908014", "0.59037256", "0.5899095", "0.58990824", "0.58922243", "0.5890941", "0.5882958", "0.5869611", "0.5856737", "0.58505636", "0.5848921", "0.58482534", "0.5845307", "0.5818408", "0.5806457", "0.58044666", "0.5800482", "0.58000284", "0.57917386", "0.5791677", "0.578768", "0.5786931", "0.5786787", "0.578665", "0.5778981", "0.5763962", "0.5756103", "0.57555234", "0.57554096", "0.57514626", "0.57485527", "0.5740216", "0.5736908", "0.573667", "0.5723432" ]
0.0
-1
Draws the object with the super class' draw method
public void draw(Graphics2D g2) { super.draw(g2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void draw();", "@Override\r\n public void draw() {\n }", "@Override\n public void draw()\n {\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public abstract void draw();", "public abstract void draw();", "public abstract void draw();", "@Override\n public void draw() {\n }", "abstract void draw();", "abstract void draw();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public abstract void draw( );", "public abstract void draw(Object o);", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void draw() {\n }", "public void draw(){\n }", "@Override\n void draw()\n {\n \n System.out.println(\"Drawing Circle at\" + super.x +\"and\"+ super.y+\"!\");\n \n }", "public void draw() {\n\n }", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void draw() {\n \n // TODO\n }", "public void draw() {\n \n }", "public void draw(){\n super.repaint();\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"draw method\");\n\t}", "@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}", "@Override\r\n public void draw()\r\n {\n\r\n }", "public abstract void draw(Graphics g);", "public abstract void draw(Graphics g);", "public abstract void draw(Graphics g);", "public abstract void draw(Graphics g);", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "abstract public void draw(Graphics g);", "@Override\n\tpublic void draw(Graphics canvas) {}", "public abstract void draw(java.awt.Graphics canvas);", "public void draw();", "public void draw();", "public void draw();", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"Rectangle.draw()\");\n\t}", "@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public Shapes draw ( );", "public abstract void draw( Graphics2D gtx );", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}", "abstract public void draw(Graphics2D g);", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"Here is the method to draw a Rectangle\");\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "public void draw() {\r\n System.out.print(this);\r\n }", "@Override\n\tpublic void draw1() {\n\n\t}", "@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "public abstract void draw(Graphics2D graphics);", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "abstract void draw(Graphics g, int xoff, int yoff,\n int x, int y, int width, int height);", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"You are drawing a RECTANGLE\");\n\t}", "@Override\r\n\tpublic void draw(Canvas canvas) {\n\t\tthing.getSprite().draw(canvas);\r\n\t}", "@Override\n public void draw(GraphicsContext gc, int sides){}", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "public void draw(Graphics g);", "public void draw(Graphics g);", "void drawObject(DrawingObject d){\n canvas.drawDrawingObject(d);\n }", "public void draw(Graphics2D g)\r\n\t{\r\n\t\t//Draw this Pedestrian\r\n\t\tsuper.draw(g);\r\n\t}", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "protected abstract void paint(Graphics g, Object iDrawSurfaceID);", "public void draw(Graphics g) {\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}", "@Override\n\tpublic void draw(Graphics2D g, int x, int y,int width,int height) {\n\n\t}", "public void draw(DrawingContext context) {\n\t\t\t\t}", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "public abstract void drawFill();", "public abstract void draw(Graphics g, Color color);", "public void draw(Graphics g){\n\t}", "@Override\n public void draw(Canvas canvas) {\n super.draw(canvas);\n\n manager.draw(canvas);\n }", "protected abstract void drawGame();", "public void drawOn(Graphics g);", "@Override\r\n\t\tpublic void draw(Canvas canvas) {\n\t\t Log.v(\"MyView01>draw\",\"f-1\");\r\n\t\t\tsuper.draw(canvas);\r\n\t\t Log.v(\"MyView01>draw\",\"f-2\");\r\n\t\t}", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t\trender(g);\r\n\t}", "@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}", "void draw(Graphics g, int xoff, int yoff) {\n this.draw(g, xoff, yoff, 0, 0, this.getWidth(), this.getHeight());\n }", "@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\tAffineTransform saveAT = g2d.getTransform() ;\n\t\t// Append this shape's transforms to the graphics object's transform. Note the\n\t\t// ORDER: Translation will be done FIRST, then Scaling, and lastly Rotation\n\t\tg2d.transform(getRotation());\n\t\tg2d.transform(getScale());\n\t\tg2d.transform(getTranslation());\n\t\t\n\t\t// draw this object in the defined color\n\t\t;\n\t\tg2d.drawLine(top.x, top.y, bottomLeft.x, bottomLeft.y);\n\t\tg2d.drawLine(bottomLeft.x,bottomLeft.y,bottomRight.x,bottomRight.y);\n\t\tg2d.drawLine(bottomRight.x,bottomRight.y,top.x,top.y);\n\t\t\n\t\t// restore the old graphics transform (remove this shape's transform)\n\t\tg2d.setTransform (saveAT) ;\n\t}", "public void draw(Graphics g) {\n\t\t\n\t}", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "public interface Drawable\r\n {\r\n abstract void draw(GraphicsContext gc); //Method implemented in each subclass object to draw itself.\r\n }", "void draw();", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "public void draw(Graphics g) {\n\t\t\r\n\t}", "public void draw(ShapeRenderer sr){\n this.draw(sr,null,true);\n }", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }" ]
[ "0.81979287", "0.8109805", "0.8011838", "0.79914856", "0.79914856", "0.7980023", "0.7980023", "0.7980023", "0.7979676", "0.7972848", "0.7972848", "0.7926066", "0.7926066", "0.79234743", "0.78964007", "0.78929895", "0.7886205", "0.7886205", "0.786992", "0.77885485", "0.7765568", "0.7754896", "0.7753049", "0.7751518", "0.7745719", "0.7721986", "0.76692086", "0.760857", "0.7586296", "0.7532189", "0.7532189", "0.7532189", "0.7532189", "0.747516", "0.74654704", "0.74552715", "0.7400021", "0.7374769", "0.7374769", "0.7374769", "0.7364485", "0.73365295", "0.7334664", "0.73273575", "0.7307016", "0.72846043", "0.7267313", "0.72542834", "0.7248119", "0.7222869", "0.7222869", "0.7200311", "0.7174965", "0.71721494", "0.7167897", "0.71492934", "0.7141387", "0.71410835", "0.71410835", "0.71410835", "0.7117884", "0.7116144", "0.7114236", "0.7092685", "0.70887107", "0.70792866", "0.70792866", "0.7068227", "0.7066848", "0.70607245", "0.7041276", "0.70372105", "0.70372105", "0.70372105", "0.70372105", "0.70365715", "0.7021811", "0.70195204", "0.70187783", "0.70154375", "0.7012925", "0.7008433", "0.6991958", "0.699012", "0.6982268", "0.69696194", "0.6968636", "0.6964242", "0.6960407", "0.69492525", "0.69396394", "0.693113", "0.6922716", "0.6921877", "0.69119257", "0.69102746", "0.6908177", "0.68979657", "0.6889564", "0.6888604" ]
0.7265303
47
Pauses the current thread
private void pause() throws InterruptedException { component.repaint(); Thread.sleep(delay); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pauseThread();", "public void pause(){\r\n isRunning = false;\r\n while (true){\r\n try{\r\n ourThread.join();\r\n\r\n\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n break;\r\n }\r\n\r\n ourThread = null;\r\n\r\n }", "public void pause() {}", "public void pause() throws InterruptedException \n\t{\n\t\tThread.sleep(4000);\t\t\t\n\t\t\n\t}", "protected void pause(){}", "public void pause() {\n\t\tsleep(2000);\n\t}", "public void pause() {\r\n\t}", "public void pause(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t}", "public void pause() {\n cancelCallback();\n mStartTimeMillis *= -1;\n }", "public void pause() {\n }", "private void pause() {\n pause(myDelay);\n }", "protected void pause() {\n sleep(300);\n }", "public void pause();", "public void pause();", "public void pause();", "public void pauseTilDone() throws InterruptedException { \n\t\t\tthis.me_.join(); \n\t\t}", "public synchronized void pause() {\r\n\r\n\t\tpaused = true;\r\n\t}", "public void pause() {\n pause = true;\n }", "private void pause() {\n\t\t// TODO\n\t}", "public void pause() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void Pause();", "public void pause() {\n executor.submit(new Runnable() {\n public void run() {\n resume = false;\n pauseNoWait();\n }\n });\n }", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "@Override\r\n public void pause() {}", "public void pause() {\n isPaused = true;\n System.out.println(\"pausing\");\n timeline.stop();\n }", "public void pause() {\n running = false;\n try {\n gameThread.join();\n } catch (InterruptedException e) {\n // Error\n }\n }", "public void pause() {\n\t\tsynchronized(this) {\n\t\t\tpaused = true;\n\t\t}\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "public void pause() {\n\t\tif (playing)\n\t\t\tstopRequested = true;\n\t}", "private void pauseVideo() throws InterruptedException {\n\t\tif (playingThread != null) {\n\t\t\tplayingThread.interrupt();\n\t\t\taudioThread.interrupt();\n\t\t\tplayQSound.pause();\n\t\t\tplayingThread = null;\n\t\t\taudioThread = null;\n\t\t}\n\t}", "synchronized void pause() {\n\t\tpaused = true;\n\t}", "public void pause() {\n running = false;\n }", "public void pause()\n\t{\n\t\tplayState = Status.PAUSED;\n\t\tlastUpdate = -1;\n\t\ttmr.stop();\n\t}", "public void pause() {\r\n fPause = true;\r\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n\tpublic void pause() {\n\t}", "public void pause()\n {\n paused = true;\n }", "@Override\n\tpublic void pause()\n\t{\n\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() \n\t{\n\n\t}", "@Override\n\tpublic void pause() {\n\t\tstopTask();\n\t}", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\n public void pause() {\n }", "void pause();", "void pause();", "void pause();", "void pause();", "@Override\n \tpublic void pause() {\n \t}", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}" ]
[ "0.79183227", "0.78227067", "0.7551445", "0.75349027", "0.747519", "0.7420248", "0.7379069", "0.7322225", "0.7317776", "0.7268001", "0.726232", "0.7261943", "0.7224211", "0.7224211", "0.7224211", "0.72199863", "0.7180077", "0.71602064", "0.7154675", "0.71517694", "0.7147221", "0.7085856", "0.707492", "0.7073992", "0.7068869", "0.7065032", "0.70495486", "0.70327604", "0.70327604", "0.70327604", "0.70327604", "0.70327604", "0.70327604", "0.70327604", "0.70327604", "0.70327604", "0.7025225", "0.7014916", "0.7004716", "0.69979227", "0.69919455", "0.6989005", "0.69847697", "0.69847697", "0.69847697", "0.69813335", "0.69771415", "0.69752127", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.69668245", "0.696571", "0.69655704", "0.69479346", "0.69479346", "0.69420296", "0.69318426", "0.69318426", "0.69318426", "0.69318426", "0.6931067", "0.69226444", "0.69226444", "0.69226444", "0.69226444", "0.69226444", "0.69147885", "0.69147885", "0.69147885", "0.69147885", "0.69147885", "0.69147885", "0.69147885", "0.69122815", "0.69122815", "0.69122815", "0.69122815" ]
0.0
-1
Load data from XML file
public boolean loadData() { try { SAXReader reader = new SAXReader(); Document xmlDoc = reader.read(xmlFile); Element rootNode = xmlDoc.getRootElement(); rootTreeIterate(rootNode); } catch (DocumentException ex) { logger.error("Document loading error:", ex); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }", "private void loadData() throws Exception {\n List<Student> listOfStudents = new ArrayList<>();\n DocumentBuilderFactory documentBuilderFactory =\n DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder =\n documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(XMLfile);\n Element root = document.getDocumentElement();\n\n NodeList nodes = root.getChildNodes();\n int len = nodes.getLength();\n for (int i = 0; i < len; i++) {\n Node studentNode = nodes.item(i);\n if (studentNode instanceof Element) {\n Student b = createStudent((Element) studentNode);\n listOfStudents.add(b);\n }\n }\n Map<Long, Student> map= new HashMap<>();\n for (Student s : listOfStudents){\n map.putIfAbsent(s.getId(),s);\n }\n this.setEntities(map);\n }", "public void loadXML(){\n new DownloadXmlTask().execute(URL);\n }", "public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }", "public void load(String filename){\n //Create a file if its not already on disk\n File extDir = new File(this.getFilesDir(), filename);\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n\n //Needs lots of try and catch blocks because so much can go wrong\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(extDir));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }//end while\n\n br.close();//Close the buffer\n }//end try\n catch (FileNotFoundException e){//If file not found on disk here.\n Toast.makeText(this, \"There was no data to load\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n catch (IOException e)//If io Exception here\n {\n Toast.makeText(this, \"Error loading file\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }//end catch\n\n\n //Set the data from the file content and conver it to a String\n String data = new String(text);\n\n //Safety first Parse data if available.\n if (data.length() > 0) {\n parseXML(data);\n }\n else\n Toast.makeText(this, \"There is no data to display\", Toast.LENGTH_LONG).show();\n }", "public void loadConfig(XMLElement xml) {\r\n\r\n }", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }", "private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }", "public void loadJobDataFromFile(File file) {\n try {\n\n JAXBContext context = JAXBContext.newInstance(JobListWrapper.class);\n Unmarshaller um = context.createUnmarshaller();\n\n // Reading XML from the file and unmarshalling.\n JobListWrapper wrapper = (JobListWrapper) um.unmarshal(file);\n\n jobData.clear();\n jobData.addAll(wrapper.getJobs());\n\n // Save the file path to the registry.\n setJobFilePath(file);\n\n } catch (Exception e) { // catches ANY exception\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Could not load data\");\n alert.setContentText(\"Could not load data from file:\\n\" + file.getPath());\n\n alert.showAndWait();\n }\n }", "void loadXML(String path,\n SourceParameters parameters)\n throws SAXException, ProcessingException, IOException;", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "protected void importDefaultData()\n {\n LOG.info(\"Importing Data\");\n Session session = HibernateUtil.currentSession();\n Transaction tx = session.beginTransaction();\n Session dom4jSession = session.getSession(EntityMode.DOM4J);\n\n SAXReader saxReader = new SAXReader();\n try\n {\n Document document = saxReader.read(Setup.class.getResource(\"/DefaultData.xml\"));\n \n for (Object obj : document.selectNodes(\"//name\"))\n {\n Node node = (Node)obj;\n node.setText(node.getText().trim());\n }\n \n List<?> nodes = document.selectNodes(\"/Data/*/*\");\n \n for (Object obj : nodes)\n {\n Node node = (Node)obj;\n \n Class<?> clazz = Class.forName(\"at.easydiet.model.\" + node.getName());\n LOG.info(\"Importing \" + clazz.getName());\n dom4jSession.save(clazz.getName(), node);\n }\n \n session.flush();\n tx.commit();\n HibernateUtil.closeSession();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n tx.rollback();\n }\n LOG.info(\"Importing ended\");\n }", "public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }", "@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void readXMLFile(File file) {\n\t\treadXMLFile(file, -1, 0);\n\t}", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "void loadData();", "void loadData();", "public void LoadLifeloggingData(String XMLFilePath) throws SQLException {\n\t\tString loaddata1 = \"LOAD XML INFILE '\" + XMLFilePath + \"'\"\n\t + \"INTO TABLE minute ROWS IDENTIFIED BY '<minute>'\";\n\t\tString loaddata2 = \"LOAD XML INFILE '\" + XMLFilePath + \"'\"\n\t + \"INTO TABLE image ROWS IDENTIFIED BY '<image-path>'\"; \n\t\t\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(loaddata1);\n\t\tstmt.execute(loaddata2);\n\t\tstmt.close();\n\t}", "LinkedList<Data> getDataConfirm(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"dataConfirm.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n return (LinkedList<Data>) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n return null;\r\n \r\n }", "private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}", "protected abstract void loadData();", "public void loadFromXml(File configFile) throws XMLQroxyConfigException {\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n saxParser.parse(configFile, this);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new XMLQroxyConfigException(\"Error while parsing the config file: \" + e.getMessage(), e);\n }\n }", "protected void loadData()\n {\n }", "public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static Staff readFromXml() throws JAXBException {\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n return (Staff)jaxbUnmarshaller.unmarshal(new File(\"test.xml\"));\n }", "public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;", "public String LoadXML(String filename) throws org.xml.sax.SAXException,\n\t\t\tSAXException {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t// factory.setValidating(true);\n\t\t// factory.\n\t\tfactory.setIgnoringElementContentWhitespace(true);\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tFile file = new File(filename);\n\t\t\tdoc = builder.parse(file);\n\t\t\t// Do something with the document here.\n\t\t} catch (ParserConfigurationException e) {\n\t\t} catch (IOException e) {\n\t\t}\n\t\treturn doc.getElementsByTagName(\"text\").item(0).getFirstChild()\n\t\t\t\t.getNodeValue();\n\t}", "@BeforeClass\n public static void loadData() throws Exception {\n XmlLoader.load( sDatabaseConnectionRule.getConnection(), LabourHoursTest.class,\n new StationCapacityData().getDataFile() );\n }", "private void loadBoardFromXML(){\n int x = 0;\n int y = 0;\n int width = 0;\n try {\n File inputFile = new File(\"Config\\\\level1.xml\");\n DocumentBuilderFactory dbFactory\n = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(inputFile);\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"line\");\n for(int n = 0; n < nList.getLength(); ++ n){\n Node nNode = nList.item(n);\n NodeList innerList = nNode.getChildNodes();\n for(int j = 0; j < innerList.getLength(); ++j){\n Node innerNode = innerList.item(j);\n if(innerNode.getTextContent().equals(\"wall\")){\n Wall wall = new Wall(x,y);\n walls.add(wall);\n } else if(innerNode.getTextContent().equals(\"empty_field\")){\n } else if(innerNode.getTextContent().equals(\"player\")){\n player = new Player(x,y);\n } else if(innerNode.getTextContent().equals(\"box\")){\n Box box = new Box(x,y);\n boxes.add(box);\n } else if(innerNode.getTextContent().equals(\"end_position\")){\n End_position end_position = new End_position(x,y);\n end_positions.add(end_position);\n }\n x+= DISTANCE;\n }\n //next row\n y += DISTANCE;\n if(width < x){\n width = x;\n }\n if(LEVEL_WIDTH < x) LEVEL_WIDTH = x;\n x = 0;\n }\n LEVEL_HEIGHT = y;\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}", "private void loadFile(){\n\tint returnVal = fileChooser.showOpenDialog(this);\n\n\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t File file = fileChooser.getSelectedFile();\n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tInputStream xmlInput = new FileInputStream(file);\n\t\tSAXParser saxParser = spf.newSAXParser();\n\t\tRoomXMLParser rxp = new RoomXMLParser();\n\t\tsaxParser.parse(xmlInput, rxp);\n\n\t\trooms = rxp.getRooms();\n\t\tnumPlayers = rxp.getPlayers();\n\t\tnumNPCs = rxp.getNPCs();\n\t\trevalidate();\n\t }\n\t catch(SAXException|ParserConfigurationException|IOException e){\n\t\te.printStackTrace();\n\t }\n\t}\n }", "public abstract void loadData();", "public abstract void loadData();", "public static History loadFromXML(String fileName) throws FileNotLoadedException {\n\t\ttry {\n\t\tJAXBContext context = JAXBContext.newInstance(History.class);\n\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\n\t\t\n\t\t// Read from file\n\t\tHistory history = (History) unmarshaller.unmarshal(new File(fileName));\t\t\n\t\t\n\t\treturn history;\n\t\t} catch (JAXBException e) {\n\t\t\tSystem.err.println(e + \"/nFile not loaded!\");\n throw new FileNotLoadedException();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"File not found. Check that a file with the name '\" + fileName + \"' exists!\");\n throw new FileNotLoadedException();\n\t\t}\t\n\t}", "public void loadDocument() {\n\t\ttry {\n\t\t\tString defaultDirectory = Utils.lastVisitedDirectory;\n\t\t\tif (Utils.lastVisitedDocumentDirectory != null)\n\t\t\t\tdefaultDirectory = Utils.lastVisitedDocumentDirectory;\n\n\t\t\tJFileChooser fileChooser = new JFileChooser(defaultDirectory);\n\t\t\tint returnVal = fileChooser.showOpenDialog(new JFrame());\n\n\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tURL fileURL = fileChooser.getSelectedFile().toURL();\n\n\t\t\t((XsdTreeStructImpl) xsdTree).loadDocument(fileURL);\n\t\t\txsdTree.getMessageManager().sendMessage(\"XML document \" + fileURL + \" loaded.\", MessageManagerInt.simpleMessage);\n\t\t} catch (IOException urie) {\n\n\t\t} catch (SAXException saxe) {\n\n\t\t}\n\t\texampleLine = null;\n\t\t// updatePreview();\n\t}", "@Override\r\n\tpublic void initFromXMLfile(URL arg0) throws InitializingException {\n\t}", "public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}", "private ArrayList<PersonDao> parseFromXmlPerson(String path){\n try {\n File inputFile = new File(path);\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n PersonHandler personHandler = new PersonHandler();\n saxParser.parse(inputFile, personHandler);\n return (ArrayList<PersonDao>)personHandler.getObjects();\n } catch (Exception e) {\n AppLogger.getLogger().error(e.getMessage());\n return null;\n }\n }", "public Repository fromXml(String file) {\n File xmlFile = new File(file);\n Repository repository = new Repository();\n Contracts contracts = null;\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(Contracts.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n if (!xmlFile.exists()) System.out.println(\"File does not exist\");\n assert jaxbUnmarshaller != null;\n contracts = (Contracts) jaxbUnmarshaller.unmarshal(xmlFile);\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n assert contracts != null;\n repository.setArrayList((ArrayList<Contract>) contracts.getContractList());\n\n return repository;\n\n }", "private void loadOrRefreshXml(File file, boolean isLoad) throws Exception{\n\t\t\n\t // Remove the old content displayed\n \t\tthis.getXmlTextAreaPanel().removeAll();\n \t\t \n \t// The root node of the JTree. Is a special node that has no parent but can have childs \n \tDefaultMutableTreeNode base = new DefaultMutableTreeNode(\"XML Viewer\");\t \t\t \n\t DefaultTreeModel treeModel = new DefaultTreeModel(base);\n\t \t \n\t\txmlJTree = new JTree(treeModel);\n\t\txmlJTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n\t\txmlJTree.setAutoscrolls(true);\n\t\txmlJTree.setCellRenderer(new CustomCellRenderer());\n\t \t \n\t\t// Create the xml parser\n\t SAXParserFactory fact = SAXParserFactory.newInstance();\n\t\tSAXParser parser = fact.newSAXParser();\t \t\t\t\t\n\t\t\t\t \n\t\t// Set to the parser the handler (ie a class that extends the default event handler: DefaultHandler)\n\t\tFile f = new File(this.sourceXMLfileTextField.getText());\n\t\tparser.parse(file,new CustomSaxParseHandler(base,xmlJTree));\n\t\t\n\t\t// By default compact all the tree before show it\n\t\tint row = xmlJTree.getRowCount() - 1;\n\t // Note: use '2' as fix value to compact only the child and not the root\n\t while (row >= 2) {\n\t xmlJTree.collapseRow(row);\t \t \n\t row--;\n\t } \t\t\t\t \n\t\t\t \t\t\t \n\t\tthis.getXmlTextAreaPanel().add(xmlJTree);\n\t\t\t \n\t\t// Refresh (and redraw) the panel and show the tree view of the chosen XML file\n\t\tthis.revalidate();\n\t \t\n\t\tif(!isLoad) //only for refresh xml show a message\n\t\t{\n\t\t messageLabel.setForeground(Color.GREEN);\n\t\t messageLabel.setText(\"Input Reloaded successfully\");\n\t\t} \n\t}", "public ArrayList<Airport> loadXMLFromString(String xml) throws Exception\n\t\t\t{\n\t\t\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t InputSource is = new InputSource(new StringReader(xml));\n\t\t\t Document airports = builder.parse(is);\n\t\t\t \n\t\t\t //Airport oneAirport = new Airport();\n\t\t\t ArrayList<Airport> allAirports = new ArrayList<Airport>();\n\t\t\t \n\t\t\t NodeList airportlist = airports.getElementsByTagName(\"Airport\");\n\t\t\t \n\t\t\t for(int i=0; i<airportlist.getLength(); i++){\n\t\t\t Airport oneAirport = new Airport();\n\t Element airport=(Element)airportlist.item(i);\n\t /*parse attributes*/\n\t\t\t oneAirport.setCode(airport.getAttribute(\"Code\"));\n\t\t\t oneAirport.setName(airport.getAttribute(\"Name\"));\n\t\t\t /*parse child nodes*/\n\t\t\t oneAirport.setLatitude(Double.parseDouble(airport.getElementsByTagName(\"Latitude\").item(0).getTextContent()));\n\t\t\t oneAirport.setLongitude(Double.parseDouble(airport.getElementsByTagName(\"Longitude\").item(0).getTextContent()));\n\t\t\t allAirports.add(oneAirport);\n\t\t }\n\t\t\t \n\t\t\t return allAirports;\n\t\t\t}", "public void parseXML(String XML);", "public void showLoadXML(Properties p);", "public void loadXML(String path,\n SourceParameters parameters)\n throws SAXException, ProcessingException, IOException {\n if (this.loadResource == null) {\n throw new ProcessingException(\"The context \" + this.name + \" does not support loading.\");\n }\n Source source = null;\n try {\n source = SourceUtil.getSource(this.loadResource, null, parameters, this.resolver);\n Document doc = SourceUtil.toDOM(source);\n DocumentFragment df = doc.createDocumentFragment();\n df.appendChild(doc.getDocumentElement());\n this.setXML(path, df);\n } catch (SourceException se) {\n throw SourceUtil.handle(se);\n } finally {\n resolver.release(source);\n }\n }", "@Override\n protected void loadXMLDescription() {\n\n }", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\r\n\t\t//Create object of DocumentBuilder using DocumentBuilderFactory - to get the Document object for XML\r\n\t\tDocumentBuilder builder = documentBuilderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\t//Create object of Document by parsing the input XML - to be able to obtain the NodeList for traversal.\r\n\t\tDocument document = builder.parse(\"D://employees.xml\");\r\n\t\t//ClassLoader.getSystemResourceAsStream(\"employees.xml\")\r\n\t\t\r\n\t\t//Create object of NodeList from the Document object - to be able to identify individual nodes (items)\r\n\t\tNodeList nodeList = document.getChildNodes();\r\n\t\t\r\n\t\tList<Employee> empList = new ArrayList<Employee>();\r\n\r\n\t\t//Looping over nodeList\r\n\t\tfor(int i=0;i<nodeList.getLength();i++)\r\n\t\t{\r\n\t\t\t//Picking up a node/item from the list\r\n\t\t\tNode node = nodeList.item(i);\r\n\t\t\t\r\n\t\t\tif(node instanceof Element)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t//emp.id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\r\n\t\t\t\t\r\n\t\t\t\tNodeList internalNodeList = node.getChildNodes();\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j < internalNodeList.getLength(); j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEmployee emp = new Employee();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode iNode = internalNodeList.item(j);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(iNode instanceof Element)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString iNodeText = iNode.getLastChild().getTextContent().trim();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tswitch(iNodeText)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase \"firstName\":\r\n\t\t\t\t\t\t\temp.firstName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"lastName\":\r\n\t\t\t\t\t\t\temp.lastName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"location\":\r\n\t\t\t\t\t\t\temp.location = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tempList.add(emp);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(Employee emp : empList)\r\n\t\t{\r\n\t\t\tSystem.out.println(emp);\r\n\t\t}\r\n\t}", "private static Document initializeXML(String filePath) throws Exception {\n\t\ttry {\n\t\t\tlogger.info(\"Initializing the xml file :\" + filePath);\n\t\t\txmlDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(filePath));\n\t\t\txmlDocument.getDocumentElement().normalize();\n\t\t\treturn xmlDocument;\n\t\t} catch (Exception e) {\n\n\t\t\tlogger.error(\"Error while reading from XML. File Path : \" + filePath + \" \\n\" + e.getMessage());\n\t\t\tthrow (new Exception(e.getMessage()));\n\n\t\t}\n\t}", "private void loadFromDoc(Document data) {\n if (total == null) { total = data; return; }\n\tNodeList tree = data.getDocumentElement().getChildNodes();\n\tfor (int i = 0; i < tree.getLength(); i++) {\n Node totroot = total.getDocumentElement();\n totroot.insertBefore(total.importNode(tree.item(i), true), null);\n }\n }", "public static List<Place> createFromXml(AbstractController controller, String xmlPath) {\n List<Place> places = new ArrayList<Place>();\n\n try {\n File xmlFile = new File(xmlPath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(xmlFile);\n\n NodeList nodeList = doc.getElementsByTagName(\"locality\");\n\n for(int i = 0; i < nodeList.getLength(); i++) {\n Node node = nodeList.item(i);\n\n if(node.getNodeType() == Node.ELEMENT_NODE) {\n\n Element placeElement = (Element) node;\n Element locationElement = (Element) placeElement.getElementsByTagName(\"location\").item(0);\n\n String name = placeElement.getAttribute(\"name\");\n String altitude = locationElement.getAttribute(\"altitude\");\n String latitude = locationElement.getAttribute(\"latitude\");\n String longitude = locationElement.getAttribute(\"longitude\");\n\n Place newPlace = new Place(controller, name, altitude, latitude, longitude);\n places.add(newPlace);\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return places;\n }", "public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }", "public void loadFromXML(Document doc)\r\n\t{\r\n\t\tNode studyNode = doc.getElementsByTagName(GlimmpseConstants.TAG_STUDY).item(0);\r\n\t\tif (studyNode != null)\r\n\t\t{\r\n\t\t\tNodeList children = studyNode.getChildNodes();\r\n\t\t\tfor(int i = 0; i < children.getLength(); i++)\r\n\t\t\t{\r\n\t\t\t\tNode child = children.item(i);\r\n\t\t\t\tString childName = child.getNodeName();\t\r\n\t\t\t\tif (GlimmpseConstants.TAG_SOLVING_FOR.equalsIgnoreCase(childName))\r\n\t\t\t\t\tsolvingForPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_ALPHA_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\talphaPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_TEST_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\toptionsTestsPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_QUANTILE_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\toptionsPowerMethodsPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_POWER_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\tpowerPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_POWER_METHOD_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\toptionsPowerMethodsPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_SAMPLE_SIZE_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\tperGroupSampleSizePanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_CATEGORICAL_PREDICTORS.equalsIgnoreCase(childName))\r\n\t\t\t\t\tcatPredictorsPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_RELATIVE_GROUP_SIZE_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\trelativeGroupSizePanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_OUTCOMES_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\toutcomesPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_HYPOTHESIS.equalsIgnoreCase(childName))\r\n\t\t\t\t\thypothesisIndependentPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_REPEATED_MEASURES.equalsIgnoreCase(childName))\r\n\t\t\t\t\trepeatedMeasuresPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_BETA_SCALE_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\tmeanDifferencesScalePanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_SIGMA_SCALE_LIST.equalsIgnoreCase(childName))\r\n\t\t\t\t\tvariabilityScalePanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_FIXED_RANDOM_MATRIX.equalsIgnoreCase(childName))\r\n\t\t\t\t{\r\n\t\t\t\t\tNamedNodeMap attrs = child.getAttributes();\r\n\t\t\t\t\tNode nameNode = attrs.getNamedItem(GlimmpseConstants.ATTR_NAME);\r\n\t\t\t\t\tif (nameNode != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString name = nameNode.getNodeValue();\r\n\t\t\t\t\t\tif (GlimmpseConstants.MATRIX_BETA.equalsIgnoreCase(name))\r\n\t\t\t\t\t\t\tmeanDifferencesPanel.loadFromNode(child);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (GlimmpseConstants.TAG_VARIABILITY_Y.equalsIgnoreCase(childName))\r\n\t\t\t\t\tvariabilityIndependentPanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_VARIABILITY_YG.equalsIgnoreCase(childName))\r\n\t\t\t\t\tvariabilityCovariateOutcomePanel.loadFromNode(child);\r\n\t\t\t\telse if (GlimmpseConstants.TAG_VARIABILITY_G.equalsIgnoreCase(childName))\r\n\t\t\t\t\tvariabilityCovariatePanel.loadFromNode(child);\r\n\t\t\t\t\r\n\r\n\t\t\t\t/*\r\n\t\t\t\tTODO: finish upload for these panels\r\n\t\t\t\t{hypothesisRepeatedPanel, hypothesisDoublyRepeatedPanel},\r\n\t\t\t\t{meanDifferencesIndependentPanel,\tmeanDifferencesRepeatedPanel, },\r\n\t\t\t\t{, variabilityRepeatedPanel,},\r\n\t\t\t\t\r\n\t\t\t\t*/\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public CommandProcessXML(String filePath){\n _xmlFile = new File(filePath);\n _dbFactory = DocumentBuilderFactory.newInstance();\n }", "public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }", "private void initializeXml() {\n Bundle bundle = this.getIntent().getExtras();\n\n // Texts.\n dateText = (TextView)findViewById(R.id.date_text);\n typeText = (TextView)findViewById(R.id.packet_type_text);\n sourceAddressText = (TextView)findViewById(R.id.source_address_text);\n packetDataText = (TextView)findViewById(R.id.packet_data_text);\n\n dateText.setText(bundle.getString(\"date\"));\n typeText.setText(bundle.getString(\"type\"));\n sourceAddressText.setText(bundle.getString(\"sourceAddress\"));\n data = bundle.getString(\"packetData\");\n packetDataText.setText(data);\n\n // Buttons.\n Button compareButton = (Button)findViewById(R.id.compare_button);\n compareButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n handleCompareButtonPressed();\n }\n });\n }", "@Override\n public void loadMap(String fileName) throws ParserConfigurationException, SAXException, IOException {\n resetMap();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct\");\n throw new IOException();\n }else{\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"map\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListIntersection = doc.getElementsByTagName(\"intersection\");\n\n for (int temp = 0; temp < nodeListIntersection.getLength(); temp++) {\n Node node = nodeListIntersection.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long id = Long.parseLong(element.getAttribute(\"id\"));\n double latitude = Double.parseDouble(element.getAttribute(\"latitude\"));\n double longitude = Double.parseDouble(element.getAttribute(\"longitude\"));\n // if the intersection doesn't exist in the list\n if(checkUniqueIntersection(id,latitude,longitude)){\n intersectionList.add(new Intersection(id,latitude,longitude));\n }\n }\n }\n\n // get all nodes <Segment>\n NodeList nodeListSegment = doc.getElementsByTagName(\"segment\");\n\n for (int temp = 0; temp < nodeListSegment.getLength(); temp++) {\n Node node = nodeListSegment.item(temp);\n\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long destinationId = Long.parseLong(element.getAttribute(\"destination\"));\n long originId = Long.parseLong(element.getAttribute(\"origin\"));\n double length = Double.parseDouble(element.getAttribute(\"length\"));\n String name = element.getAttribute(\"name\");\n\n Intersection origin = getIntersectionById(originId);\n Intersection destination = getIntersectionById(destinationId);\n if ((origin != null) && (destination != null)) {\n segmentList.add(new Segment(origin, destination, name, length));\n } else {\n // System.out.println(\"segment creation is impossible\");\n }\n }\n }\n\n } catch (ParserConfigurationException |SAXException err){\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n }catch( IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n\n if((intersectionList.isEmpty()) || (segmentList.isEmpty())){\n resetMap();\n this.setChanged();\n this.notifyObservers(\"Map is empty. Check your XML file.\");\n throw new IOException();\n }\n mapLoaded = true;\n extremIntersection = getExtremIntersection();\n this.createGraph();\n this.setChanged();\n this.notifyObservers();\n }\n }", "@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "String loadFromFile () throws Exception {\n\n Reader reader = new Reader(new FileReader(file));\n String line;\n\n// reads all lines of the file\n while ((line = reader.readLine()) != null) {\n\n// depending on the object tag [element], it reads relevant parameters and creates the Element\n if (line.contains(\"[timeline]\"))\n timelines.add(new Timeline(reader.getStringArgument()));\n\n else if (line.contains(\"[event]\")) {\n String timelineName = reader.getStringArgument();\n for (Timeline timeline : timelines) {\n if (timelineName.equals(timeline.name)) {\n timeline.addEvent(\n reader.getStringArgument(),\n reader.getDateArgument(),\n reader.getDateArgument(),\n reader.getIntArgument() != 0,\n reader.getNotesArgument());\n break;\n }\n }\n }\n }\n reader.close();\n return (\"Data loaded successfully\");\n }", "private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}", "public void unMarshall(File xmlDocument) {\n\t\ttry {\n\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(\"peoplestore.generated\");\n\n\t\t\tUnmarshaller unMarshaller = jaxbContext.createUnmarshaller();\n\t\t\tSchemaFactory schemaFactory = SchemaFactory\n\t\t\t\t\t.newInstance(\"http://www.w3.org/2001/XMLSchema\");\n\t\t\tSchema schema = schemaFactory.newSchema(new File(\n\t\t\t\t\t\"people.xsd\"));\n\t\t\tunMarshaller.setSchema(schema);\n\t\t\tCustomValidationEventHandler validationEventHandler = new CustomValidationEventHandler();\n\t\t\tunMarshaller.setEventHandler(validationEventHandler);\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tJAXBElement<PeopleType> peopleElement = (JAXBElement<PeopleType>) unMarshaller\n\t\t\t\t\t.unmarshal(xmlDocument);\n\n\t\t\tPeopleType people = peopleElement.getValue();\n\n\t\t\tList<PersonType> personList = people.getPerson();\n\t\t\tfor (int i = 0; i < personList.size(); i++) {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Inside the for loop are printed\n\t\t\t\t * all the values of the person, calling \n\t\t\t\t * the accessor method get.\n\t\t\t\t * \n\t\t\t\t * Example:\n\t\t\t\t * \t\t\tperson.getFirstname()\n\t\t\t\t * \t\t\tget the firstname of the person at index i\n\t\t\t\t */\n\t\t\t\tPersonType person = (PersonType) personList.get(i);\n\t\t\t\tSystem.out.println(\"Id: \"+ person.getId());\n\t\t\t\tSystem.out.println(\"Firstname: \"+ person.getFirstname());\n\t\t\t\tSystem.out.println(\"Lastname: \"+ person.getLastname());\n\t\t\t\tSystem.out.println(\"Birthday: \"+ person.getBirthdate());\n\t\t\t\tHealthDataType hp = person.getHealthprofile();\n\t\t\t\tSystem.out.println(\" HealthProfile: \");\n\t\t\t\tSystem.out.println(\" Lastupdate: \"+ hp.getLastupdate());\n\t\t\t\tSystem.out.println(\" Weight: \"+ hp.getWeight());\n\t\t\t\tSystem.out.println(\" Height: \" + hp.getHeight());\n\t\t\t\tSystem.out.println(\" BMI: \" + hp.getBmi());\n\t\t\t\tSystem.out.println(\"=======================\");\n\n\t\t\t}\n\t\t} catch (JAXBException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t} catch (SAXException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static Document loadXmlFile(String fname) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(fname);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }", "void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }", "public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }", "private void readFromXMLFile(XMLStreamReader reader) throws XMLStreamException {\n while (reader.hasNext())\n {\n int eventType= reader.next();\n switch (eventType){\n case XMLStreamReader.START_ELEMENT:\n String elemName=reader.getLocalName();\n if (elemName.equals(\"student\"))\n {\n try {\n super.save(readStudent(reader));\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}", "public static Petrinet loadXML(String filename) {\n\t\tIPetrinet ipn = loadXMLInteractive(filename);\n\t\tif(ipn != null) return PetrinetTransform.convert(ipn);\n\t\treturn null;\n\t}", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "private void loadData(String fileName, String cobrandPath)\n throws ParserConfigurationException, SAXException, IOException {\n\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(cobrandPath);\n\n Element root = doc.getDocumentElement();\n\n Element updateElement = doc.createElement(IConstants.IMAGE_FILE);\n Node updateText = doc.createTextNode(fileName);\n\n updateElement.appendChild(updateText);\n root.appendChild(updateElement);\n\n try {\n\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new FileOutputStream(\n cobrandPath));\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer transformer = transFactory.newTransformer();\n\n transformer.transform(source, result);\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Test(expected = XmlException.class)\n\tpublic void testReadFileXxml() throws XmlException {\n\t\tString[][] cities = rcx.readFileXml(\"ConfigurazionePartita.xml\");\n\t\tassertEquals(cities.length, 15);\n\n\t\tfor (int i = 0; i < cities.length; i++) {// controllo che l'array sia\n\t\t\t\t\t\t\t\t\t\t\t\t\t// pieno\n\t\t\tassertNotEquals(cities[i][0], \"\");\n\t\t\tassertNotEquals(cities[i][1], \"\");\n\t\t\tassertNotEquals(cities[i][2], \"\");\n\t\t\tassertNotEquals(cities[i][3], \"\");\n\t\t\tassertNotEquals(cities[i][5], \"\");\n\t\t}\n\t\tassertNotEquals(rcx.readFileXml(\"ConfigurazionePartitas.xml\").length, 15);// file\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// inesistente\n\t}", "private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public StudentXMLRepository(Validator<Student> studentValidator,String XMLfile){\n super(studentValidator);\n this.XMLfile=XMLfile;\n try {\n loadData();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readXMLFile(File file, int dim, int verbose) {\n\n\t\tif(file.exists()) {\n\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\n\t\t\ttry {\n\t\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\tDocument document = builder.parse(file);\n\n\t\t\t\tElement racine = document.getDocumentElement();\n\t\t\t\tNodeList racineNoeuds = racine.getChildNodes();\n\t\t\t\tint nbRacineNoeuds = racineNoeuds.getLength();\n\n\t\t\t\t// Number of instances\n\t\t\t\tint numberOfInstances = -1;\n\n\t\t\t\tfor(int i=0; i<nbRacineNoeuds; i++) {\n\t\t\t\t\tif(racineNoeuds.item(i).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\tElement e = (Element) racineNoeuds.item(i);\n\t\t\t\t\t\tif(verbose > 2) System.out.println(i + \"\\t\" + e + \"\\t\" + e.getTextContent());\n\n\t\t\t\t\t\tif(e.getTagName().compareToIgnoreCase(\"name\") == 0) {\n\t\t\t\t\t\t\t// Read the name of the bag\n\t\t\t\t\t\t\tString name = e.getTextContent();\n\t\t\t\t\t\t\tsetName(name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"numberofinstances\") == 0) {\n\t\t\t\t\t\t\t// Read the number of instances\n\t\t\t\t\t\t\tnumberOfInstances = Integer.parseInt(e.getTextContent());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"feature\") == 0) {\n\t\t\t\t\t\t\t// Read the global feature representation of the bag\n\t\t\t\t\t\t\tint featureDim = Integer.parseInt(e.getAttribute(\"dim\"));\n\t\t\t\t\t\t\tif(dim >= 0 && featureDim != dim) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"ERROR - read dimension feature \" + featureDim + \" vs \" + dim);\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString stringFeature = e.getTextContent();\n\t\t\t\t\t\t\tsetBagFeature(readFeature(stringFeature, featureDim));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"instance\") == 0) {\n\t\t\t\t\t\t\t// Read an instance\n\n\t\t\t\t\t\t\tNodeList childNoeuds = e.getChildNodes();\n\t\t\t\t\t\t\tint nbChildNoeuds = childNoeuds.getLength();\n\n\t\t\t\t\t\t\t// Index of instance\n\t\t\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t\t\t// Instance feature\n\t\t\t\t\t\t\tdouble[] feature = null;\n\n\t\t\t\t\t\t\tfor(int j=0; j<nbChildNoeuds; j++) {\n\t\t\t\t\t\t\t\tif(childNoeuds.item(j).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\t\tElement childElement = (Element) childNoeuds.item(j);\n\n\t\t\t\t\t\t\t\t\tif(verbose > 2) System.out.println(j + \"\\t\" + childElement);\n\n\t\t\t\t\t\t\t\t\tif(childElement.getTagName().compareToIgnoreCase(\"index\") == 0) {\n\t\t\t\t\t\t\t\t\t\t// Read index of instance\n\t\t\t\t\t\t\t\t\t\tindex = Integer.parseInt(childElement.getTextContent());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(childElement.getTagName().compareToIgnoreCase(\"feature\") == 0) {\n\t\t\t\t\t\t\t\t\t\t// Read instance feature\n\t\t\t\t\t\t\t\t\t\tint featureDim = Integer.parseInt(childElement.getAttribute(\"dim\"));\n\t\t\t\t\t\t\t\t\t\tif(dim >= 0 && featureDim != dim) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ERROR - read dimension feature \" + featureDim + \" vs \" + dim);\n\t\t\t\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tString stringFeature = childElement.getTextContent();\n\t\t\t\t\t\t\t\t\t\tfeature = readFeature(stringFeature, featureDim);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(index != -1) {\n\t\t\t\t\t\t\t\taddInstance(index, feature);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\taddInstance(feature);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif(numberOfInstances != -1 && numberOfInstances != numberOfInstances()) {\n\t\t\t\t\tSystem.out.println(\"Error in readXMLFile - number of instances incorrect \" + numberOfInstances + \" != \" + numberOfInstances());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (final ParserConfigurationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (final SAXException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (final IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"\\nError file \" + file.getAbsolutePath() + \" does not exist\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "public static Document loadXmlFile(File file) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(file);\r\n\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }", "@Override\n\tpublic void importXML(String nodePath, ByteArrayInputStream bis,\n\t\t\tint typeImport) throws Exception {\n\n\t}", "public static void readLoadPrimaveraXmlProject(String dataDir)\n {\n PrimaveraXmlReader reader = new PrimaveraXmlReader(dataDir + \"PrimaveraProject.xml\");\n Project project = reader.loadProject(3882);\n System.out.println(project.getName());\n }", "@Override\n public void loadRequest(String fileName)\n throws ParserConfigurationException, SAXException, IOException, ParseException {\n resetPlanningRequest();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!mapLoaded){\n this.setChanged();\n this.notifyObservers(\"No map loaded, load a map and try again.\");\n throw new IOException();\n }else if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct.\");\n throw new IOException();\n }else {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"planningRequest\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListRequest = doc.getElementsByTagName(\"request\");\n for (int temp = 0; temp < nodeListRequest.getLength(); temp++) {\n Node node = nodeListRequest.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get request's attribute\n long pickupIntersectionId = Long.parseLong(element.getAttribute(\"pickupAddress\"));\n Intersection pickupIntersection = getIntersectionById(pickupIntersectionId);\n long deliveryIntersectionId = Long.parseLong(element.getAttribute(\"deliveryAddress\"));\n Intersection deliveryIntersection = getIntersectionById(deliveryIntersectionId);\n if((pickupIntersection==null) || (deliveryIntersection==null)){\n throw new NumberFormatException();\n }\n int pickupDuration = Integer.parseInt(element.getAttribute(\"pickupDuration\"));\n int deliveryDuration = Integer.parseInt(element.getAttribute(\"deliveryDuration\"));\n Address pickupAddress = new Address(pickupIntersectionId,pickupIntersection.getLatitude(),pickupIntersection.getLongitude(),pickupDuration, 1 /*for pickup*/);\n Address deliveryAddress = new Address(deliveryIntersectionId,deliveryIntersection.getLatitude(),deliveryIntersection.getLongitude(),deliveryDuration, 2 /*for delivery*/);\n\n planningRequest.addRequest(new Request(pickupAddress, deliveryAddress));\n }\n }\n // get the depot\n NodeList nodeListDepot = doc.getElementsByTagName(\"depot\");\n for (int temp = 0; temp < nodeListDepot.getLength(); temp++) {\n Node node = nodeListDepot.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get request's attribute\n long addressId = Long.parseLong(element.getAttribute(\"address\"));\n String departTime = element.getAttribute(\"departureTime\");\n planningRequest.setStartingPoint(getIntersectionById(addressId));\n planningRequest.setDepartureTime(new SimpleDateFormat(\"HH:mm:ss\").parse(departTime));\n }\n }\n } catch (ParserConfigurationException | SAXException err) {\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n } catch (ParseException err) {\n this.setChanged();\n this.notifyObservers(\"Bad departureTime format.\");\n throw err;\n } catch (IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n if((planningRequest.getRequestList().isEmpty())\n || (planningRequest.getStartingPoint()==null)\n || (planningRequest.getDepartureTime()==null)){\n resetPlanningRequest();\n this.setChanged();\n this.notifyObservers(\"Planning is empty. Check your XML file.\");\n throw new IOException();\n }\n planningLoaded = true;\n this.setChanged();\n }\n }", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "public void load (XMLElement myElement,XMLLoader loader) throws XMLTreeException,IOException,XMLInvalidInputException\n\t\t{\twait=myElement.getAttribute(\"wait\").getIntValue();\n\t\t\tmove=myElement.getAttribute(\"move\").getIntValue();\n\t\t\tfitness=myElement.getAttribute(\"fitness\").getFloatValue();\n\t\t\tgenes=(float[])XMLArray.loadArray(this,loader);\n\t\t\tme=(float[][])XMLArray.loadArray(this,loader);\n\t\t}", "void readXML(Element elem) throws XMLSyntaxError;", "protected void readData(DataTable[] tables) throws Exception {\n try {\n for (int i=0; i<tables.length; i++) {\n InputStream is = url.openStream();\n readXml(new InputStreamReader(is), tables[i]);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static NodeList readXML(String filename, String id)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\r\n\t \r\n\t\t \r\n\t\treturn list;\r\n\t}", "private static Document loadXMLFromString(String xml) throws ParserConfigurationException, SAXException,\n\t\t\tIOException {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tInputSource is = new InputSource(new StringReader(xml));\n\t\treturn builder.parse(is);\n\t}", "public void runExample(InputStream file)\n {\n\tparseXmlFile(file);\n\n\t// get each employee element and create a Employee object\n\tparseDocument();\n\n\t// Iterate through the list and print the data\n\t// printData();\n\t//Log.d(Constants.TAG, \"XMLReader::runExample Exiting!\");\n }", "public XMLUserDAO() {\r\n\t\ttry {\r\n\t\t\t// Parse the XML into DOM standard.\r\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\tdocument = db.parse(new File(\"users.xml\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public ArrayList<Publication> parseXML(){\n ArrayList<Publication> publications = new ArrayList<Publication>();\n try {\n System.out.println(\"Starting parse xml\");\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(new File(\"dblp_abstract_dataset.xml\"));\n document.getDocumentElement().normalize();\n NodeList nodeList = document.getDocumentElement().getChildNodes();\n parseChannelNodes(nodeList,publications);\n System.out.println(\"publications count: \"+publications.size());\n }catch (ParserConfigurationException ex){\n ex.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return publications;\n }", "protected XmlLoader(@NotNull File xmlFile, @Nullable DataContext context, Key<?>... keys) throws XmlParseException {\n\t\tcheckParams(context, keys);\n\t\tthis.dataContext = context;\n\t\tthis.document = getDocumentFromFile(xmlFile);\n\t}", "public TiledMap load(String id, String file) throws RuntimeException, SAXException, IOException, ParserConfigurationException {\r\n Document doc = UtilXML.loadDocument(file);\r\n\r\n if (!isTmxMap(doc))\r\n throw new RuntimeException(\"XML file isn't formatted as a TMX map!\");\r\n\r\n TiledMap map = createMap(id, doc);\r\n\r\n readTilesets(map, doc, file);\r\n readMapTileLayers(map, doc, file);\r\n readMapObjects(map, doc, file);\r\n return map;\r\n\r\n }", "public void testXmlReader() throws Exception {\n File file = new File(\"src/test/resources/reader/sample.xml\");\n final URL testdata = file.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of nodes\", 1, creator.size());\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }" ]
[ "0.73728263", "0.7003997", "0.6776645", "0.6651963", "0.6633178", "0.65860295", "0.6568759", "0.6335884", "0.62859327", "0.62632084", "0.62581235", "0.61327785", "0.61254394", "0.6118654", "0.6108784", "0.61022204", "0.6074482", "0.6026743", "0.59608495", "0.59482145", "0.59085584", "0.59085584", "0.59078944", "0.5897661", "0.58944494", "0.588035", "0.58568877", "0.585394", "0.58442885", "0.57968616", "0.5779386", "0.57431436", "0.57108593", "0.5708507", "0.57029265", "0.57002705", "0.56655914", "0.5665542", "0.564854", "0.564854", "0.5620434", "0.56177074", "0.56072384", "0.5590119", "0.55826193", "0.5578202", "0.55729014", "0.55652016", "0.5560033", "0.5558714", "0.55576944", "0.55516046", "0.55493647", "0.5545362", "0.5539301", "0.5529272", "0.55281264", "0.551997", "0.5515324", "0.55148166", "0.55109423", "0.5508146", "0.5505984", "0.5499366", "0.5494864", "0.5483155", "0.54816216", "0.5479116", "0.54751974", "0.5468104", "0.5463138", "0.54453385", "0.54392076", "0.54267675", "0.5425905", "0.5424295", "0.54146624", "0.5413449", "0.54081404", "0.5394434", "0.5392555", "0.53877854", "0.5376814", "0.5374577", "0.5371607", "0.53654397", "0.53633", "0.53443927", "0.53439456", "0.53431654", "0.5341605", "0.53411514", "0.5338534", "0.5328871", "0.5326962", "0.53188246", "0.53098047", "0.530699", "0.53042454", "0.52991617" ]
0.6241493
11
Iterate over all XML file top level nodes and process them
private void rootTreeIterate(Element rootNode) throws DocumentException { Iterator rootIterator = rootNode.elementIterator(); while (rootIterator.hasNext()) { Element node = (Element) rootIterator.next(); if (node.getName().equals(TABLE_NODE)) { processTableNode(node); } else if (node.getName().equals(CLASS_NODE)) { processClassNode(node); } else if (node.getName().equals(CLASS_PARENT_NODE)) { processClassParentNode(node); } else if (node.getName().equals(PROPERTY_NODE)) { processPropertyNode(node); } else if (node.getName().equals(PROPERTY_PARENT_NODE)) { processPropertyParentNode(node); } else { throw new DocumentException("Node with illegal name \"" + node.getName() + "\" found"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp.getQualifiedName()) {\n case (\"grapes\"): //grapes tag doesn't do anything in particular except instantiating the file\n break;\n\n case (\"grape\"):\n createGrape(temp);\n break;\n\n case (\"seed\"):\n createSeed(temp);\n break;\n\n default:\n throw new IllegalArgumentException(\"Invalid input in XML \" ); //any other element type is not supported in our XML formatted file\n }\n }\n\n for (int i = 0; i < current.getChildCount(); i++) {\n listChildren(current.getChild(i)); //recursive call traverses the XML document in preorder\n }\n\n }", "private void parseFiles() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n for(int i=0; i<fileNodesList.getLength(); i++){\n filesToProcess.add(getFile((Element) fileNodesList.item(i)));\n }\n }", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }", "private void parseNodes() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n NodeList nodeNodesList = root.getElementsByTagName(\"node\");\n NodeXML tmp;\n for(int i=0; i<nodeNodesList.getLength(); i++){\n tmp = getNode((Element) nodeNodesList.item(i));\n mapForAccess.put(tmp.hostname,tmp);\n if(tmp.isMaster) {\n master = tmp;\n }\n else {\n slaves.add(tmp);\n }\n }\n }", "protected void extract() {\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\tNode node = nodeState.node;\n\t\t\tRuleResolver resolver = resolvers.get(node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(attrReader, parameters, nodeState.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t} else if (attrReader.dialect.isRules(node)) { \n\t\t\t\t// we have external link (xlink:href or link href)\n\t\t\t\tString external = attrReader.dialect.getExternalRules(node);\n\t\t\t\tif (external != null) {\n\t\t\t\t\textractExternalRules(external);\n\t\t\t\t}\n\t\t\t} else if (node.getNodeName().equals(\"script\")) {\n\t\t\t\t// we have embedded\n\t\t\t\tif (node.hasAttributes()) {\n\t\t\t\t\tif (node.getAttributes().getNamedItem(\"type\").getNodeValue().equals(\"application/its+xml\")) {\n\t\t\t\t\t\textractEmbeddedRules(node.getTextContent());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!nodeState.nodePath.contains(\"its:rules\")) {\n\t\t\t\t// unless we're in rules, look at local annotations\n\t\t\t\t// LOCAL\n\t\t\t\textractLocal(nodeState);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// process inheritance\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\t// Elements: handle inheritance \n\t\t\tITSData parentData = getParentState(nodeState);\n\t\t\tif (parentData != null) {\n\t\t\t\t// inherit from parent\n\t\t\t\tITSData thisData = nodeItsData.get(nodeState.nodePath);\n\t\t\t\tif (thisData == null) {\n\t\t\t\t\tthisData = new ITSData();\n\t\t\t\t\tapplyRuleToNode(nodeState.nodePath, thisData);\n\t\t\t\t} \n\t\t\t\tthisData.inherit(parentData);\t\t\t\t\n\t\t\t}\t\n\t\t\t\t\t\t\n\t\t} \n\t\t\n\t\t\n\t}", "public void process(final String filename) throws JDOMException, IOException {\n\n // Parsing our XML file being located below \"resources\"\n final Document docInput = builder.build(\n getClass().getClassLoader().getResource(filename)\n );\n\n // Accessing the document's root element <catalog>\n final Element docRoot = docInput.getRootElement();\n\n // Accessing the <item> children of parent element <catalog>\n docRoot.getChildren().stream().\n map(item -> \"Article: \" + item.getText() +\n \", order number: \" + item.getAttributeValue(\"orderNo\")).\n forEach(System.out::println);\n }", "public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }", "protected void parseRootElement() {\n\n // This is the Activiti method body for parsing through the XML object model\n // The Joda Engine needs less information than Activiti. That's why some methods are commented out.\n parseProcessDefinitions();\n }", "static void processFile(File xmlFile) {\n Document doc = null;\n try {\n doc = builder.parse(xmlFile);\n }\n catch (IOException e) {\n e.printStackTrace();\n System.exit(3);\n }\n catch (SAXException e) {\n System.out.println(\"Parsing error on file \" + xmlFile);\n System.out.println(\" (not supposed to happen with supplied XML files)\");\n e.printStackTrace();\n System.exit(3);\n }\n \n /* At this point 'doc' contains a DOM representation of an 'Items' XML\n * file. Use doc.getDocumentElement() to get the root Element. */\n System.out.println(\"Successfully parsed - \" + xmlFile);\n \n /* Fill in code here (you will probably need to write auxiliary\n methods). */\n \n Element[] elems = getElementsByTagNameNR(doc.getDocumentElement(), \"Item\");\n for(Element e : elems) {\n\n String itemId = e.getAttribute(\"ItemID\");\n String name = getElementTextByTagNameNR(e, \"Name\");\n String currently = strip(getElementTextByTagNameNR(e, \"Currently\"));\n String buy_price = strip(getElementTextByTagNameNR(e, \"Buy_Price\"));\n String first_bid = strip(getElementTextByTagNameNR(e, \"First_Bid\"));\n String number_of_bids = getElementTextByTagNameNR(e, \"Number_of_Bids\");\n String country = getElementTextByTagNameNR(e, \"Country\");\n String started = changeTime(getElementTextByTagNameNR(e, \"Started\"));\n String ends = changeTime(getElementTextByTagNameNR(e, \"Ends\"));\n Element seller = getElementByTagNameNR(e, \"Seller\");\n String sellerId = seller.getAttribute(\"UserID\");\n String sellerRatings = seller.getAttribute(\"Rating\");\n String location = getElementTextByTagNameNR(e, \"Location\");\n Element locate = getElementByTagNameNR(e, \"Location\");\n String latitude = locate.getAttribute(\"Latitude\");\n String longitude = locate.getAttribute(\"Longitude\");\n String description = getElementTextByTagNameNR(e, \"Description\");\n if(description.length() > 4000)\n description = description.substring(0, 4001);\n\n // add the record to the list\n items.add(itemRecord(itemId, name, currently, buy_price, first_bid, number_of_bids, country,\n started, ends, sellerId, location, latitude, longitude, description));\n\n // add the category infomation and belongsTo information\n Element[] cates = getElementsByTagNameNR(e, \"Category\");\n for(Element c : cates) {\n String cate = getElementText(c);\n if(category.containsKey(cate) == false) {\n int cnt = category.size();\n category.put(cate, cnt);\n }\n int index = category.get(cate);\n String caterecord = itemId + columnSeparator + index;\n belongsTo.add(caterecord);\n }\n\n // add the user information\n if(users.containsKey(sellerId)) {\n users.get(sellerId).sellRating = sellerRatings;\n }\n else {\n User u = new User(sellerId);\n u.sellRating = sellerRatings;\n users.put(sellerId, u);\n }\n\n // add the bid infromation and bider inforamtion\n Element[] ebids = getElementsByTagNameNR(getElementByTagNameNR(e, \"Bids\"), \"Bid\");\n for(Element b : ebids) {\n Element bidder = getElementByTagNameNR(b, \"Bidder\");\n String bidderId = bidder.getAttribute(\"UserID\");\n String bidderRating = bidder.getAttribute(\"Rating\");\n String bidderloc = getElementTextByTagNameNR(bidder, \"Location\");\n String biddercoun = getElementTextByTagNameNR(bidder, \"Country\");\n String amount = strip(getElementTextByTagNameNR(b, \"Amount\"));\n String time = changeTime(getElementTextByTagNameNR(b, \"Time\"));\n\n\n if(users.containsKey(bidderId) == false) {\n User u = new User(bidderId);\n users.put(bidderId, u);\n }\n users.get(bidderId).location = bidderloc;\n users.get(bidderId).country = biddercoun;\n users.get(bidderId).bidRating = bidderRating;\n bids.add(bidRecord(itemId, bidderId, time, amount));\n }\n\n }\n \n \n /**************************************************************/\n \n }", "private void parse() throws XMLStreamException {\n while (reader.hasNext()) {\n if (reader.next() == START_ELEMENT) {\n handleElement();\n }\n }\n }", "protected void processElements(Node node, int uolId) throws\n PropertyException {\n Node child = node.getFirstChild();\n\n while (child != null) {\n\n if ( (child.getNodeType() == Node.ELEMENT_NODE) &&\n (!processElement((Element) child, uolId))) {\n //if the child node was not processed already, process it now.\n processElements(child, uolId);\n\n }\n child = child.getNextSibling();\n }\n }", "private static void parse_xml() {\n\t\tUiHierarchyXmlLoader loader = new UiHierarchyXmlLoader();\n\t\tBasicTreeNode btn = loader.parseXml(\"/home/haos/haos.xml\");\n\n\t\tUtil.log(btn.getChildrenList());\n\t\tUtil.log(dump_node(btn, 0));\n\n\t\tfor (BasicTreeNode child : btn.getChildren()) {\n\t\t\tif (child instanceof UiNode) {\n\t\t\t\tsearch_for_clickables((UiNode) child);\n\t\t\t} else {\n\t\t\t\tUtil.err(child + \" is NOT UiNode\");\n\t\t\t}\n\t\t}\n\n\t\tList<Rectangle> nafs = loader.getNafNodes();\n\t\tUtil.log(nafs);\n\t}", "private static void loopNodes(NodeList childNodes) throws JSONException {\n for (int i = 0; i < childNodes.getLength(); ++i) {\n HashMap<String, String> tempHashMap = new HashMap<>();\n Node node = childNodes.item(i);\n String nodeName = node.getNodeName();\n if (!\"#text\".equals(nodeName)) {\n\n Attr attr = (Attr) node.getAttributes().getNamedItem(\"displayname\");\n String attribute = null;\n if (attr != null) {\n attribute = attr.getValue();\n }\n\n if (attribute != null) {\n tempHashMap.put(node.getNodeName(), attribute);\n elementStack.push(tempHashMap);\n } else {\n tempHashMap.put(node.getNodeName(), null);\n elementStack.push(tempHashMap);\n }\n\n if (node.hasChildNodes()) {\n loopNodes(node.getChildNodes());\n } else {\n addPathToCategories();\n }\n\n if (elementStack.size() > 0) {\n elementStack.pop();\n }\n\n }\n }\n\n }", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void nonRecursiveParserXML(NodeList rList, Document doc){\r\n\t try {\t\r\n\t System.out.println(\"===========================\");\r\n\t for (int temp1 = 0; temp1 < rList.getLength(); temp1++) {\r\n\t \t NodeList nList = doc.getElementsByTagName(\"mxCell\");\r\n\t System.out.println(\"++++++++++++++ mxCell +++++++++++++++++\");\r\n\t for (int temp = 0; temp < nList.getLength(); temp++) {// for each cell\r\n\t Node nNode = nList.item(temp); // a cell is called in as nNode\r\n\t System.out.println(\"\\nCurrent Element :\" + nNode.getNodeName());\r\n\t if (nNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\t Element eElement = (Element) nNode;\r\n\t NamedNodeMap attList = eElement.getAttributes(); \r\n\t \r\n\t for(int ind = 0; ind < attList.getLength(); ind++){\r\n\t \t System.out.println(\"Attribute :\" + attList.item(ind));\r\n\t } \r\n\t NodeList subNodes = eElement.getElementsByTagName(\"mxGeometry\");\r\n\t System.out.println(\"\\t\\t------------ mxGeometry --------------\");\r\n\t for(int subInd = 0; subInd < subNodes.getLength(); subInd++){\r\n\t \t NamedNodeMap elemAtList = subNodes.item(subInd).getAttributes(); \r\n\t \r\n\t for(int ind2 = 0; ind2 < elemAtList.getLength(); ind2++){\r\n\t \t System.out.println(\"Attribute :\" + elemAtList.item(ind2));\r\n\t }\r\n\t }\r\n\t //System.out.println(\"First Name : \" + eElement.getElementsByTagName(\"mxGeometry\").item(0).getTextContent());\r\n\t }\r\n\t } \r\n\t }\r\n\t } catch (Exception e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\t}", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "public void runParser() throws Exception {\n\t\tparseXmlFile();\r\n\t\t\r\n\t\t//get each employee element and create a Employee object\r\n\t\tparseDocument();\r\n\t\t\r\n\t\t//Iterate through the list and print the data\r\n\t\t//printData();\r\n\t\t\r\n\t}", "@Override\n\tpublic void parseXML(Element root) throws Exception {\n\t\t\n\t}", "public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\r\n\t\t//Create object of DocumentBuilder using DocumentBuilderFactory - to get the Document object for XML\r\n\t\tDocumentBuilder builder = documentBuilderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\t//Create object of Document by parsing the input XML - to be able to obtain the NodeList for traversal.\r\n\t\tDocument document = builder.parse(\"D://employees.xml\");\r\n\t\t//ClassLoader.getSystemResourceAsStream(\"employees.xml\")\r\n\t\t\r\n\t\t//Create object of NodeList from the Document object - to be able to identify individual nodes (items)\r\n\t\tNodeList nodeList = document.getChildNodes();\r\n\t\t\r\n\t\tList<Employee> empList = new ArrayList<Employee>();\r\n\r\n\t\t//Looping over nodeList\r\n\t\tfor(int i=0;i<nodeList.getLength();i++)\r\n\t\t{\r\n\t\t\t//Picking up a node/item from the list\r\n\t\t\tNode node = nodeList.item(i);\r\n\t\t\t\r\n\t\t\tif(node instanceof Element)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t//emp.id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\r\n\t\t\t\t\r\n\t\t\t\tNodeList internalNodeList = node.getChildNodes();\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j < internalNodeList.getLength(); j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEmployee emp = new Employee();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode iNode = internalNodeList.item(j);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(iNode instanceof Element)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString iNodeText = iNode.getLastChild().getTextContent().trim();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tswitch(iNodeText)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase \"firstName\":\r\n\t\t\t\t\t\t\temp.firstName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"lastName\":\r\n\t\t\t\t\t\t\temp.lastName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"location\":\r\n\t\t\t\t\t\t\temp.location = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tempList.add(emp);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(Employee emp : empList)\r\n\t\t{\r\n\t\t\tSystem.out.println(emp);\r\n\t\t}\r\n\t}", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}", "public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }", "public void normalise() {\n\t\tElement base = this;\n\t\t\n\t\tbase.setNamespace(\"1\");\n\t\t\n\t\tint i = 1;\n\t\tfor (Element child : base.getAllChildren() )\n\t\t\tbase.normaliseChild(child, i++);\n\t\t\n\t\t\n\t}", "private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}", "public static void main(String[] args)\n throws FileNotFoundException, XMLStreamException {\n XMLInputFactory factory = XMLInputFactory.newInstance();\n // Create XML event reader 1\n XMLEventReader r1 = \n factory.createXMLEventReader(new FileReader(\"prodList1.xml\"));\n // Create XML event reader 2\n XMLEventReader r2 = \n factory.createXMLEventReader(new FileReader(\"prodList2.xml\"));\n // Create the output factory\n XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\n // Create XML event writer\n XMLEventWriter xmlw = xmlof.createXMLEventWriter(System.out);\n // Read to first <product> element in document 1\n // and output to result document\n String pid1 = readToNextElement(r1, xmlw, false);\n // Read to first <product> element in document 1\n // without writing to result document\n String pid2 = readToNextElement(r2, null, false);\n // Loop over both XML input streams\n while (pid1 != null || pid2 != null) {\n // Compare merge criteria\n if (pid2 == null || (pid1 != null && pid1.compareTo(pid2) <= 0))\n // Continue in document 1\n pid1 = readToNextElement(r1, xmlw, pid2 == null);\n else\n // Continue in document 2\n pid2 = readToNextElement(r2, xmlw, pid1 == null);\n }\n xmlw.close();\n }", "private void processBulk()\n {\n File inDir = new File(m_inDir);\n String [] fileList = inDir.list();\n \n for (int j=0; j<fileList.length; j++)\n {\n String file = fileList[j];\n if (file.endsWith(\".xml\"))\n {\n m_inFile = m_inDir + \"/\" + file;\n m_localeStr = Utilities.extractLocaleFromFilename(file);\n processSingle();\n }\n }\n }", "public void importElement(XmlPullParser xpp, Epml epml) {\n\t\tlineNumber = xpp.getLineNumber();\n\t\t/*\n\t\t * Import all attributes of this element.\n\t\t */\n\t\timportAttributes(xpp, epml);\n\t\t/*\n\t\t * Create afresh stack to keep track of start tags to match.\n\t\t */\n\t\tArrayList<String> stack = new ArrayList<String>();\n\t\t/*\n\t\t * Add the current tag to this stack, as we still have to find the\n\t\t * matching end tag.\n\t\t */\n\t\tstack.add(tag);\n\t\t/*\n\t\t * As long as the stack is not empty, we're still working on this\n\t\t * object.\n\t\t */\n\t\twhile (!stack.isEmpty()) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t * Get next event.\n\t\t\t\t */\n\t\t\t\tint eventType = xpp.next();\n\t\t\t\tif (eventType == XmlPullParser.END_DOCUMENT) {\n\t\t\t\t\t/*\n\t\t\t\t\t * End of document. Should not happen.\n\t\t\t\t\t */\n\t\t\t\t\tepml.log(tag, xpp.getLineNumber(), \"Found end of document\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (eventType == XmlPullParser.START_TAG) {\n\t\t\t\t\t//System.out.println(xpp.getLineNumber() + \" <\" + xpp.getName() + \">\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Start tag. Push it on the stack.\n\t\t\t\t\t */\n\t\t\t\t\tstack.add(xpp.getName());\n\t\t\t\t\t/*\n\t\t\t\t\t * If this tag is the second on the stack, then it is a\n\t\t\t\t\t * direct child.\n\t\t\t\t\t */\n\t\t\t\t\tif (stack.size() == 2) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * For a direct child, check whether the tag is known.\n\t\t\t\t\t\t * If so, take proper action. Note that this needs not\n\t\t\t\t\t\t * to be done for other offspring.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (importElements(xpp, epml)) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Known start tag. The end tag has been matched and\n\t\t\t\t\t\t\t * can be popped from the stack.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tstack.remove(stack.size() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if ((eventType == XmlPullParser.END_TAG)) {\n\t\t\t\t\t//System.out.println(xpp.getLineNumber() + \" </\" + xpp.getName() + \">\");\n\t\t\t\t\t/*\n\t\t\t\t\t * End tag. Should be identical to top of the stack.\n\t\t\t\t\t */\n\t\t\t\t\tif (xpp.getName().equals(stack.get(stack.size() - 1))) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Yes it is. Pop the stack.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tstack.remove(stack.size() - 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * No it is not. XML violation.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tepml.log(tag, xpp.getLineNumber(), \"Found \" + xpp.getName() + \", expected \"\n\t\t\t\t\t\t\t\t+ stack.get(stack.size() - 1));\n\t\t\t\t\t}\n\t\t\t\t} else if (eventType == XmlPullParser.TEXT) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Plain text. Import it.\n\t\t\t\t\t */\n\t\t\t\t\timportText(xpp.getText(), epml);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tepml.log(tag, xpp.getLineNumber(), ex.getMessage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * The element has been imported. Now is a good time to check its\n\t\t * validity.\n\t\t */\n\t\tcheckValidity(epml);\n\t}", "private void parseXMLDocument(final Document doc)\r\n {\r\n Node docRoot = doc.getDocumentElement();\r\n StringBuilder indent = new StringBuilder();\r\n\r\n fullXmlTree.append(\"<\" + docRoot.getNodeName() + \">\\n\");\r\n searchTreeFromBranch(docRoot, 0, indent);\r\n fullXmlTree.append(\"</\" + docRoot.getNodeName() + \">\\n\");\r\n\r\n if (getPrintFullTree())\r\n {\r\n printFullTree();\r\n }\r\n }", "public static void main(String[] args) throws Exception {\r\n //Get Document Builder\r\n boolean isAccordian=false;\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder builder = factory.newDocumentBuilder();\r\n\r\n //Build Document\r\n Document document = builder.parse(new File(\"C:\\\\users\\\\amiraj2\\\\Desktop\\\\configurations.xml\"));\r\n\r\n //Normalize the XML Structure; It's just too important !!\r\n document.getDocumentElement().normalize();\r\n\r\n //Here comes the root node\r\n Element root = document.getDocumentElement();\r\n //// System.out.println(root.getNodeName());\r\n\r\n visitChildNodesOfRoot(document);\r\n\r\n //// System.out.println(\"============================\");\r\n }", "void processElement(File documentPath) \n\t\t\tthrows XMLFormatException;", "public void readXMLFile(File file) {\n\t\treadXMLFile(file, -1, 0);\n\t}", "public void record_XML_files(File dir) {\n\n FilenameFilter filter = null;\n\n // filter to only select pepXML files\n filter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.endsWith(Globals.pepXMLsuffix);\n }\n };\n String[] pep = dir.list(filter);\n for (String aPep : pep) {\n if (!Globals.pepXmlFiles.contains(aPep)) {\n Globals.pepXmlFiles.add(aPep);\n }\n }\n\n if (!Globals.byPeptide) {\n // filter to only select protXML files\n filter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.endsWith(Globals.protXMLsuffix);\n }\n };\n String[] prot = dir.list(filter);\n\n for (String aProt : prot) {\n if (!Globals.protXmlFiles.contains(aProt)) {\n Globals.protXmlFiles.add(aProt);\n }\n }\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}", "private void parseDocument()\n {\n\tElement docEle = dom.getDocumentElement();\n\n\t// get a nodelist of <employee> elements\n\tNodeList nl = docEle.getElementsByTagName(\"path\");\n\tif (nl != null && nl.getLength() > 0)\n\t{\n\t for (int i = 0; i < nl.getLength(); i++)\n\t {// System.out.println(i);\n\n\t\t// get the employee element\n\t\tElement el = (Element) nl.item(i);\n\n\t\t// get the Employee object\n\t\tmakeRoom(el);\n\n\t }\n\n\t //Log.d(\"NUMROOMS\", \"numRooms = \" + numDetectedRooms + \" \" + \"numHallways = \" + numDetectedHallways);\n\t}\n\t// This will read in the numbers. This is possibly useful for giving the rooms their correct numbers.\n\t// Find all of the glyphs within the room using it's coordinates and the ID designated by roomsMap.\n\t// Organize their coordinates from left to right and translate the filename to what number they are.\n\t// These numbers from left to right are the room number.\n\n\t/*\n\t * NodeList glyphs = docEle.getElementsByTagName(\"use\"); if (nl != null && glyphs.getLength() > 0) { for (int i = 0; i < glyphs.getLength(); i++) {\n\t * \n\t * //get the employee element Element el = (Element) glyphs.item(i); //System.out.println(el.getAttribute(\"id\")); String x = el.getAttribute(\"x\"); String y = el.getAttribute(\"y\");\n\t * \n\t * //Create a new Employee with the value read from the xml nodes\n\t * \n\t * myGlyphs.add(new Point((int)Double.parseDouble(x), (int)(Double.parseDouble(y))));\n\t * \n\t * } }\n\t */\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseDocument() Exiting!\");\n }", "protected void parseElements(XmlElement processElement) {\n\n parseStartEvents(processElement);\n parseActivities(processElement);\n parseEndEvents(processElement);\n parseSequenceFlow(processElement);\n }", "public static void main(String[] args) throws JDOMException, IOException, IllegalArgumentException, FeedException {\n\t\tInputStream in = new BufferedInputStream(\n\t new FileInputStream(args[0]));\n\t SAXBuilder builder = new SAXBuilder();\n\t Document doc = builder.build(in);\n\t \n\t \n\t Element root = doc.getRootElement();\n\t System.out.println(root);\n\t System.out.println(root.getName());\n\t System.out.println(root.getChildren());\n\t \n\t //java.util.List αντικείμενο που περιέχει 3 Element αντικείμενα\n\t \n\t}", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "private static void visitChildNodes(NodeList nList)\r\n {\r\n for (int temp = 0; temp < nList.getLength(); temp++)\r\n {\r\n Node node = nList.item(temp);\r\n if (node.getNodeType() == Node.ELEMENT_NODE)\r\n {\r\n System.out.println(node.getNodeName() + \" \" + node.getTextContent());\r\n //Check all attributes\r\n if (node.hasAttributes()) {\r\n // get attributes names and values\r\n NamedNodeMap nodeMap = node.getAttributes();\r\n for (int i = 0; i < nodeMap.getLength(); i++)\r\n {\r\n Node tempNode = nodeMap.item(i);\r\n System.out.println(\"Phone name : \" + tempNode.getNodeValue());\r\n }\r\n if (node.hasChildNodes()) {\r\n //We got more childs; Let's visit them as well\r\n visitChildNodes(node.getChildNodes());\r\n }\r\n }\r\n }\r\n }\r\n }", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void loopingChildren(Node documento) throws IOException, SQLException, Exception {\r\n\r\n\t\tArrayList<ArmazenaErroOuAvisoAntigo> temp = new ArrayList<ArmazenaErroOuAvisoAntigo>();\r\n\r\n\t\tInteger aux = null;\r\n\r\n\t\tif (documento != null) {\r\n\r\n\t\t\t/**\r\n\t\t\t * teste\r\n\t\t\t */\r\n\t\t\tString nomeTag = documento.getNodeName();\r\n\r\n\t\t\t/*\r\n\t\t\t * Pesquisa se eh uma tag especial de parametro.\r\n\t\t\t */\r\n\t\t\tif (nomeTag != null && (TokenNucleo.LINHA.equals(nomeTag) || TokenNucleo.COLUNA.equals(nomeTag)\r\n\t\t\t\t\t|| TokenNucleo.MAE.equals(nomeTag))) {\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Tag de linha que contem o numero da linha e a configuracao de\r\n\t\t\t\t * identacao.\r\n\t\t\t\t */\r\n\t\t\t\tif (TokenNucleo.LINHA.equals(nomeTag)) {\r\n\r\n\t\t\t\t\tlinhaTag = new Integer(documento.getAttributes().item(2).getNodeValue());\r\n\r\n\t\t\t\t\taux = new Integer(documento.getAttributes().item(1).getNodeValue());\r\n\r\n\t\t\t\t\tEspaco2Tag = new Espaco2(aux, new Integer(documento.getAttributes().item(0).getNodeValue()));\r\n\r\n\t\t\t\t\tdocumento = documento.getNextSibling();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Tag de coluna.\r\n\t\t\t\t */\r\n\t\t\t\tif (TokenNucleo.COLUNA.equals(nomeTag)) {\r\n\r\n\t\t\t\t\tcolunaTag = new Integer(documento.getAttributes().item(0).getNodeValue());\r\n\r\n\t\t\t\t\tdocumento = documento.getNextSibling();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * tag mae para todas as outras.\r\n\t\t\t\t */\r\n\t\t\t\tif (TokenNucleo.MAE.equals(nomeTag)) {\r\n\r\n\t\t\t\t\tNodeList children = documento.getChildNodes();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < children.getLength(); i++) {\r\n\r\n\t\t\t\t\t\t// Comeca a fazer um loop para dentro do documento.\r\n\t\t\t\t\t\tloopingChildren(children.item(i));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Se a tag for Tag HTML do Conteudo do Link.\r\n\t\t\t */\r\n\t\t\telse {\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Tipo de No.\r\n\t\t\t\t */\r\n\t\t\t\tshort type = documento.getNodeType();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Se houver um doctype ele eh atribuido a lista de tags, para\r\n\t\t\t\t * que nao ocorra erros.\r\n\t\t\t\t */\r\n\t\t\t\tif (type == Node.DOCUMENT_TYPE_NODE) {\r\n\r\n\t\t\t\t\ttag.add(\"!DOCTYPE\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Reescreve o no para que se possa guardar ela montada.\r\n\t\t\t\t */\r\n\t\t\t\ttagCompleta = new ConversorTexto().reEscrever(documento);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Verificacao HardCoded\r\n\t\t\t\t */\r\n\t\t\t\tif (!nomeTag.equals(\"#text\")) {\r\n\r\n\t\t\t\t\tif (nomeTag.toLowerCase().equals(\"input\")) {\r\n\r\n\t\t\t\t\t\tif (!regras.verificaTextoPredefinidoInput(tagCompleta)) {\r\n\r\n\t\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\t\tv.setPv3(132);\r\n\r\n\t\t\t\t\t\t\tv.setProcurado(\"Value\");\r\n\r\n\t\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (nomeTag.toLowerCase().equals(\"input\") || nomeTag.toLowerCase().equals(\"textarea\")\r\n\t\t\t\t\t\t\t|| nomeTag.toLowerCase().equals(\"select\")) {\r\n\r\n\t\t\t\t\t\tboolean ishidden = false;\r\n\r\n\t\t\t\t\t\tboolean isbutton = false;\r\n\r\n\t\t\t\t\t\tboolean isimage = false;\r\n\r\n\t\t\t\t\t\tboolean comErro = true;\r\n\r\n\t\t\t\t\t\tNamedNodeMap nos = documento.getAttributes();\r\n\r\n\t\t\t\t\t\tfor (int k = 0; k < nos.getLength(); k++) {\r\n\r\n\t\t\t\t\t\t\tif (nos.item(k).getNodeName().toLowerCase().equals(\"type\")) {\r\n\r\n\t\t\t\t\t\t\t\tif (nos.item(k).getNodeValue().toLowerCase().equals(\"hidden\")) {\r\n\r\n\t\t\t\t\t\t\t\t\tishidden = true;\r\n\r\n\t\t\t\t\t\t\t\t} else if (nos.item(k).getNodeValue().toLowerCase().equals(\"button\")) {\r\n\r\n\t\t\t\t\t\t\t\t\tisbutton = true;\r\n\r\n\t\t\t\t\t\t\t\t} else if (nos.item(k).getNodeValue().toLowerCase().equals(\"submit\")) {\r\n\r\n\t\t\t\t\t\t\t\t\tisbutton = true;\r\n\r\n\t\t\t\t\t\t\t\t} else if (nos.item(k).getNodeValue().toLowerCase().equals(\"reset\")) {\r\n\r\n\t\t\t\t\t\t\t\t\tisbutton = true;\r\n\r\n\t\t\t\t\t\t\t\t} else if (nos.item(k).getNodeValue().toLowerCase().equals(\"image\")) {\r\n\r\n\t\t\t\t\t\t\t\t\tisimage = true;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (nos.item(k).getNodeName().equals(\"id\")) {\r\n\r\n\t\t\t\t\t\t\t\tif (regras.verificaLabel(strHtmlSource, nos.item(k).getNodeValue())) {\r\n\r\n\t\t\t\t\t\t\t\t\tcomErro = false;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (ishidden == false && isbutton == false && isimage == false && comErro == true) {\r\n\r\n\t\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\t\tv.setPv3(233);\r\n\r\n\t\t\t\t\t\t\tv.setProcurado(\"Label\");\r\n\r\n\t\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (nomeTag.toLowerCase().equals(\"h1\") || nomeTag.toLowerCase().equals(\"h2\")\r\n\t\t\t\t\t\t\t|| nomeTag.toLowerCase().equals(\"h3\") || nomeTag.toLowerCase().equals(\"h4\")\r\n\t\t\t\t\t\t\t|| nomeTag.toLowerCase().equals(\"h5\") || nomeTag.toLowerCase().equals(\"h6\")) {\r\n\r\n\t\t\t\t\t\tif (regras.verificaH1aH6(strHtmlSource) != 0) {\r\n\r\n\t\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\t\tv.setPv3(217);\r\n\r\n\t\t\t\t\t\t\tv.setProcurado(\"\");\r\n\r\n\t\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!regras.verificaTamFixoEmAtributoStyle(tagCompleta)) {\r\n\r\n\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\tv.setPv3(179);\r\n\r\n\t\t\t\t\t\tv.setProcurado(\"\");\r\n\r\n\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (nomeTag.toLowerCase().equals(\"textarea\")) {\r\n\r\n\t\t\t\t\t\tif (!regras.verificaTextoPredefinidoTextarea(strHtmlSource, tagCompleta)) {\r\n\r\n\t\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\t\tv.setPv3(134);\r\n\r\n\t\t\t\t\t\t\tv.setProcurado(\"\");\r\n\r\n\t\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (nomeTag.toLowerCase().equals(\"frame\")) {\r\n\r\n\t\t\t\t\t\tif (!regras.verificaLongDesc(tagCompleta)) {\r\n\r\n\t\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\t\tv.setPv3(212);\r\n\r\n\t\t\t\t\t\t\tv.setProcurado(\"\");\r\n\r\n\t\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (nomeTag.toLowerCase().equals(\"a\")) {\r\n\r\n\t\t\t\t\t\tif (!regras.verificaSeparadorEmLink(strHtmlSource)) {\r\n\r\n\t\t\t\t\t\t\t// System.out.println(\"oi\");\r\n\r\n\t\t\t\t\t\t\tArmazenaErroOuAvisoAntigo v = new ArmazenaErroOuAvisoAntigo();\r\n\r\n\t\t\t\t\t\t\tv.setPv3(259);\r\n\r\n\t\t\t\t\t\t\tv.setProcurado(\"\");\r\n\r\n\t\t\t\t\t\t\tv.setTag(true);\r\n\r\n\t\t\t\t\t\t\ttemp.add(v);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * No de abertura, ele apenas prossegue a pesquisa com os seus\r\n\t\t\t\t * filhos.\r\n\t\t\t\t */\r\n\t\t\t\tif (type == Node.DOCUMENT_NODE) {\r\n\r\n\t\t\t\t\tloopingChildren(((Document) documento).getDocumentElement());\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * No normal, que deve ser avaliado.\r\n\t\t\t\t */\r\n\t\t\t\telse if (type == Node.ELEMENT_NODE) {\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Guarda o nome da tag para que depois ela possa ser feito\r\n\t\t\t\t\t * o teste se ha uma tag especifica no documento.\r\n\t\t\t\t\t */\r\n\t\t\t\t\ttag.add(documento.getNodeName().toUpperCase());\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Avalia a tag e recebe uma lista de erros.\r\n\t\t\t\t\t */\r\n\t\t\t\t\ttemp.addAll(this.validar.validar(documento));\r\n\r\n\t\t\t\t\tif (temp != null) {\r\n\r\n\t\t\t\t\t\t// informa qual � a tag corrente\r\n\t\t\t\t\t\tcurrentTagName = documento.getNodeName().toLowerCase();\r\n\r\n\t\t\t\t\t\t// Se houver erro guarde ele.\r\n\t\t\t\t\t\tavaliar(temp);\r\n\r\n\t\t\t\t\t\t// System.out.print(\"erro no \" + documento.getNodeName()\r\n\t\t\t\t\t\t// +\"\\n\");\r\n\r\n\t\t\t\t\t\tif (documento.getNodeName().toUpperCase().equals(\"IMG\")) {\r\n\r\n\t\t\t\t\t\t\t// Node\r\n\t\t\t\t\t\t\t// src=documento.getAttributes().getNamedItem(\"src\");\r\n\t\t\t\t\t\t\t// System.out.print(\"img \" + src.getNodeValue()\r\n\t\t\t\t\t\t\t// +\"\\n\");\r\n\r\n\t\t\t\t\t\t} else if (documento.getNodeName().toUpperCase().equals(\"OPTION\")) {\r\n\r\n\t\t\t\t\t\t\t// Node\r\n\t\t\t\t\t\t\t// src=documento.getAttributes().getNamedItem(\"value\");\r\n\t\t\t\t\t\t\t// System.out.print(\"option '\" + src.getNodeValue()\r\n\t\t\t\t\t\t\t// +\"'\\n\");\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Se tiver filhos busque-os.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tNodeList children = documento.getChildNodes();\r\n\r\n\t\t\t\t\tif (children != null) {\r\n\r\n\t\t\t\t\t\tint len = children.getLength();\r\n\r\n\t\t\t\t\t\tfor (int pos = 0; pos < len; pos++) {\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\t * Para cada filho eh feito uma nova consulta.\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tloopingChildren(children.item(pos));\r\n\r\n\t\t\t\t\t\t\t} catch (Error e) {\r\n\r\n\t\t\t\t\t\t\t\tthrow new Exception(\"Erro de overflow\");\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "Iterable<? extends XomNode> elements();", "public void runExample(InputStream file)\n {\n\tparseXmlFile(file);\n\n\t// get each employee element and create a Employee object\n\tparseDocument();\n\n\t// Iterate through the list and print the data\n\t// printData();\n\t//Log.d(Constants.TAG, \"XMLReader::runExample Exiting!\");\n }", "private static void staxReader(File file) throws XMLStreamException, FileNotFoundException, FactoryConfigurationError, IOException {\n\n FileInputStream fis = new FileInputStream(file);\n Page[] ns0pages = StaxPageParser.pagesFromFile(fis);\n\n// reporter(ns0pages);\n }", "public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }", "@Override\n protected void readChildren(XMLStreamReader in) throws XMLStreamException {\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n readChild(in);\n }\n }", "static void parseIt() {\n try {\n long start = System.nanoTime();\n int[] modes = {DET_MODE, SUM_MODE, DOUBLES_MODE};\n String[] filePaths = {\"\\\\catalogue_products.xml\", \"\\\\products_to_categories.xml\", \"\\\\doubles.xml\"};\n HashMap<String, String[]> update = buildUpdateMap(remainderFile);\n window.putLog(\"-------------------------------------\\n\" + updateNodes(offerNodes, update) +\n \"\\nФайлы для загрузки:\");\n for (int i = 0; i < filePaths.length; i++) {\n // Define location for output file\n File outputFile = new File(workingDirectory.getParent() + filePaths[i]);\n pushDocumentToFile(outputFile, modes[i]);\n printFileInfo(outputFile);\n }\n window.putLog(\"-------------------------------------\\nВсего обработано уникальных записей: \" +\n offerNodes.size());\n long time = (System.nanoTime() - start) / 1000000;\n window.putLog(\"Завершено без ошибок за \" + time + \" мс.\");\n offerNodes = null;\n //window.workshop.setParseButtonDisabled();\n } catch (TransformerException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \" (\" + e.getException() + \")\\n\\t\" + e.getMessageAndLocation()));\n } catch (ParserConfigurationException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getLocalizedMessage()));\n } catch (SAXException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(\"SAXexception: \" + e.getMessage()));\n\n } catch (IOException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getMessage() + \". \" + e.getStackTrace()[0]));\n }\n }", "@Override\n public Collection<XmlSuite> parse() throws ParserConfigurationException, SAXException, IOException {\n // Each suite found is put in this list, using their canonical\n // path to make sure we don't add a same file twice\n // (e.g. \"testng.xml\" and \"./testng.xml\")\n List<String> processedSuites = Lists.newArrayList();\n XmlSuite resultSuite = null;\n\n List<String> toBeParsed = Lists.newArrayList();\n List<String> toBeAdded = Lists.newArrayList();\n List<String> toBeRemoved = Lists.newArrayList();\n\n if (m_fileName != null) {\n File mainFile = new File(m_fileName);\n toBeParsed.add(mainFile.getCanonicalPath());\n }\n\n /*\n * Keeps a track of parent XmlSuite for each child suite\n */\n Map<String, XmlSuite> childToParentMap = Maps.newHashMap();\n while (toBeParsed.size() > 0) {\n\n for (String currentFile : toBeParsed) {\n File currFile = new File(currentFile);\n File parentFile = currFile.getParentFile();\n InputStream inputStream = m_inputStream != null ? m_inputStream : new FileInputStream(currentFile);\n\n IFileParser<XmlSuite> fileParser = getParser(currentFile);\n XmlSuite currentXmlSuite = fileParser.parse(currentFile, inputStream, m_loadClasses);\n processedSuites.add(currentFile);\n toBeRemoved.add(currentFile);\n\n if (childToParentMap.containsKey(currentFile)) {\n XmlSuite parentSuite = childToParentMap.get(currentFile);\n //Set parent\n currentXmlSuite.setParentSuite(parentSuite);\n //append children\n parentSuite.getChildSuites().add(currentXmlSuite);\n }\n\n if (null == resultSuite) {\n resultSuite = currentXmlSuite;\n }\n\n List<String> suiteFiles = currentXmlSuite.getSuiteFiles();\n if (suiteFiles.size() > 0) {\n for (String path : suiteFiles) {\n String pathFull = Common.checkFileExtension(path, \"xml\");\n String canonicalPath;\n if (parentFile != null && new File(parentFile, pathFull).exists()) {\n canonicalPath = new File(parentFile, pathFull).getCanonicalPath();\n } else {\n canonicalPath = new File(pathFull).getCanonicalPath();\n }\n if (!processedSuites.contains(canonicalPath)) {\n toBeAdded.add(canonicalPath);\n childToParentMap.put(canonicalPath, currentXmlSuite);\n }\n }\n currentXmlSuite.setSuiteFiles(new LinkedList<String>());\n }\n }\n\n //\n // Add and remove files from toBeParsed before we loop\n //\n for (String s : toBeRemoved) {\n toBeParsed.remove(s);\n }\n toBeRemoved = Lists.newArrayList();\n\n for (String s : toBeAdded) {\n toBeParsed.add(s);\n }\n toBeAdded = Lists.newArrayList();\n\n }\n\n //returning a list of single suite to keep changes minimum\n List<XmlSuite> resultList = Lists.newArrayList();\n resultList.add(resultSuite);\n\n boolean postProcess = true;\n\n if (postProcess && m_postProcessor != null) {\n return m_postProcessor.process(resultList);\n } else {\n return resultList;\n }\n }", "public void loadNodes() {\n\t\tif (taxonomyMap.size() == 0) this.loadNames();\n\n\t\tBufferedReader nodesRdr = null;\n\t\ttry {\n\t\t\tnodesRdr = new BufferedReader(new InputStreamReader(nodesUrl.openStream()));\n\n\t\t\tString line;\n\t\t\twhile ((line = nodesRdr.readLine()) != null) {\n\t\t\t\tString[] parts = line.split(\"\\\\|\");\n\t\t\t\tInteger taxonId = Integer.valueOf(parts[0].trim());\n\t\t\t\tString pti = parts[1].trim();\n\t\t\t\tInteger parentTaxonId = (pti.length() > 0 && !(pti.equals(\"all\"))) ? new Integer(pti) : null;\n\n\t\t\t\t// Get our Taxon object\n\t\t\t\tTaxon t = taxonomyMap.get(taxonId);\n\n\t\t\t\t// Get our parent Taxon\n\t\t\t\tTaxon p = taxonomyMap.get(parentTaxonId);\n\n\t\t\t\t// Set the parent\n\t\t\t\tt.setParent(p);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t} finally {\n\t\t\tthis.close(nodesRdr);\n\t\t}\n\t}", "private void parse ( GPNode node ) {\n\n nodes++;\n\n int d = node.atDepth();\n if ( d > depth ) depth = d;\n\n for ( int i = 0; i < node.children.length; i++ )\n parse(node.children[i]);\n\n }", "public void multiFileStartDocument() throws SAXException\r\n\t{\r\n\t\tsuper.startDocument();\r\n\t\ttagPath = new Stack<Path>();\r\n\t\ttagBeingIgnored = null;\r\n\t\tpassedARecord = false;\r\n\t}", "public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}", "public void EjecutarXML(String path)\n {\n for(ArrayList<NodoXML> l : listaxml)\n {\n for(NodoXML n : l)\n {\n n.ejecutar(this);\n }\n }\n \n /*Ahora las importaciones*/\n// for(ArrayList<NodoXML> l : singlenton.listaAST)\n for(int cont = 0; cont<singlenton.listaAST.size(); cont++)\n {\n ArrayList<NodoXML> l = singlenton.listaAST.get(cont);\n for(NodoXML n : l)\n {\n n.ejecutar(this);\n }\n } \n \n mostrarTraduccion(path);\n }", "private void readFromXMLFile(XMLStreamReader reader) throws XMLStreamException {\n while (reader.hasNext())\n {\n int eventType= reader.next();\n switch (eventType){\n case XMLStreamReader.START_ELEMENT:\n String elemName=reader.getLocalName();\n if (elemName.equals(\"student\"))\n {\n try {\n super.save(readStudent(reader));\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "private NodeList getNodeListFromFile(String xmlFileName) throws ParserConfigurationException, SAXException, IOException {\r\n\t\ttry{\r\n\t\t\t//sample XMLParser code, nothing to change\r\n\t\t\tFile fXmlFile = new File(xmlFileName);\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\t\t\treturn doc.getElementsByTagName(\"element\");\r\n\t\t} catch ( Throwable throwable ) {\r\n\t\t System.out.println(throwable.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void processXMLFile( File xmlFile ) throws SAXException, IOException, ParserConfigurationException {\r\n\t\t\r\n\t\t//parse the uploaded xml file\r\n\t\tDocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\r\n\t\tdomFactory.setValidating(false);\r\n\t\tdomFactory.setIgnoringComments(true);\r\n\t\t\r\n\t\tDocumentBuilder docBuilder = domFactory.newDocumentBuilder();\r\n\t\t\t\r\n\t\tDocument doc = docBuilder.parse(xmlFile);\r\n\t\t\t\t\r\n\t\tElement employeesNode = doc.getDocumentElement();\r\n\t\t\r\n\t\tNodeList employees = employeesNode.getElementsByTagName(\"Employee\");\r\n\t\t\r\n\t\tLogger.debug(\"found \" + employees.getLength() + \" employees in xml document\");\r\n\t\t\r\n\t\tfor (int i=0; i<employees.getLength(); i++ ) {\r\n\t\t\t\r\n\t\t\tHashMap<String,String> contactObject = new HashMap<String,String>();\r\n\t\t\t\r\n\t\t\tElement employee = (Element) employees.item(i);\r\n\t\t\t\r\n\t\t\tcontactObject.put( \"id\", employee.getAttribute(\"id\") );\r\n\t\t\tcontactObject.put( \"givenname\", ContactsImport.getXmlChildNodeValue( employee, \"GivenName\") );\r\n\t\t\tcontactObject.put( \"sn\", ContactsImport.getXmlChildNodeValue( employee, \"SurName\") );\r\n\t\t\tcontactObject.put( \"title\", ContactsImport.getXmlChildNodeValue( employee, \"JobTitle\") );\r\n\t\t\tcontactObject.put( \"mail\", ContactsImport.getXmlChildNodeValue( employee, \"EmailAddress\") );\r\n\t\t\tcontactObject.put( \"telephonenumber\", ContactsImport.getXmlChildNodeValue( employee, \"PhoneNumber\") );\r\n\t\t\t\r\n\t\t\tcreateContact(contactObject);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }", "public void runParser2(int fileNo) {\n\t\t\tparseXmlFile2(fileNo);\r\n\t\t\r\n\t\t\t//get each employee element and create a Employee object\r\n\t\t\tparseDocument2(fileNo);\r\n\t\t\r\n\t\t\t//Iterate through the list and print the data\r\n\t\t\t//printData();\r\n\t\t\t/*try {\r\n\t\t\t\t Thread.sleep(50000);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e) {}\r\n\t\t*/\r\n\t}", "public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}", "public void transfertopurge(File file) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = null;\n String selfNodeID = null;\n try {\n documentBuilder = builderFactory.newDocumentBuilder();\n Document doc = documentBuilder.parse(file);\n doc.getDocumentElement().normalize();\n String rootElement = doc.getDocumentElement().getNodeName();\n String layerIDS = doc.getDocumentElement().getAttribute(\"LayerID\");\n int layerID = Integer.parseInt(layerIDS);\n NodeList nodeList1 = doc.getElementsByTagName(\"DATA\");\n for (int i = 0; i < nodeList1.getLength(); i++) {\n Node node = nodeList1.item(i);\n\n if (node.getNodeType() == node.ELEMENT_NODE) {\n Element element = (Element) node;\n String index = node.getAttributes().getNamedItem(\"INDEX\").getNodeValue();\n\n //Get value of all sub-Elements\n String key = element.getElementsByTagName(\"KEY\").item(0).getTextContent();\n String hashid = String.valueOf(element.getElementsByTagName(\"NEXTHOP\").item(0).getTextContent());\n if (!(hashid.equals(\"RootNode\"))) {\n ObjReturn obj3 = utility.search_entry(key,layerID);\n transfer(key, obj3);\n utility.delete_entry(layerID, key);\n\n }\n }\n }\n\n\n } catch (ParserConfigurationException | IOException e) {\n\n } catch (org.xml.sax.SAXException e) {\n e.printStackTrace();\n }\n }", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}", "private void walk(Node node) {\n\n // check element nodes for license URL\n if (node instanceof Element) {\n findLicenseUrl((Element) node);\n }\n\n // check comment nodes for license RDF\n if (node instanceof Comment) {\n findRdf(((Comment) node).getData());\n }\n\n // recursively walk child nodes\n NodeList children = node.getChildNodes();\n for (int i = 0; children != null && i < children.getLength(); i++) {\n walk(children.item(i));\n }\n }", "private void inOrder(Node root) {\r\n\t\t// inOrderCount++;\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tinOrder(root.getlChild());\r\n\t\tif (inOrderCount < 20) {\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\tinOrderCount++;\r\n\t\t\t//System.out.println(\" Count: \" + inOrderCount);\r\n\t\t}\r\n\t\tinOrder(root.getrChild());\r\n\r\n\t}", "public boolean loadData() {\n try {\n SAXReader reader = new SAXReader();\n Document xmlDoc = reader.read(xmlFile);\n\n Element rootNode = xmlDoc.getRootElement();\n\n rootTreeIterate(rootNode);\n\n } catch (DocumentException ex) {\n logger.error(\"Document loading error:\", ex);\n return false;\n }\n\n return true;\n }", "@Override\n public YFCDocument invoke(YFCDocument inXml) {\n \n YFCElement inEle = inXml.getDocumentElement();\n YFCIterable<YFCElement> yfsItrator = inEle.getChildren(XMLLiterals.ITEM);\n for(YFCElement itemEle : yfsItrator) {\n YFCDocument itemListDoc = YFCDocument.createDocument(XMLLiterals.ITEM_LIST);\n YFCElement itemListEle = itemListDoc.getDocumentElement();\n itemEle.setAttribute(XMLLiterals.ORGANIZATION_CODE, INDIGO_CA);\n itemEle.setAttribute(XMLLiterals.UNIT_OF_MEASURE, EACH);\n itemListEle.importNode(itemEle);\n invokeYantraService(ITEM_LOAD_Q, itemListDoc);\n }\n return inXml;\n }", "public static void main(String[] args) throws Exception, IOException {\n\t\tSAXBuilder build = new SAXBuilder();\n\t\tDocument document = build.build(\"test/books.xml\");\n\t\tElement rootElement = document.getRootElement();\n\t\tList<Element> childElments = rootElement.getChildren();\n\t\tfor (Element element : childElments) {\n\t\t\tBook book = new Book();\n\t\t\tSystem.out.println(\"----------第\"+(childElments.indexOf(element)+1)+\"次循环开始----------\");\n\t\t\tList<Attribute> attrs = element.getAttributes();\n\t\t\tfor (Attribute attribute : attrs) {\n\t\t\t\tString name = attribute.getName();\n\t\t\t\tString value = attribute.getValue();\n\t\t\t\tSystem.out.println(\"属性名:\"+name +\"-------值为:\"+value);\n\t\t\t\tif ( name.equals(\"id\")){\n\t\t\t\t\tbook.setId(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<Element> childELmentss = element.getChildren();\n\t\t\tfor (Element element2 : childELmentss) {\n\t\t\t\tSystem.out.println(\"节点名:\"+element2.getName() + \"-----节点值:\"+element2.getValue());\n\t\t\t\tswitch (element2.getName()){\n\t\t\t\tcase \"name\":\n\t\t\t\t\tbook.setName(element2.getValue());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"author\":\n\t\t\t\t\tbook.setAuthor(element2.getValue());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"year\":\n\t\t\t\t\tbook.setYear(element2.getValue());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"price\":\n\t\t\t\t\tbook.setPrice(element2.getValue());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"language\":\n\t\t\t\t\tbook.setLanguage(element2.getValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"----------第\"+(childElments.indexOf(element)+1)+\"次循环结束----------\");\n\t\t\tSystem.out.println();\n\t\t\tbooklist.add(book);\n\t\t\tSystem.out.println(booklist.size());\n\t\t\tSystem.out.println(booklist.get(0).getName());\n\t\t}\n\t}", "public void visit(NodeList n) {\n for ( Enumeration e = n.elements(); e.hasMoreElements(); )\n ((Node)e.nextElement()).accept(this);\n }", "private void startParsing(){\r\n pondred = new ArrayList<>();\r\n //extract docs from corpus\r\n for (String xml:parseDocsFile(docs_file))\r\n {\r\n try {\r\n pondred.add(loadXMLFromString(xml));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n System.out.println(\"Ending parsing\");\r\n for (Core pon:pondred){\r\n for (String string:pon.abstractTerm){\r\n Double tf = pon.getAbstractFerq(string)/pon.getAbstractSize();\r\n Double idf = Math.log10(Core.count/countingDuplicates(string));\r\n pon.abstractFrequence.put(string,tf*idf);\r\n }\r\n pon.finish();\r\n }\r\n }", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "private void collectAllElements(List<Node<E>> list) {\n list.add(root);\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i).children != null) {\n list.addAll(list.get(i).children);\n }\n }\n }", "public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}", "@Override\n public OctreeIterator iterator()\n {\n Stack<CelestialBody> stack = new Stack<>();\n stack = this.root.iterate(stack);\n\n OctreeIterator iterator = new OctreeIterator(stack);\n return iterator;\n }", "@Override public void outputAllNames(Set<String> files,IvyXmlWriter xw)\n{\n resolve();\n\n Set<String> done = new HashSet<String>();\n\n\n for (RebaseJavaFile jf : file_nodes) {\n // output package element\n if (files != null && !files.contains(jf.getFile().getFileName())) continue;\n\n RebaseFile rf = jf.getFile();\n String pkg = rf.getPackageName();\n if (pkg != null && pkg.length() > 0 && !done.contains(pkg)) {\n\t done.add(pkg);\n\t xw.begin(\"ITEM\");\n\t xw.field(\"HANDLE\",rf.getPackageName() + \"/\" + pkg);\n\t xw.field(\"NAME\",pkg);\n\t File f1 = new File(rf.getFileName());\n\t xw.field(\"PATH\",f1.getParent());\n\t xw.field(\"PROJECT\",rf.getProjectName());\n\t xw.field(\"SOURCE\",\"USERSOURCE\");\n\t xw.field(\"TYPE\",\"Package\");\n\t xw.end(\"ITEM\");\n }\n\n xw.begin(\"FILE\");\n xw.textElement(\"PATH\",jf.getFile().getFileName());\n\n OutputVisitor ov = new OutputVisitor(jf,xw);\n jf.getAstNode().accept(ov);\n\n xw.end(\"FILE\");\n }\n}", "private void readXGMML() throws JAXBException, IOException {\n \n \t\ttry {\n \t\t\tnodeAttributes = Cytoscape.getNodeAttributes();\n \t\t\tedgeAttributes = Cytoscape.getEdgeAttributes();\n \t\t\tnetworkCyAttributes = Cytoscape.getNetworkAttributes();\n \n \t\t\t// Use JAXB-generated methods to create data structure\n \t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(\n \t\t\t\t\tXGMML_PACKAGE, this.getClass().getClassLoader());\n \t\t\t// Unmarshall the XGMML file\n \t\t\tfinal Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n \n \t\t\t/*\n \t\t\t * Read the file and map the entire XML document into data\n \t\t\t * structure.\n \t\t\t */\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(-1);\n \t\t\t\ttaskMonitor.setStatus(\"Reading XGMML data...\");\n \t\t\t}\n \t\t\t\n \t\t\tnetwork = (Graph) unmarshaller.unmarshal(networkStream);\n \t\t\t// Report Status Value\n \t\t\tif (taskMonitor != null) {\n \t\t\t\t//taskMonitor.setPercentCompleted(50);\n \t\t\t\ttaskMonitor.setStatus(\"XGMML file is valid. Next, create network...\");\n \t\t\t}\n \t\t\tnetworkName = network.getLabel();\n \n \t\t\trootNodes = new ArrayList();\n \n \t\t\t// Split the list into two: node and edge list\n \t\t\tnodes = new ArrayList();\n \t\t\tedges = new ArrayList();\n \t\t\tfinal Iterator it = network.getNodeOrEdge().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal Object curObj = it.next();\n \t\t\t\tif (curObj.getClass() == cytoscape.generated2.impl.NodeImpl.class) {\n \t\t\t\t\tnodes.add(curObj);\n \t\t\t\t} else {\n \t\t\t\t\tedges.add(curObj);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// Build the network\n \t\t\tcreateGraph();\n \n \t\t\t// It's not generally a good idea to catch OutOfMemoryErrors, but\n \t\t\t// in this case, where we know the culprit (a file that is too\n \t\t\t// large),\n \t\t\t// we can at least try to degrade gracefully.\n \t\t} catch (OutOfMemoryError oe) {\n \t\t\tnetwork = null;\n \t\t\tedges = null;\n \t\t\tnodes = null;\n \t\t\tnodeIDMap = null;\n \t\t\tnodeMap = null;\n \t\t\tSystem.gc();\n \t\t\tthrow new XGMMLException(\n \t\t\t\t\t\"Out of memory error caught! The network being loaded is too large for the current memory allocation. Use the -Xmx flag for the java virtual machine to increase the amount of memory available, e.g. java -Xmx1G cytoscape.jar -p plugins ....\");\n \t\t}\n \t}", "private void printFullTree()\r\n {\r\n System.out.println(fullXmlTree.toString());\r\n }", "@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "public void run() {\n\t\t\twhile (parent.getFileStack().size() > 0) {\n\t\t\t\tFile file = parent.getFileStack().pop();\n\t\t\t\tthis.processFile(file);\n\t\t\t}\n\t\t}", "public TSETInfoTables parseXml(String fileName) { \n\t\ttry { \n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder(); \n\t\t\tDocument document = db.parse(fileName); \n\t\t\tNodeList TSETInfoTablesNodeList = document.getChildNodes(); \n\t\t\tNode TSETInfoTablesNode = TSETInfoTablesNodeList.item(0); \n\t\t\t//if (!columnNode.hasChildNodes()) continue;\n\t\t\t\n\t\t\t// pojo\n\t\t\tTSETInfoTables infoTables = new TSETInfoTables();\n\t\t\tList<MetaDB> metaDBList = new ArrayList<MetaDB>();\n\t\t\t//infoTables.setMetaDBList(metaDBList);\n\t\t\t\n\t\t\tNodeList metaDBNodeList = TSETInfoTablesNode.getChildNodes();\n\t\t\tfor (int i = 0; i < metaDBNodeList.getLength(); i++) { \n\t\t\t\tNode metaDBNode = metaDBNodeList.item(i);\n\t\t\t\t// tackle the CRLF character, otherwise it will be treated as a empty node.\n\t\t\t\tif (!metaDBNode.hasChildNodes()) continue;\n\t\t\t\tMetaDB metaDB = new MetaDB();\n\t\t\t\t//metaDBList.add(metaDB);\n\t\t\t\tthis.parseMetaDBAttribute(metaDBNode, metaDB);\n\t\t\t\tList<Table> tableList = new ArrayList<Table>();\n\t\t\t\t//metaDB.setTableList(tableList);\n\t\t\t\t\n\t\t\t\tNodeList tableNodeList = metaDBNode.getChildNodes(); \n\t\t\t\tfor (int j = 0; j < tableNodeList.getLength(); j++) { \n\t\t\t\t\tNode tableNode = tableNodeList.item(j); \n\t\t\t\t\tif (!tableNode.hasChildNodes()) continue;\n\t\t\t\t\tTable table = new Table();\n\t\t\t\t\t//tableList.add(table);\n\t\t\t\t\tthis.parseTableAttribute(tableNode, table);\n\t\t\t\t\tList<Column> columnList = new ArrayList<Column>();\n\t\t\t\t\t//table.setColumnList(columnList);\n\t\t\t\t\t\n\t\t\t\t\tNodeList columnNodeList = tableNode.getChildNodes(); \n\t\t\t\t\tfor (int k = 0; k < columnNodeList.getLength(); k++) { \n\t\t\t\t\t\tNode columnNode = columnNodeList.item(k);\n\t\t\t\t\t\tif (!columnNode.hasChildNodes()) continue;\n\t\t\t\t\t\t//this.parseAttribute(columnNode);\n\t\t\t\t\t\tColumn column = new Column();\n\t\t\t\t\t\t//columnList.add(column);\n\t\t\t\t\t\tthis.parseColumnAttribute(columnNode, column);\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList columnContentNodeList = columnNode.getChildNodes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int m = 0; m < columnContentNodeList.getLength(); m++) {\n\t\t\t\t\t\t\t//Node columnContent = columnContentList.item(m);\n\t\t\t\t\t\t\tNode columnContentNode = columnContentNodeList.item(m);\n\t\t\t\t\t\t\t// The CRLF character will be treated as a node, so using IF.\n\t\t\t\t\t\t\tif (columnContentNode.hasChildNodes()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (columnContentNode.getNodeName().equals(\"columnName\")) {\n\t\t\t\t\t\t\t\t\tcolumn.setName(columnContentNode.getTextContent());\n\t\t\t\t\t\t\t\t} else if (columnContentNode.getNodeName().equals(\"columnType\")) {\n\t\t\t\t\t\t\t\t\tcolumn.setType(columnContentNode.getTextContent());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlogger.error(\"unknown column content.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcolumnList.add(column);\n\t\t\t\t\t} \n\t\t\t\t\ttable.setColumnList(columnList);\n\t\t\t\t\ttableList.add(table);\n\t\t\t\t\tlogger.info(j + \" table tackled.\");\n\t\t\t\t} \n\t\t\t\tmetaDB.setTableList(tableList);\n\t\t\t\tmetaDBList.add(metaDB);\n\t\t\t\tlogger.info(i + \" metaDB tackled.\");\n\t\t\t} \n\t\t\tinfoTables.setMetaDBList(metaDBList);\n\t\t\tlogger.info(\"Parse XML success.\");\n\t\t\treturn infoTables;\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (ParserConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (SAXException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IOException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t\treturn null;\n\t}", "public void parseDocument(File XMLInputFile) throws FunctionException {\r\n\t\t\t\r\n\t\t\tLog.log(\"XMLParser -> parseDocument started\");\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t//get a factory\r\n\t\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\r\n\t\t\t\t//get a new instance of parser\r\n\t\t\t\tSAXParser sp = spf.newSAXParser();\r\n\t\t\t\t//parse the file and also register this class for call backs\r\n\t\t\t\tsp.parse(XMLInputFile, this);\r\n\t\t\t}catch(SAXException se) {\r\n\t\t\t\tthrow new FunctionException(\"SAXException had occurred.\\n\"+se.getMessage());\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\tthrow new FunctionException(\"ParserConfigurationException had occurred.\\n\"+pce.getMessage());\r\n\t\t\t}catch (IOException ie) {\r\n\t\t\t\tthrow new FunctionException(\"IOException had occurred.\\n\"+ie.getMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.log(\"XMLParser -> parseDocument completed\");\r\n\t\t}", "public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void buildListDevices(final String fileName) {\n XMLStreamReader reader;\n String name;\n try (FileInputStream inputStream\n = new FileInputStream(new File(fileName))) {\n reader = inputFactory.createXMLStreamReader(inputStream);\n\n while (reader.hasNext()) {\n int type = reader.next();\n if (type == XMLStreamConstants.START_ELEMENT) {\n name = reader.getLocalName();\n parseSpecificDevice(name, reader);\n }\n }\n\n LOGGER.info(\"Parsing by DOM parser was successfully done!\");\n } catch (XMLStreamException ex) {\n LOGGER.error(\"StAX parsing error!\");\n } catch (FileNotFoundException ex) {\n LOGGER.error(\"File \" + fileName + \" not found!\");\n } catch (ParsingException e) {\n LOGGER.error(e.getMessage());\n } catch (IOException e) {\n LOGGER.error(\"Exception with file.\");\n }\n }", "private void addSubnodes( Element root, String node_name ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement( node_name );\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\r\n\r\n\t\tint num = Inputs.getInt( \"¿Cuántos sub-elementos tiene <\" + node_name + \">?\" );\r\n\r\n\t\tfor ( int i = 0; i < num; i++ ) {\r\n\r\n\t\t\taddSubnodes( element, ( i + 1 ));\r\n\t\t}\r\n\t}", "@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n // <document>\n if (localName.equals(\"document\")) {\n curArticle = new ArticleSmallOpinion();\n curTagiot = new ArrayList<Tagit>();\n\n // add values\n if (atts.getValue(\"doc_id\") != null) curArticle.setDoc_id(atts.getValue(\"doc_id\"));\n if (atts.getValue(\"title\") != null) curArticle.setTitle(atts.getValue(\"title\"));\n if (atts.getValue(\"sub_title\") != null) curArticle.setSubTitle(atts.getValue(\"sub_title\"));\n if (atts.getValue(\"f7\") != null) curArticle.setF7(atts.getValue(\"f7\"));\n String author = atts.getValue(\"author_icon\");\n author = extractImageUrl(author);\n if (atts.getValue(\"author_icon\") != null) curArticle.setAuthorImgURL(author);\n if (atts.getValue(\"Created_On\") != null) curArticle.setCreatedOn(atts.getValue(\"Created_On\"));\n\n }\n // <f2>\n else if (localName.equals(\"f2\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF2(atts.getValue(\"src\"));\n\n // currently not holding image photographer via \"title=\"\n }\n // <f3>\n if (localName.equals(\"f3\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF3(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <f4>\n else if (localName.equals(\"f4\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF4(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <tagit>\n else if (localName.equals(\"tagit\")) {\n Tagit tagit = new Tagit(atts.getValue(\"id\"), atts.getValue(\"simplified\"), \"\");\n curTagiot.add(tagit);\n }\n\n }", "abstract public void data(Document document, Element rootElement);", "@Test\n public void simpleXmlParsingTest() throws ParserConfigurationException, SAXException, IOException {\n String simpleInput = \"<test></test>\";\n TestTreeNode root = TestingUtils.parseXmlTree(simpleInput);\n\n assertThat(root, notNullValue());\n assertThat(root.getLabel().get(), is(\"test\"));\n assertThat(root.getChildren().isPresent(), is(false));\n }", "public ArrayList<Publication> parseXML(){\n ArrayList<Publication> publications = new ArrayList<Publication>();\n try {\n System.out.println(\"Starting parse xml\");\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(new File(\"dblp_abstract_dataset.xml\"));\n document.getDocumentElement().normalize();\n NodeList nodeList = document.getDocumentElement().getChildNodes();\n parseChannelNodes(nodeList,publications);\n System.out.println(\"publications count: \"+publications.size());\n }catch (ParserConfigurationException ex){\n ex.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return publications;\n }", "public void exec() throws IOException, XMLStreamException {\n\n\t\tdoc_set = new HashSet<String>();\n\n\t\t// XML event reader of source XML file\n\n\t\tXMLInputFactory in_factory = XMLInputFactory.newInstance();\n\n\t\tInputStream in = PgSchemaUtil.getSchemaInputStream(sph_data_in_path);\n\n\t\tXMLEventReader reader = in_factory.createXMLEventReader(in);\n\n\t\t// XML event writer of extracted XML file\n\n\t\tXMLOutputFactory out_factory = XMLOutputFactory.newInstance();\n\n\t\t// XML event writer of extracted XML file\n\n\t\tBufferedWriter bout = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(sph_data_out_path), PgSchemaUtil.def_encoding), PgSchemaUtil.def_buffered_output_stream_buffer_size);\n\n\t\txml_writer = out_factory.createXMLEventWriter(bout);\n\n\t\t// XML event writer for interim XML content before xml_writer is prepared\n\n\t\tinterim_events = new ArrayList<XMLEvent>();\n\n\t\tXMLEvent event;\n\t\tEventHandler handler;\n\n\t\twhile (reader.hasNext()) {\n\n\t\t\tevent = reader.nextEvent();\n\n\t\t\thandler = read_handlers.get(event.getEventType());\n\n\t\t\thandler.handleEvent(event);\n\n\t\t}\n\n\t\tinterim_events.clear();\n\n\t\tbout.close();\n\n\t\treader.close();\n\n\t\tin.close();\n\n\t\tdoc_set.clear();\n\n\t\tread_handlers.clear();\n\n\t}", "public static NodeList readXML(String filename, String id)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\r\n\t \r\n\t\t \r\n\t\treturn list;\r\n\t}", "@Test\n public void testODTXHTMLIsParseable() throws Exception {\n int filesTested = 0;\n for (Path p : getAllTestFiles()) {\n String fileName = p.getFileName().toString();\n if (fileName.endsWith(\".odt\") || fileName.endsWith(\"odp\") || fileName.endsWith(\"odf\") ||\n fileName.endsWith(\".ods\")) {\n\n XMLResult xmlResult = null;\n try (InputStream is = TikaInputStream.get(p)) {\n xmlResult = getXML(is, AUTO_DETECT_PARSER, new Metadata());\n } catch (Exception e) {\n continue;\n }\n try {\n //just make sure this doesn't throw any exceptions\n XMLReaderUtils.parseSAX(new ByteArrayInputStream(xmlResult.xml.getBytes(StandardCharsets.UTF_8)),\n new DefaultHandler(), new ParseContext());\n filesTested++;\n } catch (Exception e) {\n fail(p.getFileName().toString(), e);\n }\n }\n }\n assertTrue(filesTested > 10);\n }", "NodeList getNodeList(String path)\n throws ProcessingException;", "private void readFeed(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n String name;\n\n while (parser.next() != XmlPullParser.END_TAG) {\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n\n if (complete_flag) {\n break;\n }\n continue;\n }\n name = parser.getName();\n // Starts by looking for the entry tag\n if (name.equals(\"student\")) {\n readEntry(parser);\n } else {\n skip(parser);\n }\n }\n\n }", "private void processTaxonomyChildren(TaxonomyNode parent, NodeList nodes) {\n\t\tif (nodes != null && nodes.getLength() != 0) {\n\t\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node ch = nodes.item(i);\n\n\t\t\t\tif (!(ch instanceof Text)) {\n\t\t\t\t\tElement currNode = (Element) nodes.item(i);\n\n\t\t\t\t\tTaxonomyNode taxNode = new TaxonomyNode(currNode.getAttribute(\"name\"), parent);\n\t\t\t\t\ttaxonomyMap.put(taxNode.value, taxNode);\n\t\t\t\t\tif (parent != null)\n\t\t\t\t\t\tparent.children.add(taxNode);\n\n\t\t\t\t\tNodeList children = currNode.getChildNodes();\n\t\t\t\t\tprocessTaxonomyChildren(taxNode, children);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.65557235", "0.6219058", "0.6160418", "0.61095965", "0.58883935", "0.58328784", "0.5774692", "0.56984985", "0.5658915", "0.5654007", "0.56437427", "0.5620316", "0.5601725", "0.556761", "0.5508622", "0.5496912", "0.54313475", "0.54313475", "0.54313475", "0.5417994", "0.5415896", "0.54140735", "0.539581", "0.53677106", "0.5359741", "0.5335156", "0.53068554", "0.52981645", "0.5285849", "0.52643687", "0.5259738", "0.5249063", "0.52441734", "0.52438605", "0.5241745", "0.5237625", "0.5225795", "0.52155447", "0.5200611", "0.5189456", "0.51892966", "0.5188357", "0.5179239", "0.5160521", "0.51465213", "0.51449317", "0.51434815", "0.51303005", "0.51281565", "0.5122292", "0.5111429", "0.50989044", "0.5098178", "0.50956494", "0.50778544", "0.5076928", "0.5073076", "0.5059329", "0.5028967", "0.50237226", "0.50114965", "0.50088394", "0.49918494", "0.4986591", "0.49725989", "0.49717227", "0.49692196", "0.49178645", "0.48959652", "0.4894073", "0.48939112", "0.48898506", "0.48784757", "0.48722133", "0.48666954", "0.48547876", "0.48513296", "0.4846813", "0.4810633", "0.48076227", "0.4805096", "0.4804993", "0.47979528", "0.47932285", "0.47912183", "0.47909892", "0.47901458", "0.47901118", "0.4778226", "0.47775277", "0.4775733", "0.47753572", "0.47656262", "0.4762749", "0.47546595", "0.47530305", "0.4749384", "0.4749346", "0.4748171", "0.4739293" ]
0.61130357
3
Process class inheritance nodes
private void processClassParentNode(Element node) { ClassDataItem cls = new ClassDataItem(node.attributeValue("name"), node.attributeValue(DESCRIPTION_ATTRIBUTE)); Iterator childNodes = node.elementIterator(); while (childNodes.hasNext()) { cls.addChildNode(((Element) childNodes.next()).attributeValue("name")); } classes.add(cls); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "public abstract void process(final EClass Super, final EClass Sub);", "@Override\n public void visit(ClassDefinitionNode classDefinitionNode) {\n }", "private void buildGraph(Classes classes) {\n \t\n\tadjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n\t//add primitives to the children of object\n ArrayList<String> objectlist = adjacencyList.get(TreeConstants.Object_.getString());\n objectlist.add(TreeConstants.IO.getString());\n objectlist.add(TreeConstants.Int.getString());\n objectlist.add(TreeConstants.Bool.getString());\n objectlist.add(TreeConstants.Str.getString());\n adjacencyList.put(TreeConstants.Object_.getString(), objectlist);\n \tfor (Enumeration e = classes.getElements(); e.hasMoreElements(); ) {\n \t class_c currentClass = ((class_c)e.nextElement());\n \n \t // If the same class name is already present, that's a redefinition error\n \t String className = currentClass.getName().toString();\n \t if (!nameToClass.containsKey(className)) {\n \t \tnameToClass.put(currentClass.getName().toString(), currentClass);\n \t } else {\n \t \tsemantError(currentClass).println(\"Class \" + className + \" was previously defined\");\n \t \tcontinue;\n \t }\n \t // if parent already present in HashMap, append child to list of children\n \t String parent = currentClass.getParent().toString();\n \t if ( !adjacencyList.containsKey(parent) ) {\n \t\tadjacencyList.put(parent, new ArrayList<String>() );\n \t }\n \t adjacencyList.get(parent).add(currentClass.getName().toString());\n \t}\n \n // Check if each parent in a parent-child inheritance is a valid class\n HashSet<String> bogusClasses = new HashSet<String>();\n for (String parent : adjacencyList.keySet()) {\n \tif (!nameToClass.containsKey(parent)) {\n \t\tfor (String child: adjacencyList.get(parent)) {\n \t\t\tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" inherits from an undefined class \" + parent);\n \t\t}\n \t\t// Remove the bogus parent class from the graph\n \t\tbogusClasses.add(parent);\n \t}\n }\n // Remove the bogus parent class from the graph\n for (String bogus : bogusClasses) {\n \tadjacencyList.remove(bogus);\n }\n if (Flags.semant_debug) {\n \tSystem.out.println(\"Pruned out unreachable classes\");\n }\n \n // Also check if someone's inheriting from the Basic classes other than Object & IO\n for (String child : adjacencyList.get(TreeConstants.Int.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Int\");\n }\n for (String child : adjacencyList.get(TreeConstants.Str.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Str\");\n }\n for (String child : adjacencyList.get(TreeConstants.Bool.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Bool\");\n }\n // No point in continuing further. The above classes are going to propagate more errors\n if (Flags.semant_debug) {\n \tSystem.out.println(\"Checked for simple inheritance errors\");\n }\n if (errors()) {\n \treturn;\n }\n \n \t// Now check for cycles\n \t// Do the depth first search of this adjacency list starting from Object\n \tHashMap<String, Boolean> visited = new HashMap<String, Boolean>();\n \tfor (String key : adjacencyList.keySet() ) {\n \t\tvisited.put(key, false);\n \t\tfor ( String value : adjacencyList.get(key) ) {\n \t\t\tvisited.put(value, false);\n \t\t}\n \t}\n \tdepthFirstSearch(visited, TreeConstants.Object_.toString());\n \t// It is legal to inherit from the IO class. So mark classes down that tree as well\n\t\n\t/*depthFirstSearch(visited, TreeConstants.IO.getString());\n \t// Check for unreachable components - unreachable classes are cycles\n \t// Except the Bool, IO, Int and String. Hack - set them to true\n \tvisited.put(TreeConstants.IO.getString(), true);\n \tvisited.put(TreeConstants.Bool.getString(), true);\n \tvisited.put(TreeConstants.Str.getString(), true);\n \tvisited.put(TreeConstants.Int.getString(), true);\n\t*/\n \tfor (String key : visited.keySet()) {\n \t\tif (!visited.get(key)) {\n \t\t\tsemantError(nameToClass.get(key)).println(\"Class \" + key + \" or an ancestor is involved in an inheritance cycle.\");\n \t\t}\n \t} \n \n \tif (Flags.semant_debug) {\n \t\tSystem.out.println(\"Checked for cycles\");\n \t}\n \t}", "public void visit(ClassDeclExtends node) {\n Symbol key = Symbol.symbol(node.name.s);\n ClassInfo data = new ClassInfo(key);\n\n // Chama o firstPass() para as variaveis\n VarDeclListHandler.firstPass(env, data, node.varList);\n\n // Chama o firstPass() para os metodos\n MethodDeclListHandler.firstPass(env, data, node.methodList);\n\n // Insere a classe na tabela\n if (!env.classes.put(key, data)) {\n env.err.Error(node, new Object[] {\"Nome de classe redefinido: \" + key});\n }\n }", "@Override\n\tpublic void inAClass(AClass node) {\n\t\tString className = node.getType().getText();\n\t\tcurrentClass = topLevelSymbolTable.get(className);\n\t\tif (currentClass.isAbstract()){\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER | Constants.ACC_ABSTRACT, null);\n\t\t}else{\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER, null);\n\t\t}\n\t\tcp = cg.getConstantPool(); \n\t}", "@Override\r\n\tpublic void transform(ClassNode cn) {\n\t\t\r\n\t}", "@Test public void testInheritance () {\n ArrayList<String> point = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"Point\") );\n GNode pointNode = treeManager.dereference(point);\n\n ArrayList<String> colorPoint = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"ColorPoint\") );\n GNode colorNode = treeManager.dereference(colorPoint);\n\n assertTrue( colorNode != null );\n assertTrue( pointNode != null );\n GNode g = (GNode)(treeManager.getParent(colorNode).getProperty(\"ClassDeclaration\"));\n \n\n assertTrue( treeManager.getParent(colorNode) == pointNode );\n\n //\n // Test distinction between package names\n //\n\n ArrayList<String> otherColor =\n new ArrayList<String>( Arrays.asList(\"org\", \"fake\",\n \"ColorPoint\"));\n GNode otherColorNode = treeManager.dereference(otherColor);\n\n assertTrue( otherColorNode != null );\n assertTrue( treeManager.getParent( otherColorNode )\n != treeManager.getParent(colorNode) );\n assertTrue( otherColorNode != colorNode );\n }", "private void fetchSubclassHierarchy() throws IOException {\n\t\tSystem.out.println(\"Fetching subclass relationships from SPARQL ...\");\n\t\ttry (InputStream response = runSparqlQuery(\"PREFIX ps: <http://www.wikidata.org/prop/statement/>\\n\"\n\t\t\t\t+ \"PREFIX p: <http://www.wikidata.org/prop/>\\n\"\n\t\t\t\t+ \"SELECT ?subC ?supC WHERE { ?subC p:P279/ps:P279 ?supC }\")) {\n\t\t\tSystem.out.println(\"Processing subclass relationships ...\");\n\n\t\t\t// DEBUG\n\t\t\t// BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t// response));\n\t\t\t// String read;\n\t\t\t// while ((read = br.readLine()) != null) {\n\t\t\t// System.out.println(read);\n\t\t\t// }\n\t\t\t// System.out.println(\"*** done ***\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tJsonNode root = mapper.readTree(response);\n\t\t\tJsonNode bindings = root.path(\"results\").path(\"bindings\");\n\t\t\tint count = 0;\n\t\t\tfor (JsonNode binding : bindings) {\n\t\t\t\tcount++;\n\t\t\t\tInteger subId = getNumId(binding.path(\"subC\").path(\"value\")\n\t\t\t\t\t\t.asText(), true);\n\t\t\t\tInteger supId = getNumId(binding.path(\"supC\").path(\"value\")\n\t\t\t\t\t\t.asText(), true);\n\t\t\t\tif (supId == 0 || subId == 0) {\n\t\t\t\t\tSystem.out.println(\"Ignoring \"\n\t\t\t\t\t\t\t+ binding.path(\"subC\").path(\"value\").asText()\n\t\t\t\t\t\t\t+ \" subClassOf \"\n\t\t\t\t\t\t\t+ binding.path(\"supC\").path(\"value\").asText());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tgetClassRecord(subId).directSuperClasses.add(supId);\n\t\t\t\tClassRecord superClass = getClassRecord(supId);\n\t\t\t\tsuperClass.subclassCount++;\n\t\t\t\tif (count % 10000 == 0) {\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Found \" + count\n\t\t\t\t\t+ \" subclass relationships among \"\n\t\t\t\t\t+ this.classRecords.size() + \" Wikidata items.\");\n\n\t\t\tSystem.out.println(\"Computing indirect subclass relationships ...\");\n\t\t\tfor (ClassRecord classRecord : this.classRecords.values()) {\n\t\t\t\tfor (Integer superClass : classRecord.directSuperClasses) {\n\t\t\t\t\taddSuperClasses(superClass, classRecord);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Computing total subclass counts ...\");\n\t\t\tfor (ClassRecord classRecord : this.classRecords.values()) {\n\t\t\t\tfor (Integer superClass : classRecord.superClasses) {\n\t\t\t\t\tgetClassRecord(superClass).allSubclassCount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Preprocessing of class hierarchy complete.\");\n\t\t}\n\t}", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theModel.waitingAssociations.iterator();\n\t for (Iterator<FamixAssociation> i=iterator ; i.hasNext();) {\n\t \tboolean inheritanceAssociation = false;\n\t \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n\t \tFamixAssociation association = (FamixAssociation) i.next();\n\t\t String uniqueNameFrom = association.from;\n\n \t/* Test helper\n \tif (association.from.startsWith(\"Limaki.Actions.Command\")){\n \t\tboolean breakpoint = true;\n \t} */\n\n\t\t if (association instanceof FamixInheritanceDefinition){\n\t\t \tinheritanceAssociation = true;\n\t\t }\n \tif (inheritanceAssociation) {\n\t\t\t if (theModel.classes.containsKey(uniqueNameFrom)) {\n\t\t\t \tfromExists = true;\n\t\t\t }\n \t}\n \tif (inheritanceAssociation && fromExists) {\n\t\t\t if ((association.to != null) && (!association.to.equals(\"\"))) {\n\t\t\t \ttoHasValue = true;\n\t\t\t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n\t\t\t\t \ttoExists = true;\n\t\t\t\t }\n\t\t\t }\n \t}\n\t\t // If association.to is not a unique name of an existing type, try to replace it by the complete unique name.\n\t \t// Determine the type of association.to, first based on imports, and second based on package contents.\n\t \tif (inheritanceAssociation && fromExists && !toExists && toHasValue) {\n String to = findClassInImports(association.from, association.to);\n if (!to.equals(\"\")) {\n association.to = to;\n }\n else {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t to = findClassInPackage(association.to, belongsToPackage);\n\t if (!to.equals(\"\")) { // So, in case association.to shares the same package as association.from \n\t association.to = to;\n\t }\n }\n \t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n \t\t \ttoExists = true;\n \t\t }\n \t}\n\t \tif (inheritanceAssociation && fromExists && toExists && !theModel.associations.contains(association)) {\n\t\t \t// Add the inheritance association to the FamixModel, but only if to and from are equal. \n\t \tif (!association.from.equals(association.to)) { \n\t \t\taddToModel(association);\n\t \t}\n\n\t \t// Fill the HashMap inheritanceAccociationsPerClass with inheritance dependencies to super classes or interfaces \n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = null;\n\t \tfoundInheritanceList = null;\n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = association;\n\t \tif(inheritanceAssociationsPerClass.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedInheritanceList = inheritanceAssociationsPerClass.get(uniqueNameFrom);\n\t \t\tif (!alreadyIncludedInheritanceList.contains(association.to)) {\n\t \t\t\talreadyIncludedInheritanceList.add(foundInheritance.to);\n\t \t\t}\n\t \t\tinheritanceAssociationsPerClass.put(uniqueNameFrom, alreadyIncludedInheritanceList);\n\t \t}\n\t \telse{\n\t\t \tfoundInheritanceList = new HashSet<String>();\n\t\t \tfoundInheritanceList.add(foundInheritance.to);\n\t\t \tinheritanceAssociationsPerClass.put(uniqueNameFrom, foundInheritanceList);\n\t \t}\n\t \t\n\t \t// Remove from waitingAssociations afterwards, to enhance the performance. \t\n\t\t\t i.remove();\n\t \t}\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.debug(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n\t\tindirectAssociations_DeriveIndirectInheritance();\n this.logger.info(new Date().toString() + \" Finished: processInheritanceAssociations()\");\n }", "private void parse(String input, TypeClass parent) throws IOException {\r\n \t\tString line = input.replaceAll(\"^\\\\s+\", \"\");\r\n \t\tif(line.startsWith(\"class\")) {\r\n \t\t\t\r\n \t\t\tString[] spl = line.split(\" \", 2);\r\n \t\t\tTypeClass typeClass = new TypeClass(spl[1], parent);\r\n \t\t\tparent.getChilds().add(typeClass);\r\n \t\t\tlogger.debug(\"Found class: \" + typeClass);\r\n \t\t\t\r\n \t\t\t\r\n \t\t\twhile(! (line = reader.readLine().replaceAll(\"^\\\\s+\", \"\")).startsWith(\"}\")) {\r\n \t\t\t\tparse(line, typeClass);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\t\r\n \t\t\r\n \t\tif(parent.toString().startsWith(\"Vehicles\")) {\r\n \t\t\tif(parent.getObject() == null) {\r\n \t\t\t\tparent.setObject(new Vehicle());\r\n \t\t\t}\r\n \t\t\tTypeClass p = parent.getParent();\r\n \t\t\tif(p.toString().startsWith(\"Item\")) {\r\n \t\t\t\t\r\n \t\t\t\t((Vehicle)parent.getObject()).setSide(((Item)p.getObject()).getSide());\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t\tif(parent.toString().startsWith(\"Item\")) {\r\n \t\t\tif(parent.getObject() == null) {\r\n \t\t\t\tparent.setObject(new Item(parent.toString()));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"position[]\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\ttmp = tmp[1].split(\",\", 3);\r\n \t\t\t\tString x, y, z;\r\n \t\t\t\tx = tmp[0].replaceAll(\"\\\\{\", \"\");\r\n \t\t\t\tz = tmp[1];\r\n \t\t\t\ty = tmp[2].replaceAll(\"\\\\}\\\\;\", \"\");\r\n \t\t\t\t((Item)parent.getObject()).setPosition(new Position(x, y, \"0\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"id\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setId(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"side\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setSide(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"vehicle\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setVehicle(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"skill\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setSkill(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"leader\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setLeader(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"init\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setInit(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"name\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setName(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"markerType\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setMarkerType(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"type\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setType(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"presenceCondition\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setPresenceCondition(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t\tif(line.startsWith(\"azimut\")) {\r\n \t\t\t\tString[] tmp = line.split(\"=\", 2);\r\n \t\t\t\t((Item)parent.getObject()).setAzimut(tmp[1].replaceAll(\"\\\\;\", \"\"));\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}", "@Override\n\tpublic Void visit(ClassDef classDef) {\n\t\tprintIndent(\"class\");\n\t\tindent++;\n\t\tclassDef.self_type.accept(this);\n\t\tclassDef.base_type.accept(this);\n\t\tfor (var v : classDef.body)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "public interface ClassNode\n{\n}", "private void setClasses(OWLClass cls, int depth, Set<String> supers) {\n\n\t\tif (depth > 0) {\n\t\t\tString nm = render(cls);\n\t\t\tsupersInfo.put(nm, supers);\n\t\t\tSet<OWLClass> children = theProvider.getDescendants(cls);\n\t\t\tString lbl = (children.size() > 0 && depth == 1) ? nm + \"+\" : nm;\n\t\t\tPair<String, OWLClass> nameInfo = new Pair<String, OWLClass>(lbl,\n\t\t\t\t\tcls);\n\t\t\tclassMap.put(nm, nameInfo);\n\t\t\tif (depth > 1) {\n\t\t\t\tSet<String> supers2 = new HashSet<String>(supers);\n\t\t\t\tsupers2.add(nm);\n\t\t\t\tint newDepth = --depth;\n\t\t\t\tfor (OWLClass sub : theProvider.getChildren(cls)) {\n\t\t\t\t\tsetClasses(sub, newDepth, supers2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the spiders info\n\t\t\tSet<OWLIndividual> inds = cls.getIndividuals(mgr\n\t\t\t\t\t.getActiveOntologies());\n\t\t\t// TODO all individuals are reported as belonging to Thing, but not\n\t\t\t// to the other\n\t\t\t// superclasses of the class within which they are actually defined.\n\t\t\t// For now,\n\t\t\t// only show spiders for the actual class, c, within which they are\n\t\t\t// defined, and work\n\t\t\t// out how to show spiders in any superclass of c later on\n\t\t\tif (showSpiders && !inds.isEmpty() && !nm.equals(\"Thing\")) {\n\t\t\t\tArrayList<Pair<String, List<CVizZone>>> spInfo = new ArrayList<Pair<String, List<CVizZone>>>();\n\t\t\t\tfor (OWLIndividual i : inds) {\n\t\t\t\t\tif (i.isNamed()) {\n\t\t\t\t\t\tspInfo.add(new Pair<String, List<CVizZone>>(ren\n\t\t\t\t\t\t\t\t.render((OWLEntity) i),\n\t\t\t\t\t\t\t\tnew ArrayList<CVizZone>()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindMap.put(nm, spInfo);\n\t\t\t}\n\t\t\t// collect the children info\n\t\t\tSet<String> childrenStr = new HashSet<String>();\n\t\t\tIterator<OWLClass> it = children.iterator();\n\t\t\tOWLClass c;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tchildrenStr.add(render(it.next()));\n\t\t\t}\n\t\t\tchildrenInfo.put(nm, childrenStr);\n\n\t\t\t// collect the disjointness info\n\t\t\tNodeSet<OWLClass> ds = theReasoner.getDisjointClasses(cls);\n\t\t\tSet<String> disjoints = new HashSet<String>();\n\t\t\tIterator<Node<OWLClass>> it2 = ds.iterator();\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tc = it2.next().getRepresentativeElement();\n\t\t\t\tdisjoints.add(render(c));\n\t\t\t}\n\t\t\tif (disjoints.size() > 0)\n\t\t\t\tdisjointsInfo.put(nm, disjoints);\n\t\t\t// collect the equivalent classes info\n\t\t\tNode<OWLClass> equivs = theReasoner.getEquivalentClasses(cls);\n\t\t\tif (!equivs.isSingleton())\n\t\t\t\tequivsInfo.put(nm, new HashSet<OWLClass>(equivs.getEntities()));\n\t\t\t// collect the union classes info\n\t\t\tSet<OWLEquivalentClassesAxiom> eq;\n\t\t\tfor (OWLOntology ont : activeOntologies) {\n\t\t\t\teq = ont.getEquivalentClassesAxioms(cls);\n\t\t\t\tif (eq.size() > 0) {\n\t\t\t\t\tfor (OWLEquivalentClassesAxiom a : eq) {\n\t\t\t\t\t\tboolean isUnion = true;\n\t\t\t\t\t\tClassExpressionType t;\n\t\t\t\t\t\tfor (OWLClassExpression e : a.getClassExpressions()) {\n\t\t\t\t\t\t\tt = e.getClassExpressionType();\n\t\t\t\t\t\t\tif (!(t.equals(ClassExpressionType.OWL_CLASS) || t\n\t\t\t\t\t\t\t\t\t.equals(ClassExpressionType.OBJECT_UNION_OF))) {\n\t\t\t\t\t\t\t\tisUnion = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isUnion) {\n\t\t\t\t\t\t\tSet<OWLClass> us = a.getClassesInSignature();\n\t\t\t\t\t\t\tus.remove(cls);\n\t\t\t\t\t\t\tif (us.size() > 0)\n\t\t\t\t\t\t\t\tunionsInfo.put(render(cls), us);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the inconsistent classes info\n\t\t\tif (!theReasoner.isSatisfiable(cls)) {\n\t\t\t\tinconsistentClasses.add(nm);\n\t\t\t}\n\t\t}\n\t}", "public void extractClassInheritance(String file) throws NotAClassException {\n Matcher m = CLASS_DEFINITION.matcher(file);\n if(m.find()){\n String result = m.group();\n Matcher classNameMatcher = IDENTIFIER_NODOTS.matcher(result);\n\n for(int i=0; i<2 && classNameMatcher.find(); i++);\n\n className = classNameMatcher.group(0);\n\n\n Matcher genericMatcher = CLASS_GENERIC_DEFINITION.matcher(result);\n if(genericMatcher.find()){\n String generics = genericMatcher.group();\n Matcher genericIdentifiers = IDENTIFIER_NODOTS.matcher(generics);\n while (genericIdentifiers.find()){\n genericTypes.add(genericIdentifiers.group());\n }\n }\n\n //retrieve inheritance\n //replace all < > with whitespace\n Matcher matcher = HOOK_BRACKETS.matcher(file);\n String noHookBrackets = matcher.replaceAll(\" \");\n\n Matcher inheritanceMatcher = EXTENDS_OR_IMPLEMENTS_DEFINITION.matcher(noHookBrackets);\n if(inheritanceMatcher.find()){\n String extendsOrImplements = inheritanceMatcher.group();\n Matcher identifiers = IDENTIFIER_MAYDOTS.matcher(extendsOrImplements);\n while(identifiers.find()){\n String r = identifiers.group();\n if(!(r.equals(\"extends\")||r.equals(\"implements\"))){\n dependencies.add(r);\n }\n }\n }\n }\n if(className == null){\n throw new NotAClassException();\n }\n }", "public void processClass(CtType<?> clazz) {\r\n try {\r\n // Check if it only needs to parse added files.\r\n // If null process all given classes\r\n if (parser.getAddedFiles() != null) {\r\n // Check if the current class is in an added file.\r\n // If not we do not have to process it.\r\n if (!parser.getAddedFiles().contains(\r\n clazz.getPosition().getFile()\r\n )) {\r\n return;\r\n }\r\n }\r\n\r\n // Try to get the vertex by name\r\n VertexClass vertex = VertexClass.getVertexClassByName(\r\n framedGraph, clazz.getQualifiedName()\r\n );\r\n\r\n // Check if the class exists, if not create it.\r\n if (vertex == null) {\r\n vertex = VertexClass.createSystemClass(framedGraph, clazz);\r\n }\r\n\r\n // Check if the vertex has a belonging package, if not add it.\r\n if (vertex.getBelongsToPackage() == null) {\r\n\r\n CtTypeReference cur = clazz.getReference();\r\n while (cur.getPackage() == null) {\r\n cur = cur.getDeclaringType();\r\n }\r\n // Try to get the package by name\r\n VertexPackage packageVertex = VertexPackage.getVertexPackageByName(\r\n framedGraph, cur.getPackage().getQualifiedName()\r\n );\r\n\r\n // Check if the package exists, if not create it.\r\n if (packageVertex == null) {\r\n packageVertex = VertexPackage.createVertexPackage(\r\n framedGraph, cur.getPackage()\r\n );\r\n }\r\n\r\n vertex.setBelongsTo(packageVertex);\r\n vertex.setLinesOfCode(countLOC(clazz));\r\n }\r\n }catch (Exception e){\r\n LOGGER.error(\"Spoon error while analysing class \" + clazz.getQualifiedName() + \": \" + e.getMessage());\r\n }\r\n\r\n }", "private static void handlePolymorphism() {\n for(String subClass : superDict.keySet()) {\n try {\n petrinet.getPlace(subClass.toString());\n } catch (NoSuchNodeException e ) {\n petrinet.createPlace(subClass.toString());\n }\n assert (petrinet.containsNode(subClass));\n for (String superClass : superDict.get(subClass)) {\n // If the class is not in the petrinet, create the class\n try {\n petrinet.getPlace(superClass.toString());\n } catch (NoSuchNodeException e) {\n petrinet.createPlace(superClass.toString());\n }\n assert (petrinet.containsNode(superClass));\n\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName);\n petrinet.createFlow(methodName, superClass);\n }\n }\n }", "@Override\r\n\tpublic void visit(ast.program.Program p) {\r\n\t\t// ////////////////////////////////////////////////\r\n\t\t// step 1: build a symbol table for class (the class table)\r\n\t\t// a class table is a mapping from class names to class bindings\r\n\t\t// classTable: className -> ClassBinding{extends, fields, methods}\r\n\t\tbuildMainClass((ast.mainClass.MainClass) p.mainClass);\r\n\t\tfor (ast.classs.T c : p.classes) {\r\n\t\t\tbuildClass((ast.classs.Class) c);\r\n\t\t}\r\n\r\n\t\t// we can double check that the class table is OK!\r\n\t\tif (control.Control.elabClassTable) {\r\n\t\t\tthis.classTable.dump();\r\n\t\t}\r\n\r\n\t\t// ////////////////////////////////////////////////\r\n\t\t// step 2: elaborate each class in turn, under the class table\r\n\t\t// built above.\r\n\t\tp.mainClass.accept(this);\r\n\t\tfor (ast.classs.T c : p.classes) {\r\n\t\t\tc.accept(this);\r\n\t\t}\r\n\t}", "public void parse(Class<?> theClass)\n throws DBSerializationException {\n\n\n // Check to see whether we need to parse the class.\n if (!this.serializationInformation.containsKey(theClass)) {\n\n Deque<Class<?>> classHierarchy = new LinkedList<>();\n\n Class<?> current = theClass;\n\n DBSerializationInfo serializationInfo = new DBSerializationInfo(\n theClass);\n this.serializationInformation.put(current, serializationInfo);\n\n\n // Establishing the class hierarchy for this class (all super\n // classes in reverse order, starting with java.lang.Object and\n // ending with the class to be parsed itself).\n while (current != null) {\n classHierarchy.addFirst(current);\n current = current.getSuperclass();\n }\n // System.out.println(\"Class hierarchy: \" + classHierarchy);\n\n\n // parsing the classes in the class hierarchy\n for (Class<?> clazz : classHierarchy) {\n\n // parsing the class itself (the last to be parsed)\n if (clazz.equals(theClass)) {\n this.parseClass(clazz, serializationInfo);\n }\n // ancestor class has not been previously parsed\n else if (!this.serializationInformation.containsKey(clazz)) {\n\n DBSerializationInfo info = new DBSerializationInfo(clazz);\n this.serializationInformation.put(clazz, info);\n\n this.parseClass(clazz, info);\n // merging information into the class' information\n serializationInfo.addSerializationInfo(info);\n\n }\n // ancestor class has been previously parsed\n else {\n\n // merging information into the class' information\n serializationInfo\n .addSerializationInfo(this.serializationInformation\n .get(clazz));\n }\n\n }\n }\n }", "private boolean isClassOrSubClass(ASTClassOrInterfaceDeclaration node, String className) {\r\n // check implemented interfaces\r\n // ASTImplementsList impl = node.getFirstChildOfType(ASTImplementsList.class);\r\n // if (impl != null && impl.jjtGetParent().equals(node)) {\r\n // for (int ix = 0; ix < impl.jjtGetNumChildren(); ix++) {\r\n // ASTClassOrInterfaceType type = (ASTClassOrInterfaceType) impl.jjtGetChild(ix);\r\n // if (isClassOrSubClass(type, className)) {\r\n // return true;\r\n // }\r\n // }\r\n // }\r\n\r\n // check superclass\r\n if (node.jjtGetNumChildren() != 0 && node.jjtGetChild(0).getClass().equals(ASTExtendsList.class)) {\r\n ASTClassOrInterfaceType type = (ASTClassOrInterfaceType) (node.jjtGetChild(0)).jjtGetChild(0);\r\n if (isClassOrSubClass(type, className)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "protected void checkSubclass() {\n }", "@Override\r\n public void process(CtClass<?> clazz) {\r\n this.processClass(clazz);\r\n }", "public void visit(ClassOrInterfaceDeclaration arg0, Object arg1) {\n\t \tclassName = arg0.getName();\n\t \tisInterface = arg0.toString().indexOf(\"interface\")!=-1;\n\t \tisAbstract = arg0.toString().indexOf(\"abstract\")!=-1;\n\t \tmyClasses.add(className);\n\t \tfor(Iterator<?> it = arg0.getImplements().iterator(); it.hasNext();)\n\t \t\tinheritance += className + \" ..|> \" + it.next() + \"\\n\";\n\t \tfor(Iterator<?> it = arg0.getExtends().iterator(); it.hasNext();)\n\t \t\tinheritance += className + \" ---|> \" +it.next() + \"\\n\";\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "public void process(byte[] inputClass) throws IOException {\n\t\tClassNode classNode = BytecodeUtils.getClassNode(inputClass);\n\t\t// TODO: address innerclasses, classNode.innerClasses, could these even be found from class files? they would be different files...\n\t\tif(classNode.invisibleAnnotations != null){\n\t\t\tfor(Object annotationObject : classNode.invisibleAnnotations){\n\t\t\t\tAnnotationNode annotationNode = (AnnotationNode) annotationObject;\n\t\t\t\tJREFAnnotationIdentifier checker = new JREFAnnotationIdentifier();\n\t\t\t\tchecker.visitAnnotation(annotationNode.desc, false);\n\t\t\t\tif(checker.isJREFAnnotation()){\n\t\t\t\t\tString qualifiedClassName = classNode.name + \".class\";\n\t\t\t\t\tif(checker.isDefineTypeAnnotation()){\n\t\t\t\t\t\tif(runtimeModifications.getJarEntrySet().contains(qualifiedClassName)){\n\t\t\t\t\t\t\truntimeModifications.add(qualifiedClassName, inputClass, true);\n//\t\t\t\t\t\t\tLog.info(\"Replaced: \" + qualifiedClassName + \" in \" + runtimeModifications.getJarFile().getName());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\truntimeModifications.add(qualifiedClassName, inputClass, false);\n//\t\t\t\t\t\t\tLog.info(\"Inserted: \" + qualifiedClassName + \" into \" + runtimeModifications.getJarFile().getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(checker.isMergeTypeAnnotation()){\n\t\t\t\t\t\tString qualifiedParentClassName = classNode.superName + \".class\";\n\t\t\t\t\t\tbyte[] baseClass = runtimeModifications.extractEntry(qualifiedParentClassName);\n\t\t\t\t\t\tbyte[] mergedClass = mergeClasses(baseClass, inputClass);\n\t\t\t\t\t\truntimeModifications.add(qualifiedParentClassName, mergedClass, true);\n\t\t\t\t\t\t// TODO: clean up outputClass somehow, probably need to make a local temp\n\t\t\t\t\t\t// directory which gets deleted at the end of the build\n//\t\t\t\t\t\tLog.info(\"Merged: \" + qualifiedClassName + \" into \" + qualifiedParentClassName + \" in \" + runtimeModifications.getJarFile().getName());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void describeClassTree(Class<?> inputClass, Set<Class<?>> setOfClasses) {\r\n // can't map null class\r\n if (inputClass == null) {\r\n return;\r\n }\r\n\r\n // don't further analyze a class that has been analyzed already\r\n if (Object.class.equals(inputClass) || setOfClasses.contains(inputClass)) {\r\n return;\r\n }\r\n\r\n // add to analysis set\r\n setOfClasses.add(inputClass);\r\n\r\n // perform super class analysis\r\n describeClassTree(inputClass.getSuperclass(), setOfClasses);\r\n\r\n // perform analysis on interfaces\r\n for (Class<?> hasInterface : inputClass.getInterfaces()) {\r\n describeClassTree(hasInterface, setOfClasses);\r\n }\r\n }", "@Override\n\tpublic void inAClassBody(AClassBody node) {\n // Determine the start and end line numbers.\n int begin = findBeginLine(node);\n int end = node.getRBrace().getLine();\n String cname = null;\n Node parentNode = node.parent();\n if (parentNode instanceof AClassDeclaration) {\n // This handles normal class declarations, as well as\n // named inner class declaractions.\n AClassDeclaration parent = (AClassDeclaration) parentNode;\n TIdentifier name = parent.getIdentifier();\n cname = name.getText();\n\n } else if (parentNode instanceof\n ASimpleClassInstanceCreationExpression\n || parentNode instanceof\n AQualifiedClassInstanceCreationExpression\n || parentNode instanceof\n AInnerclassClassInstanceCreationExpression) {\n // This handles an anonymous inner class declaration.\n // Use special value of 'new' for anonymous classes.\n cname = ANONYMOUS_CLASS_NAME;\n }\n int braceLine = node.getLBrace().getLine();\n ClassDefinition cd = new ClassDefinition(cname, braceLine, begin, end);\n classLines.add(cd);\n }", "public void visit(BaseNode node) {\n String type = node.getTypeName();\n if (!nodeToSearch.contains(type))\n return;\n\n if (subRule.equals(\"wsdl\") || subRule.equals(\"xsd\")) {\n validWsdl(node, ctx);\n } else if (subRule.equals(\"process\")) {\n validProcess(node, ctx);\n }\n\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "public void processClasses(CompilationUnit cu) {\n\t\t\n\t\tif(cu.getStorage().get().getFileName().equals(\"package-info.java\")) {\n\t\t\tthis.packageInfo = cu;\n\t\t}else {\n\t\t\tthis.cus.add(cu);\n\t\t}\n\t\tfor(TypeDeclaration<?> node : cu.findAll(TypeDeclaration.class)) {\n\t\t\tthis.classes.put(node.getNameAsString(), new ClassAST(node, this));\n\t\t}\n\t}", "@Override\n public Object visitClassDecl(ClassDecl decl) {\n //look up the superclass name int he GST\n if (decl.superName == null || decl.superName.equals(\"\")) {\n return null;\n }\n //throw an error if there is no super name\n\n if (!globalSymTab.containsKey(decl.superName)) {\n errorMsg.error(decl.pos, \"Undefined class declaration.\");\n }\n //add the class to the list of subclasses from the GST\n else {\n decl.superLink = globalSymTab.get(decl.superName);\n decl.superLink.subclasses.addElement(decl);\n }\n return null;\n }", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "public Collection getSuperclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n\tpublic void visit(ClassDeclNode classDeclaration) {\n\t\tsuper.visit(classDeclaration);\r\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n public Object visitProgram(Program p) {\n\t //set our temporary class\n\t Object temp = super.visitProgram(p);\n\n\t //throw err if we see String or RunMain\n if (!globalSymTab.get(\"String\").subclasses.isEmpty()) {\n errorMsg.error(p.pos, \"Cannot have String as superclass\");\n }\n if (!globalSymTab.get(\"RunMain\").subclasses.isEmpty()) {\n errorMsg.error(p.pos, \"Cannot have RunMain as superclass\");\n }\n\n //check for cycles in all of the program's class decls\n for(ClassDecl decl : p.classDecls) {\n findCycles(decl.superLink , decl.name, globalSymTab.size() -1 );\n }\n\n return temp;\n }", "@Override\n public ClassNode getClassNode() {\n return this.classNode;\n }", "private Content getClassInheritenceTree(Type type) {\n Type sup;\n HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL);\n classTreeUl.addStyle(HtmlStyle.inheritance);\n Content liTree = null;\n do {\n sup = Util.getFirstVisibleSuperClass(\n type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(),\n configuration);\n if (sup != null) {\n HtmlTree ul = new HtmlTree(HtmlTag.UL);\n ul.addStyle(HtmlStyle.inheritance);\n ul.addContent(getTreeForClassHelper(type));\n if (liTree != null)\n ul.addContent(liTree);\n Content li = HtmlTree.LI(ul);\n liTree = li;\n type = sup;\n }\n else\n classTreeUl.addContent(getTreeForClassHelper(type));\n }\n while (sup != null);\n if (liTree != null)\n classTreeUl.addContent(liTree);\n return classTreeUl;\n }", "Object getClass_();", "Object getClass_();", "private AttributeNode findSuper(String className, String attributeName) {\n \n // find the superclass by searching the OCR's for a generalization \n \n List<ObjectClassRelationship> ocrs = \n elements.getElements(DomainObjectFactory.newObjectClassRelationship());\n \n String superClassName = null;\n for(ObjectClassRelationship ocr : ocrs) {\n if (ocr.getType() == ObjectClassRelationship.TYPE_IS && \n ocr.getSource().getLongName().equals(className)) {\n superClassName = ocr.getTarget().getLongName();\n break;\n }\n }\n \n if (superClassName == null) {\n System.err.println(\"Superclass not found for \"+className);\n return null;\n }\n \n // find the super class in the tree\n \n int div = superClassName.lastIndexOf(\".\");\n String sPackage = superClassName.substring(0, div);\n String sName = superClassName.substring(div+1);\n \n for(Object pchild : rootNode.getChildren()) {\n PackageNode pnode = (PackageNode)pchild;\n if (pnode.getFullPath().equals(sPackage)) {\n for(Object cchild : pnode.getChildren()) {\n ClassNode cnode = (ClassNode)cchild;\n if (cnode.getDisplay().equals(sName)) {\n PackageNode inherited = null;\n for(Object achild : cnode.getChildren()) {\n if (\"Inherited Attributes\".equals(\n ((UMLNode)achild).getDisplay())) {\n // remember the inheritance subtree for later\n inherited = (PackageNode)achild;\n }\n else if (achild instanceof AttributeNode) {\n AttributeNode anode = (AttributeNode)achild;\n if (anode.getDisplay().equals(attributeName)) {\n return anode;\n }\n }\n }\n // attribute wasn't found, check inheritance subtree\n if (inherited != null) {\n for(Object achild : inherited.getChildren()) {\n AttributeNode anode = (AttributeNode)achild;\n if (anode.getDisplay().equals(attributeName)) {\n return findSuper(cnode.getFullPath(), attributeName);\n }\n }\n \n }\n }\n } \n }\n }\n \n return null;\n }", "private static void getClassHierarchyRecurs(Class clazz, boolean flag) {\n Class classFirst = null;\n if (flag) {\n classFirst = clazz;\n }\n if (clazz != null) {\n clazz = clazz.getSuperclass();\n getClassHierarchyRecurs(clazz, false);\n }\n if (clazz != null) {\n System.out.println(clazz.getName());\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n if (classFirst != null) {\n System.out.println(classFirst.getName());\n }\n }", "@Override\n public ASTNode visitCoolClass(CoolParser.CoolClassContext ctx) {\n List<FeatureNode> featureNodes = new LinkedList<>();\n for (var feature : ctx.feature()) {\n featureNodes.add((FeatureNode) feature.accept(this));\n }\n\n return new CoolClassNode(\n ctx.CLASS().getSymbol(),\n new IdNode(ctx.id),\n ctx.parentClass == null ? null : new TypeNode(ctx.parentClass),\n featureNodes);\n }", "public void testHierarchyInheritance() throws Exception {\n // Create the mime path folders and add some instance\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-java/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/\");\n TestUtilities.sleepForWhile();\n\n {\n Lookup javaLookup = new SwitchLookup(MimePath.parse(\"text/x-java\"));\n Collection javaInstances = javaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, javaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, javaInstances.iterator().next().getClass());\n }\n \n {\n Lookup jspJavaLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Collection jspJavaInstances = jspJavaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, jspJavaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, jspJavaInstances.iterator().next().getClass());\n }\n }", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "public void doClass(String callerName) throws LexemeException {\n\t\tlogMessage(\"<class>--> class ID [extends ID]{{<member>}}\");\n\t\tfunctionStack.push(\"<class>\");\n\t\tconsumeToken(); // consume class token\n\t\t// check ID token\n\t\tif (ifPeekThenConsume(\"ID_\")) {\n\t\t\t// check for optional EXTENDS_ token\n\t\t\tif (ifPeek(\"EXTENDS_\")) {\n\t\t\t\tconsumeToken();\n\t\t\t\tifPeekThenConsume(\"ID_\");\n\t\t\t}\n\t\t\t// check for left curly\n\t\t\tif (ifPeekThenConsume(\"L_CURLY_\")) {\n\n\t\t\t\twhile (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\") || ifPeekIsType()) {\n\t\t\t\t\t// check for optional PUBLIC_ & STATIC_ tokens\n\t\t\t\t\tif (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\")) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t} else if (ifPeekIsType()) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO check for arraytype!!\n\t\t\t\t// CHECK ClOSING CURLY\n\n\t\t\t\t// TODO uncomment line\n\t\t\t\tifPeekThenConsume(\"R_CURLY_\");\n\t\t\t}\n\n\t\t}\n\t\tlogVerboseMessage(callerName);\n\t\tfunctionStack.pop();\n\t}", "@Override\r\n\tpublic void postVisit(ASTNode node) {\r\n\t\tif (node instanceof AbstractTypeDeclaration || node instanceof AnonymousClassDeclaration) {\r\n\t\t\tIType resolved_type = NodeBinding(node);\r\n\t\t\tboolean type_equals = resolved_type == null ? false : resolved_type.equals(it);\r\n\t\t\t// boolean has_element = irc.IsHasElement();\r\n\t\t\tif (type_equals) {// && has_element\r\n\t\t\t\tif (this.initial_node != null) {\r\n\t\t\t\t\tthis.initial_node.accept(this);\r\n\t\t\t\t}\r\n\t\t\t\t// IRGeneratorForOneProject.GetInstance().FetchITypeIR((it)).SetFieldLevel((IRForOneField)irc);\r\n\t\t\t\tIRGeneratorHelper.HandleVariablesContainerConnectToIMember(graph.GetVariableNodes(), ele_factory.UniversalElement(it));\r\n\t\t\t}\r\n\t\t}\r\n\t\tsuper.postVisit(node);\r\n\t}", "@Before public void setUp() {\n // Insert some initial values into the inheritance\n // tree\n //\n\n //\n treeManager = new InheritanceTreeManager(\n GNode.create(\"ClassDeclaration\"));\n // Put in some example classes\n GNode newClass = GNode.create(\"ClassDeclaration\", \"Point\");\n\n //\n ArrayList<String> point = new ArrayList<String>();\n point.add(\"qimpp\");\n point.add(\"Point\");\n treeManager.insertClass(point, null, newClass);\n\n //\n //\n\n //\n\n newClass = GNode.create(\"ClassDeclaration\", \"ColorPoint\");\n ArrayList<String> ColorPoint = new ArrayList<String>();\n ColorPoint.add(\"qimpp\");\n ColorPoint.add(\"ColorPoint\");\n treeManager.insertClass(ColorPoint, point, newClass);\n //\n\n //\n // Test that classes with the same name in different\n // packages are distinct\n //\n newClass = GNode.create(\"ClassDeclaration\", \"OtherColorPoint\");\n ColorPoint = new ArrayList<String>( \n Arrays.asList(\"org\", \"fake\", \"ColorPoint\") );\n treeManager.insertClass(ColorPoint, null, newClass);\n\n \n }", "private void connectClasses(Header [] list)\r\n {\r\n Vector queue;\r\n Vector garbage = new Vector();\r\n\r\n Find.setCrossreference(list);\r\n\r\n for(int i = 0; list != null && i < list.length; i++)\r\n {\r\n queue = list[i].scopes;\r\n\r\n for(int j = 0; j < queue.size(); j++)\r\n for(Iterator iter = ((Scope)queue.get(j)).iterator(); iter.hasNext();)\r\n {\r\n Iterator a = null;\r\n Basic x = (Basic)iter.next();\r\n\r\n if (x instanceof ClassType)\r\n {\r\n ClassType y = (ClassType)x;\r\n ClassType [] z;\r\n boolean done = false;\r\n String st = null;\r\n\r\n if (y.extend != null && y.extend.name != null && y.extend.scope == null)\r\n { // look for superclass\r\n st = y.extend.name.string;\r\n for(a = y.unresolved.iterator(); a.hasNext();)\r\n {\r\n String s = (String)a.next();\r\n if (s.endsWith('.' + st))\r\n {\r\n st = s;\r\n break;\r\n }\r\n }\r\n\r\n z = Find.findClass(st, 0, y.scope);\r\n \r\n for(int k = 0; k < z.length; k++)\r\n if (z[k].scope.javaPath(\"\").endsWith(st) || z[k].scope.buildPath(\"\").endsWith(st))\r\n {\r\n y.extend = z[k];\r\n garbage.add(st);\r\n done = true;\r\n }\r\n }\r\n\r\n for(int k = 0; k < y.implement.length; k++)\r\n if (y.implement[k].name != null && y.implement[k].scope == null)\r\n { // look for interface\r\n st = y.implement[k].name.string;\r\n for(a = y.unresolved.iterator(); a.hasNext();)\r\n {\r\n String s = (String)a.next();\r\n if (s.endsWith('.' + st))\r\n {\r\n st = s;\r\n break;\r\n }\r\n }\r\n done = false;\r\n \r\n z = Find.findClass(st, 0, y.scope);\r\n \r\n for(int l = 0; l < z.length && !done; l++)\r\n if (z[l].scope.javaPath(\"\").endsWith(st) || z[l].scope.buildPath(\"\").endsWith(st))\r\n {\r\n y.implement[k] = z[l];\r\n garbage.add(st);\r\n done = true;\r\n break;\r\n }\r\n }\r\n\r\n a = null;\r\n while(garbage.size() > 0)\r\n {\r\n st = (String)garbage.get(0);\r\n garbage.remove(0);\r\n y.unresolved.remove(st);\r\n }\r\n }\r\n }\r\n }\r\n }", "Object visitSubtype(SubtypeNode node, Object state);", "public static void initClass()\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoSubNode.SO__NODE_INIT_CLASS(SoCubeWithoutTop.class, \"CubeWithoutTop\", SoShape.class);\n}", "private static void getClassHierarchy(Class clazz) {\n List<String> classNames = new ArrayList<>();\n while (clazz != null) {\n classNames.add(clazz.getName());\n clazz = clazz.getSuperclass();\n }\n for (int i = classNames.size() - 1; i >= 0; i--) {\n System.out.println(classNames.get(i));\n if (i > 0) {\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n }\n }", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses, boolean innerClasses) {\r\n\t\tIterator iterClasses = null;\r\n\t\tString strClassName = null;\r\n\t\tString strSuperClassName = null;\r\n\t\tClass c = null;\r\n\t\tClass cParent = null;\r\n\t\tboolean bIsSubclass = false;\r\n\t\tstrSuperClassName = theClass.getName();\r\n\t\titerClasses = listAllClasses.iterator();\r\n\t\twhile (iterClasses.hasNext()) {\r\n\t\t\tstrClassName = (String) iterClasses.next();\r\n\t\t\t// only check classes if they are not inner classes\r\n\t\t\t// or we intend to check for inner classes\r\n\t\t\tif ((strClassName.indexOf(\"$\") == -1) || innerClasses) {\r\n\t\t\t\t// might throw an exception, assume this is ignorable\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Class.forName() doesn't like nulls\r\n\t\t\t\t\tif (strClassName == null)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif (strClassName.endsWith(\".groovy\")) {\r\n\t\t\t\t\t\tGroovyClassLoader loader = new GroovyClassLoader(Thread.currentThread()\r\n\t\t\t\t\t\t\t\t.getContextClassLoader());\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tc = loader.parseClass(loader.getResourceAsStream(strClassName));\r\n\t\t\t\t\t\t} catch (Throwable e) {\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tFile gFile = new File(strClassName);\r\n\t\t\t\t\t\t\t\tc = loader.parseClass(new FileInputStream(gFile));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(Throwable e1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"file load failed: \" + e1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tc = Class.forName(strClassName, false, Thread\r\n\t\t\t\t\t\t\t\t.currentThread().getContextClassLoader());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!c.isInterface()\r\n\t\t\t\t\t\t\t&& !Modifier.isAbstract(c.getModifiers())) {\r\n\t\t\t\t\t\tbIsSubclass = theClass.isAssignableFrom(c);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbIsSubclass = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bIsSubclass) {\r\n\t\t\t\t\t\tlistSubClasses.add(c);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Throwable ignored) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "XClass getSuperclass();", "@Override\r\n\tpublic void visitJavaClass(JavaClass javaClass) {\n\t\t\r\n\t\t\r\n\t\tvisitClassName=javaClass.getClassName();\r\n\t\t\r\n\t\t//log.debug(\"className:+\"+visitClassName);\r\n\t\tsuper.visitJavaClass(javaClass);\r\n\t\t\r\n\t}", "@Override\n\tpublic void visit(OWLClass cls) {\n\t\taddFact(RewritingVocabulary.CLASS, cls.getIRI());\n\t}", "void checkClassInstanceDefinitions(ModuleLevelParseTrees moduleLevelParseTrees) throws UnableToResolveForeignEntityException { \r\n \r\n checkForOverlappingInstances(moduleLevelParseTrees.getModuleDefnNode());\r\n \r\n List<ParseTreeNode> instanceDefnNodes = moduleLevelParseTrees.getInstanceDefnNodes(); \r\n \r\n //add the built-in class instance declarations \"instance Typeable T where ...\" for each type T\r\n //where this is possible (all of the type variables must have kind *).\r\n addTypeableInstances();\r\n\r\n checkDerivedInstances();\r\n \r\n for (final ParseTreeNode instanceNode : instanceDefnNodes) { \r\n \r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ClassInstance classInstance = checkClassInstanceDefinition(instanceNode);\r\n ClassInstanceIdentifier instanceIdentifier = classInstance.getIdentifier(); \r\n classInstanceMap.put(instanceIdentifier, instanceNode); \r\n }\r\n \r\n //Now do the static analysis on the instance declarations that must wait for a \r\n //second pass over the instance declarations.\r\n \r\n //If there is a C-T instance, and C' is a superclass of C, then there is a C'-T instance in scope.\r\n //So for example, if there is an instance Ord-Foo, there must be an instance Eq-Foo in the current module \r\n //or in some module imported directly or indirectly into the current module.\r\n //Note: we only need to check immediate superclasses (i.e. parents) since the parents will check for their parents.\r\n \r\n //The constraints on the type variables in C-T must imply the constraints\r\n //on the type variables in C'-T. What this means, is that if (Cij' a) is a constraint for C'-T, then (Dij' a)\r\n //is a constraint for D-T where Dij' is Cij' or a subclass.\r\n //The reason for this is so that we can derive a dictionary for C'-T given a dictionary for C-T. \r\n \r\n for (int i = 0, nInstances = currentModuleTypeInfo.getNClassInstances(); i < nInstances; ++i) {\r\n \r\n ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i); \r\n if (classInstance.isUniversalRecordInstance()) {\r\n //todoBI it is not valid to skip this check. Need to do more work here in this case.\r\n //this path happens during adjunct checking.\r\n continue;\r\n }\r\n \r\n TypeClass typeClass = classInstance.getTypeClass(); \r\n TypeExpr instanceType = classInstance.getType();\r\n \r\n List<Set<TypeClass>> childVarConstraints = classInstance.getSuperclassPolymorphicVarConstraints(); \r\n \r\n for (int j = 0, nParents = typeClass.getNParentClasses(); j < nParents; ++j) {\r\n \r\n TypeClass parentClass = typeClass.getNthParentClass(j);\r\n \r\n ClassInstanceIdentifier parentInstanceId = ClassInstanceIdentifier.make(parentClass.getName(), instanceType);\r\n \r\n ClassInstance parentInstance = currentModuleTypeInfo.getVisibleClassInstance(parentInstanceId);\r\n \r\n if (parentInstance == null) { \r\n //superclass instance declaration is missing \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n String requiredParentInstanceName = ClassInstance.getNameWithContext(parentClass, instanceType, ScopedEntityNamingPolicy.FULLY_QUALIFIED);\r\n compiler.logMessage(new CompilerMessage(instanceNode, new MessageKind.Error.SuperclassInstanceDeclarationMissing(requiredParentInstanceName, classInstance.getNameWithContext())));\r\n } \r\n \r\n List<SortedSet<TypeClass>> parentVarConstraints = parentInstance.getDeclaredPolymorphicVarConstraints(); \r\n \r\n if (parentVarConstraints.size() != childVarConstraints.size()) {\r\n //this situation should be handled by earlier checking\r\n throw new IllegalArgumentException();\r\n } \r\n \r\n for (int varN = 0; varN < parentVarConstraints.size(); ++varN) {\r\n //the constraints on the varNth type variable that are not implied by the constraints on the child instance\r\n Set<TypeClass> unsatisfiedConstraints = new HashSet<TypeClass>(parentVarConstraints.get(varN));\r\n unsatisfiedConstraints.removeAll(childVarConstraints.get(varN));\r\n \r\n if (!unsatisfiedConstraints.isEmpty()) {\r\n \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n // ClassInstanceChecker: the constraints on the instance declaration {classInstance.getNameWithContext()} must \r\n // imply the constraints on the parent instance declaration {parentInstance.getNameWithContext()}.\\n In particular, \r\n // the class constraint {((TypeClass)unsatisfiedConstraints.iterator().next()).getName()} on type variable number \r\n // {varN} in the parent instance is not implied.\r\n compiler.logMessage(new CompilerMessage(instanceNode, new MessageKind.Error.ConstraintsOnInstanceDeclarationMustImplyConstraintsOnParentInstance( \r\n classInstance.getNameWithContext(), parentInstance.getNameWithContext(), unsatisfiedConstraints.iterator().next().getName().getQualifiedName(), varN)));\r\n break;\r\n } \r\n } \r\n } \r\n } \r\n }", "public Collection getSubclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public abstract Class resolveClass(GenerationContext context);", "void addTypes(EntryRep bits) {\n\tString classFor = bits.classFor();\n\tString[] superclasses = bits.superclasses();\n\n\t//The given EntryRep will add its className to the\n\t//subtype list of all its supertypes.\n\n\tString prevClass = classFor;\n\tfor (int i = 0; i < superclasses.length; i++) {\n\t if (!addKnown(superclasses[i], prevClass)) {\n\t\treturn;\n\t }\n\t prevClass = superclasses[i];\n\t}\n\n\t// If we are here prevClass must have java.Object as its\n\t// direct superclass (we don't store \"java.Object\" in\n\t// EntryRep.superclasses since that would be redundant) and\n\t// prevClass is not already in the the tree. Place it in the\n\t// \"net.jini.core.entry.Entry\" bucket so it does not get lost\n\t// if it does not have any sub-classes.\n\t//\n\t// Fix suggested by Lutz Birkhahn <lutz.birkhahn@GMX.DE>\n\taddKnown(ROOT, prevClass);\n }", "public Type visit(ClassDeclExtends n) {\n\t\tthis.currClass = this.symbolTable.getClass(n.i.toString());\n\n\t\tif (this.currClass.parent() != n.j.s) {\n\t\t\tSystem.out.println(\"Extensão de classe errada\");\n\t\t}\n\n\t\tn.i.accept(this);\n\t\tn.j.accept(this);\n\t\tfor (int i = 0; i < n.vl.size(); i++) {\n\t\t\tn.vl.elementAt(i).accept(this);\n\t\t}\n\t\tfor (int i = 0; i < n.ml.size(); i++) {\n\t\t\tn.ml.elementAt(i).accept(this);\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.67803264", "0.649056", "0.64329624", "0.6431964", "0.6329987", "0.62293243", "0.62178254", "0.62026227", "0.61255884", "0.6038794", "0.6020725", "0.60019714", "0.59119207", "0.5887941", "0.5869795", "0.5859902", "0.58514524", "0.5823626", "0.57695454", "0.57261926", "0.56697166", "0.5666607", "0.5664914", "0.56437826", "0.5636638", "0.5636638", "0.5636638", "0.56169957", "0.56156206", "0.56054026", "0.5583978", "0.5581892", "0.556279", "0.5558435", "0.553744", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.5518328", "0.55145764", "0.5511846", "0.5511846", "0.5511846", "0.550401", "0.550401", "0.550401", "0.54959804", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.54898024", "0.5469514", "0.54496205", "0.5424411", "0.5424381", "0.5424381", "0.54191995", "0.5416564", "0.5405186", "0.53899467", "0.5384496", "0.53714055", "0.534453", "0.53436685", "0.5339426", "0.53269345", "0.5315617", "0.5303667", "0.5289224", "0.52749634", "0.5263369", "0.5261543", "0.52585906", "0.52533", "0.5251288", "0.52454555", "0.5241409" ]
0.6163707
8
Process property inheritance node
private void processPropertyParentNode(Element node) { PropertyDataItem prp = new PropertyDataItem(node.attributeValue("name")); Iterator childNodes = node.elementIterator(); while (childNodes.hasNext()) { prp.addChildNode(((Element) childNodes.next()).attributeValue("name")); } properties.add(prp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void visit(Properties properties, Properties parent) {\n }", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "private void internalSetProperty(DavProperty<?> property) throws DavException {\n if (!exists()) {\n throw new DavException(DavServletResponse.SC_NOT_FOUND);\n }\n DavPropertyName propName = property.getName();\n if (JCR_MIXINNODETYPES.equals(propName)) {\n Node n = (Node) item;\n try {\n NodeTypeProperty mix = new NodeTypeProperty(property);\n Set<String> mixins = mix.getNodeTypeNames();\n\n for (NodeType existingMixin : n.getMixinNodeTypes()) {\n String name = existingMixin.getName();\n if (mixins.contains(name)){\n // do not add existing mixins\n mixins.remove(name);\n } else {\n // remove mixin that are not contained in the new list\n n.removeMixin(name);\n }\n }\n\n // add the remaining mixing types that are not yet set\n for (String mixin : mixins) {\n n.addMixin(mixin);\n }\n } catch (RepositoryException e) {\n throw new JcrDavException(e);\n }\n } else if (JCR_PRIMARYNODETYPE.equals(propName)) {\n Node n = (Node) item;\n try {\n NodeTypeProperty ntProp = new NodeTypeProperty(property);\n Set<String> names = ntProp.getNodeTypeNames();\n if (names.size() == 1) {\n String ntName = names.iterator().next();\n n.setPrimaryType(ntName);\n } else {\n // only a single node type can be primary node type.\n throw new DavException(DavServletResponse.SC_BAD_REQUEST);\n }\n } catch (RepositoryException e) {\n throw new JcrDavException(e);\n }\n } else {\n // all props except for mixin node types and primaryType are read-only\n throw new DavException(DavServletResponse.SC_CONFLICT);\n }\n }", "public abstract Object getValue(ELContext context,\n Object base,\n Object property);", "@Override\n protected void initProperties() {\n super.initProperties();\n if (exists()) {\n // resource is serialized as system-view (xml)\n properties.add(new DefaultDavProperty<String>(DavPropertyName.GETCONTENTTYPE, \"text/xml\"));\n Node n = (Node)item;\n\n // add node-specific resource properties\n try {\n properties.add(new NodeTypeProperty(JCR_PRIMARYNODETYPE, n.getPrimaryNodeType(), false));\n properties.add(new NodeTypeProperty(JCR_MIXINNODETYPES, n.getMixinNodeTypes(), false));\n } catch (RepositoryException e) {\n log.error(\"Failed to retrieve node-specific property: \" + e);\n }\n }\n }", "@Test public void testInheritance () {\n ArrayList<String> point = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"Point\") );\n GNode pointNode = treeManager.dereference(point);\n\n ArrayList<String> colorPoint = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"ColorPoint\") );\n GNode colorNode = treeManager.dereference(colorPoint);\n\n assertTrue( colorNode != null );\n assertTrue( pointNode != null );\n GNode g = (GNode)(treeManager.getParent(colorNode).getProperty(\"ClassDeclaration\"));\n \n\n assertTrue( treeManager.getParent(colorNode) == pointNode );\n\n //\n // Test distinction between package names\n //\n\n ArrayList<String> otherColor =\n new ArrayList<String>( Arrays.asList(\"org\", \"fake\",\n \"ColorPoint\"));\n GNode otherColorNode = treeManager.dereference(otherColor);\n\n assertTrue( otherColorNode != null );\n assertTrue( treeManager.getParent( otherColorNode )\n != treeManager.getParent(colorNode) );\n assertTrue( otherColorNode != colorNode );\n }", "@Override\n\tpublic void applyProperties() throws Exception {\n\t\tsuper.setDefaultsIfMissing();\n\n\t\t// Apply own properties\n\t\tthis.inputdelimiter = this.getProperties().getProperty(\n\t\t\t\tPROPERTYKEY_DELIMITER_INPUT,\n\t\t\t\tthis.getPropertyDefaultValues()\n\t\t\t\t\t\t.get(PROPERTYKEY_DELIMITER_INPUT));\n\t\tthis.edgeDesignator = this.getProperties().getProperty(\n\t\t\t\tPROPERTYKEY_EDGEDESIGNATOR,\n\t\t\t\tthis.getPropertyDefaultValues()\n\t\t\t\t\t\t.get(PROPERTYKEY_EDGEDESIGNATOR));\n\n\t\t// Apply parent object's properties (just the name variable actually)\n\t\tsuper.applyProperties();\n\t}", "@Override\n public Object get(String name, Scriptable start) {\n\n // builtin javascript properties (jsFunction_ etc.) have priority\n final Object fromSuperclass = super.get(name, start);\n if(fromSuperclass != Scriptable.NOT_FOUND) {\n return fromSuperclass;\n }\n\n if(node == null) {\n return Undefined.instance;\n }\n\n final List<Scriptable> items = new ArrayList<Scriptable>();\n\n // Add all matching nodes to result\n try {\n NodeIterator it = node.getNodes(name);\n while (it.hasNext()) {\n items.add(ScriptRuntime.toObject(this, it.nextNode()));\n }\n } catch (RepositoryException e) {\n log.debug(\"RepositoryException while collecting Node children\",e);\n }\n\n // Add all matching properties to result\n boolean isMulti = false;\n try {\n PropertyIterator it = node.getProperties(name);\n while (it.hasNext()) {\n Property prop = it.nextProperty();\n if (prop.getDefinition().isMultiple()) {\n isMulti = true;\n Value[] values = prop.getValues();\n for (int i = 0; i < values.length; i++) {\n items.add(wrap(values[i]));\n }\n } else {\n items.add(wrap(prop.getValue()));\n }\n }\n } catch (RepositoryException e) {\n log.debug(\"RepositoryException while collecting Node properties\", e);\n }\n\n if (items.size()==0) {\n return getNative(name, start);\n\n } else if (items.size()==1 && !isMulti) {\n return items.iterator().next();\n\n } else {\n NativeArray result = new NativeArray(items.toArray());\n ScriptRuntime.setObjectProtoAndParent(result, this);\n return result;\n }\n }", "private void setInheritanceInfo(DeployBeanInfo<?> info) {\n for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) {\n if (!oneProp.isTransient()) {\n DeployBeanInfo<?> assoc = deployInfoMap.get(oneProp.getTargetType());\n if (assoc != null) {\n oneProp.getTableJoin().setInheritInfo(assoc.getDescriptor().getInheritInfo());\n }\n }\n }\n for (DeployBeanPropertyAssocMany<?> manyProp : info.getDescriptor().propertiesAssocMany()) {\n if (!manyProp.isTransient()) {\n DeployBeanInfo<?> assoc = deployInfoMap.get(manyProp.getTargetType());\n if (assoc != null) {\n manyProp.getTableJoin().setInheritInfo(assoc.getDescriptor().getInheritInfo());\n }\n }\n }\n }", "private static void handlePolymorphism() {\n for(String subClass : superDict.keySet()) {\n try {\n petrinet.getPlace(subClass.toString());\n } catch (NoSuchNodeException e ) {\n petrinet.createPlace(subClass.toString());\n }\n assert (petrinet.containsNode(subClass));\n for (String superClass : superDict.get(subClass)) {\n // If the class is not in the petrinet, create the class\n try {\n petrinet.getPlace(superClass.toString());\n } catch (NoSuchNodeException e) {\n petrinet.createPlace(superClass.toString());\n }\n assert (petrinet.containsNode(superClass));\n\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName);\n petrinet.createFlow(methodName, superClass);\n }\n }\n }", "public void setInheritedProperty(String name, String value) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n ph.setInheritedProperty(null, name, value);\n }", "@Override\n\t\tpublic void processPropertyDocument(PropertyDocument propertyDocument) {\n\t\t}", "private final boolean inheritedPropertyUsageError(String name, Type type, int line)\n {\n assert root != null : \"root null in checkInherited\";\n\n Property prop = root.getType().getProperty(name);\n\n if (prop != null)\n {\n if (!prop.hasPublic())\n {\n ThreadLocalToolkit.log(new NonPublicInheritedPropertyInit(name), getSourcePath(), line);\n return true;\n }\n\n if (prop.readOnly())\n {\n ThreadLocalToolkit.log(new ReadOnlyInheritedPropertyInit(name), getSourcePath(), line);\n return true;\n }\n\n if (!type.isAssignableTo(prop.getType()))\n {\n ThreadLocalToolkit.log(\n new TypeIncompatibleInheritedPropertyInit(\n name,\n NameFormatter.toDot(prop.getType().getName()),\n NameFormatter.toDot(type.getName())),\n getSourcePath(), line);\n\n return true;\n }\n }\n\n return false;\n }", "Rule Inheritance() {\n return Sequence(\"extends \", Identifier());\n }", "public static Property inheritProperty(final Page page, final String propertyName) {\n Property property = null;\n try {\n final Resource contentResource = page.getContentResource();\n final Node contentNode = contentResource.adaptTo(Node.class);\n if (contentNode.hasProperty(propertyName)) {\n property = contentNode.getProperty(propertyName);\n } else if (page.getDepth() > ApplicationConstants.LANGUAGE_PAGE_LEVEL) {\n property = InheritanceUtil.inheritProperty(page.getParent(), propertyName);\n }\n } catch (RepositoryException e) {\n LoggerUtil.debugLog(InheritanceUtil.class, \"Could not inherit property: \", e);\n }\n return property;\n }", "@Override\r\n public Object visit(OWLEquivalentDataPropertiesAxiom axiom) {\n return super.visit(axiom);\r\n }", "public void handleInheritance() {\n if (resource instanceof InformationResource) {\n InformationResource ir = (InformationResource) resource;\n\n if (ir.isInheritingInvestigationInformation()) {\n setInvestigationTypeIds(null);\n }\n if (ir.isInheritingSiteInformation()) {\n setSiteNameKeywords(null);\n setApprovedSiteTypeKeywordIds(null);\n setUncontrolledSiteTypeKeywords(null);\n }\n if (ir.isInheritingMaterialInformation()) {\n setApprovedMaterialKeywordIds(null);\n setUncontrolledMaterialKeywords(null);\n }\n if (ir.isInheritingCulturalInformation()) {\n setApprovedCultureKeywordIds(null);\n setUncontrolledCultureKeywords(null);\n }\n if (ir.isInheritingSpatialInformation()) {\n setLatitudeLongitudeBoxes(null);\n setGeographicKeywords(null);\n }\n if (ir.isInheritingTemporalInformation()) {\n setTemporalKeywords(null);\n setCoverageDates(null);\n }\n if (ir.isInheritingOtherInformation()) {\n setOtherKeywords(null);\n }\n\n if (ir.isInheritingIndividualAndInstitutionalCredit()) {\n if (CollectionUtils.isNotEmpty(getCreditProxies())) {\n getCreditProxies().clear();\n }\n }\n\n if (ir.isInheritingCollectionInformation()) {\n if (CollectionUtils.isNotEmpty(getRelatedComparativeCollections())) {\n getRelatedComparativeCollections().clear();\n }\n if (CollectionUtils.isNotEmpty(getSourceCollections())) {\n getSourceCollections().clear();\n }\n }\n\n if (ir.isInheritingNoteInformation()) {\n if (CollectionUtils.isNotEmpty(getResourceNotes())) {\n getResourceNotes().clear();\n }\n }\n\n if (ir.isInheritingIdentifierInformation()) {\n if (CollectionUtils.isNotEmpty(getIncomingAnnotations())) {\n getIncomingAnnotations().clear();\n }\n }\n }\n }", "public abstract void process(final EClass Super, final EClass Sub);", "private static void handlePolymorphism() {\n\n for(String subClass : superDict.keySet()) {\n addPlace(subClass);\n for (String superClass : superDict.get(subClass)) {\n addPlace(superClass);\n String methodName = subClass + \"IsPolymorphicTo\" + superClass;\n petrinet.createTransition(methodName);\n petrinet.createFlow(subClass, methodName, 1);\n petrinet.createFlow(methodName, superClass, 1);\n }\n }\n }", "public abstract void setValue(ELContext context,\n Object base,\n Object property,\n Object value);", "@Override\n\tpublic List<XSOntDataProperty> getSuperProperties() {\n\t\treturn new ArrayList<XSOntDataProperty>();\n\t}", "@Override\n\tpublic String visitProperty(PropertyContext ctx){\n\t\tint childrenNo=ctx.getChildCount();\n\t\tString classKey=visitTerminal((TerminalNode)ctx.getChild(0));\n\t\tRecord temp = table.lookup(classKey);\n\t\tif (temp==null) throw new RuntimeException(\"Class does not exist in propery statement\");\n\t\tif( (!(temp instanceof ClassRecord)) && temp.getReturnType().equals(\"int[]\") ){\n\t\t\tString next = ctx.getChild(2).getText();\n\t\t\tif(next.equals(\"length\")){\n\t\t\t\treturn(\"int\");\n\t\t\t}\n\t\t}\n\t\tClassRecord cRec= (ClassRecord) temp;\t\t\n\t\tClassRecord childClass=null;\n\t\tfor (int i=2;i<=childrenNo;i+=2){\n\t\t\tString varName=visitTerminal((TerminalNode)ctx.getChild(i));\n\t\t\tif (i<childrenNo) {\n\t\t\t\tchildClass=(ClassRecord) table.lookup(varName);\n\t\t\t\tif (childClass==null) throw new RuntimeException(varName+\" used in \"+ cRec.getName()+ \" is not declared\");\n\t\t\t}else \n\t\t\t\tif(i==childrenNo) {\n\t\t\t\t\tRecord varRec=childClass.getVariable(varName);\n\t\t\t\t\tif (varRec==null) throw new RuntimeException(\"variable \"+ varName+\" used in \"+ cRec.getName()+ \" is not declared\");\n\t\t\t\t\telse return varRec.getReturnType();\n\t\t\t\t}\n\t\t}\n\t\treturn null; //debugging purposes, normally unreachable\n\t}", "private void loadProperty(XMLStreamReader reader, PropertyAwareObject parent) throws XMLStreamException {\n final String key = reader.getAttributeValue(null, \"name\");\n final String value = reader.getElementText();\n parent.addProperty(key, value);\n }", "protected NodeProperties() {\r\n }", "IGLProperty getParent();", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "@Override\n\tpublic List<XSOntDataProperty> getSubProperties(FlexoOntology context) {\n\t\treturn new ArrayList<XSOntDataProperty>();\n\t}", "Object visitSubtype(SubtypeNode node, Object state);", "@Override\n protected void readAttributes(XMLStreamReader in)\n throws XMLStreamException {\n super.readAttributes(in);\n\n String extendString = in.getAttributeValue(null, \"extends\");\n BuildingType parent = (extendString == null) ? this :\n getSpecification().getBuildingType(extendString);\n String upgradeString = in.getAttributeValue(null, \"upgradesFrom\");\n if (upgradeString == null) {\n level = 1;\n } else {\n upgradesFrom = getSpecification().getBuildingType(upgradeString);\n upgradesFrom.upgradesTo = this;\n level = upgradesFrom.level + 1;\n }\n setPopulationRequired(getAttribute(in, \"required-population\", parent.getPopulationRequired()));\n\n workPlaces = getAttribute(in, \"workplaces\", parent.workPlaces);\n basicProduction = getAttribute(in, \"basicProduction\", parent.basicProduction);\n\n consumes = getSpecification().getType(in, \"consumes\", GoodsType.class, parent.consumes);\n produces = getSpecification().getType(in, \"produces\", GoodsType.class, parent.produces);\n\n if (produces != null && basicProduction > 0) {\n productionModifier = new Modifier(produces.getId(), this, basicProduction,\n Modifier.Type.ADDITIVE);\n }\n\n minSkill = getAttribute(in, \"minSkill\", parent.minSkill);\n maxSkill = getAttribute(in, \"maxSkill\", parent.maxSkill);\n\n priority = getAttribute(in, \"priority\", parent.priority);\n upkeep = getAttribute(in, \"upkeep\", parent.upkeep);\n\n if (parent != this) {\n getFeatureContainer().add(parent.getFeatureContainer());\n if (parent.isAbstractType()) {\n getFeatureContainer().replaceSource(parent, this);\n }\n }\n }", "private Property as_property_value(RDFNode rdfnode, PropertyType type) {\n Property prop = new Property(type);\n\n switch (type.getPropertyValueType()) {\n case COMPLEX:\n if (rdfnode.isResource()) {\n List<Property> subprops = new ArrayList<>();\n\n for (PropertyConstraint subpropcon : type.getComplexPropertyConstraints()) {\n PropertyType subtype = subpropcon.getPropertyType();\n NodeIterator iter = model.listObjectsOfProperty(rdfnode.asResource(),\n as_property(subtype.getDomainPredicate()));\n\n while (iter.hasNext()) {\n Property subprop = as_property_value(iter.next(), subtype);\n\n if (subprop != null) {\n subprops.add(subprop);\n }\n }\n }\n\n prop.setComplexValue(subprops);\n\n return prop;\n } else {\n return null;\n }\n case DATE_TIME:\n if (rdfnode.isLiteral() && rdfnode.asLiteral().getValue() instanceof XSDDateTime) {\n XSDDateTime dt = XSDDateTime.class.cast(rdfnode.asLiteral().getValue());\n\n if (dt != null) {\n prop.setDateTimeValue(as_date_time(dt));\n }\n\n return prop;\n } else {\n return null;\n }\n case LONG:\n if (rdfnode.isLiteral()) {\n prop.setLongValue(rdfnode.asLiteral().getLong());\n\n return prop;\n } else {\n return null;\n }\n case STRING:\n if (rdfnode.isLiteral()) {\n prop.setStringValue(rdfnode.asLiteral().getString());\n\n return prop;\n } else {\n return null;\n }\n default:\n throw new RuntimeException(\"Unhandled value type\");\n }\n }", "DefinedProperty nodeChangeProperty( long nodeId, int propertyKey, Object value );", "public PropertyVisitor visitProperty(BeanProperty p) {\n\t\treturn null;\r\n\t}", "void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theModel.waitingAssociations.iterator();\n\t for (Iterator<FamixAssociation> i=iterator ; i.hasNext();) {\n\t \tboolean inheritanceAssociation = false;\n\t \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n\t \tFamixAssociation association = (FamixAssociation) i.next();\n\t\t String uniqueNameFrom = association.from;\n\n \t/* Test helper\n \tif (association.from.startsWith(\"Limaki.Actions.Command\")){\n \t\tboolean breakpoint = true;\n \t} */\n\n\t\t if (association instanceof FamixInheritanceDefinition){\n\t\t \tinheritanceAssociation = true;\n\t\t }\n \tif (inheritanceAssociation) {\n\t\t\t if (theModel.classes.containsKey(uniqueNameFrom)) {\n\t\t\t \tfromExists = true;\n\t\t\t }\n \t}\n \tif (inheritanceAssociation && fromExists) {\n\t\t\t if ((association.to != null) && (!association.to.equals(\"\"))) {\n\t\t\t \ttoHasValue = true;\n\t\t\t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n\t\t\t\t \ttoExists = true;\n\t\t\t\t }\n\t\t\t }\n \t}\n\t\t // If association.to is not a unique name of an existing type, try to replace it by the complete unique name.\n\t \t// Determine the type of association.to, first based on imports, and second based on package contents.\n\t \tif (inheritanceAssociation && fromExists && !toExists && toHasValue) {\n String to = findClassInImports(association.from, association.to);\n if (!to.equals(\"\")) {\n association.to = to;\n }\n else {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t to = findClassInPackage(association.to, belongsToPackage);\n\t if (!to.equals(\"\")) { // So, in case association.to shares the same package as association.from \n\t association.to = to;\n\t }\n }\n \t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n \t\t \ttoExists = true;\n \t\t }\n \t}\n\t \tif (inheritanceAssociation && fromExists && toExists && !theModel.associations.contains(association)) {\n\t\t \t// Add the inheritance association to the FamixModel, but only if to and from are equal. \n\t \tif (!association.from.equals(association.to)) { \n\t \t\taddToModel(association);\n\t \t}\n\n\t \t// Fill the HashMap inheritanceAccociationsPerClass with inheritance dependencies to super classes or interfaces \n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = null;\n\t \tfoundInheritanceList = null;\n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = association;\n\t \tif(inheritanceAssociationsPerClass.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedInheritanceList = inheritanceAssociationsPerClass.get(uniqueNameFrom);\n\t \t\tif (!alreadyIncludedInheritanceList.contains(association.to)) {\n\t \t\t\talreadyIncludedInheritanceList.add(foundInheritance.to);\n\t \t\t}\n\t \t\tinheritanceAssociationsPerClass.put(uniqueNameFrom, alreadyIncludedInheritanceList);\n\t \t}\n\t \telse{\n\t\t \tfoundInheritanceList = new HashSet<String>();\n\t\t \tfoundInheritanceList.add(foundInheritance.to);\n\t\t \tinheritanceAssociationsPerClass.put(uniqueNameFrom, foundInheritanceList);\n\t \t}\n\t \t\n\t \t// Remove from waitingAssociations afterwards, to enhance the performance. \t\n\t\t\t i.remove();\n\t \t}\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.debug(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n\t\tindirectAssociations_DeriveIndirectInheritance();\n this.logger.info(new Date().toString() + \" Finished: processInheritanceAssociations()\");\n }", "Object getOtherprops();", "DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );", "public void visit(BaseNode node) {\n String type = node.getTypeName();\n if (!nodeToSearch.contains(type))\n return;\n\n if (subRule.equals(\"wsdl\") || subRule.equals(\"xsd\")) {\n validWsdl(node, ctx);\n } else if (subRule.equals(\"process\")) {\n validProcess(node, ctx);\n }\n\n }", "@Override\n\tpublic void visit(OWLSubObjectPropertyOfAxiom axiom) {\n\t\taddFact(RewritingVocabulary.SUB_ROLE, //\n\t\t\t\taxiom.getSubProperty().asOWLObjectProperty().getIRI(),//\n\t\t\t\taxiom.getSuperProperty().asOWLObjectProperty().getIRI());\n\t}", "protected void modifyProperties( NodeKey key,\n Name primaryType,\n Set<Name> mixinTypes,\n Map<Name, AbstractPropertyChange> propChanges ) {\n }", "protected abstract String getFactPropertyType(Object property);", "public boolean isNodeProp() {\n \t\treturn isNodeProp;\n \t}", "void nodeLoadProperties( long nodeId, boolean light, PropertyReceiver receiver );", "interface PropertyInfo {}", "@SuppressWarnings(\"unchecked\")\n private boolean handleProperties(final Document doc, final Element parent,\n final String prefix, final String name, final Object prop,\n boolean nameTobeFixed)\n {\n boolean hasFixMe = false;\n Element el = null;\n if (prop == null)\n {\n String fixedName = nameTobeFixed ? fixName(name, prefix) : name;\n hasFixMe = fixedName.startsWith(FIXME_INVALID_PREFIX);\n el = doc.createElement(ELEM_PROPERTY);\n el.setAttribute(ATTR_NAME, fixedName);\n }\n else if (prop instanceof Map)\n {\n Map<String, Object> sortedProps = sortMap((Map<String, Object>) prop);\n el = doc.createElement(ELEM_PROPERTY_SET);\n if (name != null)\n {\n String fixedName = nameTobeFixed ? fixName(name, prefix) : name;\n hasFixMe = fixedName.startsWith(FIXME_INVALID_PREFIX);\n el.setAttribute(ATTR_NAME, fixedName);\n }\n for (String key : sortedProps.keySet())\n {\n hasFixMe = hasFixMe\n | handleProperties(doc, el, prefix, key, sortedProps\n .get(key), false);\n }\n }\n else if (prop instanceof Collection)\n {\n String fixedName = nameTobeFixed ? fixName(name, prefix) : name;\n hasFixMe = fixedName.startsWith(FIXME_INVALID_PREFIX);\n el = doc.createElement(ELEM_PROPERTY);\n el.setAttribute(ATTR_NAME, fixedName);\n Iterator iter = ((Collection) prop).iterator();\n Element values = null;\n // Create a ELEM_PVALUES element if there are collection is empty, in\n // which case it creates an empty pvalues element or if the instance of\n // elements is String. Otherwise a propertySet element is created in\n // the next recursive call.\n if(((Collection) prop).isEmpty() || iter.next() instanceof String)\n {\n values = doc.createElement(ELEM_PVALUES);\n el.appendChild(values);\n }\n else\n {\n values = el;\n }\n for (Object obj : (Collection) prop)\n {\n hasFixMe = hasFixMe\n | handleProperties(doc, values, prefix, null, obj, false);\n }\n }\n else if (prop instanceof PSPair)\n {\n PSPair pair = (PSPair) prop;\n el = doc.createElement(ELEM_PAIR);\n el.setAttribute(ATTR_VALUE + \"1\", toString(pair.getFirst()));\n el.setAttribute(ATTR_VALUE + \"2\", toString(pair.getSecond()));\n }\n else if (parent.getNodeName().equals(ELEM_PVALUES))\n {\n el = doc.createElement(ELEM_PVALUE);\n el.appendChild(doc.createTextNode(toString(prop)));\n }\n else\n {\n String fixedName = nameTobeFixed ? fixName(name, prefix) : name;\n hasFixMe = fixedName.startsWith(FIXME_INVALID_PREFIX);\n el = doc.createElement(ELEM_PROPERTY);\n el.setAttribute(ATTR_NAME, fixedName);\n el.setAttribute(ATTR_VALUE, toString(prop));\n }\n parent.appendChild(el);\n return hasFixMe;\n }", "PropertyRealization createPropertyRealization();", "DefinedProperty graphChangeProperty( int propertyKey, Object value );", "public interface PathNodeMember extends PathNode {\n}", "DefinedProperty graphAddProperty( int propertyKey, Object value );", "public void testHierarchyInheritance() throws Exception {\n // Create the mime path folders and add some instance\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-java/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/\");\n TestUtilities.sleepForWhile();\n\n {\n Lookup javaLookup = new SwitchLookup(MimePath.parse(\"text/x-java\"));\n Collection javaInstances = javaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, javaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, javaInstances.iterator().next().getClass());\n }\n \n {\n Lookup jspJavaLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Collection jspJavaInstances = jspJavaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, jspJavaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, jspJavaInstances.iterator().next().getClass());\n }\n }", "@Override\npublic void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {\narg2.setType(Feeds.class);\narg2.setName(\"Feeds\");\n\narg2.setNamespace(n1);\n\n}", "public interface NestedMetaProperty<METADATA_TYPE, PROPERTY_TYPE, NESTED_PROPERTIES> extends MetaProperty<METADATA_TYPE, PROPERTY_TYPE> {\n NESTED_PROPERTIES nested();\n}", "abstract ChildListPropertyDescriptor internalElseDeclarationsProperty();", "public abstract boolean isAllowCustomProperties();", "@Test(description = \"positive test that a derived relationship is defined\")\n public void t23a_positiveTestDerived()\n throws Exception\n {\n this.createNewData(\"Parent\")\n .create();\n this.createNewData(\"Test\")\n .create()\n .update(\"\")\n .setValue(\"derived\", AbstractTest.PREFIX + \"Parent\")\n .update(\"\")\n .checkExport();\n }", "public Object prop(String name, String type);", "private static void addExtendedItemNonXmlProps(Element extendedItemNode,ReportDesigner reportDesigner){\r\n\t\t//outputFormat\r\n\t\tElement propertyNode = doc.createElement(\"property\");\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"outputFormat\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"JPG\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//inheritColumns\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"inheritColumns\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"false\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//Data Set Chart\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataSet\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"Data Set\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//height\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"height\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"3.7916666666666665in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//width\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"width\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"7.875in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\textendedItemNode.appendChild(createExtendedItemListProp(reportDesigner));\r\n\t}", "@Override\n public void setValue(ELContext context, Object base, Object property,\n Object value) throws NullPointerException, PropertyNotFoundException,\n PropertyNotWritableException, ELException {\n }", "public Value makePolymorphic(ObjectProperty prop) {\n Value r = new Value();\n r.var = prop;\n r.flags |= flags & (ATTR | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR | EXTENDEDSCOPE);\n if (isMaybePresentData())\n r.flags |= PRESENT_DATA;\n if (isMaybePresentAccessor())\n r.flags |= PRESENT_ACCESSOR;\n return canonicalize(r);\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public abstract List<PropertyType> getBuiltInProperties();", "public void addInheritanceRelation(InheritanceRelation relation);", "@Override\n public boolean isInheritable(InheritedAccessEnabled access) {\n Preference preference = (Preference) access;\n if (preference.getVisibleAtRole() != null) {\n return true;\n }\n if (preference.isPropertyList()) {\n return !propertyBlackList.contains(preference.getProperty());\n } else {\n return true;\n }\n }", "public boolean propertyConformsTo(PBmmSchema schema, PBmmProperty<?> aChildProperty, PBmmProperty<?> aParentProperty) {\n if(aParentProperty instanceof PBmmSingleProperty && ((PBmmSingleProperty) aParentProperty).getTypeRef().getType().equalsIgnoreCase(BmmDefinitions.ANY_TYPE)) {\n return true;\n }\n else if (aChildProperty.getName().equalsIgnoreCase(aParentProperty.getName())) {\n //Properties names are the same\n if (aChildProperty instanceof PBmmSingleProperty && aParentProperty instanceof PBmmSingleProperty) {\n PBmmSingleProperty aChildSingleProperty = (PBmmSingleProperty)aChildProperty;\n PBmmSingleProperty aParentSingleProperty = (PBmmSingleProperty)aParentProperty;\n return typeStrictlyConformsTo(schema, aChildSingleProperty.getTypeRef().getType(), aParentSingleProperty.getTypeRef().getType());\n }\n else if (aParentProperty instanceof PBmmSingleProperty) {\n if (aChildProperty instanceof PBmmSinglePropertyOpen) {\n //If both properties have the same name and are both open properties, then they do not conform.\n return false;\n }\n else if(aChildProperty instanceof PBmmSingleProperty) {\n return true;\n //TODO FIXME: proper type conformance to constraining generic type needs to be checked here\n }\n }\n else if (aChildProperty instanceof PBmmContainerProperty && aParentProperty instanceof PBmmContainerProperty) {\n PBmmContainerProperty aChildContainerProperty = (PBmmContainerProperty)aChildProperty;\n PBmmContainerProperty aParentContainerProperty = (PBmmContainerProperty)aParentProperty;\n return typeStrictlyConformsTo(schema, aChildContainerProperty.getTypeRef().asTypeString(), aParentContainerProperty.getTypeRef().asTypeString());\n }\n else if (aChildProperty instanceof PBmmGenericProperty && aParentProperty instanceof PBmmGenericProperty) {\n PBmmGenericProperty aChildGenericProperty = (PBmmGenericProperty)aChildProperty;\n PBmmGenericProperty aParentGenericProperty = (PBmmGenericProperty)aParentProperty;\n return typeStrictlyConformsTo(schema, aChildGenericProperty.getTypeRef().asTypeString(), aParentGenericProperty.getTypeRef().asTypeString());\n }\n }\n return false;\n }", "public Class<?> getCommonPropertyType(ELContext context, Object base) {\n/* 483 */ Class<?> commonPropertyType = null;\n/* 484 */ for (int i = 0; i < this.size; i++) {\n/* */ \n/* 486 */ Class<?> type = this.elResolvers[i].getCommonPropertyType(context, base);\n/* 487 */ if (type != null)\n/* */ {\n/* */ \n/* 490 */ if (commonPropertyType == null) {\n/* 491 */ commonPropertyType = type;\n/* 492 */ } else if (!commonPropertyType.isAssignableFrom(type)) {\n/* */ \n/* 494 */ if (type.isAssignableFrom(commonPropertyType)) {\n/* 495 */ commonPropertyType = type;\n/* */ } else {\n/* */ \n/* 498 */ return null;\n/* */ } \n/* */ } } \n/* 501 */ } return commonPropertyType;\n/* */ }", "public void visit(OWLAnnotationProperty arg0) throws OWLException {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic Node visitComposition(CompositionContext ctx) {\n\t\treturn super.visitComposition(ctx);\r\n\t}", "private ReadProperty()\r\n {\r\n\r\n }", "abstract ChildListPropertyDescriptor internalThenDeclarationsProperty();", "@Override\n\tProp getProp() {\n\t\treturn null;\n\t}", "public void fillSubTypeDocInfo(Node node) throws GdibException{\n \tString codClasificacion = utils.getProperty(node.getProperties(), ConstantUtils.PROP_COD_CLASIFICACION_QNAME);\n \tString subTypeDoc = utils.getProperty(node.getProperties(), ConstantUtils.PROP_SUBTIPO_DOC_QNAME);\n \tSubTypeDocInfo info = this.getSubTypeDocInfo(codClasificacion, subTypeDoc);\n \tif(info != null)\n \t\tfillSubTypeDocInfo(node.getType(), node.getProperties(), info);\n }", "private void setupInheritanceStructure() throws PhiException{\n\n a = new PhiCollection();\n b = new PhiCollection();\n c = new PhiCollection();\n d = new PhiCollection();\n aSuper = new PhiCollection();\n bSuper = new PhiCollection();\n PhiCollection cSuper = new PhiCollection();\n\n //Setup inheritance\n aSuper.createMember(new PhiInt(1));\n aSuper.setUnnamed(0, b);\n aSuper.setUnnamed(1, c);\n a.setNamed(\"super\", aSuper);\n\n bSuper.createMember(new PhiInt(0));\n bSuper.setUnnamed(0, d);\n b.setNamed(\"super\", bSuper);\n\n cSuper.createMember(new PhiInt(0));\n cSuper.setUnnamed(0, d);\n c.setNamed(\"super\", cSuper);\n\n //Fill collections\n a.createMember(new PhiSymbol(\"test1\"));\n a.createMember(new PhiInt(0));\n a.setNamed(\"test1\", new PhiString(\"a\"));\n a.setUnnamed(0, new PhiInt(1));\n\n b.createMember(new PhiSymbol(\"test1\"));\n b.createMember(new PhiSymbol(\"test2\"));\n b.createMember(new PhiInt(0));\n b.setNamed(\"test1\", new PhiString(\"b\"));\n b.setNamed(\"test2\", new PhiString(\"x\"));\n b.setUnnamed(0, new PhiInt(2));\n\n c.createMember(new PhiSymbol(\"test1\"));\n c.createMember(new PhiInt(1));\n c.setNamed(\"test1\", new PhiString(\"c\"));\n c.setUnnamed(0, new PhiInt(3));\n c.setUnnamed(1, new PhiInt(5));\n\n d.createMember(new PhiSymbol(\"test1\"));\n d.createMember(new PhiSymbol(\"test2\"));\n d.createMember(new PhiInt(1));\n d.setNamed(\"test1\", new PhiString(\"d\"));\n d.setNamed(\"test2\", new PhiString(\"y\"));\n d.setUnnamed(0, new PhiInt(4));\n d.setUnnamed(1, new PhiInt(6));\n }", "public CompositeProperty(List<Node> segments, PropertyMergeMode mergeMode) {\n this.segments = segments;\n this.mergeMode = mergeMode;\n }", "public void testPropfindPropOwnerAndAclOnNode() throws Exception\n {\n\n NodeImpl testNode = (NodeImpl)root.addNode(\"test_acl_property\", \"nt:folder\");\n testNode.addMixin(\"exo:owneable\");\n testNode.addMixin(\"exo:privilegeable\");\n session.save();\n\n Map<String, String[]> permissions = new HashMap<String, String[]>();\n\n String userName = USER_JOHN;\n permissions.put(userName, PermissionType.ALL);\n\n testNode.setPermissions(permissions);\n testNode.getSession().save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.putSingle(\"Depth\", \"1\");\n headers.putSingle(HttpHeaders.CONTENT_TYPE, \"text/xml; charset=\\\"utf-8\\\"\");\n\n EnvironmentContext ctx = new EnvironmentContext();\n\n Set<String> adminRoles = new HashSet<String>();\n adminRoles.add(\"administrators\");\n\n DummySecurityContext adminSecurityContext = new DummySecurityContext(new Principal()\n {\n public String getName()\n {\n return USER_ROOT;\n }\n }, adminRoles);\n\n ctx.put(SecurityContext.class, adminSecurityContext);\n\n RequestHandlerImpl handler = (RequestHandlerImpl)container.getComponentInstanceOfType(RequestHandlerImpl.class);\n ResourceLauncher launcher = new ResourceLauncher(handler);\n\n String request =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" + \"<D:propfind xmlns:D=\\\"DAV:\\\">\" + \"<D:prop>\" + \"<D:owner/>\"\n + \"<D:acl/>\" + \"</D:prop>\" + \"</D:propfind>\";\n\n ContainerResponse cres =\n launcher.service(WebDAVMethods.PROPFIND, getPathWS() + testNode.getPath(), BASE_URI, headers,\n request.getBytes(), null, ctx);\n\n assertEquals(HTTPStatus.MULTISTATUS, cres.getStatus());\n\n HierarchicalPropertyEntityProvider provider = new HierarchicalPropertyEntityProvider();\n InputStream inputStream = TestUtils.getResponseAsStream(cres);\n HierarchicalProperty multistatus = provider.readFrom(null, null, null, null, null, inputStream);\n\n assertEquals(new QName(\"DAV:\", \"multistatus\"), multistatus.getName());\n assertEquals(1, multistatus.getChildren().size());\n\n HierarchicalProperty resourceProp = multistatus.getChildren().get(0);\n\n HierarchicalProperty resourceHref = resourceProp.getChild(new QName(\"DAV:\", \"href\"));\n assertNotNull(resourceHref);\n assertEquals(BASE_URI + getPathWS() + testNode.getPath() + \"/\", resourceHref.getValue());\n\n HierarchicalProperty propstatProp = resourceProp.getChild(new QName(\"DAV:\", \"propstat\"));\n HierarchicalProperty propProp = propstatProp.getChild(new QName(\"DAV:\", \"prop\"));\n\n HierarchicalProperty aclProp = propProp.getChild(ACLProperties.ACL);\n assertEquals(1, aclProp.getChildren().size());\n\n HierarchicalProperty aceProp = aclProp.getChild(ACLProperties.ACE);\n assertEquals(2, aceProp.getChildren().size());\n\n HierarchicalProperty principalProp = aceProp.getChild(ACLProperties.PRINCIPAL);\n assertEquals(1, principalProp.getChildren().size());\n\n assertEquals(userName, principalProp.getChildren().get(0).getValue());\n\n HierarchicalProperty grantProp = aceProp.getChild(ACLProperties.GRANT);\n assertEquals(2, grantProp.getChildren().size());\n\n HierarchicalProperty writeProp = grantProp.getChild(0).getChild(ACLProperties.WRITE);\n assertNotNull(writeProp);\n HierarchicalProperty readProp = grantProp.getChild(1).getChild(ACLProperties.READ);\n assertNotNull(readProp);\n\n }", "protected AeFromPropertyBase(String aVariableName, QName aProperty)\r\n {\r\n setVariableName(aVariableName);\r\n setProperty(aProperty);\r\n }", "public void readProperties(Element element, IncomingEventRequestMessage incomingEventRequestMessage) {\n NodeList childNodes = element.getChildNodes();\n StateVariable[] stateVariables = incomingEventRequestMessage.getService().getStateVariables();\n for (int i = 0; i < childNodes.getLength(); i++) {\n Node item = childNodes.item(i);\n if (item.getNodeType() == 1 && getUnprefixedNodeName(item).equals(\"property\")) {\n NodeList childNodes2 = item.getChildNodes();\n for (int i2 = 0; i2 < childNodes2.getLength(); i2++) {\n Node item2 = childNodes2.item(i2);\n if (item2.getNodeType() == 1) {\n String unprefixedNodeName = getUnprefixedNodeName(item2);\n int length = stateVariables.length;\n int i3 = 0;\n while (true) {\n if (i3 >= length) {\n break;\n }\n StateVariable stateVariable = stateVariables[i3];\n if (stateVariable.getName().equals(unprefixedNodeName)) {\n Logger logger = log;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Reading state variable value: \");\n sb.append(unprefixedNodeName);\n logger.fine(sb.toString());\n incomingEventRequestMessage.getStateVariableValues().add(new StateVariableValue(stateVariable, XMLUtil.getTextContent(item2)));\n break;\n }\n i3++;\n }\n }\n }\n }\n }\n }", "public void testNormalInheritance()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkValueInheritance(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n ContainerItemChild.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Override\n public void propertyChange(java.beans.PropertyChangeEvent ev) {\n fireInAWT(PROP_NODE_CHANGE, null, null);\n }", "static private boolean isChild(Property p) {\n\t\treturn p.getAssociation() != null && !p.isMultivalued()\n\t\t\t\t&& !p.getType().equals(p.getOwner())\n\t\t\t\t&& (p.getOpposite() != null && p.getOpposite().isMultivalued());// isManyToOne(p);\n\t\t// return (p.getAssociation() == null\n\t\t// && !TypeHelper.isPrimitiveType(p.getType()) && !EnumerationHelper\n\t\t// .isEnumeration(p))\n\t\t// || (p.getAssociation() != null && !p.isMultivalued());\n\t}", "@Override\n\tpublic void transferProperty(TransferPropertyRequest transferPropertyRequest,Long pid,Long uid) throws Exception {\n\t\tProperty property = getById(transferPropertyRequest.getPropertyId());\n\t\tProperty newProperty = new Property();\n\t\tif(property.getActive()) {\n\t\t\tproperty.setTransferred(true);\n\t\t\tproperty.setTransferredToSamagraId(transferPropertyRequest.getTransferToSamagraId());\n\t\t\tiPropertyDAO.save(property);\n\t\t}else {\n\t\t\tthrow new Exception(\"Property with Unique id :\"+property.getCustomUniqueId()+\"does not belong to current samagra and cant be transffered\");\n\t\t}\n\t\t//fetch the person - the new owner of this property\n\t\tnewProperty.setActive(true);\n\t\tnewProperty.setArea(property.getArea());\n\t\tnewProperty.setIsResidential(property.getIsResidential());\n\t\tnewProperty.setResidentName(property.getResidentName());\n\t\tnewProperty.setResidentName(transferPropertyRequest.getResidentName());\n\t\tnewProperty.setSubHolder(transferPropertyRequest.getNewSubHolder());\n\t\tnewProperty.setIsWaterConnected(property.getWaterConnected());\n\t\tnewProperty.setEastLandmark(property.getEastLandmark());\n\t\tnewProperty.setWestLandmark(property.getWestLandmark());\n\t\tnewProperty.setNorthLandmark(property.getNorthLandmark());\n\t\tnewProperty.setSouthLandmark(property.getSouthLandmark());\n\t\tnewProperty.setVillage(property.getVillage());\n\t\tnewProperty.setTehsil(property.getTehsil());\n\t\tnewProperty.setDistrict(property.getDistrict());\n\t\tnewProperty.setPropertyNumber(property.getPropertyNumber());\n\t\tnewProperty.setPanchayat(property.getPanchayat());\n\t\tnewProperty.setSharedWallDescription(property.getSharedWallDescription());\n\t\tnewProperty.setWaterBillDescription(property.getWaterBillDescription());\n\t\tnewProperty.setLength(property.getLength());\n\t\tnewProperty.setWidth(property.getWidth());\n newProperty.setCustomUniqueId(property.getCustomUniqueId());\n\t\tBeanUtils.copyProperties(property.getPropertyUsages(),newProperty.getPropertyUsages());\n\t\tBeanUtils.copyProperties(property.getPropertyTypes(),newProperty.getPropertyTypes());\n//\t\tnewProperty.setPropertyUsages(property.getPropertyUsages());\n\t\tnewProperty.setOtherDescription(property.getOtherDescription());\n\t\tnewProperty.setPincode(property.getPincode());\n\t\t//the updated field\n\t\tnewProperty.setSamagraId(transferPropertyRequest.getTransferToSamagraId());\n\t\tnewProperty.setDocuments(transferPropertyRequest.getDocuments());\n\t\tcreateTransferredProperty(newProperty,pid,uid);\n\t}", "public interface Property {\n\n\t/**\n\t * <p>\n\t * Retrieves the name of the property.\n\t * </p>\n\t * \n\t * @return The property's name\n\t */\n\tPropertyName getName();\n\n\t/**\n\t * <p>\n\t * Adds the specified values to the statements of this property.\n\t * </p>\n\t * \n\t * @param value\n\t * The value to be added\n\t * @return A reference to the updated property\n\t */\n\tProperty addValue(PropertyValue<?, ?> value);\n\n\t/**\n\t * <p>\n\t * Adds the specified values to the statements of this property, after\n\t * removing all current values.\n\t * </p>\n\t * \n\t * @param value\n\t * The value to be added\n\t * @return A reference to the updated property\n\t */\n\tProperty clearAndAddValue(PropertyValue<?, ?> value);\n\n\t/**\n\t * <p>\n\t * Removes the specified value from the statements of this property.\n\t * <p>\n\t * \n\t * @param value\n\t * The value to be removed\n\t * @return A reference to the updated property\n\t */\n\tProperty removeValue(PropertyValue<?, ?> value);\n\n\t/**\n\t * <p>\n\t * Modifies a property statement changing its value.\n\t * </p>\n\t * \n\t * @param oldValue\n\t * The value that the property currently has\n\t * @param newValue\n\t * The new value that will replace the actual one\n\t * @return A reference to the updated property\n\t */\n\tProperty changeValue(PropertyValue<?, ?> oldValue,\n\t\t\tPropertyValue<?, ?> newValue);\n\n\t/**\n\t * <p>\n\t * Lists all the values associated to this property.\n\t * </p>\n\t * \n\t * @return All values that this property has\n\t */\n\tPropertyValue<?, ?>[] values();\n\n\t/**\n\t * <p>\n\t * Check if the provided value is associated to this property.\n\t * </p>\n\t * \n\t * @param value\n\t * The value to be checked\n\t * @return True if associated, false otherwise\n\t */\n\tboolean hasValue(PropertyValue<?, ?> value);\n\n\t/**\n\t * <p>\n\t * Clones this entity.\n\t * </p>\n\t * \n\t * @return The clone entity\n\t */\n\tProperty clone();\n\n\t/**\n\t * <p>\n\t * Checks if this property extends the provided one.\n\t * </p>\n\t * \n\t * @param other\n\t * Another property to be checked against\n\t * @return True if extends, false otherwise\n\t */\n\tboolean isExtensionOf(Property other);\n\n\t/**\n\t * <p>\n\t * Pattern VISITOR.\n\t * </p>\n\t * \n\t * @param visitor\n\t * The visitor\n\t */\n\tvoid accept(LSAVisitor visitor);\n\n\t/**\n\t * <p>\n\t * Checks if the property is synthetic.\n\t * </p>\n\t * <p>\n\t * Synthetic Properties cannot be modified by a user agent.\n\t * </p>\n\t * \n\t * @return True if synthetic, false otherwise\n\t */\n\tboolean isSynthetic();\n}", "private SchemaProperty[] getDerivedProperties(SchemaType sType) {\n QName name = sType.getName();\n if (name != null && name.equals(sType.getBaseType().getName())) {\n SchemaType sType2 = sType.getBaseType();\n // Walk all the redefined types and record any properties\n // not present in sType, because the redefined types do not\n // have a generated class to represent them\n SchemaProperty[] props = sType.getDerivedProperties();\n Map<QName, SchemaProperty> propsByName = new LinkedHashMap<>();\n for (SchemaProperty prop : props) {\n propsByName.put(prop.getName(), prop);\n }\n while (sType2 != null && name.equals(sType2.getName())) {\n props = sType2.getDerivedProperties();\n for (SchemaProperty prop : props) {\n if (!propsByName.containsKey(prop.getName())) {\n propsByName.put(prop.getName(), prop);\n }\n }\n sType2 = sType2.getBaseType();\n }\n return propsByName.values().toArray(new SchemaProperty[0]);\n } else {\n return sType.getDerivedProperties();\n }\n }", "@Override\r\n public final HowToInherit[] nodeAttrsToInherit( final Model from )\r\n {\r\n final Iterator<String> attrs = from.getNodeAttributes();\r\n final List<HowToInherit> attrsToInherit = new LinkedList<HowToInherit>();\r\n \r\n while( attrs.hasNext() ) {\r\n final String attr = attrs.next();\r\n final HowToInherit how = filterNodeAttr( from, attr );\r\n if( how != DONT_INHERIT ) attrsToInherit.add( how );\r\n }\r\n\r\n return attrsToInherit.toArray( AttributeInheritancePolicy.emptyArray );\r\n }", "public static void main(String[] args) {\n ThroneInheritance tNode = new ThroneInheritance(\"king\");\n tNode.birth(\"king\",\"andy\");\n tNode.birth(\"king\",\"bob\");\n tNode.birth(\"king\",\"catherine\");\n tNode.birth(\"andy\",\"matthew\");\n tNode.birth(\"bob\",\"alex\");\n tNode.birth(\"bob\",\"asha\");\n System.out.println(JSONObject.toJSONString(tNode.getInheritanceOrder()));\n tNode.death(\"bob\");\n System.out.println(JSONObject.toJSONString(tNode.getInheritanceOrder()));\n }", "public void testProcedureExpressionAccuracyInheritExpression() {\n assertTrue(\"ProcedureExpression should inherit from Expression\", ProcedureExpression.class\n .getInterfaces()[0].equals(Expression.class));\n }", "public void test_inheritence() {\n assertTrue(\"invalid inheritence.\", Task.class.getSuperclass() == BaseTaskEntity.class);\n }", "@Override\r\n\tpublic PhraseType getType()\r\n\t{\r\n\t\t/* if the Property is just a reference,\r\n\t\t * return the type of the referent */\r\n\t\tif (referent != null) return referent.getType();\r\n\t\t\r\n\t\t/* otherwise, return PROPERTY */\r\n\t\treturn PhraseType.PROPERTY;\r\n\t}", "private void getPropertyFacts(AstNode node, String prop, Address addr, State state, String prefix) {\n\t\t\t\n\t\tString identifier;\n\t\tif(prefix == null) identifier = prop;\n\t\telse identifier = prefix + \".\" + prop;\n\n\t\tBValue val = state.store.apply(addr);\n\t\tif(val.nullAD.le == Null.LatticeElement.BOTTOM)\n\t\t\tregisterFact(node, identifier, \"NULL\", val.nullAD.le.toString(), val.nullAD.change.toString());\n\t\tif(val.undefinedAD.le == Undefined.LatticeElement.BOTTOM)\n\t\t\tregisterFact(node, identifier, \"UNDEFINED\", val.undefinedAD.le.toString(), val.undefinedAD.change.toString());\n\t\tif(Str.notBlank(val.stringAD))\n\t\t\tregisterFact(node, identifier, \"BLANK\", val.stringAD.toString(), val.stringAD.change.toString());\n\t\tif(Num.notZero(val.numberAD))\n\t\t\tregisterFact(node, identifier, \"ZERO\", val.numberAD.toString(), val.numberAD.change.toString());\n\t\tif(Num.notNaN(val.numberAD))\n\t\t\tregisterFact(node, identifier, \"NAN\", val.numberAD.toString(), val.numberAD.change.toString());\n\t\tif(Bool.notFalse(val.booleanAD))\n\t\t\tregisterFact(node, identifier, \"FALSE\", val.booleanAD.toString(), val.booleanAD.change.toString());\n\n\t\t/* Recursively check property values. */\n\t\tif(val.addressAD.le == LatticeElement.TOP) return;\n\t\tfor(Address objAddr : val.addressAD.addresses) {\n\t\t\tgetObjectFacts(node, state.store.getObj(objAddr).externalProperties, state, identifier);\n\t\t}\n\n\t}", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "public interface PropertyProcessor extends Processor {\n\n /**\n * Reads primitive or complex property from entity.\n * If the property is single-valued and has the null value, the service responds with 204 No Content.\n * If the property is not available, for example due to permissions, the service responds with 404 Not Found\n *\n * @param request - OData request object containing raw HTTP information\n * @param response - OData response object for collecting response data\n * @param uriInfo - information of a parsed OData URI\n * @param format - requested content type after content negotiation\n * @throws ODataApplicationException if service implementation encounters a failure\n * @throws SerializerException if serialization failed\n */\n void readProperty(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType format)\n throws ODataApplicationException, SerializerException;\n\n /**\n * Reads value for primitive property from entity.\n * If the property is single-valued and has the null value, the service responds with 204 No Content.\n * If the property is not available, for example due to permissions, the service responds with 404 Not Found\n *\n * @param request - OData request object containing raw HTTP information\n * @param response - OData response object for collecting response data\n * @param uriInfo - information of a parsed OData URI\n * @param format - requested content type after content negotiation\n * @throws ODataApplicationException if service implementation encounters a failure\n * @throws SerializerException if serialization failed\n */\n void readPropertyValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType format)\n throws ODataApplicationException, SerializerException;\n}", "public static interface Visitor<O> {\n\n\t\tpublic O visit(PropertyRangeInherited inference);\n\n\t}", "public PropertySelector(PropertySelector parent, Property property) {\n this.parent = parent;\n this.property = property;\n }", "private static void LessonComplexProperties() {\n EntityType emailWorkType = new EntityType(\"Work\");\n emailWorkType.setEntityTypeId(1);\n\n //instance of an object using constructor sending email in\n Email myEmail = new Email(\"bipin@aston.com\");\n //setting email type on the Email object that is connected to EntityType Object through an instance\n myEmail.setEmailType(emailWorkType);\n\n //myEmail.getEmailType().getEntityTypeName() object within and object accessed with dot notation\n System.out.println(myEmail.getEmailAddress() + \" Type: \" + myEmail.getEmailType().getEntityTypeName() +\n myEmail.getEmailType().getEntityTypeId());\n\n //collection/list of complex(nested) objects as a property\n Employee myEmployee = new Employee();\n //Employee inherits from Person which has getEmails which sends back a List\n //then you use .add to add more emails to that List and create new Email object in that list\n myEmployee.getEmails().add(new Email(\"test1@test.com\"));\n myEmployee.getEmails().add(new Email(\"test2@test.com\"));\n myEmployee.getEmails().add(new Email(\"test3@test.com\"));\n\n //for each statement reads email with in myEmployee object then list using getEmails\n for(Email email : myEmployee.getEmails()) {\n System.out.println(email.getEmailAddress());\n }\n\n }", "public Property getProperty() {\n\treturn commonproperty;\r\n}", "protected void extract() {\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\tNode node = nodeState.node;\n\t\t\tRuleResolver resolver = resolvers.get(node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(attrReader, parameters, nodeState.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t} else if (attrReader.dialect.isRules(node)) { \n\t\t\t\t// we have external link (xlink:href or link href)\n\t\t\t\tString external = attrReader.dialect.getExternalRules(node);\n\t\t\t\tif (external != null) {\n\t\t\t\t\textractExternalRules(external);\n\t\t\t\t}\n\t\t\t} else if (node.getNodeName().equals(\"script\")) {\n\t\t\t\t// we have embedded\n\t\t\t\tif (node.hasAttributes()) {\n\t\t\t\t\tif (node.getAttributes().getNamedItem(\"type\").getNodeValue().equals(\"application/its+xml\")) {\n\t\t\t\t\t\textractEmbeddedRules(node.getTextContent());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!nodeState.nodePath.contains(\"its:rules\")) {\n\t\t\t\t// unless we're in rules, look at local annotations\n\t\t\t\t// LOCAL\n\t\t\t\textractLocal(nodeState);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// process inheritance\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\t// Elements: handle inheritance \n\t\t\tITSData parentData = getParentState(nodeState);\n\t\t\tif (parentData != null) {\n\t\t\t\t// inherit from parent\n\t\t\t\tITSData thisData = nodeItsData.get(nodeState.nodePath);\n\t\t\t\tif (thisData == null) {\n\t\t\t\t\tthisData = new ITSData();\n\t\t\t\t\tapplyRuleToNode(nodeState.nodePath, thisData);\n\t\t\t\t} \n\t\t\t\tthisData.inherit(parentData);\t\t\t\t\n\t\t\t}\t\n\t\t\t\t\t\t\n\t\t} \n\t\t\n\t\t\n\t}", "void graphLoadProperties( boolean light, PropertyReceiver receiver );", "private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --i) {\n Property p = (Property) properties.get(i);\n if (p.getName() != null && !p.getName().equals(\"\")) {\n if (set.contains(p.getName())) {\n properties.remove(i);\n } else {\n set.add(p.getName());\n }\n }\n }\n Enumeration e = properties.elements();\n while (e.hasMoreElements()) {\n Property p = (Property) e.nextElement();\n p.setProject(newProject);\n p.execute();\n }\n getProject().copyInheritedProperties(newProject);\n }", "void processWaitingDerivedAssociations() {\n \tList<FamixInvocation> addedInvocations = new ArrayList<FamixInvocation>();\n \tfor (FamixInvocation invocation : waitingDerivedAssociations) {\n \t\n \t/* Test helper\n \tif (invocation.from.equals(\"domain.indirect.violatingfrom.AccessObjectReferenceIndirect_AsReturnValue_MethodDerivedViaArgumentType\")){\n \t\tif (invocation.lineNumber == 27) {\n \t\t\tboolean breakpoint = true;\n \t\t\t}\n \t} */\n \t\n \t// 1) Split invocationName. Precondition: invocation.to is a type and invocationName contains the remainder of the string (determined in the previous process step).\n \tString originalToType = invocation.to;\n \tString nextToString = \"\";\n \t\tboolean continueChaining = false;\n \tString toRemainderChainingInvocation = \"\";\n String[] allSubstrings = invocation.invocationName.split(\"\\\\.\");\n if ((allSubstrings.length > 0) && (!allSubstrings[0].equals(\"\"))) {\n \tnextToString = allSubstrings[0];\n\t invocation.to = invocation.to + \".\" + nextToString; \n\t // Put the remainder in a variable; needed to create a separate indirect association, later on\n\t if (allSubstrings.length > 1) {\n\t \tcontinueChaining = true;\n\t toRemainderChainingInvocation = allSubstrings[1];\n\t for (int i = 2; i < allSubstrings.length ; i++) {\n\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[i];\n\t }\n\t }\n }\n\n \t/* 2) Determine if the second substring is an (inherited) attribute. If so determine the type of the attribute. \n \t * If the type refers to a FamixClass or FamixLibrary, set this type as invocation.to. */\n \tboolean addInvocation = false;\n \tString toTypeNewIndirectInvocation = \"\";\n if (!invocation.to.endsWith(\")\")) {\n\t \tboolean attributeFound = false;\n\t \tString searchKey = invocation.to;\n\t if (theModel.structuralEntities.containsKey(searchKey)) {\n\t \tattributeFound = true;\n\t } else { // Determine if nextToString is an inherited attribute \n\t \t\tString superClassName = indirectAssociations_findSuperClassThatDeclaresVariable(originalToType, nextToString);\n\t \t\tif ((superClassName != null) && !superClassName.equals(\"\")) {\n\t \t\t\tsearchKey = superClassName + \".\" + nextToString;\n\t \t\t\tif (theModel.structuralEntities.containsKey(searchKey)) {\n\t \tattributeFound = true;\n\t\t \t// Create an access dependency on the superclass;\n\t\t \t\t\t\tFamixInvocation newInvocation = indirectAssociations_AddIndirectInvocation(\"AccessPropertyOrField\", invocation.from, superClassName, invocation.lineNumber, invocation.belongsToMethod, invocation.to, invocation.nameOfInstance, true);\n\t\t \taddToModel(newInvocation); \n\t\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t }\n\t \t\t\t}\n\t \t}\n \t// This current association should be added as an access call dependency on the original to-type or on the superclass\n \t\t\tinvocation.to = originalToType;\n \t\t\tinvocation.type = \"AccessPropertyOrField\";\n \t\t\tinvocation.invocationName = nextToString;\n \t\t\taddInvocation = true;\n\t if (attributeFound) {\n \t\t\t// Determine if a next invocation in the chain needs to be created\n\t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(searchKey);\n\t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n\t \t\t\ttoTypeNewIndirectInvocation = entity.declareType;\n\t \t\t} else {\n\t \t\t\tcontinueChaining = false;\n\t \t\t}\n\t \t}\n }\n\n \n \t/* 3) Determine if the second substring is an (inherited) method. If so determine the return type of the method. \n \t * If not a primitive type, but an FamixClass or FamixLibrary,set this type as invocation.to. */\n if (invocation.to.endsWith(\")\")) {\n // Try to find the method; first as a method of the originalToType class\n boolean methodFound = false;\n FamixMethod foundMethod = findInvokedMethodOnName(invocation.from, invocation.belongsToMethod, originalToType, nextToString);\n if (foundMethod != null) {\n\t \tmethodFound = true;\n\t } else { // Determine if nextToString is an inherited method \n\t \t\tString superClassName = indirectAssociations_findSuperClassThatContainsMethod(invocation.from, invocation.belongsToMethod, originalToType, nextToString);\n\t \t\tif ((superClassName != null) && !superClassName.equals(\"\")) {\n\t \t\t\tfoundMethod = findInvokedMethodOnName(invocation.from, invocation.belongsToMethod, superClassName, nextToString);\n\t if (foundMethod != null) {\n\t \t\t\t\tmethodFound = true;\n\t\t \t// Create a call dependency on the superclass;\n\t\t \t\t\t\tFamixInvocation newInvocation = indirectAssociations_AddIndirectInvocation(\"InvocMethod\", invocation.from, superClassName, invocation.lineNumber, invocation.belongsToMethod, invocation.to, invocation.nameOfInstance, true);\n\t\t \taddToModel(newInvocation); \n\t\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t }\n\t \t\t\t}\n\t }\n \t// This current association should be added as a call dependency on the original to-type\n \t\t\tinvocation.to = originalToType;\n \t\t\tinvocation.type = \"InvocMethod\";\n \t\t\tinvocation.invocationName = nextToString;\n \t\t\taddInvocation = true;\n\t if (methodFound) {\n \t\t\t// Determine if a next invocation in the chain needs to be created\n\t \tif (foundMethod.declaredReturnType != null && !foundMethod.declaredReturnType.equals(\"\")){\n\t \t\ttoTypeNewIndirectInvocation = foundMethod.declaredReturnType;\n\t \t\t} else {\n\t \t\t\tcontinueChaining = false;\n\t \t\t}\n\t \t}\n \t}\n \n \t\tif (addInvocation) { \n \t\t\tif (!invocation.from.equals(invocation.to) && (theModel.classes.containsKey(invocation.to) || theModel.libraries.containsKey(\"xLibraries.\" + invocation.to))) {\n\t \t\t\taddToModel(invocation);\n\t\t\t\t\tif (continueChaining) { \n\t\t\t\t\t\t// Create an indirect association to identify dependencies to the remaining parts of the chain. Store it temporarily; it is processed in a separate method. \n\t\t\t\t\t\tFamixInvocation newIndirectInvocation = indirectAssociations_AddIndirectInvocation(\"Undetermined\", invocation.from, toTypeNewIndirectInvocation, invocation.lineNumber, invocation.belongsToMethod, toRemainderChainingInvocation, invocation.nameOfInstance, true);\n\t addedInvocations.add(newIndirectInvocation);\n\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (toRemainderChainingInvocation.equals(\"\") && !toTypeNewIndirectInvocation.equals(\"\")) {\n\t\t\t\t\t\t\t// Create an access invocation to the referred type; the return value of the complete string.\n\t\t\t\t\t\t\tFamixInvocation newIndirectInvocation = indirectAssociations_AddIndirectInvocation(\"AccessPropertyOrField\", invocation.from, toTypeNewIndirectInvocation, invocation.lineNumber, invocation.belongsToMethod, toRemainderChainingInvocation, invocation.nameOfInstance, true);\n\t\t addedInvocations.add(newIndirectInvocation);\n\t\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \twaitingDerivedAssociations.clear();\n \tif (addedInvocations.size() > 0) {\n \t\twaitingDerivedAssociations.addAll(addedInvocations);\n \t\taddedInvocations.clear();\n \tthis.logger.info(new Date().toString() + \" Number of derived Associations: \" + numberOfDerivedAssociations);\n \t\tprocessWaitingDerivedAssociations();\n \t}\n }", "public CompositeProperty(List<Node> segments) {\n this(segments, PropertyMergeMode.NONE);\n }", "PropertyType createPropertyType();", "protected abstract String getPropertyPrefix();", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}" ]
[ "0.6687799", "0.5839142", "0.57843316", "0.55874294", "0.5569647", "0.5542963", "0.55374765", "0.553523", "0.5467473", "0.53639424", "0.5349965", "0.5341272", "0.52765185", "0.5273702", "0.5260945", "0.525916", "0.52445143", "0.52357334", "0.5206672", "0.51784587", "0.5174231", "0.5153472", "0.5119274", "0.51050854", "0.5044056", "0.49912456", "0.4942712", "0.49427104", "0.49311692", "0.49159765", "0.49032605", "0.4895696", "0.4887789", "0.48772323", "0.4876258", "0.48662046", "0.4850206", "0.4849829", "0.4828549", "0.48237172", "0.48081592", "0.47948706", "0.47866926", "0.4782873", "0.47789082", "0.47729516", "0.4772032", "0.4768703", "0.47611713", "0.4748294", "0.47355878", "0.47353944", "0.4732379", "0.47102597", "0.47082144", "0.46956992", "0.4687593", "0.46823478", "0.46808437", "0.4679544", "0.46788526", "0.46787977", "0.46764565", "0.46759415", "0.46564785", "0.46466202", "0.46453398", "0.46411616", "0.46409726", "0.46308473", "0.46306324", "0.46159893", "0.4615356", "0.4609939", "0.46049947", "0.45962933", "0.45875373", "0.45857516", "0.45850098", "0.45774817", "0.4576414", "0.45730284", "0.4569266", "0.45690817", "0.4565994", "0.45655295", "0.45524", "0.45470667", "0.45463187", "0.45443168", "0.45353982", "0.45282927", "0.4527346", "0.45264003", "0.45252463", "0.45050734", "0.45042595", "0.45012814", "0.44996175", "0.4498696" ]
0.577294
3
/ Function to handle when you click something in the action bar
@Override public boolean onOptionsItemSelected(MenuItem item) { // 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. int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clickFmFromMenu();", "void onMenuItemClicked();", "void clickAmFromMenu();", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "public void menuItemClicked( Menu2DEvent e );", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n return true;\n }", "abstract public boolean cabOnMenuItemClicked(ActionMode mode, MenuItem item);", "public void onButtonAPressed();", "String getAction();", "String getAction();", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.action_help:\r\n Intent help = new Intent(facebookplaces.this,appinstr.class);\r\n startActivity(help);\r\n return true;\r\n default:\r\n // If we got here, the user's action was not recognized.\r\n // Invoke the superclass to handle it.\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) \n {\n if (mDrawerToggle.onOptionsItemSelected(item)) \n {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) \n {\n case R.id.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) \n {\n startActivity(intent);\n } \n else\n {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handling item selection\n switch (item.getItemId()) {\n case R.id.action_home:\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n return true;\n case R.id.action_birds:\n intent = new Intent(this, Birds.class);\n startActivity(intent);\n return true;\n case R.id.action_storm:\n intent = new Intent(this, Storm.class);\n startActivity(intent);\n return true;\n case R.id.action_nocturnal:\n intent = new Intent(this, Nocturnal.class);\n startActivity(intent);\n return true;\n case R.id.action_library:\n intent = new Intent(this, Mylibrary.class);\n startActivity(intent);\n return true;\n case R.id.action_now_playing:\n intent = new Intent(this, Nowplaying.class);\n startActivity(intent);\n return true;\n case R.id.action_download:\n intent = new Intent(this, Download.class);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "public void pressMainMenu() {\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n Class c = Methods.onOptionsItemSelected(id);\n if (c != null) {\n Intent intent = new Intent(getBaseContext(), c);\n startActivity(intent);\n }\n return super.onOptionsItemSelected(item);\n }", "void requestActionBar();", "@Override\r\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\r\n // TODO Auto-generated method stub\r\n return false;\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\");\n }", "public interface ActionBarClickListener {\n\n void onLeftClick();\n\n void onRightClick();\n\n}", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (myDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) {\n case R.string.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getSupportActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n } else {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch (item.getItemId()) {\n case R.id.action_websearch:\n Toast.makeText(this, \"Search Web for planet \" + mTitle, Toast.LENGTH_SHORT).show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Handle action buttons\n\t\tswitch (item.getItemId()) {\n\t\t// this is not a desirable approach!\n\t\tcase android.R.id.home:\n\t\t\t// Toast.makeText(this, \"Need to be implemented\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t/*\n\t\t\t * android.support.v4.app.FragmentTransaction ft =\n\t\t\t * getSupportFragmentManager().beginTransaction();\n\t\t\t * ft.replace(R.id.container, fmt); ft.commit();\n\t\t\t */\n\n\t\t\tbreak;\n\t\tcase R.id.action_websearch:\n\t\t\t// // create intent to perform web search for this planet\n\t\t\t// Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n\t\t\t// intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n\t\t\t// // catch event that there's no activity to handle intent\n\t\t\t// if (intent.resolveActivity(getPackageManager()) != null) {\n\t\t\t// startActivity(intent);\n\t\t\t// } else {\n\t\t\t// Toast.makeText(this, R.string.app_not_available,\n\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t// }\n\n\t\t\t// item.expandActionView();\n\t\t\treturn false;\n\t\tcase R.id.menu_exit:\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tcase R.id.action_share:\n\n\t\t\t// String message = \"Text I wan't to share.\";\n\t\t\t// Intent share = new Intent(Intent.ACTION_SEND);\n\t\t\t// share.setType(\"text/plain\");\n\t\t\t// share.putExtra(Intent.EXTRA_TEXT, message);\n\t\t\t// startActivity(Intent.createChooser(share,\n\t\t\t// \"Title of the dialog the system will open\"));\n\n\t\t\tbreak;\n\t\tcase R.id.menu_settings2:\n\t\t\tIntent intent3 = new Intent(this, SettingsPreferences.class);\n\t\t\tstartActivity(intent3);\n\t\t\tbreak;\n\t\tcase R.id.set_date:\n\n\t\t\tfinal CharSequence[] items;\n\t\t\titems = getResources().getTextArray(R.array.dates_for_police);\n\n\t\t\tAlertDialog.Builder builder = Global.giveMeDialog(this, \"Choose a month for police data\");\n\n\t\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tint i = 0;\n\t\t\tfor (; i < items.length; i++) {\n\t\t\t\tif (items[i].equals(Global.POLICE_DATA_REQUEST_MONTH))\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuilder.setSingleChoiceItems(items, i, new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tGlobal.setPOLICE_DATA_REQUEST_MONTH(items[which].toString());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tbuilder.show();\n\n\t\t\tbreak;\n\t\tcase R.id.register_dialgo_action_bar:\n\t\t\tif (!Global.isRegistered(this)) {\n\t\t\t\tif (regDialog == null) {\n\t\t\t\t\tregDialog = new RegDialogFragment();\n\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t} else {\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t\t// Toast.makeText(this, DEBUG + \" ID Yes\",\n\t\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\titem.setVisible(false);\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.email_developer:\n\t\t\tIntent intent = new Intent(Intent.ACTION_SEND);\n\t\t\tintent.setType(\"message/rfc822\");\n\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"yw@it-innovation.soton.ac.uk\" });\n\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, \"[DESURBS] - YOURSafe\");\n\t\t\tintent.putExtra(Intent.EXTRA_TEXT, \"Hi, Yang \\n\\n\");\n\t\t\ttry {\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Send mail...\"));\n\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\tToast.makeText(this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.survey_developer:\n\n\t\t\tString url = \"https://docs.google.com/forms/d/1HgHhfY-Xgt53xqMPCZC_Q_rL8AKUhNi9LiPXyhKkPq4/viewform\";\n\t\t\tintent = new Intent(Intent.ACTION_VIEW);\n\t\t\tintent.setData(Uri.parse(url));\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\n\t\tcase R.id.menu_about:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\t//noinspection SimplifiableIfStatement\n\t\tIntent intent;\n\t\tswitch (id) {\n\t\t\tcase R.id.action_info:\n\t\t\t\tif(mBound) {\n\t\t\t\t\tStringBuffer message = new StringBuffer(getVersionInfo());\n\t\t\t\t\tmessage.append(mService.getConnectivityStatus().toString());\n\t\t\t\t\tMediaPlayerService.showMessageInPopup(message, Toast.LENGTH_LONG * 50, false);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase R.id.action_settings:\n\t\t\t\tintent = new Intent(this, SettingsActivity.class);\n\t\t\t\tstartActivityForResult(intent, FavoriteStationsFrame.RESULT_SETTINGS);\n\t\t\t\treturn true;\n\t\t\t/*case R.id.action_add:\n\t\t\t\tintent = new Intent(this, SearchForStationsFrame.class);\n\t\t\t\tstartActivityForResult(intent, FavoriteStationsFrame.RESULT_ADD_STATIONS);\n\t\t\t\treturn true;*/\n\t\t\tcase R.id.action_help:\n\t\t\t\tintent = new Intent(this, HelpActivity.class);\n\t\t\t\tintent.putExtra(HelpActivity.ARG_SECTION_NUMBER, mViewPager.getCurrentItem());\n\t\t\t\tstartActivity(intent);\n\t\t\t\treturn true;\n\t\t\t/*case R.id.action_help1:\n\t\t\t\tintent = new Intent(this, HelpTabbedActivity.class);\n\t\t\t\tintent.putExtra(HelpTabbedActivity.PlaceholderFragment.ARG_SECTION_NUMBER, mViewPager.getCurrentItem());\n\t\t\t\tstartActivity(intent);\n\t\t\t\treturn true;*/\n\t\t\tcase android.R.id.home:\n\t\t\t\tif(mViewPager.getCurrentItem() == SEARCH_FOR_STATIONS)\n\t\t\t\t\tbreak;\n\t\t\tcase R.id.action_exit:\n\t\t\t\tHandler delayedPost = new Handler();\n\t\t\t\tdelayedPost.postDelayed(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texitApp();\n\t\t\t\t\t}\n\t\t\t\t}, 100);//exitApp();\n\t\t\t\treturn true;\n\t\t\tcase R.id.action_volume_down:\n\t\t\tcase R.id.action_volume_up:\n\t\t\t\tif(mBound)\n\t\t\t\t\tmService.changeVolumeLevel(id==R.id.action_volume_up);\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch (item.getItemId()) {\n case R.id.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n } else {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case R.id.action_exit:\n System.exit(0);\n break;\n case R.id.action_2players:\n Intent mainActivity = new Intent(this, TwoPlayersActivity.class);\n startActivity(mainActivity);\n break;\n case R.id.action_about:\n showPopUpWindow();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "void onNavigationItemClicked(Element element);", "@Override\n\tpublic boolean onOptionsItemSelected( MenuItem item )\n\t{\n\t\tToast.makeText( getActivity().getApplicationContext(), \"test\", Toast.LENGTH_SHORT ).show();\n\t\treturn super.onOptionsItemSelected( item );\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case R.id.action_about:\n // Create a pop up message with a button to close it\n // with information about the app\n AlertDialog.Builder builderAlert = new AlertDialog.Builder(ShowBeer.this);\n builderAlert.setMessage(R.string.about_this_app);\n builderAlert.setCancelable(true);\n builderAlert.setNeutralButton(\n \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alertInstance = builderAlert.create();\n alertInstance.show();\n return true;\n case R.id.action_debug:\n Intent intent = new Intent(ShowBeer.this, DebugActivity.class);\n intent.putExtra(\"DEBUG\", debugQueryText);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "int getAction();", "public void btnHomeClicked(ActionEvent actionEvent) throws Exception {\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_dial) {\n makePhoneCall();\n return true;\n }\n else if (id == R.id.action_browse_web) {\n showBlogSite();\n return true;\n }\n else if (id == R.id.action_browse_disk) {\n browseDisk();\n return true;\n }\n else if (id == R.id.action_indoor_map) {\n openInddorMap();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \"Menu click\",\n Toast.LENGTH_LONG).show();\n }", "public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n if (_actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n switch(item.getItemId()) {\n case R.id.item_logout:\n LogOut();\n return true;\n case R.id.item_about:\n showErrorMessage(\"Clicked About\");\n return true;\n case R.id.item_refresh:\n Reload();\n return true;\n case R.id.item_search:\n LaunchSearch();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n //}\n // Handle other action bar items...\n //return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n } else if (item.getItemId() == R.id.action_copy) {\n presenter.onActionCopy();\n } else if (item.getItemId() == R.id.action_toReddit) {\n presenter.onActionToReddit();\n } else if (item.getItemId() == R.id.action_share) {\n Toast toast = Toast.makeText(this, \"sharing\", Toast.LENGTH_SHORT);\n toast.show();\n } else if (item.getItemId() == R.id.action_addToFavorites) {\n presenter.onActionToggleFavorite();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (item.getItemId()){\n case R.id.action_search:\n //to do\n Toast.makeText(this, \"You clicked search\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.action_filter:\n //to do\n Toast.makeText(this, \"You clicked filter\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n\n return super.onOptionsItemSelected(item);\n }", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n \r\n \tint id = item.getItemId();\r\n switch (id) {\r\n case R.id.action_settings:\r\n \topenSettings();\r\n return true;\r\n case R.id.action_about:\r\n \topenAbout();\r\n \treturn true;\r\n case R.id.action_exit:\r\n \tExit();\r\n \treturn true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\n\t\ttry {\n\t\t\t// Handle presses on the action bar items\n\t\t\tswitch (item.getItemId()) {\n\n\t\t\tcase R.id.action_note_map_view_info:\n\t\t\t\tsetCurrentView(NoteMapView.info);\n\t\t\t\treturn true;\n\n\t\t\tcase R.id.action_note_map_view_image:\n\t\t\t\tsetCurrentView(NoteMapView.image);\n\t\t\t\treturn true;\n\n\t\t\tcase R.id.action_note_map_view_map:\n\t\t\t\tsetCurrentView(NoteMapView.map);\n\t\t\t\treturn true;\n\n\t\t\tcase R.id.action_note_map_close:\n\t\t\t\t// close -> go back to FragmentMainInput\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\n\t\t\tdefault:\n\t\t\t\treturn super.onOptionsItemSelected(item);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tLog.e(MODULE_TAG, ex.getMessage());\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_right_drawer:\n openTopDialog(false);\n return true;\n }\n if (item.getTitle() == \"Live Chat\") {\n //Toast.makeText(this, \"clicked add\", Toast.LENGTH_SHORT).show();\n fabLiveChat.performClick();\n }\n return super.onOptionsItemSelected(item);\n }", "void onClick();", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n if (id == R.id.testAction) {\n /*Intent i = new Intent(getApplicationContext(), NotificationActivity.class);\n startActivity(i);*/\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n mDrawerLayout.openDrawer(GravityCompat.START);\n return true;\n case R.id.action_camera:\n Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n return true;\n case R.id.action_settings:\n Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n return true;\n case R.id.action_edit_urls:\n Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n return true;\n case R.id.action_about:\n //Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n startActivity(new Intent(this, AboutActivity.class));\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n return super.onOptionsItemSelected(item);\r\n }", "public void onClicked();", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n\n case R.id.action_search:\n openSearch();\n return true;\n case R.id.action_settings:\n openSettings();\n return true;\n case R.id.action_help:\n openHelp();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public void onMenuClick() {\n Toast.makeText(SearchActivity_.this, \"Menu click\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void nativeMouseClicked(NativeMouseEvent e) {\n\t\t\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item){\n super.onOptionsItemSelected(item);\n return true;\n }", "@Override\r\n\tpublic void onClick(View arg0) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}", "void onTopQDMPasteClicked();", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "void onChamaItemClicked(int position);", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle action bar actions click\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_rate:\n\n\t\t\n\t\t\tToast.makeText(con, \"rate button is clicked\", 1000).show(); \n\n\t\t\treturn true;\n\t\t\t\n\t\tcase R.id.action_best:\n\n\t\t\t\n\t\t\tToast.makeText(con, \"Best button is clicked\", 1000).show(); \n\n\t\t\treturn true;\n\t\t\t\n\t\t\t\n\t\tcase R.id.action_liked:\n\n\t\t\t\n\t\t\tToast.makeText(con, \"liked button is clicked\", 1000).show(); \n\n\t\t\treturn true;\n\t\t\t\n\t\t\t\n\t\tcase R.id.action_language:\n\t\t{\n\t\t\tToast.makeText(con, \"Language button is clicked\", 1000).show(); \n\t\t\t\n\t\t\t\n\t\t\tString lCode=\"en\";\n\t\t\t\n\t\t\tif(PersistData.getStringData(con, \"LNG\").equalsIgnoreCase(\"en\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *english is there already, need bangla\n\t\t\t\t */\n\t\t\t\tlCode=\"bn\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if(PersistData.getStringData(con, \"LNG\").equalsIgnoreCase(\"bn\"))\n\t\t\t\n\t\t\t{\n\t\t\t\tlCode=\"en\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tchangeLocateAndRestart(lCode);\n\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmenu.toggle();\r\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.action_settings :\n return true;\n\n case R.id.historic:\n vibe.vibrate(60); // 60 is time in ms\n Intent historicIntent = new Intent(MainActivity.this,HistoricActivity.class);\n historicIntent.setAction(BaseUtils.HISTORIC_INTENT);\n startActivityForResult(historicIntent, 1);\n\n break;\n case R.id.action_left:\n\n if(wV.canGoBack()){\n vibe.vibrate(60); // 60 is time in ms\n wV.goBack();\n }else{\n Toast.makeText(this,\"Nothing to load\",Toast.LENGTH_SHORT).show();\n }\n break;\n case R.id.action_right:\n if(wV.canGoForward()){\n vibe.vibrate(60); // 60 is time in ms\n wV.goForward();\n }else{\n Toast.makeText(this,\"Nothing to load\",Toast.LENGTH_SHORT).show();\n }\n break;\n case R.id.bookmarks:\n vibe.vibrate(60); // 60 is time in ms\n //Insert into bookmarks the active URL\n dao.insertBookmark(this,wV.getUrl());\n break;\n case R.id.seeBookmarks:\n Intent bookmarkIntent = new Intent(MainActivity.this,HistoricActivity.class);\n bookmarkIntent.setAction(BaseUtils.BOOKMARKS_INTENT);\n startActivityForResult(bookmarkIntent,1);\n break;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case R.id.action_tweet:\n Intent intentTweet = new Intent(\"com.phonbopit.learnandroid.yamba.action.tweet\");\n startActivity(intentTweet);\n return true;\n case R.id.action_purge:\n\n return true;\n case R.id.action_settings:\n Intent intentSettings = new Intent(this, SettingActivity.class);\n startActivity(intentSettings);\n return true;\n case R.id.action_refresh:\n\n return true;\n default:\n return false;\n }\n\n }", "public void act() \n {\n checkClicked();\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "void leftClickPressedOnDelivery();", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}", "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }", "void onUpOrBackClick();", "public void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "public void recordInProductHelpMenuItemClicked() {\n RecordUserAction.record(\"Android.ChromeHome.IPHMenuItemClicked\");\n }", "void onSnackBarActionClicked(int uniqueId, View view);", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n\n if (id == R.id.action_add){\n switch (currentFg) {\n case 0:\n clickToContent();\n break;\n case 1:\n if (visitContentFragment.getCondition() > 3)\n return true;\n clickAddAndSave(false, false, null, null);\n }\n return true;\n }\n else if (id == R.id.action_submit){\n if (currentFg == 1)\n callCensor();\n return true;\n }\n else if (id == android.R.id.home){\n clickBack();\n return true;\n }\n else if (id == R.id.action_tape){\n if (currentFg == 1)\n clickTape();\n return true;\n }\n else if (id == R.id.action_play){\n if (currentFg == 1)\n clickPlay();\n return true;\n }\n else if (id == R.id.action_finish){\n clickFinish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }" ]
[ "0.7381928", "0.7329855", "0.7129729", "0.69823676", "0.6888961", "0.68107206", "0.6797901", "0.6759822", "0.67171586", "0.67171586", "0.6716556", "0.669694", "0.66731685", "0.6657524", "0.66506684", "0.6626591", "0.661687", "0.66166353", "0.66101086", "0.6600784", "0.65951914", "0.6573565", "0.65681833", "0.6566478", "0.6557209", "0.65311", "0.65209275", "0.65209275", "0.65209275", "0.65209275", "0.6512285", "0.64981514", "0.6490446", "0.64901114", "0.6485513", "0.64815956", "0.64773554", "0.6477223", "0.64642715", "0.64521486", "0.6450222", "0.6438484", "0.64301246", "0.642894", "0.6427518", "0.64173585", "0.641445", "0.64144176", "0.64121693", "0.6405008", "0.63972324", "0.63968724", "0.638715", "0.6385598", "0.63854736", "0.63818467", "0.6380851", "0.63792145", "0.63764316", "0.63764316", "0.63764316", "0.6374437", "0.63707757", "0.63693726", "0.63664424", "0.6364048", "0.6363174", "0.63471055", "0.63468194", "0.6345695", "0.6344938", "0.6342004", "0.63419026", "0.63419026", "0.6338105", "0.6336598", "0.63358253", "0.6331821", "0.63316643", "0.63304317", "0.63304317", "0.63304317", "0.63304317", "0.6329432", "0.63281024", "0.6326386", "0.6324098", "0.6323116", "0.6323082", "0.63223237", "0.6321384", "0.6321317", "0.63208216", "0.6317831", "0.6317582", "0.63129175", "0.63118815", "0.63118815", "0.63118815", "0.63118815", "0.63118815" ]
0.0
-1
always 0 for the server, but will be sent as an arument anyway
public ServerOnlyReadsThread(Context c,ServerSocket ss,Socket s,Game g,int p,Handler h,Handler h2) { super(); context = c; serverSocket = ss; client = s; test_string = " arxi "; game = g; priority = p; handler = h; debugging = h2; n=g.numberOfPlayers; //Toast.makeText(context," Successfull creation!!! Me prior= "+priority,Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void reply_no() throws java.io.IOException {\n byte[] no = PushCacheProtocol.instance().noPacket();\n _socket.getOutputStream().write(no, 0, no.length);\n }", "@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}", "public int sendDataPacket()\n{\n \n return(0);\n\n}", "@Override\r\n\tprotected Integer zero() {\n\t\treturn 0;\r\n\t}", "public byte get_sendbyte0() {\n return sendbyte0;\n }", "@Override\r\n\tpublic int getLength() {\n\t\treturn 0;\r\n\t}", "@Override\n public int value() {\n return 0;\n }", "private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPacket = new DatagramPacket(sendData, 4, receivePacket.getAddress(),\n\t\t\t\treceivePacket.getPort());\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public synchronized void sendNo() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_NO);\r\n\t\tendMessage();\r\n\t}", "@Override\r\n\tpublic int write() throws Exception {\n\t\treturn 0;\r\n\t}", "protected int getRequestContentLength() {\n return 0;\n }", "@Override\n public int getResponseQueueLength() {\n return 0;\n }", "protected void reply_ok() throws java.io.IOException {\n byte[] ok = PushCacheProtocol.instance().okPacket();\n _socket.getOutputStream().write(ok, 0, ok.length);\n }", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "private void sendACKPacket()\n{\n \n //the values are unpacked into bytes and stored in outBufScratch\n //outBufScrIndex is used to load the array, start at position 0\n \n outBufScrIndex = 0;\n \n outBufScratch[outBufScrIndex++] = Notcher.ACK_CMD;\n \n //the byte is placed right here in this method\n outBufScratch[outBufScrIndex++] = lastPacketTypeHandled;\n \n //send header, the data, and checksum\n sendByteArray(outBufScrIndex, outBufScratch);\n \n}", "public void run() {\n req.response().end(\"0\"); // Default response = 0\n }", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tprotected void encode(ChannelHandlerContext ctx, RPCResponse msg, ByteBuf out) throws Exception {\n\t\tbyte[] data = SerializationUtils.serialize(msg);\n\t\tout.writeInt(data.length);\n\t\tout.writeBytes( data );\n\t}", "@Override\n public long getResponseQueueSize() {\n return 0;\n }", "@Override\n protected void serialize(OutputStream os) throws IOException {\n writeInt(os,_gateCounter);\n }", "@Override\n public int getBufferSize() {\n return 0;\n }", "@Override\r\n\tpublic byte[] encode(SendContent i) {\n\t\treturn null;\r\n\t}", "public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = 1;\n this._sendData[1] = (byte) (this.iOIndex & 15);\n }", "@Override\n\tpublic long bytesWritten() {\n\t\treturn 0;\n\t}", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "@Override\n\tpublic int getOpcode() {\n\t\treturn 0;\n\t}", "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "public int length() {\n return 0; \n }", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "public void send() {\n\t}", "@Override\r\n\tpublic Buffer appendUnsignedShort(int s) {\n\t\treturn null;\r\n\t}", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "public int defaultLength() {\r\n return 0;\r\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "Response mo35726n0() throws IOException;", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public int len() {\n return 0;\n }", "void send(StrictBitVector messageZero, StrictBitVector messageOne);", "private void sendRecognition() throws IOException {\n dataWriter.writeInt(1);\n dataWriter.flush();\n }", "@Override\n\tpublic String sendMsg1() {\n\t\treturn null;\n\t}", "public void O00000o() {\n int i = this.O00000Oo;\n byte[] bArr = {(byte) (i & 255), (byte) ((i >> 8) & 255)};\n StringBuilder n = a.n(\"prepare update mesh address -->\");\n n.append(this.O00000o0);\n n.append(\" new : \");\n n.append(Integer.toHexString(this.O00000Oo));\n o00oo0oo00.O000000o(O000000o, n.toString());\n new o00o0ooooo().O000000o(this.O00000oo).O00000Oo(bArr).O000000o(0).O000000o(this.O00000oO).O00000Oo(this.O00000o).O000000o(this.O00000o0).O000000o(false).O000000o((o00o0o0o0o.O000000o) new o00o0o0o0o.O000000o() {\n public void O000000o(String str, String str2) {\n }\n\n public void O00000Oo() {\n o00oo0oo00.O000000o(o00o0ooo0o.O000000o, \"command getParams success\");\n }\n }).O0000OOo().O000000o();\n }", "@Override\n\tpublic long bytesRead() {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic int getStatus() {\n\t\t\treturn 0;\n\t\t}", "@Override\n public void onReceivedData(byte[] arg0) {\n try {\n ultimoDadoRecebido = ultimoDadoRecebido + new String(arg0, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "String getZeroString()\n {\n return \"\"+0;\n }", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}", "@Override\n\tpublic byte[] reqByteFormat() {\n\t\treturn null;\n\t}", "public int method_4108(Channel var1) {\n return 0;\n }", "@Override\r\n\tpublic long getSize() {\n\t\treturn 0;\r\n\t}", "@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }", "@Override\n\t\tpublic String getMessage() {\n\t\t\treturn \"zero \" + super.getMessage();\n\t\t}", "@Override\n public void write() {\n\n }", "@Override\n public int getUploaded() {\n return 0;\n }", "@Override // jcifs.smb.SmbComTransactionResponse\n public int writeDataWireFormat(byte[] dst, int dstIndex) {\n return 0;\n }", "private void envoieInt(Socket sockService, int chiffre){\n try{\n DataOutputStream oStream = new DataOutputStream(sockService.getOutputStream());\n oStream.writeInt(chiffre);\n }\n catch(IOException ioe){\n System.out.println(\"Erreur lors de l'envoie d'un chiffre : \" + ioe.getMessage());\n }\n \n }", "@Override\n public byte[] getBytes() {\n return new byte[0];\n }", "@Override\r\n\tpublic double alapterulet() {\n\t\treturn 0;\r\n\t}", "@Override\n public void run() {\n if (socket != null) {\n byte b0 = get_sendbyte0();\n byte b1 = get_sendbyte1();\n Log.e(\"handler\", String.valueOf(b0) + String.valueOf(b1));\n if (outputStream == null) {\n try {\n outputStream = socket.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n outputStream.write(new byte[]{(byte) 1, b0, b1, (byte) 1}); /*1, b0, b1, 1*/\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "@Override\n\tpublic String init_request() {\n\t\treturn null;\n\t}", "public void sendSignal(int sig) {\n try {\n dOut.writeInt(sig);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send number of players\");\n e.printStackTrace();\n }\n }", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\n\tpublic long getSize() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getSize() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void sendResponse() {\n\t\t\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void send(int i) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.INT_CONST);\r\n\t\t\t\tdos.writeInt(i);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}", "protected void encode() {\t\n\t\tsuper.rawPkt = new byte[12 + this.pktData.length];\n\t\tbyte[] tmp = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(tmp, 0, super.rawPkt, 4, 4);\n\t\tSystem.arraycopy(this.pktName, 0, super.rawPkt, 8, 4);\n\t\tSystem.arraycopy(this.pktData, 0, super.rawPkt, 12, this.pktData.length);\n\t\twriteHeaders();\n\t\t//System.out.println(\"ENCODE: \" + super.length + \" \" + rawPkt.length + \" \" + pktData.length);\n\t}", "private void sentOutputAsRealMax() {\n outputAsRealMax = true;\n }", "private boolean noMessage() {\n\t\treturn nbmsg==0;\n\t}", "void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIntent.setClass(mContext, BGXpressService.class);\n writeIntent.putExtra(\"DeviceAddress\", mDeviceAddress);\n startService(writeIntent);\n }", "public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[26];\n }\n System.arraycopy(BytesUtil.getBytes(this.mLongtitue), 0, this._sendData, 0, 8);\n System.arraycopy(BytesUtil.getBytes(this.mLantitue), 0, this._sendData, 8, 8);\n System.arraycopy(BytesUtil.getBytes(this.mNorthSpeed), 0, this._sendData, 16, 4);\n System.arraycopy(BytesUtil.getBytes(this.mEastSpeed), 0, this._sendData, 20, 4);\n System.arraycopy(BytesUtil.getBytes(this.mAccuracy), 0, this._sendData, 24, 2);\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public int getMsgType(){\r\n return localMsgType;\r\n }", "public int length() {\n return 0; // REPLACE THIS LINE WITH THE RIGHT ANSWER.\n }", "private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "@Override\n\tprotected void requesting(ExtendedDataOutputStream out) throws Exception\n\t{\n\t\tout.writeObject(this.clientServerPort);\n\t}", "@Override // jcifs.smb.SmbComTransactionResponse\n public int writeParametersWireFormat(byte[] dst, int dstIndex) {\n return 0;\n }", "public void generateAroundPlayer() {\n try {\n DataOutputStream dataOutputStream = new DataOutputStream(SixEngineClient.client.socket.getOutputStream());\n\n dataOutputStream.writeByte(5);\n dataOutputStream.writeInt(getChunkX());\n dataOutputStream.writeInt(getChunkY());\n dataOutputStream.writeInt(getChunkZ());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic int getSize() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getSize() {\n\t\treturn 0;\r\n\t}", "@HandlerMethod(enable=true)\n\tpublic boolean handler(GS0021Request req, SG0021Response res)\n\t\t\tthrows ProtocolException {\n\t\tLong count=gameBlockadeMessageService.getUnreadMessageCount(req.getGbuToId());\n\t\tres.setTotal((count));\n\t\treturn true;\n\t}", "void send();", "@Override\n public void zmianaPkt(int wartosc){\n this.pktLojalnosciowe+=wartosc;\n }", "@Override\r\n\t\t\tpublic long size() {\n\t\t\t\treturn 0;\r\n\t\t\t}", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "@Override\n\t\tpublic int getContentLength() {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic void sendResponse() {\n\n\t}", "@Override\n public int getSize() {\n\treturn 0;\n }", "public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = (byte) this.expMode;\n if (this.expMode == 6) {\n this._sendData[1] = (byte) this.senceMode;\n }\n }", "public byte[] requestDump(Model tempModel) \n {\n \n return new byte[0]; \n }", "public static Integer length() {\n return 0;\n }", "private byte[] execHandlerWrite( Message msg ) {\n\t\tbyte[] bytes = (byte[]) msg.obj;\n \tString data = mByteUtility.bytesToHexString( bytes ); \n\t\tlog_d( \"EventWrite \" + data );\n\t\treturn bytes;\n\t}", "public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[13];\n }\n this._sendData[0] = 0;\n if (this.isMenu) {\n byte[] bArr = this._sendData;\n bArr[0] = (byte) (bArr[0] | 1);\n }\n if (this.isPlayback) {\n byte[] bArr2 = this._sendData;\n bArr2[0] = (byte) (bArr2[0] | 2);\n }\n if (this.isRecord) {\n byte[] bArr3 = this._sendData;\n bArr3[0] = (byte) (bArr3[0] | 4);\n }\n BytesUtil.arraycopy(generateChannelByte(), this._sendData, 1);\n this._sendData[11] = 0;\n if (this.isButton) {\n byte[] bArr4 = this._sendData;\n bArr4[11] = (byte) (bArr4[11] | 1);\n }\n byte[] bArr5 = this._sendData;\n bArr5[11] = (byte) (bArr5[11] | (this.buttonData << 1));\n byte[] bArr6 = this._sendData;\n bArr6[11] = (byte) (bArr6[11] | (this.symbol << 6));\n byte[] bArr7 = this._sendData;\n bArr7[11] = (byte) (bArr7[11] | (this.change << 7));\n byte[] bArr8 = this._sendData;\n bArr8[12] = (byte) (bArr8[12] | this.shutter);\n byte[] bArr9 = this._sendData;\n bArr9[12] = (byte) (bArr9[12] | (this.focus << 1));\n byte[] bArr10 = this._sendData;\n bArr10[12] = (byte) (bArr10[12] | (this.mode_sw << 2));\n byte[] bArr11 = this._sendData;\n bArr11[12] = (byte) (bArr11[12] | (this.transform_sw << 4));\n byte[] bArr12 = this._sendData;\n bArr12[12] = (byte) (bArr12[12] | (this.gohome << 6));\n }", "@Override\n\tpublic String createMsg_request() {\n\t\treturn null;\n\t}", "public synchronized void sendInvalid() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_INVALID);\r\n\t\tendMessage();\r\n\t}", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "@Override\r\n\tpublic double aumentarSueldo() {\n\t\treturn 0;\r\n\t}" ]
[ "0.6337229", "0.60263735", "0.60263735", "0.6005738", "0.5932405", "0.58714247", "0.58672714", "0.5838753", "0.5809792", "0.57809424", "0.5725155", "0.57215893", "0.56887734", "0.5655338", "0.5589968", "0.55743366", "0.55046505", "0.55011123", "0.55010736", "0.54890233", "0.5483157", "0.54649216", "0.54634655", "0.5448278", "0.54480374", "0.5380141", "0.5376094", "0.5370839", "0.5369104", "0.5356707", "0.5353774", "0.5307066", "0.52991813", "0.52871364", "0.52747154", "0.5274597", "0.52742106", "0.52687776", "0.5263825", "0.5252806", "0.5249477", "0.5248628", "0.5246817", "0.5243046", "0.5224526", "0.5221874", "0.5213881", "0.52135026", "0.5196152", "0.51937264", "0.51888394", "0.5186915", "0.518498", "0.5184107", "0.51785254", "0.5172346", "0.5171192", "0.5164413", "0.5161238", "0.51602054", "0.515568", "0.5154625", "0.5154534", "0.51417446", "0.51408", "0.51408", "0.5136036", "0.5134635", "0.5132165", "0.51279324", "0.5127837", "0.5126877", "0.5124865", "0.5122586", "0.5110475", "0.5102787", "0.51016295", "0.5097081", "0.5096218", "0.50908196", "0.50901014", "0.5088892", "0.5073424", "0.5073424", "0.50728834", "0.50680435", "0.5067876", "0.50635576", "0.50603235", "0.5060226", "0.5058598", "0.5058336", "0.50561756", "0.50532806", "0.5052499", "0.5051647", "0.50515926", "0.50475883", "0.50453496", "0.50443035", "0.5041685" ]
0.0
-1
Created by johnzeringue on 12/10/15.
public interface Sample { /** * Returns the sample's platform name. * * @return the platform name */ String getPlatformName(); /** * Returns the sample's cruise name. * * @return the cruise name */ String getCruiseName(); /** * Returns the sample's name. * * @return the name */ String getName(); /** * Returns the date on which sample collection begun. * * @return the collection begin date */ LocalDate getCollectionBeginDate(); /** * Returns the date on which sample collection ended. * * @return the collection end date */ LocalDate getCollectionEndDate(); /** * Returns the sample's latitude using the WGS 84 datum. * * @return the WGS 84 latitude */ BigDecimal getWgs84Latitude(); /** * Returns the sample's ending latitude using the WGS 84 datum. * * @return the WGS 84 ending latitude */ BigDecimal getWgs84EndingLatitude(); /** * Returns the sample's longitude using the WGS 84 datum. * * @return the WGS 84 longitude */ BigDecimal getWgs84Longitude(); /** * Returns the sample's ending longitude using the WGS 84 datum. * * @return the WGS 84 ending longitude */ BigDecimal getWgs84EndingLongitude(); /** * Returns the sample's elevation in meters. * * @return the elevation in meters */ BigDecimal getElevation(); /** * Returns the sample's ending elevation in meters. * * @return the ending elevation in meters */ BigDecimal getEndingElevation(); /** * Returns the sample's material. * * @return the material */ String getMaterial(); /** * Returns the sample's type. * * @return the type */ String getType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void m50366E() {\n }", "public void method_4270() {}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "private void strin() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "private void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "public void mo21877s() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo12628c() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public abstract void mo70713b();", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void jugar() {}" ]
[ "0.5880294", "0.5752948", "0.5741202", "0.5698216", "0.5678898", "0.5661348", "0.56237113", "0.5598401", "0.55736196", "0.5569708", "0.5566653", "0.5566653", "0.55627716", "0.55306536", "0.5527147", "0.55269194", "0.55213034", "0.5503588", "0.5498134", "0.5493282", "0.5457779", "0.54494935", "0.5445759", "0.5442991", "0.5442991", "0.5442991", "0.5442991", "0.5442991", "0.54355955", "0.5435451", "0.54290396", "0.5426369", "0.5423179", "0.54197574", "0.54133046", "0.54039794", "0.53808373", "0.53808373", "0.53750575", "0.53633356", "0.5363232", "0.5341536", "0.53405833", "0.5321642", "0.53164923", "0.5316187", "0.531319", "0.53043425", "0.5298059", "0.52974916", "0.52948034", "0.52948034", "0.52948034", "0.5282882", "0.5282882", "0.5282882", "0.52811307", "0.5276519", "0.5276457", "0.5274867", "0.5274867", "0.5274867", "0.5274867", "0.5274867", "0.5274867", "0.52616554", "0.5257208", "0.525462", "0.525462", "0.525462", "0.5253513", "0.5242806", "0.5242806", "0.52409947", "0.5237919", "0.52375275", "0.52341735", "0.5227103", "0.5216972", "0.5211289", "0.5211289", "0.52090544", "0.5207027", "0.5207027", "0.5207027", "0.5207027", "0.5207027", "0.5207027", "0.5207027", "0.52009916", "0.5197543", "0.5189252", "0.5188182", "0.5186497", "0.51699364", "0.51645166", "0.51645166", "0.5163799", "0.5161439", "0.5155987", "0.51549464" ]
0.0
-1
Returns the sample's platform name.
String getPlatformName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final PlatformName getPlatformName() {\n return configuration.getApplicationProfile().getPlatformName();\n }", "public String getPlatformName() {\n\t\treturn myPlatformName;\n\t}", "public static String getRandomPlatform() {\n int index = RandomNumberGenerator.getRandomInt(0, platforms.length - 1);\n return platforms[index];\n }", "String platform();", "public static String getDefaultPlatformName() {\n\t\tPLATFORM_NAME = \"defaultGC\";\n\t\treturn PLATFORM_NAME;\n\t}", "public String getPlatformGroupName() {\r\n\t\treturn platformGroupName;\r\n\t}", "public static String getOSName() {\n\t\treturn System.getProperties().getProperty(\"os.name\");\n\t}", "public Vector<String> getPlatform() {\n return platform;\n }", "public Platform getPlatform();", "public String getCreatePlatform() {\n return createPlatform;\n }", "Object getPlatform();", "public static String osName() {\r\n Object _osname=null;\r\n \r\n try {\r\n _osname=System.getProperty(\"os.name\");\r\n }\r\n catch (Exception ex) {\r\n _osname=null;\r\n ex.printStackTrace();\r\n }\r\n \r\n String _name=\"\";\r\n if (_osname!=null) _name=_osname.toString();\r\n \r\n return _name;\r\n }", "@JsonProperty(\"platform\")\n public String getPlatform() {\n return platform;\n }", "public String getSystemName();", "public String getPlatformcode() {\n return platformcode;\n }", "public final String getOS() {\n String out = System.getProperty(\"os.name\");\n String os = out.split(\" \")[0];\n\n return os.toLowerCase();\n }", "public Long getPlatform() {\n\t\treturn platform;\n\t}", "static String GetLibName() {\n\t\tString arch = System.getProperty(\"os.arch\");\n\t\tif (arch != null && arch.endsWith(\"64\"))\n\t\t\treturn \"nscube64\";\n\t\telse\n\t\t\treturn \"nscube\";\n\t}", "public static String getRandomMinPlatform() {\n\n return \"> \" + getRandomVersion();\n }", "public String getPlatformCode() {\n return platformCode;\n }", "java.lang.String getMinCpuPlatform();", "public PlatformType getPlatformType();", "String getSdkName();", "public String getPlatformVersion() {\n return this.platformVersion;\n }", "public String getPlatformVersion() {\n return this.platformVersion;\n }", "private void determinePlatform() {\n \t\tString os = System.getProperty(\"os.name\");\n \t\t\n \t\tif (os == null)\n \t\t\tthrow new RuntimeException();\n \t\t\n \t\tif (os.startsWith(WINDOWS_ID))\n \t\t\tisWindows = true;\n \t\telse\n \t\t\tisUnixLike = true;\n \t}", "public static String getTesseractLibName() {\n return Platform.isWindows() ? LIB_NAME : LIB_NAME_NON_WIN;\n }", "public String printPlatform() {\n String str = new String();\n for (int i = 0; i < platform.size() - 1; i++) {\n str += platform.get(i) + \", \";\n }\n str+= platform.get(platform.size() - 1);\n return str;\n }", "public String deviceName() {\n\t\t String manufacturer = Build.MANUFACTURER;\n\t\t String model = Build.MODEL;\n\t\t if (model.startsWith(manufacturer)) {\n\t\t return capitalize(model);\n\t\t } else {\n\t\t return capitalize(manufacturer) + \" \" + model;\n\t\t }\n\t\t}", "public static synchronized String getTestProjectName() {\n String retVal;\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.getTestProjectName\");\n if (Utility.isMacintosh()) {\n retVal = \"Test Project\";\n } else if (Utility.isLinux()) {\n retVal = \"Test Project\";\n } else {\n retVal = \"Test ProjectW\";\n }\n return retVal;\n }", "public abstract String getSystemName();", "public static String OSDetector() {\r\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\r\n\t\tif (os.contains(\"win\")) {\r\n\t\t\treturn \"Windows\";\r\n\t\t} else if (os.contains(\"nux\") || os.contains(\"nix\")) {\r\n\t\t\treturn \"Linux\";\r\n\t\t} else if (os.contains(\"mac\")) {\r\n\t\t\treturn \"Mac\";\r\n\t\t} else if (os.contains(\"sunos\")) {\r\n\t\t\treturn \"Solaris\";\r\n\t\t} else {\r\n\t\t\treturn \"Other\";\r\n\t\t}\r\n\t}", "public String getSampleName();", "@AutoEscape\n public String getPlatforms();", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (model.startsWith(manufacturer)) {\n return capitalize(model);\n } else {\n return capitalize(manufacturer) + \" \" + model;\n }\n }", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (model.startsWith(manufacturer)) {\n return capitalize(model);\n } else {\n return capitalize(manufacturer) + \" \" + model;\n }\n }", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (model.startsWith(manufacturer)) {\n return capitalize(model);\n }\n return capitalize(manufacturer) + \" \" + model;\n }", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _scienceApp.getName();\n\t}", "public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }", "public Optional<Version> platform() { return platform; }", "public String getSystemName() {\n return systemName;\n }", "public String getLibraryName() {\n return getProperty(Property.LIBRARY_NAME);\n }", "public static void main(String[] args) {\n System.out.println(Arrays.toString(Platform.values())); // [WINDOWS, XP, VISTA, WIN8, MAC, UNIX, LINUX, ANDROID, ANY]\n System.out.println(getCurrent()); // MAC\n System.out.println(Arrays.toString(getCurrent().getPartOfOsName())); // [mac, darwin]\n System.out.println(getCurrent().getMajorVersion()); // 10\n System.out.println(getCurrent().getMinorVersion()); // 9\n\n\n System.out.println(Platform.LINUX.is(Platform.UNIX)); // Return true\n System.out.println(Platform.MAC.is(Platform.WINDOWS)); // Return false\n\n\n // I am on Mac, so It return me Mac\n if (Platform.getCurrent().equals(Platform.MAC)){\n System.out.println(\"Mac\");\n // Do something....\n\n }else if (Platform.getCurrent().equals(Platform.WINDOWS)){\n System.out.println(\"Windows\");\n // Do something...\n }else{\n System.out.println(\"Unknown\");\n }\n\n }", "String getOperatingModeName();", "public static String m21396c() {\n return Build.MANUFACTURER;\n }", "public static String getManufacturer() {\n String mfg = \"unknown\"; //$NON-NLS-1$\n if (apiLevel() > 3) {\n try {\n final Class<?> buildClass = Build.class;\n mfg = (String) buildClass.getField(\"MANUFACTURER\").get(null); //$NON-NLS-1$\n } catch (final Exception ignore) {\n Log.d(TAG, \"Caught exception\", ignore); //$NON-NLS-1$\n }\n }\n return mfg;\n }", "public String getImagePlatformString() {\n\t\tMap<Short, List<DevicePropertyAttrOptionObj>> optionMap = DevicePropertyManage.getInstance().getDeviceModelOptionsMapping(DeviceInfo.SPT_IMAGE_INTERNAL_NAME);\r\n\t\tString imageVerNum = getImageVersionNum();\r\n\t\t\r\n//\t\t//version map\r\n//\t\tIterator<Entry<Short, String>> latestVerItem = latestVerMap.entrySet().iterator();\r\n//\t\twhile(latestVerItem.hasNext()){\r\n//\t\t\tEntry<Short, String> latestVerEntry = latestVerItem.next();\r\n//\t\t\tif(NmsUtil.compareSoftwareVersion(imageVerNum, latestVerEntry.getValue()) < 0){\r\n//\t\t\t\tlatestVerItem.remove();\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n\t\t//filter platform\r\n\t\tIterator<Entry<Short, List<DevicePropertyAttrOptionObj>>> optionIterator = optionMap.entrySet().iterator();\r\n\t\twhile(optionIterator.hasNext()){\r\n\t\t\tEntry<Short, List<DevicePropertyAttrOptionObj>> optionEntry = optionIterator.next();\r\n//\t\t\tif(!latestVerMap.containsKey(optionEntry.getKey())){\r\n//\t\t\t\toptionIterator.remove();\r\n//\t\t\t\tcontinue;\r\n//\t\t\t}\r\n\t\t\tif(optionEntry.getValue() == null || optionEntry.getValue().isEmpty()){\r\n\t\t\t\toptionIterator.remove();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tboolean pFound = false;\r\n\t\t\tfor(DevicePropertyAttrOptionObj optObj : optionEntry.getValue()){\r\n\t\t\t\tif(optObj.getValue().equals(this.productName)){\r\n\t\t\t\t\tpFound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!pFound){\r\n\t\t\t\toptionIterator.remove();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString[] supportVersions = (String[])AhConstantUtil.getEnumValues(Device.SUPPORTED_HIVEOS_VERSIONS, optionEntry.getKey());\r\n\t\t\tif(supportVersions == null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tpFound = false;\r\n\t\t\tfor(String versionNum : supportVersions){\r\n\t\t\t\tif(NmsUtil.compareSoftwareVersion(versionNum, imageVerNum) == 0){\r\n\t\t\t\t\tpFound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!pFound){\r\n\t\t\t\toptionIterator.remove();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString pName = null;\r\n\t\tfor (Short apModel : optionMap.keySet()) {\r\n\t\t\tpName = AhConstantUtil.getString(Device.NAME, apModel);\r\n\t\t\tif(StringUtils.isEmpty(pName) || \"null\".equalsIgnoreCase(pName)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}else if (sb.length() == 0) {\r\n\t\t\t\tsb.append(pName);\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(\", \").append(pName);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}", "public java.lang.String getSystemName() {\r\n return systemName;\r\n }", "String getOs();", "public static String getGnssHardwareModelName(Context context) {\n String modelName = \"\";\n LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {\n if (locationManager.getGnssHardwareModelName() != null) {\n modelName = String.valueOf(locationManager.getGnssHardwareModelName());\n }\n }\n return modelName;\n }", "@Nested\n public Property<NativePlatform> getTargetPlatform() {\n return targetPlatform;\n }", "java.lang.String getOs();", "public static String getDeviceName() {\n\t\t\tString manufacturer = Build.MANUFACTURER;\n\t\t\tString model = Build.MODEL;\n\t\t\tif (model.startsWith(manufacturer)) {\n\t\t\t\treturn capitalize(model);\n\t\t\t}\n\t\t\treturn capitalize(manufacturer) + \" \" + model;\n\t\t}", "String intermediateSystemName();", "public static String getOSInfo() {\n String os = System.getProperty(\"os.name\");\n String osVersion = System.getProperty(\"os.version\");\n String osArchitecture = System.getProperty(\"os.arch\");\n\n return \"OS Detection:\" + os + \",\" + osVersion + \",\" + osArchitecture;\n }", "String operatingSystem();", "public static OS getOS()\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n if(os.indexOf(\"win\") != -1)\n return OS.Windows;\n else if(os.indexOf(\"linux\") != -1)\n return OS.Linux;\n else\n return OS.Unknown;\n }", "public String getUpdatePlatform() {\n return updatePlatform;\n }", "public String getName() {\n\t\treturn \"Device\";\r\n\t}", "public String getCpuName() {\r\n if(isMips32()) {\r\n return getArchNameForCompiler();\r\n } else {\r\n return pic_.getArchitecture().toLowerCase();\r\n }\r\n }", "@Override\r\n\tpublic String getCpDeviceTypeName() {\r\n\t\treturn \"TAPE\";\r\n\t}", "public RoboPlatform platform() {\n return platform;\n }", "String getDeviceName();", "private String getSimplicityProjectName() {\n return properties.getProperty(\"simplicity.starter.projectName\");\n }", "public static String getSystemName()\n {\n return sSysName;\n }", "public String getSampleProcessingProtocol() {\n\t\tif (sampleProcessingProtocols == null) {\n\t\t\tsampleProcessingProtocols = getSampleProcessingProtocolFromMiapes();\n\t\t}\n\t\tString ret = \"Not available\";\n\t\tif (sampleProcessingProtocols != null && !sampleProcessingProtocols.isEmpty()) {\n\t\t\tret = \"\";\n\t\t\tfor (final String sampleProcessingProtocol : sampleProcessingProtocols) {\n\t\t\t\tret += sampleProcessingProtocol + \" \";\n\t\t\t}\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"sample_processing_protocol\" + TAB + ret.trim();\n\t\t}\n\t\treturn null;\n\n\t}", "public Integer getPlatformType() {\n return platformType;\n }", "public abstract String getMachineUnlocalizedName();", "private String getUserConfiguredDeviceName() {\n\t\tString nameFromSystemDevice = Settings.Secure.getString(getContentResolver(), \"device_name\");\n\t\tif (!isEmpty(nameFromSystemDevice)) return nameFromSystemDevice;\n\t\treturn null;\n\t}", "protected EV3DevPlatform getPlatform() {\n\n //TODO Duplicated code\n final String BATTERY = \"/power_supply\";\n final String BATTERY_PATH = ROOT_PATH + BATTERY;\n final String BATTERY_EV3 = \"legoev3-battery\";\n final String BATTERY_PISTORMS = \"pistorms-battery\";\n final String BATTERY_BRICKPI = \"brickpi-battery\";\n final String BATTERY_BRICKPI3 = \"brickpi3-battery\";\n final String EV3BRICK_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_EV3;\n final String PISTORMS_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_PISTORMS;\n final String BRICKPI_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_BRICKPI;\n final String BRICKPI3_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_BRICKPI3;\n\n if(Sysfs.existPath(EV3BRICK_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(EV3BRICK_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.EV3BRICK);\n return EV3DevPlatform.EV3BRICK;\n } else if(Sysfs.existPath(PISTORMS_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(PISTORMS_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.PISTORMS);\n return EV3DevPlatform.PISTORMS;\n } else if(Sysfs.existPath(BRICKPI_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(BRICKPI_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.BRICKPI);\n return EV3DevPlatform.BRICKPI;\n } else if(Sysfs.existPath(BRICKPI3_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(BRICKPI3_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.BRICKPI3);\n return EV3DevPlatform.BRICKPI3;\n } else {\n final String OS_NAME = System.getProperty(\"os.name\");\n final String OS_VERSION = System.getProperty(\"os.version\");\n final String message = \"Platform not supported: \" + OS_NAME + \" \" + OS_VERSION;\n log.error(message);\n throw new RuntimeException(message);\n }\n }", "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "public String getApplicationName() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_APPLICATION_NAME, \"UNKNOW\");\n\t}", "public Integer getPlatformId() {\r\n return platformId;\r\n }", "public static String getOsUserName() {\n\n return System.getProperty(\"user.name\");\n }", "public String getSystemName() {\n\t\treturn systemName;\n\t}", "private javax.swing.JLabel getLblOSName() {\n\tif (ivjLblOSName == null) {\n\t\ttry {\n\t\t\tivjLblOSName = new javax.swing.JLabel();\n\t\t\tivjLblOSName.setName(\"LblOSName\");\n\t\t\tivjLblOSName.setText(\"Name:\");\n\t\t\tivjLblOSName.setBounds(10, 20, 140, 14);\n\t\t\t// user code begin {1}\n ivjLblOSName.setText(ResourceManager.getResource(PlatformInfoPanel.class, \"LblOSName_text\"));\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjLblOSName;\n}", "public String getHostName() {\n\t\treturn \"RaspberryHostName\";\n\t}", "public String getWorldName() {\n String worldname = getMapName();\n if (worldname.equals(\"MpServer\")) {\n //This removes the port\n String[] split = getServerName().toLowerCase().split(\":\");\n worldname = split[0];\n }\n return worldname;\n }", "String getExternalToolName();", "@Override\n public String getName() {\n return getSoftwareSystem().getName() + \" - System Context\";\n }", "public void setPlatformType(PlatformType name);", "public String getSrcSampleName() {\r\n return srcSampleName;\r\n }", "@JsonProperty(\"platform\")\n public void setPlatform(String platform) {\n this.platform = platform;\n }", "String getCapability_name();", "java.lang.String getSystem();", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public String getCurrentSampleLabelKey();", "public String getShortAppName();", "public String getPlatNomor() {\n return platNomor;\n }", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public static String getBrowser() {\n if (System.getProperty(\"browser\") == null) {\n return \"chrome\";\n } else {\n return System.getProperty(\"browser\").toLowerCase();\n }\n }", "private static String getVerName(Context context) {\r\n String verName = \"unKnow\";\r\n try {\r\n verName = context.getPackageManager().\r\n getPackageInfo(context.getPackageName(), 0).versionName;\r\n } catch (PackageManager.NameNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n return verName;\r\n }", "public String getStrKpiName() {\n return strKpiName;\n }", "public static String getAppPlatfrom() {\n\n\t\treturn \"android\";\n\t}", "public static String getLetterWindows(){\r\n\t\treturn System.getenv(\"windir\").substring(0, 3);\r\n\t}", "private String getEmulatorFriendlyName() {\n return mEmulatorFriendlyName;\n }", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }" ]
[ "0.7650305", "0.733366", "0.712795", "0.71088207", "0.70483536", "0.64852744", "0.6377365", "0.6375376", "0.62963754", "0.62876225", "0.6269845", "0.61918765", "0.6127858", "0.6124881", "0.6121212", "0.61186737", "0.6109216", "0.6087808", "0.6075749", "0.60135907", "0.5991713", "0.59841555", "0.5965699", "0.593921", "0.593921", "0.5836228", "0.5823179", "0.58220303", "0.5819489", "0.5814452", "0.58055", "0.5803463", "0.5789293", "0.57747674", "0.5774345", "0.5774345", "0.5720096", "0.5720003", "0.56909394", "0.56838816", "0.5664825", "0.5662782", "0.56588995", "0.56528616", "0.5646705", "0.56298596", "0.56194776", "0.5610639", "0.5607753", "0.5601381", "0.55904025", "0.55885077", "0.55881876", "0.5573298", "0.5549587", "0.55431336", "0.5532847", "0.550496", "0.5490236", "0.54811513", "0.54782194", "0.5477281", "0.5463742", "0.54617065", "0.5451003", "0.54458874", "0.542903", "0.54251647", "0.54189116", "0.5416589", "0.54138535", "0.5403187", "0.5402716", "0.53956693", "0.5388755", "0.538336", "0.53681827", "0.53626615", "0.535226", "0.533855", "0.5334952", "0.5331598", "0.5329831", "0.5318108", "0.5317344", "0.53143376", "0.5308238", "0.5302468", "0.528864", "0.52878976", "0.52878976", "0.52878976", "0.5275387", "0.5270677", "0.52655494", "0.52574617", "0.52538717", "0.5248115", "0.52462345", "0.52462345" ]
0.8002624
0
Returns the sample's cruise name.
String getCruiseName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSampleName();", "public String getSrcSampleName() {\r\n return srcSampleName;\r\n }", "public String getFullSampleName(int column);", "private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }", "java.lang.String getCourseName();", "public String getRandomCustName() {\n\t\tString generatedCustName = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNameLimit));\n\t\tlog.info(\"generatedCustName: \" + generatedCustName);\n\t\treturn generatedCustName;\n\t}", "public String GetBaseCritName() {\n return CritName;\n }", "String getCName() {\n return nameTF.getText();\n }", "public static String name () {\n return \"Random Walk by Ryan Stansifer\";\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "private String getCweName(String cweId)\n {\n CweToName cweToNameUtil = new CweToName();\n return cweToNameUtil.getCweName(cweId);\n }", "public String getCouseName() {\n return couseName;\n }", "public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }", "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "String getBrickName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.72571665", "0.67845976", "0.63013977", "0.62183815", "0.61787534", "0.61329675", "0.6091965", "0.6035224", "0.60224295", "0.5973265", "0.5959555", "0.5952502", "0.59198964", "0.59034884", "0.5895477", "0.58630437", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765", "0.58494765" ]
0.7873637
0
Returns the sample's name.
String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSampleName();", "public String getSrcSampleName() {\r\n return srcSampleName;\r\n }", "public String getFullSampleName(int column);", "public java.lang.String getSampleId() {\n return sampleId;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public java.lang.String getSampleId() {\n return sampleId;\n }", "public java.lang.String getName();" ]
[ "0.85797673", "0.7616147", "0.7313867", "0.6830062", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.682776", "0.6801519", "0.67980987" ]
0.0
-1
Returns the date on which sample collection begun.
LocalDate getCollectionBeginDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getRunDate() {\n return runDate;\n }", "Date getEventFiredAt();", "Date getStartedOn();", "public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}", "long getBeginDate();", "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}", "public long getBeginDate() {\n return beginDate_;\n }", "public java.util.Date startSnap()\n\t{\n\t\treturn _dtBegin;\n\t}", "public long getBeginDate() {\n return beginDate_;\n }", "public static Date getStartupDateTime() {\r\n\t\treturn startupDateTime;\r\n\t}", "public Date getSetUpDate() {\n return setUpDate;\n }", "public Date getStartedDate() {\n return this.startedDate;\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _paper.getCreateDate();\n\t}", "@Override\n public final Date getDocumentDate() {\n return this.manufacture.getItsDate();\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "public Date getStart() {\n return start;\n }", "public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}", "public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }", "public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}", "public Date getStartDate();", "public Date getStartDate();", "long getStartDate();", "public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}", "public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }", "public Timestamp getDateStart();", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _dictData.getCreateDate();\n\t}", "public String getDate(){ return this.start_date;}", "public long getStartDate() {\n return startDate_;\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "@Override\n\tpublic java.util.Date getRequestedDate() {\n\t\treturn _dmGtStatus.getRequestedDate();\n\t}", "public static Date randomDate() {\n return VALUES.get(RND.nextInt(SIZE));\n }", "public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}", "protected Date findFirstGenDate(GenCtx ctx)\n\t{\n\t\treturn EX.assertn(ctx.get(Date.class));\n\t}", "public Date getStartServiceDate() {\n return (Date) getAttributeInternal(STARTSERVICEDATE);\n }", "public Date getBEGIN_DATE() {\n return BEGIN_DATE;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getPublishedStartTime()\n\t{\n\t\treturn publishedStartTime;\n\t}", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public String getStartDate();", "public int getDate() {\n\t\treturn date;\n\t}", "public long getStartDate() {\n return startDate_;\n }", "String getStartDate();", "public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}", "public Date getStartedAt() {\n\t\treturn startedAt;\n\t}", "public Instant getBuildDate() {\r\n\t\treturn buildDate;\r\n\t}", "@Override\n\tpublic Date getDbDate() {\n\t\treturn systemMapper.selectNow();\n\t}", "@Override\n\tpublic Date getCreated_date() {\n\t\treturn _buySellProducts.getCreated_date();\n\t}", "public Date getStartDate() {\n\t\treturn this.startDate;\n\t}", "public Date getDateofLaunch() {\n\treturn null;\n}", "public String getEventDate() {\n\t\treturn date;\n\t}", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "public int getDate() {\n return date;\n }", "public int getDate() {\n return date;\n }", "public static Date date() {\n GregorianCalendar cal = new GregorianCalendar();\n return cal.getTime();\n }", "public int getDate() {\n return date ;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}", "public Date getFirstRelease() {\n return firstRelease;\n }", "public Date getEarliestFinishingDate();", "public Date getServiceStartDate() {\n return (Date) getAttributeInternal(SERVICESTARTDATE);\n }", "public Date getDate() {\n return this.currentDate;\n }", "public Date getConnectionStartUpDateTime()\n {\n return new Date(fConnectionStartUpDateTime);\n }", "public String getStartDate() {\n return startDate;\n }", "public Date getStartTime() {\r\n\t\treturn startTime;\r\n\t}", "public Date getStart() {\n return (Date) _start.clone();\n }", "String getSourceUsageDateTime();", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "public TimeDateComponents getEventStartDate() {\n return getEventDates().getStartDate();\n }", "public static Date todayStart() {\n return dayStart(new Date());\n }", "public Date getStartTime() {\n\t\treturn startTime;\n\t}", "public Date getStartTime() {\n\t\treturn startTime;\n\t}", "public Date getStartTime() {\n\t\treturn startTime;\n\t}", "public Date getStartTime() {\n\t\treturn startTime;\n\t}", "public Date getExecutionDate()\n {\n return executionDate;\n }", "@Override\n\tpublic java.util.Date getStatusDate() {\n\t\treturn _scienceApp.getStatusDate();\n\t}", "public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}", "public long getDate() {\n return date_;\n }", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}", "public static final Date getBuildDate() { return buildDate; }", "public static final Date getBuildDate() { return buildDate; }", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "public Date getCateCreated() {\n return cateCreated;\n }", "Date getInvoicedDate();", "Date getRequestedAt();", "public Date getDateAdded();", "public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }", "public Date getSpecimenToLabDateTime() {\n\t\treturn specimenToLabDateTime;\n\t}", "public Date getDtStart() {\r\n return dtStart;\r\n }" ]
[ "0.6486048", "0.64691865", "0.6448788", "0.63737303", "0.6252505", "0.6226231", "0.62056595", "0.6190727", "0.61801744", "0.6170362", "0.61357915", "0.61219615", "0.61080813", "0.6096439", "0.60843605", "0.60770977", "0.60726744", "0.6022398", "0.6009082", "0.5995862", "0.5989026", "0.5983513", "0.5978195", "0.5978195", "0.5974755", "0.59587735", "0.59526783", "0.5945691", "0.59393597", "0.5929713", "0.59188783", "0.5918148", "0.5918148", "0.5904658", "0.5904097", "0.58973724", "0.58902913", "0.58844006", "0.5881549", "0.58781624", "0.58781624", "0.58781624", "0.5877047", "0.5870392", "0.5870392", "0.5870392", "0.5852989", "0.5852989", "0.5842944", "0.5834531", "0.5826242", "0.5823614", "0.58222574", "0.5813412", "0.58013123", "0.57904905", "0.5790012", "0.5786556", "0.5785178", "0.57833403", "0.577789", "0.57777834", "0.57712483", "0.5769282", "0.5769282", "0.57599175", "0.57586634", "0.5757306", "0.5755052", "0.5754256", "0.5751877", "0.5744788", "0.5739095", "0.573655", "0.5735039", "0.5728571", "0.57282966", "0.5722759", "0.57195485", "0.5719448", "0.5717552", "0.5717552", "0.5717552", "0.5717552", "0.5716838", "0.57138777", "0.5711761", "0.5710304", "0.5707941", "0.5706493", "0.57029045", "0.57029045", "0.5695177", "0.56943256", "0.56936496", "0.56913966", "0.5690718", "0.5688593", "0.5685745", "0.5683789" ]
0.70157385
0
Returns the date on which sample collection ended.
LocalDate getCollectionEndDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getEndedOn();", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public java.util.Date getEndedAt() {\n return this.endedAt;\n }", "public Date getEndTimeDate() {\n return endTimeDate;\n }", "public Date getEnddate() {\r\n return enddate;\r\n }", "public Date getEND_DATE() {\n return END_DATE;\n }", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public Date getEndDate()\n {\n return (Date)getAttributeInternal(ENDDATE);\n }", "public Date getEnd() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.End);\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public java.util.Date getEndTime() {\n return this.endTime;\n }", "public java.util.Date getEndTime() {\n return this.endTime;\n }", "public Date getEndServiceDate() {\n return (Date) getAttributeInternal(ENDSERVICEDATE);\n }", "public java.util.Date getEndTime() {\n return endTime;\n }", "public Date getEndTimestamp() {\r\n return endTimestamp;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "public Date getEndtime() {\n return endtime;\n }", "public TimeDateComponents getEventEndDate() {\n return getEventDates().getEndDate();\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "@Override\n\tpublic Calendar getFinishDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public String getResearchenddate() {\r\n\t\treturn researchenddate;\r\n\t}", "public Date getEndTime() {\n\t\treturn endTime;\n\t}", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public java.util.Date getEndDate () {\r\n\t\treturn endDate;\r\n\t}", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "long getEndDate();", "long getEndDate();", "public Date getEndDate();", "public Date getEndDate();", "public String getEndDate();", "public Date getEndTime() {\r\n return this.endTime;\r\n }", "public long getEndDate() {\n return endDate_;\n }", "public Date getEndTime() {\n return this.endTime;\n }", "@Override\n public Date getEndTime() {\n return endTime;\n }", "public Date getActualFinish()\r\n {\r\n return (m_actualFinish);\r\n }", "String getEndDate();", "public String getEndDate(){\n\t\treturn this.endDate;\n\t}", "public long getEndDate() {\n return endDate_;\n }", "public long getEndDate() {\n return endDate_;\n }", "public long getEndDate() {\n return endDate_;\n }", "@Override\r\n\tpublic Date getEventEndTime() {\n\t\treturn null;\r\n\t}", "public Date getRunDate() {\n return runDate;\n }", "public Date getBaselineFinish()\r\n {\r\n return (m_baselineFinish);\r\n }", "public String getEndDate() {\n return endDate;\n }", "Date getEndDate();", "Date getEndDate();", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "public final String getEnddate() {\n\t\treturn enddate;\n\t}", "public Date getPublishedEndTime()\n\t{\n\t\treturn publishedEndTime;\n\t}", "public Date getCertEndTime() {\n\t\treturn certEndTime;\n\t}", "public abstract Date getEndTime();", "public String getEndDate() {\n\t\treturn endDate.getText();\n\t}", "public Date getElectronicEndTime() {\n return (Date)getAttributeInternal(ELECTRONICENDTIME);\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public Calendar getEndDate() {\n\t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}", "Date getEndDay();", "public Long getEndDate() {\n\t\treturn endDate;\n\t}", "public java.lang.String getEndDate() {\n return endDate;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "public Date getFinishedAt() {\n\t\treturn finishedAt;\n\t}", "public String endTime(){\r\n\t\tsaleEnded = Calendar.getInstance().getTime();\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\r\n\t\tString endTime = dateFormat.format(time);\r\n\t\treturn endTime;\r\n\t}", "public Date getExecutionDate()\n {\n return executionDate;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "public java.sql.Date getEndDate() {\n\treturn endDate;\n}", "Date getEventFiredAt();", "public double getEndTime() {\n return endTime;\n }", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "public java.util.Date finishSnap()\n\t{\n\t\treturn _dtFinish;\n\t}", "public Date getjEndtime() {\n return jEndtime;\n }", "public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }", "@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }", "public Date getNoticeEnd() {\n return noticeEnd;\n }", "public long getEndTimestamp();", "public Date getHostingEnd() {\n return this.hostingEnd;\n }", "OffsetDateTime usageEnd();", "public abstract long getEndTimestamp();", "public java.util.Calendar getEndExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public Date getServiceEndDate() {\n return (Date) getAttributeInternal(SERVICEENDDATE);\n }", "public long getEndTimestamp() {\n\t\treturn this.endTimestamp;\n\t}", "public java.lang.String getSurveyEndDate() {\n return surveyEndDate;\n }", "public Date getFinishDate() {\n if (this.finishDate == null) {\n return null;\n }\n return new Date(this.finishDate.getTime());\n }", "@ApiModelProperty(value = \"An array of each component of the event end date\")\n public DateDetails getEndDateDetails() {\n return endDateDetails;\n }", "public int getTimeEnd() {\r\n return timeEnd;\r\n }", "public String getEventDate() {\n\t\treturn date;\n\t}", "public OffsetDateTime usageEnd() {\n return this.usageEnd;\n }", "@Override\n public final Date getDocumentDate() {\n return this.manufacture.getItsDate();\n }" ]
[ "0.6680157", "0.6490746", "0.6489102", "0.6320324", "0.63015085", "0.6276851", "0.62608683", "0.6243028", "0.62296546", "0.62099165", "0.62088", "0.6185301", "0.6185301", "0.61802405", "0.61802405", "0.6170914", "0.6168216", "0.61636657", "0.61601", "0.61601", "0.6157691", "0.613395", "0.6132133", "0.6131442", "0.6129826", "0.61288106", "0.61251575", "0.6123235", "0.61206186", "0.61206186", "0.61206186", "0.61206186", "0.6115679", "0.6103089", "0.6103089", "0.6103089", "0.60971683", "0.60971683", "0.6096459", "0.6096459", "0.60890687", "0.608704", "0.6084685", "0.60702145", "0.6067701", "0.605987", "0.60384804", "0.60343784", "0.60240716", "0.6022269", "0.6016796", "0.6010467", "0.5996166", "0.59879124", "0.59549016", "0.59452283", "0.59452283", "0.5935538", "0.59330827", "0.5932127", "0.59100574", "0.5891266", "0.5881585", "0.5878815", "0.5865686", "0.58605576", "0.5859796", "0.5854781", "0.58533406", "0.5852404", "0.5852404", "0.58508253", "0.5849606", "0.58247066", "0.58242047", "0.58242047", "0.582355", "0.58202624", "0.5804514", "0.58015764", "0.5795316", "0.57884985", "0.576371", "0.5763236", "0.5749278", "0.5749071", "0.57488036", "0.57189065", "0.57100356", "0.5701325", "0.5677828", "0.56728536", "0.5669043", "0.5634791", "0.5625931", "0.560899", "0.5594691", "0.5594264", "0.5592044", "0.55828923" ]
0.6293419
5
Returns the sample's latitude using the WGS 84 datum.
BigDecimal getWgs84Latitude();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Double getLatitude();", "Double getLatitude();", "public double getLat() {\r\n\t\treturn lat;\r\n\t}", "double getLatitude();", "public double getLat() {\r\n\t\t\treturn lat;\r\n\t\t}", "public double getLat() {\n return lat;\n }", "public double getLat() {\n return lat;\n }", "public double getLat() {\n return lat;\n }", "public double getLatitude() {\n if (slat == GempakConstants.IMISSD) {\n return slat;\n }\n return slat / 100.;\n }", "public double getLatitude() {\n return latitude_;\n }", "@Override\n\tpublic double getLatitude() {\n\t\treturn _locMstLocation.getLatitude();\n\t}", "@Override\r\n\tpublic double getLat() {\n\t\treturn this.lat;\r\n\t}", "public double getLatitude() {\n return latitude_;\n }", "public double getLatitude() {\n return latitude_;\n }", "public String getLat() {\n return lat;\n }", "public double getLatitude() {\n\t\treturn latitude;\n\t}", "public double getLatitude()\n {\n \treturn latitude;\n }", "public double getLatitude() {\n return latitude_;\n }", "public Double getLatitude() {\n return latitude;\n }", "public Double getLatitude() {\n return latitude;\n }", "public Double getLatitude() {\n return latitude;\n }", "public String getLatitude()\r\n {\r\n return latitude;\r\n }", "public double getLatitude()\n\t{\n\t\treturn this.realBin.getLocation().getLatitude();\n\t}", "public String getlat() {\n\t\treturn lat;\n\t}", "public double getLatitude() {\n return latitude;\n }", "public double getLatitude() {\n return latitude;\n }", "public double getLatitude() {\n return latitude;\n }", "public double getLatitude() {\n return latitude;\n }", "public double getLatitude() {\n return latitude;\n }", "BigDecimal getWgs84EndingLatitude();", "public int getLat();", "public synchronized Double getLatitude() {\r\n\t\treturn latitude;\r\n\t}", "public String getLatitude() {\n\t\treturn latitude;\n\t}", "public double latitude() {\n return this.latitude;\n }", "public int getLatitude() {\n return latitude_;\n }", "public String getLatitude() {\n return latitude;\n }", "public double getStartLat() {\n\t\treturn startLat;\n\t}", "@Override\n public String getLat() {\n return lat;\n }", "public double getLatitude(){\n if(location != null){\n latitude = location.getLatitude();\n }\n\n // return latitude\n return latitude;\n }", "public double getLatitude(){\n if(location != null){\n latitude = location.getLatitude();\n }\n\n // return latitude\n return latitude;\n }", "public double getLatitude() {\n\t\treturn Latitude;\n\t}", "public int getLatitude() {\n return latitude_;\n }", "int getLatitude();", "float latitude() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n return FastMath.HALF_PI;\n case SOUTH_4M:\n case SOUTH_16M:\n return -FastMath.HALF_PI;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * Stonehenge\n */\n return 51.1788f * FastMath.DEG_TO_RAD;\n }\n throw new IllegalStateException();\n }", "public float getLatitude() {\n\t\treturn latitude;\n\t}", "public double getLatitude() {\n return location.getLatitude();\n }", "public double getLatitude() { return coordinates.latitude; }", "public double getLatitude(){\n if(location != null){\n latitude = location.getLatitude();\n }\n return latitude;\n }", "public double getLatitude() {\r\n if (location != null) {\r\n latitude = location.getLatitude();\r\n }\r\n\r\n // return latitude\r\n return latitude;\r\n }", "public int getLatitude() {\n return latitude;\n }", "public long getLatitude() {\n return latitude_;\n }", "public int getLatitude() {\n checkRep();\n return this.latitude;\n }", "public float getLatitudeValue (){\n return trackLat.getValue ();\n }", "public double getLatitude() {\n if (location != null) {\n curr_latitude = location.getLatitude();\n }\n\n // return latitude\n return curr_latitude;\n }", "public BigDecimal getLatitude() {\n return latitude;\n }", "public float getLatitude() {\n return latitude;\n }", "public double getLatitude_() { \n return latitude_; \n }", "public float getLatitude() {\n return latitude;\n }", "public float getLatitude() { return latitude; }", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public WGS84Point(double latitude, double longitude) {\r\n\t\tthis.latitude = latitude;\r\n\t\tthis.longitude = longitude;\r\n\t}", "public Latitude getLat()\n {\n\treturn this.lat;\n }", "public double getLatitude() {\n if (location != null) {\n latitude = location.getLatitude();\n }\n\n // return latitude\n return latitude;\n }", "public Float getLatitude() {\n return latitude;\n }", "public long getLatitude() {\n return latitude_;\n }", "long getLatitude();", "public double getLatitude() {\r\n if (location != null) {\r\n latitude = location.getLatitude();\r\n }\r\n\r\n return latitude;\r\n }", "public double getLatitude(){\n return latitude;\n }", "public String getLatitude() {\n return String.valueOf(latitude);\n }", "public double getLatitude() {\n\t\tif (mLastLocation != null) {\n\t\t\tlatitude = mLastLocation.getLatitude();\n\t\t}\n\n\t\t// return latitude\n\t\treturn latitude;\n\t}", "@Min(-90)\n @Max(90)\n public double getLat() {\n return lat;\n }", "public Latitude getLatitude (){\n return trackLat;\n }", "public Report.LocationOuterClass.WGS84 getWgs84() {\n if (wgs84Builder_ == null) {\n return wgs84_ == null ? Report.LocationOuterClass.WGS84.getDefaultInstance() : wgs84_;\n } else {\n return wgs84Builder_.getMessage();\n }\n }", "public static String latitude(GeoPoint p) {\r\n\t\treturn Float.toString((float) p.getLatitudeE6() / (float) 1E6);\r\n\t}", "public String getLatitude(String s) {\n return ((latitude != FLOATNULL) ? new Float(latitude).toString() : \"\");\n }", "BigDecimal getWgs84Longitude();", "@JsonProperty(\"latitude\")\n public Double getLatitude() {\n return latitude;\n }", "public double getResultLocationLatitude() {\n return resultLocationLatitude;\n }", "public Report.LocationOuterClass.WGS84 getWgs84() {\n return wgs84_ == null ? Report.LocationOuterClass.WGS84.getDefaultInstance() : wgs84_;\n }", "public static String getBiblioLat() {\n\t\treturn \"lat\";\n\t}", "public Double getLatitude()\n\t{\n\t\treturn null;\n\t}", "protected double getLatitudeAttributeValue(XDIMEContextInternal context, \n XDIMEAttributes attributes) throws XDIMEException {\n \n double latitude = Double.NaN;\n String attrVal = attributes.getValue(\"\", \"latitude\");\n if (attrVal != null) {\n try {\n latitude = Double.parseDouble(attrVal);\n } catch (NumberFormatException nfe) {\n throw new XDIMEException(\"\\\"latitude\\\" attribute of map \"\n + \"element must be double\");\n }\n }\n \n return latitude;\n }", "public static double CHtoWGSlat(double y, double x) {\n // Converts military to civil and to unit = 1000km\n // Auxiliary values (% Bern)\n double y_aux = (y - 600000) / 1000000;\n double x_aux = (x - 200000) / 1000000;\n\n // Process lat\n double lat = (16.9023892 + (3.238272 * x_aux))\n - (0.270978 * Math.pow(y_aux, 2))\n - (0.002528 * Math.pow(x_aux, 2))\n - (0.0447 * Math.pow(y_aux, 2) * x_aux)\n - (0.0140 * Math.pow(x_aux, 3));\n\n // Unit 10000\" to 1 \" and converts seconds to degrees (dec)\n lat = (lat * 100) / 36;\n\n return lat;\n }", "public static double latitudeFromString(String pLatitude)\r\n {\r\n if (!Waypoint.testLatitude(pLatitude)) return 0;\r\n double Latitude = Double.parseDouble(pLatitude.substring(1,3)); //Grade abschneiden\r\n Latitude += Double.parseDouble(pLatitude.substring(3,6))/600; //Minuten dezuzählen\r\n if(pLatitude.charAt(0)=='N') return Latitude;\r\n else if (pLatitude.charAt(0)=='S') return Latitude*(-1);\r\n return 0;\r\n }", "double lat(long v) {\n return world.get(v).lat;\n }", "private static int latToX(double lat) {\n return (int) ((lat - MIN_LAT) / (MAX_LAT - MIN_LAT) * 100 * 1000);\n }", "@ApiModelProperty(value = \"Latitude of IP address\")\n public Double getLatitude() {\n return latitude;\n }", "public void setLat(double value) {\n lat = value;\n }", "public double generateLatitude(double latitude, Double plusMinusRange);", "public GeoPointND getStartPoint();", "public void setLat(double value) {\n this.lat = value;\n }", "public static float getLocX(double lat) {\n\t\treturn (float) ((lat - Graph.CENTRE_LAT) * Graph.SCALE_LAT * Graph.zoom);\n\t}", "public final flipsParser.latitude_return latitude() throws RecognitionException {\n flipsParser.latitude_return retval = new flipsParser.latitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal521=null;\n Token char_literal522=null;\n flipsParser.numericValuePositive_return x = null;\n\n flipsParser.latitudeNorthSouth_return ns = null;\n\n flipsParser.angularUnit_return xu = null;\n\n flipsParser.integerValuePositive_return deg = null;\n\n flipsParser.numericValuePositive_return min = null;\n\n\n CommonTree char_literal521_tree=null;\n CommonTree char_literal522_tree=null;\n RewriteRuleTokenStream stream_329=new RewriteRuleTokenStream(adaptor,\"token 329\");\n RewriteRuleTokenStream stream_243=new RewriteRuleTokenStream(adaptor,\"token 243\");\n RewriteRuleSubtreeStream stream_latitudeNorthSouth=new RewriteRuleSubtreeStream(adaptor,\"rule latitudeNorthSouth\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_angularUnit=new RewriteRuleSubtreeStream(adaptor,\"rule angularUnit\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:763:2: (x= numericValuePositive ns= latitudeNorthSouth -> ^( ANGLE $ns $x DEGREE ) | x= numericValuePositive xu= angularUnit ns= latitudeNorthSouth -> ^( ANGLE $ns $x $xu) | deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ns= latitudeNorthSouth -> ^( ANGLE $ns $deg DEGREE $min MINUTE ) )\n int alt204=3;\n int LA204_0 = input.LA(1);\n\n if ( ((LA204_0>=BinaryLiteral && LA204_0<=HexLiteral)) ) {\n switch ( input.LA(2) ) {\n case 243:\n {\n alt204=3;\n }\n break;\n case 330:\n case 331:\n case 332:\n case 333:\n case 334:\n case 335:\n case 336:\n case 337:\n {\n alt204=2;\n }\n break;\n case 258:\n case 265:\n case 266:\n case 267:\n {\n alt204=1;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 204, 1, input);\n\n throw nvae;\n }\n\n }\n else if ( (LA204_0==FloatingPointLiteral) ) {\n int LA204_2 = input.LA(2);\n\n if ( ((LA204_2>=330 && LA204_2<=337)) ) {\n alt204=2;\n }\n else if ( (LA204_2==258||(LA204_2>=265 && LA204_2<=267)) ) {\n alt204=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 204, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 204, 0, input);\n\n throw nvae;\n }\n switch (alt204) {\n case 1 :\n // flips.g:763:4: x= numericValuePositive ns= latitudeNorthSouth\n {\n pushFollow(FOLLOW_numericValuePositive_in_latitude4490);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_latitudeNorthSouth_in_latitude4494);\n ns=latitudeNorthSouth();\n\n state._fsp--;\n\n stream_latitudeNorthSouth.add(ns.getTree());\n\n\n // AST REWRITE\n // elements: ns, x\n // token labels: \n // rule labels: retval, ns, x\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ns=new RewriteRuleSubtreeStream(adaptor,\"rule ns\",ns!=null?ns.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 764:2: -> ^( ANGLE $ns $x DEGREE )\n {\n // flips.g:764:5: ^( ANGLE $ns $x DEGREE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ns.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:765:4: x= numericValuePositive xu= angularUnit ns= latitudeNorthSouth\n {\n pushFollow(FOLLOW_numericValuePositive_in_latitude4516);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_angularUnit_in_latitude4520);\n xu=angularUnit();\n\n state._fsp--;\n\n stream_angularUnit.add(xu.getTree());\n pushFollow(FOLLOW_latitudeNorthSouth_in_latitude4524);\n ns=latitudeNorthSouth();\n\n state._fsp--;\n\n stream_latitudeNorthSouth.add(ns.getTree());\n\n\n // AST REWRITE\n // elements: ns, x, xu\n // token labels: \n // rule labels: retval, ns, xu, x\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ns=new RewriteRuleSubtreeStream(adaptor,\"rule ns\",ns!=null?ns.tree:null);\n RewriteRuleSubtreeStream stream_xu=new RewriteRuleSubtreeStream(adaptor,\"rule xu\",xu!=null?xu.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 766:2: -> ^( ANGLE $ns $x $xu)\n {\n // flips.g:766:5: ^( ANGLE $ns $x $xu)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ns.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, stream_xu.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:767:4: deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ns= latitudeNorthSouth\n {\n pushFollow(FOLLOW_integerValuePositive_in_latitude4547);\n deg=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(deg.getTree());\n char_literal521=(Token)match(input,243,FOLLOW_243_in_latitude4549); \n stream_243.add(char_literal521);\n\n pushFollow(FOLLOW_numericValuePositive_in_latitude4553);\n min=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(min.getTree());\n char_literal522=(Token)match(input,329,FOLLOW_329_in_latitude4555); \n stream_329.add(char_literal522);\n\n pushFollow(FOLLOW_latitudeNorthSouth_in_latitude4559);\n ns=latitudeNorthSouth();\n\n state._fsp--;\n\n stream_latitudeNorthSouth.add(ns.getTree());\n\n\n // AST REWRITE\n // elements: min, ns, deg\n // token labels: \n // rule labels: min, retval, ns, deg\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ns=new RewriteRuleSubtreeStream(adaptor,\"rule ns\",ns!=null?ns.tree:null);\n RewriteRuleSubtreeStream stream_deg=new RewriteRuleSubtreeStream(adaptor,\"rule deg\",deg!=null?deg.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 768:2: -> ^( ANGLE $ns $deg DEGREE $min MINUTE )\n {\n // flips.g:768:5: ^( ANGLE $ns $deg DEGREE $min MINUTE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ns.nextTree());\n adaptor.addChild(root_1, stream_deg.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n adaptor.addChild(root_1, stream_min.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "@ApiModelProperty(value = \"Last known latitude (Only for teachers/staff)\")\n public Double getLat() {\n return lat;\n }", "public double getLatitude(double y) {\n\t\ty = Math.exp( y/scaleY +refY );\n\t\tdouble lat = halfPI - 2*Math.atan(y);\n\t\tif(ellipsoid != 0) {\n\t\t\tdouble dlat, c;\n\t\t\tfor( int i=0 ; i<10 ; i++) {\n\t\t\t\tc = e*Math.sin(lat);\n\t\t\t\tdlat = lat;\n\t\t\t\tlat = halfPI - 2*Math.atan( y * Math.pow( (1-c)/(1+c) , halfE) );\n\t\t\t\tif(Math.abs(dlat-lat) < 1.e-10) break;\n\t\t\t}\n\t\t}\n\t\tlat = Math.toDegrees(lat);\n\t\treturn lat;\n\t}", "public Double getEquipmentLat() {\n return equipmentLat;\n }", "Report.LocationOuterClass.WGS84 getWgs84();", "private double _parseLatitude(String s, String d)\n {\n double _lat = StringTools.parseDouble(s, 99999.0);\n if (_lat < 99999.0) {\n double lat = (double)((long)_lat / 100L); // _lat is always positive here\n lat += (_lat - (lat * 100.0)) / 60.0;\n return d.equals(\"S\")? -lat : lat;\n } else {\n return 90.0; // invalid latitude\n }\n }", "public String getLat(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[7];\n\t}", "double lat(long v) {\n return nodes.get(v).lat;\n }" ]
[ "0.6945298", "0.6945298", "0.67105246", "0.67086554", "0.67040473", "0.66804576", "0.66804576", "0.66804576", "0.6597406", "0.6584075", "0.6562737", "0.6550319", "0.6539808", "0.6539808", "0.65274525", "0.64932", "0.64919", "0.64692485", "0.6450366", "0.6450366", "0.6450366", "0.6446737", "0.6442532", "0.6427897", "0.64267904", "0.64267904", "0.64267904", "0.64267904", "0.64267904", "0.63762", "0.6375605", "0.63666046", "0.63643813", "0.63639885", "0.6352782", "0.6332096", "0.6331019", "0.6300436", "0.6274421", "0.6274421", "0.6268419", "0.6263609", "0.6250938", "0.62333035", "0.6222992", "0.6222772", "0.6204976", "0.6189329", "0.6180298", "0.6179539", "0.6179159", "0.6175835", "0.61526793", "0.6152338", "0.6151167", "0.61305577", "0.6129067", "0.6122359", "0.6116183", "0.6109034", "0.6105849", "0.610391", "0.6098316", "0.6094248", "0.6088721", "0.6057957", "0.6055688", "0.60437465", "0.60322756", "0.6018978", "0.59656626", "0.5962386", "0.59426534", "0.5934666", "0.59262574", "0.5919987", "0.59154963", "0.59136486", "0.58813125", "0.5880318", "0.58447707", "0.5838239", "0.58076406", "0.5766896", "0.5742459", "0.57197577", "0.5713085", "0.57052994", "0.56961685", "0.56831604", "0.5672102", "0.56500053", "0.56439507", "0.56235605", "0.5614858", "0.5605769", "0.55972725", "0.55579317", "0.55527496", "0.55458075" ]
0.71104753
0
Returns the sample's ending latitude using the WGS 84 datum.
BigDecimal getWgs84EndingLatitude();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal getWgs84EndingLongitude();", "public double getEndLat() {\n\t\treturn endLat;\n\t}", "BigDecimal getWgs84Longitude();", "Double getLongitude();", "Double getLongitude();", "double getLongitude();", "BigDecimal getWgs84Latitude();", "public GeoPoint getEnd(){\n return end;\n }", "public double getEndLon() {\n\t\treturn endLon;\n\t}", "public double getLastLatitude(){\n if(location != null){\n lastLatitude = location.getLatitude();\n }else{\n lastLatitude = longitude;\n }\n return lastLatitude;\n }", "int getLongitude();", "public String getExtentWgs84() {\n SpatialReference srs = new SpatialReference();\n srs.ImportFromProj4(this.crsProj4);\n SpatialReference t_srs = new SpatialReference();\n t_srs.ImportFromEPSG(4326);\n double[] extent = CoordinateTransformUtil.transformExtentByGdal(srs, t_srs, minX, minY, maxX, maxY);\n this.extentWgs84 = Formatter.formatDoubleStr(extent[0], 4) + \" \" + Formatter.formatDoubleStr(extent[1], 4)\n + \" \" + Formatter.formatDoubleStr(extent[2], 4) + \" \" + Formatter.formatDoubleStr(extent[3], 4);\n return this.extentWgs84;\n }", "Report.LocationOuterClass.WGS84 getWgs84();", "Double getLatitude();", "Double getLatitude();", "public Report.LocationOuterClass.WGS84 getWgs84() {\n if (wgs84Builder_ == null) {\n return wgs84_ == null ? Report.LocationOuterClass.WGS84.getDefaultInstance() : wgs84_;\n } else {\n return wgs84Builder_.getMessage();\n }\n }", "BigDecimal getEndingElevation();", "public Report.LocationOuterClass.WGS84 getWgs84() {\n return wgs84_ == null ? Report.LocationOuterClass.WGS84.getDefaultInstance() : wgs84_;\n }", "@Override\n\tpublic double getLongitude() {\n\t\treturn _locMstLocation.getLongitude();\n\t}", "long getLongitude();", "public double getLng() {\n return lng;\n }", "public String getWestBoundLongitude() {\r\n\t\treturn westBoundLongitude;\r\n\t}", "public GeoPointND getStartPoint();", "public double getLng() {\r\n\t\treturn lng;\r\n\t}", "public double getEndX()\n {\n return endxcoord; \n }", "public double getLongitude() {\n if (slon == GempakConstants.IMISSD) {\n return slon;\n }\n return slon / 100.;\n }", "public double getLongitude()\n {\n \treturn longitude;\n }", "public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}", "public double getLongitude()\n\t{\n\t\treturn this.realBin.getLocation().getLongitude();\n\t}", "public double getLongitude() {\n return longitude_;\n }", "double getLatitude();", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public double generateLongitude(double longitude, Double plusMinusRange);", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude_() { \n return longitude_; \n }", "public Coordinate getEnd( )\n\t{\n\t\treturn endLocation;\n\t}", "public String getLongitude()\r\n {\r\n return longitude;\r\n }", "public double getStartLon() {\n\t\treturn startLon;\n\t}", "public double generateLatitude(double latitude, Double plusMinusRange);", "public float getLongitudeValue (){\n return trackLon.getValue ();\n }", "@Min(-180)\n @Max(180)\n public double getLng() {\n return lng;\n }", "public double getGpsLng() {\n return gpsLng;\n }", "public int getLat();", "public double getLongitude() {\n return location.getLongitude();\n }", "public double getLongitude() {\n return longitude_;\n }", "public double getLongitude() {\n return longitude_;\n }", "public double longitude() {\n return this.longitude;\n }", "public double getLongitude() {\n\t\treturn longitude;\n\t}", "public synchronized Double getLongitude() {\r\n\t\treturn longitude;\r\n\t}", "public double getLongitude() {\n\t\treturn Longitude;\n\t}", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "public double getLongitude() {\n if (location != null) {\n curr_longitude = location.getLongitude();\n }\n\n // return longitude\n return curr_longitude;\n }", "public static double CHtoWGSlat(double y, double x) {\n // Converts military to civil and to unit = 1000km\n // Auxiliary values (% Bern)\n double y_aux = (y - 600000) / 1000000;\n double x_aux = (x - 200000) / 1000000;\n\n // Process lat\n double lat = (16.9023892 + (3.238272 * x_aux))\n - (0.270978 * Math.pow(y_aux, 2))\n - (0.002528 * Math.pow(x_aux, 2))\n - (0.0447 * Math.pow(y_aux, 2) * x_aux)\n - (0.0140 * Math.pow(x_aux, 3));\n\n // Unit 10000\" to 1 \" and converts seconds to degrees (dec)\n lat = (lat * 100) / 36;\n\n return lat;\n }", "public float getLongitude() { return longitude; }", "public double getLongitude() {\n\t\tif (mLastLocation != null) {\n\t\t\tlongitude = mLastLocation.getLongitude();\n\t\t}\n\n\t\t// return longitude\n\t\treturn longitude;\n\t}", "public String getLastLocation() {\n return lastLocation;\n }", "public double getLatitude()\n\t{\n\t\treturn this.realBin.getLocation().getLatitude();\n\t}", "public String getLongitude() {\n return longitude;\n }", "public String getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude_;\n }", "public double getResultLocationLongitude() {\n return resultLocationLongitude;\n }", "@Override\n SubwayStation getEndLocation() {\n return this.endLocation;\n }", "public Double getLongitude()\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic double getLatitude() {\n\t\treturn _locMstLocation.getLatitude();\n\t}", "public Longitude getLongitude (){\n return trackLon;\n }", "public double getEndX() {\r\n return endx;\r\n }", "public double getLatitude()\n {\n \treturn latitude;\n }", "public double getEndY()\n {\n return endycoord; \n }", "public float getLongitude() {\n return longitude;\n }", "public int getLon();", "@Override\n public int getEnd() {\n return feature.getEnd();\n }", "public int getLongitude() {\n checkRep();\n return this.longitude;\n }", "public static String getEnd(String town){\n\t\treturn Character.toString(town.charAt(1));\n\t}", "public double getEnd();", "Report.LocationOuterClass.WGS84OrBuilder getWgs84OrBuilder();", "@Min(-90)\n @Max(90)\n public double getLat() {\n return lat;\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getEnd() {\n return end;\n }", "public WGS84Point(double latitude, double longitude) {\r\n\t\tthis.latitude = latitude;\r\n\t\tthis.longitude = longitude;\r\n\t}", "public String getLongitude() {\n\t\treturn longitude;\n\t}", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public double getStartLat() {\n\t\treturn startLat;\n\t}", "public Float getLongitude() {\n return longitude;\n }", "net.opengis.gml.x32.TimePositionType getEndPosition();", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "@Override\r\n\tpublic double getLat() {\n\t\treturn this.lat;\r\n\t}", "public int getLongitude() {\n return longitude;\n }", "public double getLongitude() {\r\n if (location != null) {\r\n longitude = location.getLongitude();\r\n }\r\n\r\n // return longitude\r\n return longitude;\r\n }", "int getLatitude();", "public float getLongitude() {\n return longitude;\n }", "public float getLongitude() {\n return longitude;\n }", "public Report.LocationOuterClass.WGS84OrBuilder getWgs84OrBuilder() {\n if (wgs84Builder_ != null) {\n return wgs84Builder_.getMessageOrBuilder();\n } else {\n return wgs84_ == null ?\n Report.LocationOuterClass.WGS84.getDefaultInstance() : wgs84_;\n }\n }", "org.hl7.fhir.Integer getEnd();" ]
[ "0.7505538", "0.6768118", "0.62772936", "0.6167383", "0.6167383", "0.60864043", "0.606426", "0.59748334", "0.58884305", "0.5788294", "0.5737035", "0.56824875", "0.5653323", "0.56241", "0.56241", "0.56230426", "0.56127936", "0.5599182", "0.5588914", "0.5586205", "0.5569857", "0.55081636", "0.55065596", "0.55027694", "0.5491508", "0.54880965", "0.5462124", "0.54621065", "0.5436762", "0.54287356", "0.5428687", "0.5396291", "0.5396291", "0.5396291", "0.5396291", "0.5378859", "0.53590006", "0.53590006", "0.53590006", "0.53590006", "0.53460974", "0.5342391", "0.533833", "0.53314286", "0.53169936", "0.530458", "0.5286626", "0.5283624", "0.52809566", "0.52773553", "0.5273675", "0.5273675", "0.52681106", "0.52552116", "0.5244461", "0.5244197", "0.52323616", "0.5213427", "0.5204389", "0.520322", "0.51995116", "0.5191953", "0.51877725", "0.51869833", "0.51869833", "0.51867545", "0.51669884", "0.5149186", "0.5136985", "0.5134934", "0.512874", "0.5127933", "0.5120579", "0.5119881", "0.51175123", "0.5116024", "0.5115775", "0.51053214", "0.5105072", "0.5100313", "0.5096331", "0.5096072", "0.5082226", "0.5082226", "0.50785464", "0.5077943", "0.50658435", "0.5065446", "0.5064209", "0.505555", "0.5054743", "0.5051913", "0.50502807", "0.5050109", "0.5047504", "0.504475", "0.503692", "0.503692", "0.503462", "0.5032848" ]
0.76933664
0
Returns the sample's longitude using the WGS 84 datum.
BigDecimal getWgs84Longitude();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Double getLongitude();", "Double getLongitude();", "double getLongitude();", "long getLongitude();", "int getLongitude();", "BigDecimal getWgs84EndingLongitude();", "public double longitude() {\n return this.longitude;\n }", "public double getLongitude() {\n if (slon == GempakConstants.IMISSD) {\n return slon;\n }\n return slon / 100.;\n }", "public double getLongitude() {\n return longitude_;\n }", "public double getLongitude()\n {\n \treturn longitude;\n }", "public double getLongitude() {\n return longitude_;\n }", "public double getLongitude() {\n return longitude_;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "@Override\n\tpublic double getLongitude() {\n\t\treturn _locMstLocation.getLongitude();\n\t}", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public synchronized Double getLongitude() {\r\n\t\treturn longitude;\r\n\t}", "public double getLongitude() {\n return longitude_;\n }", "public double getLongitude() {\n\t\treturn longitude;\n\t}", "public String getLongitude()\r\n {\r\n return longitude;\r\n }", "public double getLon() {\n return lon;\n }", "public double getLon() {\n return lon;\n }", "public float getLongitudeValue (){\n return trackLon.getValue ();\n }", "public int getLongitude() {\n return longitude_;\n }", "public String getLongitude() {\n return longitude;\n }", "public String getLongitude() {\n return longitude;\n }", "public int getLon();", "public double getLon() {\r\n\t\t\treturn lon;\r\n\t\t}", "public double getLongitude()\n\t{\n\t\treturn this.realBin.getLocation().getLongitude();\n\t}", "@Override\n public String getLon() {\n return lon;\n }", "public int getLongitude() {\n return longitude;\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "@Override\r\n\tpublic double getLon() {\n\t\treturn this.lon;\r\n\t}", "BigDecimal getWgs84EndingLatitude();", "public int getLongitude() {\n return longitude_;\n }", "public long getLongitude() {\n return longitude_;\n }", "public String getLongitude() {\n\t\treturn longitude;\n\t}", "public float getLongitude() { return longitude; }", "public float getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n\t\treturn Longitude;\n\t}", "public double getLongitude_() { \n return longitude_; \n }", "public double getLongitude() {\n return location.getLongitude();\n }", "public float getLongitude() {\n return longitude;\n }", "public float getLongitude() {\n return longitude;\n }", "public Float getLongitude() {\n return longitude;\n }", "public double getLongitude() {\r\n if (location != null) {\r\n longitude = location.getLongitude();\r\n }\r\n\r\n // return longitude\r\n return longitude;\r\n }", "public int getLongitude() {\n checkRep();\n return this.longitude;\n }", "public long getLongitude() {\n return longitude_;\n }", "public double getLongitude() {\n if (location != null) {\n curr_longitude = location.getLongitude();\n }\n\n // return longitude\n return curr_longitude;\n }", "public float getLongitude() {\n\t\treturn longitude;\n\t}", "public float getLongitude() {\n\t\treturn longitude;\n\t}", "public Longitude getLongitude (){\n return trackLon;\n }", "public BigDecimal getLongitude() {\n return longitude;\n }", "public double getLng() {\n return lng;\n }", "public double getLongitude() {\n if (location != null) {\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude() {\n if (location != null) {\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude() {\n\t\tif (mLastLocation != null) {\n\t\t\tlongitude = mLastLocation.getLongitude();\n\t\t}\n\n\t\t// return longitude\n\t\treturn longitude;\n\t}", "public double getLongitude() {\r\n if (location != null) {\r\n longitude = location.getLongitude();\r\n }\r\n\r\n return longitude;\r\n }", "public double getLng() {\r\n\t\treturn lng;\r\n\t}", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public static double longitudeFromString(String pLongitude)\r\n {\r\n if (!Waypoint.testLongitude(pLongitude)) return 0;\r\n double Longitude = Double.parseDouble(pLongitude.substring(1,4)); //Grade abschneiden\r\n Longitude += Double.parseDouble(pLongitude.substring(4,7))/600; //Minuten dazuzählen\r\n if(pLongitude.charAt(0)=='E') return Longitude;\r\n else if (pLongitude.charAt(0)=='W') return Longitude*(-1);\r\n return 0;\r\n \r\n }", "public String getLongitude() {\n return String.valueOf(longitude);\n }", "@JsonProperty(\"longitude\")\n public Double getLongitude() {\n return longitude;\n }", "BigDecimal getWgs84Latitude();", "public double getResultLocationLongitude() {\n return resultLocationLongitude;\n }", "public double getLongitude() {\n double lon = 0.0;\n if (mLocationHelper != null) {\n lon = mLocationHelper.getLongitude();\n }\n\n return lon;\n }", "private double _parseLongitude(String s, String d)\n {\n double _lon = StringTools.parseDouble(s, 99999.0);\n if (_lon < 99999.0) {\n double lon = (double)((long)_lon / 100L); // _lon is always positive here\n lon += (_lon - (lon * 100.0)) / 60.0;\n return d.equals(\"W\")? -lon : lon;\n } else {\n return 180.0; // invalid longitude\n }\n }", "public double getLongitude() {\n if (currentLocation != null) {\n longitude = currentLocation.getLongitude();\n }\n // return longitude\n return longitude;\n }", "public final flipsParser.longitude_return longitude() throws RecognitionException {\n flipsParser.longitude_return retval = new flipsParser.longitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal527=null;\n Token char_literal528=null;\n flipsParser.numericValuePositive_return x = null;\n\n flipsParser.longitudeEastWest_return ew = null;\n\n flipsParser.angularUnit_return xu = null;\n\n flipsParser.integerValuePositive_return deg = null;\n\n flipsParser.numericValuePositive_return min = null;\n\n\n CommonTree char_literal527_tree=null;\n CommonTree char_literal528_tree=null;\n RewriteRuleTokenStream stream_329=new RewriteRuleTokenStream(adaptor,\"token 329\");\n RewriteRuleTokenStream stream_243=new RewriteRuleTokenStream(adaptor,\"token 243\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_longitudeEastWest=new RewriteRuleSubtreeStream(adaptor,\"rule longitudeEastWest\");\n RewriteRuleSubtreeStream stream_angularUnit=new RewriteRuleSubtreeStream(adaptor,\"rule angularUnit\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:779:2: (x= numericValuePositive ew= longitudeEastWest -> ^( ANGLE $ew $x DEGREE ) | x= numericValuePositive xu= angularUnit ew= longitudeEastWest -> ^( ANGLE $ew $x $xu) | deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ew= longitudeEastWest -> ^( ANGLE $ew $deg DEGREE $min MINUTE ) )\n int alt208=3;\n int LA208_0 = input.LA(1);\n\n if ( ((LA208_0>=BinaryLiteral && LA208_0<=HexLiteral)) ) {\n switch ( input.LA(2) ) {\n case 268:\n case 269:\n case 270:\n case 271:\n {\n alt208=1;\n }\n break;\n case 243:\n {\n alt208=3;\n }\n break;\n case 330:\n case 331:\n case 332:\n case 333:\n case 334:\n case 335:\n case 336:\n case 337:\n {\n alt208=2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 208, 1, input);\n\n throw nvae;\n }\n\n }\n else if ( (LA208_0==FloatingPointLiteral) ) {\n int LA208_2 = input.LA(2);\n\n if ( ((LA208_2>=330 && LA208_2<=337)) ) {\n alt208=2;\n }\n else if ( ((LA208_2>=268 && LA208_2<=271)) ) {\n alt208=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 208, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 208, 0, input);\n\n throw nvae;\n }\n switch (alt208) {\n case 1 :\n // flips.g:779:4: x= numericValuePositive ew= longitudeEastWest\n {\n pushFollow(FOLLOW_numericValuePositive_in_longitude4626);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_longitudeEastWest_in_longitude4630);\n ew=longitudeEastWest();\n\n state._fsp--;\n\n stream_longitudeEastWest.add(ew.getTree());\n\n\n // AST REWRITE\n // elements: x, ew\n // token labels: \n // rule labels: ew, retval, x\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_ew=new RewriteRuleSubtreeStream(adaptor,\"rule ew\",ew!=null?ew.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 780:2: -> ^( ANGLE $ew $x DEGREE )\n {\n // flips.g:780:5: ^( ANGLE $ew $x DEGREE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ew.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:781:4: x= numericValuePositive xu= angularUnit ew= longitudeEastWest\n {\n pushFollow(FOLLOW_numericValuePositive_in_longitude4652);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_angularUnit_in_longitude4656);\n xu=angularUnit();\n\n state._fsp--;\n\n stream_angularUnit.add(xu.getTree());\n pushFollow(FOLLOW_longitudeEastWest_in_longitude4660);\n ew=longitudeEastWest();\n\n state._fsp--;\n\n stream_longitudeEastWest.add(ew.getTree());\n\n\n // AST REWRITE\n // elements: xu, x, ew\n // token labels: \n // rule labels: ew, retval, x, xu\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_ew=new RewriteRuleSubtreeStream(adaptor,\"rule ew\",ew!=null?ew.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n RewriteRuleSubtreeStream stream_xu=new RewriteRuleSubtreeStream(adaptor,\"rule xu\",xu!=null?xu.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 782:2: -> ^( ANGLE $ew $x $xu)\n {\n // flips.g:782:5: ^( ANGLE $ew $x $xu)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ew.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, stream_xu.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:783:4: deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ew= longitudeEastWest\n {\n pushFollow(FOLLOW_integerValuePositive_in_longitude4683);\n deg=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(deg.getTree());\n char_literal527=(Token)match(input,243,FOLLOW_243_in_longitude4685); \n stream_243.add(char_literal527);\n\n pushFollow(FOLLOW_numericValuePositive_in_longitude4689);\n min=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(min.getTree());\n char_literal528=(Token)match(input,329,FOLLOW_329_in_longitude4691); \n stream_329.add(char_literal528);\n\n pushFollow(FOLLOW_longitudeEastWest_in_longitude4695);\n ew=longitudeEastWest();\n\n state._fsp--;\n\n stream_longitudeEastWest.add(ew.getTree());\n\n\n // AST REWRITE\n // elements: min, ew, deg\n // token labels: \n // rule labels: ew, min, retval, deg\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_ew=new RewriteRuleSubtreeStream(adaptor,\"rule ew\",ew!=null?ew.tree:null);\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_deg=new RewriteRuleSubtreeStream(adaptor,\"rule deg\",deg!=null?deg.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 784:2: -> ^( ANGLE $ew $deg DEGREE $min MINUTE )\n {\n // flips.g:784:5: ^( ANGLE $ew $deg DEGREE $min MINUTE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ew.nextTree());\n adaptor.addChild(root_1, stream_deg.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n adaptor.addChild(root_1, stream_min.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public double generateLongitude(double longitude, Double plusMinusRange);", "public Double getLongitude()\n\t{\n\t\treturn null;\n\t}", "double lon(long v) {\n return world.get(v).lon;\n }", "@Min(-180)\n @Max(180)\n public double getLng() {\n return lng;\n }", "public int getLat();", "public double getStartLon() {\n\t\treturn startLon;\n\t}", "protected double getLongitudeAttributeValue(XDIMEContextInternal context, \n XDIMEAttributes attributes) throws XDIMEException {\n\n double longitude = Double.NaN;\n String attrVal = attributes.getValue(\"\",\"longitude\");\n if (attrVal != null) {\n try {\n longitude = Double.parseDouble(attrVal);\n } catch (NumberFormatException nfe) {\n throw new XDIMEException(\"\\\"longitude\\\" attribute of map \"\n + \"element must be double\");\n }\n }\n return longitude;\n }", "Double getLatitude();", "Double getLatitude();", "public static String longitude(GeoPoint p) {\r\n\t\treturn Float.toString((float) p.getLongitudeE6() / (float) 1E6);\r\n\t}", "public void setLon(double value) {\n lon = value;\n }", "public String getLongitude(String s) {\n return ((longitude != FLOATNULL) ? new Float(longitude).toString() : \"\");\n }", "@ApiModelProperty(value = \"Longitude of IP address\")\n public Double getLongitude() {\n return longitude;\n }", "public Double A() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LONGITUDE\");\n }", "public Longitude get_long()\n {\n\treturn this._long;\n }", "void setLongitude(Double longitude);", "public java.lang.String getListLatLon()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTLATLON$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public double getGpsLng() {\n return gpsLng;\n }", "public void setLongitude(float longitude) { this.longitude = longitude; }", "public static final double getCurrentLongitude() {\n if (getCurrentLongitudeGpsValid() != ZERO) {\n return getCurrentLongitudeGpsValid();\n } else {\n return getCurrentLongitudeNetworkValid();\n }\n }", "double getLatitude();", "public static float getLocY(double lon) {\n\t\treturn (float) ((lon - Graph.CENTRE_LON) * Graph.SCALE_LON * Graph.zoom);\n\t}", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "public void setLongitude(String longitude)\r\n {\r\n this.longitude = longitude; \r\n }", "public void setLongitude(Double longitude) {\n this.longitude = longitude;\n }" ]
[ "0.76348865", "0.76348865", "0.75378865", "0.7263329", "0.71354514", "0.7092302", "0.70698744", "0.70511353", "0.7033942", "0.69608176", "0.6953919", "0.6953919", "0.69529605", "0.69529605", "0.69529605", "0.69529605", "0.69482183", "0.6936651", "0.6936651", "0.6936651", "0.6936651", "0.69107604", "0.68752563", "0.68619025", "0.6860261", "0.68591887", "0.68591887", "0.6758026", "0.67507106", "0.67435247", "0.67435247", "0.6737094", "0.67228705", "0.66960025", "0.6692484", "0.6683095", "0.66824734", "0.66824734", "0.6674904", "0.6668366", "0.6641666", "0.66405797", "0.6632691", "0.66256815", "0.6608191", "0.6598855", "0.6596857", "0.6583843", "0.6576131", "0.6576131", "0.65547657", "0.6546629", "0.6539346", "0.6527811", "0.65216213", "0.6504286", "0.6504286", "0.648438", "0.6480103", "0.6479246", "0.64666337", "0.64666337", "0.64617926", "0.644352", "0.6431203", "0.6390339", "0.638048", "0.636091", "0.634795", "0.6334964", "0.63296753", "0.63263714", "0.63104695", "0.627726", "0.6272586", "0.6202979", "0.6194169", "0.6169045", "0.6168002", "0.6132561", "0.61236244", "0.6106784", "0.61007494", "0.61007494", "0.6041401", "0.60346806", "0.601609", "0.60157186", "0.5986512", "0.596393", "0.59147966", "0.5902654", "0.58921313", "0.58834875", "0.5849584", "0.58413666", "0.58246124", "0.582163", "0.5820413", "0.5813145" ]
0.7194502
4
Returns the sample's ending longitude using the WGS 84 datum.
BigDecimal getWgs84EndingLongitude();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal getWgs84EndingLatitude();", "public double getEndLon() {\n\t\treturn endLon;\n\t}", "public double getEndLat() {\n\t\treturn endLat;\n\t}", "Double getLongitude();", "Double getLongitude();", "double getLongitude();", "@Override\n\tpublic double getLongitude() {\n\t\treturn _locMstLocation.getLongitude();\n\t}", "public double getLongitude() {\n if (slon == GempakConstants.IMISSD) {\n return slon;\n }\n return slon / 100.;\n }", "BigDecimal getWgs84Longitude();", "public double getLongitude()\n\t{\n\t\treturn this.realBin.getLocation().getLongitude();\n\t}", "long getLongitude();", "int getLongitude();", "public double getLongitude() {\n if (location != null) {\n curr_longitude = location.getLongitude();\n }\n\n // return longitude\n return curr_longitude;\n }", "public double getLongitude() {\n\t\tif (mLastLocation != null) {\n\t\t\tlongitude = mLastLocation.getLongitude();\n\t\t}\n\n\t\t// return longitude\n\t\treturn longitude;\n\t}", "public double getLongitude()\n {\n \treturn longitude;\n }", "public double generateLongitude(double longitude, Double plusMinusRange);", "public double longitude() {\n return this.longitude;\n }", "public double getLongitude() {\n return longitude_;\n }", "public synchronized Double getLongitude() {\r\n\t\treturn longitude;\r\n\t}", "public double getLongitude() {\n\t\treturn longitude;\n\t}", "public double getLongitude() {\n return longitude_;\n }", "public double getLongitude() {\n return longitude_;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public Double getLongitude() {\n return longitude;\n }", "public String getLongitude()\r\n {\r\n return longitude;\r\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n return location.getLongitude();\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public float getLongitudeValue (){\n return trackLon.getValue ();\n }", "public double getLongitude() {\n return longitude_;\n }", "public double getLongitude() {\r\n if (location != null) {\r\n longitude = location.getLongitude();\r\n }\r\n\r\n // return longitude\r\n return longitude;\r\n }", "public String getLongitude() {\n return longitude;\n }", "public String getLongitude() {\n return longitude;\n }", "public double getLongitude() {\n\t\treturn Longitude;\n\t}", "public String getLongitude() {\n\t\treturn longitude;\n\t}", "public double getLongitude() {\n if (location != null) {\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude() {\n if (location != null) {\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public int getLongitude() {\n checkRep();\n return this.longitude;\n }", "public int getLongitude() {\n return longitude_;\n }", "public GeoPoint getEnd(){\n return end;\n }", "public double getLongitude() {\n if (currentLocation != null) {\n longitude = currentLocation.getLongitude();\n }\n // return longitude\n return longitude;\n }", "public double getLongitude() {\r\n if (location != null) {\r\n longitude = location.getLongitude();\r\n }\r\n\r\n return longitude;\r\n }", "public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}", "public int getLon();", "public final flipsParser.longitude_return longitude() throws RecognitionException {\n flipsParser.longitude_return retval = new flipsParser.longitude_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal527=null;\n Token char_literal528=null;\n flipsParser.numericValuePositive_return x = null;\n\n flipsParser.longitudeEastWest_return ew = null;\n\n flipsParser.angularUnit_return xu = null;\n\n flipsParser.integerValuePositive_return deg = null;\n\n flipsParser.numericValuePositive_return min = null;\n\n\n CommonTree char_literal527_tree=null;\n CommonTree char_literal528_tree=null;\n RewriteRuleTokenStream stream_329=new RewriteRuleTokenStream(adaptor,\"token 329\");\n RewriteRuleTokenStream stream_243=new RewriteRuleTokenStream(adaptor,\"token 243\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_longitudeEastWest=new RewriteRuleSubtreeStream(adaptor,\"rule longitudeEastWest\");\n RewriteRuleSubtreeStream stream_angularUnit=new RewriteRuleSubtreeStream(adaptor,\"rule angularUnit\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:779:2: (x= numericValuePositive ew= longitudeEastWest -> ^( ANGLE $ew $x DEGREE ) | x= numericValuePositive xu= angularUnit ew= longitudeEastWest -> ^( ANGLE $ew $x $xu) | deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ew= longitudeEastWest -> ^( ANGLE $ew $deg DEGREE $min MINUTE ) )\n int alt208=3;\n int LA208_0 = input.LA(1);\n\n if ( ((LA208_0>=BinaryLiteral && LA208_0<=HexLiteral)) ) {\n switch ( input.LA(2) ) {\n case 268:\n case 269:\n case 270:\n case 271:\n {\n alt208=1;\n }\n break;\n case 243:\n {\n alt208=3;\n }\n break;\n case 330:\n case 331:\n case 332:\n case 333:\n case 334:\n case 335:\n case 336:\n case 337:\n {\n alt208=2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 208, 1, input);\n\n throw nvae;\n }\n\n }\n else if ( (LA208_0==FloatingPointLiteral) ) {\n int LA208_2 = input.LA(2);\n\n if ( ((LA208_2>=330 && LA208_2<=337)) ) {\n alt208=2;\n }\n else if ( ((LA208_2>=268 && LA208_2<=271)) ) {\n alt208=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 208, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 208, 0, input);\n\n throw nvae;\n }\n switch (alt208) {\n case 1 :\n // flips.g:779:4: x= numericValuePositive ew= longitudeEastWest\n {\n pushFollow(FOLLOW_numericValuePositive_in_longitude4626);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_longitudeEastWest_in_longitude4630);\n ew=longitudeEastWest();\n\n state._fsp--;\n\n stream_longitudeEastWest.add(ew.getTree());\n\n\n // AST REWRITE\n // elements: x, ew\n // token labels: \n // rule labels: ew, retval, x\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_ew=new RewriteRuleSubtreeStream(adaptor,\"rule ew\",ew!=null?ew.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 780:2: -> ^( ANGLE $ew $x DEGREE )\n {\n // flips.g:780:5: ^( ANGLE $ew $x DEGREE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ew.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:781:4: x= numericValuePositive xu= angularUnit ew= longitudeEastWest\n {\n pushFollow(FOLLOW_numericValuePositive_in_longitude4652);\n x=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(x.getTree());\n pushFollow(FOLLOW_angularUnit_in_longitude4656);\n xu=angularUnit();\n\n state._fsp--;\n\n stream_angularUnit.add(xu.getTree());\n pushFollow(FOLLOW_longitudeEastWest_in_longitude4660);\n ew=longitudeEastWest();\n\n state._fsp--;\n\n stream_longitudeEastWest.add(ew.getTree());\n\n\n // AST REWRITE\n // elements: xu, x, ew\n // token labels: \n // rule labels: ew, retval, x, xu\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_ew=new RewriteRuleSubtreeStream(adaptor,\"rule ew\",ew!=null?ew.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_x=new RewriteRuleSubtreeStream(adaptor,\"rule x\",x!=null?x.tree:null);\n RewriteRuleSubtreeStream stream_xu=new RewriteRuleSubtreeStream(adaptor,\"rule xu\",xu!=null?xu.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 782:2: -> ^( ANGLE $ew $x $xu)\n {\n // flips.g:782:5: ^( ANGLE $ew $x $xu)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ew.nextTree());\n adaptor.addChild(root_1, stream_x.nextTree());\n adaptor.addChild(root_1, stream_xu.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:783:4: deg= integerValuePositive 'd' min= numericValuePositive '\\\\'' ew= longitudeEastWest\n {\n pushFollow(FOLLOW_integerValuePositive_in_longitude4683);\n deg=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(deg.getTree());\n char_literal527=(Token)match(input,243,FOLLOW_243_in_longitude4685); \n stream_243.add(char_literal527);\n\n pushFollow(FOLLOW_numericValuePositive_in_longitude4689);\n min=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(min.getTree());\n char_literal528=(Token)match(input,329,FOLLOW_329_in_longitude4691); \n stream_329.add(char_literal528);\n\n pushFollow(FOLLOW_longitudeEastWest_in_longitude4695);\n ew=longitudeEastWest();\n\n state._fsp--;\n\n stream_longitudeEastWest.add(ew.getTree());\n\n\n // AST REWRITE\n // elements: min, ew, deg\n // token labels: \n // rule labels: ew, min, retval, deg\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_ew=new RewriteRuleSubtreeStream(adaptor,\"rule ew\",ew!=null?ew.tree:null);\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_deg=new RewriteRuleSubtreeStream(adaptor,\"rule deg\",deg!=null?deg.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 784:2: -> ^( ANGLE $ew $deg DEGREE $min MINUTE )\n {\n // flips.g:784:5: ^( ANGLE $ew $deg DEGREE $min MINUTE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ANGLE, \"ANGLE\"), root_1);\n\n adaptor.addChild(root_1, stream_ew.nextTree());\n adaptor.addChild(root_1, stream_deg.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(DEGREE, \"DEGREE\"));\n adaptor.addChild(root_1, stream_min.nextTree());\n adaptor.addChild(root_1, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public double getResultLocationLongitude() {\n return resultLocationLongitude;\n }", "public double getLon() {\n return lon;\n }", "public double getLon() {\n return lon;\n }", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public float getLongitude() {\n\t\treturn longitude;\n\t}", "public float getLongitude() {\n\t\treturn longitude;\n\t}", "public int getLongitude() {\n return longitude;\n }", "public float getLongitude() { return longitude; }", "public int getLongitude() {\n return longitude_;\n }", "@Override\n public String getLon() {\n return lon;\n }", "public float getLongitude() {\n return longitude;\n }", "@Override\r\n\tpublic double getLon() {\n\t\treturn this.lon;\r\n\t}", "public float getLongitude() {\n return longitude;\n }", "public float getLongitude() {\n return longitude;\n }", "public Float getLongitude() {\n return longitude;\n }", "public double getLon() {\r\n\t\t\treturn lon;\r\n\t\t}", "public Double getLongitude()\n\t{\n\t\treturn null;\n\t}", "public Coordinate getEnd( )\n\t{\n\t\treturn endLocation;\n\t}", "public long getLongitude() {\n return longitude_;\n }", "public Longitude getLongitude (){\n return trackLon;\n }", "public double getLng() {\r\n\t\treturn lng;\r\n\t}", "public double getLongitude() {\n double lon = 0.0;\n if (mLocationHelper != null) {\n lon = mLocationHelper.getLongitude();\n }\n\n return lon;\n }", "private double _parseLongitude(String s, String d)\n {\n double _lon = StringTools.parseDouble(s, 99999.0);\n if (_lon < 99999.0) {\n double lon = (double)((long)_lon / 100L); // _lon is always positive here\n lon += (_lon - (lon * 100.0)) / 60.0;\n return d.equals(\"W\")? -lon : lon;\n } else {\n return 180.0; // invalid longitude\n }\n }", "public double getLongitude_() { \n return longitude_; \n }", "public double getLng() {\n return lng;\n }", "public double getStartLon() {\n\t\treturn startLon;\n\t}", "public String getLongitude() {\n return String.valueOf(longitude);\n }", "BigDecimal getEndingElevation();", "public static double longitudeFromString(String pLongitude)\r\n {\r\n if (!Waypoint.testLongitude(pLongitude)) return 0;\r\n double Longitude = Double.parseDouble(pLongitude.substring(1,4)); //Grade abschneiden\r\n Longitude += Double.parseDouble(pLongitude.substring(4,7))/600; //Minuten dazuzählen\r\n if(pLongitude.charAt(0)=='E') return Longitude;\r\n else if (pLongitude.charAt(0)=='W') return Longitude*(-1);\r\n return 0;\r\n \r\n }", "public BigDecimal getLongitude() {\n return longitude;\n }", "public long getLongitude() {\n return longitude_;\n }", "@Min(-180)\n @Max(180)\n public double getLng() {\n return lng;\n }", "public String getLongitude(String s) {\n return ((longitude != FLOATNULL) ? new Float(longitude).toString() : \"\");\n }", "public double getLastLatitude(){\n if(location != null){\n lastLatitude = location.getLatitude();\n }else{\n lastLatitude = longitude;\n }\n return lastLatitude;\n }", "public double getEndY()\n {\n return endycoord; \n }", "public String getLastLocation() {\n return lastLocation;\n }", "public static String getEnd(String town){\n\t\treturn Character.toString(town.charAt(1));\n\t}", "public Vector2 getEndLoc( ) { return endLoc; }", "Report.LocationOuterClass.WGS84 getWgs84();", "public double getEpochLongitude() {\n return epochLongitude;\n }", "public String getWestBoundLongitude() {\r\n\t\treturn westBoundLongitude;\r\n\t}", "@JsonProperty(\"longitude\")\n public Double getLongitude() {\n return longitude;\n }", "net.opengis.gml.x32.TimePositionType getEndPosition();", "int getLngE6();", "int getLngE6();", "@Override\n SubwayStation getEndLocation() {\n return this.endLocation;\n }", "public static String longitude(GeoPoint p) {\r\n\t\treturn Float.toString((float) p.getLongitudeE6() / (float) 1E6);\r\n\t}", "protected double getLongitudeAttributeValue(XDIMEContextInternal context, \n XDIMEAttributes attributes) throws XDIMEException {\n\n double longitude = Double.NaN;\n String attrVal = attributes.getValue(\"\",\"longitude\");\n if (attrVal != null) {\n try {\n longitude = Double.parseDouble(attrVal);\n } catch (NumberFormatException nfe) {\n throw new XDIMEException(\"\\\"longitude\\\" attribute of map \"\n + \"element must be double\");\n }\n }\n return longitude;\n }", "public Double A() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LONGITUDE\");\n }" ]
[ "0.7270224", "0.6922315", "0.6911805", "0.6901593", "0.6901593", "0.6864453", "0.6710797", "0.66264707", "0.6625519", "0.65537256", "0.6515999", "0.64793926", "0.6389581", "0.6377568", "0.6366441", "0.6356203", "0.6344314", "0.63229805", "0.62975967", "0.62952346", "0.6285708", "0.6285708", "0.6280533", "0.6280533", "0.6280533", "0.6280533", "0.62672865", "0.62661725", "0.62661725", "0.62661725", "0.62661725", "0.6246522", "0.6241046", "0.6241046", "0.6221996", "0.62133163", "0.61787546", "0.61453116", "0.61453116", "0.61387384", "0.6137124", "0.611331", "0.611331", "0.6089077", "0.60835576", "0.60583717", "0.60558975", "0.6042364", "0.6039715", "0.6038988", "0.6032437", "0.60299885", "0.6028221", "0.6028221", "0.60278636", "0.60177946", "0.60177946", "0.5996802", "0.5987355", "0.59859484", "0.59826505", "0.5976259", "0.59701484", "0.5963724", "0.5963724", "0.5957315", "0.5954337", "0.59528184", "0.59511423", "0.59505576", "0.59497094", "0.59405327", "0.5936583", "0.59363884", "0.5928379", "0.59105", "0.5891335", "0.5890316", "0.58733076", "0.5864579", "0.5857234", "0.5852296", "0.5810969", "0.58096725", "0.57993364", "0.57813674", "0.5734405", "0.57257426", "0.5656656", "0.564973", "0.56377816", "0.5621902", "0.55978805", "0.5560909", "0.55532354", "0.55532354", "0.55391484", "0.5509346", "0.5506356", "0.5494807" ]
0.78885674
0
Returns the sample's elevation in meters.
BigDecimal getElevation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getElevation();", "public float getElevation() {\n return elevation_;\n }", "public float getElevation() {\n return elevation_;\n }", "public Integer getElevation() {\n return location.getElevation();\n }", "public float getElevation() {\n\t\treturn elevation;\n\t}", "double getElevationWithFlooring();", "public Elevation getElevation()\n {\n\treturn this.elevation;\n }", "public int getElevationInFeet() {\n\t\treturn elevationInFeet;\n\t}", "public int elevation(){\n return elevation;\n }", "double getElevation(int nodeId);", "private double getElevation(Coordinate c) {\n return getElevation(c.x, c.y);\n }", "public int getFinalElevation() {\n if (getLastStep() != null) {\n return getLastStep().getElevation();\n }\n return getEntity().getElevation();\n }", "public float getAltitude() {\n double tiltX = getTiltX();\n double tiltY = getTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[1];\n }", "private double getElevation(double x, double y) {\n double values[] = new double[1];\n try {\n coverage.evaluate(new DirectPosition2D(x, y), values);\n } catch (org.opengis.coverage.PointOutsideCoverageException e) {\n // skip this for now\n }\n return values[0];\n }", "public double bcElevation() {\n return wse[bcIndex];\n }", "public float getSavedAltitude() {\n double tiltX = getSavedTiltX();\n double tiltY = getSavedTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[1];\n }", "public float altitude_terrain_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 24, 4))); }", "public double getAltitude();", "private String getSatElevation(String satName) {\n\t\tif (sats.get(satName).canBeAuthorized()) {\n\t\t\tInteger elevation = (int) Double.parseDouble(sats.get(satName).getElevation());\n\t\t\treturn elevation.toString();\n\t\t}\n\t\treturn \" -\";\n\t}", "public double getResultLocationAltitude() {\n return resultLocationAltitude;\n }", "@Override\n public int getElevation() {\n int cElev = super.getElevation();\n if (!isMakingDfa()) {\n return cElev;\n }\n // otherwise, we are one elevation above our hex or the target's hex,\n // whichever is higher\n int tElev = game.getBoard().getHex(displacementAttack.getTargetPos()).floor();\n return Math.max(cElev, tElev) + 1;\n }", "public int getMaxElevation() {\n int maxElev = 0;\n for (MoveStep step : steps) {\n maxElev = Math.max(maxElev,\n getGame().getBoard().getHex(step.getPosition()).getLevel());\n }\n return maxElev;\n }", "BigDecimal getEndingElevation();", "public double getAltitude() {\n\t\tBlockPos groundPos = world.getHeight(getPosition());\n\t\treturn posY - groundPos.getY();\n\t}", "public double getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "@Override\n public double getAltitude()\n {\n return myPosition.getLocation().subtract(getClosestModelPosition()).getLength();\n }", "public double getAltitude() {\n return selv;\n }", "public int getAltitude() {\n return altitude;\n }", "long getAltitude();", "int getAltitude();", "public int getAltitude() {\n return altitude_;\n }", "public int getAltitude() {\n return altitude_;\n }", "public double getAltitudeRadians() {\n return altitude * Math.PI / 180d;\n }", "public long getAltitude() {\n return altitude_;\n }", "@Override\r\n\tpublic double getAltitude(){\r\n\t\treturn altitude;\r\n\t}", "public long getAltitude() {\n return altitude_;\n }", "String getElevationWithFlooringAsString();", "public float getAzimuth() {\n double tiltX = getTiltX();\n double tiltY = getTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[0];\n }", "public Double getAltitude()\n\t{\n\t\treturn null;\n\t}", "public Double getTemperature(Double latitude, Double elevation,\r\n\t\t\tString timeStamp) {\r\n\r\n\t\tDouble timeFactor = getTimeFactor(timeStamp);\r\n\r\n\t\tDouble temperature = seaLevelTemp + (tempPerElevation1 * elevation)\r\n\t\t\t\t+ (tempPerLatitude * latitude) + timeFactor;\r\n\r\n\t\t/*\r\n\t\t * Double temperature = seaLevelTemp + timeFactor + (tempPerElevation1 *\r\n\t\t * elevation) - (tempPerLatitude * latitude);\r\n\t\t */\r\n\r\n\t\tif (temperature < -50)\r\n\t\t\ttemperature = -50.00;\r\n\r\n\t\treturn temperature;\r\n\r\n\t}", "public void setElevationInFeet(int elevationInFeet) {\n\t\tthis.elevationInFeet = elevationInFeet;\n\t}", "public float altitude_amsl_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 12, 4))); }", "public int getJumpMaxElevationChange() {\n return getMaxElevation() -\n getGame().getBoard().getHex(getFinalCoords()).getLevel();\n }", "public Double getMinAltitude() {\n return minAltitude;\n }", "public float getSavedAzimuth() {\n double tiltX = getSavedTiltX();\n double tiltY = getSavedTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[0];\n }", "public boolean hasElevation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasElevation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "public Double getMaxAltitude() {\n return maxAltitude;\n }", "public Builder setElevation(float value) {\n bitField0_ |= 0x00000002;\n elevation_ = value;\n onChanged();\n return this;\n }", "public double get_Easting() {\n return this.Easting;\n }", "public double getMean(){\n\t\treturn Math.exp(location + scale * scale / 2);\n\t}", "public double getAntennaHeight()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public double getEast() {\n return east;\n }", "public float mo2751e(C0380e eVar) {\n return eVar.mo2739d().getElevation();\n }", "public float altitude_local_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 16, 4))); }", "protected double getCurrentAltitude() {\r\n\t\treturn currentAltitude;\r\n\t}", "public static double getArea() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ta\").getDouble(0);\n }", "boolean hasElevation();", "double getMinActiveAltitude();", "public int getActionBarElevation() {\n return PixelUtils.dipToPixels(getContext(), 8);\n }", "public String getAltitudeColUnits()\n {\n return myAltitudeColUnits;\n }", "@MavlinkFieldInfo(\n position = 4,\n unitSize = 4,\n signed = true,\n description = \"Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.\"\n )\n public final int alt() {\n return this.alt;\n }", "private int getAvgFlightAltitude() {\n\t\treturn this.avgFlightAltitude;\n\t}", "public float getMagnitude() {\n return (float) Math.sqrt(Math.pow(latComponent, 2) + Math.pow(longComponent, 2));\n }", "public List<Double> getAltitudes() {\n return mAltitudes;\n }", "public float altitude_monotonic_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }", "public short getElev();", "public float getAltitudeAngle()\n {\n return altitude_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public double getElevationData(String date){\n\t\tJSONArray array = new JSONArray(elevHistory);\n\t\tfor(int i = 0; i<array.length();i++){\n\t\t\tJSONObject json = array.getJSONObject(i);\n\t\t\tif(json.get(\"dateTime\").equals(date))\n\t\t\t\treturn Double.parseDouble(json.get(\"value\").toString());\n\t\t}\n\t\treturn -1;\n\t}", "public double dimensionsToMeters() {\n\t\tdouble heightMeters = heightInInches / 39.370;\n\t\tdouble widthMeters = widthInInches / 39.370;\n\n\t\treturn areaInMeters = heightMeters * widthMeters;\n\t}", "public double getAltitude(Coordinates coord, long time) throws AstrometryException;", "public int getAdministrativeDistance() {\n\t return this.administrativeDistance;\n\t}", "public double getMana() {\n return classData.getMana(level);\n }", "public Integer getMeterDenominator() {\n return this.meterDenominator;\n }", "public int getWindDirDegrees()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WINDDIRDEGREES$0, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "public org.apache.xmlbeans.XmlDouble xgetAntennaHeight()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n return target;\r\n }\r\n }", "public Double A() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LONGITUDE\");\n }", "@Override\n\tpublic double getLongitude() {\n\t\treturn _locMstLocation.getLongitude();\n\t}", "public int getLatE6() {\n return latE6_;\n }", "public int getLatE6() {\n return latE6_;\n }", "public double getArea() {\n return ((this.xR - this.xL) * (this.yT - this.yD));\n }", "public double getLongitude() {\n return location.getLongitude();\n }", "public int getLatE6() {\n return latE6_;\n }", "public int getLatE6() {\n return latE6_;\n }", "public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }", "public float getAverageHeight() {\n\t\treturn (texture.getHeight() / 16) * size;\n\t}", "double getLongitude();", "public Integer getAltUnits() {\n\t\treturn altUnits;\n\t}", "public double getAzimuth() {\n return azimuth;\n }", "public double getHeight() {\n return location.height();\n }", "public double getStandardDeviation() {\r\n\t\tdouble standDev=0;\r\n\t\tdouble avgD=getAverageDuration();\r\n\t\tdouble zaehler=0;\r\n\t\tfor(int a=0;a<populationSize();a++) {\r\n\t\t\tzaehler+=Math.pow((avgD-getTour(a).getDuration()), 2);\r\n\t\t}\r\n\t\tstandDev=Math.pow((zaehler/populationSize()), 0.5);\r\n\t\treturn standDev;\r\n\t }", "public void setElevation(float elevation) {\n ApiCompatibilityUtils.setElevation(mPopupWindow, elevation);\n }", "Double getLongitude();", "Double getLongitude();", "float getLte();", "public float getTiltX() {\n return pm.pen.getLevelValue(PLevel.Type.TILT_X);\n }", "public double geoMean() {\n\t\tint product = 1;\n\t\tfor (Animal a : animals) {\n\t\t\tproduct *= a.getSize();\n\t\t}\n\t\treturn Math.pow(product, 1.0 / animals.size());\n\t}" ]
[ "0.79091", "0.7806108", "0.7792556", "0.7707609", "0.76886046", "0.7384745", "0.72885066", "0.7165751", "0.71121854", "0.70268285", "0.7005487", "0.67911536", "0.67321783", "0.66476524", "0.65401566", "0.64289665", "0.64057356", "0.6403043", "0.6399722", "0.6399055", "0.63889676", "0.638449", "0.6354883", "0.6333409", "0.6212694", "0.6212694", "0.6150412", "0.6089597", "0.60890275", "0.60822767", "0.60766953", "0.6064688", "0.60377276", "0.6020103", "0.60193646", "0.6017428", "0.59934694", "0.59558207", "0.58568233", "0.58547205", "0.582266", "0.5810207", "0.5793671", "0.5726645", "0.5705925", "0.5702018", "0.56795985", "0.56393415", "0.56312156", "0.5616597", "0.560746", "0.5603446", "0.5583362", "0.5551489", "0.5530145", "0.5517101", "0.5498197", "0.54882747", "0.54718167", "0.54685986", "0.54536587", "0.54379517", "0.5436724", "0.5432161", "0.540896", "0.5406254", "0.538976", "0.53737783", "0.53534883", "0.53492874", "0.5335154", "0.5310911", "0.5303314", "0.5300816", "0.5285539", "0.52783424", "0.5278275", "0.52762574", "0.52665585", "0.5260608", "0.52217907", "0.5205582", "0.5205582", "0.52029103", "0.5192044", "0.51762885", "0.51762885", "0.5175554", "0.5150326", "0.5143081", "0.51411057", "0.51117724", "0.5104129", "0.51022315", "0.50908124", "0.50907266", "0.50907266", "0.50899196", "0.5084268", "0.5080796" ]
0.72795933
7
Returns the sample's ending elevation in meters.
BigDecimal getEndingElevation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFinalElevation() {\n if (getLastStep() != null) {\n return getLastStep().getElevation();\n }\n return getEntity().getElevation();\n }", "float getElevation();", "double getElevationWithFlooring();", "public float getElevation() {\n return elevation_;\n }", "public float getElevation() {\n return elevation_;\n }", "public Integer getElevation() {\n return location.getElevation();\n }", "public float getElevation() {\n\t\treturn elevation;\n\t}", "BigDecimal getElevation();", "public int elevation(){\n return elevation;\n }", "public Elevation getElevation()\n {\n\treturn this.elevation;\n }", "public int getElevationInFeet() {\n\t\treturn elevationInFeet;\n\t}", "public double bcElevation() {\n return wse[bcIndex];\n }", "private double getElevation(Coordinate c) {\n return getElevation(c.x, c.y);\n }", "public int getMaxElevation() {\n int maxElev = 0;\n for (MoveStep step : steps) {\n maxElev = Math.max(maxElev,\n getGame().getBoard().getHex(step.getPosition()).getLevel());\n }\n return maxElev;\n }", "private double getElevation(double x, double y) {\n double values[] = new double[1];\n try {\n coverage.evaluate(new DirectPosition2D(x, y), values);\n } catch (org.opengis.coverage.PointOutsideCoverageException e) {\n // skip this for now\n }\n return values[0];\n }", "public float getAltitude() {\n double tiltX = getTiltX();\n double tiltY = getTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[1];\n }", "public double getAltitude();", "public double getResultLocationAltitude() {\n return resultLocationAltitude;\n }", "public double getAltitude() {\n\t\tBlockPos groundPos = world.getHeight(getPosition());\n\t\treturn posY - groundPos.getY();\n\t}", "public float getSavedAltitude() {\n double tiltX = getSavedTiltX();\n double tiltY = getSavedTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[1];\n }", "@Override\n public double getAltitude()\n {\n return myPosition.getLocation().subtract(getClosestModelPosition()).getLength();\n }", "public float altitude_terrain_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 24, 4))); }", "double getElevation(int nodeId);", "String getElevationWithFlooringAsString();", "int getAltitude();", "long getAltitude();", "@Override\n public int getElevation() {\n int cElev = super.getElevation();\n if (!isMakingDfa()) {\n return cElev;\n }\n // otherwise, we are one elevation above our hex or the target's hex,\n // whichever is higher\n int tElev = game.getBoard().getHex(displacementAttack.getTargetPos()).floor();\n return Math.max(cElev, tElev) + 1;\n }", "public Float getEndMiles() {\n return endMiles;\n }", "public double getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "public double getAltitudeRadians() {\n return altitude * Math.PI / 180d;\n }", "public double getEndLat() {\n\t\treturn endLat;\n\t}", "private String getSatElevation(String satName) {\n\t\tif (sats.get(satName).canBeAuthorized()) {\n\t\t\tInteger elevation = (int) Double.parseDouble(sats.get(satName).getElevation());\n\t\t\treturn elevation.toString();\n\t\t}\n\t\treturn \" -\";\n\t}", "public int getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return selv;\n }", "public int getAltitude() {\n return altitude_;\n }", "@Override\r\n\tpublic double getAltitude(){\r\n\t\treturn altitude;\r\n\t}", "public double getEndLon() {\n\t\treturn endLon;\n\t}", "public int getJumpMaxElevationChange() {\n return getMaxElevation() -\n getGame().getBoard().getHex(getFinalCoords()).getLevel();\n }", "public double get_Easting() {\n return this.Easting;\n }", "public int getAltitude() {\n return altitude_;\n }", "public long getAltitude() {\n return altitude_;\n }", "public Double getAltitude()\n\t{\n\t\treturn null;\n\t}", "public long getAltitude() {\n return altitude_;\n }", "private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }", "public Double getMaxAltitude() {\n return maxAltitude;\n }", "public double getEast() {\n return east;\n }", "public double getEndX() {\r\n return endx;\r\n }", "public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}", "public double getEndX()\n {\n return endxcoord; \n }", "public double getEnd();", "protected double getCurrentAltitude() {\r\n\t\treturn currentAltitude;\r\n\t}", "public double getEnd() {\n return end;\n }", "@Override\n\tpublic double getLongitude() {\n\t\treturn _locMstLocation.getLongitude();\n\t}", "public double getEndY()\n {\n return endycoord; \n }", "double getEndX();", "double getEndW();", "double getMaxActiveAltitude();", "public Coordinate getEnd( )\n\t{\n\t\treturn endLocation;\n\t}", "double getEndY();", "@Override\n public int getEnd() {\n return feature.getEnd();\n }", "public float altitude_amsl_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 12, 4))); }", "public float getAltitudeAngle()\n {\n return altitude_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public double getAntennaHeight()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public double getLongitude() {\n\t\tif (mLastLocation != null) {\n\t\t\tlongitude = mLastLocation.getLongitude();\n\t\t}\n\n\t\t// return longitude\n\t\treturn longitude;\n\t}", "public double generateAltitude(Double startRange, Double endRange);", "BigDecimal getWgs84EndingLongitude();", "public double getAltitude(Coordinates coord, long time) throws AstrometryException;", "@MavlinkFieldInfo(\n position = 4,\n unitSize = 4,\n signed = true,\n description = \"Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.\"\n )\n public final int alt() {\n return this.alt;\n }", "public Float getxEnd() {\r\n return xEnd;\r\n }", "public double getLongitude() {\n return location.getLongitude();\n }", "public GeoPoint getEnd(){\n return end;\n }", "public double getEndX() {\n\treturn v2.getX();\n }", "public double upperExtent(int coord) throws IllegalArgumentException { \n double ue = measurements[coord].value();\n if ( ! Double.isNaN( measurements[coord].errorPlus() ) )\n ue += measurements[coord].errorPlus();\n\treturn ue;\n }", "public double getLongitude()\n\t{\n\t\treturn this.realBin.getLocation().getLongitude();\n\t}", "public double getHeight() {\n return location.height();\n }", "public float getSavedAzimuth() {\n double tiltX = getSavedTiltX();\n double tiltY = getSavedTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[0];\n }", "public double getEndY() {\n\treturn v2.getY();\n }", "double getMinActiveAltitude();", "public int getEndx(){\n\t\treturn endx;\n\t}", "public float getAzimuth() {\n double tiltX = getTiltX();\n double tiltY = getTiltY();\n\n double[] out = new double[2];\n PLevel.Type.evalAzimuthXAndAltitude(out, tiltX, tiltY);\n return (float) out[0];\n }", "public double getLongitude() {\n if (location != null) {\n curr_longitude = location.getLongitude();\n }\n\n // return longitude\n return curr_longitude;\n }", "public float getLastValue() {\n // ensure float division\n return ((float)(mLastData - mLow))/mStep;\n }", "public float altitude_monotonic_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "BigDecimal getWgs84EndingLatitude();", "public Vector2 getEndLoc( ) { return endLoc; }", "public double getFinalDistance(){\n return valori.get(end_node);\n }", "public double getLongitude() {\r\n if (location != null) {\r\n longitude = location.getLongitude();\r\n }\r\n\r\n // return longitude\r\n return longitude;\r\n }", "public String getAltitudeColUnits()\n {\n return myAltitudeColUnits;\n }", "public float getMagnitude() {\n return (float) Math.sqrt(Math.pow(latComponent, 2) + Math.pow(longComponent, 2));\n }", "@Override\r\n default Vector3 getEnd() {\r\n return Vector3.fromXYZ(getOrgX() + getDirX(), getOrgY() + getDirY(), getOrgZ() + getDirZ());\r\n }", "public double getLongitude() {\n if (currentLocation != null) {\n longitude = currentLocation.getLongitude();\n }\n // return longitude\n return longitude;\n }", "public double getLongitude() {\n if (location != null) {\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude() {\n if (location != null) {\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public static double getArea() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ta\").getDouble(0);\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public double getLongitude(){\n if(location != null){\n longitude = location.getLongitude();\n }\n\n // return longitude\n return longitude;\n }", "public Double getMinAltitude() {\n return minAltitude;\n }", "final Locatable extent ()\n {\n return _goal.extent();\n }" ]
[ "0.7355286", "0.7325006", "0.72265357", "0.7080868", "0.70779765", "0.7072457", "0.6970306", "0.69032866", "0.67355126", "0.6637864", "0.65994966", "0.6499412", "0.64248407", "0.64135915", "0.6407234", "0.6385297", "0.63266957", "0.6325332", "0.6268947", "0.6268555", "0.61709964", "0.6155639", "0.61366737", "0.61244285", "0.6104018", "0.6102922", "0.6076349", "0.60759073", "0.60711473", "0.60711473", "0.6046075", "0.6043339", "0.60033274", "0.5984795", "0.59823936", "0.5965952", "0.59476614", "0.5942524", "0.5939703", "0.5939384", "0.5921573", "0.5919629", "0.59152573", "0.5882705", "0.5847743", "0.5846303", "0.583564", "0.58029956", "0.578821", "0.5777455", "0.57194084", "0.571132", "0.5694218", "0.56616026", "0.56497186", "0.5647157", "0.56080544", "0.5583288", "0.5567976", "0.55346453", "0.5534144", "0.5528434", "0.5513078", "0.55012655", "0.55010116", "0.54988617", "0.5497284", "0.54841036", "0.5449811", "0.54428", "0.5440059", "0.5419811", "0.541934", "0.5410419", "0.53961694", "0.53957266", "0.53928936", "0.53867567", "0.5386395", "0.5382083", "0.53766584", "0.5365926", "0.53551084", "0.53506166", "0.5345542", "0.5342249", "0.53356594", "0.5308276", "0.53065133", "0.5304004", "0.5303343", "0.52941126", "0.5290012", "0.52834004", "0.52834004", "0.52774316", "0.5271804", "0.5271804", "0.52646834", "0.5254406" ]
0.7885763
0
Returns the sample's material.
String getMaterial();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getMaterial() {\r\n return material;\r\n }", "public String getMaterial() {\n return material;\n }", "public String getMaterial() {\n return material;\n }", "public java.lang.String getMATERIAL() {\r\n return MATERIAL;\r\n }", "public Material getMaterial() {\n\t\treturn material;\n\t}", "@Element \n public String getMaterial() {\n return material;\n }", "@Override\n\tpublic Material getMaterial() {\n\t\treturn this.m_material;\n\t}", "@Override\n\tpublic String getMaterial() {\n\t\treturn null;\n\t}", "public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\n\t}", "@Override\n public String toString() {\n return material;\n }", "@Override\r\n\tMaterial get(String material) {\n\t\treturn null;\r\n\t}", "public Material getMaterial(int materialId) {\n\t\treturn null;\n\t}", "public java.lang.String getMATERIAL_GUID() {\r\n return MATERIAL_GUID;\r\n }", "Material findMaterial(String name) throws ReadException;", "public java.lang.String getMaterials(int index) {\n return materials_.get(index);\n }", "public static Material getMaterial(String name) {\r\n\t\treturn materialMap.get(name);\r\n\t}", "public java.lang.String getMaterials(int index) {\n return materials_.get(index);\n }", "public String getDressMaterial() {\r\n\t\treturn dressMaterial;\r\n\t}", "Material getMaterial(ItemStack stack);", "public List<Material> getMaterials() {\n return materials;\n }", "@Generated(hash = 199544555)\n public Material getMaterial() {\n Long __key = this.materialId;\n if (material__resolvedKey == null || !material__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n MaterialDao targetDao = daoSession.getMaterialDao();\n Material materialNew = targetDao.load(__key);\n synchronized (this) {\n material = materialNew;\n material__resolvedKey = __key;\n }\n }\n return material;\n }", "private org.bukkit.material.Sign getSignMaterial() {\r\n if (this.getBlock() == null) return null;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getBlock().getData());\r\n return material;\r\n }", "public java.lang.String getMATERIAL_EXTERNAL() {\r\n return MATERIAL_EXTERNAL;\r\n }", "ExpMaterial getExpMaterial(Container c, User u, int rowId, @Nullable ExpSampleType sampleType);", "public jkt.hms.masters.business.MasSample getSample() {\n\t\treturn sample;\n\t}", "public void setMaterial(String material) {\n this.material = material;\n }", "Coding getPriorMaterial();", "public CubeMaterial asMaterial() {\n if(mat != null) return mat;\n \n mat = new CubeMaterial();\n mat.setTexture(this);\n return mat;\n }", "public final Object getSample()\n { return(this.sample); }", "public IfcMaterial getMaterial() {\n return material;\n\n }", "WorldMaterialMap getMaterialMap();", "public Integer getMaterial_id() {\n return material_id;\n }", "public void updateMaterial() {\n this.material = world.getRecipeManager().getFirstMatch(RecipeTypes.MATERIAL, this, world).orElse(null);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Material [kd=\" + kd + \", ks=\" + ks + \", kr=\" + kr + \", kt=\" + kt + \", nShininess=\" + nShininess + \"]\";\n\t}", "public Integer getMaterial_type() {\n return material_type;\n }", "LocalMaterialData getSurfaceBlock();", "public java.lang.String getMATERIAL_VERSION() {\r\n return MATERIAL_VERSION;\r\n }", "public com.google.protobuf.ByteString getMaterialsBytes(int index) {\n return materials_.getByteString(index);\n }", "@Override\r\n\tpublic Material material() {\n\t\treturn Material.REDSTONE;\r\n\t}", "@Element \n public void setMaterial(String material) {\n this.material = material;\n }", "public void setMaterial(java.lang.String material) {\r\n this.material = material;\r\n }", "public com.google.protobuf.ByteString getMaterialsBytes(int index) {\n return materials_.getByteString(index);\n }", "public MaterialData getContents() {\n/* 57 */ switch (getData()) {\n/* */ case 1:\n/* 59 */ return new MaterialData(Material.RED_ROSE);\n/* */ case 2:\n/* 61 */ return new MaterialData(Material.YELLOW_FLOWER);\n/* */ case 3:\n/* 63 */ return new Tree(TreeSpecies.GENERIC);\n/* */ case 4:\n/* 65 */ return new Tree(TreeSpecies.REDWOOD);\n/* */ case 5:\n/* 67 */ return new Tree(TreeSpecies.BIRCH);\n/* */ case 6:\n/* 69 */ return new Tree(TreeSpecies.JUNGLE);\n/* */ case 7:\n/* 71 */ return new MaterialData(Material.RED_MUSHROOM);\n/* */ case 8:\n/* 73 */ return new MaterialData(Material.BROWN_MUSHROOM);\n/* */ case 9:\n/* 75 */ return new MaterialData(Material.CACTUS);\n/* */ case 10:\n/* 77 */ return new MaterialData(Material.DEAD_BUSH);\n/* */ case 11:\n/* 79 */ return new LongGrass(GrassSpecies.FERN_LIKE);\n/* */ } \n/* 81 */ return null;\n/* */ }", "private String[] readMaterials() throws IOException\n {\n final int materialCount = this.reader.readByte();\n final String[] materials = new String[materialCount];\n for (int i = 0; i < materialCount; i++)\n {\n materials[i] = this.reader.readString(this.reader.readByte());\n }\n return materials;\n }", "String getMaterialID(ItemStack stack);", "public List<Material> getAllMaterials() {\n\t\treturn null;\n\t}", "public Material create();", "public BlockMaterial getBlockMaterial(Point3d position){\r\n\t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n\t\tMaterial material = world.getBlockState(pos).getMaterial();\r\n\t\tif(material.equals(Material.GROUND) || material.equals(Material.GRASS)){\r\n\t\t\treturn world.isRainingAt(pos.up()) ? BlockMaterial.DIRT_WET : BlockMaterial.DIRT;\r\n\t\t}else if(material.equals(Material.SAND)){\r\n\t\t\treturn world.isRainingAt(pos.up()) ? BlockMaterial.SAND_WET : BlockMaterial.SAND;\r\n\t\t}else if(material.equals(Material.SNOW) || material.equals(Material.CRAFTED_SNOW)){\r\n\t\t\treturn BlockMaterial.SNOW;\r\n\t\t}else if(material.equals(Material.ICE) || material.equals(Material.PACKED_ICE)){\r\n\t\t\treturn BlockMaterial.ICE;\r\n\t\t}else{\r\n\t\t\treturn world.isRainingAt(pos.up()) ? BlockMaterial.NORMAL_WET : BlockMaterial.NORMAL;\r\n\t\t}\r\n\t}", "public String listOfMaterials() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Material> it = materials.iterator(); it.hasNext();) {\r\n\t\t\t Material m = (Material) it.next();\r\n sb.append(m.toString());\r\n }\r\n return sb.toString();\r\n }", "public Material type()\n\t{\n\t\treturn type;\n\t}", "public void setMATERIAL(java.lang.String MATERIAL) {\r\n this.MATERIAL = MATERIAL;\r\n }", "public Integer getMaterialDurability(Block block) {\n return getMaterialDurability(block.getLocation());\n }", "public Material getType() {\n return type;\n }", "public int getRecycledMaterial(){\r\n\t\treturn this.recycledMaterial;\r\n\t}", "public String materialsToString() {\r\n\r\n\t\t String materials = \"\";\r\n\r\n\t\t for(int index = 0; index < this.getMaterials().size(); index++) {\r\n\t\t materials += getMaterials().get(index).getName()+\"-\"+getMaterials().get(index).getQuantity();\r\n\r\n\t\t if(index != this.getMaterials().size() - 1)\r\n\t\t materials += \",\";\r\n\t\t }\r\n\r\n\t\t return materials;\r\n\t\t \r\n\t }", "public int getMaterialsCount() {\n return materials_.size();\n }", "public int getMaterialsCount() {\n return materials_.size();\n }", "public void read() {\n prepareAdditionalStates();\n materialParameters.clear();\n int level = 0;\n boolean params = false;\n boolean states = false;\n try {\n //scan material text\n for (String line : material.asLines()) {\n //trim line incl comments\n line = trimLine(line);\n //find and load matdef file\n if (line.startsWith(\"Material \") || line.startsWith(\"Material\\t\") && level == 0) {\n parseMaterialProperties(line);\n }\n //start parsing material parameters\n if (line.startsWith(\"MaterialParameters \") || line.startsWith(\"MaterialParameters\\t\") || line.startsWith(\"MaterialParameters{\") && level == 1) {\n params = true;\n }\n //start parsing renderstates\n if (line.startsWith(\"AdditionalRenderState \") || line.startsWith(\"AdditionalRenderState\\t\") || line.startsWith(\"AdditionalRenderState{\") && level == 1) {\n states = true;\n }\n //up a level\n if (line.indexOf(\"{\") != -1) {\n level++;\n }\n //down a level, stop processing parameters/states\n if (line.indexOf(\"}\") != -1) {\n level--;\n if (params) {\n params = false;\n }\n if (states) {\n states = false;\n }\n }\n //try reading parameter\n if (level == 2 && params) {\n int colonIdx = line.indexOf(\":\");\n if (colonIdx != -1) {\n String[] lines = line.split(\":\");\n MaterialProperty prop = new MaterialProperty();\n prop.setName(lines[0].trim());\n if (lines.length > 1) {\n prop.setValue(lines[lines.length - 1].trim());\n }\n materialParameters.put(prop.getName(), prop);\n }\n }\n //try reading state\n if (level == 2 && states) {\n String[] lines = null;\n int colonIdx = line.indexOf(\" \");\n if (colonIdx != -1) {\n lines = line.split(\" \");\n }\n colonIdx = line.indexOf(\"\\t\");\n if (colonIdx != -1) {\n lines = line.split(\"\\t\");\n }\n if (lines != null) {\n MaterialProperty prop = new MaterialProperty();\n String name = lines[0].trim();\n prop.setName(name);\n if (additionalRenderStates.get(name) != null) {\n\n prop.setType(additionalRenderStates.get(name).getType());\n if (lines.length > 1) {\n String value = \"\";\n for (int i = 1; i < lines.length; i++) {\n value += \" \" + lines[i];\n }\n prop.setValue(value.trim());\n } \n additionalRenderStates.put(prop.getName(), prop);\n }\n }\n }\n }\n checkWithMatDef();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }", "private static RenderMaterial loadMaterialInner(Identifier idIn) {\n\t\tif (RenderMaterial.MATERIAL_STANDARD.equals(idIn)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfinal Identifier id = new Identifier(idIn.getNamespace(), \"materials/\" + idIn.getPath() + \".json\");\n\n\t\tRenderMaterial result = null;\n\t\tfinal ResourceManager rm = MinecraftClient.getInstance().getResourceManager();\n\n\t\ttry (Resource res = rm.getResource(id)) {\n\t\t\tresult = MaterialDeserializer.deserialize(readJsonObject(res));\n\t\t} catch (final Exception e) {\n\t\t\t// TODO: make error suppression configurable\n\t\t\tif (CAUGHT.add(idIn)) {\n\t\t\t\tFrex.LOG.info(\"Unable to load render material \" + idIn.toString() + \" due to exception \" + e.toString());\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n\tpublic Material findMaterialInfoById(Integer materialid) {\n\t\treturn md.findMaterialInfoById(materialid);\n\t}", "private Material validateAndGetMaterial(String rawMaterial) {\n Material material = Material.getMaterial(rawMaterial);\n\n // Try the official look up\n if (material == null) {\n\n // if that fails, try our custom lookup\n material = Utils.lookupMaterial(rawMaterial);\n\n if (material != null) {\n // if we find a old matching version, replace it with the new version\n Utils.log(\"Outdated Material found \" + rawMaterial + \" found new version \" + material.name(), 1);\n updateOutdatedMaterial(rawMaterial, material.name());\n Utils.log(\"Action has been transferred to use \" + material.name());\n\n } else {\n Utils.log(\"Material \" + rawMaterial + \" in kit \" + name + \" is invalid.\", 2);\n }\n }\n return material;\n }", "public static CustomWoodType readFromNBT(NBTTagCompound tag) {\n if (!NBTHelper.hasKey(tag, AgriNBT.MATERIAL_META, AgriNBT.MATERIAL)) {\n return getDefault();\n }\n return getFromNameAndMeta(tag.getString(AgriNBT.MATERIAL), tag.getInteger(AgriNBT.MATERIAL_META));\n }", "public com.google.protobuf.ProtocolStringList getMaterialsList() {\n return materials_;\n }", "public String getEntityType() {\r\n return \"Material\";\r\n }", "public static Material of(final String mat) {\n return Optional.ofNullable(mat)\n .map(m -> map.get(m))\n .orElse(Material.LATEX);\n }", "@JsonIgnore\n @Override\n public List<Material> getMaterials()\n {\n if (getFetchOptions() != null && getFetchOptions().hasMaterials())\n {\n return materials;\n }\n else\n {\n throw new NotFetchedException(\"Materials have not been fetched.\");\n }\n }", "public interface LocalMaterialData\n{\n\n /**\n * Gets the name of this material. If a {@link #toDefaultMaterial()\n * DefaultMaterial is available,} that name is used, otherwise it's up to\n * the mod that provided this block to name it. Block data is appended to\n * the name, separated with a colon, like \"WOOL:2\".\n * \n * @return The name of this material.\n */\n String getName();\n\n /**\n * Same as {@link #getName()}.\n * \n * @return The name of this material.\n */\n @Override\n String toString();\n\n /**\n * Gets the internal block id. At the moment, all of Minecraft's vanilla\n * materials have a static id, but this can change in the future. Mods\n * already have dynamic ids.\n * \n * @return The internal block id.\n */\n int getBlockId();\n\n /**\n * Gets the internal block data. Block data represents things like growth\n * stage and rotation.\n * \n * @return The internal block data.\n */\n byte getBlockData();\n\n /**\n * Gets whether this material is a liquid, like water or lava.\n * \n * @return True if this material is a liquid, false otherwise.\n */\n boolean isLiquid();\n\n /**\n * Gets whether this material is solid. If there is a\n * {@link #toDefaultMaterial() DefaultMaterial available}, this property is\n * defined by {@link DefaultMaterial#isSolid()}. Otherwise, it's up to the\n * mod that provided this block to say whether it's solid or not.\n * \n * @return True if this material is solid, false otherwise.\n */\n boolean isSolid();\n\n /**\n * Gets whether this material is air. This is functionally equivalent to\n * {@code isMaterial(DefaultMaterial.AIR)}, but may yield better\n * performance.\n * @return True if this material is air, false otherwise.\n */\n boolean isAir();\n\n /**\n * Gets the default material belonging to this material. The block data will\n * be lost. If the material is not one of the vanilla Minecraft materials,\n * {@link DefaultMaterial#UNKNOWN_BLOCK} is returned.\n * \n * @return The default material.\n */\n DefaultMaterial toDefaultMaterial();\n\n /**\n * Gets whether snow can fall on this block.\n * \n * @return True if snow can fall on this block, false otherwise.\n */\n boolean canSnowFallOn();\n\n /**\n * Gets whether the block is of the given material. Block data is ignored,\n * as {@link DefaultMaterial} doesn't include block data.\n * \n * @param material\n * The material to check.\n * @return True if this block is of the given material, false otherwise.\n */\n boolean isMaterial(DefaultMaterial material);\n\n /**\n * Gets an instance with the same material as this object, but with the\n * given block data. This instance is not modified.\n *\n * @param newData\n * The new block data.\n * @return An instance with the given block data.\n */\n LocalMaterialData withBlockData(int newData);\n\n /**\n * Gets an instance with the same material as this object, but the default\n * block data of the material. This instance is not modified.\n *\n * @return An instance with the default block data.\n */\n LocalMaterialData withDefaultBlockData();\n\n /**\n * Gets whether this material equals another material. The block data is\n * taken into account.\n * \n * @param other\n * The other material.\n * @return True if the materials are equal, false otherwise.\n */\n @Override\n boolean equals(Object other);\n\n /**\n * Gets the hashCode of the material, based on the block id and block data.\n * The hashCode must be unique, which is possible considering that there are\n * only 4096 * 16 possible materials.\n * \n * @return The unique hashCode.\n */\n @Override\n int hashCode();\n\n /**\n * Gets the hashCode of the material, based on only the block id. No\n * hashCode returned by this method may be the same as any hashCode returned\n * by {@link #hashCode()}.\n * \n * @return The unique hashCode.\n */\n int hashCodeWithoutBlockData();\n\n /**\n * Gets a new material that is rotated 90 degrees. North -> west -> south ->\n * east. If this material cannot be rotated, the material itself is\n * returned.\n * \n * @return The rotated material.\n */\n LocalMaterialData rotate();\n\n /**\n * Gets whether this material falls down when no other block supports this\n * block, like gravel and sand do.\n * @return True if this material can fall, false otherwise.\n */\n boolean canFall();\n\n}", "@Override\n\tpublic Material findById(Long id) {\n\t\treturn materialRepository.findById(id).get();\n\t}", "@Transactional\r\n\tpublic TypeMaterial getTypeMaterial(int Id) {\n\t\treturn typematerialdao.getTypeMaterial(Id);\r\n\t}", "public Material() {}", "public void setMaterial(String material) {\n this.material = material == null ? null : material.trim();\n }", "public Material copy()\r\n\t{\r\n\t\tMaterial other = new Material();\r\n\r\n\t\tother.setAmbient(ambient.x, ambient.y, ambient.z);\r\n\t\tother.setDiffuse(diffuse.x, diffuse.y, diffuse.z);\r\n\t\tother.setSpecular(specular.x, specular.y, specular.z);\r\n\r\n\t\tother.setTexture(texture);\r\n\r\n\t\treturn other;\r\n\t}", "List<Material> findAllMaterials() throws ReadException;", "public static Material loadMaterialFile(String name) {\r\n\t\tMaterial mat = assetManager.loadMaterial(name);\r\n\t\tmaterialMap.put(name, mat);\r\n\t\treturn mat;\r\n\t}", "public Tile getSample() {\n return (Tile) super.getSample();\n }", "public ItemBuilder setMaterial(Material material) {\r\n\t\tthis.material = material;\r\n\t\treturn this;\r\n\t}", "public T caseMaterial(Material object) {\r\n\t\treturn null;\r\n\t}", "OurIfcMaterial createOurIfcMaterial();", "public void setMaterialIndex(int index) { materialIndex = index; }", "public void setMaterial_id(Integer material_id) {\n this.material_id = material_id;\n }", "public interface IMaterialItem {\n\n /**\n * Returns the material identifier of the material of the part this itemstack holds.\n *\n * @return Identifier of a material or \"Unknown\", null or empty if invalid.\n */\n String getMaterialID(ItemStack stack);\n\n /**\n * Returns the material of the part this itemstack holds.\n *\n * @return Material or Material.UNKNOWN if invalid\n */\n Material getMaterial(ItemStack stack);\n\n /**\n * Returns the item with the given material\n */\n ItemStack getItemstackWithMaterial(Material material);\n}", "public java.lang.String getMATNR() {\n return MATNR;\n }", "public Integer getMaterialDurability(Location location) {\n if (checkDurabilityActive(location) != TimerState.RUN && !contains(location)) {\n return 0;\n } else {\n return getWrapper(location.getChunk()).getDurability(location);\n }\n }", "void createMaterial(Material material) throws CreateException;", "int getCopyNumberForMaterial(int materialId);", "public static Material getEatenMaterial(PlayerInteractEvent event)\r\n\t{\r\n\t\tAction action = event.getAction();\r\n\t\tif (action != Action.RIGHT_CLICK_AIR && action != Action.RIGHT_CLICK_BLOCK) return null;\r\n\t\t\r\n\t\tMaterial ret = null;\r\n\t\t\r\n\t\tif (action == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock().getType() == Material.CAKE_BLOCK)\r\n\t\t{\r\n\t\t\tret = Material.CAKE_BLOCK;\r\n\t\t}\r\n\t\telse if (foodMaterials.contains(event.getMaterial()))\r\n\t\t{\r\n\t\t\tret = event.getMaterial();\r\n\t\t}\r\n\t\t\r\n\t\treturn ret;\r\n\t}", "public String getNormalTexture() {\n return normalTexture;\n }", "public com.google.protobuf.ProtocolStringList getMaterialsList() {\n materials_.makeImmutable();\n return materials_;\n }", "@Override\n\tpublic String addmaterial() {\n\t\treturn \"Leather Material is ready\";\n\t}", "private Material(float[] diffuse, float[] specular, float shininess) {\n this.diffuse = diffuse;\n this.specular = specular;\n this.shininess = shininess;\n }", "private Material(float[] diffuse, float[] specular, float shininess) {\n this.diffuse = diffuse;\n this.specular = specular;\n this.shininess = shininess;\n }", "LocalMaterialData withDefaultBlockData();", "public final Model getBlockModel(Material blockMaterial) {\n return getBlockModel(BlockData.fromMaterial(blockMaterial));\n }", "public String getUpdatedContent() {\n boolean params = false;\n boolean states = false;\n boolean addedstates = false;\n int level = 0;\n try {\n List<String> matLines = material.asLines();\n StringWriter out = new StringWriter();\n List<String> setValues = new LinkedList<String>();\n List<String> setStates = new LinkedList<String>();\n //goes through the lines of the material file and replaces the values it finds\n for (String line : matLines) {\n String newLine = line;\n line = trimLine(line);\n //write material header\n if (line.startsWith(\"Material \") || line.startsWith(\"Material\\t\") && level == 0) {\n String suffix = \"\";\n if (line.indexOf(\"{\") > -1) {\n suffix = \"{\";\n }\n newLine = \"Material \" + getName() + \" : \" + matDefName + \" \" + suffix;\n }\n //start parameters\n if (line.startsWith(\"MaterialParameters \") || line.startsWith(\"MaterialParameters\\t\") || line.startsWith(\"MaterialParameters{\") && level == 1) {\n params = true;\n }\n //start states\n if (line.startsWith(\"AdditionalRenderState \") || line.startsWith(\"AdditionalRenderState\\t\") || line.startsWith(\"AdditionalRenderState{\") && level == 1) {\n states = true;\n addedstates = true;\n }\n //up a level\n if (line.indexOf(\"{\") != -1) {\n level++;\n }\n //down a level, stop processing states and check if all parameters and states have been written\n if (line.indexOf(\"}\") != -1) {\n level--;\n //find and write parameters we did not replace yet at end of parameters section\n if (params) {\n for (Iterator<Map.Entry<String, MaterialProperty>> it = materialParameters.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!setValues.contains(entry.getKey()) && matDefEntries.contains(entry.getKey())) {\n MaterialProperty prop = entry.getValue();\n if (prop.getValue() != null && prop.getValue().length() > 0) {\n String myLine = \" \" + prop.getName() + \" : \" + prop.getValue() + \"\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n params = false;\n }\n //find and write states we did not replace yet at end of states section\n if (states) {\n for (Iterator<Map.Entry<String, MaterialProperty>> it = additionalRenderStates.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!setStates.contains(entry.getKey())) {\n MaterialProperty prop = entry.getValue();\n if (prop.getValue() != null && prop.getValue().length() > 0) {\n String myLine = \" \" + prop.getName() + \" \" + prop.getValue() + \"\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n states = false;\n }\n //add renderstates if they havent been in the file yet\n if (level == 0) {\n if (!addedstates) {\n String myLine = \" AdditionalRenderState {\\n\";\n out.write(myLine, 0, myLine.length());\n for (Iterator<Map.Entry<String, MaterialProperty>> it = additionalRenderStates.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!setStates.contains(entry.getKey())) {\n MaterialProperty prop = entry.getValue();\n if (prop.getValue() != null && prop.getValue().length() > 0) {\n myLine = \" \" + prop.getName() + \" \" + prop.getValue() + \"\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n myLine = \" }\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n //try replacing value of parameter line with new value\n if (level == 2 && params) {\n int colonIdx = newLine.indexOf(\":\");\n if (colonIdx != -1) {\n String[] lines = newLine.split(\":\");\n String myName = lines[0].trim();\n if (materialParameters.containsKey(myName)) {\n setValues.add(myName);\n MaterialProperty prop = materialParameters.get(myName);\n if (prop.getValue() != null && prop.getValue().length() > 0 && prop.getType() != null) {\n newLine = lines[0] + \": \" + prop.getValue();\n } else {\n newLine = null;\n }\n } else if (!matDefEntries.contains(myName)) {\n newLine = null;\n }\n }\n }\n //try replacing value of state line with new value\n if (level == 2 && states) {\n String cutLine = newLine.trim();\n String[] lines = null;\n int colonIdx = cutLine.indexOf(\" \");\n if (colonIdx != -1) {\n lines = cutLine.split(\" \");\n }\n colonIdx = cutLine.indexOf(\"\\t\");\n if (colonIdx != -1) {\n lines = cutLine.split(\"\\t\");\n }\n if (lines != null) {\n String myName = lines[0].trim();\n if (additionalRenderStates.containsKey(myName)) {\n setStates.add(myName);\n MaterialProperty prop = additionalRenderStates.get(myName);\n if (prop.getValue() != null && prop.getValue().length() > 0 && prop.getType() != null) {\n newLine = \" \" + lines[0] + \" \" + prop.getValue();\n } else {\n newLine = null;\n }\n }\n }\n }\n if (newLine != null) {\n out.write(newLine + \"\\n\", 0, newLine.length() + 1);\n }\n }\n out.close();\n return out.toString();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n return \"\";\n }", "public static Material getMaterialWithColor(DyeColor dc) {\n for (BlockColorData bdc : colorList) {\n if (bdc.getDyeColor().equals(dc) && !bdc.hasData)\n return bdc.getType();\n }\n return Material.STONE;\n }", "LocalMaterialData getGroundBlock();", "@NonNull\n public Builder material(@IntRange(from = 0) int index, @NonNull MaterialInstance material) {\n nBuilderMaterial(mNativeBuilder, index, material.getNativeObject());\n return this;\n }", "@Nullable ExpMaterialRunInput getMaterialInput(int materialId, int targetProtocolApplicationId);", "public @NonNull MaterialInstance getMaterialInstanceAt(@EntityInstance int i,\n @IntRange(from = 0) int primitiveIndex) {\n long nativeMatInstance = nGetMaterialInstanceAt(mNativeObject, i, primitiveIndex);\n return new MaterialInstance(nativeMatInstance);\n }", "public static List<Material> parseMTL(File f, Model m)\n\t{\n\t\tList<Material> mats = new ArrayList<Material>();\n\t\tint matNum = -1;\n\n\t\ttry{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\t\t\tMaterial mtl = null;\n\t\t\tString line;\n\n\t\t\twhile((line = reader.readLine())!=null)\n\t\t\t{\t\n\t\t\t\t//Declaring a new material\n\t\t\t\tif(line.startsWith(\"newmtl \"))\n\t\t\t\t{\n\t\t\t\t\t//If this is not the first material,\n\t\t\t\t\t//Add the current material to the mats list\n\t\t\t\t\t//before creating a new one\n\t\t\t\t\tif(mtl != null)\n\t\t\t\t\t\tmats.add(mtl);\n\n\t\t\t\t\t//Make mtl a new material and set name and id\n\t\t\t\t\tmtl = new Material();\n\t\t\t\t\tmtl.name = line.split(\" \")[1];\n\t\t\t\t\tmtl.id = -1;\n\t\t\t\t}\n\t\t\t\t//Specifying ambient color of material\n\t\t\t\telse if(line.startsWith(\"Ka \"))\n\t\t\t\t{\n\t\t\t\t\t//Just split line up and set the ambient\n\t\t\t\t\tmtl.ambient = new Vector3f(\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3])\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t//Specifying diffuse color of material\n\t\t\t\telse if(line.startsWith(\"Kd \"))\n\t\t\t\t{\n\t\t\t\t\tmtl.diffuse = new Vector3f(\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3])\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t//Specifying specular color of material\n\t\t\t\telse if(line.startsWith(\"Ks \"))\n\t\t\t\t{\n\t\t\t\t\tmtl.specular = new Vector3f(\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3])\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t//Specifying coefficiant of specular color\n\t\t\t\t//TODO add support for specular coefficiants\n\t\t\t\telse if(line.startsWith(\"Ns \"))\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t\t//Specifying ambient texture map\n\t\t\t\t//TODO add support for ambient texture map\n\t\t\t\telse if(line.startsWith(\"map_Ka \"))\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\t//Specifying diffuse texture map\n\t\t\t\telse if(line.startsWith(\"map_Kd \"))\n\t\t\t\t{\n\t\t\t\t\tmatNum++;\n\t\t\t\t\t//Set the material's texture to specified texture\n\t\t\t\t\tmtl.texture = MyTextureLoader.getTexture(f.getParentFile() + File.separator + line.split(\" \")[1]);\n\t\t\t\t\tm.textures.add(mtl.texture);\n\t\t\t\t\t//m.texture = mtl.texture;\n\t\t\t\t\tmtl.id = matNum;\n\t\t\t\t}\n\t\t\t\t//Specifying specular texture map\n\t\t\t\t//TODO add support for specular texture map\n\t\t\t\telse if(line.startsWith(\"map_Ks \"))\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t\t//Specifying highlight component map\n\t\t\t\t//TODO add support for highlight component map\n\t\t\t\telse if(line.startsWith(\"map_Ns \"))\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\tmats.add(mtl);\n\t\t}\n\t\tcatch(FileNotFoundException e){e.printStackTrace();} \n\t\tcatch (IOException e) {e.printStackTrace();}\n\n\t\treturn mats;\n\t}" ]
[ "0.7931414", "0.79203707", "0.79203707", "0.7755891", "0.75656176", "0.7530043", "0.74919057", "0.7300376", "0.7280927", "0.72266054", "0.7024712", "0.6910057", "0.6833541", "0.6783422", "0.67597616", "0.6733285", "0.6727574", "0.67117476", "0.6694444", "0.66078705", "0.6537843", "0.65310395", "0.65167063", "0.64970076", "0.64263284", "0.6408934", "0.6392593", "0.63860124", "0.6341802", "0.63415086", "0.63339275", "0.6308087", "0.62778515", "0.6267238", "0.6259882", "0.6215018", "0.6200525", "0.6189764", "0.6183048", "0.6151644", "0.6131696", "0.6123104", "0.6085872", "0.60487515", "0.60339856", "0.60227036", "0.60027796", "0.59846807", "0.5964564", "0.59591424", "0.59406686", "0.59360665", "0.5902821", "0.5864166", "0.58194065", "0.5802797", "0.5797046", "0.5776403", "0.57353264", "0.5705921", "0.5699907", "0.56912595", "0.5686961", "0.56632775", "0.56360066", "0.5606946", "0.5600644", "0.55851847", "0.5584876", "0.5583395", "0.5581634", "0.55696356", "0.55436176", "0.5521277", "0.55164737", "0.55117434", "0.54727936", "0.54707354", "0.543693", "0.5412264", "0.5401524", "0.5398765", "0.53945", "0.5390314", "0.5379651", "0.5354764", "0.53525394", "0.5350315", "0.53492755", "0.5341066", "0.5341066", "0.5327565", "0.5325274", "0.53252363", "0.53225076", "0.5317995", "0.5314741", "0.5270972", "0.52696663", "0.5264511" ]
0.79035103
3
Returns the sample's type.
String getType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSampleType() {\n return sampleType;\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "public String type();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "public void setSampleType(String sampleType) {\n this.sampleType = sampleType;\n }", "String provideType();", "public Type getType();", "type getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "public String getType() {\n return (String) getObject(\"type\");\n }", "public int getType();", "public int getType();", "public int getType();", "public int getType();" ]
[ "0.8390951", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.69051725", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6905051", "0.6803492", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67743504", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.67246705", "0.6698338", "0.66742355", "0.6670917", "0.6659134", "0.66504544", "0.66504544", "0.66504544", "0.66504544", "0.66504544", "0.66504544", "0.66504544", "0.66504544", "0.6647973", "0.6632659", "0.6632659", "0.6632659", "0.6632659" ]
0.7053145
21
add coreextension by default
public Engine build() { this.extensions.add(new CoreExtension()); // load extensions this.extensions.forEach(extension -> { this.renderers.putAll(extension.getRenderers()); this.directives.putAll(extension.getDirectives()); this.nodeParsers.putAll(extension.getNodeParsers()); this.filters.putAll(extension.getFilters()); this.tests.putAll(extension.getTests()); this.unaryOperators.putAll(extension.getUnaryOperators()); this.binaryOperators.putAll(extension.getBinaryOperators()); this.factories.addAll(extension.getNodeVisitorFactories()); this.safeNodes.addAll(extension.getSafeNodes()); }); // create an operator token parser TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{})); TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{})); TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser); // create a execute token parser TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false); TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false); TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser)); this.starts.add(this.executeOpen); // create a print token parser TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false); TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false); TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser)); this.starts.add(this.printOpen); // create a comment token parser TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false); TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false); TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose); TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser); this.starts.add(this.commentOpen); // create a text token parser TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts); TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile("^.*", Pattern.DOTALL | Pattern.MULTILINE), false); TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF); this.tokenizerBuilder.parser(principal); Tokenizer tokenizer = this.tokenizerBuilder.build(); ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators); Engine engine = new Engine(this.environment, expressionParser, renderers, directives, nodeParsers, filters, tests, factories, safeNodes, tokenizer); return engine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerCoreExtensions() {\n if (extensionsRegistered) {\n throw H2O.fail(\"Extensions already registered\");\n }\n\n long before = System.currentTimeMillis();\n ServiceLoader<AbstractH2OExtension> extensionsLoader = ServiceLoader.load(AbstractH2OExtension.class);\n for (AbstractH2OExtension ext : extensionsLoader) {\n if (isEnabled(ext)) {\n ext.init();\n coreExtensions.put(ext.getExtensionName(), ext);\n }\n }\n extensionsRegistered = true;\n registerCoreExtensionsMillis = System.currentTimeMillis() - before;\n }", "Extension createExtension();", "void addExtension(String extension) {\n if (extensions == null) {\n extensions = Collections.singletonList(extension);\n } else if (extensions.size() == 1) {\n extensions = new ArrayList<>(extensions);\n }\n if (!extensions.contains(extension)) {\n extensions.add(extension);\n }\n }", "void addCommandLineExtension(ICommandLineArgumentsExtension extension);", "private void _setExtension(XSTCtrl_extensionType ext) {\n\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "Registries createExtension();", "public void added(IExtensionPoint[] extensionPoints) {\r\n\r\n\t\t// Do nothing\r\n\t}", "public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }", "public void addExtension(String extension)\r\n {\r\n // Verifions que l'extension passe en argument ne soit pas null !\r\n if (extension != null)\r\n {\r\n // Verifier que le vecteur des extensions n'est pas null\r\n if (extensionFilters == null)\r\n {\r\n // Creation du vecteur des extensions\r\n extensionFilters = new ArrayList();\r\n }\r\n\r\n // Ajout de l'extension passe en argument dans le vecteur des extensions\r\n // Ne prendre que l'extension et pas le '.' (\"jpg\" mais pas \".jpg\")\r\n int i = extension.lastIndexOf('.');\r\n if (i > 0 && i < extension.length() - 1)\r\n extensionFilters.add(extension.substring(i + 1).toLowerCase());\r\n else\r\n extensionFilters.add(extension.toLowerCase());\r\n }\r\n }", "public void setCoreLoader(ClassLoader coreLoader) {\n this.coreLoader = coreLoader;\n }", "public static void set_SourceExtension(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceExtensionCmd, v);\n UmlCom.check();\n \n _ext = v;\n \n }", "public void setExtensions(String extensions)\n {\n this.ext = extensions;\n }", "public void setExtension(java.lang.Object extension) {\r\n this.extension = extension;\r\n }", "@Override\n public String[] getExtensions() {\n return new String[]{};\n }", "public QuarkusCodestartTestBuilder extension(ArtifactCoords extension) {\n this.extensions.add(extension);\n return this;\n }", "private void initExtensionNamesSet()\n {\n m_sysFuncs = getJexlFunctions(SYS_CONTEXT);\n Set<String> skeys = m_sysFuncs.keySet();\n for (String key : skeys)\n m_extNameSet.add(SYS + \".\" + key);\n m_userFuncs = getJexlFunctions(USER_CONTEXT);\n Set<String> ukeys = m_userFuncs.keySet();\n for (String key: ukeys)\n m_extNameSet.add(USER + \".\" + key); \n }", "protected void loadExtensions()\n {\n // Load local extension from repository\n\n if (this.rootFolder.exists()) {\n FilenameFilter descriptorFilter = new FilenameFilter()\n {\n public boolean accept(File dir, String name)\n {\n return name.endsWith(\".xed\");\n }\n };\n\n for (File child : this.rootFolder.listFiles(descriptorFilter)) {\n if (!child.isDirectory()) {\n try {\n LocalExtension localExtension = loadDescriptor(child);\n\n repository.addLocalExtension(localExtension);\n } catch (Exception e) {\n LOGGER.warn(\"Failed to load extension from file [\" + child + \"] in local repository\", e);\n }\n }\n }\n } else {\n this.rootFolder.mkdirs();\n }\n }", "public Extension loadExtension(String name, String path) {\n if (presetExtensions.containsKey(name)) {\n Extension extension = null;\n try {\n Class clazz = presetExtensions.get(name);\n Constructor<Extension> constructor = clazz.getConstructor(); \n extension = (Extension)constructor.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return extension;\n }\n try {\n File file = new File(path);\n URL[] urls = { file.toURI().toURL() };\n URLClassLoader urlClassLoader = new URLClassLoader(urls);\n JarFile jar = new JarFile(file);\n Extension extension = null;\n for (Enumeration<JarEntry> entries = jar.entries(); entries.hasMoreElements();) {\n JarEntry entry = entries.nextElement();\n String entryName = entry.getName();\n if (!entryName.endsWith(\".class\")) continue;\n String className = entryName.replace(\"/\", \".\").substring(0, entryName.length() - 6);\n try {\n Class clazz = urlClassLoader.loadClass(className);\n if (!Extension.class.isAssignableFrom(clazz)) continue;\n Constructor<Extension> constructor = clazz.getConstructor(String.class, String.class);\n extension = (Extension)constructor.newInstance(name, path);\n } catch (ClassNotFoundException e1) {\n // e1.printStackTrace();\n }\n }\n jar.close();\n urlClassLoader.close();\n return extension;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public CompilationBuilder setDefaultScriptExtension(String defaultScriptExtension) {\n\t\tcompilerConfiguration.setDefaultScriptExtension(defaultScriptExtension);\n\t\treturn this;\n\t}", "private static void loadExtensions( final File file,\n final ArrayList extensions )\n throws TaskException\n {\n try\n {\n final JarFile jarFile = new JarFile( file );\n final Extension[] extension =\n Extension.getAvailable( jarFile.getManifest() );\n for( int i = 0; i < extension.length; i++ )\n {\n extensions.add( extension[ i ] );\n }\n }\n catch( final Exception e )\n {\n throw new TaskException( e.getMessage(), e );\n }\n }", "public boolean hasExtensions() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.hasExtensions():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.hasExtensions():boolean\");\n }", "public String[] getExtensions() {\n return new String[] { \"ino\", \"pde\", \"c\", \"cpp\", \"h\" };\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList addNewExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().add_element_user(EXTLST$14);\n return target;\n }\n }", "@Test\n\tpublic void test03JavaxActivationJavaxImageIOAsSystemPackageExtra()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}", "public String[] getExtensions()\r\n {\r\n return new String[] {\"\"};\r\n }", "public QuarkusCodestartTestBuilder extension(ArtifactKey extension) {\n this.extensions.add(Extensions.toCoords(extension, null));\n return this;\n }", "protected Iterable<JStachioExtension> extensions(Jooby application) {\n return ServiceLoader.load(\n JStachioExtension.class, application.getEnvironment().getClassLoader());\n }", "public Builder addExtensions(io.envoyproxy.envoy.config.core.v3.Extension value) {\n if (extensionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureExtensionsIsMutable();\n extensions_.add(value);\n onChanged();\n } else {\n extensionsBuilder_.addMessage(value);\n }\n return this;\n }", "public void setExtensions( String extensions[] )\n\t{\n\t\tthis.extensions = extensions;\n\t}", "public void setExtension(String extension) {\n this.extension = extension;\n }", "public void setExtension(String extension) {\n this.extension = extension;\n }", "public String getName() {\r\n return (\"Simple Extension\");\r\n }", "public EpicExtensionProvider() {\r\n\t}", "public synchronized void addExtraCP(File f) { extraCP.add(f); }", "public boolean isExtension() {\n\t\treturn true;\n\t}", "public void coreProcess(Process coreProcess) {\r\n this.coreProcess = coreProcess;\r\n }", "public BuildPhaseBuilder addFramework(String execPath) {\n FileReference reference =\n FileReference.of(execPath, SourceTree.GROUP).withExplicitFileType(FRAMEWORK_FILE_TYPE);\n fileReferences.add(reference);\n return this;\n }", "@Override\n public String[] getExtensions() {\n return EXTENSIONS.clone();\n }", "public Object getExtension(){\n\t\treturn ext;\n\t}", "public static String extendDefaultWebXml(String extension) {\n return DEFAULT_WEB_XML_PREFIX + extension + DEFAULT_WEB_XML_SUFFIX;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList addNewExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().add_element_user(EXTLST$28);\n return target;\n }\n }", "String getExtension();", "private Fts5ExtensionApi(){}", "public java.util.Map<java.lang.String, java.security.cert.Extension> getExtensions() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getExtensions():java.util.Map<java.lang.String, java.security.cert.Extension>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getExtensions():java.util.Map<java.lang.String, java.security.cert.Extension>\");\n }", "public final void rule__XImportDeclaration__ExtensionAssignment_1_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:19522:1: ( ( ( 'extension' ) ) )\r\n // InternalDroneScript.g:19523:2: ( ( 'extension' ) )\r\n {\r\n // InternalDroneScript.g:19523:2: ( ( 'extension' ) )\r\n // InternalDroneScript.g:19524:3: ( 'extension' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \r\n }\r\n // InternalDroneScript.g:19525:3: ( 'extension' )\r\n // InternalDroneScript.g:19526:4: 'extension'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \r\n }\r\n match(input,48,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "void addFramework(FrameworkContext fw) {\n bundleHandler.addFramework(fw);\n synchronized (wrapMap) {\n if (debug == null) {\n debug = fw.debug;\n }\n framework.add(fw);\n }\n }", "public io.envoyproxy.envoy.config.core.v3.Extension.Builder addExtensionsBuilder() {\n return getExtensionsFieldBuilder().addBuilder(\n io.envoyproxy.envoy.config.core.v3.Extension.getDefaultInstance());\n }", "@Override\r\n public void addExtension(String name, Class<? extends IExtension> cls) {\n this.DecoratedSortAlgo.addExtension(name, cls);\r\n }", "public void setExtensionClass(String extensionClass)\n {\n this.extensionClass = extensionClass;\n }", "public String getDefaultInputExtension();", "public void setLuaJCore(String path) {\n\t\tjEdit.setProperty(propCorePath, path);\n\t\tjEdit.removePluginJAR(jEdit.getPluginJAR(workingCore), false);\n\t\tjEdit.addPluginJAR(path);\n\t\tworkingCore = path;\n\t}", "public void addExtension(String extension) {\n\t if(filters == null) {\n\t filters = new Hashtable(5);\n\t }\n\t filters.put(extension.toLowerCase(), this);\n\t fullDescription = null;\n }", "public String getDefaultExtension() {\n return \"ino\";\n }", "public void setExtensions(String listExtensions) {\n this.extensions = listExtensions;\n }", "public void setLoadedBootstrapExtensions(BootstrapExtension...bootstrapExtensions) {\r\n \tthis.loadedBootstrapExtensions = bootstrapExtensions;\r\n }", "public String[] getAllDependencyExtensions();", "public void registerCustomExtensions(HtmlTable table) throws ExtensionLoadingException {\n \n \t\tif (StringUtils.isNotBlank(table.getTableConfiguration().getBasePackage())) {\n \n \t\t\tlogger.debug(\"Scanning custom extensions...\");\n \n \t\t\t// Scanning custom extension based on the base.package property\n \t\t\tList<AbstractExtension> customExtensions = scanCustomExtensions(table.getTableConfiguration()\n \t\t\t\t\t.getBasePackage());\n \n \t\t\t// Load custom extension if enabled\n \t\t\tif (customExtensions != null && !customExtensions.isEmpty() && table.getTableConfiguration().getExtraCustomExtensions() != null) {\n \t\t\t\tfor (String extensionToRegister : table.getTableConfiguration().getExtraCustomExtensions()) {\n \t\t\t\t\tfor (AbstractExtension customExtension : customExtensions) {\n \t\t\t\t\t\tif (extensionToRegister.equals(customExtension.getName().toLowerCase())) {\n \t\t\t\t\t\t\ttable.getTableConfiguration().registerExtension(customExtension);\n \t\t\t\t\t\t\tlogger.debug(\"Extension {} (version: {}) registered\", customExtension.getName(),\n \t\t\t\t\t\t\t\t\tcustomExtension.getVersion());\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tlogger.warn(\"No custom extension found\");\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\tlogger.debug(\"The 'base.package' property is blank. Unable to scan any class.\");\n \t\t}\n \t}", "public boolean hasUnsupportedCriticalExtension() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.hasUnsupportedCriticalExtension():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.hasUnsupportedCriticalExtension():boolean\");\n }", "public static void importExtension(IProgressMonitor monitor, File source, String extensionName) throws CoreException {\n\t\tIProjectDescription description;\n\t\tString path = source.getAbsolutePath() + File.separator + extensionName + File.separator + \".project\";\n\t\tdescription = ResourcesPlugin.getWorkspace().loadProjectDescription(new Path(path));\n\t\tIProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(description.getName());\n\t\tproject.create(description, null);\n\t\tproject.open(null);\n\t\t// remove the builder\n\t\tFixProjectsUtils.removeBuildersFromProject(monitor, project);\n\t}", "@Test\n\tpublic void test02JavaxActivationJavaxImageIOAsSystemPackageExtraWithBootdelegation()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tlaunchArgs.put(\"org.osgi.framework.bootdelegation\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}", "@objid (\"e20e1709-9e0b-4c6a-bf6c-3f3e7b57cdfe\")\n @Override\n boolean isExtension();", "public void setUserExtensions(String userExtensions) {\n this.userExtensions = userExtensions;\n }", "public sun.security.x509.Extension getExtension(sun.security.util.ObjectIdentifier r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getExtension(sun.security.util.ObjectIdentifier):sun.security.x509.Extension, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getExtension(sun.security.util.ObjectIdentifier):sun.security.x509.Extension\");\n }", "public void addExtension( final ExtensionAdapter extensionAdapter )\n throws TaskException\n {\n if( null != m_extension )\n {\n final String message = REZ.getString( \"manifest.multi-extension.error\" );\n throw new TaskException( message );\n }\n else\n {\n m_extension = extensionAdapter.toExtension();\n }\n }", "public static void addToLocalExtension(File source, String workingSetName, String extensionName)\n\t\t\tthrows SAXException, IOException, ParserConfigurationException, TransformerException {\n\t\tFile xmlFile = new File(PathUtils.getLocalExtensionsPath());\n\t\tDocumentBuilder dBuilder = XmlScannerUtils.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(xmlFile);\n\t\tdoc.getDocumentElement().normalize();\n\n\t\tNode extensions = doc.getElementsByTagName(\"extensions\").item(0);\n\t\tAttr dirAttr = doc.createAttribute(\"dir\");\n\t\tdirAttr.setValue(source + File.separator + extensionName);\n\t\tElement extension = doc.createElement(EXT_NAME);\n\t\textension.setAttributeNode(dirAttr);\n\t\tif (!workingSetName.isEmpty()) {\n\t\t\tif (getWorkingSets().contains(workingSetName)) {\n\t\t\t\textensions.insertBefore(extension, getFirstExtensionNodeFromWorkingSet(extensions, workingSetName));\n\t\t\t} else {\n\t\t\t\tComment workingSet = doc.createComment(workingSetName);\n\t\t\t\tText newLine = doc.createTextNode(\" \\n\");\n\t\t\t\textensions.appendChild(workingSet);\n\t\t\t\textensions.appendChild(newLine);\n\t\t\t\textensions.appendChild(extension);\n\t\t\t}\n\t\t} else {\n\t\t\textensions.insertBefore(extension, getFirstExtensionNode(extensions));\n\t\t}\n\t\tTransformer transformer = XmlScannerUtils.newTransformer();\n\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\ttransformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"2\");\n\t\tDOMSource domSource = new DOMSource(doc);\n\t\tStreamResult result = new StreamResult(xmlFile);\n\t\ttransformer.transform(domSource, result);\n\t}", "private static void add(String mimeType, String extension) {\n // if we have an existing x --> y mapping, we do not want to\n // override it with another mapping x --> ?\n // this is mostly because of the way the mime-type map below\n // is constructed (if a mime type maps to several extensions\n // the first extension is considered the most popular and is\n // added first; we do not want to overwrite it later).\n //\n if (!mimeTypeToExtensionMap.containsKey(mimeType)) {\n mimeTypeToExtensionMap.put(mimeType, extension);\n extensionToMimeTypeMap.put(extension, mimeType);\n }\n }", "ExtensionsType getExtensions();", "ResourceLocation withExtension(String newExtension);", "public QuarkusCodestartTestBuilder extensions(Collection<ArtifactCoords> extensions) {\n this.extensions.addAll(extensions);\n return this;\n }", "public void addExtensionAttachment(ExtensionAttachment attachment) {\n if (attachment == null) {\n throw new NullPointerException(\"Parameter attachment must not be null\");\n }\n if (extensionAttachments == null) {\n extensionAttachments = new java.util.ArrayList();\n }\n if (log.isDebugEnabled()) {\n getLogger().debug(\"ExtensionAttachment of category \" + attachment.getCategory() \n + \" added to \" + getName() + \": \" + attachment);\n }\n extensionAttachments.add(attachment);\n }", "public String getExtensions()\n {\n return ext;\n }", "public static void addExtensionToWorkingSets(IProgressMonitor monitor) {\n\t\tWorkingSetsUtils.organizeWorkingSetsFromLocalExtensions(monitor);\n\t}", "public void add(Extension extension) {\n this.add(new SubMenuItem(extension));\n }", "public void registerUIExtension(UIExtension extension)\n {\n synchronized (_scorersAndLafs)\n {\n if (!_extensions.contains(extension))\n {\n _extensions.add(extension);\n\n // Register the extension on all existing LookAndFeels\n int lafCount = _lafs.size();\n\n for (int i = 0; i < lafCount; i++)\n {\n LookAndFeel laf = _lafs.get(i);\n extension.registerSelf(laf);\n }\n }\n }\n }", "public void init(IPSExtensionDef def, java.io.File f)\n {\n }", "EnsureExtensionResponse ensureExtensions(EnsureExtensionRequest request);", "public void setSrcPhoneExt(String value) {\r\n setAttributeInternal(SRCPHONEEXT, value);\r\n }", "protected String getExtension() {\n\t\treturn \"\";\n\t}", "public static String appendScriptExtension(String basename) {\n\t\treturn basename + (WINDOWS ? \".cmd\" : \".sh\");\n\t}", "public void switchCore() {\n\t\tnoCore = !(noCore);\n\t}", "public String loadNewPlugin(final String extPointId);", "public boolean hasUnsupportedCriticalExtension() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.hasUnsupportedCriticalExtension():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.hasUnsupportedCriticalExtension():boolean\");\n }", "public String[] getExtensions() {\r\n return extensions;\r\n }", "public String[] getBuildExtensions(Project project) {\r\n// HashSet copyext =\r\n// new HashSet(Arrays.asList(COPY_EXTENSIONS.getValues(project)));\r\n// HashSet nocopyext =\r\n// new HashSet(Arrays.asList(NO_COPY_EXTENSIONS.getValues(project)));\r\n//\r\n// Map map = FileType.getFileTypes();\r\n// Iterator iterator = map.keySet().iterator();\r\n//\r\n// while (iterator.hasNext()) {\r\n// String s = (String) iterator.next();\r\n// Class nodeType = ((FileType) map.get(s)).getNodeType();\r\n// boolean isJavaNode = JavaFileNode.class.isAssignableFrom(nodeType);\r\n// if (isJavaNode && !nocopyext.contains(s)) {\r\n// copyext.add(s);\r\n// }\r\n// }\r\n// return (String[]) copyext.toArray(new String[copyext.size()]);\r\n\r\n HashSet exts = new HashSet();\r\n String[] buildExts = super.getBuildExtensions(project);\r\n if (buildExts != null) {\r\n exts.addAll(Arrays.asList(buildExts));\r\n }\r\n\r\n String[] ourExts = Builder.getRegisteredExtensions(JavaFileNodeRe.class);\r\n if (ourExts != null) {\r\n exts.addAll(Arrays.asList(ourExts));\r\n }\r\n return (String[]) exts.toArray(new String[exts.size()]);\r\n }", "public interface Extension {\r\n\r\n /**\r\n *\r\n * @return the extension name\r\n */\r\n String getName();\r\n}", "public String getExtensionClass()\n {\n return extensionClass;\n }", "public boolean isDefaultExtension(String what) {\n return what.equals(getDefaultExtension());\n }", "public int lookupWriteFileExtension(String extension);", "public void setExtensionName(String extensionName)\n {\n this.extensionName = extensionName;\n }", "void addClassLoader(ClassLoader cl);", "public void setExtuid(java.lang.String extuid) {\n\t\tthis.extuid = extuid;\n\t\tthis.hashCode_ = Integer.MIN_VALUE;\n\t}", "public String[] getExtensions()\n\t{\n\t\treturn extensions;\n\t}", "public final void rule__XImportDeclaration__ExtensionAssignment_1_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:4164:1: ( ( ( 'extension' ) ) )\n // InternalCsv.g:4165:2: ( ( 'extension' ) )\n {\n // InternalCsv.g:4165:2: ( ( 'extension' ) )\n // InternalCsv.g:4166:3: ( 'extension' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \n }\n // InternalCsv.g:4167:3: ( 'extension' )\n // InternalCsv.g:4168:4: 'extension'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \n }\n match(input,42,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "String getOutputExtension();", "ExtensionType createExtensionType();", "public ClassLoader getCoreLoader() {\n return coreLoader;\n }", "private String prepareExtension(final String ext) {\n if (ext.contains(\":\")) {\n return ext;\n }\n return \"org.apache.geronimo.arthur.knights:\" + ext + (ext.endsWith(\"-knight\") ? \"\" : \"-knight\") + ':' + lookupVersion();\n }", "public void addExternalFilesCP(File f) { externalFilesCP.add(f); }", "public static String sourceExtension()\n {\n read_if_needed_();\n \n return _ext; \n }", "@JsonProperty(\"extensions\")\n public void setExtensions(Set<ToolComponent> extensions) {\n this.extensions = extensions;\n }" ]
[ "0.64282095", "0.6227497", "0.62078863", "0.6152763", "0.59082055", "0.5745583", "0.57288444", "0.5727405", "0.5703941", "0.5648131", "0.5641124", "0.5600612", "0.559708", "0.5574365", "0.5563346", "0.5540331", "0.55272216", "0.5430084", "0.542736", "0.5407056", "0.5395181", "0.53861696", "0.53657645", "0.53531176", "0.53150725", "0.529872", "0.5296394", "0.52894914", "0.52793574", "0.5260035", "0.5245054", "0.5245054", "0.52273345", "0.5215431", "0.5198332", "0.519612", "0.517801", "0.51357335", "0.51313376", "0.5124201", "0.51158863", "0.5098787", "0.50723135", "0.5055902", "0.50540745", "0.5052974", "0.5046098", "0.5044597", "0.50388914", "0.5030082", "0.5029079", "0.5027305", "0.50272155", "0.50183797", "0.50157505", "0.5015653", "0.50153106", "0.50145173", "0.5005248", "0.5002546", "0.49853104", "0.4980339", "0.49763152", "0.49583843", "0.495603", "0.4952447", "0.4942351", "0.4942052", "0.49379143", "0.49325883", "0.49224517", "0.49223852", "0.49142778", "0.4909421", "0.49053895", "0.49022195", "0.4892604", "0.48845106", "0.48733965", "0.48626408", "0.48538992", "0.48504934", "0.484966", "0.48451635", "0.48403054", "0.48390865", "0.48373994", "0.48370183", "0.483117", "0.4830121", "0.482531", "0.48119754", "0.48067412", "0.48004043", "0.47994173", "0.47983402", "0.47975668", "0.47956696", "0.4792299", "0.47882253", "0.47866026" ]
0.0
-1
Draws this button to the screen.
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) { if (this.visible) { mc.getTextureManager().bindTexture(buttonTexture); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); boolean flag = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height; int i = 106; if (flag) { i += this.height; } this.drawTexturedModalRect(this.x, this.y, 0, i, this.width, this.height); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}", "public void draw() {\n \n // TODO\n }", "@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(\"/gui/book.png\"));\n int var5 = 0;\n int var6 = 192;\n\n if (var4)\n {\n var5 += 23;\n }\n\n if (!this.nextPage)\n {\n var6 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, var6, 23, 13);\n }\n }", "@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(SteamCraft.guiLocation + \"researchpaper.png\"));\n int var5 = 209;\n int var6 = 13;\n\n if (this.nextPage)\n {\n var6 += 91;\n var5 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, 0, 10, var6);\n }\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "public void draw(Window w) {\r\n\t\tw.drawButton(position.x, position.y, bounds(w).width, bounds(w).height, color);\r\n\t\tc.draw(w);\r\n\t}", "@Override\n\tpublic void paint() {\n\t\tSystem.out.println(\"Painting an OSX Button!\");\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void drawPauseButton(){\r\n\t\tBatch b = canvas.getBatch();\r\n\t\tpauseButton.setPosition(camera.position.x+PAUSE_BUTTON_OFFSETX, camera.position.y+PAUSE_BUTTON_OFFSETY);\r\n\t\tpauseButton.draw(b, 1);\r\n\t}", "public void drawButton(Minecraft par1Minecraft, int par2, int par3) {\r\n\t\tif(this.visible) {\r\n\t\t\tRenderUtils.bindTexture(texture);\r\n\t\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\t\tint posX = 176;\r\n\t\t\tint posY = 10;\r\n\t\t\t\r\n\t\t\tif(this.enabled) {\r\n\t\t\t\tposY = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!this.field_73749_j) {\r\n\t\t\t\tposX += 15;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.drawTexturedModalRect(this.xPosition, this.yPosition, posX, posY, this.width, this.height);\r\n\t\t}\r\n\t}", "public JButton drawButton ()\n {\n\n if (isAlive())\n {\n button.setBackground(ALIVE_COLOUR);\n }\n else \n {\n button.setBackground(DEAD_COLOUR);\n }\n\n button.addActionListener(this);\n return button;\n }", "public void draw() {\n draw(root, false);\n }", "public void drawButtons() {\n\t\tfill(color(221, 221, 221));\n\t\tfor (int i = 0; i < NUM_BUTTONS; i++) {\n\t\t\trect(BUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET, BUTTON_WIDTH, BUTTON_HEIGHT);\n\t\t}\n\n\t\t// set text color on the buttons to blue\n\t\tfill(color(0, 0, 255));\n\n\t\ttext(\"Add Cards\", BUTTON_LEFT_OFFSET + 18, BUTTON_TOP_OFFSET + 22);\n\t\ttext(\" Find Set\", BUTTON_LEFT_OFFSET + 18 + BUTTON_WIDTH + 12, BUTTON_TOP_OFFSET + 22);\n\t\ttext(\"New Game\", BUTTON_LEFT_OFFSET + 18 + 2 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\tif (state == State.PAUSED) {\n\t\t\ttext(\"Resume\", BUTTON_LEFT_OFFSET + 45 + 3 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\t} else {\n\t\t\ttext(\"Pause\", BUTTON_LEFT_OFFSET + 54 + 3 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\t}\n\t}", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "public void draw() {\n // Default widget draws nothing.\n }", "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "public void draw() {\n draw(root, true);\n }", "private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }", "public void draw() {\n mGameBoard.draw();\n }", "private void drawButtonBackground(int x, int y)\n {\n this.drawSprite(x, y, 0, 0);\n }", "public void draw() {\n \n }", "public void draw() {\n if (r.isVisible()) {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(r, new java.awt.Rectangle(r.getX(), r.getY(), \n width, height));\n canvas.wait(10);\n }\n }", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void draw() {\n }", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n/* 20 */ if (this.visible) {\n/* */ \n/* 22 */ mc.getTextureManager().bindTexture(GuiButton.buttonTextures);\n/* 23 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 24 */ boolean var4 = (mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height);\n/* 25 */ int var5 = 106;\n/* */ \n/* 27 */ if (var4)\n/* */ {\n/* 29 */ var5 += this.height;\n/* */ }\n/* */ \n/* 32 */ drawTexturedModalRect(this.xPosition, this.yPosition, 0, var5, this.width, this.height);\n/* */ } \n/* */ }", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"This is a rectangle button!\");\r\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "@Override\n\tprotected void draw() {\n\t\tif(p != null) {\n\t\t\tp.pushStyle();\n\t\t\tp.noStroke();\n\t\t\tp.textAlign(PApplet.CENTER,PApplet.CENTER);\n\t\t\tp.textSize(12);\n\t\t\tif(this.isPressed) {\n\t\t\t\tp.fill(122, 138, 153);\n\t\t\t\tp.rect(x,y,width,height);\n\t\t\t\tp.fill(181, 206, 228);\n\t\t\t\tp.rect(x+2,y+2,width-4,height-4);\n\t\t\t\tp.fill(Color.BLACK.getRGB());\n\t\t\t\tp.text(text, x, y,width,height);\n\t\t\t}else {\n\t\t\t\tif(this.isHovered) {\n\t\t\t\t\tthis.p.fill(122, 138, 153);\n\t\t\t\t\tthis.p.rect(x, y, width, height);\n\t\t\t\t\tsetGradient(x+2,y+2,width-5,height-5,new Color(255,255,255),new Color(190, 211, 231));\n\t\t\t\t\tthis.p.fill(Color.BLACK.getRGB());\n\t\t\t\t\tthis.p.text(text, x, y,width,height);\n\t\t\t\t}else {\n\t\t\t\t\tthis.p.fill(122, 138, 153);\n\t\t\t\t\tthis.p.rect(x, y, width, height);\n\t\t\t\t\tsetGradient(x+1,y+1,width-3,height-3,new Color(255,255,255),new Color(190, 211, 231));\n\t\t\t\t\tthis.p.fill(Color.BLACK.getRGB());\n\t\t\t\t\tthis.p.text(text, x, y,width,height);\n\t\t\t\t}\n\t\t\t}\n\t\t\tp.popStyle();\n\t\t}\n\t}", "@Override\r\n public void draw() {\n }", "@Override\n public void draw()\n {\n }", "public void draw() \n\t {\n\t\t draw(root,0,0,1,1,true);\n\t }", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "public void draw() {\r\n System.out.print(this);\r\n }", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t}", "public void draw(){\n }", "@Override\n public void draw() {\n }", "public void draw()\r\n {\r\n drawn = true;\r\n }", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "public void draw(){\n super.repaint();\n }", "public void draw() {\n\n }", "public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n if(this.visible) {\n this.hovered = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + getButtonWidth() && mouseY < this.yPosition + this.height;\n GlStateManager.enableAlpha();\n GL11.glColor4d(1, 1, 1, 0);\n GuiUtils.drawGradientRect(30, this.xPosition - 2, this.yPosition - 2, this.xPosition + getBackgroundSize(), this.yPosition + height + 2, 0x9F100010, 0x9F100010);\n GlStateManager.disableAlpha();\n GuiUtils.drawContinuousTexturedBox(BUTTON_TEXTURES, this.xPosition, this.yPosition, 0, 46, 11, this.height, 200, 20, 2, 3, 2, 2, this.zLevel);\n this.mouseDragged(mc, mouseX, mouseY);\n int color = 14737632;\n\n if(packedFGColour != 0) {\n color = packedFGColour;\n } else if(!this.enabled) {\n color = 10526880;\n }\n\n if(this.isChecked()) {\n this.drawGradientRect(this.xPosition + 2, this.yPosition + 2, this.xPosition + 11 - 2, this.yPosition + height - 2, Color.cyan.darker().getRGB(), Color.cyan.darker().getRGB());\n }\n\n this.drawString(mc.fontRendererObj, displayString, xPosition + 11 + 2, yPosition + 2, color);\n }\n }", "DrawShape(){\r\n super();\r\n setBackground(Color.WHITE);\r\n addMouseListener(this);\r\n }", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "@Override\n\tpublic void draw(Canvas canvas) {\n\t\tcanvas.drawBitmap(bmBack,0,0,null);\n\t\tbtnO.draw(canvas);\n\t\tbtnX.draw(canvas);\n\t}", "public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}", "private void drawStartButton(int w,int h){\r\n g.setColor(Color.gray); \r\n g.fillRect(60,h-70,w-80,50);\r\n g.setColor(Color.black);\r\n g.drawRect(60,h-70,w-80,50); \r\n \r\n Font font=new Font(\"SanSerif\",Font.BOLD,50); \r\n g.setFont(font);\r\n g.drawString(\"Start Game\",120,h-25);\r\n }", "@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}", "@FXML\n public void drawXButtonPressed()\n {\n //get the GraphicsContent, which is used to draw on the canvas\n GraphicsContext gc = clearCanvasAndGetGraphicsContext();\n\n //draw line from top corner to bottom corner\n gc.strokeLine(\n 0,\n 0,\n canvas.getWidth(),\n canvas.getHeight()\n );\n\n //draw line from bottom left corner to upper right corner\n gc.strokeLine(\n 0,\n canvas.getHeight(),\n canvas.getWidth(),\n 0\n );\n }", "public void draw() {\n drawNode(root, true);\n }", "@Override\n public void draw(ElapsedTime elapsedTime, IGraphics2D graphics2D) {\n\n // Clear the screen and draw the buttons\n // graphics2D.clear(Color.BLACK);\n\n boolean colourToggleOn = true;\n\n if (colourToggleOn) {\n String[] colourArray = {\"#9901FF\", \"#B94FFF\", \"#CA01FE\", \"#DA4AFF\",\n \"#FF00F9\", \"#FD50F9\", \"#FF00C6\", \"#FD56D8\", \"#FD009E\", \"#FD55BE\"};\n\n Random i = new Random();\n int c = i.nextInt(8 - 1) + 1;\n\n graphics2D.clear(Color.parseColor(colourArray[c]));\n }\n\n //Draw Background + Logo\n mBackground.draw(elapsedTime, graphics2D, mDefaultLayerViewport, mDefaultScreenViewport);\n mLogo.draw(elapsedTime, graphics2D, mDefaultLayerViewport, mDefaultScreenViewport);\n\n //Draw Buttons\n mPlayButton.draw(elapsedTime, graphics2D, mDefaultLayerViewport, mDefaultScreenViewport);\n mDeckButton.draw(elapsedTime, graphics2D, mDefaultLayerViewport, mDefaultScreenViewport);\n mQuitButton.draw(elapsedTime, graphics2D, mDefaultLayerViewport, mDefaultScreenViewport);\n\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}", "public void drawButton(Minecraft mc, int mouseX, int mouseY)\n {\n if (visible)\n {\n mc.getTextureManager().bindTexture(GuiButton.buttonTextures);\n GlStateManager.color(1.0F, 1.0F, 1.0F, alpha);\n GlStateManager.enableBlend();\n GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);\n GlStateManager.blendFunc(770, 771);\n\n boolean flag = mouseX >= xPosition && mouseY >= yPosition && mouseX < xPosition + width && mouseY < yPosition + height;\n\n drawTexturedModalRect(xPosition, yPosition, texX, texY + (!forceEnabled ? 0 : (flag ? height : 0)), width, height);\n }\n }", "public void paint(Graphics g) \n{ \n int i; \n int x=gRectangle.x;\n int y = gRectangle.y;\n int width=gRectangle.width;\n int height=gRectangle.height;\n \n g.setColor(ButtonColor); \n // Clickable Button \n // Unfortunately Java doesn't seem to have the concept of thickness \n // for borders. To get a border of a certain thickness, we have to \n // draw multiple rectangles having slightly different sizes \n \n for (i=0; i < GC_BUTTON_BORDER_THICKNESS; i++) \n { \n g.draw3DRect(x+i, y+i, width - 2*i+1, height - 2*i+1, raised); \n } \n g.fillRect(x+GC_BUTTON_BORDER_THICKNESS, \n y+GC_BUTTON_BORDER_THICKNESS, \n width -2* GC_BUTTON_BORDER_THICKNESS+2, \n height - 2*GC_BUTTON_BORDER_THICKNESS+2); \n \n // Put the label on the button \n \n g.setColor(Color.black); \n g.setFont(buttonFont);\n g.drawString(ButtonName, x+GC_BUTTON_BORDER_THICKNESS+GC_BUTTON_HORIZ_PAD,\n y+GC_BUTTON_BORDER_THICKNESS+GC_BUTTON_VERT_PAD+fontMaxAscent);\n \n \n // The following was added to see how big the alloted Canvas area was that was \n // made available to our MyButtonClass \n\n g.drawRect(0,0, gRectangle.width+2*GC_CANVAS_HORIZ_GAP-1,\n gRectangle.height+2*GC_CANVAS_VERT_GAP-1);\n\n }", "public void render() {\n this.canvas.repaint();\n }", "public void draw() {\n if (isEmpty()) return;\n draw1(root, 0, 1, 0, 1);\n }", "private void draw() {\n gsm.draw(g);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\tbrush.draw();\n\t}", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "@Override\r\n\tpublic void draw(Canvas canvas) {\n\t\tthing.getSprite().draw(canvas);\r\n\t}", "@Override\n\t\tpublic void renderButton(int mouseX, int mouseY){\n\t\t}", "public void draw();", "public void draw();", "public void draw();", "public void draw(){\n\t\tSystem.out.println(\"You are drawing a CIRCLE\");\n\t}", "@Override\n\tpublic void draw(Graphics canvas) {}", "protected abstract void draw();", "public void draw() {\r\n // Get a lock on the mCanvas\r\n if (mSurfaceHolder.getSurface().isValid()) {\r\n mCanvas = mSurfaceHolder.lockCanvas();\r\n\r\n // Fill the screen with a color\r\n mCanvas.drawColor(Color.argb(255, 26, 128, 182));\r\n\r\n // Set the size and color of the mPaint for the text\r\n mPaint.setColor(Color.argb(255, 255, 255, 255));\r\n mPaint.setTextSize(120);\r\n\r\n // Draw the score\r\n mCanvas.drawText(\"\" + playState.mScore, 20, 120, mPaint);\r\n\r\n // Draw the goodApple, badApple, and the snake\r\n gameObjects.draw(mCanvas, mPaint);\r\n\r\n // Draw some text while paused\r\n if (playState.mPaused) {\r\n\r\n // Set the size and color of the mPaint for the text\r\n mPaint.setColor(Color.argb(255, 255, 255, 255));\r\n mPaint.setTextSize(250);\r\n\r\n // Draw the message\r\n // We will give this an international upgrade soon\r\n //mCanvas.drawText(\"Tap To Play!\", 200, 700, mPaint);\r\n mCanvas.drawText(getResources().\r\n getString(R.string.tap_to_play),\r\n 200, 700, mPaint);\r\n }\r\n\r\n\r\n // Unlock the mCanvas and reveal the graphics for this frame\r\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\r\n }\r\n }", "public void draw() {\n background(0);\n}", "protected void drawButtons() {\n\t\tint spaceX = 50;\n\t\tint spaceY = 500;\t\n\t\t\n\t\tint aux = 1;\n\t\tfor(int i = 65; i < 91; i++) {\n\n\t\t\tLetterButton button = new LetterButton((char) i, (25 + spaceX ) * aux, spaceY);\n\t\t\taux++;\n\t\t\tif(aux == 14) {\n\t\t\t\tspaceY += 25 + 50;\n\t\t\t\taux = 1;\n\t\t\t}\n\t\t\tthis.add(button);\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制五角形\");\n\t}", "public void draw() {\n drawNode(root);\n }", "public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)\n {\n if (this.visible)\n {\n FontRenderer fontrenderer = p_146112_1_.fontRendererObj;\n p_146112_1_.getTextureManager().bindTexture(ThemeRegistry.curTheme().guiTexture());\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.hovered = p_146112_2_ >= this.xPosition && p_146112_3_ >= this.yPosition && p_146112_2_ < this.xPosition + this.width && p_146112_3_ < this.yPosition + this.height;\n int k = this.getHoverState(this.hovered);\n GlStateManager.enableBlend();\n GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);\n GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);\n \n GlStateManager.pushMatrix();\n float sh = height/20F;\n float sw = width >= 196? width/200F : 1F;\n float py = yPosition/sh;\n float px = xPosition/sw;\n GlStateManager.scale(sw, sh, 1F);\n \n if(width > 200) // Could use 396 but limiting it to 200 this makes things look nicer\n {\n \tGlStateManager.translate(px, py, 0F); // Fixes floating point errors related to position\n \tthis.drawTexturedModalRect(0, 0, 48, k * 20, 200, 20);\n } else\n {\n \tthis.drawTexturedModalRect((int)px, (int)py, 48, k * 20, this.width / 2, 20);\n \tthis.drawTexturedModalRect((int)px + width / 2, (int)py, 248 - this.width / 2, k * 20, this.width / 2, 20);\n }\n \n GlStateManager.popMatrix();\n \n this.mouseDragged(p_146112_1_, p_146112_2_, p_146112_3_);\n int l = 14737632;\n\n if (packedFGColour != 0)\n {\n l = packedFGColour;\n }\n else if (!this.enabled)\n {\n l = 10526880;\n }\n else if (this.hovered)\n {\n l = 16777120;\n }\n \n String txt = this.displayString;\n \n if(fontrenderer.getStringWidth(txt) > width) // Auto crop text to keep things tidy\n {\n \tint dotWidth = fontrenderer.getStringWidth(\"...\");\n \ttxt = fontrenderer.trimStringToWidth(txt, width - dotWidth) + \"...\";\n }\n \n this.drawCenteredString(fontrenderer, txt, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, l);\n }\n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}", "public void draw() {\n drawBox();\n if (root == null) {\n return;\n }\n\n draw(root, ORIENTATION_VERTICAL);\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制矩形\");\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\n\t\tg.fillRect(getx(), gety(), getwidth(), getheight());\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"draw method\");\n\t}", "@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}", "public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }", "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制三角形\");\t\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "@Override\n public void draw(Canvas canvas, Paint paint) {\n paint.setColor(Color.WHITE);\n canvas.drawRect(0.0F, 0.0F, this.getScreenWidth(), this.getScreenHeight(), paint);\n if (gameState == GameState.START) {\n paint.setColor(Color.BLACK);\n paint.setTextSize(50);\n canvas.drawText(\"Catch the Easter Eggs!\",\n 0.1F * screenHeight, 0.1F * screenWidth, paint);\n } else {\n paint.setColor(Color.BLACK);\n paint.setTextSize(50);\n canvas.drawText(\"(Go back to Main Level)\",\n 0.1F * screenHeight, 0.1F * screenWidth, paint);\n canvas.drawText(\"Bonus Points: \" + this.getBonusPoints(),\n 0.1F * screenHeight, 0.2F * screenWidth, paint);\n }\n List<Drawable> drawables = this.getDrawableObjects();\n for (Drawable d : drawables) {\n d.draw(canvas, paint);\n }\n }" ]
[ "0.7571343", "0.72396606", "0.7135581", "0.7090656", "0.69507885", "0.6939981", "0.69290614", "0.69190425", "0.6881716", "0.685868", "0.6837944", "0.683699", "0.6821207", "0.67942536", "0.67809546", "0.6765217", "0.67563367", "0.6750432", "0.6715001", "0.6685167", "0.6684883", "0.6629137", "0.6620637", "0.661418", "0.6591335", "0.65761894", "0.6523441", "0.6523441", "0.6503427", "0.6461221", "0.64455605", "0.6444678", "0.6438944", "0.6438944", "0.64380115", "0.6416696", "0.6413785", "0.6407917", "0.6406922", "0.6404208", "0.63981944", "0.6390843", "0.63697946", "0.63697946", "0.63620526", "0.6360448", "0.6350155", "0.63473004", "0.6316291", "0.631287", "0.630245", "0.6302434", "0.6297318", "0.628975", "0.6264439", "0.6256325", "0.62490237", "0.62437", "0.6212046", "0.62076384", "0.6206444", "0.6204142", "0.6204142", "0.6204142", "0.6204142", "0.62037706", "0.6189142", "0.61835223", "0.6162152", "0.61443347", "0.6142242", "0.6130464", "0.61063206", "0.6104962", "0.61045235", "0.60840684", "0.60840684", "0.60840684", "0.6081606", "0.6079169", "0.6077739", "0.6066055", "0.6056127", "0.6044168", "0.6034658", "0.6030812", "0.60292685", "0.6021033", "0.60206205", "0.60164946", "0.6006047", "0.6001665", "0.6001376", "0.60007286", "0.5986447", "0.597737", "0.59737015", "0.5962107", "0.5956235", "0.5944838" ]
0.6300448
52
Service class for zoo statistics which uses autowired repository for database usage
public interface StatisticsService { /** * Returns fed animals percentage which is between 0 and 1. * * @return fed animals percentage. */ Float getFedAnimalsPercentage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface StatisticsRepository extends RDBRepository<Statistics, Long> {\n//\tList<Statistics> selectGroup();\n\t/*List<TotalStatistics> selectTotal();\n List<UserAgeStatistics> selectAge(Map dateMap);\n List<UserCountStatistics> selectUserCountMonth(Map dateMap);\n List<UserCountStatistics> selectUserCountYear(Map dateMap);\n List<UserCountStatistics> selectUserCountDay(Map dateMap);\n\n List<UserDeviceStatistics> selectDevice();\n List<UserModuleStatistics> selectModule();\n List<UserSexStatistics> selectSex();\n\n List<UserCountStatistics> selectActiveUser();\n List<UserCountStatistics> selectActiveModule();\n List<UserCountStatistics> selectActiveDevice();\n\n List<UserCountStatistics> selectUv();*/\n}", "public interface StatisticsService {\n\n public void addStatistics(Statistics statistics);\n\n public void updateStatisctics(Statistics statistics);\n\n public void deleteStatistics(Statistics statistics);\n\n public Statistics finsStatistics(int id);\n\n public List<Statistics> findStatistics();\n\n public List<Statistics> findStatisticsByUser(User user);\n}", "public interface IStatisticsService {\r\n /**\r\n * 统计分析查询\r\n */\r\n public List<StatisticsEntity> qryStatisticsData(StatisticsEntity statisticsEntity);\r\n\r\n public List<StatisticsReportEntity> qryStatisticsReportData(StatisticsReportEntity statisticsReportEntity);\r\n\r\n}", "public interface SummaryService {\n\n\tlong getOrphanCount(List<Exoplanet> exoplanets);\n\n\tString findPlanetWithHottestStar(List<Exoplanet> exoplanets);\n\n\tList<TimelineEntry> createTimeline(List<Exoplanet> exoplanets);\n}", "public interface RepoTempHumService {\n\n Map<String, Object> selectById(Integer repositoryId,int offset, int limit) throws RepoTempHumServiceException;\n\n Map<String, Object> selectAll(int offset, int limit) throws RepoTempHumServiceException;\n\n boolean addRepoTempHumRecord(RepoTempHumDO repoTempHumDO) throws RepoTempHumServiceException;\n\n public File exportRecord(List<RepoTempHumDTO> rows);\n}", "public interface TransactionStatisticService {\n\n boolean processTransaction(Transaction transaction);\n\n TransactionStatistic getSummaryTransactionStatistic();\n}", "public interface DataAnalyzeService {\n\n void saveFirstLevelLeakage(FirstLevelLeakage firstLevelLeakage);\n\n /**\n * //根据换热站id拿到换热站名称\n * //然后根据换热站名称去Heatstation表中拿到换热站对应的hid\n * //然后用hid去匹配plot表,拿到plot的名称\n * //根据plot名称去cardnumberAddress表匹配,拿到房卡号\n * @return\n * @param tagid\n */\n List<Cardnumberaddress> findCardNum4RlzTagId(Integer tagid);\n\n void saveSecondLeaveLeakage(SecondLevelLeakage secondLevelLeakage);\n\n /**\n * 查询电厂在定时任务表中指定时间内用量\n * @param beginTime\n * @param endTime\n * @return\n */\n double findDCHeatNumByFirstLevelLeakage(Long beginTime, Long endTime);\n\n /**\n * 查询热力站以及上级为电厂的贸易结算系统在任务表中指定时间内用量\n * @param beginTime\n * @param endTime\n * @return\n */\n double findRLZHeatNumBySecondLevelLeakage(Long beginTime, Long endTime);\n\n /**\n * 查询时间段内一级(电厂)漏损值和对应的时间\n * @param begin\n * @param end\n * @return leakageNumList 漏损值 timeList 漏损值对应的时间\n */\n HashMap<String, ArrayList> findFirstLeakageNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内二级(热力站,贸易)漏损值和对应的时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findSecondLeakageNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内一级(电厂)用量和对应时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findFirstHeatNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n /**\n * 查询时间段内二级(热力站,贸易)用量,功率,温差和对应时间\n * @param begin\n * @param end\n * @return\n */\n HashMap<String, ArrayList> findSecondHeatNumAndTimeByBeginTime2EndTime(Date begin, Date end);\n\n void saveSecondLeaveLeakageSum(SecondLevelLeakageSum secondLevelLeakageSum);\n}", "public interface SysLogService extends IService<SysLogEntity> {\n String test(String arg);\n\n List<SysLogCountDTO> countByCreateTime(String type);\n}", "public interface Service {\n\n /**\n * Create a new Service\n *\n * @param hostIp database IP address\n * @param user database user name\n * @param password database password\n * @return a Service using the given credentials\n */\n static Service create(String hostIp, String user, String password) {\n return new ServiceImpl(hostIp, user, password);\n }\n\n\n /**\n * Retrieve historical data points for a given symbol.\n *\n * @param symbol Symbol we want history data for.\n * @param startTime Start time (inclusive)\n * @param endTime End time (inclusive)\n * @param numberOfPoints Approximate number of points to be returned\n * @return The stream of filtered data points of the given symbol and time interval\n */\n Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);\n\n /**\n * @param symbol the symbol for which to get data\n * @return the most recent data point for the given symbol\n */\n Optional<DataPoint> getMostRecentDataPoint(Symbol symbol);\n\n /**\n * @return the stream of all symbols of the database\n */\n Stream<Symbol> getSymbols();\n\n /**\n * Select whether to use Speedment in memory acceleration when looking up data\n *\n * @param accelerate true for using Speedment in memory acceleration, false for direct SQL\n */\n Service withAcceleration(boolean accelerate);\n}", "@Repository\npublic interface StatsRepository extends MongoRepository<Stats, String> {\n\n}", "public interface ConsumeService {\n\n List<ConsumeWater> findListById(String userId);\n\n Double countMoneyByDay(String userId, String startTime,String endTime);\n\n}", "public HawtDBAggregationRepository() {\n }", "public interface DataAcquisitionService extends Service<DataAcquisition> {\n\n //首页查询问卷使用信息\n List<DataAcquisition> questionnaireUseInfoListByPage();\n //根据日期查询来访者使用的问卷\n List<DataAcquisition> findQuestionnaireForVisitor (DataAcquisition dataAcquisition);\n //查询活动的填报人数\n Integer findCountByActivityId(String activityId);\n List<DataAcquisition> findMyQuestionnaireListByPage(Map<String,Object> map);\n //查询来访者填写问卷的总数\n int getDataAcquisitionTotal(String userId);\n //填写问卷类别总数\n List<DataAcquisition> getQuestionnaireTypeTotal(String userId);\n //查询来访者的填写结果\n List<DataAcquisition> findDataAcquistionForVisitor(DataAcquisition dataAcquisition);\n //来访者的问卷统计分析\n Result getDataAcquisitionForVisitingCount(String userId);\n\n}", "public interface TTuplecountService extends BaseService<TTuplecount> {\n public List<Timestamp> getTimeLineInfo();\n\n public List<TTuplecount> getTupleCountByTimeinfo(Timestamp time);\n\n public Long getSumTupleCountByTimeinfo(Timestamp time);\n\n public List<Long> getSumListTupleCountByTimeInfo();\n\n public void deleteAll();\n\n public String queryTuplecountBypage(int page, int size);\n\n}", "public SSTBrexitDashboardService() {\n\t\tuserTeamDataService = new UserTeamDBDataService();\n\t\tindexDashboardService = new IndexDBDataService();\n\t}", "public interface IStatisticsService {\n\n public void salesStatistics();\n\n public void productsStatistics();\n\n public void customersStatistics();\n}", "public interface HistoryService {\n /**\n * 查询历史住房信息\n * @param map\n * @return\n */\n List<Map> getHistory(Map map);\n\n /**\n * 获取分页总数量\n * @return\n */\n int getCount(Map map);\n}", "public interface VisitorCountMongoRepository extends MongoRepository<VisitorCount,Long> {\n\n VisitorCount findByDate(Date date);\n}", "public interface WarehouseService {\n\n /**\n * This method returns all warehouses data from database by calling respective repository methods.\n *\n * @return set of {@link Warehouse}s\n */\n Set<Warehouse> getAllWarehouses();\n\n}", "public interface IOperationLogService {\n //根据姓名查询日志\n public List<OperationLog> findByName(String name);\n //添加日志\n public void add(OperationLog info);\n List<OperationLog> findAll();\n\n long totalCount();\n List<OperationLog> findPage(int limit,int offset);\n\n public List<OperationLog> findByNameWithLimit(String name,int limit,int offset);\n public List<OperationLog> findWithConditions(String name, int limit, int offset,String type, String start,String end);\n\n public long findCount(String name, int limit, int offset,String type, String start,String end);\n}", "public interface IOnLineAnalyticsService {\n /**\n * 查询投放金额\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryLoanAmtData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询营销策略\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryMarketingStrategyData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询品类构成\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryDeptConstituteData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询客户渗透率\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryCustomPermeabilityData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n\n /**\n * 查询人员构成数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryPersonConstituteData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询非易购员工来源渠道数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryPersonNotYgChannelData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询新老客户渠道数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryNewOrOldCustomDataByChannelData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询营销能力分析数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n List<Map> queryMarketingAnalysisData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n}", "@Repository\npublic interface CounterRepository extends JpaRepository<Counter, Long>, JpaSpecificationExecutor<Counter> {\n\n\t@Query(value = \"SELECT \"\n\t \t\t+ \" new com.zenhomes.counter.service.dto.CounterDto(-1L, SUM(amount), counterId)\"\n\t \t\t+ \" FROM Counter \"\n\t \t\t+ \" WHERE createdAt >= :from \"\n\t \t\t+ \" AND createdAt <= :to \"\n\t \t\t+ \" GROUP BY counterId\"\n\t \t\t, nativeQuery = false)\n\t List<CounterDto> getConsumptionReport(@Param(\"from\") Instant from, @Param(\"to\") Instant to);\n\t \n}", "@Repository\npublic interface RateDAO {\n\tString JSON_FORMAT = \"?format=json\";\n\tString NBP_API_URL = \"http://api.nbp.pl/api/exchangerates/\";\n\tString HTTP_RESPONSE_ERROR = \"HTTP response error errorCode:\";\n\tint MAX_RESULTS_PER_QUERY = 255;\n\n\tRateWrapper findByCode(String code, LocalDate fromDate, LocalDate toDate);\n}", "public interface ServerUtilizationService {\r\n\t List<ServerUtilizationBean> getAll(String serviceType);\r\n\t List<ServerUtilizationBean> getServerUtilizationTrend(String dateParm);\r\n}", "@Repository\npublic interface ProductSalesDAL {\n /**\n * Find sales by date range list.\n *\n * @param startDate the start date\n * @param endDate the end date\n * @return the list\n */\n List<ProductSales> findSalesByDateRange(LocalDate startDate, LocalDate endDate, String channelId, String productId);\n}", "public interface PerformancesService {\n void create();\n List<Performances> findAll();\n}", "public interface DailyReportService {\n /**\n * 通过时间获取日报表\n * @param dailyRportQueryDTO\n * @return\n */\n List<DailyReportDO> getDailyReportByTime(DailyRportQueryDTO dailyRportQueryDTO);\n}", "public Statistics(Context context){\n this.context=context;\n dalDynamic=new DalDynamic(context);\n\n\n }", "public interface ChartRepository {\n public List<Map<String, Object>> getItems(String sql);\n public List<Map<String, Object>> getItems(String sql, Date target);\n\n public List<Object> getItemsForSnowCover(String sql);\n public List<Object> getItemsForSnowCover(String sql, Date target);\n}", "public interface BirthdayService {\n\n List<Birthday> getAllBirthdayInfo();\n\n List<Birthday> queryBirthdayInfoByPage(int nowPage, int pageSize);\n\n int queryCount();\n\n}", "public PessoaService(){\n\t\n\t\tApplicationContext context =SpringUtil.getContext();\n\t\tdb = context.getBean(PessoaRepository.class);\n\t\t\n\t}", "public interface AggregateCurrentTimeRepository extends CrudRepository<AggregateEntityCurrentTime, Long> {\n}", "@Repository\npublic interface MeterRepository extends PagingAndSortingRepository<Meter, Long> {\n\n\t@Query(value = \"select m from Meter m where m.place=:place order by m.date asc\")\n\tPage<Meter> findByPlace(@Param(\"place\") Place place, Pageable page);\n\n\t@Query(value = \"select count(m.id) from Meter m where m.place=:place\")\n\tlong countByPlace(@Param(\"place\") Place place);\n\n\n\t@Query(value = \"select max(m) from Meter m where m.place=:place and m.date between :startDate and :endDate\")\n\tMeter findByPlaceAndDate(@Param(\"place\") Place place, @Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate);\n\n\t@Query(value = \"select m from Meter m where m.place=:place order by m.date asc\")\n\tList<Meter> findByPlace(@Param(\"place\") Place place);\n\n\n\n}", "public interface HistoryDataService {\n\n PageInfo<WaterHistoryDto> list(String code, String stationId, String startTime, String endTime, Integer pageSize, Integer pageNum);\n\n}", "@Autowired\r\n\tpublic GsysOperatelogServiceImpl(HibernateDao HibernateDao) {\r\n\t\tsuper(HibernateDao, GsysOperatelog.class);\r\n\t}", "public interface AnalysisService {\n /**\n * 数据对比\n *\n * @param startTime 开始时间\n * @param endTime 结束时间\n * @param orgId 对比的机构id\n * @return\n */\n Object crossDataCompare(Date startTime, Date endTime, List<Integer> orgId);\n\n /**\n * 虎符质检综合报表\n *\n * @param conditions\n * @return\n */\n Page<ReportReturn> reportQualityWeekQuery(AnalyzeConditions conditions);\n /**\n * 102-虎符质检抽查打分表\n *\n * @param conditions\n * @return\n */\n //Page<QualityWeek> reportQualityWeekQuery(AnalyzeConditions conditions);\n\n /**\n * 103-军团策略与分析报告\n *\n * @param conditions\n * @return\n */\n Page<Analyze> reportAnalyzeQuery(AnalyzeConditions conditions);\n\n /**\n * 104-工作量报表\n *\n * @param conditions\n * @return\n */\n Page<WeekReport> reportWeekWorkQuery(AnalyzeConditions conditions);\n\n /**\n * 105策略话术\n *\n * @param conditions\n * @return\n */\n Page<Strategy> reportStrategyWordsQuery(AnalyzeConditions conditions);\n\n\n}", "@Repository(\"exhaustBDataDAO\")\npublic interface ExhaustBDataDAO {\n List<ExhaustBData> queryExhaustBData();\n\n Integer queryKeyStatusNum(@Param(\"key\") String key,@Param(\"status\") String status);\n\n int updateStatusData(SyncExhaustBData exhaustBData);\n\n int insertStatusData(SyncExhaustBData exhaustBData);\n\n SyncExhaustBData queryStatusByKey(@Param(\"key\") String key);\n}", "public interface WorkerJvmStateService {\n\n Boolean insert(WorkerJvmStateInfo jvmMonitorInfo);\n\n List<WorkerJvmStateInfo> getLatestList();\n\n WorkerJvmStateInfo getLatestByWorkerId(Long workerId);\n\n List<WorkerJvmStateInfo> getListByWorkerIdForQuery(@Param(\"workerId\") Long workerId, @Param(\"startTime\") Date startTime, @Param(\"endTime\") Date endTime);\n}", "public interface IStatisticManageService {\n\n\n ServerResponse<Map> getBaseCount();\n\n}", "public interface DataAnalyseService {\n JSONArray getDataOperateTimesInDay(String dataName,String month,String year);\n JSONArray getDataOperateTimesInMonth(String dataName,String year);\n JSONArray getDataOperateTimesInYear(String dataName);\n JSONArray getDataOperateTimesByType(String dataName);\n\n JSONObject getHotData();\n JSONObject getLikeData(String dataName);\n\n JSONObject getUserRecommendData(String userName);\n}", "public interface StatisticsProvider {\n /**\n * Get total sum of transaction value for the time period.\n *\n * @return total sum of transaction value for the time period\n */\n double getSum();\n\n /**\n * Get the highest transaction value in the time period.\n *\n * @return the highest transaction value in the time period\n */\n double getMax();\n\n /**\n * Get the lowest transaction value in the time period.\n *\n * @return the lowest transaction value in the time period\n */\n double getMin();\n\n /**\n * Get total number of transactions happened in the time period.\n *\n * @return total number of transactions happened in the time period\n */\n long getCount();\n}", "public interface IMetricsService {\n\n /**\n * 查询统计指标列表\n * @return\n */\n List<Metrics> queryMetricsList(PageInfo pageInfo);\n\n /**\n * 查询统计指标详情\n * @param metric_id\n * @return\n */\n Metrics queryMetricsDetail(String metric_id);\n\n /**\n * 新增统计指标\n * @param metrics\n * @return\n */\n int addMetrics(Metrics metrics);\n\n /**\n * 修改统计指标\n * @param metrics\n * @return\n */\n int updateMetrics(Metrics metrics);\n\n /**\n * 删除统计指标\n * @param metric_id\n * @return\n */\n int deleteMetricsById(String metric_id);\n\n /**\n * 验证指标类型是否存在\n * @param metric_id\n * @param metric\n * @return\n */\n int validateName(@Param(\"metric_id\") String metric_id, @Param(\"metric\") String metric);\n\n\n}", "public interface ITrafficDao {\r\n\r\n\t/**\r\n\t * Returns a paginated list of incidents according to some filter criteria\r\n\t * @param filter\r\n\t * @param offset\r\n\t * @param pageSize\r\n\t * @return\r\n\t */\r\n\tpublic List<TrafficIncident> getTraffic(Filter filter, int offset, int pageSize);\r\n\t\r\n\t/**\r\n\t * Returns the count of the filtered results (used for pagination)\r\n\t * @param filter\r\n\t * @return\r\n\t */\r\n\tpublic Long getCount(Filter filter);\r\n\t\r\n\t/**\r\n\t * Returns the initial clustering key-value pairs for the overview\r\n\t * @param filter\r\n\t * @return\r\n\t */\r\n\t public List<ParameterValueObject> getClustering(Filter filter);\r\n\t \r\n\t /**\r\n\t * Returns detailed data for a specific entry with Twitter link\r\n\t * @param filter\r\n\t * @return\r\n\t */\r\n\t public TrafficIncident getIncidentById(Filter filter);\r\n}", "public interface MetricDayDao extends BaseDao<MetricDay> {\n List<MetricDay> queryByProjectIdList(Map<String, Object> params);\n\n List<MetricDay> findByProjectIds(List<String> idList);\n\n void insertDataByParentId(Map<String, Object> params);\n\n int deleteByProjectId(Map<String, Object> params);\n\n void batchUpdateByProjectNumAndDate(List<MetricDay> list);\n \n void batchUpdateShopSales(List<BsShopSales> list);\n\n int insertOrUpdateUserMetrics(MetricDay metricDay);\n \n int batchUpdateByMemberAndPotential(String runDate);\n \n List<MetricDay> queryMetricMonthByDate(Map<String, Object> params);\n \n List<MetricDay> queryMetricWeekByDate(Map<String, Object> params);\n \n List<BsShopSales> listShopSalesByDateList(List<String> dates);\n \n}", "@Service\npublic interface LogService {\n\n List<Droplog> getDroplogByID(int traineeid) throws Exception;\n\n List<Exchangelog> getExchangelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getRechargelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getAllRechargelog() throws Exception;\n\n List<Subscribelog> getSubscribelogByID(int traineeid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByID(int traineeid) throws Exception;\n\n List<Subscribelog> getSubscribelogByCourse(int courseid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByCourse(int courseid) throws Exception;\n\n List<Droplog> getDroplogByCourse(int courseid) throws Exception;\n\n List<Settlelog> getSettlelogByinstitutionid(int institutionid) throws Exception;\n}", "public interface DateTrackerRepository extends IRepository<DateTracker,String> {\n Set<DateTracker> getAll();\n}", "public interface LogsService {\n /**\n * 保存日志\n *\n * @param userCustom\n * @param ipAddr\n * @param logAction\n * @param data\n * @param currentTime\n */\n void saveLogs(User userCustom, String ipAddr, String logAction, String data, long currentTime);\n\n /**\n * 获取所有日志\n *\n * @param loginUserId 用户\n * @return\n */\n List<Logs> findAll(String loginUserId, Integer limit);\n\n /**\n * 查询日志统计信息\n * @param uid\n * @return\n */\n List<CountInfoBean> findLogsInfo(String uid);\n\n /**\n * 查询分类统计信息\n * @param uid\n * @return\n */\n List<CountInfoBean> findCategoryInfo(String uid);\n}", "@Override\n\t@Transactional(propagation = Propagation.REQUIRED)\n\tpublic String stats(QualityQuery data) throws Exception {\n\t\treturn metaDataFetchService.stats(data);\n\t}", "public interface ISummaryService {\n int saveSummary(Summary summary);\n Summary getUserSummaryByDate(User user,Date date);\n}", "@Override\n public GitRepoStats getRepoStatistics(String userName, String repoName , String type) throws GitException, RepoUserNotFoundException {\n GitRepoStats openPr=new GitRepoStats();\n try {\n responseCount=0;\n //based on the strategy gets the api url\n StrategyContext createGitApi=new StrategyContext (new GitStatisticsApi());\n String url=createGitApi.createAPI(userName,repoName,type);\n //call recessive the pr api with open status by reading the headers rel value\n processPrdDetails(url,true);\n openPr.setCount(responseCount);\n } catch (HttpClientErrorException hce) {\n LOGGER.error(\"GitApiImpl :: getRepoStatistics HttpClientErrorException :: \", hce);\n throw new GitException(VALID_REPO);\n }\n return openPr;\n }", "public interface IChartService extends CommonService {\n /**\n * @param chartId 图表ID\n * @param requestInfo 图表请求参数\n */\n void save(String chartId, Object requestInfo, Object respInfo);\n\n /**\n * 根据x轴进行分组聚合查询\n *\n * @param tb_id 表ID\n * @param xFid 分组ID\n * @param yFid 查询字段ID\n * @param granularity 分组粒度\n * @param granularity_name\n * @param top\n * @param sort\n * @param s\n * @param toString\n * @param start_time\n * @param isMap\n * @return 返回分组查询的字段的数据集合, 多个字段就是多个集合\n */\n List<List<String>> getGroupArrayList(String tb_id, String xFid, String yFid, String granularity, JSONObject granularity_name, JSONObject top, String sort, String s, String toString, String start_time, boolean isMap);\n\n /**\n * 高级计算百分比\n * @param strings\n * @return\n */\n List<Double> percentage(List<String> strings);\n\n /**\n * 保存chart工具栏\n *\n * @param chartId\n * @param type 工具栏类型\n * @param jsonString json参数\n */\n String saveToolbar(String chartId, String type, String jsonString);\n\n /**\n * 保存chart工具栏\n *\n * @param chartId\n * @param granularity_name 工具栏日期类型自定义名称\n */\n JSONObject queryToolbarGranularity(String chartId, String granularity_name);\n\n /**\n * 筛选器ID\n * @param filterId 筛选器ID\n * @param fid\n */\n String joinTimeSql(String filterId, String fid);\n\n /**\n * 更新工具栏\n *\n * @param chartId 图表ID\n * @param optId 工具栏ID\n * @param type 工具栏类型\n * @param jsonString 工具栏详细参数\n */\n void updaToolbar(String chartId, String optId, String type, String jsonString);\n\n /**\n * 拼接筛选器sql语句\n *\n * @param filterList\n * @return\n */\n String joinFilterSql(JSONArray filterList);\n\n /**\n * 根据图表id获取到图表定义<br />\n * 如果id为空或null,将返回自动生成的图表定义和新的id<br />\n * 如果图表id对应数据不存在,自动生成图表定义<br />\n * @param chartId 图表id\n * @return json,格式如:{chart_id:\"xxxxx\", definition:{具体的图表定义}}\n */\n JSONObject fetchChart(String chartId);\n\n\n /**\n * 更新图表定义.<br />\n * 如果该id的图表不存在,将创建该图表.<br />\n * @param chartId 图表id\n * @param jsonString 图表定义的json string\n */\n void modifyChart(String chartId, String jsonString);\n}", "public interface WeatherForecastService {\n /**\n * query the weather forecast report by cityId\n * @param cityId inner city id\n * @return report\n */\n GeneralWeatherReport queryWeatherReport(String cityId);\n\n}", "public interface AgentAuditService {\r\n\r\n Pagination<TblAgentInfoDo> queryAgentInfoList(Map map,TblAgentInfoDo tblAgentInfoDo) ;\r\n\r\n TblAgentInfoDo queryAgentById(String memberId);\r\n\r\n int auditAgent(String memberId, String errorFields, String remark, String userName,String autid);\r\n\r\n Pagination<Map<String,Object>> queryAgentAuditRecordList(Map<String,String> queryMap);\r\n\r\n List<TblAgentFeeInfoDo> queryAgentFeeById(String memberId);\r\n\r\n TblAgentAuditRecordDo queryAgentAuditReocrdById(String memberId);\r\n\r\n List<TblAgentInfoDo> selectAllAgentInfo();\r\n\r\n\r\n\r\n\r\n}", "@Repository\r\npublic interface SystemRepository {\r\n /**\r\n * 更新老师选择的数量\r\n * @param teacherNumber\r\n */\r\n int updateTeacher(@Param(\"teacherNumber\")int teacherNumber);\r\n\r\n /**\r\n * 更新学生选择的最大数量\r\n * @param studentNumber\r\n */\r\n int updateStudent(@Param(\"studentNumber\")int studentNumber);\r\n\r\n /**\r\n * 添加一个人的打分分数\r\n * @param mark\r\n */\r\n int addMark(@Param(\"mark\")int mark,@Param(\"advice\")String advice);\r\n\r\n /**\r\n * 返回老师最大选择数量\r\n * @return\r\n */\r\n int teacherNumber();\r\n\r\n /**\r\n * 返回学生最大选择数量\r\n * @return\r\n */\r\n int studentNumber();\r\n\r\n /**\r\n * 获取满意度统计\r\n * @return\r\n */\r\n System getMark();\r\n}", "public ReviewerStatisticsManagerImpl() {\n this(DEFAULT_NAMESPACE);\n }", "public interface RollService {\n List<Roll> getAllRoll();\n}", "public interface ProductPaginationDaoImpl {\n List getObjects(IntervalPagination data);\n List getObjects(Interval data);\n Long getCountObjects(IntervalPagination data);\n Object getCountMax(String field);\n Object getCountMin(String field);\n List getFields(String field);\n Long getCountAllObjects();\n}", "public interface TypeTreatmentPlanStatusesService {\n\n /**\n * Save a typeTreatmentPlanStatuses.\n *\n * @param typeTreatmentPlanStatuses the entity to save\n * @return the persisted entity\n */\n TypeTreatmentPlanStatuses save(TypeTreatmentPlanStatuses typeTreatmentPlanStatuses);\n\n /**\n * Get all the typeTreatmentPlanStatuses.\n * \n * @return the list of entities\n */\n List<TypeTreatmentPlanStatuses> findAll();\n\n /**\n * Get the \"id\" typeTreatmentPlanStatuses.\n *\n * @param id the id of the entity\n * @return the entity\n */\n TypeTreatmentPlanStatuses findOne(Long id);\n\n /**\n * Delete the \"id\" typeTreatmentPlanStatuses.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the typeTreatmentPlanStatuses corresponding to the query.\n *\n * @param query the query of the search\n * \n * @return the list of entities\n */\n List<TypeTreatmentPlanStatuses> search(String query);\n}", "public interface SolrService {\n\n /**\n * Save index start.\n *\n * @param userId the user id\n */\n @Transactional\n void saveIndexStart(Long userId);\n\n /**\n * Queue index.\n *\n * @param personTotaraId the person totara id\n */\n @Transactional\n void queueIndex(Long personTotaraId);\n\n /**\n * Reindex search database future.\n *\n * @return the future\n */\n @Timed\n @Async\n Future<Integer> reindexSearchDatabase();\n\n /**\n * Find last index data index data.\n *\n * @return the index data\n */\n @Transactional(readOnly = true)\n IndexData findLastIndexData();\n\n /**\n * Fin last queued data index data.\n *\n * @return the index data\n */\n IndexData finLastQueuedData();\n\n /**\n * Update index.\n *\n * @param indexData the index data\n */\n @Transactional\n void updateIndex(IndexData indexData);\n}", "public interface WaterReportService {\n\n List<WaterReportDto> list(String code, Integer pageSize, Integer pageNum);\n\n List<WaterStation> listStation();\n\n WaterStation getStationInfoByName(String name);\n}", "@Repository\npublic interface UserStoryDao {\n\n boolean saveUserStory(UserStory userStory);\n\n boolean updateUserStory(UserStory userStory);\n\n boolean deleteUserStory(int id);\n \n boolean roseUserStoryTellCount(int id);\n\n UserStory getUserStoryById(int id);\n\n List<UserStory> getAllUserStoryByUserIdByPage(int userId, int visibility, int offset, int limit);\n\n int getUserStoryCountByUserId(int userId, int visibility);\n}", "public interface AnalyzeService {\n\n /*分析唐诗中作者的创作数量*/\n List<AuthorCount> analyzeAuthorCount();\n\n /*词云分析*/\n List<WordCount> analyzeWordCount();\n}", "public interface Statistics {\n\n int getBrowseCount();\n\n int getSalesCount();\n}", "public interface StatRepository extends CrudRepository<Stat, Long> {\n\t//Search function to find stats by percent used in the main controller\n\tList<Stat> findByPercent(int percent);\n}", "public StatisticsController(DatabaseAccess dbAccess) {\n this.dbAccess = dbAccess;\n }", "public interface ProductionReportReadService {\n\n /**\n * 根据id查询生产记录单条\n * @param id 主键 id\n * @return ProductionReport 对象\n */\n Response<ProductionReport> findById(Long id);\n /**\n * @param id 主 键\n * @return 状态\n */\n Response<Map<String, Object>> findStatusById(Long id);\n /**\n * 按状态查询当前养殖场的生产记录列表\n */\n Response<Paging<ProductionReport>> pagingProductionReport(Integer pageNo, Integer pageSize,Integer status,Long breedFactoryId);\n\n /**\n *存栏数合计值(只统计当前养殖场已生效,状态写死)\n */\n Response<Map> sumRestockBreedFactoryId(Long breedFactoryId);\n\n\n /**\n *按从日期、到日期和养殖场名称查询本市养殖场生产记录列表\n */\n Response<Paging<ProductionReport>> pagingProductionReports(Integer pageNo, Integer pageSize, Long breedFactoryId, Integer breedType, Date fromDate, Date toDate);\n\n /**\n * 政府端按物种统计存栏数合计值\n */\n Response<List<Map<String , Object>>>sumSpeciesStatistics(Long breedFactoryId);\n\n /**\n * 政府端按物种统计存栏数合计值\n * @param breedFactoryIds 养殖场ids\n * @return List<Map<String, Object>>\n */\n Response<List<Map<String, Object>>> sumChangeQuantityByAnimalType(List<Long> breedFactoryIds);\n\n /**\n * 按从日期、到日期和养殖场名称查询本市养殖场生产记录列表\n * @param pageNo 页码\n * @param pageSize 每页多少条\n * @param fromDate 从日期\n * @param toDate 到日期\n * @param breedFactoryIds 养殖场ids\n * @return Paging<ProductionReport>\n */\n Response<Paging<ProductionReport>> pagingProductionReportByArea(Integer pageNo, Integer pageSize,Date fromDate, Date toDate,List<Long> breedFactoryIds);\n\n /**\n *根据时间起始 状态 提交未提交 养殖厂查询(web端)\n */\n Response<Paging<ProductionReport>> pagingbytimes (Integer pageNo, Integer pageSize, Map<String,Object> criteria);\n\n /**\n * 根据第三种类 分组求和\n * @return List<Map<String , Object>>\n */\n Response<List<Map<String , Object>>> countSumByThirdType(Long breedFactoryId);\n\n ProductionReport findProductByRelateId(Long relateId);\n}", "@GetMapping(\"/activity\")\n Stats all() {\n Stats stats = new Stats();\n log.info(\"getting daily activity by default\");\n List<Activity> allActivity = repository.findAll();\n log.info(\"allActivity: \" + allActivity);\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n stats.setCategory(StatsCategory.DAILY);\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n return stats;\n }", "public interface TerminalHistoryService\n{\n Iterable<TerminalHistory> listAllTerminalHistory();\n\n TerminalHistory getTerminalHistoryById(Integer id);\n\n TerminalHistory saveTerminalHistory(TerminalHistory location);\n\n void deleteTerminalHistory(Integer id);\n}", "public interface WarehousesHistoryService extends BaseService<WarehousesHistory, Integer> {\n}", "public interface BookAccountRepository {\n\n\t/**\n\t * Number of records needed to be processed.\n\t * \n\t * @return number of found records\n\t */\n\tlong countUnprocessedOrders();\n\n\t\n\tList<BookAccount> findAll();\n\t\n\t/**\n\t * Finds all records where current time \n\t * is later than return time.\n\t * \n\t * @return list of orders\n\t */\n\tList<BookAccount> findAllDebtors();\n\t\n\tvoid addFine(long bookAccountId, double fine);\n\t\n\tBookAccount findById(long orderId);\n\t\n\tvoid processNewOrder(long orderId, String borrowType, Timestamp returnTime);\n\t\n\tvoid deleteOrder(long idOrder);\n\t\n\tvoid createNewOrder(long idAccount, long idBook);\n\t\n\t/**\n\t * Finds all orders for certain account\n\t * \n\t * @param idAccount \n\t * @return list of orders\n\t */\n\tList<BookAccount> findAllForAccount(long idAccount);\n\n}", "public interface WatchService {\n @DataSource(DataSourceType.WRITE)\n public int addWatchForm(WatchForm watchForm);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryLastWatchFormByName(String name);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryWatchFormByOpenId(String openId);\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameWeek(String name);\n\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameMonth(String name);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByNameDay(String name,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdMonth(String openId);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByOpenIdDay(String openId,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdMonth(String openId);\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdMonth();\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdWeek();\n}", "public interface SummaryDao {\n\n public List<String> getBatchCount(String startDate);\n\n public List<String> getBatchCountAll();\n\n public List<CustBatchDetail> getTradedCust(String batchNo);\n\n public boolean saveFundIncomes(List<SyncIncomeStat> list);\n\n public boolean saveTradeRecords(List<SyncTrade> list);\n\n public boolean saveBatchLog(SyncBatchLog batchLog);\n\n public boolean isTaskFinished(String taskName, String date);\n}", "public interface TimeService {\n\n /**\n * Saves a specified entity.\n *\n * @param entity\n * @return the saved entity\n */\n Time save(Time time);\n\n /**\n * Method returns average temperature from database for last hour.\n *\n * @return Long value\n */\n Long getTemperatureForLastHour();\n\n /**\n * Method saves random temperature value every 10 seconds.\n */\n void saveRandom();\n}", "public interface AccountService {\n\n Double getBalanceByDate(Long id, Date date);\n\n List<Account> getAllByUser(String mobileNumber);\n}", "public interface SalaryStatusRepository extends CrudRepository<SalaryStatus, Long> {\n\t@Query(\"SELECT count(*) FROM SalaryStatus ss WHERE ss.year=:year and ss.month=:month\")\n\tint isSalaryGenerated(@Param(\"year\") Integer year, @Param(\"month\") Integer month);\n\t\n\tList<SalaryStatus> findAll();\n\t\n\t \n\n}", "public interface MetricsService {\n Map<Integer, MetricsDto> analyzeBoard(List<Integer> boardList);\n}", "public interface AuditService {\n\n List<Audit> findAll();\n\n}", "@RooJpaRepository(entity = CustomerOrder.class)\n@Transactional(readOnly = true)\npublic interface CustomerOrderRepository extends DetachableJpaRepository<CustomerOrder, Long>, CustomerOrderRepositoryCustom {\n\n /**\n * TODO Auto-generated method documentation\n *\n * @param country\n * @return Long\n */\n public abstract long countByCountry(Country country);\n\n /**\n * TODO Auto-generated method documentation\n *\n * @param shipper\n * @return Long\n */\n public abstract long countByShipper(Shipper shipper);\n\n /**\n * TODO Auto-generated method documentation\n *\n * @param city\n * @return Long\n */\n public abstract long countByCity(City city);\n\n /**\n * TODO Auto-generated method documentation\n *\n * @param region\n * @return Long\n */\n public abstract long countByRegion(Region region);\n\n /**\n * TODO Auto-generated method documentation\n *\n * @param customer\n * @return Long\n */\n public abstract long countByCustomer(Customer customer);\n}", "public interface IncomeService {\n List<Income> getIncomesByPage(Integer page, Integer perPage);\n\n Integer getTotalPage(Integer perPage);\n\n Integer insertIncome(Income income);\n\n Long selectCount();\n}", "public interface ITrainMonitorService {\r\n\r\n //查询称重\r\n public GridModel qryWeightList(TrainWeightEntity weightEntity);\r\n\r\n //查询采样\r\n public GridModel qrySampleList(TrainWeightRptEntity sampleEntity);\r\n\r\n //查询制样结果动态信息\r\n public GridModel qrySampling();\r\n\r\n //提交控制设备命令\r\n public void commitCtrlCmd(CtrlEntity ctrlEntity);\r\n\r\n //今日来煤信息汇总查询\r\n public GridModel qryTodayArrivedCoal();\r\n\r\n //燃料指标\r\n public GridModel qryFuelIndicator();\r\n\r\n //查询今日汽车动态信息\r\n public GridModel qryCarDynamic();\r\n\r\n public GridModel qryTrainOveriew();\r\n\r\n public GridModel qryTrainComeIn();\r\n\r\n public GridModel qryCarDumperList();\r\n}", "public interface TransactionRepository {\n\n Transaction save(Transaction transaction);\n\n void remove(Transaction trx);\n\n void removeByAccount(Account account);\n\n long countTransactions();\n\n long countTransactionsOfAccount(Account account);\n\n List<Transaction> findAll();\n\n List<Transaction> filterAll(TransactionFilter filter);\n\n List<Transaction> findByCategory(Category category);\n\n List<Transaction> findByAccount(Account account);\n\n List<Transaction> findByAccountAndYear(Account account, Integer year);\n\n List<Transaction> findByAccountAndCategory(Account account, Category category);\n\n List<TransactionVolume> getCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n ValueRange<LocalDate> getTransactionOpDateRange();\n\n ValueRange<LocalDate> getTransactionOpDateRangeForYear(Integer year);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccount(Account account);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccountAndYear(Account account, Integer year);\n\n}", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "public interface InsureUnitTrendService {\n\n /**\n * Query insure date list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryInsureDate();\n\n /**\n * Query unit list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryUnit();\n\n /**\n * Query cancel list.\n *\n * @return the list\n */\n List<InsureUnitTrend> queryCancel();\n\n\n}", "@RepositoryRestResource(exported = false)\npublic interface TransactionRepository extends CrudRepository<Transaction, Long> {\n\n Long countByMemberIdAndDateOfReturnIsNull(Long memberId);\n\n Transaction findByBookIdAndDateOfReturnIsNull(Long bookId);\n \n\t@Query(value = \"SELECT member.id AS memberId, member.name, member.email, Count(transaction.member_id) AS bookCount FROM member INNER JOIN transaction ON member.id = transaction.member_id WHERE transaction.date_of_issue >= :startTime AND transaction.date_of_return <= :endTime GROUP BY transaction.member_id ORDER BY bookCount DESC LIMIT 5\", nativeQuery = true)\n\tList<Object[]> getTopMembers(@Param(\"startTime\") LocalDateTime startTime, @Param(\"endTime\") LocalDateTime endTime);\n}", "public interface RenterService {\n List<Renter> getRentersByType(Integer type);\n\n List<Renter> getRentersByPage(Integer offset, Integer perPage);\n\n Long selectCount();\n\n Integer insertRenter(Renter renter);\n\n Integer getTotalPage(Integer perPage);\n}", "public interface HospitalLocationMongoService extends MongoRepository<HospitalLocation,String> {\n}", "public interface AppCarWashService {\n List<CarWash> selectByExample(CarWashExample example);\n\n /**\n * 洗车分页\n * @param map\n * @return\n */\n List<Map<String, Object>> selectCarWashList(Map<String,Object> map);\n\n /**\n * 洗车数统计\n * @param map\n * @return\n */\n List<Map<String, Object>> selectMouthCarWashSum(Map<String,Object> map);\n\n int countByExample(CarWashExample example);\n\n int countByToDay(CarWash record);\n}", "public interface CountTaskService extends Service<CountTask, Integer> {\n\n\n List<CountTaskDto> findList(CountTaskCriteria criteria);\n\n}", "public interface RoleJdbcRepository {\n List<RoleViewDto> searchRoleList();\n\n Long searchRampAreaPageableTotalCount(RoleFilterDto filter);\n\n\n List<RoleViewDto> searchRampAreaPageable(RoleFilterDto filter);\n}", "public interface SysLogService {\n PageHolder<SysLog> listSysLogByPage(String moduleName, String methodName, String userName, String ip, String startDate,\n String endDate, int pageIndex, int pageSize);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DataSetRepository extends MongoRepository<DataSet, String> {\n List<DataSet> findAllByDimensionsContains(Dimension dimension);\n\n List<DataSet> findAllByMeasuresContains(Measure measure);\n}", "public interface FootballerStatsService {\n FootballerStats findByGameWeek_GameWeekNumberAndFootballers_FootballerLastName(Integer gameWeekNumber, String footballerLastName);\n}", "@Resource\npublic interface CreditHistoryRepository {\n\n /**\n * Lookup all of the transactions based on the customer's email.\n *\n * @param email the customer's email\n * @return the customer's history\n */\n Collection lookupTransactions(String email);\n\n /**\n * Lookup all of the transactions based on the customer's email and the reason.\n *\n * @param email the customer's email\n * @param reason the credit decision reason\n * @return the customer's history\n */\n Collection lookupTransactions(String email, String reason);\n\n\n void storeTransaction(String email, CreditTransactionV1 creditTransactionV1);\n\n}", "public interface CounterRepository<T extends Identifiable>{\n\n public Integer getValue(Identifiable entity);\n\n public void save(Identifiable entity, Integer count);\n\n public Map<T, Integer> getAll();\n \n public Map<User, Map<String, Integer>> getUserDiscountMap();\n\n public void setUserDiscountMap(Map<User, Map<String, Integer>> userDiscountMap);\n \n \n}", "public interface StationRepository extends Repository<Station,Long> {\n}", "public interface MeasurementService {\n void saveMeasurement(Measurement measurement);\n\n List<Measurement> findAllMeasurement();\n\n Measurement findById(String id);\n\n\n}", "public interface DailyFightGroupOrderReportService {\n\n /**\n * 返回导出的数据\n * @param startTime\n * @param endTime\n * @return\n */\n List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime);\n}", "public interface MetricsService {\n\n /**\n * Get metrics data\n * @param request\n * @return\n */\n GetMetricsResponse getMetrics(GetMetricsRequest request);\n\n /**\n * Create metrics\n * @param request\n * @return\n */\n CreateMetricsResponse createMetrics(CreateMetricsRequest request);\n}", "@Autowired\n public TarifaMeetingRoomService(TarifaMeetingRoomRepository tarifaMeetingRoomRepository) {\n this.tarifaMeetingRoomRepository = tarifaMeetingRoomRepository;\n }", "@Component\npublic interface CategoryDao {\n\n List<DashboardCategory> getCategoryList();\n\n int save(DashboardCategory dashboardCategory);\n\n long countExistCategoryName(Map<String, Object> map);\n\n int update(DashboardCategory dashboardCategory);\n\n int delete(Long id);\n}" ]
[ "0.63886946", "0.6362171", "0.6359839", "0.6262045", "0.6171075", "0.6143243", "0.6100497", "0.60944927", "0.6084012", "0.6057735", "0.60207266", "0.59951764", "0.5984224", "0.59640443", "0.59638566", "0.59624374", "0.5933587", "0.59223473", "0.59166235", "0.5811911", "0.5798149", "0.5757252", "0.5737204", "0.57253045", "0.57184047", "0.5701257", "0.56787497", "0.5657918", "0.5644234", "0.5644027", "0.563973", "0.5629417", "0.56287575", "0.56267196", "0.5621328", "0.5621234", "0.5606997", "0.56018096", "0.55801743", "0.55794215", "0.5578066", "0.55668813", "0.55586934", "0.5555848", "0.5544604", "0.55396485", "0.5523885", "0.55209994", "0.5515468", "0.5508677", "0.5495897", "0.54884684", "0.54778546", "0.54738826", "0.54712415", "0.5465192", "0.54580706", "0.54478234", "0.5436733", "0.542689", "0.54259926", "0.54217035", "0.5417672", "0.54142445", "0.5414164", "0.5410723", "0.5400811", "0.5399856", "0.53952163", "0.53833294", "0.5382353", "0.53741413", "0.5372227", "0.53717375", "0.5367234", "0.5366115", "0.5363922", "0.53576666", "0.5356265", "0.53524506", "0.5345919", "0.533623", "0.53340745", "0.5332356", "0.53321743", "0.53226966", "0.5320395", "0.53142536", "0.5313977", "0.53136784", "0.5308955", "0.53082484", "0.5306744", "0.5306591", "0.5305143", "0.5304351", "0.5302045", "0.5300781", "0.52979636", "0.5297578" ]
0.56419283
30
Returns fed animals percentage which is between 0 and 1.
Float getFedAnimalsPercentage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPercentageHeated();", "float getPercentHealth();", "java.lang.String getPercentage();", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "@Override\n public double getAlcoholPercent() {\n return (getAlcoholVolume() / getVolume()) * 100.0;\n }", "public double calculateHpPercent();", "public double getFemalePercentage() {\n double numberOfFemales = 0;\n int population = this.getPopulation();\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n if (currentGuppy.getIsFemale()) {\n numberOfFemales++;\n }\n }\n return (population == 0) ? population : numberOfFemales / population;\n }", "float getBonusPercentHP();", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "double greenPercentage();", "double redPercentage();", "private double scorePonderated(int i, int total) {\r\n\t\tif (total == 1) {\r\n\t\t\treturn 100.0;\r\n\t\t}\r\n\t\tdouble score = 100.0 / (2.0 * (i + 1));\r\n\t\treturn score;\r\n\t}", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "int calcPlagiarismPercent() throws ParserException;", "public Double getTotalAnomalyPercentage();", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "public double calculateRatio() {\n \tdouble ratioCalc = new Double(0);\n \tif(this.count_human_dna > 0) {\n \t\tratioCalc = (double) this.count_mutant_dna / this.count_human_dna;\n \t}\n \tthis.setRatio(ratioCalc);\n \treturn ratioCalc;\n }", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }", "boolean hasPercentage();", "public int getPercentage() {\r\n return Percentage;\r\n }", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }", "public double getPercent() { return this.percentage; }", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }", "public double getMainPercentage(){return mainPercentage;}", "public float getPercent() {\n return percent;\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public double getOccupancyPercentage() throws SQLException {\n\t\tdouble result = (double) getOccupancy() / getMaxOccupancy() * 100;\n\t\tresult = Math.round (result * 100.0) / 100.0; \n\t\treturn result;\n\t}", "public abstract double getPercentDead();", "public Double getProgressPercent();", "public static void main(String[] args) {\r\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter number of males and females: \");\r\n\t\tint numOfMales = scan.nextInt();\r\n\t\tint numOfFemales = scan.nextInt();\r\n\t\t\r\n\t\tdouble sumOfClass=numOfMales+numOfFemales;\r\n\t\t\r\n\t\tdouble percentageOfmales = (numOfMales/sumOfClass)*100;\r\n\t\tdouble percentageOffemales = (numOfFemales/sumOfClass)*100;\r\n\t\t\r\n\t\tSystem.out.println(percentageOfmales);\r\n\t\tSystem.out.println(percentageOffemales);\r\n\t\t\r\n\t}", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}", "public int healHealthFraction(double fraction) {\n return heal((int)Math.max(this.getMaxHP()*fraction, 1));\n }", "int getPulsePercentage();", "public float getPositivePercentage() {\n\t\t\n\t\t//Cannot divide by zero\n\t\tif(messageCount == 0) {\n\t\t\t\n\t\t\treturn 0;\n\t\t\t\n\t\t}else {\n\t\t\t\n\t\t\treturn positiveCount/(float)messageCount*100;\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "int getRemainderPercent();", "public static double[] percentage(int[] array){\n\n //The total sum of all the items in the array. Used for finding the percentage.\n double total = 0;\n for(int i = 0; i < array.length; i++){\n total += array[i];\n }\n\n //The array where all the percentages will be stored\n double[] percentage = new double[9];\n\n //For each item in the array, find the percentage and insert into the percentage array\n for(int i = 0; i < array.length; i++){\n percentage[i] = Math.round((array[i] / total)*1000.0)/10.0;\n }\n \n //Checking the first percentage to see the likelihood of fraud.\n //If the percentage is between 29 and 32, then fraud most likely didn't occured.\n //If not, there is a possibility of fraud.\n if(percentage[0] >= 29 && percentage[0] <= 32){\n System.out.println(\"Fraud likely did not occur.\");\n }\n else{\n System.out.println(\"Fraud possibly occured.\");\n }\n\n //Return the percentage array\n return percentage;\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "public double getPercentage() {\n\t\treturn this.percentage;\n\t}", "int getLum(){\n return getPercentageValue(\"lum\");\n }", "public String getWinnerVotePercent(String state) {\r\n result = table.get(state);\r\n String winnerVotePercentage = result.get(2);// getting winner percentage from array list\r\n \r\n return winnerVotePercentage ;\r\n }", "public abstract float calculateFraction(Parallax parallax);", "private double calculateDiscountPercent(Amount discountAmount) {\n Amount runningTotalBeforeDiscount = saleState.getRunningTotal();\n double totalBeforeDiscount = \n runningTotalBeforeDiscount.getAmount().doubleValue();\n double totalDiscount = \n discountAmount.getAmount().doubleValue();\n double totalsQuotient = totalDiscount / totalBeforeDiscount;\n double discountPercent = totalsQuotient * 100;\n return discountPercent;\n }", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "public double mean(){\n return StdStats.mean(percentage);\n }", "public double getHonesty(){\n\t\treturn (this.pct_honest);\n\t}", "public BigDecimal getPercentageProfitPStd();", "double getpercentage() {\n return this.percentage;\n }", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public interface StatisticsService {\n /**\n * Returns fed animals percentage which is between 0 and 1.\n *\n * @return fed animals percentage.\n */\n Float getFedAnimalsPercentage();\n}", "public static Integer getCategoryPercentage(Player p, String cat) {\n\n\t\tint NumberOfAch = 0;\n\t\tint NumberCompleted = 0;\n\n\t\tfor(Achievements ach : Achievements.values()) {\n\t\t\tif(ach.getCategory() == cat) {\n\t\t\t\tNumberOfAch += 1;\n\t\t\t\tif(PlayerConfig.hasAchivement(p, ach))\n\t\t\t\t{\n\t\t\t\t\tNumberCompleted += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint percent = (int)((NumberCompleted * 100.0f) / NumberOfAch);\n\n\t\treturn percent;\n\t}", "double getRatio();", "public void getHitPercent(double hitPer) {\r\n\t\thitPercent = hitPer;\r\n\t}", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public int getQualifyingPercentage() {\n return qualifyingPercentage;\n }", "public float getChance()\n {\n return 1.0f;\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "void spray(double percent)\n {\n roaches = (int) (roaches - (roaches * percent / 100));\n }", "public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }", "private double calcProbability(int index) {\n\t\treturn (double) fitnesses[index] / sumOfFitnesses();\n\t}", "@Override\n\tpublic float discount() {\n\t\treturn 5.0f;\n\t}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }", "public double getAccuracy(){\n return (numOfHits/numOfGuesses);\n }", "public BigDecimal getPercentageProfitPLimit();", "private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }", "public abstract float perimetro();", "public double getSharpeRatio (ArrayList<Double> dailyReturns){\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t for(double item : dailyReturns) {\n\t stats.addValue(item);\n\t }\n\t \n\t double mean1 = stats.getMean();\n\t double std1 = stats.getStandardDeviation();\n\t double sharpeRatio1 = ((mean1 - (.04/252) ) / std1) * Math.sqrt(252);\n\t return Math.round(sharpeRatio1*1000.0)/1000.0;\n\t}", "public double getEfficiencyPercentual()\n\t{\n\t\t//Difference from Jsprit algorithm path cost and transport service provider path cost\n\t\tdouble difference = algBestPathDistance - providerBestPathDistance;\n\t\t\n\t\t//Efficiency percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (1 - difference / providerBestPathDistance));\n\t}", "int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public double[] proportionPercentage(){\n if(!this.pcaDone)this.pca();\n return this.proportionPercentage;\n }", "private String changeToPercentEgg(String value, int AVG){\n String result;\n double d = Double.parseDouble(value);\n double r = (d/AVG)*100;\n result = String.valueOf(round(r));\n return result;\n }", "String calculateAttendancePercentage(int attended, int missing)\n {\n int total = attended + missing;\n\n float percent = ((float)attended / (float)total) * 100;\n\n DecimalFormat df = new DecimalFormat(\"#.#\");\n\n // return as a string\n String returnVal = \"Total Attendance: \\n\" + df.format(percent) + \"%\";\n\n return returnVal;\n }", "public double getTotalCellularityPercentage()\r\n \t{\r\n \t\treturn totalCellularityPercentage;\r\n \t}", "int getLumMod(){\n return getPercentageValue(\"lumMod\");\n }", "public double getPercentageOfAvailabilityMeetingSla() {\n final double totalOfAvailabilitySatisfied = getBrokerList()\n .stream()\n .filter(b -> faultInjection.availability(b) * 100 >= getCustomerMinAvailability(b))\n .count();\n return totalOfAvailabilitySatisfied / getBrokerList().size();\n }", "public double ratioUsersMorePosted75ChirpsOfAveragePerUser() {\n\t\tcheckAuthority();\n\t\ttry {\n\t\t\treturn this.administratorRepository\n\t\t\t\t\t.ratioUsersMorePosted75ChirpsOfAveragePerUser();\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\t}", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "public int attack()\n {\n int percent = Randomizer.nextInt(100) + 1;\n int baseDamage = super.attack();\n if(percent <= 5)\n {\n baseDamage *= 2;\n baseDamage += 50;\n }\n return baseDamage;\n }", "public double getGoodPopulationPercent()\n\t{\n\t\treturn selection.getGoodPopulationPercent();\n\t}", "public String calcWinPercentage(boolean forPlayer) {\n\t\tdouble totalWins = 0;\n\t\t\n\t\tfor(HandStats h : handStats) {\n\t\t\tif(forPlayer) {\n\t\t\t\tif(h.getHandOutcome().equals(\"WIN!!\") || h.getHandOutcome().equals(\"BLACKJACK!!\")) {\n\t\t\t\t\ttotalWins += 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(h.getHandOutcome().equals(\"LOSE!!\") || h.getHandOutcome().equals(\"BUST!!\")) {\n\t\t\t\t\ttotalWins += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t \n\t\treturn (decimalFormat.format((totalWins / handStats.size()) * 100) + \"%\");\t\n\t}", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public String getLoserVotePercent(String state) {\r\n result = table.get(state);\r\n String loserVotePercentage = result.get(3);//getting loser percentage from array list\r\n \r\n \r\n return loserVotePercentage;\r\n }", "public double progress() {\n if (damage <= 0) {\n return damage;\n }\n double n = noise.nextValue();\n damage = damage + (k * damage * damage) + l + n;\n return damage;\n }", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "int getBlue(){\n return getPercentageValue(\"blue\");\n }", "public int getAvgSpec() {\n return totalSpec/totalMatches;\n }", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "@Query(\"select (select count(u) from User u where u.articles is not empty)*1.0/count(u) from User u\")\n\tDouble ratioUsersWithArticle();", "public float calculate_benefits() {\r\n\t\tfloat calculate = 0.0f;\r\n\t\tcalculate = this.getActivity() * this.getAntiquity() + 100;\r\n\t\treturn calculate;\r\n\t}", "@Query(\"select (select count(u) from User u where u.newspapers is not empty)*1.0/count(u) from User u\")\n\tDouble ratioUsersWithNewspaper();" ]
[ "0.7036192", "0.68286943", "0.68047327", "0.6732004", "0.6532172", "0.65271246", "0.6498688", "0.64449483", "0.63907415", "0.63608664", "0.635519", "0.6335402", "0.6324258", "0.632316", "0.6290648", "0.6281613", "0.6265086", "0.625278", "0.62451226", "0.6234192", "0.6223105", "0.62009245", "0.61843216", "0.618062", "0.6171148", "0.6148237", "0.61437756", "0.60910904", "0.60760164", "0.6066635", "0.6065868", "0.60522836", "0.6052222", "0.60421497", "0.60376334", "0.6010197", "0.60097563", "0.5981904", "0.59718037", "0.5938857", "0.5922624", "0.5905616", "0.58995175", "0.5886662", "0.5883672", "0.58815765", "0.58796597", "0.58680713", "0.5854067", "0.5852747", "0.5852498", "0.5842991", "0.58278567", "0.58064014", "0.5799802", "0.57885605", "0.57846737", "0.5774344", "0.57711905", "0.5750561", "0.57489055", "0.57470685", "0.5741662", "0.5707593", "0.569863", "0.5698489", "0.56925064", "0.5689929", "0.5672393", "0.56620586", "0.56572866", "0.5634232", "0.5631299", "0.5629734", "0.56210953", "0.56160235", "0.5614358", "0.5613905", "0.5607362", "0.55928844", "0.5582348", "0.55788696", "0.55687374", "0.5565107", "0.555326", "0.5540731", "0.5538401", "0.5532048", "0.55305123", "0.55235094", "0.55189514", "0.55175877", "0.55109966", "0.5509724", "0.5494581", "0.54928374", "0.54917675", "0.5484934", "0.5482559", "0.5480292" ]
0.8967698
0
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo55254a() {\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}" ]
[ "0.66730285", "0.65698135", "0.6524193", "0.64818907", "0.6477969", "0.6459897", "0.64150065", "0.6378023", "0.62785167", "0.6256323", "0.62391806", "0.6225302", "0.6203955", "0.6196986", "0.6196986", "0.6193411", "0.6188864", "0.6175446", "0.61352557", "0.6129083", "0.6081512", "0.6078478", "0.604346", "0.6027257", "0.6019896", "0.6001062", "0.5969694", "0.5969694", "0.59695363", "0.5950136", "0.5940857", "0.5923273", "0.59109026", "0.5904841", "0.58943695", "0.58871347", "0.5884626", "0.5871665", "0.5857174", "0.58529896", "0.58477926", "0.5827649", "0.58111745", "0.5810771", "0.58093345", "0.58093345", "0.58016413", "0.5792614", "0.57915145", "0.57915145", "0.57915145", "0.57915145", "0.57915145", "0.57915145", "0.579047", "0.5788485", "0.5783461", "0.5783461", "0.57756454", "0.57756454", "0.57756454", "0.57756454", "0.57756454", "0.5762863", "0.57603353", "0.57603353", "0.5751224", "0.5751224", "0.5751224", "0.5751004", "0.573491", "0.573491", "0.573491", "0.572175", "0.5717107", "0.5717079", "0.5717079", "0.5717079", "0.5717079", "0.5717079", "0.5717079", "0.5717079", "0.5716174", "0.5715048", "0.5704484", "0.5700041", "0.5699844", "0.56887585", "0.56792545", "0.5674781", "0.56728446", "0.56702185", "0.5662837", "0.5657697", "0.56568635", "0.56568635", "0.56568635", "0.5656818", "0.5655768", "0.56533396", "0.56532913" ]
0.0
-1
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
ArrayAdapter religionAdapter = ArrayAdapter.createFromResource(this, R.array.religion_list, R.layout.item_spinner); religionAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); mSpinnerReligion.setAdapter(religionAdapter); mCityData.add(" "); mCityData.add("Bekasi"); mCityData.add("Bandung"); mCityData.add("Solo"); mCityData.add("Malang"); mCityData.add("Bali"); mCityData.add("Lombok"); mCityData.add("Aceh"); mCityData.add("Pontianak"); mProvinceData.add(" "); mProvinceData.add("Jawa Barat"); mProvinceData.add("Jawa Timur"); mProvinceData.add("Jawa Tengah"); mProvinceData.add("Jambi"); mProvinceData.add("Kalimantan Timur"); mProvinceData.add("Sulawesi Utara"); ArrayAdapter provinceAdapter = new ArrayAdapter(this, R.layout.item_spinner, android.R.id.text1, mProvinceData); provinceAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); mSpinnerProvince.setAdapter(provinceAdapter); ArrayAdapter cityAdapter = new ArrayAdapter(this, R.layout.item_spinner, android.R.id.text1, mCityData); cityAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); mSpinnerCity.setAdapter(cityAdapter); ArrayAdapter bankAdapter = ArrayAdapter.createFromResource(this, R.array.bank_list, R.layout.item_spinner); bankAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); mSpinnerBank.setAdapter(bankAdapter);
public void initSpinner() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadSpinner(Spinner sp){\n List<String> spinnerArray = new ArrayList<>();\n spinnerArray.add(\"Oui\");\n spinnerArray.add(\"Non\");\n\n// (3) create an adapter from the list\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_spinner_item,\n spinnerArray\n );\n\n//adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n// (4) set the adapter on the spinner\n sp.setAdapter(adapter);\n\n }", "@Override\n\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\t\tif(position!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMyspinner sp = (Myspinner)districtlist.getSelectedItem();\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tencryptedgeoid = new Webservicerequest().Encrypt(sp.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcategory2.addAll(get.getMandi(encryptedgeoid));\t\n\t\t\t\t\t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t\t\t\t \t\t\t\tmandilist.setAdapter(adapter2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tArrayList<HashMap<String,String>> category2=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\t\t\t\tHashMap<String, String> map2=new HashMap<String, String>();\n\t\t\t\t \t\t\t\tmap2.put(\"1\",\"\");\n\t\t\t\t \t\t\t\tmap2.put(\"2\",\"Select Mandi\");\n\t\t\t\t \t\t\t\tcategory2.add(map2);\n\t\t\t\t\t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t\t\t\t \t\t\t\tmandilist.setAdapter(adapter2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "private void assignSpinner(int i, String s) {\n switch (s) {\n case \"Bitters\":\n ArrayAdapter<String> bittersAdapter;\n bittersAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, bitters);\n bittersAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(bittersAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Gin\":\n ArrayAdapter<String> ginAdapter;\n ginAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, gin);\n ginAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(ginAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Rum\":\n ArrayAdapter<String> rumAdapter;\n rumAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, rum);\n rumAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(rumAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Tequila\":\n ArrayAdapter<String> tequilaAdapter;\n tequilaAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, tequila);\n tequilaAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(tequilaAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Vodka\":\n ArrayAdapter<String> vodkaAdapter;\n vodkaAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, vodka);\n vodkaAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(vodkaAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Vermouth\":\n ArrayAdapter<String> vermouthAdapter;\n vermouthAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, vodka);\n vermouthAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(vermouthAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Whiskey\":\n ArrayAdapter<String> whiskeyAdapter;\n whiskeyAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, whiskey);\n whiskeyAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(whiskeyAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n }\n }", "private void setUpSpinner(){\n ArrayAdapter paymentSpinnerAdapter =ArrayAdapter.createFromResource(this,R.array.array_gender_option,android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line, then apply adapter to the spinner\n paymentSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n mPaymentSpinner.setAdapter(paymentSpinnerAdapter);\n\n // To set the spinner to the selected payment method by the user when clicked from cursor adapter.\n if (payMode != null) {\n if (payMode.equalsIgnoreCase(\"COD\")) {\n mPaymentSpinner.setSelection(0);\n } else {\n mPaymentSpinner.setSelection(1);\n }\n mPaymentSpinner.setOnTouchListener(mTouchListener);\n }\n\n mPaymentSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedPayment = (String)parent.getItemAtPosition(position);\n if(!selectedPayment.isEmpty()){\n if(selectedPayment.equals(getString(R.string.payment_cod))){\n mPaymentMode = clientContract.ClientInfo.PAYMENT_COD; // COD = 1\n }else{\n\n mPaymentMode = clientContract.ClientInfo.PAYMENT_ONLINE; // ONLINE = 0\n }\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n }", "@Override\n\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\t\tif(position!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMyspinner sp = (Myspinner)mandilist.getSelectedItem();\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tencryptedgeoid = new Webservicerequest().Encrypt(sp.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcategory3.addAll(get.getretailersList(encryptedgeoid));\t\n\t\t\t\t\t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t\t\t\t \t\t\t\tretailerslist.setAdapter(adapter3);\n\t\t\t\t\t\t\t\tArrayAdapter<String> adaptervillages = new ArrayAdapter<String>(context, android.R.layout.simple_spinner_dropdown_item, get.getVillageNames(encryptedgeoid));\n\t\t\t\t\t\t\t\tvillages.setAdapter(adaptervillages);\n\t\t\t\t\t\t\t\tvillages.setThreshold(3);\n\t\t\t\t\t\t\t\tvillages.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t\t\t public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t\t\t\t\t\t InputMethodManager in = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\t\t\t\t\t in.hideSoftInputFromWindow(villages.getWindowToken(), 0);\n\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tvillages.setAdapter(null);\n\t\t\t\t\t\t\t\tArrayList<HashMap<String, String>> category3=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\t\t\t\tHashMap<String, String> map3=new HashMap<String, String>();\n\t\t\t\t \t\t\t\tmap3.put(\"1\",\"\");\n\t\t\t\t \t\t\t\tmap3.put(\"2\",\"Select Retailer\");\n\t\t\t\t \t\t\t\tcategory3.add(map3);\n\t\t\t\t \t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t\t\t\t \t\t\t\tretailerslist.setAdapter(adapter3); \t\t\t\t \t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "private void initSpinner() {\n\t\tdata1 = new ArrayList<HashMap<String, String>>();\n\t\tdata2 = new ArrayList<HashMap<String, String>>();\n\t\tdata3 = new ArrayList<HashMap<String, String>>();\n\n\t\tadapter1 = new SimpleAdapter(this, data1,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item, from, to);\n\t\tadapter2 = new SimpleAdapter(this, data2,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item, from, to);\n\t\tadapter3 = new SimpleAdapter(this, data3,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item, from, to);\n\n\t\tsp1.setAdapter(adapter1);\n\t\tsp2.setAdapter(adapter2);\n\t\tsp3.setAdapter(adapter3);\n\n\t\tAjaxParams params = new AjaxParams();\n\t\tparams.put(\"op\", \"GetCity\");\n\t\tparams.put(\"levelID\", \"1\");\n\t\tparams.put(\"parentCode\", \"\");\n\t\thttp.get(GlobalVars.url, params, new AjaxCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String t) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onSuccess(t);\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(t);\n\t\t\t\t\tif (jsonObject.getInt(\"result\") == 1) {\n\t\t\t\t\t\tJSONArray array = jsonObject.getJSONArray(\"list\");\n\t\t\t\t\t\tfor (int i = 0; i < array.length(); i++) {\n\t\t\t\t\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\t\t\t\t\tmap.put(\"name\",\n\t\t\t\t\t\t\t\t\tarray.getJSONObject(i).getString(\"name\"));\n\t\t\t\t\t\t\tmap.put(\"code\",\n\t\t\t\t\t\t\t\t\tarray.getJSONObject(i).getString(\"code\"));\n\t\t\t\t\t\t\tdata1.add(map);\n\t\t\t\t\t\t\tif (userInfoPreferences.getString(\"provinceId\", \"\")\n\t\t\t\t\t\t\t\t\t.equals(array.getJSONObject(i).getString(\n\t\t\t\t\t\t\t\t\t\t\t\"code\"))) {\n\t\t\t\t\t\t\t\tdefaultSheng = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tadapter1.notifyDataSetChanged();\n\t\t\t\t\t\tsp1.setSelection(defaultSheng, true);\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable t, int errorNo, String strMsg) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\tTools.showTextToast(context, \"获取省份列表失败,可能是网络问题\");\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n select_nation = String.valueOf(nationarryList.get(i));\n Log.v(\"알림\", \"select_nation\" + select_nation);\n Log.i(TAG, \"Spinner selected item = \"+ select_nation);\n Intent nationintent = new Intent(Register2Activity.this,Story_Activity.class);\n /*nationintent.putExtra(\"it_nation\", select_nation);*/ // 쉐어드 사용 //\n\n\n spinnertext_naion.setText(select_nation);\n\n if(select_nation.equals(\"미국\")){\n nations = \"미국\";\n Log.v(\"알림\", \"nations\" + nations);\n nationi = 1;\n img_nation = (BitmapDrawable)getResources().getDrawable(R.drawable.usaflag);\n\n\n // 미국 국기 사진 가져와서\n // mnation.setImageDrawable(img_nation);// 미국 국기 사진 출력\n } else if(select_nation.equals(\"중국\")){\n nations = \"중국\";\n nationi = 2;\n img_nation = (BitmapDrawable)getResources().getDrawable(R.drawable.chineseflag);\n\n\n\n //중국 국기 사진 가져와서\n // mnation.setImageDrawable(img_nation);// 중국 사진 출력\n } else if(select_nation.equals(\"한국\")){\n nations = \"한국\";\n nationi = 3;\n img_nation = (BitmapDrawable)getResources().getDrawable(R.drawable.koreaflag);\n\n\n\n //한국 국기 사진 가져와서\n // mnation.setImageDrawable(img_nation);// 한국 사진 출력\n } else if(select_nation.equals(\"일본\")){\n nations = \"일본\";\n nationi = 4;\n img_nation = (BitmapDrawable)getResources().getDrawable(R.drawable.japanflag);\n\n\n //일본 국기 사진 가져와서\n // mnation.setImageDrawable(img_nation);// 일본 사진 출력\n\n }\n\n\n\n\n }", "private ArrayAdapter<String> adapterForSpinner(List<String> list)\n {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list)\n {\n @Override\n public boolean isEnabled(int position) {\n return position != 0;\n }\n\n @Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(Color.GRAY);\n }\n else {\n tv.setTextColor(Color.BLACK);\n }\n return view;\n }\n };\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n return dataAdapter;\n }", "private void SpinnerInitialize() {\n try{\n Spinner dropdownto = findViewById(R.id.tonumbercountrycode);\n\n//create an adapter to describe how the items are displayed, adapters are used in several places in android.\n//There are multiple variations of this, but this is the basic variant.\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, countrycodes);\n//set the spinners adapter to the previously created one.\n\n dropdownto.setAdapter(adapter);\n dropdownto.setSelection(0,true);\n\n Spinner dropdownfrom = findViewById(R.id.fromnumbercountrycode);\n\n//create an adapter to describe how the items are displayed, adapters are used in several places in android.\n//There are multiple variations of this, but this is the basic variant.\n // ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, countrycodes);\n//set the spinners adapter to the previously created one.\n\n dropdownfrom.setAdapter(adapter);\n dropdownfrom.setSelection(0,true);\n }\n catch (Exception ex){\n Toast.makeText(InsertDb.this, ex.getMessage().toString(), Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "private void spinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.planets_array, R.layout.simple_spinner_item_new);\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n// dropDownViewTheme.\n planetsSpinner.setAdapter(adapter);\n planetsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Object itemAtPosition = parent.getItemAtPosition(position);\n Log.d(TAG, \"onItemSelected: \" + itemAtPosition);\n\n String[] stringArray = getResources().getStringArray(R.array.planets_array);\n Toast.makeText(DialogListActivity.this, \"选择 \" + stringArray[position], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n Toast.makeText(DialogListActivity.this, \"未选择\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void spinnerFunctions() {\n mTranportSectionAdapter = ArrayAdapter.createFromResource(getContext(), R.array.transport_titles, R.layout.drop_down_spinner_item);\n mTransportSectionSpinner.setAdapter(mTranportSectionAdapter);\n mFuelTypeAdapter = ArrayAdapter.createFromResource(getContext(), R.array.fuel_types, R.layout.drop_down_spinner_item);\n mFuelTypeSpinner.setAdapter(mFuelTypeAdapter);\n mBoxAdapter = ArrayAdapter.createFromResource(getContext(), R.array.box_types, R.layout.drop_down_spinner_item);\n mBoxSpinner.setAdapter(mBoxAdapter);\n }", "private void spinnerAction() {\n Spinner spinnerphonetype = (Spinner) findViewById(R.id.activity_one_phonetype_spinner);//phonetype spinner declaration\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.phone_spinner, android.R.layout.simple_spinner_item); //create the spinner array\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //set the drop down function\n spinnerphonetype.setAdapter(adapter); //set the spinner array\n }", "private void loadSpinnerData() {\n\n // Spinner Drop down elements\n areas = dbHendler.getAllAreas();\n for (Area area : areas) {\n String singleitem = area.get_areaName();\n items.add(singleitem);\n }\n\n // Creating adapter for spinnerArea\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, items);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinnerArea\n spinner.setAdapter(dataAdapter);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_deporte_actualizar);\n helper = new ControlBD(this);\n idNombre = (EditText) findViewById(R.id.nombreDeporte);\n sDeporte = (Spinner) findViewById(R.id.selectDeporte);\n\n lista1 =new ArrayList<>();\n lista1=helper.consultaDeporte();\n ArrayAdapter<String> adaptador1 =new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,lista1);\n adaptador1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n sDeporte.setAdapter(adaptador1);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_page_course);\n\n Spinner mySpinner1 = (Spinner) findViewById(R.id.spinner1);\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<String> myAdapter1 = new ArrayAdapter<String>(PageCourse.this,\n android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.names1));\n myAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mySpinner1.setAdapter(myAdapter1);\n\n Spinner mySpinner2 = (Spinner) findViewById(R.id.spinner2);\n\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<String> myAdapter2 = new ArrayAdapter<String>(PageCourse.this,\n android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.names2));\n myAdapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mySpinner2.setAdapter(myAdapter2);\n\n Spinner mySpinner3 = (Spinner) findViewById(R.id.spinner3);\n\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<String> myAdapter3 = new ArrayAdapter<String>(PageCourse.this,\n android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.names3));\n myAdapter3.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mySpinner3.setAdapter(myAdapter3);\n\n Spinner mySpinner4 = (Spinner) findViewById(R.id.spinner4);\n\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<String> myAdapter4 = new ArrayAdapter<String>(PageCourse.this,\n android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.names4));\n myAdapter4.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mySpinner4.setAdapter(myAdapter4);\n\n mySpinner1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent1, View view1, int position1, long id) {\n\n String s1=((TextView)view1).getText().toString();\n switch(s1) {\n case (\"Level 1\") : // for item 1\n Intent i = new Intent(PageCourse.this,PageQuiz.class);\n startActivity(i);\n break;\n case (\"Level 2\") :\n /*startActivity(new Intent(view.getContext(),PageLogin.class));*/\n break;\n /* you can have any number of case statements */\n default :\n }\n }\n public void onNothingSelected(AdapterView<?> parent1) {\n // TODO Auto-generated method stub\n }\n });\n\n mySpinner2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id) {\n\n String s2=((TextView)view2).getText().toString();\n switch(s2) {\n case (\"Level 4\") : // for item 1\n Intent i = new Intent(PageCourse.this,PageSchedule.class);\n startActivity(i);\n break;\n case (\"Level 5\") :\n /*startActivity(new Intent(view.getContext(),PageLogin.class));*/\n break;\n /* you can have any number of case statements */\n default :\n }\n }\n public void onNothingSelected(AdapterView<?> parent2) {\n // TODO Auto-generated method stub\n }\n });\n /*mySpinner2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n String s=((TextView)view).getText().toString();\n if(s.equals(\"Level 4\"))\n startActivity(new Intent(view.getContext(),PageLogin.class));\n if(s.equals(\"Level 5\"))\n startActivity(new Intent(view.getContext(),PageCourse.class));\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n // TODO Auto-generated method stub\n\n }\n\n\n });*/\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, android.view.View view, int i, long l) {\n continent = continentSpinner.getSelectedItem().toString();\n\n String text = continent.replaceAll(\"\\\\s+\", \"\");\n text = text.toLowerCase();\n\n //creating name of corresponding countrie's xml string array\n String continentName = \"countries_\"+text+\"_array\";\n\n //fetching the list of countries of selected continent and storing it in to an array\n int countriesArrayID= getResources().getIdentifier(continentName , \"array\",AddNewLocation.this.getPackageName());\n String[] items = getResources().getStringArray(countriesArrayID);\n\n //showing list of countries as spinner dropdown items\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, items);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n countrySpinner.setAdapter(spinnerArrayAdapter);\n\n countrySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n country = countrySpinner.getSelectedItem().toString();\n System.out.println(\"selected country = \"+country);\n\n statesSpinner.setOnTouchListener(new AdapterView.OnTouchListener(){\n\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"states\";\n column_to_fetch = \"state\";\n column_to_serach = \"country\";\n value_to_search = new String[]{country};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add State +\");\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n state = statesSpinner.getSelectedItem().toString();\n// System.out.println(\"selected state = \"+state);\n if(state == \"Add State +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New State\");\n builder.setMessage(\"Enter State Name\");\n\n final EditText input_add_new_state = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_state.setLayoutParams(lp);\n builder.setView(input_add_new_state);\n// builder.setIcon(R.drawable.key);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n state = input_add_new_state.getText().toString();\n System.out.println(\"hehe=\"+state);\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(state);\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setSelection(((ArrayAdapter<String>)statesSpinner.getAdapter()).getPosition(state));\n\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n state = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New State\");\n alertDialog.show();\n }\n\n else\n {\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n state = \"\";\n }\n\n });\n\n System.out.println(\"stateeee=\"+state);\n return false;\n }\n });\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n baseService.getPukul(waktus.get(position).getId())\n .enqueue(new Callback<PukulResponse>() {\n @Override\n public void onResponse(Call<PukulResponse> call, Response<PukulResponse> response) {\n if (response.isSuccessful()){\n pukuls.clear();\n spnPukul.clear();\n pukuls = response.body().getPukuls();\n final ArrayAdapter<String> adapter2 = new ArrayAdapter<>(getApplicationContext(), android.R.layout.simple_list_item_1, spnPukul);\n if (!pukuls.isEmpty()){\n spinnerTime.setAdapter(adapter2);\n for (int j = 0; j<pukuls.size(); j++){\n String pkl = pukuls.get(j).getStart() + \" - \" +pukuls.get(j).getEnd();\n spnPukul.add(pkl);\n adapter2.notifyDataSetChanged();\n\n spinnerTime.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n id_pukul = pukuls.get(position).getId();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }\n }\n }\n }\n\n @Override\n public void onFailure(Call<PukulResponse> call, Throwable t) {\n Log.e(\"Error Message\", t.getMessage());\n }\n });\n }", "public void populateSpinner() {\r\n ArrayList<String> ary = new ArrayList<>();\r\n\r\n ary.add(\"Male\");\r\n ary.add(\"Female\");\r\n\r\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item, ary);\r\n\r\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\r\n Gender.setAdapter(adapter);\r\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n ArrayAdapter<String> adapter_state2 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_3, arrayListsize){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state2\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp2.setAdapter(adapter_state2);\n pdia.dismiss();\n\n\n }", "private void initializeSpinner() {\n listClients = appGlobal.listClients;\n listDSRStatuses = appGlobal.listDSRStatuses;\n listLoadingnPoint = appGlobal.listLoadingnPoint;\n listDestinationPoint = appGlobal.listDestinationPoint;\n\n\n if(listClients!=null && listClients.size()>0){\n CompanySelectorAdapter clientCompAdapter = new CompanySelectorAdapter(getActivity(), listClients);\n spinnerListClientComp.setAdapter(clientCompAdapter);\n clientCompAdapter.notifyDataSetChanged();\n }\n else {\n loadClientsList();\n }\n if(listDSRStatuses!=null && listDSRStatuses.size()>0){\n // Remove all value from list\n for (DSRStatusModel model :listDSRStatuses) {\n if(Integer.parseInt(model.dsrStatusID.trim())== -1) {\n listDSRStatuses.remove(model);\n }\n }\n DSRStatusSpinnerAdapter dsrStatusAdapter = new DSRStatusSpinnerAdapter(getActivity(), listDSRStatuses);\n spinnerListStatusDSR.setAdapter(dsrStatusAdapter);\n dsrStatusAdapter.notifyDataSetChanged();\n }else {\n loadDSRStatusList();\n }\n if(listLoadingnPoint!=null && listLoadingnPoint.size()>0) {\n LocationPointAdapter loadingPointAdapter = new LocationPointAdapter(getActivity(), listLoadingnPoint);\n //spinnerListLoadingPoint.setAdapter(loadingPointAdapter);\n autocompleteTVLoadingPoint.setAdapter(loadingPointAdapter);\n loadingPointAdapter.notifyDataSetChanged();\n }\n else {\n loadLoadingPointList();\n }\n if(listDestinationPoint!=null && listDestinationPoint.size()>0) {\n LocationPointAdapter destinationPointAdapter = new LocationPointAdapter(getActivity(), listDestinationPoint);\n //spinnerListDestinationPoint.setAdapter(destinationPointAdapter);\n autocompleteTVDestinationPoint.setAdapter(destinationPointAdapter);\n destinationPointAdapter.notifyDataSetChanged();\n }\n else {\n loadDestinationPointList();\n }\n loadCustomsPoints();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if(s1.getSelectedItem().toString().equals(\"3rd Sem\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, MainActivity.sem3);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n if(s1.getSelectedItem().toString().equals(\"4th Sem\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item,MainActivity.sem4);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n if(s1.getSelectedItem().toString().equals(\"5th Sem\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item,MainActivity.sem5);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n if(s1.getSelectedItem().toString().equals(\"6th Sem\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item,MainActivity.sem6);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n if(s1.getSelectedItem().toString().equals(\"7th Sem\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, MainActivity.sem7);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n if(s1.getSelectedItem().toString().equals(\"8th Sem\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item,MainActivity.sem8);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n if(s1.getSelectedItem().toString().equals(\"Select The Semester...\")) {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter.notifyDataSetChanged();\n s2.setAdapter(dataAdapter);\n }\n }", "private void loadSpinnerData() {\n List<String> patientList = db.getAllPatient();\n\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, patientList);\n\n // Drop down layout style - list view with radio button\n dataAdapter\n .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinner\n patientIdSpn.setAdapter(dataAdapter);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n quanHuyens = sqLite_quanHuyen.getDSQH(arrTinhTP.get(position).getId());\n adapterRecyclerViewChonQuan = new AdapterRecyclerViewChonQuan(quanHuyens, getApplicationContext());\n recycleQH.setAdapter(adapterRecyclerViewChonQuan);\n\n //spinnerQuanHuyen_adapter = new SpinnerQuanHuyen_Adapter(getApplicationContext(), arrQuanHuyen);\n //spinnerQuanHuyen_adapter.notifyDataSetChanged();\n //spinnerQuanHuyen.setAdapter(spinnerQuanHuyen_adapter);\n\n }", "private void carregarDadosSpinner() {\n String[] categorias = getResources().getStringArray(R.array.categorias);\n //adicionar valores do spinner\n ArrayAdapter<String> adapterCategorias = new ArrayAdapter<String>(\n getApplicationContext(), android.R.layout.simple_spinner_item,\n categorias\n );\n adapterCategorias.setDropDownViewResource(android.R.layout\n .simple_spinner_dropdown_item);\n campoCategorias.setAdapter(adapterCategorias);\n\n }", "private void updateSpinner() {\n ArrayAdapter<CharSequence> adaptador = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item,nombresEnComboBox);\n spinner.setAdapter(adaptador);\n //guardo el item seleccionado del combo\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n nombreDeLocSeleccionada[0] = (String) spinner.getAdapter().getItem(i);\n for (int j=0 ; j < listaLocalidades.size() ; j++){\n if (listaLocalidades.get(j).getNombreLocalidad().equals(nombreDeLocSeleccionada[0])) {\n idLoc = listaLocalidades.get(j).getIdLocalidad() ;\n break;\n }\n }\n //Toast.makeText(getActivity(), nombreDeLocSeleccionada[0], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "public void getReligion(final Spinner st, final String Rcode){\n Toast.makeText(getApplicationContext(),\"input code \"+Rcode,Toast.LENGTH_SHORT).show();\n if(!Rcode.equals(\"0\")){\n//\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetReligionListURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"religion\");\n int jarraylength=jArray.length()+1;\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()),Toast.LENGTH_SHORT).show();\n\n for (int i = 0; i < jarraylength; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n String cid = json_data.getString(\"id\");\n String sname = json_data.getString(\"caste\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"caste\");\n c1[i]=cid;\n c3[i]=sname;\n\n\n religioncode1.add(cid);\n religionname1.add(sname);\n }\n// c1[i]=cid;\n// c3[i]=sname;\n\n// statecodename=c3;\n// statecodeid=c1;\n\n\n } catch (Exception e) {\n }\n\n religionname1.add(0,\"Select Caste\");\n religioncode1.add(0,\"0\");\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,religionname1);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n st.setAdapter(spinnerAdapter);\n st.setSelection(0);\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"cid\", String.valueOf(Rcode));\n// Log.e(\"country code send\",countrycode);\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }\n else{\n//\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetReligionListURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"religion\");\n int jarraylength=jArray.length()+1;\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()),Toast.LENGTH_SHORT).show();\n\n for (int i = 0; i < jarraylength; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n String cid = json_data.getString(\"id\");\n String sname = json_data.getString(\"caste\");\n Log.e(sname, \"religion\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"relition code\");\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"caste\");\n c1[i]=cid;\n c3[i]=sname;\n\n\n religioncode2.add(cid);\n religionname2.add(sname);\n }\n// c1[i]=cid;\n// c3[i]=sname;\n\n// statecodename=c3;\n// statecodeid=c1;\n\n\n } catch (Exception e) {\n }\n Toast.makeText(getApplicationContext(),String.valueOf(Arrays.asList(religionname2)),Toast.LENGTH_LONG).show();\n religionname2.add(0,\"Select Religion\");\n religioncode2.add(0,\"0\");\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,religionname2);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n st.setAdapter(spinnerAdapter);\n st.setSelection(0);\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"cid\", String.valueOf(Rcode));\n// Log.e(\"country code send\",countrycode);\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }\n\n }", "private void povoarSpinners() {\n List<String> lista = new ArrayList<>();\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[0]);\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[1]);\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[2]);\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, lista);\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n spnNivel.setAdapter(arrayAdapter);\n lista = new ArrayList<>();\n lista.add(UsuarioEstadoConstantes.VETOR_DESCRICOES[0]);\n lista.add(UsuarioEstadoConstantes.VETOR_DESCRICOES[1]);\n arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, lista);\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n spnEstado.setAdapter(arrayAdapter);\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n ArrayAdapter<String> adapter_state1 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_2, arrayListtype){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state1\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp1.setAdapter(adapter_state1);\n pdia.dismiss();\n\n }", "public void getUniversityCode(final Spinner qualifi){\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetUniversityURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"qualif\");\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()+1),Toast.LENGTH_SHORT).show();\n int jarraylength=jArray.length()+1;\n\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n String sname,cid;\n for (int i = 0; i <jarraylength+1; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"university\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n c1[i]=cid;\n c3[i]=sname;\n // Log.e(\"list sizzeeeee\",String.valueOf(countrycodename.size()+1));\n university2.add(i,sname);\n\n\n\n\n }\n\n\n } catch (Exception e) {\n }\n university2.add(0,\"Select University\");\n// countrycodid.add(0,\"0\");\n\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,university2);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n qualifi.setAdapter(spinnerAdapter);\n qualifi.setSelection(0);\n // Toast.makeText(getApplicationContext(),\" country code size \"+String.valueOf(Arrays.asList(countrycodid.size())),Toast.LENGTH_SHORT).show();\n\n // Toast.makeText(getApplicationContext(),\"country string array count \"+countrycodename.length,Toast.LENGTH_SHORT).show();\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }", "private void classes() {\n List<String> list = new ArrayList<>();\n list.add(\"Mont.\");\n list.add(\"Nur\");\n list.add(\"KG 1\");\n list.add(\"KG 2\");\n list.add(\"Class 1\");\n list.add(\"Class 2\");\n list.add(\"Class 3\");\n list.add(\"Class 4\");\n list.add(\"Class 5\");\n list.add(\"Class 6\");\n list.add(\"Class 7\");\n list.add(\"Class 8\");\n list.add(\"Class 9\");\n list.add(\"Class 10\");\n\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n cls.setAdapter(dataAdapter);\n }", "public void getCountries() {\n\n\n SimpleProgressBar.showProgress(AddressesActivity.this);\n try {\n final String url = Contents.baseURL + \"getAllCountries\";\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n SimpleProgressBar.closeProgress();\n Log.e(\"device response\", response);\n try {\n JSONObject object = new JSONObject(response);\n String status = object.getString(\"status\");\n String message = object.getString(\"message\");\n if (status.equals(\"1\")) {\n\n country_name = new ArrayList<String>();\n iso_name = new ArrayList<String>();\n JSONArray jsonArray = object.getJSONArray(\"record\");\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject c = jsonArray.getJSONObject(i);\n if (session.getKeyLang().equals(\"Arabic\")) {\n country_name.add(c.getString(\"name_arabic\"));\n } else {\n country_name.add(c.getString(\"name\"));\n }\n iso_name.add(c.getString(\"iso\"));\n }\n\n //Creating the ArrayAdapter instance having the country list\n ArrayAdapter aa = new ArrayAdapter(AddressesActivity.this, android.R.layout.simple_spinner_item, country_name);\n aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spin_country.setAdapter(aa);\n\n spin_country.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n System.out.println(\"OSO NAME===\" + iso_name.get(position));\n getProvinces(iso_name.get(position));\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n for (int i = 0; i < iso_name.size(); i++) {\n if (iso_name.get(i).contains(\"KW\")) {\n position = i;\n //mDob=iso_name.get(position);\n break;\n }\n }\n\n spin_country.setSelection(position);\n\n } else {\n\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n SimpleProgressBar.closeProgress();\n }\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (error != null && error.networkResponse != null) {\n Toast.makeText(getApplicationContext(), R.string.server_error, Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(getApplicationContext(), R.string.no_internet, Toast.LENGTH_SHORT).show();\n }\n SimpleProgressBar.closeProgress();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"appUser\", \"tefsal\");\n params.put(\"appSecret\", \"tefsal@123\");\n params.put(\"appVersion\", \"1.1\");\n\n Log.e(\"Refsal device == \", url + params);\n\n return params;\n }\n\n };\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(30000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n RequestQueue requestQueue = Volley.newRequestQueue(AddressesActivity.this);\n stringRequest.setShouldCache(false);\n requestQueue.add(stringRequest);\n\n } catch (Exception surError) {\n surError.printStackTrace();\n }\n }", "private void loadSpinnerData() {\n rows = db.getPumpDetails();\n\n // Creating adapter for spinner\n dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, rows);\n\n // Drop down layout style - list view with radio button\n dataAdapter\n .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinner\n spinner.setAdapter(dataAdapter);\n }", "private void initSpinnerTypeExam()\n {\n Spinner spinner = findViewById(R.id.iTypeExam);\n\n // Adapt\n final ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this,\n R.layout.support_simple_spinner_dropdown_item\n );\n spinner.setAdapter(adapter);\n\n // ajout des types d'examens\n for(TypeExamen t : TypeExamen.values())\n {\n adapter.add(t.toString());\n }\n }", "private void loadAutoCompleteData() {\n List<String> labelsItemName = db.getAllItemsNames();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsItemName);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchItem.setAdapter(dataAdapter);\n\n // List - Get Menu Code\n List<String> labelsMenuCode = db.getAllMenuCodes();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter1 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsMenuCode);\n\n // Drop down layout style - list view with radio button\n dataAdapter1.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchMenuCode.setAdapter(dataAdapter1);\n\n POS_LIST = ArrayAdapter.createFromResource(this, R.array.poscode, android.R.layout.simple_spinner_item);\n spnr_pos.setAdapter(POS_LIST);\n\n // barcode\n List<String> labelsBarCode = db.getAllBarCodes();\n ArrayAdapter<String> dataAdapter11 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsBarCode);\n dataAdapter11.setDropDownViewResource(android.R.layout.simple_list_item_1);\n autoCompleteTextViewSearchItemBarcode.setAdapter(dataAdapter11);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n\n try{\n String s = \"\";\n Log.e(\"mytag\",\"(String) parent.getItemAtPosition(position):\"+(String) parent.getItemAtPosition(position).toString().trim());\n if (parent.getItemAtPosition(position).toString().trim().equals(\"בחר\")){\n s = \"-1\";\n }else{\n s = String.valueOf(ctype_map.get(parent.getItemAtPosition(position).toString().trim()).getCtypeID());\n }\n setCcustomerSpinner(s);\n }catch(Exception e){\n helper.LogPrintExStackTrace(e);\n }\n Log.e(\"mytag\", (String) parent.getItemAtPosition(position));\n //statusID = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusID();\n //statusName = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusName();\n //Toast.makeText(getApplication(), \"status: \" + s, Toast.LENGTH_LONG).show();\n //Log.v(\"item\", (String) parent.getItemAtPosition(position));\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n nearest_city = input_add_new_nearest_city.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(nearest_city);\n\n ArrayAdapter<String> spinnerArrayAdapterNearestCity = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterNearestCity.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n spinnerNearestCities.setAdapter(spinnerArrayAdapterNearestCity);\n\n spinnerNearestCities.setSelection(((ArrayAdapter<String>)spinnerNearestCities.getAdapter()).getPosition(nearest_city));\n }", "public void addItemsOnSpinner() {\n Data dataset = new Data(getApplicationContext());\n List<String> list = new ArrayList<String>();\n list = dataset.getClasses();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(dataAdapter);\n }", "private void loadSpinnerProvincias() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(\n this, R.array.provincias, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spProvincias.setAdapter(adapter);\n\n // This activity implements the AdapterView.OnItemSelectedListener\n this.spProvincias.setOnItemSelectedListener(this);\n this.spLocalidades.setOnItemSelectedListener(this);\n\n }", "private void setUpSpinners(){\n spinners = new Spinner[spinnerId.length];\n for(int i = 0; i < spinners.length; i++){\n spinners[i] = (Spinner) findViewById(spinnerId[i]);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.instruction_qty, R.layout.spinner_item_inst);\n adapter.setDropDownViewResource(R.layout.spinner_list_dropdown_inst);\n spinners[i].setAdapter(adapter);\n spinners[i].setBackgroundColor(Color.WHITE);\n }\n }", "public void addItemsOnSpinner2() {\n\n spinner2 = (Spinner) findViewById(R.id.spinner2);\n List<String> list = new ArrayList<String>();\n list.add(\"list 1\");\n list.add(\"list 2\");\n list.add(\"list 3\");\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner2.setAdapter(dataAdapter);\n }", "private ArrayAdapter<String> getAdapter(ArrayList<String> arr) {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this, R.layout.support_simple_spinner_dropdown_item, arr);\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n\n return adapter;\n }", "@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> parent, View v, int position,long id) {\n\t\t\t\t\tselectedStateName = parent.getItemAtPosition(position).toString();\n\t\t\t\t\tObject[] stateparmas;\n\t\t\t\t\t// checks for the selected value of item is not null\n\t\t\t\t\tif(selectedStateName!=null){\n\t\t\t\t\t\t// array of selected state name of type Object\n\t\t\t\t\t\tstateparmas = new Object[]{selectedStateName};\n\t\t\t\t\t\t// call the getCities method to get all related cities of given selected state name \n\t\t\t\t\t\tObject[] CityList = startup.getCities(stateparmas);\n\t\t\t\t\t\tList<String> citylist = new ArrayList<String>();\n\t\t \n\t\t\t\t\t\t// for loop to iterate list of city name and add to list\n\t\t\t\t\t\tfor(Object st : CityList)\n\t\t\t\t\t\t\tcitylist.add((String) st);\n\t\t\t\t\t\t\t\tif(editDetailsflag==false){\n\t\t\t\t\t\t\t\t\t// creating array adaptor to take list of city \n\t\t\t\t\t\t\t\t\tdataAdapter1 = new ArrayAdapter<String>(context,\n\t\t\t\t\t\t\t\t\t\t\tandroid.R.layout.simple_spinner_item, citylist);\n\t\t\t\t\t\t\t\t\t// set resource layout of spinner to that adaptor\n\t\t\t\t\t\t\t\t\tdataAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t\t\t\t\t\t\t\t// set Adaptor contain cities list to spinner \n\t\t\t\t\t\t\t\t\tgetcity.setAdapter(dataAdapter1);\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tString city = detailsList_foredit.get(4).trim();\n\t\t\t\t\t\t\t\t\tdataAdapter1 = new ArrayAdapter<String>(context,\n\t\t\t\t\t\t\t\t\t\t\tandroid.R.layout.simple_spinner_item, citylist);\n\t\t\t\t\t\t\t\t\tdataAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t \n\t\t\t\t\t\t\t\t\t//System.out.println(\"city name\"+dataAdapter1.getItem(2).trim().);\n\t\t\t\t\t\t\t\t\tint pos = dataAdapter1.getPosition(city);\n\t\t\t\t\t\t\t\t\tgetcity.setAdapter(dataAdapter1);\n\t\t\t\t\t\t\t\t\tgetcity.setSelection(pos);\n\t\t \n\t\t \n\t\t\t\t\t\t\t\t}\n\t\t \n\t\t\t\t\t}// End of if condition\n\t\t\t\t}", "private void updateSpinners()\n {\n\n ownersDropDown =(Spinner)findViewById(R.id.ownerSpinner);\n dogsDropDown = (Spinner)findViewById(R.id.dogSpinner);\n\n ownerNames = new ArrayList<String>();\n ownerID = new ArrayList<String>();\n\n dogNames = new ArrayList<String>();\n dogID = new ArrayList<String>();\n\n // -----------\n // HUMAN REQUEST\n // -----------\n\n mOkHttpClient = new OkHttpClient();\n\n HttpUrl reqURL = HttpUrl.parse(\"https://final-project-saldanaj.appspot.com/humans\");\n\n Request request = new Request.Builder()\n .url(reqURL)\n .build();\n\n mOkHttpClient.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e)\n {\n e.printStackTrace();\n } // end of the onFailure() function\n\n @Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r = response.body().string();\n\n try\n {\n JSONArray j = new JSONArray(r);\n\n for(int i = 0; i < j.length(); i++)\n {\n /*\n HashMap<String, String> ownersHashMap = new HashMap<String, String>();\n ownersHashMap.put(\"name\", j.getJSONObject(i).getString(\"name\"));\n ownersHashMap.put(\"human_id\", j.getJSONObject(i).getString(\"human_id\"));\n ownerPosts.add(ownersHashMap);\n */\n\n ownerNames.add(j.getJSONObject(i).getString(\"name\"));\n ownerID.add(j.getJSONObject(i).getString(\"human_id\"));\n }\n\n adapter = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, ownerNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n ownersDropDown.setAdapter(adapter);\n }\n\n\n }); // end of runOnUIThread() callback\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n } // end of the onResponse() function\n\n }); // end of newCall.enqueue() function callback\n\n\n /*\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_spinner_dropdown_item,\n ownerNames);\n */\n\n\n // -----------\n // DOG REQUEST\n // -----------\n\n mOkHttpClient = new OkHttpClient();\n\n HttpUrl reqURL2 = HttpUrl.parse(\"https://final-project-saldanaj.appspot.com/dogs\");\n\n Request request2 = new Request.Builder()\n .url(reqURL2)\n .build();\n\n mOkHttpClient.newCall(request2).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e)\n {\n e.printStackTrace();\n } // end of the onFailure() function\n\n @Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r2 = response.body().string();\n\n try\n {\n JSONArray j2 = new JSONArray(r2);\n\n\n for(int i = 0; i < j2.length(); i++)\n {\n /*\n HashMap<String, String> dogsHashMap = new HashMap<String, String>();\n dogsHashMap.put(\"name\", j2.getJSONObject(i).getString(\"name\"));\n dogsHashMap.put(\"dog_id\", j2.getJSONObject(i).getString(\"dog_id\"));\n dogPosts.add(dogsHashMap);\n */\n\n dogNames.add(j2.getJSONObject(i).getString(\"name\"));\n dogID.add(j2.getJSONObject(i).getString(\"dog_id\"));\n\n }\n\n adapter2 = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, dogNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n dogsDropDown.setAdapter(adapter2);\n }\n\n });\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n\n } // end of the onResponse() function\n\n });\n\n }", "void setupSpinner() {\n\n Spinner spinner = (Spinner) findViewById(R.id.language_spinner);\n\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.language_array, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(adapter);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> arg1, View arg2, int position1, long id1) {\n\n crechCity = getResources().getStringArray(R.array.city_list)[position1];\n\n }", "@Override\r\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n int countrySpinnerPosition = spinnerCountry.getSelectedItemPosition();\r\n switch (countrySpinnerPosition){\r\n case 0: //1st item of 1st spinner selected\r\n //fill data for second spinner\r\n fillAyyalurDivision();\r\n break;\r\n case 1: //second spinner item position\r\n fillBatlagunduDivision();\r\n break;\r\n case 2:\r\n fillBodiDivision();\r\n\r\n break;\r\n case 3:\r\n fillChinnamanurDivision();\r\n\r\n break;\r\n case 4:\r\n fillCumbamDivision();\r\n\r\n break;\r\n case 5:\r\n fillDevakottaiDivision();\r\n break;\r\n case 6:\r\n fillDharapuramDivision();\r\n break;\r\n case 7:\r\n fillDindigulDivision();\r\n\r\n break; case 8:\r\n fillGopalpattiDivision();\r\n\r\n break;\r\n case 9:\r\n fillGujiliyamparaiDivision();\r\n\r\n break;\r\n case 10:\r\n fillKaraikudi();\r\n break;\r\n case 11:\r\n fillNatham();\r\n\r\n break;\r\n case 12:\r\n fillNilakottai();\r\n break;\r\n case 13:\r\n fillOttanchathram();\r\n break;\r\n case 14:\r\n fillPalani();\r\n break;\r\n case 15:\r\n fillPeriyakulam();\r\n break;\r\n case 16:\r\n fillSinganampuneri();\r\n break;\r\n case 17:\r\n fillTheni();\r\n break;\r\n case 18:\r\n fillThirupathur();\r\n break;\r\n case 19:\r\n fillUsilampatti();\r\n break;\r\n }}", "public void addItemsOnSpinner() {\r\n\r\n\tspinner = (Spinner) findViewById(R.id.spinner);\r\n\tList<String> list = new ArrayList<String>();\r\n\tlist.add(\"Food\");\r\n\tlist.add(\"RentHouse\");\r\n\tlist.add(\"Closing\");\r\n\tlist.add(\"Party\");\r\n\tlist.add(\"Material\");\r\n\tArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, list);\r\n\tdataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n\tspinner.setAdapter(dataAdapter);\r\n }", "private void setUpLgaSpinner(List<String> lgas) {\n\n ArrayAdapter lgaAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, lgas);\n lgaAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n lgaAdapter.notifyDataSetChanged();\n mLgaSpinner.setAdapter(lgaAdapter);\n\n mLgaSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long l) {\n mLga = (String) parent.getItemAtPosition(position);\n// Toast.makeText(ProductsActivity.this, \"state: \" + mState + \" lga: \" + mLga, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n }\n });\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tswitch (parent.getId()) {\n\t\tcase R.id.sp_1:\n\t\t\tprovinceCode = data1.get(position).get(\"code\");\n\t\t\tdata2.clear();\n\t\t\tadapter2.notifyDataSetChanged();\n\t\t\t{\n\t\t\t\tAjaxParams params = new AjaxParams();\n\t\t\t\tparams.put(\"op\", \"GetCity\");\n\t\t\t\tparams.put(\"levelID\", \"2\");\n\t\t\t\tparams.put(\"parentCode\", provinceCode);\n\t\t\t\thttp.get(GlobalVars.url, params, new AjaxCallBack<String>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String t) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject jsonObject = new JSONObject(t);\n\t\t\t\t\t\t\tif (jsonObject.getInt(\"result\") == 1) {\n\t\t\t\t\t\t\t\tJSONArray array = jsonObject\n\t\t\t\t\t\t\t\t\t\t.getJSONArray(\"list\");\n\t\t\t\t\t\t\t\tfor (int i = 0; i < array.length(); i++) {\n\t\t\t\t\t\t\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\t\t\t\t\t\t\tmap.put(\"name\", array.getJSONObject(i)\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"name\"));\n\t\t\t\t\t\t\t\t\tmap.put(\"code\", array.getJSONObject(i)\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"code\"));\n\t\t\t\t\t\t\t\t\tdata2.add(map);\n\t\t\t\t\t\t\t\t\tif (userInfoPreferences.getString(\"cityId\",\n\t\t\t\t\t\t\t\t\t\t\t\"\").equals(\n\t\t\t\t\t\t\t\t\t\t\tarray.getJSONObject(i).getString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"code\"))) {\n\t\t\t\t\t\t\t\t\t\tdefaultShi = i;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tadapter2.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tsp2.setSelection(defaultShi, true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable t, int errorNo,\n\t\t\t\t\t\t\tString strMsg) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\t\t\tTools.showTextToast(context, \"获取城市列表失败,可能是网络问题\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase R.id.sp_2:\n\t\t\tcityCode = data2.get(position).get(\"code\");\n\t\t\tdata3.clear();\n\t\t\tadapter3.notifyDataSetChanged();\n\t\t\t{\n\t\t\t\tAjaxParams params = new AjaxParams();\n\t\t\t\tparams.put(\"op\", \"GetCity\");\n\t\t\t\tparams.put(\"levelID\", \"3\");\n\t\t\t\tparams.put(\"parentCode\", cityCode);\n\t\t\t\thttp.get(GlobalVars.url, params, new AjaxCallBack<String>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String t) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject jsonObject = new JSONObject(t);\n\t\t\t\t\t\t\tif (jsonObject.getInt(\"result\") == 1) {\n\t\t\t\t\t\t\t\tJSONArray array = jsonObject\n\t\t\t\t\t\t\t\t\t\t.getJSONArray(\"list\");\n\t\t\t\t\t\t\t\tfor (int i = 0; i < array.length(); i++) {\n\t\t\t\t\t\t\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\t\t\t\t\t\t\tmap.put(\"name\", array.getJSONObject(i)\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"name\"));\n\t\t\t\t\t\t\t\t\tmap.put(\"code\", array.getJSONObject(i)\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"code\"));\n\t\t\t\t\t\t\t\t\tdata3.add(map);\n\t\t\t\t\t\t\t\t\tif (userInfoPreferences.getString(\"areaId\",\n\t\t\t\t\t\t\t\t\t\t\t\"\").equals(\n\t\t\t\t\t\t\t\t\t\t\tarray.getJSONObject(i).getString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"code\"))) {\n\t\t\t\t\t\t\t\t\t\tdefaultXian = i;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tadapter3.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tsp3.setSelection(defaultXian, true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable t, int errorNo,\n\t\t\t\t\t\t\tString strMsg) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\t\t\tTools.showTextToast(context, \"获取县级列表失败,可能是网络问题\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase R.id.sp_3:\n\t\t\tareaCode = data3.get(position).get(\"code\");\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private void itemtypeSpinner() {\n ArrayAdapter<CharSequence> staticAdapter = ArrayAdapter\n .createFromResource(getContext(), R.array.select_array,\n android.R.layout.simple_spinner_item);\n\n // Specify the layout to use when the list of choices appears\n staticAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Apply the adapter to the spinner\n mItemTypeSpinnerA2.setAdapter(staticAdapter);\n\n mItemTypeSpinnerA2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n String itemtypeText = (String) parent.getItemAtPosition(position);\n if (itemtypeText.equals(\"Mobile Phones\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.VISIBLE);\n mInputLayoutItemImeiA2.setClickable(true);\n\n\n } else if (itemtypeText.equals(\"Laptops\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n } else {\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n }\n\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mItemTypeSpinnerA2.getItemAtPosition(0);\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n\n }\n });\n\n }", "public void getQualificationCode(final Spinner qualifi){\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetJobQualificationURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"qualif\");\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()+1),Toast.LENGTH_SHORT).show();\n int jarraylength=jArray.length()+1;\n\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n String sname,cid;\n for (int i = 0; i <jarraylength+1; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"course\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n c1[i]=cid;\n c3[i]=sname;\n // Log.e(\"list sizzeeeee\",String.valueOf(countrycodename.size()+1));\n qualification2.add(i,sname);\n\n\n\n\n }\n\n\n } catch (Exception e) {\n }\n qualification2.add(0,\"Select Qualification\");\n// countrycodid.add(0,\"0\");\n\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,qualification2);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n qualifi.setAdapter(spinnerAdapter);\n qualifi.setSelection(0);\n // Toast.makeText(getApplicationContext(),\" country code size \"+String.valueOf(Arrays.asList(countrycodid.size())),Toast.LENGTH_SHORT).show();\n\n // Toast.makeText(getApplicationContext(),\"country string array count \"+countrycodename.length,Toast.LENGTH_SHORT).show();\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n try {\n setContentView(R.layout.nrc);\n C = new Connection(this);\n g = Global.getInstance();\n StartTime = g.CurrentTime24();\n\n TableName = \"ClientMap\";\n\n //ClientMap cMap = new ClientMap();\n // String id = cMap.getName() + cMap.getFatherName() +cMap.getZillaId()+cMap.getUpazilaId()+cMap.getUnionId()+cMap.getMouzaId()+cMap.getVillageId();\n\n seclblepireg = (LinearLayout) findViewById(R.id.seclblepireg);\n\n secDiv = (LinearLayout) findViewById(R.id.secDiv);\n VlblDiv = (TextView) findViewById(R.id.VlblDiv);\n\n spnDiv = (Spinner) findViewById(R.id.spnDiv);\n spnDiv.setAdapter(C.getArrayAdapter(\"select id||'-'||division DistName from Division order by id\"));\n\n spnDiv.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n // spnUpazilla.setAdapter(C.getArrayAdapter(\"Select ' ' UPAZILAName from UPAZILA union select UpazilaId||'-'||UPAZILANAMEENG UPAZILAName from UPAZILA where ZIlLAID='\"+ Global.Left(spnDistrict.getSelectedItem().toString(),2) +\"'\"));\n spnDistrict.setAdapter(C.getArrayAdapter(\"select ZIlLAID||'-'||ZILLANAMEENG DistName from Zilla where DIVID='\" + Global.Left(spnDiv.getSelectedItem().toString(), 2) + \"'\"));// Global.Left(spnDiv.getSelectedItem().toString(),2)\n spnDistrict.setSelection(DivzillaSelect(\"zilla\"));\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parentView) {\n // your code here\n }\n\n });\n\n secDistrict = (LinearLayout) findViewById(R.id.secDistrict);\n VlblDistrict = (TextView) findViewById(R.id.VlblDistrict);\n spnDistrict = (Spinner) findViewById(R.id.spnDistrict);\n\n\n spnDistrict.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n spnUpazilla.setAdapter(C.getArrayAdapter(\"Select ' ' UPAZILAName from UPAZILA union select substr('0' || UpazilaId, -2, 2)||'-'||UPAZILANAMEENG UPAZILAName from UPAZILA where ZIlLAID='\" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + \"'\"));\n //spnDCode.setSelection(DivUpazilaUnionSelect(\"DCode\"));\n //spnUpazilla.setSelection(DivUpazilaUnionSelect(\"union\"));\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parentView) {\n // your code here\n }\n\n });\n secUpazilla = (LinearLayout) findViewById(R.id.secUpazilla);\n VlblUpazilla = (TextView) findViewById(R.id.VlblUpazilla);\n\n spnUpazilla = (Spinner) findViewById(R.id.spnUpazilla);\n\n spnUpazilla.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n spnUnion.setAdapter(C.getArrayAdapter(\"Select ' ' UnionsName from Unions union select substr('0' || UNIONID, -2, 2)||'-'||UNIONNAMEENG UnionsName from Unions where ZIlLAID='\" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + \"' and UpazilaId='\" + Global.Left(spnUpazilla.getSelectedItem().toString(), 2) + \"'\"));\n //\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parentView) {\n // your code here\n }\n\n });\n\n secUnion = (LinearLayout) findViewById(R.id.secUnion);\n VlblUnion = (TextView) findViewById(R.id.VlblUnion);\n spnUnion = (Spinner) findViewById(R.id.spnUnion);\n\n spnUnion.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n spnMouza.setAdapter(C.getArrayAdapter(\"Select ' ' MOUZAIDName from Mouza union select MOUZAID||'-'||MOUZANAMEENG MOUZAIDName from Mouza where ZIlLAID='\" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + \"' and UpazilaId='\" + Global.Left(spnUpazilla.getSelectedItem().toString(), 2) + \"' and UNIONID='\" + Global.Left(spnUnion.getSelectedItem().toString(), 2) + \"'\"));\n // spnMouza.setSelection(DivUpazilaUnionSelect(\"mouza\"));\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parentView) {\n // your code here\n }\n\n });\n\n secMouza = (LinearLayout) findViewById(R.id.secMouza);\n VlblMouza = (TextView) findViewById(R.id.VlblMouza);\n spnMouza = (Spinner) findViewById(R.id.spnMouza);\n\n spnMouza.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n spnVillage.setAdapter(C.getArrayAdapter(\"Select ' ' VillageName from Village union select substr('0' || VILLAGEID, -2, 2)||'-'||VILLAGENAMEENG VillageName from Village where ZIlLAID='\" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + \"' and UPAZILAID='\" + Global.Left(spnUpazilla.getSelectedItem().toString(), 2) + \"' and UNIONID='\" + Global.Left(spnUnion.getSelectedItem().toString(), 2) + \"'\"));\n\n // spnVillage.setSelection(DivUpazilaUnionSelect(\"villageId\"));\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parentView) {\n // your code here\n }\n\n });\n secVillage = (LinearLayout) findViewById(R.id.secVillage);\n VlblVillage = (TextView) findViewById(R.id.VlblVillage);\n // txtVillage=(EditText) findViewById(R.id.txtVillage);\n spnVillage = (Spinner) findViewById(R.id.spnVillage);\n secBari = (LinearLayout) findViewById(R.id.secBari);\n VlblBari = (TextView) findViewById(R.id.VlblBari);\n txtBari = (EditText) findViewById(R.id.txtBari);\n txtBari.setText(g.getHouseholdNo());\n //txtBari.setEnabled(false);\n /* secregisNo=(LinearLayout)findViewById(R.id.secregisNo);\n VlblregisNo=(TextView) findViewById(R.id.VlblregisNo);\n txtregisNo=(EditText) findViewById(R.id.txtregisNo);\n secregDate=(LinearLayout)findViewById(R.id.secregDate);\n VlblregDate=(TextView) findViewById(R.id.VlblregDate);\n dtpregDate=(EditText) findViewById(R.id.dtpregDate);*/\n seccName = (LinearLayout) findViewById(R.id.seccName);\n VlblcName = (TextView) findViewById(R.id.VlblcName);\n txtcName = (EditText) findViewById(R.id.txtcName);\n secfName = (LinearLayout) findViewById(R.id.secfName);\n VlblfName = (TextView) findViewById(R.id.VlblfName);\n txtfName = (EditText) findViewById(R.id.txtfName);\n secmName = (LinearLayout) findViewById(R.id.secmName);\n VlblmName = (TextView) findViewById(R.id.VlblmName);\n txtmName = (EditText) findViewById(R.id.txtmName);\n txthusName = (EditText) findViewById(R.id.txthusName);\n secsex = (LinearLayout) findViewById(R.id.secsex);\n Vlblsex = (TextView) findViewById(R.id.Vlblsex);\n rdogrpsex = (RadioGroup) findViewById(R.id.rdogrpsex);\n rdosex1 = (RadioButton) findViewById(R.id.rdosex1);\n rdosex2 = (RadioButton) findViewById(R.id.rdosex2);\n secmobileNo = (LinearLayout) findViewById(R.id.secmobileNo);\n VlblmobileNo = (TextView) findViewById(R.id.VlblmobileNo);\n txtmobileNo = (EditText) findViewById(R.id.txtmobileNo);\n secdob = (LinearLayout) findViewById(R.id.secdob);\n Vlbldob = (TextView) findViewById(R.id.Vlbldob);\n dtpdob = (EditText) findViewById(R.id.dtpdob);\n secage = (LinearLayout) findViewById(R.id.secage);\n Vlblage = (TextView) findViewById(R.id.Vlblage);\n Vlblage1 = (TextView) findViewById(R.id.Vlblage1);\n txtage = (EditText) findViewById(R.id.txtage);\n\n\n\n /* btnregDate = (ImageButton) findViewById(R.id.btnregDate);\n btnregDate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) { VariableID = \"btnregDate\"; showDialog(DATE_DIALOG); }});*/\n\n btndob = (ImageButton) findViewById(R.id.btndob);\n btndob.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n VariableID = \"btndob\";\n showDialog(DATE_DIALOG);\n }\n });\n\n\n // DataSearch(g.getHealthID());\n Button cmdSave = (Button) findViewById(R.id.cmdSave);\n cmdSave.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n\n if (C.ReturnSingleValue(\"Select generatedId from clientMap where generatedId='\" + g.getHealthID() + \"'\").equalsIgnoreCase(g.getHealthID())) {\n DataUpdate();\n } else {\n DataSave();\n }\n\n\n }\n });\n } catch (Exception e) {\n Connection.MessageBox(nrc.this, e.getMessage());\n return;\n }\n }", "void addToSpinnerCity()\n {\n Collections.sort(listSpinner);\n Spinner spinner=(Spinner)findViewById(R.id.gSpinnerCity);\n // Adapter for spinner\n ArrayAdapter<String> adapter=new ArrayAdapter<String>(this,R.layout.custom_blood_spinner,R.id.textSpinner,listSpinner);\n spinner.setAdapter(adapter);\n }", "private void Onclick() {\n\r\n\t\tspin_state.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t_cityItems.clear();\r\n\r\n\t\t\t\t_locationItems.clear();\r\n\r\n\t\t\t\tstate_id = _stateAdapter.getItem(position).getStrId();\r\n\r\n\t\t\t\tif (!state_id.equals(\"0\")) {\r\n\r\n\t\t\t\t\tDropDownItem _selectcity = new DropDownItem();\r\n\t\t\t\t\t_selectcity.setStrId(\"0\");\r\n\t\t\t\t\t_selectcity.setName(\"Select City\");\r\n\t\t\t\t\t_cityItems.add(_selectcity);\r\n\r\n\t\t\t\t\t_cityAdapter.notifyDataSetChanged();\r\n\r\n\t\t\t\t\tDropDownItem _selectlocation = new DropDownItem();\r\n\t\t\t\t\t_selectlocation.setStrId(\"0\");\r\n\t\t\t\t\t_selectlocation.setName(\"Select Location\");\r\n\t\t\t\t\t_locationItems.add(_selectlocation);\r\n\r\n\t\t\t\t\t_locationAdapter.notifyDataSetChanged();\r\n\r\n\t\t\t\t\tnew CityAsync().execute(\"\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tDropDownItem _selectcity = new DropDownItem();\r\n\t\t\t\t\t_selectcity.setStrId(\"0\");\r\n\t\t\t\t\t_selectcity.setName(\"Select City\");\r\n\t\t\t\t\t_cityItems.add(_selectcity);\r\n\r\n\t\t\t\t\t_cityAdapter.notifyDataSetChanged();\r\n\r\n\t\t\t\t\tDropDownItem _selectlocation = new DropDownItem();\r\n\t\t\t\t\t_selectlocation.setStrId(\"0\");\r\n\t\t\t\t\t_selectlocation.setName(\"Select Location\");\r\n\t\t\t\t\t_locationItems.add(_selectlocation);\r\n\r\n\t\t\t\t\t_locationAdapter.notifyDataSetChanged();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tspin_city.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t_locationItems.clear();\r\n\r\n\t\t\t\tcity_id = _cityAdapter.getItem(position).getStrId();\r\n\r\n\t\t\t\tif (!city_id.equals(\"0\")) {\r\n\r\n\t\t\t\t\tDropDownItem _selectlocation = new DropDownItem();\r\n\t\t\t\t\t_selectlocation.setStrId(\"0\");\r\n\t\t\t\t\t_selectlocation.setName(\"Select Location\");\r\n\t\t\t\t\t_locationItems.add(_selectlocation);\r\n\r\n\t\t\t\t\t_locationAdapter.notifyDataSetChanged();\r\n\r\n\t\t\t\t\tnew LocationAsync().execute(\"\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tDropDownItem _selectlocation = new DropDownItem();\r\n\t\t\t\t\t_selectlocation.setStrId(\"0\");\r\n\t\t\t\t\t_selectlocation.setName(\"Select Location\");\r\n\t\t\t\t\t_locationItems.add(_selectlocation);\r\n\r\n\t\t\t\t\t_locationAdapter.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tspin_location.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tlocation_id = _locationAdapter.getItem(position).getStrId();\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tet_pincode.addTextChangedListener(new TextWatcher() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before,\r\n\t\t\t\t\tint count) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\r\n\t\t\t\t\tint after) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void afterTextChanged(Editable s) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tpincode = et_pincode.getText().toString();\r\n\r\n\t\t\t\tif (pincode.length() == 6) {\r\n\r\n\t\t\t\t\tCheckPincodeAsynctask check_pincode = new CheckPincodeAsynctask(\r\n\t\t\t\t\t\t\tgetActivity());\r\n\t\t\t\t\tcheck_pincode.checkpincodeintf = CheckoutProcessFragment.this;\r\n\t\t\t\t\tcheck_pincode.execute(pincode);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tet_select_date.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tShowDatePickerDialog();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tet_select_time.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tShowTimePickerDialog();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\trdbtnone.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tpayment_type = \"1\";\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\trdbtntwo.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tpayment_type = \"2\";\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\trdbtnthree.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tpayment_type = \"0\";\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtn_checkout.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tif (select_date.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Order Date\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (select_time.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Order time\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tdb = new DBAdapter(getActivity());\r\n\t\t\t\t\tdb.open();\r\n\r\n\t\t\t\t\tmenuItems = db.getRecords();\r\n\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tJSONArray jobService = new JSONArray();\r\n\r\n\t\t\t\t\t\tString service[] = new String[menuItems.size()];\r\n\t\t\t\t\t\tString present_flag = \"0\";\r\n\t\t\t\t\t\tint j = 0;\r\n\r\n\t\t\t\t\t\tfor (int val = 0; val < menuItems.size(); val++) {\r\n\r\n\t\t\t\t\t\t\tservice[val] = \" \";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < menuItems.size(); i++) {\r\n\r\n\t\t\t\t\t\t\tJSONObject orderjsonObject = new JSONObject();\r\n\t\t\t\t\t\t\torderjsonObject.put(\"service_id\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_SERVICE_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_1\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR1_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_1\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR1));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_2\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR2_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_2\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR2));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_3\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR3_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_3\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR3));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_4\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR4_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_4\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR4));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"activity_id\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_ACTIVITY_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"activity_count\", menuItems\r\n\t\t\t\t\t\t\t\t\t.get(i).get(KEY_ACTIVITY_COUNT));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"price\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_SERVICE_PRICE));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"status\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_SERVICE_STATUS));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"couponCode\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_COUPON_CODE));\r\n\r\n\t\t\t\t\t\t\tjobService.put(orderjsonObject);\r\n\r\n\t\t\t\t\t\t\tfor (int k = 0; k <= j; k++) {\r\n\r\n\t\t\t\t\t\t\t\tif (service[k].equals(menuItems.get(i).get(\r\n\t\t\t\t\t\t\t\t\t\tKEY_SERVICE_ID))) {\r\n\r\n\t\t\t\t\t\t\t\t\tpresent_flag = \"1\";\r\n\t\t\t\t\t\t\t\t\tk = j + 1;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (present_flag.equals(\"0\")) {\r\n\r\n\t\t\t\t\t\t\t\tservice[j] = menuItems.get(i).get(\r\n\t\t\t\t\t\t\t\t\t\tKEY_SERVICE_ID);\r\n\t\t\t\t\t\t\t\tservice_details.append(menuItems.get(i).get(\r\n\t\t\t\t\t\t\t\t\t\tKEY_SERVICE_NAME)\r\n\t\t\t\t\t\t\t\t\t\t+ \",\");\r\n\t\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tservice_details.replace(service_details.length() - 1,\r\n\t\t\t\t\t\t\t\tservice_details.length(), \"\");\r\n\r\n\t\t\t\t\t\tJSONObject userjsonObject = new JSONObject();\r\n\t\t\t\t\t\tuserjsonObject.put(\"userEmail\", email);\r\n\t\t\t\t\t\tuserjsonObject.put(\"scheduleDate\", select_date);\r\n\t\t\t\t\t\tuserjsonObject.put(\"scheduleTime\", select_time);\r\n\t\t\t\t\t\tuserjsonObject.put(\"first_name\", firstname);\r\n\t\t\t\t\t\tuserjsonObject.put(\"last_name\", lastname);\r\n\t\t\t\t\t\tuserjsonObject.put(\"phone_no\", phone);\r\n\t\t\t\t\t\tuserjsonObject.put(\"addressId\", \"\");\r\n\t\t\t\t\t\tuserjsonObject.put(\"state\", state_id);\r\n\t\t\t\t\t\tuserjsonObject.put(\"city\", city_id);\r\n\t\t\t\t\t\tuserjsonObject.put(\"location\", location_id);\r\n\t\t\t\t\t\tuserjsonObject.put(\"land_mark\", landmark);\r\n\t\t\t\t\t\tuserjsonObject.put(\"street\", street);\r\n\t\t\t\t\t\tuserjsonObject.put(\"flat_no\", flatno);\r\n\t\t\t\t\t\tuserjsonObject.put(\"address\", address);\r\n\t\t\t\t\t\tuserjsonObject.put(\"pincode\", pincode);\r\n\t\t\t\t\t\tuserjsonObject.put(\"totalCost\", total_cost);\r\n\t\t\t\t\t\tuserjsonObject.put(\"paymentType\", payment_type);\r\n\t\t\t\t\t\tuserjsonObject.put(\"paymentStatus\", payment_status);\r\n\r\n\t\t\t\t\t\tJSONArray checkOutService = new JSONArray();\r\n\t\t\t\t\t\tcheckOutService.put(userjsonObject);\r\n\r\n\t\t\t\t\t\tJSONObject jsonObject = new JSONObject();\r\n\t\t\t\t\t\tjsonObject.put(\"checkOutService\", checkOutService);\r\n\t\t\t\t\t\tjsonObject.put(\"jobService\", jobService);\r\n\r\n\t\t\t\t\t\tJSONArray checkoutArray = new JSONArray();\r\n\t\t\t\t\t\tcheckoutArray.put(jsonObject);\r\n\r\n\t\t\t\t\t\tJSONObject checkout = new JSONObject();\r\n\t\t\t\t\t\tcheckout.put(\"checkout\", checkoutArray);\r\n\r\n\t\t\t\t\t\tcheckout_data = checkout.toString();\r\n\t\t\t\t\t\tLog.d(\"checkout\", checkout_data);\r\n\r\n\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (Utils.checkConnectivity(getActivity())) {\r\n\r\n\t\t\t\t\t\tCheckoutAsynctask get_checkout = new CheckoutAsynctask(\r\n\t\t\t\t\t\t\t\tgetActivity());\r\n\t\t\t\t\t\tget_checkout.checkoutintf = CheckoutProcessFragment.this;\r\n\t\t\t\t\t\tget_checkout.execute(checkout_data);\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < menuItems.size(); i++) {\r\n\r\n\t\t\t\t\t\t\tString checklist_id = menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CHECKOUTLIST_ID).toString();\r\n\r\n\t\t\t\t\t\t\tremove = db.deleteRecord(checklist_id);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tshowNetworkDialog(\"internet\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdb.close();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "private void spinner() {\n spn_semester.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n id_database = position;\n if(spn_semester.getSelectedItemPosition() == 0){\n listadaptor1();\n }\n else if(spn_semester.getSelectedItemPosition() == 1){\n listadaptor2();\n }\n else{\n listadaptor3();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n //Nothing\n }\n });\n }", "private void setSpinner() {\n class spinna extends AsyncTask<Void, Void, ArrayList<String>> {\n\n @Override\n protected void onPreExecute() {\n super.onPreExecute();\n }\n\n @Override\n protected ArrayList<String> doInBackground(Void... voids) {\n ArrayList<String> items = new ArrayList<>();\n for (Season season : series.getSeasons()) {\n int i = season.getSeasonNumber();\n items.add(String.valueOf(i));\n }\n\n return items;\n\n }\n\n @Override\n protected void onPostExecute(ArrayList<String> items) {\n super.onPostExecute(items);\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(SeriesActivity.this, android.R.layout.simple_spinner_dropdown_item, items);\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n dropdown.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n }\n }\n spinna kkkk = new spinna();\n kkkk.execute();\n\n\n }", "private void setAdapters() \n\t{\n\t\tArrayAdapter<CharSequence> adapter =\n\t\tArrayAdapter.createFromResource(\n\t\tthis, R.array.languages,\n\t\tandroid.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(\n\t\tandroid.R.layout.simple_spinner_dropdown_item);\n\t\tfromSpinner.setAdapter(adapter);\n\t\ttoSpinner.setAdapter(adapter);\n\t\t// Automatically select two spinner items\n\t\tfromSpinner.setSelection(8); // English (en)\n\t\ttoSpinner.setSelection(11); // French (fr)\n\t\torigText.setText(data);\n\t}", "public void spn_adaptor(){\n final String[] sem = getResources().getStringArray(R.array.Semester);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_spinner_item, sem);\n\n //Setting the view which will be used in the spinner\n adapter.setDropDownViewResource(\n simple_spinner_dropdown_item\n );\n\n //Assigning the adaptor1 to the spinner\n spn_semester.setAdapter(adapter);\n }", "public void getCountryCode(final Spinner country){\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetCountrycodeURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"country\");\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()+1),Toast.LENGTH_SHORT).show();\n int jarraylength=jArray.length()+1;\n\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n String sname,cid;\n for (int i = 0; i <jarraylength+1; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"name\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n c1[i]=cid;\n c3[i]=sname;\n Log.e(\"list sizzeeeee\",String.valueOf(countrycodename.size()+1));\n countrycodename.add(i,sname);\n countrycodid.add(i ,cid);\n\n\n\n }\n\n\n } catch (Exception e) {\n }\n countrycodename.add(0,\"Select Country\");\n countrycodid.add(0,\"0\");\n\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,countrycodename);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n country.setAdapter(spinnerAdapter);\n country.setSelection(0);\n // Toast.makeText(getApplicationContext(),\" country code size \"+String.valueOf(Arrays.asList(countrycodid.size())),Toast.LENGTH_SHORT).show();\n\n // Toast.makeText(getApplicationContext(),\"country string array count \"+countrycodename.length,Toast.LENGTH_SHORT).show();\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }", "private void initSpinnerSelectionChamps() {\n\n //preparation de l'URL, recuperation de tous les champs dispo. dans la BDD\n final String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_LIST, null);\n\n //preparation et execution de la requete en asynchrone\n asyncHttpClient.get(getActivity(), url, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n //recuperation des donnees et parsing en JSONArray\n String response = null;\n try {\n response = new String(responseBody, ENCODING);\n JSONArray jsonArray = new JSONArray(response);\n Log.e(\"JSONARRAY\", jsonArray.toString(1));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n new AlertDialog.Builder(getActivity()).setMessage(getString(R.string.error_msg_fail_retrieve_data) + statusCode).show();\n }\n });\n/*\n try {\n JSONObject json = JsonUtils.loadJSONFromResources(getActivity(), R.raw.champs);\n this.spinnerChampAdapter = new ChampAdapter(getActivity(), JsonUtils.getJsonObjects(json, new ArrayList<JSONObject>()));\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n switch (parent.getId())\n {\n case R.id.spiEspecie:\n /**Vericamos si la posicion seleccionada es mayor que cero, ya que el numero 0 es un valor por default\n y no tiene ningun valor en la base de datos*/\n if(position>0)\n {\n\n //Desbloqueamos la base el sepinner de razas\n enableSpinnerAndButton(spiRaza,agregarRaza);\n /**Establecemos un observador para obtener las razas por especie seleccianada, en esta caso este se encarga de actualizar\n * cada vez que agreguemos una nueva raza\n * */\n instanciaDB.getRazaDAO().getAllBreedsFromSpecie(parent.getSelectedItem().toString()).observe(CreacionPerfiles.this,\n new Observer<List<RazaDAO.NombreRaza>>() {\n @Override\n public void onChanged(List<RazaDAO.NombreRaza> nombreRazas) {\n arrayNombreRazas.clear();\n /**Este metodo esta asociado a un Observer que decta cuando se han cambiado los datos para actualizar\n * de forma asincrona, por tal razan validdamos cuando es guardar y cuando es actualizar en caso de ser\n * \"guardar\" entonces solo actualiza el spinner raza cuando se selecciona una especie */\n if (accion == Constantes.GUARDAR) {\n for (RazaDAO.NombreRaza raza : nombreRazas) {\n arrayNombreRazas.add(raza.getNombreRaza());\n }\n }\n else if (accion == Constantes.ACTUALIZAR) {\n for(int i=0;i<nombreRazas.size();i++)\n {\n if(nombreRazas.get(i).getNombreRaza().equals(raza))\n {\n /**Se obtiene la posición y se le suma 1 porque el 0 es el valor por defecto*/\n postionItemRaza =i+1;\n }\n arrayNombreRazas.add(i,nombreRazas.get(i).getNombreRaza());\n }\n }\n\n /** Independientemente si es actualizacion o se esta guardando la opcion por default siempre va e\n * existir por eso se coloca al final de las evaluaciones*/\n arrayNombreRazas.add(0,\"Seleccione Raza\");\n spiRaza.setSelection(postionItemRaza);\n /** Se resetea esta posición con el objetivo que la proxima vez que seleccione una nueva especie y\n * no tenga razas relacionadas en la base de datos, el valor por defecto se seleccione*/\n postionItemRaza=0;\n }\n });\n /**\n * Cada vez que se selecciona una especie se recarga las razas pertenecientes a esa especie, por tanto el primer item seleccionado sea el cero\n * ya que es el valor por defecto \"Seleccione raza\", que le indica al usuario que hacer\n * */\n\n }\n else\n {\n /**Se selecciona el valor po defecto*/\n spiRaza.setSelection(postionItemRaza);\n disableSpinnerAndButton(spiRaza,agregarRaza);\n\n }\n\n\n\n break;\n }\n }", "@Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r2 = response.body().string();\n\n try\n {\n JSONArray j2 = new JSONArray(r2);\n\n\n for(int i = 0; i < j2.length(); i++)\n {\n /*\n HashMap<String, String> dogsHashMap = new HashMap<String, String>();\n dogsHashMap.put(\"name\", j2.getJSONObject(i).getString(\"name\"));\n dogsHashMap.put(\"dog_id\", j2.getJSONObject(i).getString(\"dog_id\"));\n dogPosts.add(dogsHashMap);\n */\n\n dogNames.add(j2.getJSONObject(i).getString(\"name\"));\n dogID.add(j2.getJSONObject(i).getString(\"dog_id\"));\n\n }\n\n adapter2 = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, dogNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n dogsDropDown.setAdapter(adapter2);\n }\n\n });\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n\n }", "private void cargarSpinner() {\n\n admin = new AdminSQLiteOpenHelper(this, \"activo_fijo\", null, 1);\n BaseDeDatos = admin.getReadableDatabase();\n\n List<String> opciones = new ArrayList<String>();\n opciones.add(\"Selecciona una opción\");\n\n String selectQuery = \"SELECT * FROM sucursales\" ;\n Cursor cursor = BaseDeDatos.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n // adding to tags list\n opciones.add(cursor.getString(cursor.getColumnIndex(\"local\")));\n } while (cursor.moveToNext());\n }\n\n BaseDeDatos.close();\n\n //spiner personalizado\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, opciones);\n spinner.setAdapter(adapter);\n\n }", "public void mealNumber() {\n\n me.add(0, \"اختر وجبة\");\n me.add(\"وجبة 1\");\n// \"اختر تمرين\",\n// \"تمرين 1\",\n// \"تمرين 2\",\n// \"تمرين 3\",\n// \"تمرين 4\",\n// \"تمرين 5\",\n// \"تمرين 6\",\n// \"تمرين 7\",\n// \"تمرين 8\",\n// \"تمرين 9\";\n // Initializing an ArrayAdapter\n //2 problems with the font ,, getcontext() instead of ( getActivity().getApplicationContext() )\n //replace item_spinner with support_simple_spinner_dropdown_item\n spinnerArrayAdapterMealCount = new ArrayAdapter<String>(\n getContext(), R.layout.support_simple_spinner_dropdown_item, me) {\n @Override\n public boolean isEnabled(int position) {\n if (position == 0) {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n } else {\n return true;\n }\n }\n\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if (position == 0) {\n // Set the hint text color gray\n tv.setTextColor(Color.GRAY);\n } else {\n tv.setTextColor(Color.BLACK);\n }\n return view;\n }\n };\n spinnerArrayAdapterMealCount.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spMealsCount.setAdapter(spinnerArrayAdapterMealCount);\n\n spMealsCount.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedItemText = (String) parent.getItemAtPosition(position);\n chosenMeNumber = selectedItemText;\n // If user change the default selection\n // If user change the default selection\n if (chosenMeNumber.equals(\"وجبة 1\"))\n getChoosenMeNumberIndex = \"0\";\n if (chosenMeNumber.equals(\"وجبة 2\"))\n getChoosenMeNumberIndex = \"1\";\n if (chosenMeNumber.equals(\"وجبة 3\"))\n getChoosenMeNumberIndex = \"2\";\n if (chosenMeNumber.equals(\"وجبة 4\"))\n getChoosenMeNumberIndex = \"3\";\n if (chosenMeNumber.equals(\"وجبة 5\"))\n getChoosenMeNumberIndex = \"4\";\n if (chosenMeNumber.equals(\"وجبة 6\"))\n getChoosenMeNumberIndex = \"5\";\n if (chosenMeNumber.equals(\"وجبة 7\"))\n getChoosenMeNumberIndex = \"6\";\n if (chosenMeNumber.equals(\"وجبة 8\"))\n getChoosenMeNumberIndex = \"7\";\n if (chosenMeNumber.equals(\"وجبة 9\"))\n getChoosenMeNumberIndex = \"8\";\n if (chosenMeNumber.equals(\"وجبة 10\"))\n getChoosenMeNumberIndex = \"9\";\n if (chosenMeNumber.equals(\"وجبة 11\"))\n getChoosenMeNumberIndex = \"10\";\n if (chosenMeNumber.equals(\"وجبة 12\"))\n getChoosenMeNumberIndex = \"11\";\n if (chosenMeNumber.equals(\"وجبة 13\"))\n getChoosenMeNumberIndex = \"12\";\n if (chosenMeNumber.equals(\"وجبة 14\"))\n getChoosenMeNumberIndex = \"13\";\n if (chosenMeNumber.equals(\"وجبة 15\"))\n getChoosenMeNumberIndex = \"14\";\n\n\n // First item is disable and it is used for hint\n if (position > 0) {\n // Notify the selected item text\n selectedMeal();\n retriveMealToEdit();\n Toast.makeText\n (getActivity().getApplicationContext(), \"Selected : \" + selectedItemText, Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n state = input_add_new_state.getText().toString();\n System.out.println(\"hehe=\"+state);\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(state);\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setSelection(((ArrayAdapter<String>)statesSpinner.getAdapter()).getPosition(state));\n\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n\n }", "private void addAccountsToSpinner(){\n ArrayAdapter<String> dataAdaptor = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, customer.getAccountNameList());\n dataAdaptor.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n acctSpinner.setAdapter(dataAdaptor);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\tappState = ((MyApplicationData) getApplicationContext());\n\t\n setContentView(R.layout.activity_detail_view);\n receivedPersonInfo = (Contact)getIntent().getSerializableExtra(\"Contact\");\n\n /* Get info from fields*/\n nameField = (EditText) findViewById(R.id.name);\n\taddressField = (EditText) findViewById(R.id.address);\n\tprimbusiness = (Spinner) findViewById(R.id.primbusiness);\n\tprovince= (Spinner) findViewById(R.id.province);\n\n if(receivedPersonInfo != null){\n nameField.setText(receivedPersonInfo.name);\n\t addressField.setText(receivedPersonInfo.address);\n }\n\n\n\t/* Populate spinners*/\n\tArrayAdapter<CharSequence> bus_adapter = ArrayAdapter.createFromResource(this,\n R.array.str_primbusiness, android.R.layout.simple_spinner_item);\n\tbus_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\tprimbusiness.setAdapter(bus_adapter);\n\n\t/* Set to correct position*/\n\tint position = bus_adapter.getPosition(receivedPersonInfo.business);\n\tprimbusiness.getItemAtPosition(position);\n\n\n\tArrayAdapter<CharSequence> prov_adapter = ArrayAdapter.createFromResource(this,\n R.array.str_province, android.R.layout.simple_spinner_item);\n\tprov_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\tprovince.setAdapter(prov_adapter);\n\t\n\t/* Set to correct position*/\n\tposition = prov_adapter.getPosition(receivedPersonInfo.province);\n\tprovince.getItemAtPosition(position); \n }", "public void callRestApiCities(Activity context, Spinner spinner) {\n\n LoadingDialogCustom.startDialog(context);\n Call<List<City>> call = ManagerAll.getInstance().getInfoData();\n\n call.enqueue(new Callback<List<City>>() {\n\n @Override\n public void onResponse(@NotNull Call<List<City>> call, @NotNull Response<List<City>> response) {\n\n new Handler(Looper.getMainLooper()).postDelayed(LoadingDialogCustom::dismissDialog, 1200);\n\n List<String> cities = new ArrayList<>();\n List<Integer> cityId = new ArrayList<>();\n\n for (int i = 0; i < (response.body() != null ? response.body().size() : 0); i++) {\n cities.add(response.body().get(i).getName());\n cityId.add(i,response.body().get(i).getId());\n presenter.allCityId(cityId);\n }\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<>(context, android.R.layout.simple_spinner_dropdown_item, cities);\n spinner.setAdapter(dataAdapter);\n spinner.setPopupBackgroundResource(R.color.blueDark);\n dataAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onFailure(@NotNull Call<List<City>> call, @NotNull Throwable t) {\n Log.i(\"Message\", t.getLocalizedMessage());\n }\n });\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View v = inflater.inflate(R.layout.fragment_customer_information, container, false);\n\n mtypeadapter= ArrayAdapter.createFromResource(getActivity(),\n R.array.mtype_array, android.R.layout.simple_spinner_item);\n mtypeadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mtrtypespinner=(Spinner)v.findViewById(R.id.mtype_spinner);\n mtrtypespinner.setAdapter(mtypeadapter);\n\n ctratioadapter= ArrayAdapter.createFromResource(getActivity(),\n R.array.cct_ratio_array, android.R.layout.simple_spinner_item);\n ctratioadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n ctratiospinner=(Spinner)v.findViewById(R.id.ctratio_spinner);\n ctratiospinner.setAdapter(ctratioadapter);\n\n cttypeadapter= ArrayAdapter.createFromResource(getActivity(),\n R.array.type_array, android.R.layout.simple_spinner_item);\n cttypeadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n cttypespinner=(Spinner)v.findViewById(R.id.type_spinner);\n cttypespinner.setAdapter(cttypeadapter);\n\n cctratioadapter= ArrayAdapter.createFromResource(getActivity(),\n R.array.cct_ratio_array, android.R.layout.simple_spinner_item);\n cctratioadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n cctratiospinner=(Spinner)v.findViewById(R.id.cct_ratio_spinner);\n cctratiospinner.setAdapter(cctratioadapter);\n\n change=(Button)v.findViewById(R.id.change);\n change.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0)\n {\n openAlert(change);\n }\n });\n\n ctratiolinear=(LinearLayout)v.findViewById(R.id.ctratiolinear);\n ctdetailslayout=(LinearLayout)v.findViewById(R.id.ctdetailslayout);\n typelinear=(LinearLayout)v.findViewById(R.id.typelinear);\n cctratiolinear=(LinearLayout)v.findViewById(R.id.cctratiolinear);\n makelinear=(LinearLayout)v.findViewById(R.id.makelinear);\n\n mtrtypespinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener()\n {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n selectionPosition= mtypeadapter.getPosition(mtrtypespinner.getSelectedItem().toString());\n\n if (mtrtypespinner.getSelectedItem().toString().equals(\"WHOLE\"))\n {\n ctratiolinear.setVisibility(LinearLayout.GONE);\n ctdetailslayout.setVisibility(LinearLayout.GONE);\n typelinear.setVisibility(LinearLayout.GONE);\n cctratiolinear.setVisibility(LinearLayout.GONE);\n makelinear.setVisibility(LinearLayout.GONE);\n }\n else if(mtrtypespinner.getSelectedItem().toString().equals(\"Select\"))\n {\n ctratiolinear.setVisibility(LinearLayout.GONE);\n ctdetailslayout.setVisibility(LinearLayout.GONE);\n typelinear.setVisibility(LinearLayout.GONE);\n cctratiolinear.setVisibility(LinearLayout.GONE);\n makelinear.setVisibility(LinearLayout.GONE);\n }\n else\n {\n ctratiolinear.setVisibility(View.VISIBLE);\n ctdetailslayout.setVisibility(View.VISIBLE);\n typelinear.setVisibility(View.VISIBLE);\n cctratiolinear.setVisibility(View.VISIBLE);\n makelinear.setVisibility(View.VISIBLE);\n }\n String metertypespinner = mtrtypespinner.getSelectedItem().toString();\n PageConsumerEntity.setMeterType(metertypespinner);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView)\n {\n }\n });\n\n ctratiospinner= (Spinner) v.findViewById(R.id.ctratio_spinner);\n ctratiospinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String ctrationspinner = ctratiospinner.getSelectedItem().toString();\n PageConsumerEntity.setCTRatio(ctrationspinner);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n // TODO Auto-generated method stub\n PageConsumerEntity.setCTRatio(\" \");\n }\n });\n\n cttypespinner= (Spinner) v.findViewById(R.id.type_spinner);\n cttypespinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String typespinner = cttypespinner.getSelectedItem().toString();\n PageConsumerEntity.setCTType(typespinner);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n // TODO Auto-generated method stub\n PageConsumerEntity.setCTType(\" \");\n }\n });\n\n cctratiospinner= (Spinner) v.findViewById(R.id.cct_ratio_spinner);\n cctratiospinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String cctrtospinner = cctratiospinner.getSelectedItem().toString();\n PageConsumerEntity.setCCTRatio(cctrtospinner);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n // TODO Auto-generated method stub\n PageConsumerEntity.setCCTRatio(\" \");\n }\n });\n\n nxtbtn=(Button)v.findViewById(R.id.nextbtn);\n nxtbtn.setOnClickListener(this);\n\n PageConsumerEntity = ((ConsumerInfo) getActivity().getApplicationContext()).getConsumerDetails();\n\n cnsmrno= (EditText) v.findViewById(R.id.cnsmrno);\n cnsmrno.setText(new String(PageConsumerEntity.getCustomerNo()));\n\n cnsmrname= (EditText) v.findViewById(R.id.cnsmrname);\n cnsmrname.setText(new String(PageConsumerEntity.getCustomerName()));\n\n aliasname= (EditText) v.findViewById(R.id.aliasname);\n aliasname.setText(new String(PageConsumerEntity.getAliasName()));\n\n cntctno1= (EditText) v.findViewById(R.id.cntcno1);\n cntctno1.setText(new String(PageConsumerEntity.getContactNo1()));\n\n cntctno2= (EditText) v.findViewById(R.id.cntcno2);\n if(PageConsumerEntity.getContactNo2() == null)\n {\n cntctno2.setText(\"\");\n }\n else\n {\n cntctno2.setText(new String(PageConsumerEntity.getContactNo2()));\n }\n\n cntctno3= (EditText) v.findViewById(R.id.cntcno3);\n if(PageConsumerEntity.getContactNo3() == null)\n {\n cntctno3.setText(\"\");\n }\n else\n {\n cntctno3.setText(new String(PageConsumerEntity.getContactNo3()));\n }\n\n cntctprsn= (EditText) v.findViewById(R.id.cntcprsn);\n if(PageConsumerEntity.getContactPerson() == null)\n {\n cntctprsn.setText(\"\");\n }\n else\n {\n cntctprsn.setText(new String(PageConsumerEntity.getContactPerson()));\n }\n\n email= (EditText) v.findViewById(R.id.email);\n if(PageConsumerEntity.getEmail() == null)\n {\n email.setText(\"\");\n }\n else\n {\n email.setText(new String(PageConsumerEntity.getEmail()));\n }\n\n location= (EditText) v.findViewById(R.id.location);\n location.setText(new String(PageConsumerEntity.getLandmark()));\n\n mno= (EditText) v.findViewById(R.id.mno);\n mno.setText(new String(PageConsumerEntity.getPreMNO()));\n\n make= (EditText) v.findViewById(R.id.make);\n make.setText(new String(PageConsumerEntity.getPreMake()));\n\n String meterTypeValue = PageConsumerEntity.getMeterType();\n if (!meterTypeValue.equals(null)) {\n int spinnerPosition = mtypeadapter.getPosition(meterTypeValue);\n mtrtypespinner.setSelection(spinnerPosition);\n }\n\n String ctRatioValue = PageConsumerEntity.getCTRatio();\n if (ctRatioValue == null)\n {\n ctratiospinner.setSelection(0);\n }\n else\n {\n if (!ctRatioValue.equals(null))\n {\n int spinnerPosition = ctratioadapter.getPosition(ctRatioValue);\n ctratiospinner.setSelection(spinnerPosition);\n }\n }\n\n String ctTypeValue = PageConsumerEntity.getCTType();\n if (ctTypeValue == null)\n {\n cttypespinner.setSelection(0);\n }\n else\n {\n if (!ctTypeValue.equals(null))\n {\n int spinnerPosition = cttypeadapter.getPosition(ctTypeValue);\n cttypespinner.setSelection(spinnerPosition);\n }\n }\n\n String cctRatioValue = PageConsumerEntity.getCCTRatio();\n if (cctRatioValue == null)\n {\n cctratiospinner.setSelection(0);\n }\n else\n {\n if (!cctRatioValue.equals(null))\n {\n int spinnerPosition = cctratioadapter.getPosition(cctRatioValue);\n cctratiospinner.setSelection(spinnerPosition);\n }\n }\n\n ctmake= (EditText) v.findViewById(R.id.make1);\n if(PageConsumerEntity.getCTMake() == null)\n {\n ctmake.setText(\"\");\n }\n else\n {\n ctmake.setText(new String(PageConsumerEntity.getCTMake()));\n }\n\n l1c= (EditText) v.findViewById(R.id.l1c);\n if(PageConsumerEntity.getL1C() == null)\n {\n l1c.setText(\"\");\n }\n else\n {\n l1c.setText(new String(PageConsumerEntity.getL1C()));\n }\n\n l1d= (EditText) v.findViewById(R.id.l1d);\n if(PageConsumerEntity.getL1D() == null)\n {\n l1d.setText(\"\");\n }\n else\n {\n l1d.setText(new String(PageConsumerEntity.getL1D()));\n }\n\n l2c= (EditText) v.findViewById(R.id.l2c);\n if(PageConsumerEntity.getL2C() == null)\n {\n l2c.setText(\"\");\n }\n else\n {\n l2c.setText(new String(PageConsumerEntity.getL2C()));\n }\n\n l2d= (EditText) v.findViewById(R.id.l2d);\n if(PageConsumerEntity.getL2D() == null)\n {\n l2d.setText(\"\");\n }\n else\n {\n l2d.setText(new String(PageConsumerEntity.getL2D()));\n }\n\n l3c= (EditText) v.findViewById(R.id.l3c);\n if(PageConsumerEntity.getL3C() == null)\n {\n l3c.setText(\"\");\n }\n else\n {\n l3c.setText(new String(PageConsumerEntity.getL3C()));\n }\n\n l3d= (EditText) v.findViewById(R.id.l3d);\n if(PageConsumerEntity.getL3D() == null)\n {\n l3d.setText(\"\");\n }\n else\n {\n l3d.setText(new String(PageConsumerEntity.getL3D()));\n }\n\n if(back == 1)\n {\n// String meterTypeValue = PageConsumerEntity.getMeterType();\n if (!meterTypeValue.equals(null)) {\n int spinnerPosition = mtypeadapter.getPosition(meterTypeValue);\n mtrtypespinner.setSelection(spinnerPosition);\n }\n\n // String ctRatioValue = PageConsumerEntity.getCTRatio();\n if (!ctRatioValue.equals(null)) {\n int spinnerPosition = ctratioadapter.getPosition(ctRatioValue);\n ctratiospinner.setSelection(spinnerPosition);\n }\n\n // String ctTypeValue = PageConsumerEntity.getCTType();\n if (!ctTypeValue.equals(null)) {\n int spinnerPosition = cttypeadapter.getPosition(ctTypeValue);\n cttypespinner.setSelection(spinnerPosition);\n }\n\n // String cctRatioValue = PageConsumerEntity.getCCTRatio();\n if (!cctRatioValue.equals(null)) {\n int spinnerPosition = cctratioadapter.getPosition(cctRatioValue);\n cctratiospinner.setSelection(spinnerPosition);\n }\n\n ctmake.setText(new String(PageConsumerEntity.getCTMake()));\n\n l1c.setText(new String(PageConsumerEntity.getL1C()));\n\n l1d.setText(new String(PageConsumerEntity.getL1D()));\n\n l2c.setText(new String(PageConsumerEntity.getL2C()));\n\n l2d.setText(new String(PageConsumerEntity.getL2D()));\n\n l3c.setText(new String(PageConsumerEntity.getL3C()));\n\n l3d.setText(new String(PageConsumerEntity.getL3D()));\n }\n\n return v;\n }", "private void preencheSpinner(){\n List<String> listaParentes = new ArrayList<String>();\n\n listaParentes.add(getString(R.string.selecioneParentesco));\n\n listaParentes.add(getString(R.string.pai));\n listaParentes.add(getString(R.string.mae));\n listaParentes.add(getString(R.string.esposoa));\n listaParentes.add(getString(R.string.filhoa));\n\n listaParentes.add(getString(R.string.neto));\n listaParentes.add(getString(R.string.genro));\n listaParentes.add(getString(R.string.nora));\n listaParentes.add(getString(R.string.tioa));\n listaParentes.add(getString(R.string.sobrinhoa));\n listaParentes.add(getString(R.string.amigo));\n\n ArrayAdapter<String> adapteSpinner = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, listaParentes);\n adapteSpinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerParentesco.setAdapter(adapteSpinner);\n }", "public void carregaMunicipios(Cursor cursor3) {\n String[] queryCols22 = new String[]{\"_id\", \"nome_municipio\"};\n String[] adapterCols22 = new String[]{\"nome_municipio\"};\n int[] adapterRowViews22 = new int[]{android.R.id.text1};\n\n\n SimpleCursorAdapter sca2 = new SimpleCursorAdapter(this, android.R.layout.simple_spinner_item, cursor3, adapterCols22, adapterRowViews22, 0);\n\n sca2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerEscolheMunicipio.setAdapter(sca2);\n //FIM DO CARREGAMENTO DO SPINNER\n }", "public void initProjectSpinner(){\n projectSpinner = findViewById(R.id.spinner_project);\n projectList = Arrays.asList(gson.fromJson(myRequestHandler.getJsonStringProjects(), Project[].class)); //The jsonString with Projects is already initialized to prevent null pointers\n ArrayAdapter<Project> projectAdapter = new ArrayAdapter<Project>(this,\n android.R.layout.simple_spinner_item, projectList);\n projectAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n projectSpinner.setAdapter(projectAdapter);\n projectSpinner.setOnItemSelectedListener(this);\n\n }", "private void setupSpinners() {\n\n ArrayAdapter<String> statesAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, states);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n statesAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n // Apply the adapter to the spinner\n statesAdapter.notifyDataSetChanged();\n mStateSpinner.setAdapter(statesAdapter);\n\n // Set the integer mSelected to the constant values\n mStateSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n mState = (String) parent.getItemAtPosition(position);\n setUpStatesSpinner(position);\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // Unknown\n }\n });\n }", "private void startSpinnerValues(Spinner spinner, ArrayList<String> valores, ArrayAdapter<String> adapter)\n {\n //Inicializamos el adaptador y lo agregamos al Spinner\n adapter=new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item,valores);\n spinner.setAdapter(adapter);\n }", "private void UpdateDataForSpinner(Spinner spinner){\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.serviceQuantity, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spinner.setAdapter(adapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_basic, container, false);\n\n Spinner heightSpinner = view.findViewById(R.id.heightSpinner);\n Spinner profileCreatedBySpinner = view.findViewById(R.id.profileCreatedBySpinner);\n Spinner profileCreatedForSpinner = view.findViewById(R.id.profileCreatedForSpinner);\n Spinner motherTongueSpinner = view.findViewById(R.id.motherTongueSpinner);\n Spinner martialStatusSpinner = view.findViewById(R.id.martialStatusSpinner);\n Spinner physicalStatusSpinner = view.findViewById(R.id.physicalStatusSpinner);\n\n heightSpinner.setOnItemSelectedListener(this);\n profileCreatedBySpinner.setOnItemSelectedListener(this);\n profileCreatedForSpinner.setOnItemSelectedListener(this);\n motherTongueSpinner.setOnItemSelectedListener(this);\n martialStatusSpinner.setOnItemSelectedListener(this);\n physicalStatusSpinner.setOnItemSelectedListener(this);\n\n\n ArrayAdapter heightAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item, heights);\n heightAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n heightSpinner.setAdapter(heightAdapter);\n\n ArrayAdapter profileCreatedByAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item, profileCreatedByList);\n profileCreatedByAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n profileCreatedBySpinner.setAdapter(profileCreatedByAdapter);\n\n ArrayAdapter profileCreatedForAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item, profileCreatedForList);\n profileCreatedForAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n profileCreatedForSpinner.setAdapter(profileCreatedForAdapter);\n\n ArrayAdapter motherTongueAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item, motherTongueList);\n motherTongueAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n motherTongueSpinner.setAdapter(motherTongueAdapter);\n\n ArrayAdapter martialStatusAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item, martialStatusList);\n martialStatusAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n martialStatusSpinner.setAdapter(martialStatusAdapter);\n\n ArrayAdapter physicalStatusAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item, physicalStatusList);\n physicalStatusAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n physicalStatusSpinner.setAdapter(physicalStatusAdapter);\n\n final EditText fname, sname, email, hght, dob;\n fname = view.findViewById(R.id.firstName);\n sname = view.findViewById(R.id.surname);\n email = view.findViewById(R.id.email);\n hght = view.findViewById(R.id.height);\n dob = view.findViewById(R.id.dateOfBirth);\n\n Button submit = view.findViewById(R.id.submit);\n submit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Log.i(\"Basic Details\", fname.getText().toString());\n Log.i(\"Basic Details\", sname.getText().toString());\n Log.i(\"Basic Details\", email.getText().toString());\n Log.i(\"Basic Details\", hght.getText().toString());\n Log.i(\"Basic Details\", dob.getText().toString());\n String basic = fname.getText().toString() + \" : \" + sname.getText().toString() + \" : \" + email.getText().toString() + \" : \" + hght.getText().toString() + \" : \" + dob.getText().toString();\n\n Log.i(\"Basic Details\", basic);\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.fragmentLayout, new ProfessionalInfoFragment());\n fragmentTransaction.commit();\n }\n });\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view1 = inflater.inflate(R.layout.fragment_fragment1, container, false);\n\n String[] cityString = new String[]{\"CHENGDU\",\"CHONGQING\",\"BEIJING\",\"SHANGHAI\" };\n\n Spinner citySpinner = view1.findViewById(R.id.spinner_city);\n citySpinner.setOnItemSelectedListener(this);\n //create an adapter using the string array and a default spinner_layout\n\n // Creating adapter for spinner\n ArrayAdapter<String> adapter = new ArrayAdapter<>\n (this.getActivity(), android.R.layout.simple_spinner_dropdown_item, cityString);\n\n citySpinner.setAdapter(adapter);\n\n return view1;\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tSpinner s = (Spinner) arg0;\n\t\t\t\tString city = (String) s.getItemAtPosition(arg2);\n\t\t\t\tif (city.equals(\"-城市-\")){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.i(\"省份\",sr1.getSelectedItem().toString());\n\t\t\t\tLog.i(\"城市\",city);\n\t\t\t\t\n\t\t\t\tString urlRealTime = \"https://api.seniverse.com/v3/weather/now.json?key=kuw7pbduduh35zvd&location=\"+city+\"&language=zh-Hans&unit=c\";\n\t\t\t\tOkHttpClient mOkHttpClientRealTime = new OkHttpClient();\n\t\t\t\tfinal Request requestRealTime = new Request.Builder()\n \t.url(urlRealTime)\n \t.build();\n\t\t\t\tCall callRealTime = mOkHttpClientRealTime.newCall(requestRealTime); \n\t\t\t\tcallRealTime.enqueue(new Callback(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Request request, IOException e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(final Response response) throws IOException{\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tWeatherRealTime weatherRealTime = gson.fromJson(response.body().string(), WeatherRealTime.class); \n\t\t\t\t\t\t\tList<com.example.weather.WeatherRealTime.ResultsBean> results = weatherRealTime.getResults();\n\t\t\t\t\t\t\tfinal String textRealTime = results.get(0).getNow().getText();\n\t\t\t\t\t\t\tfinal String temperatureRealTime = results.get(0).getNow().getTemperature();\n\t\t\t\t\t\t\tMainActivity.this.runOnUiThread(new Runnable(){\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\ttextNow.setText(textRealTime);\n\t\t\t\t\t\t\t\t\ttempNow.setText(temperatureRealTime);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} catch (Exception e){\t\n\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString htmlStr = response.body().string();\n\t\t\t\t\t\tLog.e(\"res\",htmlStr);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tString url = \"https://api.seniverse.com/v3/weather/daily.json?key=kuw7pbduduh35zvd&location=\"+city+\"&language=zh-Hans&unit=c&start=0&days=3\";\n\t\t\t\tOkHttpClient mOkHttpClient = new OkHttpClient();\n\t\t\t\tfinal Request request = new Request.Builder()\n \t.url(url)\n \t.build();\n\t\t\t\t\t//new call\n\t\t\t\tCall call = mOkHttpClient.newCall(request); \n\t\t\t\t//请求加入调度\n\t\t\t\tcall.enqueue(new Callback(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Request request, IOException e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(final Response response) throws IOException{\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\tWeather weather = gson.fromJson(response.body().string(), Weather.class); \n\t\t\t\t\t\t\tList<ResultsBean> results = weather.getResults();\n\t\t\t\t\t\t\tfinal List<DailyBean> daily = results.get(0).getDaily();\n\t\t\t\t\t\t\tLog.e(\"high:\",daily.get(0).getHigh());\n\t\t\t\t\t\t\tMainActivity.this.runOnUiThread(new Runnable(){\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tday1.setText(daily.get(0).getText_day());\n\t\t\t\t\t\t\t\t\ttemp1.setText(daily.get(0).getHigh()+\"° / \"+daily.get(0).getLow()+\"°\");\n\t\t\t\t\t\t\t\t\tday2.setText(daily.get(1).getText_day());\n\t\t\t\t\t\t\t\t\ttemp2.setText(daily.get(1).getHigh()+\"° / \"+daily.get(1).getLow()+\"°\");\n\t\t\t\t\t\t\t\t\tday3.setText(daily.get(2).getText_day());\n\t\t\t\t\t\t\t\t\ttemp3.setText(daily.get(2).getHigh()+\"° / \"+daily.get(2).getLow()+\"°\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} catch (Exception e){\t\n\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}); \n\t\t\t}", "public void setOnClickListeners() {\n // Region Spinner\n regionSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedRegion = regionSpinner.getSelectedItem().toString();\n\n if (!selectedRegion.equals(\"Choose Region...\")) {\n int selectedRegionID = 0;\n for (RegionsResponse.Regions region : regionsList) {\n if (region.getRegionName().equals(selectedRegion))\n selectedRegionID = region.getRegionId();\n }\n districtSpinner.setEnabled(true);\n populateDistricts(selectedRegionID);\n } else {\n populateDistricts(0);\n districtSpinner.setSelection(0);\n districtSpinner.setEnabled(false);\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n // District Spinner\n districtSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedDistrict = districtSpinner.getSelectedItem().toString();\n int selectedDistrictID = 0;\n if (!selectedDistrict.equals(\"Choose District...\")) {\n for (RegionsResponse.Regions region : regionsList) {\n if (region.getRegionName().equals(selectedDistrict))\n selectedDistrictID = region.getRegionId();\n }\n suburbSpinner.setEnabled(true);\n populateSuburbs(selectedDistrictID);\n\n } else {\n suburbSpinner.setSelection(0);\n suburbSpinner.setEnabled(false);\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n // Method of sale value\n methodOfSaleEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (methodOfSaleSpinner.getSelectedItem().toString().equals(ApplicationConstants.MOS_AUCTIONED))\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n // Method of sale Spinner\n methodOfSaleSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedMethodOfSale = methodOfSaleSpinner.getSelectedItem().toString();\n methodOfSaleEditText.setVisibility(View.VISIBLE);\n switch (selectedMethodOfSale) {\n case ApplicationConstants.MOS_ASKING:\n\n break;\n case ApplicationConstants.MOS_AUCTIONED:\n\n break;\n case ApplicationConstants.MOS_ENQUIRIES:\n\n break;\n case ApplicationConstants.MOS_NEGOTIATION:\n methodOfSaleEditText.setVisibility(View.GONE);\n break;\n default:\n methodOfSaleEditText.setVisibility(View.GONE);\n break;\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n ohDate1.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate2.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate3.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate4.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate5.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n// ohDate3.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n// @Override\n// public void onFocusChange(View v, boolean hasFocus) {\n// if (hasFocus)\n// showDateTimePickerDialog((EditText) v);\n// }\n// });\n\n addPropertyButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n validator.validate();\n }\n });\n\n// addSecurityGuidelinesCheckbox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n// @Override\n// public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n// if (isChecked)\n// securityGuidelinesLayout.setVisibility(View.VISIBLE);\n// else\n// securityGuidelinesLayout.setVisibility(View.GONE);\n// }\n// });\n }", "private void setDataToAdapter(ArrayList<String> arrayList)\n {\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_spinner_item, arrayList);\n // Specify layout to be used when list of choices appears\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Applying the adapter to our spinner\n spinner.setAdapter(arrayAdapter);\n spinner.setOnItemSelectedListener(this);\n }", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent)\n {\n View row = convertView;\n if(row == null)\n {\n LayoutInflater inflater = ((Activity) MainActivity.context).getLayoutInflater();\n row = inflater.inflate(R.layout.spinner_item_layout, parent, false);\n }\n \n ((TextView)row).setTypeface(MainActivity.pixelFont);\n ((TextView)row).setText(objectsData[position]);\n \n return row;\n }", "private void loadSpinnerFromDB(){\n\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n servicesFromSP.clear();\n ArrayList<String> myServices = new ArrayList<String>();\n\n servicesFromSP.addAll(dbHandler.getAllServiceTypeOfServiceProvider(companyID));\n\n for(ServiceType serviceType: servicesFromSP)\n myServices.add(serviceType.getServiceName() + \" / \" + serviceType.getHourlyRate() + \" $/H\");\n\n if(myServices.size()==0)\n Toast.makeText(this,\"Cannot load the DB or DB empty\",Toast.LENGTH_LONG).show();\n if (myServices.size()>0) {\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, myServices);\n data.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spin_service.setAdapter(data);\n }\n\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "private void ShowSpinner(String[] items, Spinner spinner)\n {\n String[] list = items;\n\n final List<String> plantsList = new ArrayList<>(Arrays.asList(list));\n\n // Initializing an ArrayAdapter\n final ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(\n this, R.layout.support_simple_spinner_dropdown_item, plantsList) {\n @Override\n public boolean isEnabled(int position) {\n if (position == 0) {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n } else {\n return true;\n }\n }\n\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if (position == 0) {\n // Set the hint text color gray\n tv.setTextColor(Color.parseColor(\"#C1C1C1\"));\n } else {\n tv.setTextColor(Color.BLACK);\n }\n return view;\n }\n };\n spinnerArrayAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinner.setAdapter(spinnerArrayAdapter);\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n topicname = (String) parent.getItemAtPosition(position);\n // If user change the default selection\n // First item is disable and it is used for hint\n if (position > 0) {\n // Notify the selected item text\n Toast.makeText\n (getApplicationContext(), \"Topic \" + topicname+\" selected\", Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }", "private void setupSpinner() {\n ArrayAdapter genderSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_gender_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n genderSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mGenderSpinner.setAdapter(genderSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mGenderSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.gender_male))) {\n mGender = 1; // Male\n } else if (selection.equals(getString(R.string.gender_female))) {\n mGender = 2; // Female\n } else {\n mGender = 0; // Unknown\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mGender = 0; // Unknown\n }\n });\n }", "public void getjobroleCode(final MultiSelectSpinner qualifi, final String id){\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetJobInterestedURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"interested\");\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()+1),Toast.LENGTH_SHORT).show();\n int jarraylength=jArray.length()+1;\n\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n String sname,cid;\n for (int i = 0; i <jarraylength+1; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"category\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n c1[i]=cid;\n c3[i]=sname;\n // Log.e(\"list sizzeeeee\",String.valueOf(countrycodename.size()+1));\n jobrole2.add(i,sname);\n\n\n\n\n }\n\n\n } catch (Exception e) {\n }\n // jobrole.add(0,\"Select Job Role\");\n// countrycodid.add(0,\"0\");\n\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,jobrole2);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n // qualifi.setAdapter(spinnerAdapter);\n qualifi.setItems(jobrole2);\n\n // Toast.makeText(getApplicationContext(),\" country code size \"+String.valueOf(Arrays.asList(countrycodid.size())),Toast.LENGTH_SHORT).show();\n\n // Toast.makeText(getApplicationContext(),\"country string array count \"+countrycodename.length,Toast.LENGTH_SHORT).show();\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"parentid\", String.valueOf(id));\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View rootView = inflater.inflate(R.layout.fragment_feedback, container, false);\n\n //Populate the spinner in the fragment\n Spinner courseSpinner = (Spinner) rootView.findViewById(R.id.courseSpinner);\n\n List<String> courseCategories = new ArrayList<String>();\n courseCategories.add(\"Applied Cryptography\");\n courseCategories.add(\"Positive Psychology\");\n courseCategories.add(\"Number Theory\");\n\n ArrayAdapter<String> courseDataAdapter = new ArrayAdapter<String>(this.getContext(), android.R.layout.simple_spinner_item, courseCategories);\n courseDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n courseSpinner.setAdapter(courseDataAdapter);\n\n\n\n Spinner loadSpinner = (Spinner) rootView.findViewById(R.id.loadSpinner);\n\n List<String> loadCategories = new ArrayList<String>();\n loadCategories.add(\"3\");\n loadCategories.add(\"5\");\n loadCategories.add(\"7\");\n loadCategories.add(\"9\");\n loadCategories.add(\"11\");\n loadCategories.add(\"13\");\n loadCategories.add(\"15\");\n loadCategories.add(\"18\");\n\n ArrayAdapter<String> loadDataAdapter = new ArrayAdapter<String>(this.getContext(), android.R.layout.simple_spinner_item, loadCategories);\n loadDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n loadSpinner.setAdapter(loadDataAdapter);\n\n Spinner gradeSpinner = (Spinner) rootView.findViewById(R.id.avGradeSpinner);\n\n List<String> gradeCategories = new ArrayList<String>();\n gradeCategories.add(\"4\");\n gradeCategories.add(\"5\");\n gradeCategories.add(\"6\");\n gradeCategories.add(\"7\");\n gradeCategories.add(\"8\");\n gradeCategories.add(\"9\");\n gradeCategories.add(\"10\");\n\n ArrayAdapter<String> gradeDataAdapter = new ArrayAdapter<String>(this.getContext(), android.R.layout.simple_spinner_item, gradeCategories);\n gradeDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n gradeSpinner.setAdapter(gradeDataAdapter);\n\n return rootView;\n\n }", "private void loadSpinner(View view) {\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n view.getContext(), android.R.layout.simple_spinner_item, getCategories());\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(adapter);\n\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n Spinner spinner = (Spinner) parent;\n Integer tag = (Integer) spinner.getTag();\n int tagValue = tag.intValue();\n switch (tagValue)\n {\n case VIEWED_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByViewed))\n {\n bChange = true;\n }\n if (pos == 0)\n {\n orderByViewed = \"album_name ASC\";\n }\n else\n {\n orderByViewed = \"album_name DESC\";\n }\n if (bChange) {\n orderBy = orderByViewed;\n }\n }\n break;\n\n case PRICE_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByPrice))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByPrice = \"price DESC\";\n }\n else\n {\n orderByPrice = \"price ASC\";\n }\n if (bChange) {\n orderBy = orderByPrice;\n }\n }\n break;\n\n case RATINGS_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByRatings))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByRatings = \"ratings DESC\";\n }\n else\n {\n orderByRatings = \"ratings ASC\";\n }\n if (bChange) {\n orderBy = orderByRatings;\n }\n }\n break;\n\n case YEAR_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByYear))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByYear = \"year DESC\";\n }\n else\n {\n orderByYear = \"year ASC\";\n }\n if (bChange) {\n orderBy = orderByYear;\n }\n }\n break;\n\n case BEDS_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByBeds))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByBeds = \"beds DESC\";\n }\n else\n {\n orderByBeds = \"beds ASC\";\n }\n if (bChange) {\n orderBy = orderByBeds;\n }\n }\n break;\n\n case BATHS_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByBaths))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByBaths = \"baths DESC\";\n }\n else\n {\n orderByBaths = \"baths ASC\";\n }\n if (bChange) {\n orderBy = orderByBaths;\n }\n }\n break;\n\n case AREA_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByArea))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByArea = \"area DESC\";\n }\n else\n {\n orderByArea = \"area ASC\";\n }\n if (bChange) {\n orderBy = orderByArea;\n }\n }\n break;\n\n case MAKE_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByMake))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByMake = \"make ASC\";\n }\n else\n {\n orderByMake = \"make DESC\";\n }\n if (bChange) {\n orderBy = orderByMake;\n }\n }\n break;\n\n case MODEL_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByModel))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByModel = \"model ASC\";\n }\n else\n {\n orderByModel = \"model DESC\";\n }\n if (bChange) {\n orderBy = orderByModel;\n }\n }\n break;\n\n case COLOR_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByColor))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByColor = \"color ASC\";\n }\n else\n {\n orderByColor = \"color DESC\";\n }\n if (bChange) {\n orderBy = orderByColor;\n }\n }\n break;\n\n\n\n default:\n break;\n }\n\n }", "public void bindSpinner() {\n // Create an ArrayAdapter using the string array and a spinner layout\n ArrayAdapter<CharSequence> adapter;\n adapter = ArrayAdapter.createFromResource(getActivity(), R.array.kind_of_reaction, R.layout.item_spinner_healthbook);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(R.layout.item_spinner_healthbook_dropdown);\n // Apply the adapter to the spinner\n kindOfReactionSpinner.setAdapter(adapter);\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter supplierSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_supplier_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n supplierSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mSupplierSpinner.setAdapter(supplierSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mSupplierSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.supplier_one))) {\n mSupplier = BookEntry.SUPPLIER_ONE;\n } else if (selection.equals(getString(R.string.supplier_two))) {\n mSupplier = BookEntry.SUPPLIER_TWO;\n } else {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n });\n }", "@Override\n public void onSuccess(String result) {\n if (!TextUtils.isEmpty(result)){\n\n Gson gson=new Gson();\n list = gson.fromJson(result,new TypeToken<List<SecondHandCollege>>() { }.getType());\n data = getStringArraty(list);\n collegeAdapter=new ArrayAdapter(RegisterActivity.this,android.R.layout.simple_spinner_item, data);\n registerCollegeSpinner.setAdapter(collegeAdapter);\n\n //下拉列表点击监听\n setCollegeSpinnerClick();\n\n }\n }", "private void initSpinnerCours()\n {\n Spinner spinner = findViewById(R.id.iCours);\n\n // Adapt\n final ArrayAdapter<Cours> adapter = new ArrayAdapter<>(\n this,\n R.layout.support_simple_spinner_dropdown_item\n );\n spinner.setAdapter(adapter);\n\n final ExamDB db = new ExamDB(this);\n\n ArrayList<Cours> listCours = db.getAllCours();\n adapter.addAll(listCours);\n }", "private void initSpinners() {\n mColourArray = Constants.colours.keySet().toArray(new String[Constants.colours.keySet().size()]);\n mPositonArray = Constants.gravity.keySet().toArray(new String[Constants.gravity.keySet().size()]);\n mScaleArray = Constants.scale.keySet().toArray(new String[Constants.scale.keySet().size()]);\n\n // Init Adapters\n ArrayAdapter<String> colourAdapter = new ArrayAdapter<>(\n this,\n R.layout.adapter_dropdown_menu_item,\n mColourArray);\n\n ArrayAdapter<String> positionAdapter = new ArrayAdapter<>(\n this,\n R.layout.adapter_dropdown_menu_item,\n mPositonArray);\n\n ArrayAdapter<String> scaleAdapter = new ArrayAdapter<>(\n this,\n R.layout.adapter_dropdown_menu_item,\n mScaleArray);\n\n // Set Adapter\n mDataBinding.textColor.setAdapter(colourAdapter);\n mDataBinding.backgroundColor.setAdapter(colourAdapter);\n mDataBinding.position.setAdapter(positionAdapter);\n mDataBinding.imageScale.setAdapter(scaleAdapter);\n\n // Set Listeners\n mDataBinding.textColor.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mTextColour = Constants.colours.get(selectedItemKey);\n });\n\n mDataBinding.backgroundColor.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mBackgroundColour = Constants.colours.get(selectedItemKey);\n });\n\n mDataBinding.position.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mPosition = Constants.gravity.get(selectedItemKey);\n });\n\n mDataBinding.imageScale.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mScale = Constants.scale.get(selectedItemKey);\n });\n\n // Set defaults\n mDataBinding.textColor.setText(colourAdapter.getItem(1), false);\n mDataBinding.backgroundColor.setText(colourAdapter.getItem(0), false);\n mDataBinding.position.setText(positionAdapter.getItem(0), false);\n mDataBinding.imageScale.setText(scaleAdapter.getItem(0), false);\n mTextColour = colourAdapter.getItem(1);\n mBackgroundColour = colourAdapter.getItem(0);\n mPosition = positionAdapter.getItem(0);\n mScale = scaleAdapter.getItem(0);\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter genderSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_gender_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n genderSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mGenderSpinner.setAdapter(genderSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mGenderSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.gender_male))) {\n mGender = PetContract.PetEntry.GENDER_MALE;\n } else if (selection.equals(getString(R.string.gender_female))) {\n mGender = PetContract.PetEntry.GENDER_FEMALE;\n } else {\n mGender = PetContract.PetEntry.GENDER_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mGender = PetContract.PetEntry.GENDER_UNKNOWN;\n }\n });\n }", "private String setupselectSpinner1(){\n String ret = \"unknown\";\n try{\n PartnerDB db = new PartnerDB((Context)this);\n SQLiteDatabase plcDB = db.openDB();\n Cursor cur = plcDB.rawQuery(\"select name from partner;\", new String[]{});\n ArrayList<String> al = new ArrayList<String>();\n while(cur.moveToNext()){\n try{\n al.add(cur.getString(0));\n }catch(Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"exception stepping thru cursor\"+ex.getMessage());\n }\n }\n partners = (String[]) al.toArray(new String[al.size()]);\n ret = (partners.length>0 ? partners[0] : \"unknown\");\n partnerAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item, partners);\n selectSpinner1.setAdapter(partnerAdapter);\n selectSpinner1.setOnItemSelectedListener(this);\n }catch(Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"unable to setup partner spinner\");\n }\n return ret;\n }", "private void initSpinners() {\r\n Spinner arrivalSpinner = (Spinner)findViewById(R.id.arrival_place);\r\n SpinnerAdapter arrivalSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, new LinkedList<>(manager.getAllSights()));\r\n arrivalSpinner.setAdapter(arrivalSpinnerAdapter);\r\n\r\n Spinner departureSpinner = (Spinner)findViewById(R.id.departure_place);\r\n SpinnerAdapter departureSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, new LinkedList<>(manager.getAllSights()));\r\n departureSpinner.setAdapter(departureSpinnerAdapter);\r\n\r\n Spinner focusSpinner = (Spinner)findViewById(R.id.focus);\r\n SpinnerAdapter focusSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, Category.values());\r\n focusSpinner.setSelection(3);\r\n focusSpinner.setAdapter(focusSpinnerAdapter);\r\n }", "private void loadSupplierSpinner() {\n //Retrieve Suppliers list from database\n ArrayList<String> suppliers = getAllSuppliers();\n //Create Adapter for Spinner\n spinnerAdapter= new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, suppliers);\n // Specify dropdown layout style - simple list view with 1 item per line\n spinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n // attaching data adapter to spinner\n mSpinner.setAdapter(spinnerAdapter);\n mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String supplier = parent.getItemAtPosition(position).toString();\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"You selected: \" + supplier, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n //Nothing for now\n }\n });\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter fruitSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_fruit_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n fruitSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mTypeSpinner.setAdapter(fruitSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mTypeSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.apple))) {\n mFruit = FruitEntry.TYPE_APPLE;\n } else if (selection.equals(getString(R.string.banana))) {\n mFruit = FruitEntry.TYPE_BANANA;\n } else if (selection.equals(getString(R.string.peach))) {\n mFruit = FruitEntry.TYPE_PEACH;\n } else if (selection.equals(getString(R.string.pineapple))) {\n mFruit = FruitEntry.TYPE_PINEAPPLE;\n } else if (selection.equals(getString(R.string.strawberry))) {\n mFruit = FruitEntry.TYPE_STRAWBERRY;\n } else if (selection.equals(getString(R.string.watermelon))) {\n mFruit = FruitEntry.TYPE_WATERMELON;\n } else {\n mFruit = FruitEntry.TYPE_NOTSELECTED;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mFruit = FruitEntry.TYPE_NOTSELECTED;\n }\n });\n }", "private void populatePhone() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getPN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n phoneNum.setAdapter(dataAdapter);\n\n }" ]
[ "0.7858333", "0.7623703", "0.7559648", "0.74996436", "0.7446429", "0.74345976", "0.73866373", "0.7379463", "0.7308849", "0.7303892", "0.72497743", "0.721579", "0.7215692", "0.71933025", "0.7165632", "0.7134232", "0.7101594", "0.70960003", "0.70617867", "0.70494187", "0.70479095", "0.7020728", "0.7013114", "0.7004906", "0.7004762", "0.69958633", "0.6992201", "0.69852656", "0.69840634", "0.696405", "0.6964018", "0.6958595", "0.69231725", "0.6915184", "0.6882569", "0.68780255", "0.6872881", "0.68719065", "0.68673474", "0.68653464", "0.6863392", "0.68604124", "0.68601227", "0.6850268", "0.68500566", "0.68456656", "0.6831409", "0.6829193", "0.67875415", "0.67656666", "0.6752361", "0.67493826", "0.67259175", "0.671098", "0.6702228", "0.670175", "0.66732895", "0.66695464", "0.6666562", "0.6644667", "0.66317815", "0.6623007", "0.6577671", "0.6570274", "0.6565929", "0.65654844", "0.6564571", "0.6553322", "0.6547654", "0.65413904", "0.65396696", "0.65243196", "0.6515742", "0.6502069", "0.6486987", "0.6485011", "0.64838815", "0.6475827", "0.64696425", "0.6469374", "0.64601827", "0.6459966", "0.6450501", "0.64321303", "0.6423804", "0.64173514", "0.6406825", "0.64065146", "0.63917404", "0.63800836", "0.6378564", "0.6359319", "0.6354371", "0.6349299", "0.6343996", "0.63424367", "0.6335786", "0.6330351", "0.63301647", "0.63283765", "0.6318771" ]
0.0
-1
Sorts the elements of this structure according to the order induced by the specified comparator.
void sort(Comparator<E> comp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortElements(Comparator<TLProperty> comparator);", "public void sort(Comparator<? super AudioFile> comparator) {\n Collections.sort(mObjects, comparator);\n if (mNotifyOnChange) notifyDataSetChanged();\n }", "public void sort(List<T> objects, Comparator<T> comparator) {\n }", "public void sort(@NonNull Comparator<? super T> comparator) {\n ArrayList<T> sortedList = new ArrayList<T>();\n if (mData.isFiltered()) {\n sortedList = new ArrayList<T>(mData.getFilteredValues().values());\n } else {\n sortedList = new ArrayList<T>(mData.getValues().values());\n }\n Collections.sort(sortedList, comparator);\n\n mData.createIndexMapFromList(sortedList, mData.isFiltered() ? mData.getFilteredValues() : mData.getValues());\n notifyDataSetChanged();\n }", "public void sort(Comparator<T> comparator, boolean asc) {\n sortWithoutNotify(comparator, asc);\n notifyDataSetChanged();\n }", "@Override\n public Object[] sort(Object[] elementData, int size, Comparator comparator) {\n c=comparator;\n Object[] elementTemp = new Object[size];\n System.arraycopy(elementData,0,elementTemp,0,size);\n\n SimpleMerger ss=new SimpleMerger(elementTemp,c);\n\n ss.sort();\n\n if(comparator==null){\n elementData=ss.getSorted();\n }else{\n elementData=ss.getSorted2();\n }\n\n return elementData;\n }", "public void sort(Comparator<Beer> comparator) {\n if(mBeerItems == null) {\n return;\n }\n Collections.sort(mBeerItems, comparator);\n notifyDataSetChanged();\n }", "public static void sort(java.util.List arg0, java.util.Comparator arg1)\n { return; }", "@Override\n void sort(Comparator<E> comparator) {\n for (Node<E> i = head.next; i != tail.prev; i = i.next) {\n Node<E> min = i;\n E minValue = min.value;\n\n for (Node<E> j = i.next; j != tail; j = j.next) {\n if (comparator.compare(minValue, j.value) > 0) {\n min = j;\n minValue = min.value;\n }\n }\n\n min.value = i.value;\n i.value = minValue;\n }\n }", "@Override\r\n\tpublic <T> void sort(Comparator<T> comparator, List<T> list) {\r\n\t\tsort(comparator, list, 0, list.size() - 1);\r\n\t}", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "public void sortTransitions(Comparator<Transition> comparator) {\n // mergesort seems to perform better on already sorted arrays:\n if (numTransitions > 1) ArrayUtil2.mergeSort(transitionsArray, 0, numTransitions, comparator);\n }", "public static <E> void sort(E[] array, Comparator<E> comparator, int i1, int i2) {\n heapify(array, comparator, i1, i2);\n \n int end = i2;\n while (end > i1) {\n DataManipulator.swapData(array, end, i1);\n end -= 1;\n siftDown(array, comparator, i1, i1, end);\n }\n }", "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static void sort(List list, Comparator comparator) {\n if (list.size() > 1) {\n Object[] array = list.toArray();\n sort(array, comparator);\n DataManipulator.copyArrayToList(list, array);\n }\n }", "private void sort(Object[] array, Comparator comparator) {\n Object[] aux = new Object[array.length];\n sort(array, aux, 0, array.length - 1, comparator);\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "@Override\r\n public void sort(final IRepository<T> repository,\r\n final Comparator<T> comparator) {\r\n int personLength = 0;\r\n for (T iPerson : repository.toList()) {\r\n if (iPerson != null) {\r\n ++personLength;\r\n }\r\n }\r\n for (int i = 1; i < personLength; i++) {\r\n T current = repository.get(i);\r\n int j = i - 1;\r\n while(j >= 0 && comparator.compare(repository.get(j), current) > 0) {\r\n repository.set(j + 1, repository.get(j));\r\n j--;\r\n }\r\n repository.set(j + 1, current);\r\n }\r\n }", "Comparator<T> sortBy();", "public void sort(final int columnIndex, final Comparator<V> comparator) {\r\n\t\tsetComparator(columnIndex, comparator);\r\n\t\tsort(columnIndex);\r\n\t}", "public void sortBy(Comparator<Trip> cmp) {\n comparator = cmp;\n modifiedSinceLastResult = true;\n }", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static Book[] sortBookViaTreeMap(List<Book> inputList, Comparator<Book> comparator) {\n\t\tSupplier<TreeSet<Book>> collectionFactory = () -> { return new TreeSet<Book> (comparator); };\n\t\tTreeSet<Book> treeSet = inputList.stream().collect(Collectors.toCollection(collectionFactory));\n\t\treturn treeSet.toArray(new Book[treeSet.size()]);\t\n\t}", "public static <E> void sort(E[] array, Comparator<E> comparator) {\n sort(array, comparator, 0, array.length-1);\n }", "public void sort() {\r\n Collections.sort(this.list, this);\r\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "@Override\r\n\tpublic void sort(T[] array, Comparator<T> comparator) {\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = i + 1; j < array.length; j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (comparator.compare(array[i], array[j]) == 1) {\r\n\t\t\t\t\tT temp = array[i];\r\n\t\t\t\t\tarray[i] = array[j];\r\n\t\t\t\t\tarray[j] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Book[] sortBookViaCollection(List<Book> inputList, Comparator<Book> comparator) {\n\t\tCollections.sort(inputList, comparator);\n\t\treturn inputList.toArray(new Book[inputList.size()]);\t\t\n\t}", "private void sortWithoutNotify(Comparator<T> comparator, boolean asc){\n log.debug(\"sort called\");\n synchronized (listsLock) {\n isFiltered = false;\n lastUsedComparator = comparator;\n lastUsedAsc = asc;\n log.debug(\"sort synchronized start\");\n if (originalList != null) {\n Collections.sort(originalList, comparator);\n if (!asc) {\n Collections.reverse(originalList);\n }\n }\n // removed the \"else\" compared to the original ArrayAdapter implementation because the ArrayAdapter is bugged\n // https://code.google.com/p/android/issues/detail?id=9666\n // https://code.google.com/p/android/issues/detail?id=69179\n Collections.sort(filteredList, comparator);\n if (!asc) {\n Collections.reverse(filteredList);\n }\n log.debug(\"sort synchronized end\");\n }\n }", "public void sort(Comparator<Card> cmp) {\n\t\t\tassert wellFormed() : \"invariant false on entry to sort()\";\n\t\t\t// TODO\n\t\t\t// Implement insertion sort efficiently.\n\t\t\t// You may find it helpful to use \"remove\" (but watch about size!).\n\t\t\t// DO NOT use anything in the CardUtil class or any java.util class\n\n\n\t\t\tint n = 0;\n\t\t\tCard current = this.first;\n\n\n\t\t\tif(this.size > 0) {\n\t\t\t\t\n\t\t\t\tCard pointer, temp;\n\t\t\t\tcurrent = current.next;\n\n\t\t\t\twhile(current != null) {\n\t\t\t\t\tn = 0;\n\t\t\t\t\tpointer = current;\n\t\t\t\t\ttemp = current.prev;\n\t\t\t\t\tcurrent = current.next;\n\n\t\t\t\t\twhile(temp != null && cmp.compare(temp, pointer) > 0) {\n\t\t\t\t\t\t++n;\n\t\t\t\t\t\ttemp = temp.next;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(n != 0) {\n\n\t\t\t\t\t\tpointer.prev.next = pointer.next;\n\t\t\t\t\t\tif(pointer.next != null) {\n\t\t\t\t\t\t\tpointer.next.prev = pointer.prev;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(temp == null) {\n\t\t\t\t\t\t\ttemp = this.first;\n\t\t\t\t\t\t\tpointer.prev = null;\n\t\t\t\t\t\t\tpointer.next = temp;\n\t\t\t\t\t\t\tpointer.next.prev = pointer;\n\t\t\t\t\t\t\tthis.first = pointer;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttemp = temp.next;\n\t\t\t\t\t\t\ttemp.prev.next = pointer;\n\t\t\t\t\t\t\tpointer.prev = temp.prev;\n\t\t\t\t\t\t\ttemp.prev = pointer;\n\t\t\t\t\t\t\tpointer.next = temp;\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tassert wellFormed() : \"invariant false on exit to sort()\";\n\t\t}", "public void sort() {\n\t\tArrays.sort(contactList, 0, contactCounter);\n\t}", "public static final Iterator sort(final Iterator it, final Comparator c) {\n final List l = (List) IterationTools.append(it, new ArrayList());\n Collections.sort(l, c);\n return l.iterator();\n }", "public static <E> void selectionSort(E[] list,\n\t\t\tComparator<? super E> comparator) {\n\t\tfor (int i = 0; i < list.length - 1; i++) {\n\t\t\t// Find the minimum in the list[i..list.length-1]\n\t\t\tE currentMin = list[i];\n\t\t\tint currentMinIndex = i;\n\n\t\t\tfor (int j = i + 1; j < list.length; j++) {\n\t\t\t\tif (comparator.compare(currentMin, list[j]) > 0) {\n\t\t\t\tcurrentMin = list[j];\n\t\t\t\tcurrentMinIndex = j;\n\t\t\t}\n\t\t}\n\n\t\t// Swap list[i] with list[currentMinIndex] if necessary\n\t\tif (currentMinIndex != i) {\n\t\t\t\tlist[currentMinIndex] = list[i];\n\t\t\t\tlist[i] = currentMin;\n\t\t\t}\n\t\t}\n\t}", "public void sort(final int[] columnIndexes, final Comparator<V> comparator) {\r\n\t\tfor (final int columnIndexe : columnIndexes) {\r\n\t\t\tsetComparator(columnIndexe, comparator);\r\n\t\t}\r\n\t\tsort(columnIndexes);\r\n\t}", "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public SortingFocusTraversalPolicy(Comparator comparator)\n {\n this.comparator = comparator;\n }", "default List<Event> sort(List<Event> events, Comparator<Event> cmp) {\n\t\tCollections.sort(events, cmp);\n\t\treturn events;\n\t}", "public static void main(String[] args) {\n Circle[] circles = new Circle[3];\n circles[0] = new Circle(3.6);\n circles[1] = new Circle();\n circles[2] = new Circle(3.5, \"indigo\", false);\n System.out.println(\"Pre-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n\n Comparator circleComparator = new CircleComparator();\n Arrays.sort(circles,circleComparator);\n\n System.out.println(\"After-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n /*ComparableCircle[] circles= new ComparableCircle[3];\n circles[0]= new ComparableCircle(3.6);\n circles[1]=new ComparableCircle();\n circles[2]=new ComparableCircle(\"blue\",true,3.4);\n System.out.println(\"Pre-sorted:\");\n for(ComparableCircle circle:circles) {\n System.out.println(circle);\n }\n System.out.println(circles[0].compareTo(circles[1]));\n System.out.println(circles[1].compareTo(circles[2]));\n System.out.println(circles[0].compareTo(circles[2]));\n\n Arrays.sort(circles);\n\n System.out.println(\"After-sorted: \");\n for(ComparableCircle circle:circles){\n System.out.println(circle);\n }*/\n }", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "public synchronized void sort()\n\t{\n\t\tCollections.sort(vars, tvComparator);\n\t}", "public void sort() {\n Card.arraySort(this.cards, this.topCard);\n }", "public void sort() {\n Operation t = this, lowest = this, prev = this, parent = this;\n // find lowest precedenced operation\n while (t.termRight instanceof Operation) {\n t = (Operation) t.termRight;\n if (t.operator.precedence.level < lowest.operator.precedence.level\n || (t.operator.precedence.parseDirection == ParseDirection.RIGHT_TO_LEFT\n && t.operator.precedence.level == lowest.operator.precedence.level)) {\n lowest = t;\n parent = prev;\n }\n prev = t;\n }\n\n if (lowest != this) {\n // swap the lowest precendence operator to treehead\n Operation newLeft = new Operation(operator, termLeft, termRight);\n\n // parent.termRight = lowest.termLeft;\n Operation pt = newLeft;\n while (pt.termRight != lowest) {\n pt = (Operation) pt.termRight;\n }\n pt.termRight = ((Operation) pt.termRight).termLeft;\n\n this.operator = lowest.operator;\n this.termLeft = newLeft;\n this.termRight = lowest.termRight;\n }\n this.termLeft.sort();\n this.termRight.sort();\n }", "void comparatorSort() {\n Collections.sort(vendor, Vendor.sizeVendor); // calling collection sort method and passing list and comparator variables\r\n for (HDTV item : vendor) { //looping arraylist\r\n System.out.println(\"Brand: \" + item.brandname + \" Size: \" + item.size);\r\n }\r\n }", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "public void sort () {\n\t\t\n\t\t// Clear iterator\n\t\titer = null;\n\t\t\n\t\tCollections.sort(this.pathObjects, new Comparator<PathObject>() {\n\t\t @Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t // -1 - less than, 1 - greater than, 0 - equal, all inversed for descending\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }\n\t\t});\n\t\t\n\t\titer = this.pathObjects.iterator();\n\t}", "public static <T> void sort(T[] data, Comparator<? super T> cmp, int low, int high) {\n assert data != null && cmp != null && low >= 0 && high < data.length;\n\n // Base Case - 1 Element List is always sorted\n if (low >= high) { return; }\n\n // Partition the Array so that low < left <= right < high\n T pivot = data[high];\n int left = low;\n int right = high;\n int i = low;\n while (i <= right) {\n int c = cmp.compare(data[i], pivot);\n if (c < 0) { Arrays.swap(data, left++, i++); }\n else if (c > 0) { Arrays.swap(data, i, right--); }\n else { i++; }\n }\n\n // Now sor the left and right partitions recursively\n // data[low...left-1] < pivot = data[left...right] < data[right+1...high].\n sort(data, cmp, low, left - 1);\n sort(data, cmp, right + 1, high);\n }", "public static void main(String[] args) {\n\t\t\n\t\tEmployee emp1 = new Employee(1,\"Hibachi\",2000000);\n\t\tEmployee emp2 = new Employee(2,\"Budh\",50000000);\n\t\tEmployee emp3 = new Employee(3,\"Som\",1000000);\n\t\tEmployee emp4 = new Employee(4,\"Mangal\",600000);\n\t\tEmployee emp5 = new Employee(5,\"Brihaspati\",7000000);\n\t\t\n\t\tList<Employee> empList = new ArrayList<>();\n\t\tempList.add(emp1);\n\t\tempList.add(emp2);\n\t\tempList.add(emp3);\n\t\tempList.add(emp4);\n\t\tempList.add(emp5);\n\t\t\n\t\t// sorting done using comparable implementation Employee\n\t\tSystem.out.println(\"sorting using comparable. Sorts by default by name\");\n \t\tCollections.sort(empList);\n\t\t\n\t\tempList.forEach(empl -> System.out.println(empl));\n\n\t\t//using comparator in Employee sort the employees by salary\n\t\tCollections.sort(empList, Employee.compareSalary);\n\t\tSystem.out.println(\"*****************************************************\");\n\t\tSystem.out.println(\"sorting using comparator. sorts based on salary\");\n\t\tempList.forEach(emp -> System.out.println(emp));\n\t\t\n\t\t\n\t\t//using comparator in Employee sort the employees by id\n\t\tCollections.sort(empList, Employee.compareId);\n\t\tSystem.out.println(\"*****************************************************\");\n\t\tSystem.out.println(\"sorting using comparator. sorts based on Id\");\n\t\tempList.forEach(emp -> System.out.println(emp));\n\t\t\n\t\t\n\t\t//Now let's say we want to use the comparator to sort in descending order\n\t\tComparator<Employee> reverseSortSalaryDescendingOrder = Collections.reverseOrder(Employee.compareSalary);\n\t\tCollections.sort(empList,reverseSortSalaryDescendingOrder );\n\t\tSystem.out.println(\"*****************************************************\");\n\t\tSystem.out.println(\"Salary soreted in reverse order i.e. descending order using same comparator and Collections reverseOrder()\");\n\t\tempList.forEach(empl -> System.out.println(empl));\n\t\t\n\t\t// Or we can reverse using the comparator's own reversed() method. Internally it calls reverseOrder() \n\t\tCollections.sort(empList, Employee.compareSalary.reversed());\n\t\t\n\t\t\n\t}", "private String[] sortStringArray(String[] lines, Comparator<String> comparator) {\n Arrays.sort(lines, comparator);\n return lines;\n }", "void orderNodes(Comparator<N> comparator);", "@Override\r\n public void sort(WordList toSort, Comparator<String> comp) throws NullPointerException{\r\n // TODO\r\n\tif(comp == null || toSort == null) {\r\n\t\tthrow new NullPointerException();\r\n\t}\r\n\tmergeSortRec(toSort,comp,0,toSort.length()-1);\r\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "public void sortAttributes(Comparator<TLAttribute> comparator);", "public void sortAscending()\r\n\t{\r\n\t\tList<Book> oldItems = items;\r\n\t\titems = new ArrayList<Book>(items);\r\n\t\tCollections.sort(items);\r\n\t\tfirePropertyChange(\"books\", oldItems, items);\r\n\t}", "private void sortResults(List<String> results) {\r\n\t\tif (comparator == null) {\r\n\t\t\tCollections.sort(results);\r\n\t\t} else {\r\n\t\t\tCollections.sort(results, comparator);\r\n\t\t}\r\n\t}", "public void sort() {\n }", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "public void sortVehicles() {\n\t\tCollections.sort(vehicles);\n\t\t\n\t}", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "public void sort(){\r\n\t\t\t// we pass this doubly linked list's head to merge sort it\r\n\t\t\tthis.head = mergeSort(this.head);\r\n\t\t}", "public void sort() {\n documents.sort();\n }", "private void mergeSort(ArrayList<File> listToSort, Comparator<File> fileComparator) {\r\n int size = listToSort.size();\r\n if (size < 2) {\r\n return;\r\n }\r\n int half = size / 2;\r\n ArrayList<File> firstList = new ArrayList<File>(listToSort.subList(0, half));\r\n ArrayList<File> secondList = new ArrayList<File>(listToSort.subList(half, size));\r\n\r\n mergeSort(firstList, fileComparator);\r\n mergeSort(secondList, fileComparator);\r\n\r\n merge(firstList, secondList, listToSort, fileComparator);\r\n }", "static public void sort(List a, Comparator cf, boolean bReverse) {\n sort(a, 0, a.size() - 1, cf, bReverse ? -1 : 1);\n }", "public void sortCompetitors(){\n\t\t}", "@Override\n public void sort() {\n\n List<Doctor> unsortedDocs = this.doctors;\n\n Collections.sort(unsortedDocs, new Comparator<Doctor>() {\n @Override\n public int compare(Doctor a, Doctor b) {\n //Compare first name for doctors and re-arrange list\n return a.getFirstName().compareTo(b.getFirstName());\n }\n });\n \n this.doctors = unsortedDocs;\n\n }", "public void sort() {\n if(c==null) {\n int middle;\n\n Comparable[] left, right;\n\n\n if (unsorted.length <= 1) {\n\n sorted = unsorted;\n\n } else {\n\n middle = unsorted.length / 2;\n\n\n left = new Comparable[middle];\n\n right = new Comparable[unsorted.length - middle];\n\n\n System.arraycopy(unsorted, 0, left, 0, middle);\n\n System.arraycopy(unsorted, middle, right, 0, unsorted.length - middle);\n\n\n // Внимание! Опа, рекурсия :)\n\n SimpleMerger leftSort = new SimpleMerger(left, c);\n\n SimpleMerger rightSort = new SimpleMerger(right,c);\n\n\n leftSort.sort();\n\n rightSort.sort();\n\n\n sorted = merge(leftSort.getSorted(), rightSort.getSorted());\n\n }\n }else{\n\n int middle;\n\n Object[] left, right;\n\n\n if (unsorted2.length <= 1) {\n\n sorted2 = unsorted2;\n\n } else {\n\n middle = unsorted2.length / 2;\n\n\n left = new Object[middle];\n\n right = new Object[unsorted2.length - middle];\n System.arraycopy(unsorted2, 0, left, 0, middle);\n\n System.arraycopy(unsorted2, middle, right, 0, unsorted2.length - middle);\n\n\n\n\n SimpleMerger leftSort = new SimpleMerger(left,c);\n\n SimpleMerger rightSort = new SimpleMerger(right,c);\n\n\n leftSort.sort();\n\n rightSort.sort();\n\n\n\n sorted2 = merge2(leftSort.getSorted2(), rightSort.getSorted2());\n\n }\n\n }\n }", "public void employeeSorter(){\n Collections.sort(employees, new Comparator<Employee>() {\n @Override\n public int compare(Employee o1, Employee o2) {\n if(o1.getSalary() < o2.getSalary())\n return 1;\n else if(o1.getSalary() > o2.getSalary())\n return -1;\n else\n return 0;\n }\n });\n }", "void sortName()\r\n\t{\r\n\t\tCollections.sort(this, this.ContactNameComparator);\r\n\t}", "public void sortDescriptors() {\n\n XMLFieldDescriptor fieldDesc = null;\n NodeType nodeType = null;\n\n List remove = new List(3);\n for (int i = 0; i < attributeDescriptors.size(); i++) {\n fieldDesc = (XMLFieldDescriptor)attributeDescriptors.get(i);\n switch (fieldDesc.getNodeType().getType()) {\n case NodeType.ELEMENT:\n elementDescriptors.add(fieldDesc);\n remove.add(fieldDesc);\n break;\n case NodeType.TEXT:\n remove.add(fieldDesc);\n break;\n default:\n break;\n }\n }\n for (int i = 0; i < remove.size(); i++)\n attributeDescriptors.remove(remove.get(i));\n\n remove.clear();\n for (int i = 0; i < elementDescriptors.size(); i++) {\n fieldDesc = (XMLFieldDescriptor)elementDescriptors.get(i);\n switch (fieldDesc.getNodeType().getType()) {\n case NodeType.ATTRIBUTE:\n attributeDescriptors.add(fieldDesc);\n remove.add(fieldDesc);\n break;\n case NodeType.TEXT:\n remove.add(fieldDesc);\n break;\n default:\n break;\n }\n }\n for (int i = 0; i < remove.size(); i++)\n elementDescriptors.remove(remove.get(i));\n\n }", "public void sortManlist(){\r\n\t\tCollections.sort(Manlist, new MySort());\r\n\t}", "public static <T extends FileData> void sortFileDataByOrder(List<T> fileDataToSort) {\n Collections.sort(fileDataToSort, new Comparator<T>() {\n public int compare(T o1, T o2) {\n int ret = Integer.valueOf(o1.getOrder()).compareTo(o2.getOrder());\n if (ret != 0) {\n return ret;\n }\n return OID.compareOids(o1.getUniqueOid(), o2.getUniqueOid());\n }\n });\n }", "public void sort() {\n Collections.sort(tasks);\n }", "@Override\n public void sortIt(final Comparable a[]) {\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\t}", "public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}", "private List<Doctor> sortList(List<Doctor> l, Comparator<Doctor> c) {\n l.sort(c);\n return l;\n }", "public static void main(String[] args) {\n\t\tList<Product> prodList = new ArrayList<>();\n\t\tprodList.add(new Product(12, \"Refrigerator\", \"Whirlpool\", 43000.00f));\n\t\tprodList.add(new Product(16, \"Mobile\", \"Samsung\", 18000.00f));\n\t\tprodList.add(new Product(11, \"Laptop\", \"Lenovo\", 28300.00f));\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before Sorting\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList);\n\t\t\n\t\tSystem.out.println(\"After Sorting\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tProductNameComparator pnc = new ProductNameComparator();\n\t\tCollections.sort(prodList, pnc);\n\t\t\n\t\tSystem.out.println(\"After Sorting as per name\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList,Collections.reverseOrder());\n\t\t\n\t\tSystem.out.println(\"After Sorting as per desc id\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList,Collections.reverseOrder(pnc));\n\t\t\n\t\tSystem.out.println(\"After Sorting as per desc name\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\t\n\t\tCollections.sort(prodList, (p1,p2)-> p1.getPrice()>p2.getPrice()?1:-1 );\n\t\tSystem.out.println(\"After Sorting as per price\");\n\t\tprodList.forEach(p->System.out.println(p));\n\t\t\n\t\tCollections.sort(prodList, (p1,p2)-> p1.getPrice()<p2.getPrice()?1:-1 );\n\t\tSystem.out.println(\"After Sorting as per desc price\");\n\t\tprodList.forEach(System.out::println);\n\t\t\n\t}", "public static List<File> sortInBatch(File file, Comparator<String> cmp)\n throws IOException {\n return sortInBatch(file, cmp, DEFAULTMAXTEMPFILES, DEFAULT_MAX_MEM_BYTES,\n Charset.defaultCharset(), null, false);\n }", "public static void insertSorted(List list, Object obj, Comparator c)\n {\n insertSorted(list, obj, c, true);\n }", "private void sortPlayers(List<Player> players, String sortField) {\n\t LOG.info(\"sortPlayers=(players=\" + players + \",sortField=\" + sortField);\n\t if (sortField != null && !sortField.equals(\"\")) {\n\t Comparator<Player> comp = new Comparator<Player>(){\n\t @Override\n\t public int compare(Player p1, Player p2) {\n\t // Descending if it begins with a -\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t};\n\t\t\tCollections.sort(players, comp);\n\t\t}\n\t}", "public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "private void sort(){\r\n\t\tCollections.sort(people,new PeopleComparator(columnSelect.getSelectedIndex(),(String)sortOrder.getSelectedItem()));\r\n\t\tpersonTableModel.fireTableDataChanged();\r\n\t}", "public void quicksort(Type[] a, int left, int right, Comparator<Type> comparator) {\r\n if (right <= left) return;\r\n int i = partition(a, left, right, comparator);\r\n quicksort(a, left, i - 1, comparator);\r\n quicksort(a, i + 1, right, comparator);\r\n }", "public void sort()\n {\n RecordComparator comp = new RecordComparator(Context.getCurrent().getApplicationLocale());\n if (comp.hasSort)\n sort(comp);\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}", "@Override\r\n\tpublic void sortInventory(Comparator<AbstractItemAPI> c) {\n\t\t\r\n\t\titems.sort(c);\r\n\t\t\r\n\t}", "public void sort(){\n ListNode t, x, b = new ListNode(null, null);\n while (firstNode != null){\n t = firstNode; firstNode = firstNode.nextNode;\n for (x = b; x.nextNode != null; x = x.nextNode) //b is the first node of the new sorted list\n if (cmp.compare(x.nextNode.data, t.data) > 0) break;\n t.nextNode = x.nextNode; x.nextNode = t;\n if (t.nextNode==null) lastNode = t;\n }\n firstNode = b.nextNode;\n }", "public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }", "public void sort(){\n\t\t\n\t\tif(Q.size() != 1){\n\t\t\tArrayQueue<E> tempQueue1 = Q.dequeue();\n\t\t\tArrayQueue<E> tempQueue2 = Q.dequeue();\n\t\t\tArrayQueue<E> tempQueue3 = merge(tempQueue1, tempQueue2);\n\t\t\tQ.enqueue(tempQueue3);\n\t\t\tsort();\n\t\t}\n\t\t\n\t}", "public FastNondominatedSorting(DominanceComparator comparator) {\r\n\t\tsuper();\r\n\t\tthis.comparator = comparator;\r\n\t}", "public void setComparator(Column<T, ?> column, Comparator<T> comparator) {\n columnSortHandler.setComparator(column, comparator);\n }", "private static void parallelSortInIsolatedPool(\n FullPageId[] pagesArr,\n Comparator<FullPageId> cmp\n ) throws IgniteCheckedException {\n ForkJoinPool.ForkJoinWorkerThreadFactory factory = new ForkJoinPool.ForkJoinWorkerThreadFactory() {\n @Override public ForkJoinWorkerThread newThread(ForkJoinPool pool) {\n ForkJoinWorkerThread worker = ForkJoinPool.defaultForkJoinWorkerThreadFactory.newThread(pool);\n\n worker.setName(\"checkpoint-pages-sorter-\" + worker.getPoolIndex());\n\n return worker;\n }\n };\n\n ForkJoinPool forkJoinPool = new ForkJoinPool(PARALLEL_SORT_THREADS + 1, factory, null, false);\n\n ForkJoinTask sortTask = forkJoinPool.submit(() -> Arrays.parallelSort(pagesArr, cmp));\n\n try {\n sortTask.get();\n }\n catch (InterruptedException e) {\n throw new IgniteInterruptedCheckedException(e);\n }\n catch (ExecutionException e) {\n throw new IgniteCheckedException(\"Failed to perform pages array parallel sort\", e.getCause());\n }\n\n forkJoinPool.shutdown();\n }", "private void sort() {\n ObservableList<Node> workingCollection = FXCollections.observableArrayList(\n this.getChildren()\n );\n\n Collections.sort(workingCollection, new Comparator<Node>() {\n @Override\n public int compare(Node o1, Node o2) {\n CardView c1 = (CardView) o1;\n CardView c2 = (CardView) o2;\n return c1.getCard().compareTo(c2.getCard());\n }\n });\n\n this.getChildren().setAll(workingCollection);\n }" ]
[ "0.7339154", "0.7005234", "0.680187", "0.64976525", "0.64636916", "0.64578986", "0.63742346", "0.6325968", "0.6319019", "0.62807775", "0.6272161", "0.6227777", "0.6119976", "0.61164916", "0.6064947", "0.5999661", "0.59967154", "0.5906457", "0.5858067", "0.5807762", "0.5767051", "0.5766018", "0.5722837", "0.5696671", "0.5683951", "0.5680821", "0.5674738", "0.5652692", "0.5599676", "0.55790085", "0.55574554", "0.5512238", "0.54792494", "0.54720867", "0.5468498", "0.5453003", "0.5439639", "0.54083914", "0.5395457", "0.5381597", "0.5366874", "0.5360055", "0.5359152", "0.5356772", "0.5350746", "0.5338565", "0.5335863", "0.53351593", "0.5327649", "0.53234327", "0.5311536", "0.52795726", "0.52671105", "0.5260763", "0.5232491", "0.52318543", "0.5223342", "0.5223075", "0.5205754", "0.52021104", "0.52009773", "0.5191953", "0.5191112", "0.5187958", "0.5184118", "0.51716095", "0.51714295", "0.5159537", "0.51558626", "0.5148942", "0.5108856", "0.51063913", "0.51012003", "0.50850755", "0.507747", "0.507323", "0.5049332", "0.50479937", "0.5044605", "0.504407", "0.50390935", "0.5038912", "0.5034803", "0.5028707", "0.50251526", "0.5008801", "0.5002238", "0.49872905", "0.498033", "0.4979529", "0.49782786", "0.4965078", "0.49629092", "0.49620557", "0.49533078", "0.49515256", "0.49508062", "0.4935569", "0.49295345", "0.49197814" ]
0.6141653
12
not supported by jdk version under 1.4
private SingletonDoubleCheck() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "Compatibility compatibility();", "public static JavaVersion getJavaVersion()\n/* */ {\n/* 141 */ for (JavaVersion candidate : ) {\n/* 142 */ if (candidate.available) {\n/* 143 */ return candidate;\n/* */ }\n/* */ }\n/* 146 */ return SIX;\n/* */ }", "@Override\n\tpublic void testCompatibility() {\n\t\tSystem.out.println(\"compatibility test success\");\n\t}", "@BeforeClass\n static public void _preconditionJavaVersion() {\n Assume.assumeTrue(\"Java6 is not supported\", !System.getProperty(\"java.version\",\n \"NA\").startsWith(\"1.6\"));\n }", "zzang mo29839S() throws RemoteException;", "private NativeSupport() {\n\t}", "private StdDSAEncoder() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>():void\");\n }", "public void testWeaveJavaxClassesNo() { runTest(\"weave javax classes - no\");}", "@Test\n public void version() {\n String version = System.getProperty(\"java.version\");\n Assert.assertEquals(\"11\", version.split(\"\\\\.\")[0]);\n }", "zzafe mo29840Y() throws RemoteException;", "@Override\n public SourceVersion getSupportedSourceVersion() {\n\tSourceVersion cversion = super.getSupportedSourceVersion();\n\tSourceVersion version = SourceVersion.latest();\n\treturn (cversion.ordinal() > version.ordinal())? cversion: version;\n }", "public void mo1976s() throws cf {\r\n }", "zzand mo29852bb() throws RemoteException;", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "private static IRIProvider makeProviderJDK() { return new IRIProviderJDK(); }", "@Override\n public void checkVersion() {\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "public void mo1964g() throws cf {\r\n }", "public int getVersion() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getVersion():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getVersion():int\");\n }", "@Before\n public void setUp() {\n Assume.assumeThat(JavaVersion.getMajorVersion(), Matchers.lessThanOrEqualTo(8));\n }", "private StateChange initJDK() {\n try {\n if (null == jdkHome) {\n jdkHome = getJavaPlatformRoot();\n File jdkHomeFile = FileUtil.toFile(jdkHome);\n if (!JavaUtils.isJavaPlatformSupported(instance, jdkHomeFile)) {\n jdkHome = JavaSEPlatformPanel.selectServerSEPlatform(\n instance, jdkHomeFile);\n }\n }\n if (jdkHome == null) {\n return new StateChange(this, TaskState.FAILED,\n TaskEvent.CMD_FAILED, \"StartTask.initJDK.null\",\n instanceName);\n }\n } catch (IOException ex) {\n LOGGER.log(Level.INFO, null, ex); // NOI18N\n return new StateChange(this, TaskState.FAILED,\n TaskEvent.CMD_FAILED, \"StartTask.initJDK.exception\",\n new String[] {instanceName, ex.getLocalizedMessage()});\n }\n return null;\n }", "zzana mo29855eb() throws RemoteException;", "private void setJavaCal() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.setJavaCal():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setJavaCal():void\");\n }", "public static Object gvcVersion(Object... arg) {\r\nUNSUPPORTED(\"34219rcx2cc7lx28xxwdo2zic\"); // char *gvcVersion(GVC_t* gvc) { return gvc->common.info[1]; }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "AnonymousClass1(javax.crypto.JarVerifier r1, java.net.URL r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: javax.crypto.JarVerifier.1.<init>(javax.crypto.JarVerifier, java.net.URL):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.<init>(javax.crypto.JarVerifier, java.net.URL):void\");\n }", "StdDSAEncoder(com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>(com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi$StdDSAEncoder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>(com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi$StdDSAEncoder):void\");\n }", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "static void jvisualvm() {\n\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public ecDSA384() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA384.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA384.<init>():void\");\n }", "@Override\n public int getMinorVersion() {\n return 0;\n }", "private boolean isBadVersion(int version) {\n return false;\n }", "@Override\n public boolean isVersionCodeCompatible(int version) {\n return true;\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "public static boolean isJavaVersionOK() {\n boolean isJavaVersionOK = true;\n String version = System.getProperty(\"java.version\");\n char minor = version.charAt(2);\n char point = version.charAt(4);\n if (minor < '6' || point < '0') {\n isJavaVersionOK = false;\n System.err.println();\n System.err.println(Globals.getWorkbenchInfoString());\n System.err.println();\n System.err.print(\"JDK 1.6.0 or higher is required to run MOA. \");\n System.err.println(\"JDK version \" + version + \" found\");\n }\n return isJavaVersionOK;\n }", "public void mo1962e() throws cf {\r\n }", "public Signer(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>(java.lang.String):void\");\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "public abstract boolean mo2163j();", "boolean isBadVersion(int version) {\n return true;\n }", "public ecDSA224() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA224.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA224.<init>():void\");\n }", "AnonymousClass1(java.security.Signer r1, java.security.PublicKey r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void\");\n }", "@Override\n protected JpsSdk<JpsDummyElement> addJdk(String name) {\n String jdkPath = EnvironmentUtil.getValue(\"JDK_11\");\n if (jdkPath == null) return super.addJdk(name);\n JpsTypedLibrary<JpsSdk<JpsDummyElement>> newJdk = myModel.getGlobal().addSdk(name, jdkPath, \"11\", JpsJavaSdkType.INSTANCE);\n return newJdk.getProperties();\n }", "public void mo1972o() throws cf {\r\n }", "public Version version()\n/* */ {\n/* 518 */ return PackageVersion.VERSION;\n/* */ }", "int mo742l() throws RemoteException;", "public void mo1944a() throws cf {\r\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n public int getVersion() {\n return 4;\n }", "static void m6826d() {\n throw new NoSuchMethodError();\n }", "private static boolean isSupportedPlatform(String versionString) {\n boolean isSupportedPlatform = true;\n Matcher pre223Matcher = PRE_223_PATTERN.matcher(versionString);\n if (pre223Matcher.matches()) {\n int majorVersion = Integer.parseInt(pre223Matcher.group(\"major\"));\n int updateVersion = Integer.parseInt(pre223Matcher.group(\"update\"));\n if (majorVersion != 8) {\n logger.warn(\"Skipping tests because JDK is unsupported: \" + versionString);\n isSupportedPlatform = false;\n }\n if (updateVersion < 272) {\n logger.warn(\"Skipping tests because JDK is unsupported: \" + versionString);\n isSupportedPlatform = false;\n }\n } else {\n int majorVersion = 0;\n /* Handle versions like 11.0.9, 16-internal, 16 */\n int dotIndex = versionString.indexOf('.');\n if (dotIndex > 0) {\n majorVersion = Integer.parseInt(versionString.substring(0, dotIndex));\n } else {\n int dashIndex = versionString.indexOf('-');\n if (dashIndex > 0) {\n majorVersion = Integer.parseInt(versionString.substring(0, dashIndex));\n } else {\n majorVersion = Integer.parseInt(versionString);\n }\n }\n if (majorVersion < 11) {\n logger.warn(\"Skipping tests because JDK is unsupported: \" + versionString);\n isSupportedPlatform = false;\n }\n }\n return isSupportedPlatform;\n }", "@Override\n public void onNoNewVersionDetected() {\n\n }", "@Test\n\tpublic void testSimpleAuthorizingAccount_8()\n\t\tthrows Exception {\n\t\tCollection principals = new Vector();\n\t\tObject credentials = new Object();\n\t\tString realmName = \"\";\n\t\tSet<String> roleNames = new HashSet();\n\t\tSet<Permission> permissions = new HashSet();\n\n\t\tSimpleAuthorizingAccount result = new SimpleAuthorizingAccount(principals, credentials, realmName, roleNames, permissions);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/authz/SimpleAuthorizingAccount : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "public java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: javax.crypto.JarVerifier.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.run():java.lang.Object\");\n }", "private void kk12() {\n\n\t}", "private final boolean shouldProposeGenerics(IJavaProject project) {\n\t\treturn true;\n\t\t/*\n\t\tString sourceVersion;\n\t\tif (project != null)\n\t\t\tsourceVersion= project.getOption(JavaCore.COMPILER_SOURCE, true);\n\t\telse\n\t\t\tsourceVersion= JavaCore.getOption(JavaCore.COMPILER_SOURCE);\n\n\t\treturn sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;\n\t\t*/\n\t}", "@Override\r\n \tprotected boolean supportInterpreter() {\n \t\treturn false;\r\n \t}", "public static int getJavaVersion() {\n try {\n if (Daten.javaVersion.startsWith(\"1.\")) {\n return Integer.parseInt(Daten.javaVersion.substring(2, 3));\n }\n return 99;\n } catch (Exception e) {\n return 0;\n }\n }", "boolean hasJvm();", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "protected Signer() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>():void\");\n }", "private static void showJava(String string) { TODO Auto-generated method stub\n\t//\n\t\n}", "@Test\n\tpublic void testSimpleAuthorizingAccount_7()\n\t\tthrows Exception {\n\t\tObject principal = new Object();\n\t\tObject credentials = new Object();\n\t\tString realmName = \"\";\n\t\tSet<String> roleNames = new HashSet();\n\t\tSet<Permission> permissions = new HashSet();\n\n\t\tSimpleAuthorizingAccount result = new SimpleAuthorizingAccount(principal, credentials, realmName, roleNames, permissions);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/authz/SimpleAuthorizingAccount : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Override\n public int getEffectiveMajorVersion() {\n return 0;\n }", "@Override\n\tpublic void testCompatibility() {\n\t\tieWebDriver.checkCompatibility();\n\t}", "@Override\n public int getMajorVersion() {\n return 2;\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "void m5768b() throws C0841b;", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "CharSequence mo740j() throws RemoteException;", "public static int getJDKVersion() {\n return Integer.parseInt(System.getProperty(\"java.version\").replaceAll(\"^(?:1\\\\.)?(\\\\d+).*\", \"$1\"));\n }", "@Test\n\tpublic void testSimpleAuthorizingAccount_9()\n\t\tthrows Exception {\n\t\tCollection principals = new Vector();\n\t\tObject credentials = new Object();\n\t\tString realmName = \"\";\n\t\tSet<String> roleNames = new HashSet();\n\t\tSet<Permission> permissions = null;\n\n\t\tSimpleAuthorizingAccount result = new SimpleAuthorizingAccount(principals, credentials, realmName, roleNames, permissions);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/authz/SimpleAuthorizingAccount : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "private boolean isBadVersion(int n) {\n\t\treturn false;\n\t}", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "public static String toLegacyKey(String keyword) {\n/* 1272 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }", "void m5771e() throws C0841b;", "public void setUp() throws Exception {\n jvmVersion = System.getProperty(\"java.class.version\");\n System.setProperty(\"java.class.version\", \"47.0\");\n vendor = System.getProperty(\"java.vendor\");\n System.setProperty(\"java.vendor\", \"Sun Microsystems\");\n }", "@Override\n public void func_104112_b() {\n \n }", "public ecDSA() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA.<init>():void\");\n }", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "void m5770d() throws C0841b;", "@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n\t\tString st1= \"jdk\" + 6.0;\n\t\tString st2 = st1 + \" Ư¡\";\n\t\tSystem.out.println(st2);\n\t\tString st3 = \"jdk\"+3+3.0;\n\t\tString st4 = 3+3.0+\"jdk\";\n\t\tSystem.out.println(st3);\n\t\tSystem.out.println(st4);\n\t\t\n\t\n\t}", "public abstract String majorVersion();", "@Test(timeout = 4000)\n public void test54() throws Throwable {\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n SystemInUtil.addInputLine(\"0(u\");\n int int0 = 369;\n // Undeclared exception!\n try { \n jSTerm0.toStr();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "private native static int getLibMajorVersion();", "protected static native String getVersion();", "public static Object gvcBuildDate(Object... arg) {\r\nUNSUPPORTED(\"7r5j1w6y3ov7ta18s257h2rqv\"); // char *gvcBuildDate(GVC_t* gvc) { return gvc->common.info[2]; }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "private CryptoSunJCE() {\n\t}", "public int getBasicConstraints() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getBasicConstraints():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getBasicConstraints():int\");\n }", "boolean hasKotlinSupportVersion();", "public void mo1966i() throws cf {\r\n }", "@Test\n\tpublic void testSimpleAuthorizingAccount_10()\n\t\tthrows Exception {\n\t\tCollection principals = new Vector();\n\t\tObject credentials = new Object();\n\t\tString realmName = \"\";\n\t\tSet<String> roleNames = new HashSet();\n\t\tSet<Permission> permissions = new HashSet();\n\n\t\tSimpleAuthorizingAccount result = new SimpleAuthorizingAccount(principals, credentials, realmName, roleNames, permissions);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/authz/SimpleAuthorizingAccount : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSimpleAuthorizingAccount_6()\n\t\tthrows Exception {\n\t\tObject principal = new Object();\n\t\tObject credentials = new Object();\n\t\tString realmName = \"\";\n\t\tSet<String> roleNames = new HashSet();\n\t\tSet<Permission> permissions = null;\n\n\t\tSimpleAuthorizingAccount result = new SimpleAuthorizingAccount(principal, credentials, realmName, roleNames, permissions);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/authz/SimpleAuthorizingAccount : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}" ]
[ "0.5879781", "0.5879035", "0.5661754", "0.5649055", "0.56156635", "0.55948514", "0.5539267", "0.55387837", "0.55259675", "0.550588", "0.54915017", "0.5477097", "0.54701674", "0.5468485", "0.5449915", "0.54345185", "0.54182506", "0.54165107", "0.54113454", "0.53842235", "0.53833455", "0.5379979", "0.5370587", "0.53632843", "0.5348608", "0.53482187", "0.53449446", "0.53383094", "0.5326522", "0.5322622", "0.5316932", "0.5300977", "0.5262201", "0.525974", "0.5256761", "0.52549523", "0.5249893", "0.522319", "0.5221016", "0.52139384", "0.5210771", "0.5204848", "0.5198841", "0.51871836", "0.51869076", "0.5181413", "0.5169934", "0.51578194", "0.51558805", "0.51503897", "0.5147646", "0.5146559", "0.51432115", "0.51422006", "0.51359916", "0.5133468", "0.51272684", "0.512371", "0.512189", "0.5121043", "0.5119734", "0.51175183", "0.51136404", "0.51041245", "0.5103691", "0.509543", "0.50885236", "0.50865865", "0.5079937", "0.50706226", "0.5068188", "0.50637954", "0.5049265", "0.5049125", "0.50483716", "0.50459754", "0.50391245", "0.5030059", "0.5028063", "0.5007397", "0.500569", "0.5003768", "0.4998302", "0.49922717", "0.49912986", "0.49897924", "0.49885002", "0.49880752", "0.49831954", "0.49823147", "0.49814123", "0.49804682", "0.49800336", "0.4977519", "0.49757788", "0.4975306", "0.4971863", "0.49713793", "0.4970187", "0.49688336", "0.496872" ]
0.0
-1
Downloads the file that is specified by the URL into localDirectory Precond. localFileName != null && source is OK
private void downloadFile(URL source, File localDirectory, String localFileName, boolean griffin) throws SocketException { if (griffin) { try { downloadFileFromGriffin(source, localDirectory, localFileName); } catch (IOException ex) { downloadFileFromMentor(source, localDirectory, localFileName); } } else { downloadFileFromMentor(source, localDirectory, localFileName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void download(URL link, File localFile) {\n\n try {\n downloading = true;\n \n input = link.openStream();\n output = new FileOutputStream(localFile);\n\n while ((bytes = input.read()) != -1) {\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void downloadUrl(URL url, String localFilename) throws IOException {\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n URLConnection urlConnection = url.openConnection();\n\n is = urlConnection.getInputStream();\n fos = new FileOutputStream(localFilename);\n\n byte[] buffer = new byte[4096];\n int len;\n\n while ((len = is.read(buffer)) > 0) {\n fos.write(buffer, 0, len);\n }\n } finally {\n try {\n if (is != null) {\n is.close();\n }\n } finally {\n if (fos != null) {\n fos.close();\n }\n }\n }\n }", "static String download(String fileURL, String destinationDirectory, String downloadedFileName) throws IOException {\n URL url = new URL(fileURL);\r\n InputStream is = url.openStream();\r\n // Stream to the destionation file\r\n FileOutputStream fos;\r\n if (destinationDirectory == null) {// save to working folder\r\n fos = new FileOutputStream(downloadedFileName);\r\n } else {\r\n fos = new FileOutputStream(destinationDirectory + \"/\" + downloadedFileName);\r\n }\r\n // Read bytes from URL to the local file\r\n byte[] buffer = new byte[4096];\r\n int bytesRead = 0;\r\n\r\n System.out.print(\"Downloading \" + downloadedFileName);\r\n while ((bytesRead = is.read(buffer)) != -1) {\r\n System.out.print(\".\"); // Progress bar :)\r\n fos.write(buffer, 0, bytesRead);\r\n }\r\n System.out.println(\"done!\");\r\n\r\n // Close destination stream\r\n fos.close();\r\n // Close URL stream\r\n is.close();\r\n return downloadedFileName;\r\n }", "private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}", "void downloadingFile(String path);", "private File createDownloadLocalFile(String downloadFileUrl)\n {\n File dir = null;\n File ret = null;\n\n try {\n if (downloadFileUrl != null && !TextUtils.isEmpty(downloadFileUrl)) {\n int lastIndex = downloadFileUrl.lastIndexOf(\"/\");\n if (lastIndex > -1) {\n String downloadFileName = newFilename;\n File downloadDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n String downloadDirectoryPath =\n downloadDirectory.getPath()\n + File.separator\n + Constants.APP_NAME;\n\n dir = new File(downloadDirectoryPath);\n if(!dir.exists()){\n dir.mkdirs();\n }\n\n ret = new File(downloadDirectoryPath + \"/\" + downloadFileName);\n\n if (!ret.exists()) {\n ret.createNewFile();\n }\n }\n }\n }catch(IOException ex)\n {\n //Log.e(\"Download Manager\", ex.getMessage(), ex);\n }finally {\n return ret;\n }\n }", "public String download_local(String localPath, String newfilename) {\n\t\t\n\t\tString resp = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString dest = newfilename;\n\t\t\t\n\t\t\tFile destfile = new File(dest);\n\t\t\t\n\t\t\tif(destfile.exists()) {\n\t\t\t\t\n\t\t\t\tdestfile.delete();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcopy(localPath, dest);\n\t\t\t\n\t\t\tresp = \"{\\\"ret\\\": \\\"success\\\", \\\"path\\\": \\\"\" + StringEscapeUtils.escapeJson(dest) + \"\\\"}\";\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\tresp = \"{\\\"ret\\\": \\\"failure\\\", \\\"reason\\\": \\\"\" + e.getLocalizedMessage() + \"\\\"}\";\n\t\t\t\n\t\t}\n\n\t\treturn resp;\n\t\t\n\t}", "public void saveLink() {\n\t\t\t// check to see if the file exists locally\n\t\t\tString localFile = localUrl + \"/\" + filePath;\n\n\t\t\tboolean finished = false;\n\t\t\twhile (!finished) {\n\t\t\t\ttry {\n\n\t\t\t\t\tFile file = new File(localFile);\n\t\t\t\t\t// build remote path\n\t\t\t\t\tString finalRemoteUrl = remoteUrl;\n\t\t\t\t\tif (filePath.startsWith(\"/\")) {\n\t\t\t\t\t\tURL url = new URL(finalRemoteUrl);\n\t\t\t\t\t\tfinalRemoteUrl = url.getProtocol() + \"://\" + url.getHost();\n\t\t\t\t\t}\n\n\t\t\t\t\tString remoteFile = finalRemoteUrl + filePath;\n\t\t\t\t\tif (file.canRead() && !file.isDirectory()) {\n\t\t\t\t\t\tLong fileLength = file.length();\n\t\t\t\t\t\t// if it does, check to see if it is complete based on\n\t\t\t\t\t\t// length of file\n\t\t\t\t\t\tlogger.trace(\"file/dir already exists: {}\", localFile);\n\t\t\t\t\t\tURLConnection connection = buildConnection(remoteFile);\n\t\t\t\t\t\tMap<String, List<String>> map = connection.getHeaderFields();\n\t\t\t\t\t\tif (map.get(\"Content-Length\") == null) {\n\t\t\t\t\t\t\tlogger.debug(\"no header fields were returned when attempting to access: {}\", remoteFile);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLong remoteLength = Long.parseLong(map.get(\"Content-Length\").iterator().next());\n\n\t\t\t\t\t\t// if it is not complete, resume downloading\n\t\t\t\t\t\tif (remoteLength > fileLength || fileLength == 0) {\n\t\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile, fileLength, remoteLength);\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.trace(\"file is already complete, moving on\");\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if it is does not exist, create the directory or file\n\t\t\t\t\t\tlogger.trace(\"file does not exist: {}\", localFile);\n\n\t\t\t\t\t\t// take care of the directory structure\n\t\t\t\t\t\tFiles.createParentDirs(new File(localFile));\n\n\t\t\t\t\t\t// save the file\n\t\t\t\t\t\tlogger.trace(\"preparing to write remote file {} to local file {}\", new Object[] { remoteFile,\n\t\t\t\t\t\t\t\tlocalFile });\n\n\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile);\n\t\t\t\t\t\tlogger.trace(\"file created: {}\", localFile);\n\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// timeout took place. pause, then let the loop execute\n\t\t\t\t\t// again\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tfinished = true;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tlogger.debug(\"will try again in {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(TIMEOUT_TIME);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\tlogger.error(\"failed while trying to wait {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\t}\n\t\t\t\t\tlogger.debug(\"just woke up, trying again\");\n\t\t\t\t\tfinished = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounter.incrementAndGet();\n\t\t\tlogger.debug(\"successfully downloaded the file {} from {} to {} - {}\", new Object[] { filePath, remoteUrl,\n\t\t\t\t\tlocalUrl, completionMessage() });\n\n\t\t\tLinesToFileWriter lineWriter = new LinesToFileWriter(localUrl, COMPLETED_PATH_LIST, true);\n\t\t\t// write line to completed file list\n\t\t\tlineWriter.writeLine(filePath);\n\t\t\tlineWriter.close();\n\t\t}", "public synchronized void download(String remoteBaseDir, String localBaseDir) {\r\n\t\ttry {\r\n\t\t\tif (!ftpClient.isConnected()) {\r\n\t\t\t\tftpClient.connect(host);\r\n\t\t\t\tftpClient.login(user, password);\r\n\t\t\t}\r\n\t\t\tFile localDir = new File(localBaseDir);\r\n\t\t\tif (!localDir.exists()) {\r\n\t\t\t\tlocalDir.mkdirs();\r\n\t\t\t}\r\n\r\n\t\t\tremoteBaseDir = remoteBaseDir.endsWith(REMOTE_PATH_SEPERATOR) ? remoteBaseDir\r\n\t\t\t\t\t: remoteBaseDir + REMOTE_PATH_SEPERATOR;\r\n\t\t\tif (ftpClient.changeWorkingDirectory(remoteBaseDir)) {\r\n\t\t\t\tftpClient.enterLocalPassiveMode();\r\n\t\t\t\tFTPFile[] files = ftpClient.listFiles(remoteBaseDir);\r\n\t\t\t\tfor (FTPFile f : files) {\r\n\t\t\t\t\tif (f.isFile()) {\r\n\t\t\t\t\t\tif (cache.checkStandby(f.getName(), f.getSize())) {\r\n\t\t\t\t\t\t\tdownloadFile(f, localBaseDir);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString newRemote = remoteBaseDir + f.getName();\r\n\t\t\t\t\t\tString newLocal = new File(localBaseDir, f.getName()).getCanonicalPath();\r\n\t\t\t\t\t\tdownload(newRemote, newLocal);\r\n\t\t\t\t\t\tftpClient.changeToParentDirectory();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.warn(e.getMessage());\r\n\t\t}\r\n\t}", "public static String downloadFileFromURL(Context mContext, String urlLinkToDownloadFrom, String downloadedFileName) {\n int count;\n try {\n URL url = new URL(urlLinkToDownloadFrom);\n URLConnection connection = url.openConnection();\n connection.connect();\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\n String newFileLocation = mContext.getExternalFilesDir(null).toString() + \"/\" + downloadedFileName;\n writeLog(LOG_LEVEL.INFO, \"File downloaded at: \" + newFileLocation);\n OutputStream output = new FileOutputStream(newFileLocation);\n byte[] data = new byte[1024];\n while ((count = input.read(data)) != -1) {\n output.write(data, 0, count);\n }\n output.flush();\n output.close();\n input.close();\n hideProgressDialog();\n return newFileLocation;\n } catch (Exception e) {\n writeLog(LOG_LEVEL.ERROR, e.getMessage());\n hideProgressDialog();\n return null;\n }\n }", "public String getSourceDownloadUrl();", "@Override\r\n\tpublic boolean downloadFile() throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \" + getClass().getName() + \":download()\");\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tgetFileData(0, \"\");\r\n\t\t\tdisconnect();\r\n\t\t\tif (stop) {\r\n\t\t\t\tthrow new FileSystemUtilException(\"999\");\r\n\t\t\t}\r\n\t\t\tFileSystemUtilsPlugin zu = new FileSystemUtilPluginFactory().getFileUtils(FileSystemTypeConstants.ZIP);\r\n\t\t\tif (zu.isZip(localFilePath)) {\r\n\r\n\t\t\t\t// unzip the localfilepath (a common method at import util level\r\n\t\t\t\t// can be used)\r\n\t\t\t\t// rename the extracted file to localfilepath+\".txt\r\n\t\t\t\t// delete the localfilepath\r\n\t\t\t}\r\n\t\t\tzu = null;\r\n\t\t\tlogger.debug(\"End: \" + getClass().getName() + \":download()\");\r\n\t\t\treturn true;\r\n\t\t} catch (FileSystemUtilException e) {\r\n\t\t\tdisconnect();\r\n\t\t\tlogger.info(new Date() + \":: Unable to download with parameters \" + \", username= \" + username\r\n\t\t\t\t\t+ \" , password = \" + password + \" , remotefilePath = \" + remoteFilePath + \", \" + \"localFilePath = \"\r\n\t\t\t\t\t+ localFilePath + \" , host= \" + hostname + \" and port =\" + port);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "String download(String path) throws IOException;", "private void dowloadFile(String dir, String file, String webPage) throws IOException {\n\t\tURL url = new URL(webPage);\n\t\tURLConnection connection = url.openConnection();\n\t\tconnection.connect();\n\t\tInputStream input = new BufferedInputStream(url.openStream());\n\t\tFile f = new File(dir, file);\n\t\tif (f.exists()) f.delete();\n\t\tf.getParentFile().mkdirs();\n\t\tFileOutputStream output = new FileOutputStream(f);\n\t\tbyte data[] = new byte[1024];\n\t\tint n;\n\t\twhile ((n = input.read(data)) != -1) {\n\t\t\toutput.write(data, 0, n);\n\t\t}\n\t\toutput.flush();\n\t\toutput.close();\n\t\tinput.close();\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public static java.io.File tryGet(String url) {\n\n java.io.File file = new java.io.File(url);\n if(file.exists() && !file.isDirectory()) {\n\n return file;\n }\n\n return null;\n }", "private String downloadFile(String url) throws Exception {\n StringBuilder builder = new StringBuilder();\n \n URL u = new URL(url);\n URLConnection conn = u.openConnection();\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n while ((line = rd.readLine()) != null) {\n builder.append(line);\n }\n \n return builder.toString();\n }", "protected void downloadTo(VFSTransfer transfer,VFile targetLocalFile)\n throws VlException\n {\n // copy contents into local file:\n vrsContext.getTransferManager().doStreamCopy(transfer,this,targetLocalFile); \n }", "public static String readFileFromURL(Context mContext, String urlLink, String fileName) {\n if (fileName == null || fileName.trim().equalsIgnoreCase(\"\")) {\n fileName = \"Dummy.spd\";\n }\n try {\n String newFileLocation = downloadFileFromURL(mContext, urlLink, fileName);\n StringBuilder sb = new StringBuilder();\n File myObj = new File(newFileLocation);\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String readData = myReader.nextLine();\n sb.append(readData);\n sb.append(\"\\n\");\n }\n myReader.close();\n hideProgressDialog();\n return sb.toString();\n } catch (Exception e) {\n writeLog(LOG_LEVEL.ERROR, e.getMessage());\n hideProgressDialog();\n }\n return null;\n }", "public static void downloadFileFromUrl(String fileName, String fileUrl)\n throws MalformedURLException, IOException {\n System.out.println(\"opening connection\");\n URL url = new URL(fileUrl);\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setRequestMethod(\"GET\");\n httpURLConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13\");\n httpURLConnection.connect();\n InputStream inputStream = url.openStream();\n FileOutputStream fileOutputStream = new FileOutputStream(new File(fileName));\n\n System.out.println(\"Downloading from URL and writing to file...\");\n\n int length = -1;\n byte[] buffer = new byte[1024];\n while ((length = inputStream.read(buffer)) > -1) {\n fileOutputStream.write(buffer, 0, length);\n }\n fileOutputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n }", "boolean download(\n String remoteFileName, OutputStream destination);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "public File getFile(String url){\n String filename=String.valueOf(url.hashCode());\n //Another possible solution (thanks to grantland)\n //String filename = URLEncoder.encode(url);\n File f = new File(cacheDir, filename);\n return f;\n \n }", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "public static boolean executeSoundwaveDownload(String serverUrl, File localFile) {\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tlocalFile.createNewFile(); // create the file\n\t\t\tHttpURLConnection conn = requestGet(serverUrl);\n\t\t\tconn.connect();\n\t\t\tif(conn.getResponseCode() == HttpStatus.SC_OK) {\n\t\t\t\tinput = new BufferedInputStream(conn.getInputStream());\n\t\t\t\treadToFile(input, localFile);\n\t\t\t\tinput.close();\n\t\t\t return true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tif(input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// should not happen\n\t\t\t\t}\n\t\t\t}\n return false;\n } catch (IOException e) {\n \tif(input != null) {\n \t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// should not happen\n\t\t\t\t}\n \t}\n \tif(localFile.exists()) localFile.delete(); // we need to delete the local file on error\n return false;\n }\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "void downloadingFolder(String remoteFolder);", "public static boolean wget(URL source, Path dest) {\r\n if (source == null) {\r\n throw new IllegalArgumentException(\"The source URL is null\");\r\n }\r\n if (dest == null) {\r\n throw new IllegalArgumentException(\"The destination file path is null\");\r\n }\r\n boolean successful = true;\r\n try (FileOutputStream out = new FileOutputStream(dest.toFile())) {\r\n try (InputStream in = source.openStream()) {\r\n int numread = 0;\r\n int bufSize = 1024;\r\n byte[] buffer = new byte[bufSize];\r\n while ((numread = in.read(buffer, 0, bufSize)) != -1) {\r\n out.write(buffer, 0, numread);\r\n }\r\n }\r\n } catch (IOException e) {\r\n logger.warn(\"Fail to download file from \\\"{}\\\" to \\\"{}\\\", {}\", source, dest.toFile().getAbsolutePath(),\r\n e.getMessage());\r\n successful = false;\r\n }\r\n return successful;\r\n }", "public static void httpDownload(String url, String destFile) throws Exception {\r\n \t\tFileOutputStream out = null;\r\n \t\ttry {\r\n \t\t\tout = new FileOutputStream(destFile);\r\n \t\t\thttpDownload(url, out);\r\n \r\n \t\t} finally {\r\n \t\t\tif (out != null) {\r\n \t\t\t\tout.close();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void DownloadFromUrl(String imageURL, String fileName) {\n\t\tfinal String PATH = \"/data/data/org.draijer.nvkf/\";\n\t\t\n\t\ttry {\n\t\t\tURL url = new URL(imageURL); //you can write here any link\n\t\t\tFile file = new File(PATH+fileName);\n\t\t \n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tLog.d(\"ImageManager\", \"download begining\");\n\t\t\tLog.d(\"ImageManager\", \"download url:\" + url);\n\t\t\tLog.d(\"ImageManager\", \"downloaded file name:\" + fileName);\n\t\t\n\t\t\t/* Open a connection to that URL. */\n\t\t\tURLConnection ucon = url.openConnection();\n\t\t \n\t\t\t/*\n\t\t\t * Define InputStreams to read from the URLConnection.\n\t\t\t */\n\t\t\tBufferedInputStream bis = null;\n\t\t\ttry {\n\t\t\t\tInputStream is = ucon.getInputStream();\n\t\t\t\tbis = new BufferedInputStream(is);\n\t\t\t} catch (Exception e) {\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\tLog.d(\"ImageManager\", \"Error: \" + e);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\t * Read bytes to the Buffer until there is nothing more to read(-1).\n\t\t\t */\n\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\n\t\t\ttry {\n\t\t\t\tint current = 0;\n\t\t\t\twhile ((current = bis.read()) != -1) {\n\t\t\t\t baf.append((byte) current);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tLog.d(\"ImageManager\", \"Error: \" + e);\n\t\t\t}\n\t\t\t\n\t\t\t/* Convert the Bytes read to a String. */\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tfos.write(baf.toByteArray());\n\t\t\tfos.close();\n\t\t\tLog.d(\"ImageManager\", \"download ready in \"+ ((System.currentTimeMillis() - startTime) / 1000) + \" sec\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tLog.d(\"ImageManager\", \"Error: \" + e);\n\t\t}\n\t}", "@VisibleForTesting\n\tDocument parseLocalFile(String url) throws IOException {\n\t\treturn Jsoup.parse(new File(url), \"UTF-8\", \"\");\n\t}", "private static void getFile(String strFileName, String strURL, Boolean blnExtract)\r\n {\r\n String webPageContentsRaw = \"\";\r\n String webPageContentsCleaned = \"\";\r\n String webPageURL = strURL;\r\n INET net = new INET();\r\n\r\n\r\n\r\n if(!blnExtract)\r\n {\r\n System.out.println(strFileName);\r\n try {\r\n webPageContentsRaw = net.getURLRaw(webPageURL);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n webPageContentsCleaned = webPageContentsRaw.trim();\r\n\r\n if (strFileName.equals(strFileName.endsWith(\"data/FBIN.txt\")||strFileName.endsWith(\"data/World.txt\"))) {\r\n webPageContentsCleaned = net.getPREData(webPageContentsRaw);\r\n }\r\n\r\n webPageContentsCleaned = webPageContentsCleaned.trim();\r\n\r\n try {\r\n net.saveToFile(strFileName, webPageContentsCleaned);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void download(URL url, File location, HttpDownloadListener dl)\n\tthrows CanceledDownloadException, IOException {\n\tHttpResponse hr = _httpRequest.doGetRequest(url);\n\tdownload(hr, location, dl);\n }", "void fileDownloaded(String path);", "private static void readToFile(InputStream in, File localFile) throws IOException, FileNotFoundException {\n\t\tOutputStream output = null;\n\t\ttry {\n\t\t\toutput = new FileOutputStream(localFile);\n\t\t\t// download the file\n\t\t\tin = new BufferedInputStream(in);\n\t\t\tbyte data[] = new byte[1024];\n\t\t\tint count;\n\t\t\twhile ((count = in.read(data)) != -1) {\n\t\t\t\toutput.write(data, 0, count);\n\t\t\t}\n\t\t\toutput.flush();\n\t\t\toutput.close();\n\t\t}\n\t\tfinally {\n\t\t\tif(output != null) {\n\t\t\t\toutput.flush(); // close the local file in any case\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t}\n\t}", "public File get( String url, String suffix ) throws MojoExecutionException\n {\n if ( m_wagon == null )\n {\n m_log.error( \"must be connected first!\" );\n return null;\n }\n\n File file = null;\n try\n {\n file = File.createTempFile( String.valueOf( System.currentTimeMillis() ), suffix );\n }\n catch ( IOException e )\n {\n throw new MojoExecutionException( \"I/O problem\", e );\n }\n\n try\n {\n m_wagon.get( url, file );\n }\n catch ( TransferFailedException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Transfer failed\", e );\n }\n catch ( AuthorizationException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Authorization failed\", e );\n }\n catch ( ResourceDoesNotExistException e )\n {\n file.delete(); // return non-existent file\n }\n\n return file;\n }", "public static void finalActivity(String fileName, String URL){\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSystem.out.println(\"Connecting to URL...\");\n\t\t\t\n\t\t\tdoc = Jsoup.connect(URL)\n\t\t\t\t\t.userAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0\")\n\t\t\t\t\t.ignoreHttpErrors(true)\n\t\t\t\t\t.ignoreContentType(true)\n\t\t\t\t\t.maxBodySize(0)\n\t\t\t\t\t.timeout(100000)\n\t\t\t\t\t.get();\n\t\t\t\n\t\t\tSystem.out.println(\"Successfully connected!\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"ERROR: Unable to connect to website.\");\n\t\t}\n\t\t\n\t\t//boolean to see if download failed\n\t\tboolean success = false;\n\t\t\n\t\t//Will go through each element trying to download song.\n\t\tSystem.out.println(\"Organizing songs in best order...\");\n\t\tElements songs = FetchSong.fetchBestSongOrder(doc, fileName);\n\t\tSystem.out.println(\"Organized songs...\");\n\t\tfor(Element x : songs){\n\t\t\t\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Attempting to download from element: \" + FetchSong.specifySong(x));\n\t\t\t\tFetchSong.downloadSong(FetchSong.fetchSong(FetchSong.fetchSongURL(x)), fileName);\n\t\t\t\t\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\t\t\t} catch (UnknownHostException e){\n\t\t\t\tSystem.err.println(\"ERROR: Link is either expired or invalid. Trying another link...\");\n\t\t\t} catch (IOException e){\n\t\t\t\t//Empty because it will already be handled\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(success)\n\t\t\tSystem.out.println(\"SUCCESS: SONG DOWNLOADED - \" + fileName);\n\t\telse\n\t\t\tSystem.err.println(\"ERROR: None of the links for [\" + fileName + \"] were valid.\");\n\t}", "public static boolean downloadFile(String url, String destination) throws Exception {\n BufferedInputStream bi = null;\n BufferedOutputStream bo = null;\n File destfile;\n byte BUFFER[] = new byte[100];\n java.net.URL fileurl;\n URLConnection conn;\n fileurl = new java.net.URL(url);\n conn = fileurl.openConnection();\n long fullsize = conn.getContentLength();\n long onepercent = fullsize / 100;\n MessageFrame.setTotalDownloadSize(fullsize);\n bi = new BufferedInputStream(conn.getInputStream());\n destfile = new File(destination);\n if (!destfile.createNewFile()) {\n destfile.delete();\n destfile.createNewFile();\n }\n bo = new BufferedOutputStream(new FileOutputStream(destfile));\n int read = 0;\n int sum = 0;\n long i = 0;\n while ((read = bi.read(BUFFER)) != -1) {\n bo.write(BUFFER, 0, read);\n sum += read;\n i += read;\n if (i > onepercent) {\n i = 0;\n MessageFrame.setDownloadProgress(sum);\n }\n }\n bi.close();\n bo.close();\n MessageFrame.setDownloadProgress(fullsize);\n return true;\n }", "public URL getCompleteURL (String fileName)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn new URL (\"file:\" + System.getProperty (\"user.dir\") + \"/\" + fileName);\r\n\t\t}\r\n\t\tcatch (MalformedURLException e)\r\n\t\t{\r\n\t\t\tSystem.err.println (e.getMessage ());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "@Override\r\n protected String doInBackground(String... f_url) {\r\n int count;\r\n try {\r\n String root = Environment.getExternalStorageDirectory().toString();\r\n\r\n System.out.println(\"Downloading\");\r\n URL url = new URL(f_url[0]);\r\n\r\n URLConnection conection = url.openConnection();\r\n conection.connect();\r\n // getting file length\r\n int lenghtOfFile = conection.getContentLength();\r\n\r\n // input stream to read file - with 8k buffer\r\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\r\n\r\n // Output stream to write file\r\n\r\n OutputStream output = new FileOutputStream(root+\"/downloadedfile.jpg\");\r\n byte data[] = new byte[1024];\r\n\r\n long total = 0;\r\n while ((count = input.read(data)) != -1) {\r\n total += count;\r\n\r\n // writing data to file\r\n output.write(data, 0, count);\r\n\r\n }\r\n\r\n // flushing output\r\n output.flush();\r\n\r\n // closing streams\r\n output.close();\r\n input.close();\r\n\r\n } catch (Exception e) {\r\n Log.e(\"Error: \", e.getMessage());\r\n }\r\n\r\n return null;\r\n }", "private String downloadURL(String url) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(url);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\te.printStackTrace();\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "private void beginDownloadStream(String hostName, int port, String path,\n\t\t\tString fileName, boolean exists) throws UrlCacheException {\n\t\t\n\t\ttry {\n\n\t\t\thttpSocket = new Socket(InetAddress.getByName(hostName), port);\n\t\t\toutStream = new PrintWriter((httpSocket.getOutputStream()));\n\t\t\toutStream.print(\"GET \" + path + \" HTTP/1.1\\r\\n\");\n\n\t\t\t// add this part to create a conditional get as the file exists\n\t\t\t// locally\n\t\t\tif (exists) {\n\t\t\t\tlong lastMod = getLastModified(hostName + path);\n\t\t\t\tString date = inOut.convertDateToString(lastMod);\n\n\t\t\t\toutStream.print(\"If-modified-since: \" + date + \"\\r\\n\");\n\t\t\t\toutStream.print(\"Host: \"+hostName+\"\\r\\n\\r\\n\");\n\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\toutStream.print(\"Host: \"+hostName+\"\\r\\n\\r\\n\");\n\t\t\t}\n\t\t\t\n\t\t\toutStream.flush();\n\t\t\tinStream = httpSocket.getInputStream();\n\n\t\t\tpath = hostName + path;\n\t\t\t\n\t\t\twriteToFile(path, fileName, inStream);\t\n\n\t\t\tinStream.close();\n\t\t\toutStream.close();\n\t\t} catch (UnknownHostException e) {\n\t\t\tSystem.out.println(\"ERROR: \" + e.getMessage());\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"ERROR: \" + e.getMessage());\n\t\t} \n\n\t}", "public void downloadFile(String fileURL, String saveDir)\n throws IOException {\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n\n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n\n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n\n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n\n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n\n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n int progress = 0;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n progress += bytesRead;\n setChanged();\n notifyObservers((int) ((progress * 100) / contentLength));\n }\n\n outputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n }", "public File loadFile(String coverUrl, File file) {\r\n\r\n\t\t//File file = new File(filePath);\r\n\t\ttry {\r\n\t\t\t// set the download URL, a url that points to a file on the internet\r\n\t\t\t// this is the file to be downloaded\r\n\t\t\tURL url = new URL(coverUrl);\r\n\r\n\t\t\t// create the new connection\r\n\t\t\tHttpURLConnection urlConnection = (HttpURLConnection) url\r\n\t\t\t\t\t.openConnection();\r\n\r\n\t\t\t// set up some things on the connection\r\n\t\t\turlConnection.setRequestMethod(\"GET\");\r\n\t\t\turlConnection.setDoOutput(true);\r\n\r\n\t\t\t// and connect!\r\n\t\t\turlConnection.connect();\r\n\r\n\t\t\t// this will be used to write the downloaded data into the file we\r\n\t\t\t// created\r\n\t\t\tFileOutputStream fileOutput = new FileOutputStream(file);\r\n\r\n\t\t\t// this will be used in reading the data from the internet\r\n\t\t\tInputStream inputStream = urlConnection.getInputStream();\r\n\t\t\t\r\n\t\t\t //create a buffer...\r\n\t byte[] buffer = new byte[1024];\r\n\t int bufferLength = 0; //used to store a temporary size of the buffer\r\n\r\n\t //now, read through the input buffer and write the contents to the file\r\n\t while ( (bufferLength = inputStream.read(buffer)) > 0 ) {\r\n\t //add the data in the buffer to the file in the file output stream (the file on the sd card\r\n\t fileOutput.write(buffer, 0, bufferLength);\r\n\t }\r\n\t //close the output stream when done\r\n\t fileOutput.close();\r\n\t inputStream.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\r\n\t\t}\r\n\t\treturn file;\r\n\t}", "public URL getURL()\n {\n if( url == null )\n {\n // Check if the file is online or inside the JAR:\n if( filename.matches( SoundSystemConfig.PREFIX_URL ) )\n {\n // Online\n try\n {\n url = new URL( filename );\n }\n catch( Exception e )\n {\n errorMessage( \"Unable to access online URL in \" +\n \"method 'getURL'\" );\n printStackTrace( e );\n return null;\n }\n }\n else\n {\n // Inside the JAR\n url = getClass().getClassLoader().getResource(\n SoundSystemConfig.getSoundFilesPackage() + filename );\n }\n }\n return url;\n }", "private void startDownload(String url) {\n\t\t\turl = \"http://www.it.com.cn/dghome/img/2009/06/23/17/090623_tv_tf2_13h.jpg\";\r\n\t\t\t//String url = \"http://down.mumayi.com/41052/mbaidu\";\r\n\t\t\tUri srcUri = Uri.parse(url);\r\n\t\t\tDownloadManager.Request request = new Request(srcUri);\r\n\t\t\trequest.setDestinationInExternalPublicDir(\r\n\t\t\t\tEnvironment.DIRECTORY_DOWNLOADS, \"/\");\r\n\t\t\trequest.setDescription(\"正在下载\");\r\n\t\t\t DownloadManager mDownloadManager = new DownloadManager(activity.getContentResolver(),\r\n\t\t\t\t\t activity.getPackageName());\r\n\t\t\tmDownloadManager.enqueue(request);\r\n\t\t }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadSuccess(String localFilPath) {\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tFailOpera.Instace(mContext).openFile(localFilPath);\n\t\t\t\t\t\t\t\t\t}", "public static String downloadFile(String fileURL, String saveDir)\n throws IOException {\n String filePath = \"\";\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n\n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n\n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n\n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n\n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n File f = new File(saveFilePath);\n if (!f.exists())\n f.createNewFile();\n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n\n outputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n filePath = saveFilePath;\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n return filePath;\n }", "public void download(String url,File targetFile)throws Exception{\n\t\tdownload(url, targetFile,60*10);\n\t}", "protected static File getFile(URL resourceUrl, String description) throws FileNotFoundException {\r\n\t\t//assert (resourceUrl == null);\r\n\t\tif (!URL_PROTOCOL_FILE.equals(resourceUrl.getProtocol())) {\r\n\t\t\tthrow new FileNotFoundException(\r\n\t\t\t\t\tdescription + \" cannot be resolved to absolute file path \" +\r\n\t\t\t\t\t\"because it does not reside in the file system: \" + resourceUrl);\r\n\t\t}\r\n\t\tFile file = null;\r\n\t\ttry {\r\n\t\t\tfile = new File(URLDecoder.decode(resourceUrl.getFile(), \"UTF-8\"));\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn file;\r\n\t}", "protected void onPostExecute(String file_url) {\n }", "protected void onPostExecute(String file_url) {\n }", "public File fetch(Artifact artifact, LocalCacheStore localCache)\n throws SavantException {\n File artifactFile = executeCheckout(artifact.getArtifactFile());\n if (artifactFile.exists()) {\n artifactFile = localCache.store(artifact, artifactFile);\n } else {\n artifactFile = null;\n }\n\n return artifactFile;\n }", "private String downloadURL(String myurl) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(myurl);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "private File downloadFile(String osSdkRoot, ITaskMonitor monitor, boolean forceHttp) {\n String name = getParentPackage().getShortDescription();\n String desc = String.format(\"Downloading %1$s\", name);\n monitor.setDescription(desc);\n monitor.setResult(desc);\n String link = getUrl();\n if (!link.startsWith(\"http://\") && !link.startsWith(\"https://\") && !link.startsWith(\"ftp://\")) {\n Package pkg = getParentPackage();\n RepoSource src = pkg.getParentSource();\n if (src == null) {\n monitor.setResult(\"Internal error: no source for archive %1$s\", name);\n return null;\n }\n String repoXml = src.getUrl();\n int pos = repoXml.lastIndexOf('/');\n String base = repoXml.substring(0, pos + 1);\n link = base + link;\n }\n if (forceHttp) {\n link = link.replaceAll(\"https://\", \"http://\");\n }\n int pos = link.lastIndexOf('/');\n String base = link.substring(pos + 1);\n File tmpFolder = getTempFolder(osSdkRoot);\n if (!tmpFolder.isDirectory()) {\n if (tmpFolder.isFile()) {\n deleteFileOrFolder(tmpFolder);\n }\n if (!tmpFolder.mkdirs()) {\n monitor.setResult(\"Failed to create directory %1$s\", tmpFolder.getPath());\n return null;\n }\n }\n File tmpFile = new File(tmpFolder, base);\n if (tmpFile.exists()) {\n if (tmpFile.length() == getSize() && fileChecksum(tmpFile, monitor).equalsIgnoreCase(getChecksum())) {\n return tmpFile;\n }\n deleteFileOrFolder(tmpFile);\n }\n if (fetchUrl(tmpFile, link, desc, monitor)) {\n return tmpFile;\n } else {\n deleteFileOrFolder(tmpFile);\n return null;\n }\n }", "public static String getFile(String url) {\n final String USER_AGENT = \"Mozilla/5.0\";\n\n StringBuilder response = null;\n try {\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n // request method\n con.setRequestMethod(\"GET\");\n\n //add request header\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n System.out.println(\"Sending 'GET' request to URL : \" + url);\n System.out.println(\"Response Code : \" + responseCode);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n response = new StringBuilder();\n\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine).append(\"\\n\");\n }\n in.close();\n return response.toString();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public void downloadFile() {\n String path = images.get(viewPager.getCurrentItem()).getFilePath();\n String uRl = \"https://image.tmdb.org/t/p/w500\" + path;\n String name = path.substring(1, 5);\n File direct = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Cinemato\");\n if (!direct.exists()) {\n direct.mkdirs();\n }\n DownloadManager mgr = (DownloadManager) Objects.requireNonNull(getContext())\n .getSystemService(Context.DOWNLOAD_SERVICE);\n Uri downloadUri = Uri.parse(uRl);\n DownloadManager.Request request = new DownloadManager.Request(\n downloadUri);\n request.setAllowedNetworkTypes(\n DownloadManager.Request.NETWORK_WIFI\n | DownloadManager.Request.NETWORK_MOBILE)\n .setAllowedOverRoaming(false).setTitle(name)\n .setDescription(\"Saved images from Cinemato\")\n .setDestinationInExternalPublicDir(Environment.DIRECTORY_PICTURES + \"/Cinemato\", name + \".jpg\");\n assert mgr != null;\n mgr.enqueue(request);\n // Open Download Manager to view File progress\n Toast.makeText(getContext(), \"Downloading...\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));\n }", "private boolean DownloadFile(String s, String name) {\n boolean success;\n try {\n new File(data_path).mkdirs();\n URL url = new URL(s);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setConnectTimeout(5000);\n InputStream is = con.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n FileWriter fw = new FileWriter(data_path + name);\n PrintWriter pw = new PrintWriter(fw);\n String line;\n while ((line = br.readLine()) != null) {\n pw.println(line);\n }\n fw.close();\n br.close();\n success = true;\n } catch (MalformedURLException e) {\n return false;\n } catch (SocketTimeoutException e) {\n return false;\n } catch (IOException e) {\n return false;\n }\n return success;\n }", "private String downloadFile(String theTicker) throws MalformedURLException, IOException\r\n {\r\n String preUrl = \"http://chart.finance.yahoo.com/table.csv?s=\" + theTicker + \"&a=3&b=12&c=1996&d=0&e=31&f=2017&g=d&ignore=.csv\";\r\n String fileLocString = \"StockFiles\\\\\" + theTicker + \".csv\";\r\n\r\n File currentFile = new File (fileLocString); // creates the file object to be used two lines down\r\n URL currentUrl = new URL (preUrl); //creates a url to use on next line\r\n FileUtils.copyURLToFile(currentUrl, currentFile); //actually downloads the file\r\n \r\n \r\n return fileLocString;\r\n }", "private String downloadFile(String strURL, int index, boolean delete)\n {\n int npos = strURL.lastIndexOf('/');\n if (npos == strURL.length()-1) { \n \tm_ErrorCode = 1;\n return null;\n }\n\n String filename = strURL.substring(npos+1);\n try {\n // setup streams to download and write to file\n String outputFilePath = Update.pathSD + filename;\n File fSettingsZip = new File(outputFilePath);\n if (fSettingsZip.exists()) { // todo: do we want this configurable?\n //m_logWriter.write(\"Deleting old file: \"+outputFilePath+\"\\n\");\n \tif (!delete)\n \t\treturn outputFilePath;\n \t\n \tfSettingsZip.delete();\n \t//return outputFilePath;\n }\n\n publishProgress(PROGRESS_DOWNLOAD, (int)(0.5 * index));\n //m_logWriter.write(\"Trying URL: \"+strURL+\", filename: \"+filename+\"\\n\");\n //m_logWriter.flush();\n URL url = new URL(strURL);\n HttpURLConnection conn = (HttpURLConnection)url.openConnection();\n conn.setRequestProperty(\"User-Agent\", \"Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91) AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1\");\n conn.connect();\n\n mContentLength = conn.getContentLength();\n\n InputStream is = new BufferedInputStream(url.openStream(), 8192);\n OutputStream os = new BufferedOutputStream(new FileOutputStream(outputFilePath));\n byte data[] = new byte[1024];\n mTotalRead = 0;\n int read=0;\n //while ((read = is.read(data)) != -1)\n while (true) {\n if (isCancelled()) {\n outputFilePath = null;\n m_ErrorCode = 2;\n break;\n }\n \n if (m_DownloadStop)\n \tcontinue;\n \n if ((read = is.read(data)) == -1)\n \tbreak;\n\n mTotalRead += read;\n\n // progress if we know the content length\n if (mContentLength > 0)\n publishProgress(PROGRESS_DOWNLOAD, (int)(0.5 * (index + mTotalRead*100/mContentLength)));\n \tmPrecent = (int)mTotalRead*100 / mContentLength;\n // write to file\n os.write(data, 0, read);\n }\n\n // close and get ready to bail\n os.flush();\n os.close();\n is.close();\n filename = outputFilePath;\n }\n catch(Exception e) {\n filename = null;\n m_ErrorCode = 3;\n }\n\n return filename;\n }", "protected abstract File download(Exception previousException) throws Exception;", "public void getObject(String url) throws UrlCacheException {\n\n\t\tHost host = new Host(url);\n\n\t\tboolean fileExists = checkCatalogForFile(url);\n\n\t\tbeginDownloadStream(host.getHostName(), host.getPort(), host.getConcatPath(), host.getFileName(), fileExists);\n\t}", "@Streaming\n @GET\n Call<ResponseBody> downloadFileWithDynamicUrlSync(@Url String fileUrl);", "@Override\n public boolean pullFile(String remoteFilePath, File localFile)\n throws DeviceNotAvailableException {\n boolean found = false;\n for (String[] item : dirs) {\n if (String.format(\"%s/%s\", item[0], item[1]).equals(remoteFilePath)) {\n found = true;\n break;\n }\n }\n assertTrue(\"trying to pull non-existent file: \" + remoteFilePath, found);\n try {\n return localFile.createNewFile();\n } catch (IOException ioe) {\n throw new RuntimeException(\"failed to create empty file\", ioe);\n }\n }", "public final File getLocalFile() throws IllegalArgumentException\n {\n if (hostOrNull != null)\n {\n throw new IllegalArgumentException(\"getLocalFile can only be called on local paths.\");\n }\n return new File(path);\n }", "public void setFileUrl(String fileUrl);", "@Override\r\n protected String doInBackground(String... f_url) {\r\n int count;\r\n if (f_url[0].substring(f_url[0].lastIndexOf('/') + 1) != \"null\" || f_url[0].substring(f_url[0].lastIndexOf('/') + 1) != \"\") {\r\n try {\r\n URL url = new URL(f_url[0]);\r\n HttpURLConnection connection = (HttpURLConnection)url.openConnection();\r\n connection.connect();\r\n int lengthOfFile = connection.getContentLength();\r\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\r\n fileName = f_url[0].substring(f_url[0].lastIndexOf('/') + 1);\r\n File directory = getExternalFilesDir(null);\r\n String folder = directory.getAbsolutePath();\r\n if (!directory.exists()) {\r\n directory.mkdirs();\r\n }\r\n OutputStream output = new FileOutputStream(folder + \"/\" + fileName);\r\n byte[] data = new byte[16384];\r\n long total = 0;\r\n while ((count = input.read(data)) != -1) {\r\n total += count;\r\n publishProgress(\"\" + (int) ((total * 100) / lengthOfFile));\r\n output.write(data, 0, count);\r\n }\r\n output.flush();\r\n output.close();\r\n input.close();\r\n return \"Downloaded at: \" + folder + fileName;\r\n\r\n } catch (Exception e) {\r\n Log.e(\"Error: \", e.getMessage());\r\n }\r\n return \"CMV files is missing in the server.Please contact your Admin\";\r\n } else {\r\n return \"These is some issue in downloading the file.Please contact your Admin\";\r\n }\r\n }", "void download(SearchResult result, String downloadPath);", "public static String getFileFromUrl(final String url) {\n\t\treturn url.substring(url.lastIndexOf('/') + 1);\n\t}", "public void DownloadFromUrl(Context ctx) {\n\t\ttry {\r\n\t\t\tURL url = new URL(link);\r\n\t\t\tString root = Environment.getExternalStorageDirectory().toString();\r\n\t\t\tif (type.contentEquals(\"image\")) {\r\n\t\t\t\tFile myDir = new File(root + Constants.APP_FOLDER_IMG);\r\n\t\t\t\tmyDir.mkdirs();\r\n\t\t\t\tString fname = name;\r\n\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\tLog.d(\"ImageManager\", \"download begining\");\r\n\t\t\t\tString url1 = url.toString().replaceAll(\" \", \"%20\");\r\n\t\t\t\turl = new URL(url1);\r\n\t\t\t\tLog.d(\"ImageManager\", \"download url:\" + url);\r\n\t\t\t\tLog.d(\"ImageManager\", \"downloaded file name:\");\r\n\t\t\t\t/* Open a connection to that URL. */\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Define InputStreams to read from the URLConnection.\r\n\t\t\t\t */\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(is);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Read bytes to the Buffer until there is nothing more to\r\n\t\t\t\t * read(-1).\r\n\t\t\t\t */\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t\tif (cancel)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Convert the Bytes read to a String. */\r\n\t\t\t\tif (!cancel) {\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t\tLog.d(\"ImageManager\",\r\n\t\t\t\t\t\t\t\"download ready in\"\r\n\t\t\t\t\t\t\t\t\t+ ((System.currentTimeMillis() - startTime) / 1000)\r\n\t\t\t\t\t\t\t\t\t+ \" sec\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\telse if (type.contentEquals(\"award\")) {\r\n\t\t\t\t\r\n\t\t\t\tLog.e(\"download\",\" award here\");\r\n\t\t\t\t//TODO download files here\r\n\t\t\t\t Log.e(\"name\",name);\r\n\t\t\t\t Log.e(\"link\",link);\r\n\t\t\t\r\n\t\t\t\tFile file = new File(name);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(\r\n\t\t\t\t\t\tis);\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tif(cancel) break;\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\tfos.close();\r\n\t\t\t\tif(cancel) file.delete();\r\n\r\n\t\t\t}\r\n\t\t\telse if (type.contentEquals(\"video\")) {\r\n\r\n\t\t\t\tFile myDir = new File(root + Constants.APP_FOLDER_VIDEO);\r\n\t\t\t\tmyDir.mkdirs();\r\n\t\t\t\tString fname = name;\r\n\t\t\t\t// Log.v(\"fname\",fname);\r\n\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\tString url1 = url.toString().replaceAll(\" \", \"%20\");\r\n\t\t\t\turl = new URL(url1);\r\n\t\t\t\tLog.d(\"ImageManager\", \"download begining\");\r\n\t\t\t\tLog.d(\"ImageManager\", \"download url:\" + url);\r\n\t\t\t\tLog.d(\"ImageManager\", \"downloaded file name:\");\r\n\t\t\t\t/* Open a connection to that URL. */\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\t\t\t\t/*\r\n\t\t\t\t * Define InputStreams to read from the URLConnection.\r\n\t\t\t\t */\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\t// bookmarkstart\r\n\t\t\t\t/*\r\n\t\t\t\t * Read bytes to the Buffer until there is nothing more to\r\n\t\t\t\t * read(-1) and write on the fly in the file.\r\n\t\t\t\t */\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\tfinal int BUFFER_SIZE = 25 * 1024;\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(is,\r\n\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\tbyte[] baf = new byte[BUFFER_SIZE];\r\n\t\t\t\tint actual = 0;\r\n\t\t\t\twhile (actual != -1) {\r\n\t\t\t\t\tfos.write(baf, 0, actual);\r\n\t\t\t\t\tactual = bis.read(baf, 0, BUFFER_SIZE);\r\n\t\t\t\t\tif (cancel) {\r\n\t\t\t\t\t\tfile.delete();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfos.close();\r\n\r\n\t\t\t\t// bookmarkend\r\n\t\t\t\tLog.d(\"ImageManager\",\r\n\t\t\t\t\t\t\"download ready in\"\r\n\t\t\t\t\t\t\t\t+ ((System.currentTimeMillis() - startTime) / 1000)\r\n\t\t\t\t\t\t\t\t+ \" sec\");\r\n\r\n\t\t\t\tString link = root + Constants.APP_FOLDER_IMG + name;\r\n\r\n\t\t\t}\r\n\t\t\telse if (type.contentEquals(\"audio\")) {\r\n\t\t\t\tLog.v(\"training\", \"in audio\");\r\n\r\n\t\t\t\tFile myDir = new File(Environment.getExternalStorageDirectory()\r\n\t\t\t\t\t\t.getAbsolutePath() + Constants.APP_FOLDER_AUDIO);\r\n\t\t\t\tmyDir.mkdirs();\r\n\t\t\t\tString fname = name;\r\n\r\n\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\r\n\t\t\t\t// long startTime = System.currentTimeMillis();\r\n\t\t\t\tString url1 = url.toString().replaceAll(\" \", \"%20\");\r\n\t\t\t\turl = new URL(url1);\r\n\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(is);\r\n\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t\tif (cancel)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Convert the Bytes read to a String. */\r\n\t\t\t\tif (!cancel) {\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t}// end of audio\r\n\t\t\telse{\r\n\t\t\t\ttry {\r\n\t\t\t\t\turl = new URL(link);\r\n\t\t\t\t\troot = Environment\r\n\t\t\t\t\t\t\t.getExternalStorageDirectory()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\tLog.v(\"type is \", type.toString());\r\n\r\n\t\t\t\t\tString foldername = \"\";\r\n\t\t\t\t\tif (type.contentEquals(\"pdf\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.pdf);\r\n\t\t\t\t\telse if (type.contentEquals(\"ppt\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.ppt);\r\n\t\t\t\t\telse if (type.contentEquals(\"doc\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.doc);\r\n\t\t\t\t\telse if (type.contentEquals(\"xls\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.xls);\r\n\t\t\t\t\telse if (type.contentEquals(\"video\"))\r\n\t\t\t\t\t\tfoldername = \"mobcast_videos\";\r\n\t\t\t\t\telse if (type.contentEquals(\"audio\"))\r\n\t\t\t\t\t\tfoldername = \"mobcast_audio\";\r\n\r\n\t\t\t\t\tFile myDir = new File(root + Constants.APP_FOLDER\r\n\t\t\t\t\t\t\t+ foldername);\r\n\r\n\t\t\t\t\tString fname = ename;\r\n\r\n\t\t\t\t\tmyDir.mkdirs();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\t\tif (file.exists())\r\n\t\t\t\t\t\tfile.delete();\r\n\t\t\t\t\tURLConnection ucon = url.openConnection();\r\n\t\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\t\tBufferedInputStream bis = new BufferedInputStream(\r\n\t\t\t\t\t\t\tis);\r\n\t\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\t\tint current = 0;\r\n\t\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t\t\tif(cancel) break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\r\n\t\t\t\t\t\t\tfile);\r\n\t\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tif(cancel) file.delete();\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.d(\"ImageManager\", \"Error: \" + e);\r\n\t\t}\r\n\r\n\t}", "public void downloadFile(final String fileUri, final String filePath) {\n\n new Thread(() -> {\n try {\n URL url = new URL(parseUrl(fileUri));\n URLConnection urlConnection = url.openConnection();\n InputStream inputStream = urlConnection.getInputStream();\n\n String filename = new File(filePath).getName();\n\n int count = 0;\n byte[] buffer = new byte[1024];\n\n File fileDir = new File(filePath).getParentFile();\n\n if (!fileDir.exists()) {\n fileDir.mkdirs();\n }\n\n File downloadFile = new File(fileDir + File.separator + filename);\n\n //Ensure that we do not always download existing files\n if (downloadFile.exists()) {\n return;\n }\n\n FileOutputStream fileOutputStream = new FileOutputStream(downloadFile);\n\n while ((count = inputStream.read(buffer)) != -1) {\n fileOutputStream.write(buffer, 0, count);\n }\n\n fileOutputStream.close();\n\n\n } catch (MalformedURLException e) {\n\n e.printStackTrace();\n\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n\n }\n }).start();\n\n }", "private boolean isLocalFile(Uri uri) {\n String auth = uri.getHost();\n\n if (auth.equals(\"localhost\") || uri.getScheme().equals(\"file\")) {\n return true;\n }\n return false;\n }", "@Override\n public boolean downloadFile(final String url, String fileID,\n final String path) {\n DownloadFileRequest request = RequestFactory.makeDownloadFileRequest(\n fileID, \".wig\");\n\n System.out.println(\"Test: \" + fileID);\n conn.sendRequest(request, userID, \"text/plain\");\n Gson gson = new Gson();\n DownloadFileResponse response = gson.fromJson(conn.getResponseBody(),\n DownloadFileResponse.class);\n System.out.println(conn.getResponseBody());\n final DownloadHandler handler = new DownloadHandler(\"pvt\", \"pvt\");\n new Thread(new Runnable() {\n @Override\n public void run() {\n handler.download(url, path);\n }\n }).start();\n\n System.out.println(\"Test\");\n return true;\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException {\r\n br = new Browser();\r\n // need to correct links that are added prior to fixing!\r\n correctDownloadLink(link);\r\n prepBrowser(br);\r\n br.setFollowRedirects(true);\r\n final URLConnectionAdapter con = br.openGetConnection(link.getDownloadURL());\r\n if (con.getResponseCode() == 503 || con.getResponseCode() == 404) {\r\n con.disconnect();\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n br.followConnection();\r\n if (br.containsHTML(\"<title>\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Access denied\r\n if (br.containsHTML(\"Access denied<|资源已被禁止访问</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Not found\r\n if (br.containsHTML(\"<span>(资源未找到|Not found)</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n /* Wrong link */\r\n if (br.containsHTML(\">Wrong</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n String filename = null, filesize = null;\r\n // if (br.getURL().matches(\"http://page\\\\d+\\\\.yunfile.com/fs/[a-z0-9]+/\")) ;\r\n filename = br.getRegex(\"Downloading:&nbsp;<a></a>&nbsp;([^<>]*) - [^<>]+<\").getMatch(0);\r\n if (filename == null) {\r\n filename = br.getRegex(\"<title>(.*?)\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n filename = br.getRegex(\"<h2 class=\\\"title\\\">文件下载\\\\&nbsp;\\\\&nbsp;([^<>\\\"]*?)</h2>\").getMatch(0);\r\n }\r\n filesize = br.getRegex(\"文件大小: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"File Size: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n }\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"id=\\\"file_show_filename\\\">[^<>]+</span> \\\\- ([^<>\\\"]+) <\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n link.setName(decode(\"111\", filename.trim()));\r\n link.setDownloadSize(SizeFormatter.getSize(filesize));\r\n return AvailableStatus.TRUE;\r\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "private static String downloadUrl(String downloadUrl) throws IOException {\n URL url = new URL(downloadUrl);\n\n HttpURLConnection httpURLConnection= (HttpURLConnection) url.openConnection();\n httpURLConnection.connect();\n\n InputStream urlInputStream = httpURLConnection.getInputStream();\n BufferedReader museumDataReader = new BufferedReader(new InputStreamReader(urlInputStream));\n\n StringBuilder museumDataBuilder = new StringBuilder();\n String line = \"\";\n \n while( (line = museumDataReader.readLine()) != null ) {\n museumDataBuilder.append(line);\n }\n\n String museumData = museumDataBuilder.toString();\n museumDataReader.close();\n\n return museumData;\n }", "public static File getAsLocalFile(String name) throws IOException {\n \tif(!name.startsWith(\"/\")) name = \"/\"+name;\n \t\n \tURL url = NativeUtils.class.getResource(name);\n \tif(url == null) throw new FileNotFoundException(\"Unable to locate \"+name);\n \t\n \tFile file = null;\n \tif(url.getProtocol().equals(\"jar\")){\n \t\tfile = extractTmpFileFromJar(name, false);\n \t}else{\n \t\tfile = new File(url.getFile());\n \t}\n \treturn file;\n }", "void folderDownloaded(String remoteFolder);", "private void downloadFile(final File mFile, final java.io.File targetFolder) {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n if (mFile.getDownloadUrl() != null && mFile.getDownloadUrl().length() > 0) {\n try {\n com.google.api.client.http.HttpResponse resp =\n mService.getRequestFactory()\n .buildGetRequest(new GenericUrl(mFile.getDownloadUrl()))\n .execute();\n\n // gets the file's contents\n InputStream inputStream = resp.getContent();\n\n // stores the contents to the device's external storage\n try {\n final java.io.File file = new java.io.File(targetFolder, mFile.getTitle());\n System.out.println(\"Downloading: \" + mFile.getTitle() + \" to \" + file.getPath());\n //numDownloading++;\n storeFile(file, inputStream);\n } finally {\n inputStream.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n });\n t.start();\n try {\n Thread.sleep(750);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "boolean checkShouldDownloadFile(String target, String name) {\n return Boolean.TRUE.equals(DOWNLOAD_FILES.retrieve(target, name));\n }", "public static void httpDownload(String url, FileOutputStream file) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = client.execute(new HttpGet(url));\r\n \t\tif(response.getStatusLine().getStatusCode() < 400){\r\n \t\t\tBufferedOutputStream writer = null;\r\n \t\t\tBufferedInputStream reader = null;\r\n \t\t\ttry {\r\n \t\t\t\twriter = new BufferedOutputStream(file);\r\n \t\t\t\treader = new BufferedInputStream(response.getEntity().getContent());\r\n \r\n \t\t\t\tbyte[] buffer = new byte[BUF_SIZE];\r\n \t\t\t\tint bytesRead = reader.read(buffer);\r\n \r\n \t\t\t\twhile (bytesRead > 0) {\r\n \t\t\t\t\twriter.write(buffer, 0, bytesRead);\r\n \t\t\t\t\tbytesRead = reader.read(buffer);\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tif (writer != null) {\r\n \t\t\t\t\twriter.close();\r\n \t\t\t\t}\r\n \t\t\t\tif (reader != null) {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@NonNull\n private File getDownloadLocation() {\n System.out.println(\"Hello. in download start\");\n File root = android.os.Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath() + \"/V2A\");\n if (!file.exists()) {\n file.mkdirs();\n }\n System.out.println(file.toString());\n System.out.println(\"Hello. in download end\");\n //Toast.makeText(this, \"Starting Download\", Toast.LENGTH_SHORT).show();\n\n return file;\n\n }", "public String getRemoteFile(String remoteFile, String localDir) throws GRIDAClientException {\n\n try {\n Communication communication = getCommunication();\n communication.sendMessage(\n ExecutorConstants.COM_GET_REMOTE_FILE + Constants.MSG_SEP_1\n + proxyPath + Constants.MSG_SEP_1\n + Util.removeLfnFromPath(remoteFile) + Constants.MSG_SEP_1\n + localDir);\n communication.sendEndOfMessage();\n\n String localFilePath = communication.getMessage();\n communication.close();\n\n return localFilePath.toString();\n\n } catch (IOException ex) {\n throw new GRIDAClientException(ex);\n }\n }", "public Blob downloadFile(String inKey, File inDestFile);", "public static void downloadUrlToPath(String url2, String path) {\n BufferedInputStream bInput = null;\n BufferedOutputStream bOutput = null;\n try {\n HttpURLConnection conn = null;\n URL url = new URL(url2);\n conn = (HttpURLConnection) url.openConnection();\n bInput = getBufferedInput(conn);\n bOutput = getBufferedOutput(path);\n byte[] buffer = new byte[1024];\n int cnt;\n while ((cnt = bInput.read(buffer)) != -1) {\n bOutput.write(buffer, 0, cnt);\n }\n bOutput.flush();\n if (conn != null) {\n conn.disconnect();\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (bInput != null)\n bInput.close();\n if (bOutput != null)\n bOutput.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "private InputStream downloadUrl(String urlString) throws IOException {\n \tSystem.out.println(\"Inside downloadURL\");\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n \n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n InputStream stream = conn.getInputStream();\n return stream;\n }", "String generalFileName(String url);", "@Override\n protected void onPostExecute(String file_url) {\n // dismiss the dialog after the file was downloaded\n //dismissDialog(progress_bar_type);\n dismissProgress();\n showToast(String.valueOf(\"Download File Success to \") + filename);\n if (filePath != null) {\n File file = new File( filePath );\n Intent intent = new Intent(Intent.ACTION_VIEW);\n Uri fileUri = FileProvider.getUriForFile(getContext(),\n \"com.insurance.easycover\",\n file);\n intent.setData(fileUri);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivity(intent);\n }\n }", "public File downloadFile(String remoteFilePath, String pathToStore) throws IOException, NoInternetConnectionException, NoDataReceivedException\n {\n File outFile = new File(pathToStore);\n InputStream in = getRemoteFileStream(remoteFilePath);\n if (in != null)\n {\n FileWriter out = new FileWriter(outFile);\n out.write(convertStreamToString(in));\n }\n return outFile;\n }", "public void download() {\n }", "@Test\n\tpublic void incompleteDownloadTest() {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"incompleteDownloadTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:demo-user@demo.wftpserver.com:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"incompleteFile.pdf\";\n\n\t\ttry {\n\t\t\tsftpDownloader.initiateDownload(downloadUrl, location, 10, 10, 22);\n\t\t} catch (IOException e) {\n\t\t\tValidationServiceImpl validationServiceImpl = new ValidationServiceImpl();\n\t\t\tAssert.assertFalse(validationServiceImpl.validateUrl(location));\n\t\t}\n\t}", "private Drawable downloadFile(String fileUrl)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInputStream is = (InputStream) new URL(fileUrl).getContent();\r\n\t\t\tDrawable d = Drawable.createFromStream(is, \"src\");\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void testRemoteFileDescGetUrl() {\n\t\tSet urns = new HashSet();\n\t\turns.add(HugeTestUtils.URNS[0]);\n\t\tRemoteFileDesc rfd =\n\t\t\tnew RemoteFileDesc(\"www.test.org\", 3000, 10, \"test\", 10, TEST_GUID,\n\t\t\t\t\t\t\t 10, true, 3, true, null, urns, \n false, false,\"\",0, null, -1);\n\t\tURL rfdUrl = rfd.getUrl();\n\t\tString urlString = rfdUrl.toString();\n\t\tString host = rfd.getHost();\n\t\tString colonPort = \":\"+rfd.getPort();\n\t\tassertTrue(\"unexpected beginning of url\", \n\t\t\t\t urlString.startsWith(\"http://\"+host+colonPort));\n\t\tassertEquals(\"unexpected double slash\",\n\t\t urlString.indexOf(colonPort+\"//\"), -1);\n\t\tassertNotEquals(\"unexpected double slash\",\n\t\t -1, urlString.indexOf(\":3000/\"));\n\t}", "@Override\n\tpublic CCSObjectMetadata downloadObject(String bucketName, String ccsObjectPath, File localFile) {\n\t\treturn null;\n\t}", "protected InputStream _optimizedStreamFromURL(URL url)\n/* */ throws IOException\n/* */ {\n/* 1529 */ if (\"file\".equals(url.getProtocol()))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1536 */ String host = url.getHost();\n/* 1537 */ if ((host == null) || (host.length() == 0))\n/* */ {\n/* 1539 */ String path = url.getPath();\n/* 1540 */ if (path.indexOf('%') < 0) {\n/* 1541 */ return new FileInputStream(url.getPath());\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1547 */ return url.openStream();\n/* */ }" ]
[ "0.6905517", "0.6737666", "0.67266273", "0.6585025", "0.65720034", "0.641659", "0.63915384", "0.6237499", "0.6216666", "0.61780363", "0.6175389", "0.6163412", "0.6125812", "0.60778946", "0.6063415", "0.60183024", "0.6014545", "0.5980709", "0.5957411", "0.59089136", "0.58549744", "0.58527446", "0.58517534", "0.5811171", "0.580679", "0.57847536", "0.57808715", "0.5774905", "0.57712394", "0.5767745", "0.57543206", "0.5747751", "0.57336825", "0.57058984", "0.57017183", "0.56947285", "0.5689199", "0.565947", "0.56313324", "0.56245184", "0.56235176", "0.5602726", "0.5593595", "0.5589172", "0.5581121", "0.5578546", "0.55653393", "0.5564242", "0.5562563", "0.5550366", "0.5540588", "0.5511122", "0.5497186", "0.54962397", "0.54962397", "0.5495764", "0.54774845", "0.5463956", "0.54605544", "0.5438493", "0.5421951", "0.54152477", "0.5414973", "0.54123443", "0.540095", "0.53996515", "0.5397427", "0.53884834", "0.5374126", "0.53649116", "0.53648466", "0.5352679", "0.53366405", "0.5336006", "0.53356546", "0.5331192", "0.53254294", "0.531698", "0.5304508", "0.52937955", "0.52932835", "0.5291566", "0.5273683", "0.52705276", "0.5265346", "0.525425", "0.5248732", "0.5246571", "0.52446455", "0.5233845", "0.5233155", "0.5232301", "0.52255744", "0.52243733", "0.5221446", "0.52197176", "0.5209742", "0.5205409", "0.5197434", "0.51934326" ]
0.7588487
0
int row = table.getSelectedRow(); int col = table.getSelectedColumn();
@Override public void actionPerformed(ActionEvent e) { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); //cb.setContents(new CellTransferable(component.getValueAt(row, col)), null); //Transferable transferable = new StringSelection((String)table.getValueAt(row, col)); //cb.setContents(transferable,null); int [] rows = table.getSelectedRows(); int [] columns = table.getSelectedColumns(); StringBuffer selection = new StringBuffer(); for (int r: rows) { for (int c: columns) { selection.append((String)table.getValueAt(r, c)); selection.append(";"); } selection.append("\n"); } Transferable transferable = new StringSelection(selection.toString()); cb.setContents(transferable,null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }", "int getRowIndex();", "public int getSelectedLayer ()\n {\n return _table.getSelectedRow();\n }", "private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}", "public int getColumn()\n {\n return col;\n }", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }", "public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }", "int getColumn();", "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "int getCol();", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = table.convertRowIndexToModel( table.getEditingRow() );\n }", "public Cell getSelectedCell() {\n return selectedCell;\n }", "public int getColumn();", "public int getRow()\n {\n return row;\n }", "public int getColumn(){ return (Integer)args[1]; }", "int atColumn();", "int getRow();", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n // get the selected row index\n int selectedRowIndex = jTable1.getSelectedRow();\n // set the selected row data into jtextfields\n ID_USER =Integer.parseInt(model.getValueAt(selectedRowIndex, 0).toString()) ; \n CL_USER =model.getValueAt(selectedRowIndex, 1).toString(); \n\n }", "public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }", "public int getColumn()\t \t\t{ return column; \t}", "int getColumnIndex (String columnName);", "public int getCol() {\n return this.col; \n }", "public int getColumn()\n {\n return column;\n }", "public int getColumn(){\n return this.column;\n }", "public int getValue()\n { \n return table.get(getSelectedItem());\n }", "int atRow();", "public CellSelection getSelectCell() {\n return selection;\n }", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n int indexrow=jTable1.getSelectedRow();\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n id=model.getValueAt(indexrow,0).toString();\n txt_id.setText(model.getValueAt(indexrow,0).toString());\n txt_class.setText(model.getValueAt(indexrow,1).toString());\n txt_section.setText(model.getValueAt(indexrow, 2).toString());\n }", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }", "TableModel getSelected() {\r\n // get the list of selected index\r\n int[] selected = plots[0][0].fitnessTable.getSelectedRows();\r\n // get the population table\r\n Population p = IGAFitnessPlotView.this.currentPop;\r\n Table t = p.getTable();\r\n\r\n return new SelectedTableModel(t, selected);\r\n }", "public int col() {\r\n return col;\r\n }", "void onColumnClick(int column);", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tJTable table = (JTable) e.getSource();\r\n\t\tthis.selectedRow = table.getSelectedRow();\r\n\t}", "public abstract int getColumn();", "public void onTableClicked(){\n\t\tint row = table.getSelectedRow();\n//\t\tthis.messageBox(row+\"\");\n\t\tTParm parm = table.getParmValue();\n\t\tadmDate = parm.getValue(\"ADM_DATE\", row);\n\t\tdeptCode = parm.getValue(\"DEPT_CODE\", row);\n\t\tdeCode = parm.getValue(\"DR_CODE\", row);\n\t\tclinictypeCode = parm.getValue(\"CLINICTYPE_CODE\", row);\n\t\ttime = parm.getValue(\"START_TIME\", row);\n\t\tcrmId = parm.getValue(\"CRM_ID\", row);\n//\t\tSystem.out.println(\"time==\"+time);\n\t\t\n\t}", "RowCoordinates getRowCoordinates();", "public int getRow()\r\n {\r\n return row;\r\n }", "public int getColumnNumber() {\n return column;\n }", "public int visibleCell(int row, int column) {\n return column;\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint col = table.getSelectedColumn();\n\t\t\t\tString masv = (String) table.getValueAt(row, 0);\n\t\t\t\tString hoten = (String) table.getValueAt(row, 1);\n\t\t\t\tString ngaysinh = (String) table.getValueAt(row, 2);\n\t\t\t\tString gioitinh = (String) table.getValueAt(row, 3);\n\t\t\t\tString diachi = (String) table.getValueAt(row, 4);\n\t\t\t\tString malop = (String) table.getValueAt(row, 5);\n\t\t\t\ttxt_masv.setText(masv);\n\t\t\t\ttxt_hoten.setText(hoten);\n\t\t\t\ttxt_ngaysinh.setText(ngaysinh);\n\t\t\t\ttxt_gioitinh.setText(gioitinh);\n\t\t\t\ttxt_diachi.setText(diachi);\n\t\t\t\ttxt_malop.setText(malop);\n\t\t\t}", "public int getRowNum(){ return this.rowNum; }", "public int getRow()\n {\n return row;\n }", "public int getCol() { return _col; }", "public int getPositionColumn(){return this.positionColumn;}", "public int getColumn()\n\t{\n\t\treturn col;\n\t}", "private void recordTableMouseClicked(MouseEvent e) {\n\n //fetching the index from jtable\n DefaultTableModel df=(DefaultTableModel) recordTable.getModel();\n int index=recordTable.getSelectedRow();\n txtCustNo.setText(df.getValueAt(index,0).toString());\n txtCustName.setText(df.getValueAt(index,1).toString());\n txtCustDeposit.setText(df.getValueAt(index,2).toString());\n txtYears.setText(df.getValueAt(index,3).toString());\n cboSavings.setSelectedItem(df.getValueAt(index,4).toString());\n }", "public int getColumn() {\n return col;\n }", "String getColumn(int index);", "String getColumn(int index);", "public int row();", "Coord getSelected() {\n if (selected == null) {\n return null;\n }\n return new Coord(selected.col, selected.row);\n }", "private void MenuBlockStartActionPerformed(java.awt.event.ActionEvent evt) {\n BlockStart = this.jTable1.getSelectedRow();\n }", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "public int getRow(){\r\n\t\treturn this.row;\r\n\t}", "String getColumn();", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "@Override\n public Object getValueAt(int aRow, int aColumn) {\n return model.getValueAt(aRow, aColumn); \n }", "int getColumnIndex(String name);", "public int getColumn() {\r\n return column;\r\n }", "public int getColumn() {\r\n return column;\r\n }", "public int getPositionRow(){return this.positionRow;}", "public int getRow() { return _row; }", "@Override\r\n public int getCol() {\r\n return this.col;\r\n }", "public int getColumn() {\n return column;\n }", "public int getColumn() {\n return column;\n }", "public int getColumn() {\n return column;\n }", "public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);", "public int getCol() {\n\t\treturn j;\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }", "public int getRow(){ return (Integer)args[0]; }", "public Ward getSelected() {\n\t\treturn table.getSelectionModel().getSelectedItem();\n\t}", "public int getPosition(){\n\t\treturn this.cell;\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tint rowSelected = table1.getSelectedRow();\n\n\t\ttxtMa.setText((String) table1.getValueAt(rowSelected, 0));\n\t\ttxtTen.setText((String) table1.getValueAt(rowSelected, 1));\n\t\ttxtTuoi.setText((String) table1.getValueAt(rowSelected, 2));\n\t\ttxtSdt.setText((String) table1.getValueAt(rowSelected, 3));\n\t\ttxtDiaChi.setText((String) table1.getValueAt(rowSelected, 4));\n\t\ttxtEmail.setText((String) table1.getValueAt(rowSelected, 5));\n\t}", "public int getRow() {\r\n return row;\r\n }", "public int getCol() {\n return col;\n }", "public int GetRow(){\n return row;\n }", "public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }", "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n JTable target = (JTable) e.getSource();\r\n int row = target.getSelectedRow();\r\n int col = target.getSelectedColumn();\r\n\r\n //Update model\r\n model.updateGridAt(row, col);\r\n\r\n //Update view\r\n gameWindow.refreshBoard();\r\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table1.getSelectedRow();\n\t\t\t\tint col = table1.getSelectedColumn();\n\t\t\t\tString magv = (String) table1.getValueAt(row, 0);\n\t\t\t\tString tengv = (String) table1.getValueAt(row, 1);\n\t\t\t\tString gioitinh = (String) table1.getValueAt(row, 2);\n\t\t\t\tString phone = (String) table1.getValueAt(row, 3);\n\t\t\t\tString email = (String) table1.getValueAt(row, 4);\n\t\t\t\tString phanloaigv = (String) table1.getValueAt(row, 5);\n\t\t\t\ttxt_magv.setText(magv);\n\t\t\t\ttxt_tengv.setText(tengv);\n\t\t\t\ttxt_gioitinhgv.setText(gioitinh);\n\t\t\t\ttxt_phone.setText(phone);\n\t\t\t\ttxt_email.setText(email);\n\n\t\t\t\ttxt_phanloaigv.setText(phanloaigv);\n\n\t\t\t}", "public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n\t}", "public int getValue(int row, int column);", "@Override\n public void mouseClicked(MouseEvent e) {\n int fila_point = jTable_clientes.rowAtPoint(e.getPoint());\n //punto exacto de la fila donde este precionando\n\n //evento para las columnas\n int columna_point = 0;//solo porqwue queremos obtener el id de cada cliente paara la consulta en la BD\n\n //indicaciones al programa de cuando ya se tengas los dos valores osea que si el usuario dio click en las columns que tiene datos entonces\n if (fila_point > -1) {\n IDcliente_update = (int) model.getValueAt(fila_point, columna_point);\n\n //conexion entre faces cuando se toque algun dato en la tabla\n InformacionCliente informacion_cliente = new InformacionCliente();\n informacion_cliente.setVisible(true);\n \n \n }\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getselectedLFCol()\r\n\t{\r\n\t\treturn selectedLFCol;\r\n\t}", "private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }", "int getCellid();", "public int getRow() {\n\t\treturn row; \n\t}", "public int getColumn() {\n return mCol;\n }", "public int getColumn()\r\n\t{\r\n\t\treturn this.column;\r\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint column = table.getColumnModel().getColumnIndexAtX(e.getX());\n\t int row = e.getY()/table.getRowHeight();\n\n\t /*Checking the row or column is valid or not*/\n\t if (row < table.getRowCount() && row >= 0 && column < table.getColumnCount() && column >= 0) {\n\t Server ServerConnection;\n\t String courseID = (String) table.getValueAt(row, 0);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t \t\tif (data.next()) {\n\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(row, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t \t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t \n\t }\n\t else {\n\t \tscoreTable.setVisible(false);\n\t }\n\t\t\t}", "public int getRow() {\r\n\t\treturn row;\r\n\t}" ]
[ "0.75441873", "0.7454282", "0.73646235", "0.7319242", "0.719324", "0.71219105", "0.7079505", "0.7059459", "0.7048069", "0.7048069", "0.7048069", "0.69784516", "0.6950892", "0.6906128", "0.68565893", "0.6823195", "0.6800665", "0.67949915", "0.67859113", "0.6748647", "0.67229414", "0.6696977", "0.66960514", "0.66258836", "0.66227627", "0.6609775", "0.6608351", "0.6591974", "0.6582009", "0.6558323", "0.65528834", "0.6551275", "0.65421516", "0.65175927", "0.6517506", "0.6502978", "0.64967626", "0.6480055", "0.64771736", "0.6461566", "0.64391327", "0.64378935", "0.64346635", "0.642672", "0.64174026", "0.6413611", "0.6408896", "0.6404701", "0.6389416", "0.6387021", "0.6387021", "0.6384532", "0.63806057", "0.63777643", "0.63768184", "0.6343739", "0.63432986", "0.63375235", "0.63375235", "0.63375235", "0.63209194", "0.63119763", "0.63002396", "0.63002396", "0.6281966", "0.6278873", "0.62727094", "0.62646437", "0.62646437", "0.62646437", "0.6262549", "0.62575364", "0.62557197", "0.6254565", "0.62528634", "0.6248691", "0.62455374", "0.6244496", "0.62420785", "0.6239109", "0.6238208", "0.62255913", "0.62202036", "0.62129307", "0.620786", "0.6207075", "0.61960846", "0.61931944", "0.61931944", "0.61931944", "0.61931944", "0.61931944", "0.61931944", "0.6179671", "0.6172397", "0.61655134", "0.6163787", "0.6161159", "0.61599314", "0.6154392", "0.61527336" ]
0.0
-1
Gets the created by.
public StringFilter getCreatedBy() { return createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreateBy() {\r\n return createBy;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "public String getCreateBy() {\n\t\treturn createBy;\n\t}", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreatedby() {\n return createdby;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public String getCreatedBy() {\n return this.createdBy;\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public Integer getCreateby() {\n return createby;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n }\n }", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "@Override\n\tpublic long getCreateBy() {\n\t\treturn _candidate.getCreateBy();\n\t}", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Date getCreateBy() {\n return createBy;\n }", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@AutoEscape\n\tpublic String getCreatedByUser();", "@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "U getCreateby();", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public java.lang.Integer getCreatedby() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"createdby\")));\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public Long getCreator() {\n return creator;\n }", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public String getCreator() {\n\t\treturn creator;\n\t}", "public String getClCreateBy() {\r\n\t\treturn clCreateBy;\r\n\t}", "public long getCreatedByUser();", "public String getCreator() {\n return this.creator;\n }", "int getCreatedBy();", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"hello@rockset.com\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();" ]
[ "0.824958", "0.82331026", "0.82331026", "0.82331026", "0.82331026", "0.8219993", "0.8197516", "0.81891686", "0.81891686", "0.81891686", "0.81891686", "0.8182035", "0.81168044", "0.81021893", "0.8071078", "0.8071078", "0.8071078", "0.8054912", "0.8040372", "0.80367136", "0.80274105", "0.8015145", "0.7997817", "0.7944347", "0.7944347", "0.7944347", "0.7944347", "0.79167944", "0.79116625", "0.7911433", "0.79031324", "0.7842531", "0.78308076", "0.78308076", "0.78308076", "0.78308076", "0.7824089", "0.7824089", "0.7824089", "0.78100854", "0.78100854", "0.78100854", "0.78100854", "0.77924865", "0.77921665", "0.7764863", "0.7732963", "0.7725909", "0.7725909", "0.7668329", "0.7649628", "0.7649628", "0.7649628", "0.7649628", "0.7649628", "0.7649628", "0.76280916", "0.7617439", "0.75990653", "0.75990653", "0.75942075", "0.75742835", "0.7554327", "0.75240356", "0.7431585", "0.7408306", "0.73713255", "0.72938037", "0.72723633", "0.7217693", "0.71984226", "0.71717155", "0.71717155", "0.71717155", "0.71717155", "0.71717155", "0.71717155", "0.71717155", "0.71717155", "0.71717155", "0.71675444", "0.71675444", "0.7145676", "0.7139316", "0.70972925", "0.7075854", "0.7050142", "0.70428616", "0.70090073", "0.69868314", "0.6968936", "0.69595313", "0.6929748", "0.6929748", "0.6929748", "0.6929748", "0.6929748", "0.6929748", "0.6929748", "0.6929748" ]
0.7426854
65
Sets the created by.
public void setCreatedBy(StringFilter createdBy) { this.createdBy = createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreateby(final U createdBy);", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public String getCreateBy() {\r\n return createBy;\r\n }", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "public String getCreateBy() {\n\t\treturn createBy;\n\t}", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCreatedby() {\n return createdby;\n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy(final CreatedBy createdBy);", "public Integer getCreateby() {\n return createby;\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreateby(Integer createby) {\n this.createby = createby;\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedByUser(String createdByUser);", "public void setCreateBy(String createBy) {\r\n\t\tthis.createBy = createBy;\r\n\t}", "public String createdBy() {\n return this.createdBy;\n }", "public Date getCreateBy() {\n return createBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\n return createdBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreateBy(Date createBy) {\n this.createBy = createBy;\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "public void setCreateBy(String createBy) {\n\t\tthis.createBy = createBy == null ? null : createBy.trim();\n\t}", "public void setCreatedByUser(long createdByUser);", "public void setCreateBy (com.redsaga.hibnatesample.step2.User _createBy) {\n\t\tthis._createBy = _createBy;\n\t}", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}", "public void setCreateBy(String createBy) {\r\n this.createBy = createBy == null ? null : createBy.trim();\r\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public void setCreator(User creator) {\n this.creator = creator;\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "U getCreateby();", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n }\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "@Override\r\n\tpublic void setCreatedBy(User u) {\n\t\tthis.createdBy = (FaqUser)u;\t\t\r\n\t}", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }" ]
[ "0.7764596", "0.7593862", "0.75569534", "0.7514069", "0.74739033", "0.7473032", "0.74584216", "0.74584216", "0.74584216", "0.74584216", "0.7362335", "0.7362335", "0.7362335", "0.7362335", "0.7352032", "0.7292771", "0.72249204", "0.7206634", "0.7194301", "0.7191669", "0.71708274", "0.7168999", "0.7168999", "0.7168999", "0.7168999", "0.7168999", "0.7168999", "0.7168999", "0.7168035", "0.714057", "0.714001", "0.7126464", "0.70998454", "0.70998454", "0.70998454", "0.7097175", "0.7096905", "0.70594317", "0.70594317", "0.70594317", "0.70594317", "0.70487714", "0.7039781", "0.7037956", "0.70217234", "0.70217234", "0.70217234", "0.70217234", "0.70132077", "0.69986516", "0.6995481", "0.6995481", "0.6993064", "0.697159", "0.696758", "0.69655824", "0.6947339", "0.6947339", "0.6947339", "0.6947339", "0.69462425", "0.6938773", "0.69267446", "0.69267446", "0.69267446", "0.69267446", "0.69138986", "0.6912279", "0.6885826", "0.6883098", "0.68670344", "0.6859301", "0.68546504", "0.6833836", "0.68296534", "0.68296534", "0.68296534", "0.68296534", "0.68215173", "0.68120915", "0.67961586", "0.6777894", "0.6771001", "0.6771001", "0.6771001", "0.6771001", "0.67687297", "0.67657787", "0.674592", "0.674592", "0.674592", "0.674592", "0.674592", "0.674592", "0.674592", "0.674592", "0.674027", "0.672529", "0.672529", "0.672529" ]
0.67254406
97
Gets the last modified by.
public StringFilter getLastModifiedBy() { return lastModifiedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}", "public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public int getModifiedBy() {\n return modifiedBy;\n }", "public java.lang.Integer getModifiedby() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"modifiedby\")));\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that most recently updated the policy\")\n public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public PersonAndOrganization getLastModifyingUser()\r\n\t{\r\n\t\treturn lastModifyingUser;\r\n\t}", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public String getSrcModifiedBy() {\r\n return (String) getAttributeInternal(SRCMODIFIEDBY);\r\n }", "public long getModifiedByUser();", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public boolean hasLASTMODIFIEDBY() {\n return fieldSetFlags()[1];\n }", "public java.lang.CharSequence getLASTMODIFIEDDT() {\n return LAST_MODIFIED_DT;\n }", "public java.lang.CharSequence getLASTMODIFIEDDT() {\n return LAST_MODIFIED_DT;\n }", "@Valid\n @JsonProperty(\"lastModifiedBy\")\n public LastModifiedBy getLastModifiedBy();", "public String getClModifyBy() {\r\n\t\treturn clModifyBy;\r\n\t}", "@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _locMstLocation.getCreatedBy();\n\t}", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "@AutoEscape\n\tpublic String getModifiedByUser();", "public String getLastUpdateAuthor() {\n return (String)content.get(LAST_UPDATE_AUTHOR);\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }" ]
[ "0.86359763", "0.85516316", "0.85269326", "0.8361225", "0.8325976", "0.8325976", "0.81757045", "0.81470096", "0.81349236", "0.8132325", "0.81118923", "0.8108034", "0.8098908", "0.80970997", "0.8083992", "0.8083992", "0.8083992", "0.8083992", "0.8057273", "0.8016027", "0.8016027", "0.8002151", "0.798265", "0.79582053", "0.7941366", "0.7941366", "0.7885879", "0.78418523", "0.78405905", "0.7836347", "0.7816091", "0.7800855", "0.779481", "0.7720011", "0.7684378", "0.7681037", "0.7681037", "0.7681037", "0.7681037", "0.7681037", "0.7681037", "0.7681037", "0.76434994", "0.76090044", "0.76090044", "0.75807345", "0.75711995", "0.75711995", "0.7511767", "0.7485823", "0.7448087", "0.7442865", "0.7408751", "0.7398973", "0.7392858", "0.73804975", "0.7352822", "0.7350882", "0.73070604", "0.72436976", "0.72436976", "0.72436976", "0.72436976", "0.72311467", "0.72308224", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7189909", "0.7082343", "0.692663", "0.6868948", "0.6868948", "0.6868948", "0.684401", "0.6833613", "0.6826267", "0.6819229", "0.68151766", "0.6804715", "0.67851675", "0.67363054", "0.6733686", "0.66952455", "0.66952455", "0.66900647", "0.668586", "0.665671", "0.6650362", "0.6650362", "0.6650362" ]
0.74231046
52
Sets the last modified by.
public void setLastModifiedBy(StringFilter lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastModifiedBy(final LastModifiedBy lastModifiedBy);", "void setUpdateby(final U lastModifiedBy);", "public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\r\n this.lastModifiedBy = lastModifiedBy;\r\n }", "public void setLastModifiedBy(String lastModifiedBy) {\n this.lastModifiedBy = lastModifiedBy;\n }", "public void setLASTMODIFIEDBY(java.lang.CharSequence value) {\n this.LAST_MODIFIED_BY = value;\n }", "public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\n this.lastModifiedBy = lastModifiedBy;\n }", "public void setLastModifiedBy(Integer lastModifiedBy) {\r\n\t\tthis.lastModifiedBy = lastModifiedBy;\r\n\t}", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "public void setModifiedBy(Date modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "@Override\n\tpublic void setModifiedBy(java.lang.String ModifiedBy) {\n\t\t_locMstLocation.setModifiedBy(ModifiedBy);\n\t}", "public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setModifiedBy(String value) {\r\n setAttributeInternal(MODIFIEDBY, value);\r\n }", "public void setModifiedBy(String modifiedBy){\r\n\t\tthis.modifiedBy = modifiedBy;\r\n\t}", "public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }", "public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setModifiedBy(String tmp) {\n this.modifiedBy = Integer.parseInt(tmp);\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }", "public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdateBy(String lastUpdateBy) {\r\n\t\tthis.lastUpdateBy = lastUpdateBy;\r\n\t}", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public void setLastChangedBy(java.lang.String lastChangedBy) {\n\t\tthis.lastChangedBy = lastChangedBy;\n\t}", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setLASTMODIFIEDBY(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.LAST_MODIFIED_BY = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setModifiedBy(Long modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setModifiedBy(java.lang.String modifiedBy) {\r\n this.modifiedBy = modifiedBy;\r\n }", "public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public int getModifiedBy() {\n return modifiedBy;\n }", "public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "@Override\n\tpublic void setModifiedBy(long modifiedBy) {\n\t\t_candidate.setModifiedBy(modifiedBy);\n\t}", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public void setModifiedByUser(long modifiedByUser);", "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public void setLastModifyingUser(PersonAndOrganization lastModifyingUser)\r\n\t{\r\n\t\tthis.lastModifyingUser = lastModifyingUser;\r\n\t}", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setLastModifyTime(Date lastModifyTime) {\n this.lastModifyTime = lastModifyTime;\n }", "public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "public void setLastModify(long lastModify) {\r\n\t\tthis.lastModify = lastModify;\r\n\t}", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "public void setModifiedby( java.lang.Integer newValue ) {\n __setCache(\"modifiedby\", newValue);\n }", "public void setLastupdateby(String lastupdateby) {\n this.lastupdateby = lastupdateby == null ? null : lastupdateby.trim();\n }", "void setLastUpdatedTime();", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "@NoProxy\n public void updateLastmod() {\n setLastmod(new LastModified(new DateTime(true)).getValue());\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that most recently updated the policy\")\n public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setModifiedByUser(String modifiedByUser);", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public boolean hasLASTMODIFIEDBY() {\n return fieldSetFlags()[1];\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public void setSrcModifiedBy(String value) {\r\n setAttributeInternal(SRCMODIFIEDBY, value);\r\n }", "public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}", "@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}", "public void setModifiedby(java.lang.Integer newValue) {\n\tthis.modifiedby = newValue;\n}", "public void setLastModifyDate(Date lastModifyDate) {\n this.lastModifyDate = lastModifyDate;\n }", "public void setUpdatedBy(Long updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "@Valid\n @JsonProperty(\"lastModifiedBy\")\n public LastModifiedBy getLastModifiedBy();", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}" ]
[ "0.7924275", "0.77178985", "0.7711909", "0.76416844", "0.7596714", "0.75780714", "0.7567053", "0.74299145", "0.74299145", "0.7406314", "0.734336", "0.7327238", "0.73081374", "0.7301424", "0.7295781", "0.7295284", "0.72750646", "0.7249495", "0.72337925", "0.72337925", "0.7221366", "0.7215277", "0.7215277", "0.7215277", "0.7215277", "0.7197741", "0.7192195", "0.7192195", "0.7181906", "0.7181906", "0.71706176", "0.71696764", "0.7164178", "0.7162734", "0.7162613", "0.7162469", "0.7162469", "0.7162469", "0.7162469", "0.7162469", "0.7162469", "0.7162469", "0.7162469", "0.7162469", "0.7162357", "0.71517056", "0.714644", "0.7142295", "0.7142295", "0.7142295", "0.7142295", "0.71014845", "0.7098881", "0.7098228", "0.7072187", "0.70608366", "0.70411843", "0.70411843", "0.69901264", "0.6982081", "0.69464225", "0.6918759", "0.68985575", "0.6896896", "0.6859045", "0.68283576", "0.67833847", "0.6781257", "0.67646444", "0.6738895", "0.67387605", "0.6719376", "0.666958", "0.6658941", "0.66549367", "0.66237855", "0.6622766", "0.66082835", "0.6604315", "0.6604248", "0.65885663", "0.65544426", "0.65475196", "0.653826", "0.653826", "0.653826", "0.6533185", "0.65103847", "0.65103847", "0.65103847", "0.65008944", "0.64839226", "0.6477166", "0.6449534", "0.64484227", "0.6447607", "0.64431614", "0.643243", "0.64310277", "0.64272135" ]
0.7514542
7
Gets the created date.
public InstantFilter getCreatedDate() { return createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getCreatedDate();", "public Date getCreatedDate();", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "Date getDateCreated();", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getDateCreated();", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public java.util.Date getCreated() {\n return this.created;\n }", "public java.util.Date getDateCreated() {\n return dateCreated;\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getCreated() {\n return mCreated;\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}", "public Date getCreateddate() {\n return createddate;\n }", "public java.util.Calendar getCreatedDate() {\n return createdDate;\n }", "public java.util.Calendar getCreatedDate() {\n return createdDate;\n }", "public java.util.Calendar getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDt() {\n\t\treturn createdDt;\n\t}", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Date getDateCreated() {\n\t\treturn parseDate(getProperty(DATE_CREATED_PROPERTY));\n\t}", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public String getDatecreated() {\n return datecreated;\n }", "@Override\n public Date getCreated() {\n return created;\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public DateTime getCreated();", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public java.util.Date getCreatedate () {\n\t\treturn createdate;\n\t}", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public java.util.Date getCreatedTime() {\n return this.createdTime;\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "Date getCreateDate();", "Date getCreateDate();", "Date getCreationDate();", "public java.util.Date getCreated_date() {\n\t\treturn _primarySchoolStudent.getCreated_date();\n\t}", "public Timestamp getCreated() {\n return created;\n }", "public Date getCreatedTs() {\n\t\treturn createdTs;\n\t}", "public final ZonedDateTime getDateCreated() {\n return this.dateCreated;\n }", "public String getFormattedCreatedDate() {\n if (this.createdDate == null) {\n return null;\n }\n return DateUtilities.getFormattedDateWithTime(this.createdDate);\n }", "public Date getCreated ()\n throws ContentObjectException\n {\n try\n {\n final String METHOD_NAME = \"getCreated\";\n this.logDebug(METHOD_NAME + \": 1/2: Started\");\n this.ensureDbHelper();\n ResultSet resultSet =\n this.dbHelper.queryDatum(this.type, this.id, DbColumn.CREATED);\n if ( ! resultSet.next() )\n throw new SQLException\n (this.getIdentification() + \": \" + METHOD_NAME + \": Empty ResultSet\");\n Date created = resultSet.getTimestamp(DbColumn.CREATED);\n this.logDebug(METHOD_NAME + \": 2/2: Done. created = \" + created);\n return created;\n }\n catch (Exception exception)\n {\n throw new ContentObjectException(exception);\n }\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public DateTime getCreatedOn();", "public DateTime getCreatedDateTime() {\n return createdDateTime;\n }", "@Basic( optional = true )\n\t@Column( name = \"date_created\" )\n\tpublic Date getDateCreated() {\n\t\treturn this.dateCreated;\n\t\t\n\t}", "public String getCreateDate() {\n return createDate;\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public Date getDateCreated(){return DATE_CREATED;}", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();" ]
[ "0.88487244", "0.8562437", "0.8549352", "0.8549352", "0.85491323", "0.8521397", "0.85185385", "0.85051316", "0.84924227", "0.8484209", "0.8484209", "0.8477009", "0.8477009", "0.84751004", "0.84537053", "0.84537053", "0.84343207", "0.84343207", "0.8422588", "0.8414223", "0.8408979", "0.8408979", "0.8408979", "0.8408979", "0.84068894", "0.83893204", "0.8386781", "0.8386781", "0.8386781", "0.8386781", "0.8381684", "0.8365016", "0.8365016", "0.83366996", "0.8331595", "0.8316377", "0.83044004", "0.8302372", "0.8302372", "0.82796997", "0.82681966", "0.8253515", "0.82331973", "0.8228002", "0.8228002", "0.82244086", "0.8210636", "0.8210296", "0.8189402", "0.8174411", "0.8146184", "0.8142159", "0.81367815", "0.81367815", "0.81351674", "0.81245035", "0.81070215", "0.8073479", "0.80688524", "0.80688524", "0.80688524", "0.80688524", "0.8023853", "0.8023853", "0.8023853", "0.7995217", "0.7989604", "0.798216", "0.7959516", "0.7959516", "0.7959516", "0.79560494", "0.79533166", "0.79533166", "0.79533166", "0.7937582", "0.79072225", "0.79072225", "0.78976953", "0.78733104", "0.7863327", "0.7860956", "0.7859397", "0.78553796", "0.78512746", "0.7842874", "0.78421223", "0.7836019", "0.78340566", "0.78304166", "0.7824433", "0.7821509", "0.7814706", "0.7814038", "0.7814038", "0.7814038", "0.7814038", "0.7814038", "0.7814038", "0.7814038", "0.7814038" ]
0.0
-1
Sets the created date.
public void setCreatedDate(InstantFilter createdDate) { this.createdDate = createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreatedDate(Date createdDate);", "void setDateCreated(final Date dateCreated);", "public void setCreatedDate(Date createdDate);", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setDateCreated(Date dateCreated);", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreatedDate(Date createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreatedDate(Date createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "void setCreateDate(Date date);", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public void setDateCreated(java.util.Date dateCreated){\r\n\t\tthis.dateCreated = dateCreated;\r\n\t}", "public final void setDateCreated(java.util.Date datecreated)\r\n\t{\r\n\t\tsetDateCreated(getContext(), datecreated);\r\n\t}", "void setCreateDate(final Date creationDate);", "public void setCreateddate( Date createddate )\n {\n this.createddate = createddate;\n }", "public void setCreatedDate(java.util.Calendar createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(java.util.Calendar createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedDate(java.util.Calendar createdDate) {\n this.createdDate = createdDate;\n }", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreatedDate(String createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreateddate(Date createddate) {\n this.createddate = createddate;\n }", "public void setDateCreated(Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "public void setCreatedDate(Date createDate) {\n\t\tthis.createdDate = createDate;\n\t}", "public void setCreationDate(Date creationDate);", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedDate(Long createdDate) {\r\n\t\tthis.createdDate = createdDate;\r\n\t}", "public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }", "public void setCreatedDate(java.lang.String createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreated(java.util.Date created) {\n this.created = created;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setDateCreated(final Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "public void setDateCreated(java.util.Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}", "public void setCreationDate(Date creationDate) {\n }", "public void setCreatedOn(DateTime createdOn);", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreatedDate(LocalDateTime createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "public void setCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedOn(Date createdOn)\n {\n _model.setCreatedOn(createdOn);\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }" ]
[ "0.8839899", "0.86923844", "0.8634301", "0.8578824", "0.8578824", "0.84957427", "0.84549344", "0.84549344", "0.84238434", "0.84238434", "0.84173876", "0.83704644", "0.83704644", "0.83704644", "0.83704644", "0.8308761", "0.8308761", "0.8283103", "0.8219183", "0.8200072", "0.8200072", "0.8200072", "0.8137075", "0.8110802", "0.8095032", "0.80918133", "0.8086395", "0.80747616", "0.8065445", "0.8030448", "0.8030448", "0.8020686", "0.8017765", "0.80151516", "0.7998266", "0.796584", "0.796584", "0.796584", "0.7950895", "0.7950895", "0.79506725", "0.7931532", "0.79070556", "0.79070556", "0.7899117", "0.7874478", "0.7869712", "0.78663766", "0.78579485", "0.7823872", "0.7823872", "0.7823872", "0.7823872", "0.7814902", "0.77842206", "0.77739954", "0.7764119", "0.775002", "0.769661", "0.76476836", "0.7632292", "0.7632292", "0.7632292", "0.762654", "0.7617817", "0.7603094", "0.7593154", "0.754538", "0.754538", "0.7522293", "0.75153315", "0.7502214", "0.7473884", "0.74716866", "0.7453052", "0.74511313", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7445499", "0.7440686", "0.7440686", "0.7436047" ]
0.0
-1
Gets the last modified date.
public InstantFilter getLastModifiedDate() { return lastModifiedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getLastmodifieddate() {\n return lastmodifieddate;\n }", "public final Date getLastModifiedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"lastModifiedAt\" ) );\n\t}", "public Date getLastModifiedDate() {\n\t\treturn this.lastModifiedDate;\n\t\t\n\t}", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public String getLastModifiedDate() {\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Date getLastModified() {\n\t\treturn new Date(file.lastModified());\n\t}", "public java.util.Date getLastModified () {\r\n\t\treturn lastModified;\r\n\t}", "public java.util.Date getLastModifiedDate() {\n return this.lastModifiedDate;\n }", "public java.lang.CharSequence getLASTMODIFIEDDT() {\n return LAST_MODIFIED_DT;\n }", "public java.lang.CharSequence getLASTMODIFIEDDT() {\n return LAST_MODIFIED_DT;\n }", "public Date getLastModified() {\n return _lastModified;\n }", "public java.util.Date getLastModifiedDateTime() {\n return this.lastModifiedDateTime;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "public Date getLastModified ()\n throws ContentObjectException \n {\n try\n {\n final String METHOD_NAME = \"getLastModified\";\n this.logDebug(METHOD_NAME + \": 1/2: Started\");\n this.ensureDbHelper();\n ResultSet resultSet =\n this.dbHelper.queryDatum(this.type, this.id, DbColumn.LAST_MODIFIED);\n if ( ! resultSet.next() )\n throw new SQLException\n (this.getIdentification() + \": \" + METHOD_NAME + \": Empty ResultSet\");\n Date lastModified = resultSet.getTimestamp(DbColumn.LAST_MODIFIED);\n this.logDebug(METHOD_NAME + \": 2/2: Done. lastModified = \" + lastModified);\n return lastModified;\n }\n catch (Exception exception)\n {\n throw new ContentObjectException(exception);\n }\n }", "public Date getLastModifiedDate() {\n return lastModifiedDate != null ? new Date(lastModifiedDate.getTime()) : null;\n }", "public java.util.Calendar getLastModifiedDate() {\r\n return lastModifiedDate;\r\n }", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public Date getLastModifyDate() {\n return lastModifyDate;\n }", "public long getLastModified()\r\n/* 283: */ {\r\n/* 284:424 */ return getFirstDate(\"Last-Modified\");\r\n/* 285: */ }", "public java.util.Calendar getLastModifiedDate() {\n return lastModifiedDate;\n }", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public long getLastModified()\n\t{\n\t\treturn lastModified;\n\t}", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "public long getLastModified() { return lastModified; }", "public long getLastModified()\n {\n return( lastModified );\n }", "String getLastModified();", "public long getLastModified() {\n return lastModified;\n }", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public String getLastModified()\n {\n return lastModified;\n }", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "public String getDatemodified() {\n\t\treturn datemodified;\n\t}", "public LocalDateTime getLastModified() {\n return lastModified;\n }", "public String getDatemodified() {\n return datemodified;\n }", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "public Timestamp getLastModifiedOn() {\r\n\t\treturn lastModifiedOn;\r\n\t}", "public String getLastModified() {\n return lastModified;\n }", "public abstract Date getLastModified() throws AccessException;", "public Date getLastModifiedDate() {\n\n\t\tDate lastTransactionDate = null;\n\t\tfor ( ErpTransactionModel transaction : sale.getTransactions() ) {\n\t\t\tif (lastTransactionDate == null || lastTransactionDate.before(transaction.getTransactionDate())) {\n\t\t\t\tlastTransactionDate = transaction.getTransactionDate();\n\t\t\t}\n\t\t}\n\t\treturn lastTransactionDate;\n\t}", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public abstract long getLastModified();", "public long getLastModified() throws RepositoryException {\n return this.contentFile.lastModified();\n }", "public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public long getLastModified() { return _entry!=null? _entry.getLastModified() : 0; }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}", "public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}", "public java.time.ZonedDateTime getLastModifiedAt() {\n return this.lastModifiedAt;\n }", "public java.time.ZonedDateTime getLastModifiedAt() {\n return this.lastModifiedAt;\n }", "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public long getLastUpdateDate() {\n return (Long)content.get(LAST_UPDATE_DATE);\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "public String getTheLastModificationDate(final Document resource) throws Exception {\r\n\r\n // get last-modification-date\r\n NamedNodeMap atts = resource.getDocumentElement().getAttributes();\r\n Node lastModificationDateNode = atts.getNamedItem(\"last-modification-date\");\r\n return (lastModificationDateNode.getNodeValue());\r\n\r\n }", "public java.util.Date getLastModificationTime() {\n return this.lastModificationTime;\n }", "public Date getModifieddate() {\n return modifieddate;\n }", "public java.util.Calendar getLastModified() {\n return localLastModified;\n }", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public java.util.Date getModifiedDate() {\n\t\treturn _dmHistoryMaritime.getModifiedDate();\n\t}", "public Date getDateModified();", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}", "public long getLastModified(){\n\t\tDate lastMod;\n\t\tIterator<ArrayList<String>> i = headerLines.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tArrayList<String> headerLines = i.next();\n\t\t\tString headerName = headerLines.get(0);\n\t\t\tif (headerName.matches(\"Last-Modified:\")){\n\t\t\t\tString headerData = headerLines.get(1);\n\t\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss z\");\n\t\t\t\ttry {\n\t\t\t\t\tlastMod = dateFormat.parse(headerData.trim());\n\t\t\t\t\treturn lastMod.getTime();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (long) -1;\n\t}", "public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "@Override\n\tpublic Date getModifiedDate();", "@Override\n\tpublic Date getModifiedDate();", "public java.util.Date getModified_date() {\n\t\treturn _primarySchoolStudent.getModified_date();\n\t}", "@ApiModelProperty(value = \"An integer containing the last modified date and time, in number of seconds\")\n public String getLastModifiedDate() {\n return lastModifiedDate;\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}", "public Date getModifiedTime() {\n return modifiedTime;\n }", "long getLastModifiedTime() throws FileSystemException;", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _employee.getModifiedDate();\n\t}", "@java.lang.Override\n public com.google.protobuf.Timestamp getLastModifiedAt() {\n return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}", "Date getWorkfileLastChangedDate();", "public Date getModificationTime()\n {\n return modified;\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public long modified() {\n return lastModified;\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public DateTime lastModifiedDateTime() {\n return this.lastModifiedDateTime;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public java.util.Date getLastUpdatedDateTime() {\n return this.lastUpdatedDateTime;\n }", "public final long getModifyDateTime() {\n \treturn m_modifyDate;\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}" ]
[ "0.85067374", "0.8440465", "0.8363773", "0.83561563", "0.8329586", "0.827123", "0.8211565", "0.8198247", "0.8171974", "0.8143867", "0.8137127", "0.8107115", "0.80730796", "0.8065463", "0.8065463", "0.8030024", "0.80133", "0.8008163", "0.80021375", "0.79944474", "0.79805243", "0.7978412", "0.7972475", "0.7880058", "0.7867084", "0.7862994", "0.78587157", "0.7838169", "0.7823425", "0.7790511", "0.777365", "0.777365", "0.777365", "0.7757505", "0.77357525", "0.76987916", "0.76795673", "0.7667983", "0.7660713", "0.7658745", "0.76342356", "0.76315516", "0.7618108", "0.7617808", "0.7609632", "0.76001656", "0.75557613", "0.7555537", "0.75359976", "0.7535297", "0.7535297", "0.75329214", "0.7532248", "0.7527948", "0.7525077", "0.7506732", "0.74979955", "0.74979955", "0.74852955", "0.7480345", "0.7480345", "0.7475086", "0.7456409", "0.7452678", "0.7451888", "0.743371", "0.74288917", "0.74242276", "0.7418488", "0.7413907", "0.74101627", "0.74100703", "0.7397893", "0.7386368", "0.7368219", "0.7368219", "0.7358727", "0.7358566", "0.7344621", "0.7317671", "0.7310667", "0.7296414", "0.72956645", "0.7278874", "0.7278711", "0.72660494", "0.7261151", "0.72562385", "0.72529906", "0.72483385", "0.72328025", "0.72319067", "0.72280365", "0.72280365", "0.72280365", "0.722483", "0.722483", "0.7222286", "0.7219058", "0.72123134" ]
0.7705522
35
Sets the last modified date.
public void setLastModifiedDate(InstantFilter lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastmodifieddate(Date lastmodifieddate) {\n this.lastmodifieddate = lastmodifieddate;\n }", "public void setLastModified (java.util.Date lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}", "public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "void setModifyDate(final Date lastModifiedDate);", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "public void setDateModified(Date dateModified);", "@NoProxy\n public void updateLastmod() {\n setLastmod(new LastModified(new DateTime(true)).getValue());\n }", "public void setLastModifyDate(Date lastModifyDate) {\n this.lastModifyDate = lastModifyDate;\n }", "public void setLastModified(Timestamp lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}", "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setLastModified( long lastModified )\n {\n this.lastModified = lastModified;\n }", "public void setLastModifyTime(Date lastModifyTime) {\n this.lastModifyTime = lastModifyTime;\n }", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setLastModifiedDate(java.util.Calendar lastModifiedDate) {\r\n this.lastModifiedDate = lastModifiedDate;\r\n }", "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "public void setLastModifiedDate(Long lastModifiedDate)\r\n\t{\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}", "public void setModifiedDate(Date modifiedDate) {\n this.modifiedDate = modifiedDate;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}", "void setLastModifiedTime( long modTime ) throws FileSystemException;", "void setLastAccessDate();", "public TarArchiveEntry setLastModified(Date date) {\n modTime = date.getTime() / MILLIS_PER_SECOND;\n return this;\n }", "public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_changesetEntry.setModifiedDate(modifiedDate);\n\t}", "public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }", "public void setLastModifiedDate(java.util.Calendar lastModifiedDate) {\n this.lastModifiedDate = lastModifiedDate;\n }", "public boolean setModifiedDate(String date)\r\n \t{\r\n lastModified = date;\r\n return true;\r\n }", "void setLastUpdatedTime();", "public void setLastModifiedDate(String lastModifiedDate) {\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}", "public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }", "public void setLastModified(LocalDateTime lastModified) {\n this.lastModified = lastModified;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastModifiedDate(java.util.Date lastModifiedDate) {\n this.lastModifiedDate = lastModifiedDate;\n }", "public void setModifieddate(Date modifieddate) {\n this.modifieddate = modifieddate;\n }", "public void setModifiedDate(Date modifiedDate) {\n\t\tthis.modifiedDate = modifiedDate;\n\t}", "public void setModifiedDate(Timestamp value) {\r\n setAttributeInternal(MODIFIEDDATE, value);\r\n }", "public void setLastModified(java.util.Calendar param) {\n localLastModifiedTracker = param != null;\n\n this.localLastModified = param;\n }", "public void setLastModified(String lastModified)\n {\n this.lastModified = lastModified;\n }", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLASTMODIFIEDDT(java.lang.CharSequence value) {\n this.LAST_MODIFIED_DT = value;\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_employee.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "public void setLastModificationTime(java.util.Date lastModificationTime) {\n this.lastModificationTime = lastModificationTime;\n }", "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "@Override\n public void setLastModified(long time) {\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGtStatus.setModifiedDate(modifiedDate);\n\t}", "public void setLastModifiedBy(final LastModifiedBy lastModifiedBy);", "@Override\n\tpublic void setModifiedDate(java.util.Date ModifiedDate) {\n\t\t_locMstLocation.setModifiedDate(ModifiedDate);\n\t}", "public void setLastModifiedDate(final Date lastModifiedDate) {\n\t\tthis.lastModifiedDate = lastModifiedDate;\n\t}", "public void setModificationTime(Date lastModificationAtTime) {\n\n\t\tthis.lastModificationAtTime = lastModificationAtTime;\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_second.setModifiedDate(modifiedDate);\n\t}", "public void setMtime(Date mtime) {\n this.mtime = mtime;\n }", "public void setLastUpdated(final Date date) {\n this.lastUpdated = date;\n }", "@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _partido.setModifiedDate(modifiedDate);\n }", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }", "public void setLastModify(long lastModify) {\r\n\t\tthis.lastModify = lastModify;\r\n\t}", "public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setLASTMODIFIEDDT(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.LAST_MODIFIED_DT = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setDateModified(java.util.Date dateModified){\r\n\t\tthis.dateModified = dateModified;\r\n\t}", "public void setSrcModifiedDate(Date value) {\r\n setAttributeInternal(SRCMODIFIEDDATE, value);\r\n }", "public Date getLastModifyDate() {\n return lastModifyDate;\n }", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public void setLastUpdateDate(long lastUpdateDate) {\n content.put(LAST_UPDATE_DATE, lastUpdateDate);\n }", "public Date getLastmodifieddate() {\n return lastmodifieddate;\n }", "public void setModifiedDate(java.lang.String modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public void setLastmodifiedTime(Integer lastmodifiedTime) {\r\n this.lastmodifiedTime = lastmodifiedTime;\r\n }", "public java.util.Date getLastModified () {\r\n\t\treturn lastModified;\r\n\t}", "public void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmHistoryMaritime.setModifiedDate(modifiedDate);\n\t}", "public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_scienceApp.setModifiedDate(modifiedDate);\n\t}", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }", "void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "@XmlElement(name = \"lastModified\")\n public void setLastModified(long lastModified) {\n this.lastModified = lastModified;\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dictData.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_paper.setModifiedDate(modifiedDate);\n\t}" ]
[ "0.78799784", "0.7759845", "0.76568395", "0.76223123", "0.76223123", "0.76223123", "0.7565433", "0.7496761", "0.7496761", "0.7435337", "0.7435337", "0.7424952", "0.74107677", "0.7393079", "0.7385987", "0.73848236", "0.73435766", "0.7317051", "0.72716725", "0.72716725", "0.72614646", "0.7253242", "0.7223145", "0.72220194", "0.71987706", "0.71977204", "0.7189862", "0.7161917", "0.7158947", "0.71468395", "0.7131092", "0.7124016", "0.7115705", "0.7110561", "0.706756", "0.7065597", "0.70595473", "0.7048899", "0.7048899", "0.7048899", "0.70395947", "0.7038036", "0.70065427", "0.6970811", "0.69676197", "0.69546556", "0.69409645", "0.6935891", "0.6931127", "0.69259465", "0.69259465", "0.69259465", "0.69237095", "0.6923181", "0.69215053", "0.69066775", "0.6892482", "0.6875704", "0.68592227", "0.684832", "0.6847284", "0.6838404", "0.6832467", "0.6828579", "0.68155104", "0.6787775", "0.67868507", "0.6786376", "0.67818236", "0.6776806", "0.6774251", "0.6774251", "0.6774251", "0.6774251", "0.6774251", "0.6774251", "0.6774251", "0.6774251", "0.6760528", "0.6752769", "0.67352194", "0.6727281", "0.67154294", "0.6712485", "0.67101115", "0.6650436", "0.6643377", "0.6613153", "0.6591706", "0.65824085", "0.6575907", "0.6564232", "0.6564232", "0.6564232", "0.6563239", "0.656002", "0.6558061", "0.6548373", "0.65477556", "0.654215" ]
0.71605664
28
Gets the last name.
public StringFilter getLastName() { return lastName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getLastName();", "java.lang.String getLastName();", "java.lang.String getLastName();", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public String getLast_name() {\r\n return last_name;\r\n }", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public String getLastname() {\r\n\t\treturn lastname;\r\n\t}", "public String getLast_name() {\n return last_name;\n }", "public String getNameLast() {\n\t\t\treturn nameLast;\n\t\t}", "String getLastName();", "String getLastName();", "public String getLastName()\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the last name.\n\t\treturn lastName;\n\n\t}", "public String getLastName();", "public String getLastName() {\n \treturn lName;\n }", "public String getLastname() {\n return lastname;\n }", "public String getLastname() {\n\t\treturn lastname;\n\t}", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\r\n return lastName;\r\n }", "public String getLastname() {\n return (String) get(\"lastname\");\n }", "public java.lang.String getLastName() {\n return lastName;\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public final String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n return userItem.getLastName();\n }", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public java.lang.String getLastName() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tlastName_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public String getLastName() {\n return lastNameField.getText();\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public final String getLastName() {\n\t\treturn lastName;\n\t}", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lastName_ = s;\n return s;\n }\n }", "public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName()\n\t{\n\t\treturn lastName;\n\t}", "public java.lang.String getLastName() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tlastName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lastName_ = s;\n return s;\n }\n }", "public String getLastName() {\n\t\tthis.setLastName(this.lastName);\n\t\treturn this.lastName;\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public String getLastName() { return lastName; }", "public String getLastName() {\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public synchronized String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName() {\n\t\treturn this.lastName;\n\t}", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_LAST_NAME);\r\n }", "@AutoEscape\n\tpublic String getLast_name();", "@AutoEscape\n\tpublic String getLastName();", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName(){\r\n return lastname;\r\n }", "@AutoEscape\n\tpublic String getLastname();", "public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}", "public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}", "@Override\n\tpublic java.lang.String getLastName() {\n\t\treturn _candidate.getLastName();\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.88011783", "0.871034", "0.871034", "0.8682448", "0.8678723", "0.86420625", "0.86420625", "0.8488555", "0.8481781", "0.8479763", "0.8460649", "0.84588593", "0.84482414", "0.8434442", "0.8434442", "0.8432867", "0.8426157", "0.84235823", "0.84172684", "0.8407776", "0.8397177", "0.83783495", "0.83759886", "0.8366793", "0.8360915", "0.8360915", "0.8347084", "0.83385396", "0.83331776", "0.8325712", "0.83222324", "0.8308856", "0.83053064", "0.8296097", "0.82938135", "0.8287605", "0.8277972", "0.8277972", "0.8277972", "0.8276529", "0.8276529", "0.8268695", "0.82592416", "0.82582265", "0.82582265", "0.82545894", "0.82523483", "0.82523483", "0.8247074", "0.82425785", "0.82415456", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82410765", "0.82369363", "0.8233489", "0.82135355", "0.8204873", "0.818861", "0.818861", "0.818861", "0.818861", "0.818861", "0.818861", "0.818861", "0.818861", "0.8181733", "0.8176041", "0.8173208", "0.81714094", "0.81429476", "0.81411934", "0.8114235", "0.8110855", "0.8097394", "0.808433", "0.8081103", "0.807301", "0.80318725", "0.8028922", "0.80129135", "0.80129135", "0.8012831", "0.78998005" ]
0.0
-1
Sets the last name.
public void setLastName(StringFilter lastName) { this.lastName = lastName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setLastName(String last)\n {\n lastName = last;\n }", "public void setLastName( String last )\r\n {\r\n lastName = last;\r\n }", "public void setLastname(String lastname);", "public void setLastName(String inLast)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the value of lastName.\n\t\tlastName = inLast;\n\n\t}", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "public void setLast_name(String last_name);", "public void setLastName(java.lang.CharSequence value) {\n this.last_name = value;\n }", "public void setLast_name(String last_name) {\r\n this.last_name = last_name;\r\n }", "public void setLastname(String lastname) {\r\n\t\tthis.lastname = lastname;\r\n\t}", "public void setLastName(String lname) {\n lastNameField.setText(lname);\n }", "public void setLast_name(String last_name) {\n this.last_name = last_name;\n }", "public void setLastName(String s) {\r\n\t\tlastName = s;\t\t\r\n\t}", "public void setLastName(java.lang.String newLastName);", "public void setLast_name(java.lang.String last_name) {\n this.last_name = last_name;\n }", "public void setLast_name(java.lang.String last_name) {\n this.last_name = last_name;\n }", "public void setLastName(String value) {\n setAttributeInternal(LASTNAME, value);\n }", "public void setLastName(String lName){\n\t\t//If the user hits cancel a null is sent. Error message to let the user know they must enter a last name. \n\t\tif(lName == null){\n\t\t\tthrow new IllegalArgumentException(\"Sorry, but a last name must be entered.\");\n\t\t}\n\t\t\n\t\t//If the name is blank then an exception is thrown to inform the user.\n\t\tif(lName.trim().equals(\"\")){\n\t\t\tthrow new IllegalArgumentException(\"The last name cannot be blank\");\n\t\t}\n\t\t//If the name is not blank then the name is stored and a true is return.\n\t\telse{\n\t\t\t//Loop to check that all characters are letters and there are no digits.\n\t\t\tfor(int x = 0; x < lName.length(); x++){\n\t\t\t\tif(Character.isDigit(lName.charAt(x))){\n\t\t\t\t\tthrow new IllegalArgumentException(\"No digits are allowed in the name.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.lastName = lName;\n\t\t}\n\t}", "public void setLastName(String newLastName)\r\n {\r\n lastName = newLastName;\r\n }", "public void setLastName(String lName) {\n this.lastName = lName;\n }", "public void setLastName(String newLastName) {\n this.lastName = newLastName;\n }", "public void setLastName(String newLastName) {\n _lastName = newLastName;\n }", "public void setLastName(String lastName) {\n if (lastName.length() >= 3 && lastName.length() <= 20)\n this.lastName = lastName;\n }", "public com.politrons.avro.AvroPerson.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.last_name = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setLastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(java.lang.CharSequence value) {\n this.lastName = value;\n }", "public void setLastName(String lastName) {\n String old = this.lastName;\n this.lastName = lastName;\n firePropertyChange(LAST_NAME_PROPERTY, old, lastName);\n }", "public final void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName);", "public final void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastNameFieldName(final String value) {\n setProperty(LAST_NAME_FIELD_NAME_KEY, value);\n }", "Employee setLastname(String lastname);", "public void getLastName() {\n\n\t}", "public void setName(String firstname, String lastname) {\n\t\tname = firstname + \" \" + lastname;\n\t}", "public void setLastName(final String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(final String value)\n\t{\n\t\tsetLastName( getSession().getSessionContext(), value );\n\t}", "public void setLastName(final String value)\n\t{\n\t\tsetLastName( getSession().getSessionContext(), value );\n\t}", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.lastName = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setLastName(String lastName){\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setlastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(String lastName) {\n\t\tif (lastName == null)\n\t\t\tlastName = \"\";\n\t\tthis.lastName = lastName;\n\t}", "@Override\n\tpublic void LastName(String lastName) {\n\t\t\n\t}", "public void setLastname(String lastname) {\n this.lastname = lastname == null ? null : lastname.trim();\n }", "public void setLastName(String lastName) {\n if(lastName.length()>0)\n this.lastName = lastName;\n else this.lastName =\"undefined\";\n\n }", "public void setLastName(String lastName){\n //this keyword refers to the instance\n //is the local variable/argument\n //this is called shadowing\n\n lastName = this.lastName;\n\n }", "public void setLastName(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, LASTNAME,value);\n\t}", "public void setLastName(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, LASTNAME,value);\n\t}", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(java.lang.String lastName) {\r\n this.lastName = lastName;\r\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = StringUtils.trimString( lastName );\n\t}", "public void setLastName(String lastName) {\r\n this.lastName = doTrim(lastName);\r\n }", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastName(String lastName)\n\t{\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "public Builder setLastName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = name; \r\n }", "void setLastName(String lastName) throws IllegalArgumentException;", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String strLastName){\n\t\tdriver.findElement(lastname).sendKeys(strLastName);;\n\t}", "public void setLastname(String lastname) throws SQLException\r\n\t{\r\n\t\tif (lastname == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET lastname =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, lastname);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLastname(String \"+ lastname + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setLastName(String lastName) {\n this.lastName = Objects.requireNonNull(lastName,\n \"Last name can't be null.\");\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "public void setName(String firstName, String lastName){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n }", "public void setUserLastName(java.lang.String userLastName) {\r\n this.userLastName = userLastName;\r\n }", "public void changeName(String first, String last) {\n this.firstName = first;\n this.lastName = last;\n }", "public void changeName(String first, String last) {\n this.firstName = first;\n this.lastName = last;\n }", "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setName(String first, String last) {\r\n // Bouml preserved body begin 00040F02\r\n\t firstName = first;\r\n\t lastName = last;\r\n // Bouml preserved body end 00040F02\r\n }", "@Override\n\tpublic void setLastName(java.lang.String lastName) {\n\t\t_candidate.setLastName(lastName);\n\t}", "public void setLastName() {\n\t}", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public String getLastname() {\r\n\t\treturn lastname;\r\n\t}", "public void setName(String firstName, String lastName)\n {\n this.name = firstName +\" \"+ lastName;\n\n }", "public void setLastName (String ticketLastName)\r\n {\r\n lastName = ticketLastName;\r\n }", "public void setLastName(String lastName) throws Exception {\n if (!lastName.matches(\"[a-zA-Z]{1,45}\")) {\n throw new Exception(\"Last name can only contain letters of length 1-45.\");\n }\n this.lastName = lastName;\n }", "public String getLast_name() {\r\n return last_name;\r\n }", "public void setSrcLastName(String value) {\r\n setAttributeInternal(SRCLASTNAME, value);\r\n }", "public String getLastname() {\n\t\treturn lastname;\n\t}" ]
[ "0.855186", "0.8450088", "0.83630943", "0.81932086", "0.81870115", "0.8180245", "0.8124058", "0.8101262", "0.8074834", "0.80666625", "0.8037414", "0.8035209", "0.80246454", "0.80171144", "0.80171144", "0.7954328", "0.7949659", "0.793664", "0.79236466", "0.79209083", "0.79172325", "0.79147", "0.7879228", "0.7867979", "0.78582215", "0.78321207", "0.78156817", "0.77659637", "0.77543926", "0.772915", "0.7718334", "0.769524", "0.7686036", "0.7683585", "0.76385796", "0.76385796", "0.76371187", "0.7621576", "0.7619816", "0.7613417", "0.7597534", "0.7597375", "0.7596953", "0.75714463", "0.75530964", "0.7531041", "0.7531041", "0.75294363", "0.75294363", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7529338", "0.7525842", "0.75091726", "0.7500896", "0.7496936", "0.7496936", "0.7485992", "0.7464466", "0.74591774", "0.7447605", "0.74461275", "0.7405135", "0.7384549", "0.7384549", "0.7384549", "0.7384549", "0.7384549", "0.7384549", "0.7384549", "0.7384549", "0.73777056", "0.73722315", "0.73630446", "0.7318866", "0.73083425", "0.7304925", "0.7304633", "0.7304578", "0.7304578", "0.7297317", "0.7293074", "0.72774667", "0.725715", "0.72381777", "0.72381777", "0.7192011", "0.7178563", "0.71706647", "0.7166722", "0.7149383", "0.71338797", "0.70968044" ]
0.7109848
99