blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
332
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
7
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
557 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
82 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
5.41M
extension
stringclasses
11 values
content
stringlengths
7
5.41M
authors
listlengths
1
1
author
stringlengths
0
161
a621a94d1af5778c2feaf31655da0ee9701c1d37
ef6957ad9506c7f586938c3ae0fa9d7767293805
/SeataTmDemo/src/main/java/com/dahua/seata/client/RmOneFeginClient.java
11ccb79c76667d85452574b6a53427eb5442f2fd
[]
no_license
fujiying123/seat
af866d645769d783389d178c6cbea8691a36eed8
baa8db75ced55eee5a2f7186cd152a589e99f081
refs/heads/master
2023-07-29T21:21:46.104972
2021-09-21T05:46:30
2021-09-21T05:46:30
407,647,517
0
0
null
null
null
null
UTF-8
Java
false
false
510
java
package com.dahua.seata.client; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * @Classname FeginClient * @Description TODO * @Author 90673 * @Date 2021/9/17 */ @FeignClient(name="seata-rm1") public interface RmOneFeginClient { @PostMapping("/integral") public void integral(@RequestBody Integer integral); }
[ "fu_ji_ying@163.com" ]
fu_ji_ying@163.com
69dd8c9394029eafbd6535f65661c03fb94267e5
d7328d703aba247fd362859f1922328bb4264b77
/middle/chapter_002_servlet_jsp/src/main/java/ru/job4j/servlets/crud/AddOperation.java
668f41c41fea814a895af62982677eaaf580ebb9
[ "Apache-2.0" ]
permissive
ilya-moskovtsev/imoskovtsev
35d2f3ac5b44be69d7758c2ae4c4a53effb9e9a6
3bd289f29ebf1d76e206e6983ccd686f48342103
refs/heads/master
2022-12-20T13:28:16.647094
2022-01-08T20:25:04
2022-01-08T20:25:04
83,922,653
1
0
Apache-2.0
2022-12-16T15:30:37
2017-03-04T20:30:24
Java
UTF-8
Java
false
false
793
java
package ru.job4j.servlets.crud; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.time.LocalDate; public class AddOperation implements Operation { @Override public void apply(Validate logicLayer, HttpServletRequest req, HttpServletResponse resp) { String name = req.getParameter("name"); String login = req.getParameter("login"); String email = req.getParameter("email"); String password = req.getParameter("password"); User user = new User(); user.setName(name); user.setLogin(login); user.setEmail(email); user.setDateCreated(LocalDate.now()); user.setPassword(password); user.setRole(Role.USER); logicLayer.add(user); } }
[ "ilya.moskovtsev@gmail.com" ]
ilya.moskovtsev@gmail.com
d7e0aa10c10feaff077b405769370baec252cbb4
7813ae656060430402b8f308cb09971a19fbe488
/connectComponent/src/main/java/com/smart/connectComponent/IConnect.java
fae4b332495f5fdc4a16d3a853050a496746bd10
[]
no_license
Aa136075837/demo
2ea10bc15e76f4543a83f426350990d37d659cf0
d79fc15d3722f563d5b46c105fb322b637bb325a
refs/heads/master
2021-04-05T23:42:00.517725
2018-03-09T03:44:01
2018-03-09T03:44:01
124,417,695
0
0
null
null
null
null
UTF-8
Java
false
false
370
java
package com.smart.connectComponent; import com.smart.smartble.smartBle.BleDevice; /** * @author ARZE * @version 创建时间:2017/3/30 19:08 * @说明 */ public interface IConnect { void findNewDevice(BleDevice bleDevice); void leSanEnd(); void leSanStart(); void connectFail(); void connectedDevice(); void connectSuccessful(); }
[ "136075837@qq.com" ]
136075837@qq.com
f7065c38ea3fe8793e93b68ec97f832cdb1e2b93
de6f95a5ff215f83521b8f02f192971edae172a8
/src/main/java/javolution/util/service/MapService.java
99646e73fb982145411e0ca825b39305cb047475
[ "BSD-2-Clause" ]
permissive
artri/javolution-msftbx
7cc901677d27e027e0b21984e6a28ad5f04d1254
1ae76375165dbf89b243533863b43de0c994422c
refs/heads/master
2023-03-18T17:22:09.044577
2017-07-10T22:38:23
2017-07-10T22:38:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,221
java
/* * Javolution - Java(TM) Solution for Real-Time and Embedded Systems * Copyright (C) 2012 - Javolution (http://javolution.org/) * All rights reserved. * * Permission to use, copy, modify, and distribute this software is * freely granted, provided that this notice is preserved. */ package javolution.util.service; import java.io.Serializable; import java.util.Iterator; import java.util.Map; import java.util.concurrent.ConcurrentMap; import javolution.util.function.Equality; import javolution.util.function.Splittable; /** * The set of related map functionalities required to implement fast maps. * * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> * @version 6.0, July 21, 2013 * @see javolution.util.FastMap#FastMap() */ public interface MapService<K, V> extends Map<K, V>, ConcurrentMap<K, V>, Splittable<MapService<K, V>>, Serializable, Cloneable { /** * Returns a copy of this map; updates of the copy should not * impact the original. */ MapService<K, V> clone() throws CloneNotSupportedException; /** * Returns a set view over the entries of this map. The set * support adding/removing entries. Two entries are considered * equals if they have the same key regardless of their values. */ @Override SetService<Map.Entry<K, V>> entrySet(); /** * Returns an iterator over this map entries. */ Iterator<Entry<K, V>> iterator(); /** * Returns the key comparator used for key equality or order if the * map is sorted. */ Equality<? super K> keyComparator(); /** * Returns a set view over the key of this map, the set support * adding new key for which the value is automatically {@code null}. */ @Override SetService<K> keySet(); /** * Returns the value comparator used for value equality. */ Equality<? super V> valueComparator(); /** * Returns a collection view over the values of this map, the collection * support value/entry removal but not adding new values. */ @Override CollectionService<V> values(); }
[ "dmitriy.avtonomov@gmail.com" ]
dmitriy.avtonomov@gmail.com
e78b90b297f29e71ad444bab15b28f4571f590b2
7e9170092324c8108ded57a080167dc1312292dc
/backend/src/main/java/com/devsupeior/dscatalog/resources/CaterogyResource.java
8b2f89aeb557b55d6d59054972158a21ebc34195
[]
no_license
MarceloSantiagoCampos/DSCatalog-bootcamp-devsuperior
c56bca24c67aad6457dba36316f8a92edae54bce
aaee31a96404adabcfbedc242e79cff5dd780709
refs/heads/main
2023-08-21T11:47:01.756910
2021-10-01T23:33:05
2021-10-01T23:33:05
318,647,848
0
0
null
null
null
null
UTF-8
Java
false
false
2,676
java
package com.devsupeior.dscatalog.resources; import java.net.URI; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort.Direction; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.support.ServletUriComponentsBuilder; import com.devsupeior.dscatalog.dto.CategoryDTO; import com.devsupeior.dscatalog.services.CategoryService; @RestController @RequestMapping(value = "/categories") public class CaterogyResource { @Autowired private CategoryService service; @GetMapping public ResponseEntity<Page<CategoryDTO>> findAll( @RequestParam(value = "page", defaultValue = "0") Integer page, @RequestParam(value = "linesPerPage", defaultValue = "12") Integer linesPerPage, @RequestParam(value = "direction", defaultValue = "ASC") String direction, @RequestParam(value = "orderBy", defaultValue = "name") String orderBy ){ PageRequest pageRequest = PageRequest.of(page, linesPerPage, Direction.valueOf(direction), orderBy); Page<CategoryDTO> list = service.findAllPaged(pageRequest); return ResponseEntity.ok().body(list); } @GetMapping(value = "/{id}") public ResponseEntity<CategoryDTO> findById(@PathVariable Long id){ CategoryDTO dto = service.findById(id); return ResponseEntity.ok().body(dto); } @PostMapping public ResponseEntity<CategoryDTO> insert(@RequestBody CategoryDTO dto){ dto = service.insert(dto); URI uri = ServletUriComponentsBuilder.fromCurrentRequest().path("/{id}") .buildAndExpand(dto.getId()).toUri(); return ResponseEntity.created(uri).body(dto); } @PutMapping(value = "/{id}") public ResponseEntity<CategoryDTO> update(@PathVariable Long id, @RequestBody CategoryDTO dto){ dto = service.update(id, dto); return ResponseEntity.ok().body(dto); } @DeleteMapping(value = "/{id}") public ResponseEntity<CategoryDTO> delete(@PathVariable Long id){ service.delete(id); return ResponseEntity.noContent().build(); } }
[ "marcelosantiagocampos@gmail.com" ]
marcelosantiagocampos@gmail.com
7eb340d8325f13614ba97095fd0f9f16723544d7
c434c5e7e3219c5a15be4e28f47a12684bf5a05b
/src/main/java/struts2/home/HomeAction.java
39cae9e08fa6ac2aaba32e3067bc21d055881a64
[]
no_license
MrNgoc96/libary-management
9027fe6a01402328d95656b77a06b5b3e4816349
cdcb1601ea08d25dbe4a9d07fc1fad8c339e2df7
refs/heads/master
2020-03-27T04:24:31.800382
2018-08-24T03:23:24
2018-08-24T03:23:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,450
java
package struts2.home; import org.apache.struts2.convention.annotation.*; import org.springframework.beans.factory.annotation.Autowired; import struts2.book.dto.BookDTO; import struts2.book.service.BookService; import struts2.common.annotations.UserPermission; import struts2.common.basic.BaseAction; import struts2.common.users.UserRole; import struts2.reader.dto.ReaderDTO; import struts2.reader.service.ReaderService; import java.util.HashMap; import java.util.List; @Namespace(value = "/") @InterceptorRefs({ @InterceptorRef(value = "store",params = {"operationMode","RETRIEVE"}) }) public class HomeAction extends BaseAction { @Autowired BookService bookService; @Autowired ReaderService readerService; private List<BookDTO> top5NewBooks; private HashMap<BookDTO,Integer> top5ReadBook; private List<ReaderDTO> top5NewReader; private HashMap<ReaderDTO,Integer> top5Reader; @Override @Action(value = "", results = {@Result(name = "success", location = "/views/login.jsp")}) @UserPermission({UserRole.ADMIN,UserRole.STAFF,UserRole.UNKNOWN}) public String execute() throws Exception { return SUCCESS; } @Action(value = "home", results = {@Result(name = "success", location = "/views/index.jsp")}) @UserPermission({UserRole.ADMIN,UserRole.STAFF}) public String displayHome() throws Exception { top5NewBooks = bookService.getTop5NewBook(); top5ReadBook = bookService.getTop5BookRead(); top5NewReader = readerService.getTop5NewReader(); top5Reader = readerService.getTop5Reader(); return SUCCESS; } public List<BookDTO> getTop5NewBooks() { return top5NewBooks; } public void setTop5NewBooks(List<BookDTO> top5NewBooks) { this.top5NewBooks = top5NewBooks; } public HashMap<BookDTO, Integer> getTop5ReadBook() { return top5ReadBook; } public void setTop5ReadBook(HashMap<BookDTO, Integer> top5ReadBook) { this.top5ReadBook = top5ReadBook; } public List<ReaderDTO> getTop5NewReader() { return top5NewReader; } public void setTop5NewReader(List<ReaderDTO> top5NewReader) { this.top5NewReader = top5NewReader; } public HashMap<ReaderDTO, Integer> getTop5Reader() { return top5Reader; } public void setTop5Reader(HashMap<ReaderDTO, Integer> top5Reader) { this.top5Reader = top5Reader; } }
[ "ngoclhph05136@fpt.edu.vn" ]
ngoclhph05136@fpt.edu.vn
39bfbc0ffec95f8210d89437be2560f898a36c0c
c62c2947f1b236e8efc2de56c0cbac17fc2497cf
/src/main/java/org/openacs/message/SetParameterValuesResponse.java
a9e5a78a64b82fd0c28497622aa67e125b043860
[]
no_license
sigtrancoder/acs
a274c50943585563a99093f61bcc910f94e4361b
d72a3962ffbd1a38827416f5d2d079a70ca7d281
refs/heads/master
2020-03-13T21:55:06.052818
2018-04-27T14:50:34
2018-04-27T14:50:34
131,306,744
0
0
null
null
null
null
UTF-8
Java
false
false
1,404
java
/* * * Copyright 2007-2012 Audrius Valunas * * This file is part of LibreACS. * LibreACS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * LibreACS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with LibreACS. If not, see <http://www.gnu.org/licenses/>. * */ package org.openacs.message; import org.openacs.Message; import javax.xml.soap.SOAPBodyElement; import javax.xml.soap.SOAPException; import javax.xml.soap.SOAPFactory; public class SetParameterValuesResponse extends Message { /** Creates a new instance of GetParameterValues */ public SetParameterValuesResponse() { name = "SetParameterValuesResponse"; } protected void createBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException { } protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException { Status = Integer.parseInt(getRequestElement(spf, body, "Status")); } public int Status; }
[ "test@test.com" ]
test@test.com
d36ec4c74622be1c1460b7bd5eaec45efc503af2
48541b013e0b1286c6be06bc07b0bb0856a37ca0
/spring-rbac/spring-security-rbac/src/main/java/cn/hdj/modules/user/mapper/SysRolePermissionMapper.java
b95ebcbdb7fb63258e9acab38c81b07e67ce77df
[]
no_license
h-dj/Spring-Learning
50fd902ee5025f75ec5198b5833971cd85309c4b
761d401bb51f752d4c8a2c739c33b84b16eb6982
refs/heads/master
2023-05-11T10:16:35.528155
2023-04-26T11:01:33
2023-04-26T11:01:33
212,292,061
1
0
null
2023-03-08T17:34:44
2019-10-02T08:39:39
Java
UTF-8
Java
false
false
335
java
package cn.hdj.modules.user.mapper; import cn.hdj.modules.user.entity.SysRolePermission; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * 角色权限表 Mapper 接口 * </p> * * @author huangjiajian * @since 2022-06-26 */ public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> { }
[ "1432517356@qq.com" ]
1432517356@qq.com
9f224f6f556bd3d0af865754ac252e2c6743a9eb
265302da0a7cf8c2f06dd0f96970c75e29abc19b
/ar_webapp/src/main/java/org/kuali/kra/s2s/generator/impl/PHS398CareerDevelopmentAwardSupV3_0Generator.java
1ded8f0578486f82b5e8f8fb575190d1ad146570
[ "Apache-2.0", "ECL-2.0" ]
permissive
Ariah-Group/Research
ee7718eaf15b59f526fca6983947c8d6c0108ac4
e593c68d44176dbbbcdb033c593a0f0d28527b71
refs/heads/master
2021-01-23T15:50:54.951284
2017-05-05T02:10:59
2017-05-05T02:10:59
26,879,351
1
1
null
null
null
null
UTF-8
Java
false
false
24,396
java
/* * Copyright 2005-2014 The Kuali Foundation. * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl1.php * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kuali.kra.s2s.generator.impl; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.NonUSCitizenshipDataType; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.SpecificAims; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.CandidateInformationAndGoals; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.ConsortiumContractualArrangements; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.DataSafetyMonitoringPlan; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.InclusionOfChildren; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.InclusionOfWomenAndMinorities; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.InsitutionalEnvironment; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.InstitutionalCommitment; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.IntroductionToApplication; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.KeyBiologicalAndOrChemicalResources; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.LettersOfSupport; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.MentoringPlan; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.ProgressReportPublicationList; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.ProtectionOfHumanSubjects; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.ResearchStrategy; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.ResourceSharingPlans; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.ResponsibleConductOfResearch; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.SelectAgentResearch; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.StatementsOfSupport; import gov.grants.apply.forms.phs398CareerDevelopmentAwardSup30V30.PHS398CareerDevelopmentAwardSup30Document.PHS398CareerDevelopmentAwardSup30.CareerDevelopmentAwardAttachments.VertebrateAnimals; import gov.grants.apply.system.attachmentsV10.AttachedFileDataType; import gov.grants.apply.system.attachmentsV10.AttachmentGroupMin0Max100DataType; import gov.grants.apply.system.globalLibraryV20.YesNoDataType; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.xmlbeans.XmlObject; import org.kuali.kra.infrastructure.CitizenshipTypes; import org.kuali.kra.proposaldevelopment.bo.Narrative; import org.kuali.kra.proposaldevelopment.bo.ProposalPerson; import org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument; import org.kuali.kra.s2s.util.S2SConstants; import java.util.ArrayList; import java.util.List; /** * Class for generating the XML object for grants.gov * PHS398CareerDevelopmentAwardSup V3.0 Form is generated using XMLBean classes * and is based on PHS398ResearchPlanV3_0 schema. * */ public class PHS398CareerDevelopmentAwardSupV3_0Generator extends PHS398CareerDevelopmentAwardSupBaseGenerator { private static final Log LOG = LogFactory.getLog(PHS398CareerDevelopmentAwardSupV3_0Generator.class); private static final String PROPOSAL_TYPE_TASK_ORDER = "6"; // TODO, necessary? private XmlObject getPHS398CareerDevelopmentAwardSup() { PHS398CareerDevelopmentAwardSup30Document phs398CareerDevelopmentAwardSup30Document = PHS398CareerDevelopmentAwardSup30Document.Factory.newInstance(); PHS398CareerDevelopmentAwardSup30 phs398CareerDevelopmentAwardSup30 = PHS398CareerDevelopmentAwardSup30.Factory.newInstance(); phs398CareerDevelopmentAwardSup30.setFormVersion(S2SConstants.FORMVERSION_3_0); // Get the citizenship stuff getCitizenship(phs398CareerDevelopmentAwardSup30); // Get all the attachments phs398CareerDevelopmentAwardSup30.setCareerDevelopmentAwardAttachments(getCareerDevelopmentAwardAttachments()); phs398CareerDevelopmentAwardSup30Document.setPHS398CareerDevelopmentAwardSup30(phs398CareerDevelopmentAwardSup30); return phs398CareerDevelopmentAwardSup30Document; } private void getCitizenship(PHS398CareerDevelopmentAwardSup30 form) { for (ProposalPerson proposalPerson : pdDoc.getDevelopmentProposal().getProposalPersons()) { if (proposalPerson.isInvestigator()) { CitizenshipTypes citizenShip = s2sUtilService.getCitizenship(proposalPerson); if (citizenShip.name().equals(CitizenshipTypes.PERMANENT_RESIDENT_OF_US.toString())) { form.setCitizenshipIndicator(YesNoDataType.N_NO); form.setIsNonUSCitizenship(NonUSCitizenshipDataType.PERMANENT_U_S_RESIDENT_VISA); } else if (citizenShip.name().equals(CitizenshipTypes.PERMANENT_RESIDENT_OF_US_PENDING.toString())) { form.setCitizenshipIndicator(YesNoDataType.N_NO); form.setIsNonUSCitizenship(NonUSCitizenshipDataType.TEMPORARY_U_S_VISA); form.setPermanentResidentByAwardIndicator(YesNoDataType.Y_YES); } else if (citizenShip.name().equals(CitizenshipTypes.US_CITIZEN_OR_NONCITIZEN_NATIONAL.toString())) { form.setCitizenshipIndicator(YesNoDataType.Y_YES); } else if (citizenShip.name().equals(CitizenshipTypes.NON_US_CITIZEN_WITH_TEMPORARY_VISA.toString())) { form.setCitizenshipIndicator(YesNoDataType.N_NO); form.setIsNonUSCitizenship(NonUSCitizenshipDataType.TEMPORARY_U_S_VISA); form.setPermanentResidentByAwardIndicator(YesNoDataType.N_NO); } } } return; } // private ApplicationType getApplicationType() { // ApplicationType applicationType = ApplicationType.Factory.newInstance(); // if (pdDoc.getDevelopmentProposal().getProposalTypeCode() != null // && !pdDoc.getDevelopmentProposal().getProposalTypeCode() // .equals(PROPOSAL_TYPE_TASK_ORDER)) { // // Check !=6 to ensure that if proposalType='TASK ORDER", it must // // not set. THis is because the enum has no // // entry for TASK ORDER // applicationType.setTypeOfApplication(TypeOfApplication.Enum // .forInt(Integer.parseInt(pdDoc.getDevelopmentProposal() // .getProposalTypeCode()))); // } else { // applicationType.setTypeOfApplication(TypeOfApplication.NEW); // } // return applicationType; // } /* * This method fetches all attachments related to Career development award. */ private CareerDevelopmentAwardAttachments getCareerDevelopmentAwardAttachments() { CareerDevelopmentAwardAttachments careerDevelopmentAwardAttachments = CareerDevelopmentAwardAttachments.Factory.newInstance(); AttachmentGroupMin0Max100DataType attachmentGroupMin0Max100DataType = AttachmentGroupMin0Max100DataType.Factory.newInstance(); List<AttachedFileDataType> attachedFileList = new ArrayList<AttachedFileDataType>(); AttachedFileDataType attachedFileDataType = null; for (Narrative narrative : pdDoc.getDevelopmentProposal().getNarratives()) { int narrativeTypeCode = Integer.parseInt(narrative.getNarrativeTypeCode()); switch (narrativeTypeCode) { case NARRATIVE_TYPE_INTRODUCTION_TO_APPLICATION: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } IntroductionToApplication introductionToApplication = IntroductionToApplication.Factory.newInstance(); introductionToApplication.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setIntroductionToApplication(introductionToApplication); break; case NARRATIVE_TYPE_CAREER_GOALS_AND_OBJECTIVES: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } CandidateInformationAndGoals attachment = CandidateInformationAndGoals.Factory.newInstance(); attachment.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setCandidateInformationAndGoals(attachment); break; case NARRATIVE_TYPE_SPECIFIC_AIMS: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } SpecificAims specificAims = SpecificAims.Factory.newInstance(); specificAims.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setSpecificAims(specificAims); break; case NARRATIVE_TYPE_PHS_CAREER_REASEARCH_STRATEGY: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } ResearchStrategy researchStrategy = ResearchStrategy.Factory.newInstance(); researchStrategy.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setResearchStrategy(researchStrategy); break; case NARRATIVE_TYPE_PROGRESS_REPORT_PUBLICATION_LIST: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } ProgressReportPublicationList progressReportPublicationList = ProgressReportPublicationList.Factory.newInstance(); progressReportPublicationList.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setProgressReportPublicationList(progressReportPublicationList); break; case NARRATIVE_TYPE_RESPONSIBLE_CONDUCT_OF_RESEARCH: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } ResponsibleConductOfResearch responsibleConductOfResearch = ResponsibleConductOfResearch.Factory.newInstance(); responsibleConductOfResearch.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setResponsibleConductOfResearch(responsibleConductOfResearch); break; case NARRATIVE_TYPE_PHS398_MENTORING_PLAN: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } MentoringPlan mentoringPlan = MentoringPlan.Factory.newInstance(); mentoringPlan.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setMentoringPlan(mentoringPlan); break; case NARRATIVE_TYPE_PHS_StatemensOfSupport: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } StatementsOfSupport statementsOfSupport = StatementsOfSupport.Factory.newInstance(); statementsOfSupport.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setStatementsOfSupport(statementsOfSupport); break; case NARRATIVE_TYPE_PHS_LettersOfSupport: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } LettersOfSupport letters = LettersOfSupport.Factory.newInstance(); letters.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setLettersOfSupport(letters); break; case NARRATIVE_TYPE_PHS_InsitutionalEnvironment: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } InsitutionalEnvironment insitutionalEnvironment = InsitutionalEnvironment.Factory.newInstance(); insitutionalEnvironment.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setInsitutionalEnvironment(insitutionalEnvironment); break; case NARRATIVE_TYPE_PHS398_INSTITUTIONAL_COMMITMENT: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } InstitutionalCommitment institutionalCommitment = InstitutionalCommitment.Factory.newInstance(); institutionalCommitment.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setInstitutionalCommitment(institutionalCommitment); break; case NARRATIVE_TYPE_PROTECTION_OF_HUMAN_SUBJECTS: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } ProtectionOfHumanSubjects protectionOfHumanSubjects = ProtectionOfHumanSubjects.Factory.newInstance(); protectionOfHumanSubjects.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setProtectionOfHumanSubjects(protectionOfHumanSubjects); break; case NARRATIVE_TYPE_PHS_DataSafetyMonitoringPlan: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } DataSafetyMonitoringPlan safetyPlan = DataSafetyMonitoringPlan.Factory.newInstance(); safetyPlan.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setDataSafetyMonitoringPlan(safetyPlan); break; case NARRATIVE_TYPE_INCLUSION_OF_WOMEN_AND_MINORITIES: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } InclusionOfWomenAndMinorities inclusionOfWomenAndMinorities = InclusionOfWomenAndMinorities.Factory.newInstance(); inclusionOfWomenAndMinorities.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setInclusionOfWomenAndMinorities(inclusionOfWomenAndMinorities); break; case NARRATIVE_TYPE_INCLUSION_OF_CHILDREN: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } InclusionOfChildren inclusionOfChildren = InclusionOfChildren.Factory.newInstance(); inclusionOfChildren.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setInclusionOfChildren(inclusionOfChildren); break; case NARRATIVE_TYPE_VERTEBRATE_ANIMALS: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } VertebrateAnimals vertebrateAnimals = VertebrateAnimals.Factory.newInstance(); vertebrateAnimals.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setVertebrateAnimals(vertebrateAnimals); break; case NARRATIVE_TYPE_SELECT_AGENT_RESEARCH: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } SelectAgentResearch selectAgentResearch = SelectAgentResearch.Factory.newInstance(); selectAgentResearch.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setSelectAgentResearch(selectAgentResearch); break; case NARRATIVE_TYPE_PHS_CAREER_CONSORTIUM_CONTRACT: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } ConsortiumContractualArrangements consortiumContractualArrangements = ConsortiumContractualArrangements.Factory.newInstance(); consortiumContractualArrangements.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setConsortiumContractualArrangements(consortiumContractualArrangements); break; case NARRATIVE_TYPE_PHS_CAREER_RESOURCE_SHARING_PLAN: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } ResourceSharingPlans resourceSharingPlans = ResourceSharingPlans.Factory.newInstance(); resourceSharingPlans.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setResourceSharingPlans(resourceSharingPlans); break; case NARRATIVE_TYPE_PHS_KeyBiologicalAndOrChemicalResources: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } KeyBiologicalAndOrChemicalResources resources = KeyBiologicalAndOrChemicalResources.Factory.newInstance(); resources.setAttFile(attachedFileDataType); careerDevelopmentAwardAttachments.setKeyBiologicalAndOrChemicalResources(resources); break; case NARRATIVE_TYPE_PHS_CAREER_APPENDIX: attachedFileDataType = getAttachedFileType(narrative); if (attachedFileDataType == null) { continue; } attachedFileList.add(attachedFileDataType); break; default: LOG.warn("**** UNHANDLED narrative type for CarrerDevelopmentAwardSup: " + Integer.parseInt(narrative.getNarrativeTypeCode())); break; } } attachmentGroupMin0Max100DataType.setAttachedFileArray(attachedFileList.toArray(new AttachedFileDataType[0])); careerDevelopmentAwardAttachments.setAppendix(attachmentGroupMin0Max100DataType); return careerDevelopmentAwardAttachments; } /** * This method creates {@link XmlObject} of type * {@link PHS398ResearchPlan12Document} by populating data from the given * {@link ProposalDevelopmentDocument} * * @param proposalDevelopmentDocument for which the {@link XmlObject} needs * to be created * @return {@link XmlObject} which is generated using the given * {@link ProposalDevelopmentDocument} * @see * org.kuali.kra.s2s.generator.S2SFormGenerator#getFormObject(ProposalDevelopmentDocument) */ public XmlObject getFormObject( ProposalDevelopmentDocument proposalDevelopmentDocument) { this.pdDoc = proposalDevelopmentDocument; return getPHS398CareerDevelopmentAwardSup(); } /** * This method typecasts the given {@link XmlObject} to the required * generator type and returns back the document of that generator type. * * @param xmlObject which needs to be converted to the document type of the * required generator * @return {@link XmlObject} document of the required generator type * @see * org.kuali.kra.s2s.generator.S2SFormGenerator#getFormObject(XmlObject) */ public XmlObject getFormObject(XmlObject xmlObject) { PHS398CareerDevelopmentAwardSup30 phs398CareerDevelopmentAwardSup30 = PHS398CareerDevelopmentAwardSup30.Factory .newInstance(); PHS398CareerDevelopmentAwardSup30Document phs398CareerDevelopmentAwardSupDocument = PHS398CareerDevelopmentAwardSup30Document.Factory .newInstance(); phs398CareerDevelopmentAwardSupDocument .setPHS398CareerDevelopmentAwardSup30(phs398CareerDevelopmentAwardSup30); return phs398CareerDevelopmentAwardSupDocument; } }
[ "code@ariahgroup.org" ]
code@ariahgroup.org
a975ea4d42f6e3f97fc8d036cfeb66c7d025df8f
4bc80b4d7da510620a6e71004ec8881e29ba8cce
/app/build/generated/source/r/walker/debug/com/coach/walker/Manifest.java
496ab8eb2ebd3166eaa7a2dcbbb939efbed998cb
[]
no_license
pierrealexvezinet/walker
de6d220966251fdfb345138f2f8b23513d1da564
6c56c48d0750e6287d037fde99f07a5387c50ae1
refs/heads/master
2020-04-10T04:53:42.415701
2018-12-10T09:42:56
2018-12-10T09:42:56
160,812,169
0
0
null
null
null
null
UTF-8
Java
false
false
376
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.coach.walker; public final class Manifest { public static final class permission { public static final String C2D_MESSAGE="com.coach.walker.debug.permission.C2D_MESSAGE"; } }
[ "pavezinet@live.fr" ]
pavezinet@live.fr
8bd90621a8789d5acce0994860d4b8c44207c488
714b7823c943e45fdf0f2236794a892b08406d3c
/src/main/java/com/quaero/qbcTest/server/StirApi.java
06d8ce8b8590053b434c5b204d5852c62c732588
[]
no_license
zhangbinbtx/QBC
a457e0d65028bd915495ff771580caca1696b6b0
f6ca1d5c84aa4ddd5adffe8629544a9a139eaf18
refs/heads/master
2023-04-21T06:26:56.142626
2021-05-25T02:26:17
2021-05-25T02:26:17
365,888,402
0
0
null
null
null
null
UTF-8
Java
false
false
114
java
package com.quaero.qbcTest.server; import org.springframework.stereotype.Service; public interface StirApi { }
[ "771566497@qq.com" ]
771566497@qq.com
ea1665773a29265a09520a8ed52645e614e7acb4
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
/ast_results/soft-studio_NFC_DriversLicenseReader/src/jj2000/j2k/wavelet/synthesis/SynWTFilterSpec.java
9389d00707bccef2e001663668cc3b042a1083c2
[]
no_license
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
0564143d92f8024ff5fa6b659c2baebf827582b1
refs/heads/master
2020-07-13T13:53:40.297493
2019-01-11T11:51:18
2019-01-11T11:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,611
java
// isComment package jj2000.j2k.wavelet.synthesis; import jj2000.j2k.*; /** * isComment */ public class isClassOrIsInterface extends ModuleSpec { /** * isComment */ public isConstructor(int isParameter, int isParameter, byte isParameter) { super(isNameExpr, isNameExpr, isNameExpr); } /** * isComment */ public int isMethod(int isParameter, int isParameter) { SynWTFilter[][] isVariable = (SynWTFilter[][]) isMethod(isNameExpr, isNameExpr); return isNameExpr[isIntegerConstant][isIntegerConstant].isMethod(); } /** * isComment */ public SynWTFilter[] isMethod(int isParameter, int isParameter) { SynWTFilter[][] isVariable = (SynWTFilter[][]) isMethod(isNameExpr, isNameExpr); return isNameExpr[isIntegerConstant]; } /** * isComment */ public SynWTFilter[] isMethod(int isParameter, int isParameter) { SynWTFilter[][] isVariable = (SynWTFilter[][]) isMethod(isNameExpr, isNameExpr); return isNameExpr[isIntegerConstant]; } /** * isComment */ public boolean isMethod(int isParameter, int isParameter) { // isComment // isComment SynWTFilter[] isVariable = isMethod(isNameExpr, isNameExpr), isVariable = isMethod(isNameExpr, isNameExpr); // isComment for (int isVariable = isNameExpr.isFieldAccessExpr - isIntegerConstant; isNameExpr >= isIntegerConstant; isNameExpr--) if (!isNameExpr[isNameExpr].isMethod() || !isNameExpr[isNameExpr].isMethod()) return true; return true; } }
[ "matheus@melsolucoes.net" ]
matheus@melsolucoes.net
6027cb0e601233747283c97e50cae0df7e740687
33a76a275d863083db276310b20319937b234d0c
/src/week1/day1/ScannerTest.java
f8b5bff84fae92c0197d2a7d2286fc42648e09b0
[]
no_license
OlegVasylyshyn/base2
3f82fa621dc7e00e7421cfaf23bada901541e21f
9f2ad8ca217f94b594b5e35579ef66e4c8aa8245
refs/heads/master
2021-09-06T13:54:57.007005
2018-02-07T07:12:20
2018-02-07T07:12:20
113,223,216
0
0
null
null
null
null
UTF-8
Java
false
false
596
java
package week1.day1; import java.util.Scanner; public class ScannerTest { public static void main(String[] args) { System.out.print("Enter your number - "); Scanner scanner = new Scanner(System.in); int numberFromConsole = scanner.nextInt(); System.out.print("Here your number - "); System.out.println(numberFromConsole); System.out.print("Enter your double number - "); double doubleFromConsole = scanner.nextDouble(); System.out.print("Here your double number - "); System.out.println(doubleFromConsole); } }
[ "disposition@ukr.net" ]
disposition@ukr.net
174aa83e0a3359330c3b1c994eacaf4fd03ecce7
84b4291d5f74c940c3d31067b88ba0dbb162b97b
/app/src/main/java/com/example/intent/Third.java
f82fa55daf5fa6020cf16c62aa06bb72684417e9
[]
no_license
DerrickPikachu/Intent
df35ca59f996d4f0dd83eb7a75b4ead6b7645e16
371af5a69a66bc294503bc15a235ebeff1f5e45d
refs/heads/master
2020-08-17T02:59:13.452976
2019-10-16T17:47:36
2019-10-16T17:47:36
215,595,980
0
0
null
null
null
null
UTF-8
Java
false
false
595
java
package com.example.intent; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Third extends AppCompatActivity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_third); Button goBackBtn = findViewById(R.id.backToSecond); goBackBtn.setOnClickListener(this); } @Override public void onClick(View view) { finish(); } }
[ "derrfgh4563@gmail.com" ]
derrfgh4563@gmail.com
4326b282b141beb0c57ad49fef6c59562c7ef1b6
44b632be40c3bc39e4c75d1d6f79dc8032b6147a
/app/src/main/java/com/example/mq661/govproject/AlterRoom/manage_person.java
62d70d18b1c01fd5f244797d8712c76deb20eb5b
[]
no_license
Asimok/GoVProject
bb512cd402228e0d71329d34cf952d59e564009e
c9e324731a298d67a96228ac3ea377e7fe2c2f3c
refs/heads/master
2022-04-19T06:49:04.720999
2020-04-19T03:12:01
2020-04-19T03:12:01
164,275,607
0
0
null
null
null
null
UTF-8
Java
false
false
1,967
java
package com.example.mq661.govproject.AlterRoom; import android.content.Intent; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.example.mq661.govproject.Participants.Sign_getSigninfo_handler; import com.example.mq661.govproject.Participants.after_Payment_Person_handler; import com.example.mq661.govproject.Participants.sub_Person_getRoom_handler; import com.example.mq661.govproject.R; public class manage_person extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.wty_manageperson_layout); } public void aferPayment(View view) { Intent intent; intent = new Intent(this, after_Payment_Person_handler.class); startActivityForResult(intent, 0); } public void subPerson(View view) { Intent intent; intent = new Intent(this, sub_Person_getRoom_handler.class); startActivityForResult(intent, 0); } @Override public void onConfigurationChanged(Configuration newConfig) { //非默认值 if (newConfig.fontScale != 1) { getResources(); } super.onConfigurationChanged(newConfig); } @Override public Resources getResources() {//还原字体大小 Resources res = super.getResources(); //非默认值 if (res.getConfiguration().fontScale != 1) { Configuration newConfig = new Configuration(); newConfig.setToDefaults();//设置默认 res.updateConfiguration(newConfig, res.getDisplayMetrics()); } return res; } public void SignInfo(View view) { Intent intent; intent = new Intent(this, Sign_getSigninfo_handler.class); startActivityForResult(intent, 0); } }
[ "38159292+LeoMachine@users.noreply.github.com" ]
38159292+LeoMachine@users.noreply.github.com
7b2009cc5020ec69d788d58c28ea40d394430f5b
863d0fa9a1f736ce29f98ebc1332b620fa5855de
/lesson_18_19_20_java_8/homework/storage/initor/StorageInitor.java
487099800edead6f183388e01a2dbf1138ff4c14
[]
no_license
DunkanMcLoud/EpamTraining
bee48f712f666041883d62cc23b3ef05c2daf61d
9f48644a48c9252c21287839558c19595dbdf476
refs/heads/master
2020-09-23T16:36:50.336233
2020-02-10T14:14:04
2020-02-10T14:14:04
225,541,077
0
2
null
null
null
null
UTF-8
Java
false
false
368
java
package ru.epam.javacore.lesson_18_19_20_java_8.homework.storage.initor; import ru.epam.javacore.lesson_18_19_20_java_8.homework.common.business.exception.checked.InitStorageException; import java.io.IOException; import java.sql.SQLException; public interface StorageInitor { void initStorage() throws InitStorageException, IOException, SQLException; }
[ "noreply@github.com" ]
noreply@github.com
e192fdb91a8206c8323ca0dae989ffa51558c4da
2cf88bd7155ad9dc2985c98fb6257f91aafe6267
/app/src/main/java/com/example/guesslogio01/MainActivity.java
a341399738de87d89791c7721bcf1f1ccf3e7b08
[]
no_license
jabeer2/Guess-Logo
ad53c830e0a618a0ef2c675e971deca2933236b8
420c2a89400947fbc12f49699c7a0694456a6f16
refs/heads/master
2022-12-28T15:30:41.886901
2020-10-09T16:38:43
2020-10-09T16:38:43
302,697,969
0
0
null
null
null
null
UTF-8
Java
false
false
337
java
package com.example.guesslogio01; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }
[ "ja8eer@localhost.localdomain" ]
ja8eer@localhost.localdomain
b813997d709fc1aae65277428b0218726717236a
f43ee27457403cbbe654f9c00ef20859428628ca
/java/Algorithm-1-1-29/src/com/company/StdOut.java
38e66dea4db8cd427e09bca7a6375786b60fd0c2
[]
no_license
jialinxie/Algorithm-4-th
90ffcad7ce35be016845f0f6dabff2797ea09e22
bf5f4e0340dceea696f42919e63f700d08bf22d1
refs/heads/master
2021-06-10T06:16:07.552461
2019-11-12T13:29:50
2019-11-12T13:29:50
83,691,730
0
0
null
null
null
null
UTF-8
Java
false
false
8,785
java
/****************************************************************************** * Compilation: javac StdOut.java * Execution: java StdOut * Dependencies: none * * Writes data of various types to standard output. * ******************************************************************************/ import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.Locale; /** * This class provides methods for printing strings and numbers to standard output. * <p> * <b>Getting started.</b> * To use this class, you must have {@code StdOut.class} in your * Java classpath. If you used our autoinstaller, you should be all set. * Otherwise, download * <a href = "https://introcs.cs.princeton.edu/java/stdlib/StdOut.java">StdOut.java</a> * and put a copy in your working directory. * <p> * Here is an example program that uses {@code StdOut}: * <pre> * public class TestStdOut { * public static void main(String[] args) { * int a = 17; * int b = 23; * int sum = a + b; * StdOut.println("Hello, World"); * StdOut.printf("%d + %d = %d\n", a, b, sum); * } * } * </pre> * <p> * <b>Differences with System.out.</b> * The behavior of {@code StdOut} is similar to that of {@link System#out}, * but there are a few technical differences: * <ul> * <li> {@code StdOut} coerces the character-set encoding to UTF-8, * which is a standard character encoding for Unicode. * <li> {@code StdOut} coerces the locale to {@link Locale#US}, * for consistency with {@link StdIn}, {@link Double#parseDouble(String)}, * and floating-point literals. * <li> {@code StdOut} <em>flushes</em> standard output after each call to * {@code print()} so that text will appear immediately in the terminal. * </ul> * <p> * <b>Reference.</b> * For additional documentation, * see <a href="https://introcs.cs.princeton.edu/15inout">Section 1.5</a> of * <em>Computer Science: An Interdisciplinary Approach</em> * by Robert Sedgewick and Kevin Wayne. * * @author Robert Sedgewick * @author Kevin Wayne */ public final class StdOut { // force Unicode UTF-8 encoding; otherwise it's system dependent private static final String CHARSET_NAME = "UTF-8"; // assume language = English, country = US for consistency with StdIn private static final Locale LOCALE = Locale.US; // send output here private static PrintWriter out; // this is called before invoking any methods static { try { out = new PrintWriter(new OutputStreamWriter(System.out, CHARSET_NAME), true); } catch (UnsupportedEncodingException e) { System.out.println(e); } } // don't instantiate private StdOut() { } /** * Closes standard output. * @deprecated Calling close() permanently disables standard output; * subsequent calls to StdOut.println() or System.out.println() * will no longer produce output on standard output. */ @Deprecated public static void close() { out.close(); } /** * Terminates the current line by printing the line-separator string. */ public static void println() { out.println(); } /** * Prints an object to this output stream and then terminates the line. * * @param x the object to print */ public static void println(Object x) { out.println(x); } /** * Prints a boolean to standard output and then terminates the line. * * @param x the boolean to print */ public static void println(boolean x) { out.println(x); } /** * Prints a character to standard output and then terminates the line. * * @param x the character to print */ public static void println(char x) { out.println(x); } /** * Prints a double to standard output and then terminates the line. * * @param x the double to print */ public static void println(double x) { out.println(x); } /** * Prints an integer to standard output and then terminates the line. * * @param x the integer to print */ public static void println(float x) { out.println(x); } /** * Prints an integer to standard output and then terminates the line. * * @param x the integer to print */ public static void println(int x) { out.println(x); } /** * Prints a long to standard output and then terminates the line. * * @param x the long to print */ public static void println(long x) { out.println(x); } /** * Prints a short integer to standard output and then terminates the line. * * @param x the short to print */ public static void println(short x) { out.println(x); } /** * Prints a byte to standard output and then terminates the line. * <p> * To write binary data, see {@link BinaryStdOut}. * * @param x the byte to print */ public static void println(byte x) { out.println(x); } /** * Flushes standard output. */ public static void print() { out.flush(); } /** * Prints an object to standard output and flushes standard output. * * @param x the object to print */ public static void print(Object x) { out.print(x); out.flush(); } /** * Prints a boolean to standard output and flushes standard output. * * @param x the boolean to print */ public static void print(boolean x) { out.print(x); out.flush(); } /** * Prints a character to standard output and flushes standard output. * * @param x the character to print */ public static void print(char x) { out.print(x); out.flush(); } /** * Prints a double to standard output and flushes standard output. * * @param x the double to print */ public static void print(double x) { out.print(x); out.flush(); } /** * Prints a float to standard output and flushes standard output. * * @param x the float to print */ public static void print(float x) { out.print(x); out.flush(); } /** * Prints an integer to standard output and flushes standard output. * * @param x the integer to print */ public static void print(int x) { out.print(x); out.flush(); } /** * Prints a long integer to standard output and flushes standard output. * * @param x the long integer to print */ public static void print(long x) { out.print(x); out.flush(); } /** * Prints a short integer to standard output and flushes standard output. * * @param x the short integer to print */ public static void print(short x) { out.print(x); out.flush(); } /** * Prints a byte to standard output and flushes standard output. * * @param x the byte to print */ public static void print(byte x) { out.print(x); out.flush(); } /** * Prints a formatted string to standard output, using the specified format * string and arguments, and then flushes standard output. * * * @param format the <a href = "http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax">format string</a> * @param args the arguments accompanying the format string */ public static void printf(String format, Object... args) { out.printf(LOCALE, format, args); out.flush(); } /** * Prints a formatted string to standard output, using the locale and * the specified format string and arguments; then flushes standard output. * * @param locale the locale * @param format the <a href = "http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax">format string</a> * @param args the arguments accompanying the format string */ public static void printf(Locale locale, String format, Object... args) { out.printf(locale, format, args); out.flush(); } /** * Unit tests some of the methods in {@code StdOut}. * * @param args the command-line arguments */ public static void main(String[] args) { // write to stdout StdOut.println("Test"); StdOut.println(17); StdOut.println(true); StdOut.printf("%.6f\n", 1.0/7.0); } }
[ "lin990033@gmail.com" ]
lin990033@gmail.com
1f9a8d7d3d26bca66e810430b4b4ab18ba6e171d
aba945d945104bc7f213b012f306826d7ae17180
/src/main/java/com/hand/cloud/mybatisplus/entity/Sentence.java
f001c5b039564e5cfe56864e80326a4de03f9b4f
[]
no_license
ujhujuh/mybatis-plus
d122e96b1d8424494ece2a4e49760858e5db2196
62d38b2b872ecbd19b010152a02b76ffcfb9e1ec
refs/heads/master
2020-04-17T03:29:22.455107
2019-01-17T08:11:39
2019-01-17T08:11:39
166,185,604
0
0
null
null
null
null
UTF-8
Java
false
false
812
java
package com.hand.cloud.mybatisplus.entity; import java.io.Serializable; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** * <p> * * </p> * * @author jobob * @since 2019-01-17 */ @Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class Sentence implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; private String author; private String sentence; private String translation; private String detailUrl; private String authorDescription; private String imgUrl; }
[ "zhuo.deng@hand-china.com" ]
zhuo.deng@hand-china.com
8675b4b1b8b4ee0ebd1da29186c94fce5f091aae
398f2184a3faac67f3041b02d81e56111a5ceeb1
/app/src/main/java/com/dugan/settingsplus/MainActivity.java
7174e9d6307d46113af2115bf2b4a3910cfbd0bc
[]
no_license
ltd44/SettingsPlusNew
be1b923f56b1d501f31125f65bace745d868295c
7813ed9e9fcb54cc038b11497ca3dd664a6108eb
refs/heads/master
2021-06-12T12:15:20.143125
2017-03-15T23:09:22
2017-03-15T23:09:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
10,255
java
package com.dugan.settingsplus; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v7.app.ActionBar; import android.support.design.widget.NavigationView; import android.support.v4.view.GravityCompat; import android.support.v4.app.FragmentTransaction; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.FrameLayout; import com.dugan.settingsplus.utils.Constants; import com.dugan.settingsplus.utils.inappbilling.IabBroadcastReceiver; import com.dugan.settingsplus.utils.inappbilling.IabHelper; import com.dugan.settingsplus.utils.inappbilling.IabResult; import com.dugan.settingsplus.utils.inappbilling.Inventory; import com.dugan.settingsplus.utils.inappbilling.Purchase; import com.dugan.settingsplus.utils.rootchecker.RootChecker; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; import java.util.List; public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { AdView adView; FrameLayout mainFrame; IabHelper mHelper; IabBroadcastReceiver mReceiver; String tag = "MainActivity:"; SharedPreferences prefs; SharedPreferences.Editor editor; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); drawer.setDrawerListener(toggle); toggle.syncState(); NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); navigationView.setNavigationItemSelectedListener(this); //Create local vars Fragment fragment = null; FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ActionBar actionBar = getSupportActionBar(); //Set action bar title assert actionBar != null; actionBar.setTitle(R.string.profiles); //change fragment fragment = new ProfilesFragment(); ft.replace(R.id.mainFrame, fragment); ft.commit(); mHelper = new IabHelper(this, Constants.base64EncodedPublicKey); mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener(){ @Override public void onIabSetupFinished(IabResult result) { Log.d(tag, "IabHelper Setup Finished."); if (result.isSuccess()) { Log.d(tag, "IabHelper startSetup Successful " + result); } else { Log.d(tag, "IabHelper startSetup Failed " + result); } if(mHelper == null){ return; } mReceiver = new IabBroadcastReceiver(new IabBroadcastReceiver.IabBroadcastListener() { @Override public void receivedBroadcast() { Log.d(tag, "Received broadcast notification. Querying inventory."); mHelper.queryInventoryAsync(mGotInventoryListener); } }); IntentFilter broadcastFilter = new IntentFilter(IabBroadcastReceiver.ACTION); registerReceiver(mReceiver, broadcastFilter); Log.d(tag, "IabHelper setup successful. Querying inventory."); mHelper.queryInventoryAsync(mGotInventoryListener); } }); //Get shared prefs prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); editor = prefs.edit(); //ads adView = (AdView) findViewById(R.id.mainAd); mainFrame = (FrameLayout) findViewById(R.id.mainFrame); if(prefs.getBoolean(Constants.PREF_SHOW_ADS, true)){ showAds(); } else { hideAds(); } //root checker if(prefs.getBoolean(Constants.PREF_CHECK_ROOT_ON_START, true)){ RootChecker.deviceRooted(this); } } public void hideAds(){ adView.setVisibility(View.GONE); mainFrame.setPadding(0, 0, 0, 0); } public void showAds(){ adView.setVisibility(View.VISIBLE); AdRequest adRequest = new AdRequest.Builder() .addTestDevice("D03ACD2BB210909C9603FEE6C11B9B4C") .build(); adView.loadAd(adRequest); mainFrame.setPadding(0,10,0,0); } IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener(){ @Override public void onQueryInventoryFinished(IabResult result, Inventory inv) { Log.d(tag, "IabHelper.QueryInventoryFinishedListener Query inventory finished."); if (mHelper == null) return; if (result.isSuccess()) { Log.d(tag, "IabHelper.QueryInventoryFinishedListener IabHelper.QueryInventory Successful " + result); } else { Log.d(tag, "IabHelper.QueryInventoryFinishedListener IabHelper.QueryInventory Failed " + result); } Log.d(tag, "IabHelper.QueryInventoryFinishedListener Query inventory was successful."); Purchase adFreePurchase = inv.getPurchase(Constants.ITEM_SKU_AD_FREE); if(adFreePurchase != null){ editor.putBoolean(Constants.PREF_SHOW_ADS, false); editor.apply(); hideAds(); Log.d(tag, "IabHelper.QueryInventoryFinishedListener ad free owned"); } else { editor.putBoolean(Constants.PREF_SHOW_ADS, true); editor.apply(); showAds(); Log.d(tag, "IabHelper.QueryInventoryFinishedListener ad free NOT owned"); } } }; @Override public void onDestroy() { super.onDestroy(); // very important: if (mReceiver != null) { unregisterReceiver(mReceiver); } // very important: Log.d(tag, "Destroying helper."); if (mHelper != null) { mHelper.dispose(); mHelper = null; } } @Override public void onBackPressed() { DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); if (drawer.isDrawerOpen(GravityCompat.START)) { drawer.closeDrawer(GravityCompat.START); } else { super.onBackPressed(); } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. //getMenuInflater().inflate(R.menu.main, menu); return true; } @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(); /* if (id == R.id.action_settings) { return true; }*/ return super.onOptionsItemSelected(item); } @Override public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); //Create local vars Fragment fragment = null; FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ActionBar actionBar = getSupportActionBar(); assert actionBar != null; if (id == R.id.nav_profiles) { fragment = new ProfilesFragment(); actionBar.setTitle("Profiles"); } else if (id == R.id.nav_triggers) { fragment = new TriggersFragment(); actionBar.setTitle("Triggers"); } else if (id == R.id.nav_quick_settings) { fragment = new QuickSettingsFragment(); actionBar.setTitle("Quick Settings"); } else if (id == R.id.nav_scheduled_reboots) { fragment = new ScheduledRebootsFragment(); actionBar.setTitle("Scheduled Reboots"); } else if (id == R.id.nav_root_checker) { fragment = new RootCheckerFragment(); actionBar.setTitle("Root Checker"); } else if (id == R.id.nav_device_info) { fragment = new DeviceInfoFragment(); actionBar.setTitle("Root Checker"); } else if (id == R.id.nav_logs) { fragment = new LogsFragment(); actionBar.setTitle("Logs"); } else if (id == R.id.nav_store) { fragment = new StoreFragment(); actionBar.setTitle("Store"); } else if (id == R.id.nav_settings) { fragment = new SettingsFragment(); actionBar.setTitle("Settings"); } ft.replace(R.id.mainFrame, fragment); ft.commit(); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; } protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); FragmentManager fm = getSupportFragmentManager(); List<Fragment> fragments = fm.getFragments(); for(int i = 0; i < fragments.size(); i++){ Fragment fragment = fragments.get(i); fragment.onActivityResult(requestCode, resultCode, data); } } }
[ "leonard.todd.dugan@gmail.com" ]
leonard.todd.dugan@gmail.com
32b69e9fab4fca0c47e77e6f6ca81686f421dfe5
f51fca74e8ecfefd2b60af7501194c16d7ac3364
/reportmodule/build/generated/source/r/debug/com/xiu8/base/ximageloader/R.java
f5a8ef2024a728eeabb51376344e07b5a77dd5d9
[]
no_license
fajuary/XiuBaLiveApp
2a387865d44a2b49d8e37a50a0ee3e3d6675edb8
b6465dc05043399c3fcdc975916a5657f51d0f86
refs/heads/master
2022-12-11T19:33:56.224128
2020-09-04T04:01:50
2020-09-04T04:01:50
292,742,084
0
0
null
null
null
null
UTF-8
Java
false
false
75,815
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.xiu8.base.ximageloader; public final class R { public static final class anim { public static int abc_fade_in = 0x7f040000; public static int abc_fade_out = 0x7f040001; public static int abc_grow_fade_in_from_bottom = 0x7f040002; public static int abc_popup_enter = 0x7f040003; public static int abc_popup_exit = 0x7f040004; public static int abc_shrink_fade_out_from_bottom = 0x7f040005; public static int abc_slide_in_bottom = 0x7f040006; public static int abc_slide_in_top = 0x7f040007; public static int abc_slide_out_bottom = 0x7f040008; public static int abc_slide_out_top = 0x7f040009; } public static final class attr { public static int actionBarDivider = 0x7f010082; public static int actionBarItemBackground = 0x7f010083; public static int actionBarPopupTheme = 0x7f01007c; public static int actionBarSize = 0x7f010081; public static int actionBarSplitStyle = 0x7f01007e; public static int actionBarStyle = 0x7f01007d; public static int actionBarTabBarStyle = 0x7f010078; public static int actionBarTabStyle = 0x7f010077; public static int actionBarTabTextStyle = 0x7f010079; public static int actionBarTheme = 0x7f01007f; public static int actionBarWidgetTheme = 0x7f010080; public static int actionButtonStyle = 0x7f01009d; public static int actionDropDownStyle = 0x7f010099; public static int actionLayout = 0x7f010167; public static int actionMenuTextAppearance = 0x7f010084; public static int actionMenuTextColor = 0x7f010085; public static int actionModeBackground = 0x7f010088; public static int actionModeCloseButtonStyle = 0x7f010087; public static int actionModeCloseDrawable = 0x7f01008a; public static int actionModeCopyDrawable = 0x7f01008c; public static int actionModeCutDrawable = 0x7f01008b; public static int actionModeFindDrawable = 0x7f010090; public static int actionModePasteDrawable = 0x7f01008d; public static int actionModePopupWindowStyle = 0x7f010092; public static int actionModeSelectAllDrawable = 0x7f01008e; public static int actionModeShareDrawable = 0x7f01008f; public static int actionModeSplitBackground = 0x7f010089; public static int actionModeStyle = 0x7f010086; public static int actionModeWebSearchDrawable = 0x7f010091; public static int actionOverflowButtonStyle = 0x7f01007a; public static int actionOverflowMenuStyle = 0x7f01007b; public static int actionProviderClass = 0x7f010169; public static int actionViewClass = 0x7f010168; public static int activityChooserViewStyle = 0x7f0100a5; public static int alertDialogButtonGroupStyle = 0x7f0100ca; public static int alertDialogCenterButtons = 0x7f0100cb; public static int alertDialogStyle = 0x7f0100c9; public static int alertDialogTheme = 0x7f0100cc; public static int allowStacking = 0x7f01011c; public static int arrowHeadLength = 0x7f010154; public static int arrowShaftLength = 0x7f010155; public static int autoCompleteTextViewStyle = 0x7f0100d1; public static int background = 0x7f010045; public static int backgroundSplit = 0x7f010047; public static int backgroundStacked = 0x7f010046; public static int backgroundTint = 0x7f0101cb; public static int backgroundTintMode = 0x7f0101cc; public static int barLength = 0x7f010156; public static int borderlessButtonStyle = 0x7f0100a2; public static int buttonBarButtonStyle = 0x7f01009f; public static int buttonBarNegativeButtonStyle = 0x7f0100cf; public static int buttonBarNeutralButtonStyle = 0x7f0100d0; public static int buttonBarPositiveButtonStyle = 0x7f0100ce; public static int buttonBarStyle = 0x7f01009e; public static int buttonPanelSideLayout = 0x7f01005a; public static int buttonStyle = 0x7f0100d2; public static int buttonStyleSmall = 0x7f0100d3; public static int buttonTint = 0x7f010136; public static int buttonTintMode = 0x7f010137; public static int checkboxStyle = 0x7f0100d4; public static int checkedTextViewStyle = 0x7f0100d5; public static int closeIcon = 0x7f010183; public static int closeItemLayout = 0x7f010057; public static int collapseContentDescription = 0x7f0101c2; public static int collapseIcon = 0x7f0101c1; public static int color = 0x7f010150; public static int colorAccent = 0x7f0100c1; public static int colorButtonNormal = 0x7f0100c5; public static int colorControlActivated = 0x7f0100c3; public static int colorControlHighlight = 0x7f0100c4; public static int colorControlNormal = 0x7f0100c2; public static int colorPrimary = 0x7f0100bf; public static int colorPrimaryDark = 0x7f0100c0; public static int colorSwitchThumbNormal = 0x7f0100c6; public static int commitIcon = 0x7f010188; public static int contentInsetEnd = 0x7f010050; public static int contentInsetLeft = 0x7f010051; public static int contentInsetRight = 0x7f010052; public static int contentInsetStart = 0x7f01004f; public static int controlBackground = 0x7f0100c7; public static int customNavigationLayout = 0x7f010048; public static int defaultQueryHint = 0x7f010182; public static int dialogPreferredPadding = 0x7f010097; public static int dialogTheme = 0x7f010096; public static int displayOptions = 0x7f01003e; public static int divider = 0x7f010044; public static int dividerHorizontal = 0x7f0100a4; public static int dividerPadding = 0x7f010163; public static int dividerVertical = 0x7f0100a3; public static int drawableSize = 0x7f010152; public static int drawerArrowStyle = 0x7f010006; public static int dropDownListViewStyle = 0x7f0100b6; public static int dropdownListPreferredItemHeight = 0x7f01009a; public static int editTextBackground = 0x7f0100ab; public static int editTextColor = 0x7f0100aa; public static int editTextStyle = 0x7f0100d6; public static int elevation = 0x7f010055; public static int expandActivityOverflowButtonDrawable = 0x7f010059; public static int gapBetweenBars = 0x7f010153; public static int goIcon = 0x7f010184; public static int height = 0x7f010008; public static int hideOnContentScroll = 0x7f01004e; public static int homeAsUpIndicator = 0x7f01009c; public static int homeLayout = 0x7f010049; public static int icon = 0x7f010042; public static int iconifiedByDefault = 0x7f010180; public static int imageButtonStyle = 0x7f0100ac; public static int indeterminateProgressStyle = 0x7f01004b; public static int initialActivityCount = 0x7f010058; public static int isLightTheme = 0x7f010009; public static int itemPadding = 0x7f01004d; public static int layout = 0x7f01017f; public static int listChoiceBackgroundIndicator = 0x7f0100be; public static int listDividerAlertDialog = 0x7f010098; public static int listItemLayout = 0x7f01005e; public static int listLayout = 0x7f01005b; public static int listPopupWindowStyle = 0x7f0100b7; public static int listPreferredItemHeight = 0x7f0100b1; public static int listPreferredItemHeightLarge = 0x7f0100b3; public static int listPreferredItemHeightSmall = 0x7f0100b2; public static int listPreferredItemPaddingLeft = 0x7f0100b4; public static int listPreferredItemPaddingRight = 0x7f0100b5; public static int logo = 0x7f010043; public static int logoDescription = 0x7f0101c5; public static int maxButtonHeight = 0x7f0101bf; public static int measureWithLargestChild = 0x7f010161; public static int multiChoiceItemLayout = 0x7f01005c; public static int navigationContentDescription = 0x7f0101c4; public static int navigationIcon = 0x7f0101c3; public static int navigationMode = 0x7f01003d; public static int overlapAnchor = 0x7f010170; public static int paddingEnd = 0x7f0101c9; public static int paddingStart = 0x7f0101c8; public static int panelBackground = 0x7f0100bb; public static int panelMenuListTheme = 0x7f0100bd; public static int panelMenuListWidth = 0x7f0100bc; public static int popupMenuStyle = 0x7f0100a8; public static int popupTheme = 0x7f010056; public static int popupWindowStyle = 0x7f0100a9; public static int preserveIconSpacing = 0x7f01016e; public static int progressBarPadding = 0x7f01004c; public static int progressBarStyle = 0x7f01004a; public static int queryBackground = 0x7f01018a; public static int queryHint = 0x7f010181; public static int radioButtonStyle = 0x7f0100d7; public static int ratingBarStyle = 0x7f0100d8; public static int searchHintIcon = 0x7f010186; public static int searchIcon = 0x7f010185; public static int searchViewStyle = 0x7f0100b0; public static int seekBarStyle = 0x7f0100db; public static int selectableItemBackground = 0x7f0100a0; public static int selectableItemBackgroundBorderless = 0x7f0100a1; public static int showAsAction = 0x7f010166; public static int showDividers = 0x7f010162; public static int showText = 0x7f0101b3; public static int singleChoiceItemLayout = 0x7f01005d; public static int spinBars = 0x7f010151; public static int spinnerDropDownItemStyle = 0x7f01009b; public static int spinnerStyle = 0x7f0100dc; public static int splitTrack = 0x7f0101b2; public static int state_above_anchor = 0x7f010171; public static int submitBackground = 0x7f01018b; public static int subtitle = 0x7f01003f; public static int subtitleTextAppearance = 0x7f0101b8; public static int subtitleTextColor = 0x7f0101c7; public static int subtitleTextStyle = 0x7f010041; public static int suggestionRowLayout = 0x7f010189; public static int switchMinWidth = 0x7f0101b0; public static int switchPadding = 0x7f0101b1; public static int switchStyle = 0x7f0100dd; public static int switchTextAppearance = 0x7f0101af; public static int textAllCaps = 0x7f010066; public static int textAppearanceLargePopupMenu = 0x7f010093; public static int textAppearanceListItem = 0x7f0100b8; public static int textAppearanceListItemSmall = 0x7f0100ba; public static int textAppearanceSearchResultSubtitle = 0x7f0100ae; public static int textAppearanceSearchResultTitle = 0x7f0100ad; public static int textAppearanceSmallPopupMenu = 0x7f010094; public static int textColorAlertDialogListItem = 0x7f0100cd; public static int textColorSearchUrl = 0x7f0100af; public static int theme = 0x7f0101ca; public static int thickness = 0x7f010157; public static int thumbTextPadding = 0x7f0101ae; public static int title = 0x7f01003c; public static int titleMarginBottom = 0x7f0101bd; public static int titleMarginEnd = 0x7f0101bb; public static int titleMarginStart = 0x7f0101ba; public static int titleMarginTop = 0x7f0101bc; public static int titleMargins = 0x7f0101be; public static int titleTextAppearance = 0x7f0101b7; public static int titleTextColor = 0x7f0101c6; public static int titleTextStyle = 0x7f010040; public static int toolbarNavigationButtonStyle = 0x7f0100a7; public static int toolbarStyle = 0x7f0100a6; public static int track = 0x7f0101ab; public static int voiceIcon = 0x7f010187; public static int windowActionBar = 0x7f01006d; public static int windowActionBarOverlay = 0x7f01006f; public static int windowActionModeOverlay = 0x7f010070; public static int windowFixedHeightMajor = 0x7f010074; public static int windowFixedHeightMinor = 0x7f010072; public static int windowFixedWidthMajor = 0x7f010071; public static int windowFixedWidthMinor = 0x7f010073; public static int windowMinWidthMajor = 0x7f010075; public static int windowMinWidthMinor = 0x7f010076; public static int windowNoTitle = 0x7f01006e; } public static final class bool { public static int abc_action_bar_embed_tabs = 0x7f0a0000; public static int abc_allow_stacked_button_bar = 0x7f0a0001; public static int abc_config_actionMenuItemAllCaps = 0x7f0a0002; public static int abc_config_closeDialogWhenTouchOutside = 0x7f0a0003; public static int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f0a0004; } public static final class color { public static int abc_background_cache_hint_selector_material_dark = 0x7f0b0067; public static int abc_background_cache_hint_selector_material_light = 0x7f0b0068; public static int abc_color_highlight_material = 0x7f0b006b; public static int abc_input_method_navigation_guard = 0x7f0b0001; public static int abc_primary_text_disable_only_material_dark = 0x7f0b006e; public static int abc_primary_text_disable_only_material_light = 0x7f0b006f; public static int abc_primary_text_material_dark = 0x7f0b0070; public static int abc_primary_text_material_light = 0x7f0b0071; public static int abc_search_url_text = 0x7f0b0072; public static int abc_search_url_text_normal = 0x7f0b0002; public static int abc_search_url_text_pressed = 0x7f0b0003; public static int abc_search_url_text_selected = 0x7f0b0004; public static int abc_secondary_text_material_dark = 0x7f0b0073; public static int abc_secondary_text_material_light = 0x7f0b0074; public static int accent_material_dark = 0x7f0b0005; public static int accent_material_light = 0x7f0b0006; public static int background_floating_material_dark = 0x7f0b0008; public static int background_floating_material_light = 0x7f0b0009; public static int background_material_dark = 0x7f0b000a; public static int background_material_light = 0x7f0b000b; public static int bright_foreground_disabled_material_dark = 0x7f0b000d; public static int bright_foreground_disabled_material_light = 0x7f0b000e; public static int bright_foreground_inverse_material_dark = 0x7f0b000f; public static int bright_foreground_inverse_material_light = 0x7f0b0010; public static int bright_foreground_material_dark = 0x7f0b0011; public static int bright_foreground_material_light = 0x7f0b0012; public static int button_material_dark = 0x7f0b0013; public static int button_material_light = 0x7f0b0014; public static int dim_foreground_disabled_material_dark = 0x7f0b0023; public static int dim_foreground_disabled_material_light = 0x7f0b0024; public static int dim_foreground_material_dark = 0x7f0b0025; public static int dim_foreground_material_light = 0x7f0b0026; public static int foreground_material_dark = 0x7f0b0029; public static int foreground_material_light = 0x7f0b002a; public static int highlighted_text_material_dark = 0x7f0b002c; public static int highlighted_text_material_light = 0x7f0b002d; public static int material_blue_grey_800 = 0x7f0b0034; public static int material_blue_grey_900 = 0x7f0b0035; public static int material_blue_grey_950 = 0x7f0b0036; public static int material_deep_teal_200 = 0x7f0b0037; public static int material_deep_teal_500 = 0x7f0b0038; public static int material_grey_100 = 0x7f0b0039; public static int material_grey_300 = 0x7f0b003a; public static int material_grey_50 = 0x7f0b003b; public static int material_grey_600 = 0x7f0b003c; public static int material_grey_800 = 0x7f0b003d; public static int material_grey_850 = 0x7f0b003e; public static int material_grey_900 = 0x7f0b003f; public static int primary_dark_material_dark = 0x7f0b0046; public static int primary_dark_material_light = 0x7f0b0047; public static int primary_material_dark = 0x7f0b0048; public static int primary_material_light = 0x7f0b0049; public static int primary_text_default_material_dark = 0x7f0b004a; public static int primary_text_default_material_light = 0x7f0b004b; public static int primary_text_disabled_material_dark = 0x7f0b004c; public static int primary_text_disabled_material_light = 0x7f0b004d; public static int ripple_material_dark = 0x7f0b0052; public static int ripple_material_light = 0x7f0b0053; public static int secondary_text_default_material_dark = 0x7f0b0054; public static int secondary_text_default_material_light = 0x7f0b0055; public static int secondary_text_disabled_material_dark = 0x7f0b0056; public static int secondary_text_disabled_material_light = 0x7f0b0057; public static int switch_thumb_disabled_material_dark = 0x7f0b0059; public static int switch_thumb_disabled_material_light = 0x7f0b005a; public static int switch_thumb_material_dark = 0x7f0b007b; public static int switch_thumb_material_light = 0x7f0b007c; public static int switch_thumb_normal_material_dark = 0x7f0b005b; public static int switch_thumb_normal_material_light = 0x7f0b005c; } public static final class dimen { public static int abc_action_bar_content_inset_material = 0x7f08050b; public static int abc_action_bar_default_height_material = 0x7f080500; public static int abc_action_bar_default_padding_end_material = 0x7f08050d; public static int abc_action_bar_default_padding_start_material = 0x7f08050e; public static int abc_action_bar_icon_vertical_padding_material = 0x7f080515; public static int abc_action_bar_overflow_padding_end_material = 0x7f080516; public static int abc_action_bar_overflow_padding_start_material = 0x7f080517; public static int abc_action_bar_progress_bar_size = 0x7f080501; public static int abc_action_bar_stacked_max_height = 0x7f080518; public static int abc_action_bar_stacked_tab_max_width = 0x7f080519; public static int abc_action_bar_subtitle_bottom_margin_material = 0x7f08051a; public static int abc_action_bar_subtitle_top_margin_material = 0x7f08051b; public static int abc_action_button_min_height_material = 0x7f08051c; public static int abc_action_button_min_width_material = 0x7f08051d; public static int abc_action_button_min_width_overflow_material = 0x7f08051e; public static int abc_alert_dialog_button_bar_height = 0x7f080000; public static int abc_button_inset_horizontal_material = 0x7f08051f; public static int abc_button_inset_vertical_material = 0x7f080520; public static int abc_button_padding_horizontal_material = 0x7f080521; public static int abc_button_padding_vertical_material = 0x7f080522; public static int abc_config_prefDialogWidth = 0x7f080504; public static int abc_control_corner_material = 0x7f080524; public static int abc_control_inset_material = 0x7f080525; public static int abc_control_padding_material = 0x7f080526; public static int abc_dialog_fixed_height_major = 0x7f080505; public static int abc_dialog_fixed_height_minor = 0x7f080506; public static int abc_dialog_fixed_width_major = 0x7f080507; public static int abc_dialog_fixed_width_minor = 0x7f080508; public static int abc_dialog_min_width_major = 0x7f080509; public static int abc_dialog_min_width_minor = 0x7f08050a; public static int abc_dialog_padding_material = 0x7f080529; public static int abc_dialog_padding_top_material = 0x7f08052a; public static int abc_disabled_alpha_material_dark = 0x7f08052c; public static int abc_disabled_alpha_material_light = 0x7f08052d; public static int abc_dropdownitem_icon_width = 0x7f08052e; public static int abc_dropdownitem_text_padding_left = 0x7f08052f; public static int abc_dropdownitem_text_padding_right = 0x7f080530; public static int abc_edit_text_inset_bottom_material = 0x7f080531; public static int abc_edit_text_inset_horizontal_material = 0x7f080532; public static int abc_edit_text_inset_top_material = 0x7f080533; public static int abc_floating_window_z = 0x7f080534; public static int abc_list_item_padding_horizontal_material = 0x7f080535; public static int abc_panel_menu_list_width = 0x7f080536; public static int abc_search_view_preferred_width = 0x7f080539; public static int abc_seekbar_track_background_height_material = 0x7f08053a; public static int abc_seekbar_track_progress_height_material = 0x7f08053b; public static int abc_select_dialog_padding_start_material = 0x7f08053c; public static int abc_switch_padding = 0x7f080510; public static int abc_text_size_body_1_material = 0x7f08053d; public static int abc_text_size_body_2_material = 0x7f08053e; public static int abc_text_size_button_material = 0x7f08053f; public static int abc_text_size_caption_material = 0x7f080540; public static int abc_text_size_display_1_material = 0x7f080541; public static int abc_text_size_display_2_material = 0x7f080542; public static int abc_text_size_display_3_material = 0x7f080543; public static int abc_text_size_display_4_material = 0x7f080544; public static int abc_text_size_headline_material = 0x7f080545; public static int abc_text_size_large_material = 0x7f080546; public static int abc_text_size_medium_material = 0x7f080547; public static int abc_text_size_menu_material = 0x7f080549; public static int abc_text_size_small_material = 0x7f08054a; public static int abc_text_size_subhead_material = 0x7f08054b; public static int abc_text_size_subtitle_material_toolbar = 0x7f080502; public static int abc_text_size_title_material = 0x7f08054c; public static int abc_text_size_title_material_toolbar = 0x7f080503; public static int disabled_alpha_material_dark = 0x7f080558; public static int disabled_alpha_material_light = 0x7f080559; public static int highlight_alpha_material_colored = 0x7f080561; public static int highlight_alpha_material_dark = 0x7f080562; public static int highlight_alpha_material_light = 0x7f080563; public static int notification_large_icon_height = 0x7f08056e; public static int notification_large_icon_width = 0x7f08056f; public static int notification_subtext_size = 0x7f080573; } public static final class drawable { public static int abc_ab_share_pack_mtrl_alpha = 0x7f020000; public static int abc_action_bar_item_background_material = 0x7f020001; public static int abc_btn_borderless_material = 0x7f020002; public static int abc_btn_check_material = 0x7f020003; public static int abc_btn_check_to_on_mtrl_000 = 0x7f020004; public static int abc_btn_check_to_on_mtrl_015 = 0x7f020005; public static int abc_btn_colored_material = 0x7f020006; public static int abc_btn_default_mtrl_shape = 0x7f020007; public static int abc_btn_radio_material = 0x7f020008; public static int abc_btn_radio_to_on_mtrl_000 = 0x7f020009; public static int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a; public static int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000b; public static int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000c; public static int abc_cab_background_internal_bg = 0x7f02000d; public static int abc_cab_background_top_material = 0x7f02000e; public static int abc_cab_background_top_mtrl_alpha = 0x7f02000f; public static int abc_control_background_material = 0x7f020010; public static int abc_edit_text_material = 0x7f020012; public static int abc_ic_commit_search_api_mtrl_alpha = 0x7f020016; public static int abc_ic_menu_copy_mtrl_am_alpha = 0x7f020018; public static int abc_ic_menu_cut_mtrl_alpha = 0x7f020019; public static int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001b; public static int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001c; public static int abc_ic_menu_share_mtrl_alpha = 0x7f02001d; public static int abc_item_background_holo_dark = 0x7f020026; public static int abc_item_background_holo_light = 0x7f020027; public static int abc_list_divider_mtrl_alpha = 0x7f020028; public static int abc_list_focused_holo = 0x7f020029; public static int abc_list_longpressed_holo = 0x7f02002a; public static int abc_list_pressed_holo_dark = 0x7f02002b; public static int abc_list_pressed_holo_light = 0x7f02002c; public static int abc_list_selector_background_transition_holo_dark = 0x7f02002d; public static int abc_list_selector_background_transition_holo_light = 0x7f02002e; public static int abc_list_selector_disabled_holo_dark = 0x7f02002f; public static int abc_list_selector_disabled_holo_light = 0x7f020030; public static int abc_list_selector_holo_dark = 0x7f020031; public static int abc_list_selector_holo_light = 0x7f020032; public static int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033; public static int abc_popup_background_mtrl_mult = 0x7f020034; public static int abc_scrubber_control_off_mtrl_alpha = 0x7f020038; public static int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020039; public static int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f02003a; public static int abc_scrubber_primary_mtrl_alpha = 0x7f02003b; public static int abc_scrubber_track_mtrl_alpha = 0x7f02003c; public static int abc_seekbar_thumb_material = 0x7f02003d; public static int abc_seekbar_track_material = 0x7f02003f; public static int abc_spinner_mtrl_am_alpha = 0x7f020040; public static int abc_spinner_textfield_background_material = 0x7f020041; public static int abc_switch_thumb_material = 0x7f020042; public static int abc_switch_track_mtrl_alpha = 0x7f020043; public static int abc_tab_indicator_material = 0x7f020044; public static int abc_tab_indicator_mtrl_alpha = 0x7f020045; public static int abc_text_cursor_material = 0x7f020046; public static int abc_textfield_activated_mtrl_alpha = 0x7f02004d; public static int abc_textfield_default_mtrl_alpha = 0x7f02004e; public static int abc_textfield_search_activated_mtrl_alpha = 0x7f02004f; public static int abc_textfield_search_default_mtrl_alpha = 0x7f020050; public static int abc_textfield_search_material = 0x7f020051; public static int notification_template_icon_bg = 0x7f020100; } public static final class id { public static int action0 = 0x7f0c00ab; public static int action_bar = 0x7f0c0077; public static int action_bar_activity_content = 0x7f0c0004; public static int action_bar_container = 0x7f0c0076; public static int action_bar_root = 0x7f0c0072; public static int action_bar_spinner = 0x7f0c0005; public static int action_bar_subtitle = 0x7f0c0056; public static int action_bar_title = 0x7f0c0055; public static int action_context_bar = 0x7f0c0078; public static int action_divider = 0x7f0c00af; public static int action_menu_divider = 0x7f0c0006; public static int action_menu_presenter = 0x7f0c0007; public static int action_mode_bar = 0x7f0c0074; public static int action_mode_bar_stub = 0x7f0c0073; public static int action_mode_close_button = 0x7f0c0057; public static int activity_chooser_view_content = 0x7f0c0058; public static int alertTitle = 0x7f0c006b; public static int always = 0x7f0c004e; public static int beginning = 0x7f0c0046; public static int buttonPanel = 0x7f0c005e; public static int cancel_action = 0x7f0c00ac; public static int checkbox = 0x7f0c006e; public static int chronometer = 0x7f0c00b3; public static int collapseActionView = 0x7f0c004f; public static int contentPanel = 0x7f0c0061; public static int custom = 0x7f0c0068; public static int customPanel = 0x7f0c0067; public static int decor_content_parent = 0x7f0c0075; public static int default_activity_button = 0x7f0c005b; public static int disableHome = 0x7f0c002a; public static int edit_query = 0x7f0c0079; public static int end = 0x7f0c0014; public static int end_padder = 0x7f0c00b9; public static int expand_activities_button = 0x7f0c0059; public static int expanded_menu = 0x7f0c006d; public static int home = 0x7f0c0008; public static int homeAsUp = 0x7f0c002b; public static int icon = 0x7f0c005d; public static int ifRoom = 0x7f0c0050; public static int image = 0x7f0c005a; public static int info = 0x7f0c00b4; public static int line1 = 0x7f0c000a; public static int line3 = 0x7f0c000b; public static int listMode = 0x7f0c0027; public static int list_item = 0x7f0c005c; public static int media_actions = 0x7f0c00ae; public static int middle = 0x7f0c0047; public static int multiply = 0x7f0c0030; public static int never = 0x7f0c0051; public static int none = 0x7f0c0025; public static int normal = 0x7f0c0028; public static int parentPanel = 0x7f0c0060; public static int progress_circular = 0x7f0c000c; public static int progress_horizontal = 0x7f0c000d; public static int radio = 0x7f0c0070; public static int screen = 0x7f0c0031; public static int scrollIndicatorDown = 0x7f0c0066; public static int scrollIndicatorUp = 0x7f0c0062; public static int scrollView = 0x7f0c0063; public static int search_badge = 0x7f0c007b; public static int search_bar = 0x7f0c007a; public static int search_button = 0x7f0c007c; public static int search_close_btn = 0x7f0c0081; public static int search_edit_frame = 0x7f0c007d; public static int search_go_btn = 0x7f0c0083; public static int search_mag_icon = 0x7f0c007e; public static int search_plate = 0x7f0c007f; public static int search_src_text = 0x7f0c0080; public static int search_voice_btn = 0x7f0c0084; public static int select_dialog_listview = 0x7f0c0085; public static int shortcut = 0x7f0c006f; public static int showCustom = 0x7f0c002c; public static int showHome = 0x7f0c002d; public static int showTitle = 0x7f0c002e; public static int spacer = 0x7f0c005f; public static int split_action_bar = 0x7f0c000e; public static int src_atop = 0x7f0c0032; public static int src_in = 0x7f0c0033; public static int src_over = 0x7f0c0034; public static int status_bar_latest_event_content = 0x7f0c00ad; public static int submit_area = 0x7f0c0082; public static int tabMode = 0x7f0c0029; public static int text = 0x7f0c000f; public static int text2 = 0x7f0c0010; public static int textSpacerNoButtons = 0x7f0c0065; public static int time = 0x7f0c00a7; public static int title = 0x7f0c0011; public static int title_template = 0x7f0c006a; public static int topPanel = 0x7f0c0069; public static int up = 0x7f0c0012; public static int useLogo = 0x7f0c002f; public static int withText = 0x7f0c0052; public static int wrap_content = 0x7f0c0037; } public static final class integer { public static int abc_config_activityDefaultDur = 0x7f0d0000; public static int abc_config_activityShortDur = 0x7f0d0001; public static int cancel_button_image_alpha = 0x7f0d0002; public static int status_bar_notification_info_maxnum = 0x7f0d0004; } public static final class layout { public static int abc_action_bar_title_item = 0x7f030000; public static int abc_action_bar_up_container = 0x7f030001; public static int abc_action_bar_view_list_nav_layout = 0x7f030002; public static int abc_action_menu_item_layout = 0x7f030003; public static int abc_action_menu_layout = 0x7f030004; public static int abc_action_mode_bar = 0x7f030005; public static int abc_action_mode_close_item_material = 0x7f030006; public static int abc_activity_chooser_view = 0x7f030007; public static int abc_activity_chooser_view_list_item = 0x7f030008; public static int abc_alert_dialog_button_bar_material = 0x7f030009; public static int abc_alert_dialog_material = 0x7f03000a; public static int abc_dialog_title_material = 0x7f03000c; public static int abc_expanded_menu_layout = 0x7f03000d; public static int abc_list_menu_item_checkbox = 0x7f03000e; public static int abc_list_menu_item_icon = 0x7f03000f; public static int abc_list_menu_item_layout = 0x7f030010; public static int abc_list_menu_item_radio = 0x7f030011; public static int abc_popup_menu_item_layout = 0x7f030013; public static int abc_screen_content_include = 0x7f030014; public static int abc_screen_simple = 0x7f030015; public static int abc_screen_simple_overlay_action_mode = 0x7f030016; public static int abc_screen_toolbar = 0x7f030017; public static int abc_search_dropdown_item_icons_2line = 0x7f030018; public static int abc_search_view = 0x7f030019; public static int abc_select_dialog_material = 0x7f03001a; public static int notification_media_action = 0x7f03002a; public static int notification_media_cancel_action = 0x7f03002b; public static int notification_template_big_media = 0x7f03002c; public static int notification_template_big_media_narrow = 0x7f03002e; public static int notification_template_media = 0x7f030033; public static int notification_template_part_chronometer = 0x7f030035; public static int notification_template_part_time = 0x7f030036; public static int select_dialog_item_material = 0x7f03003c; public static int select_dialog_multichoice_material = 0x7f03003d; public static int select_dialog_singlechoice_material = 0x7f03003e; public static int support_simple_spinner_dropdown_item = 0x7f030040; } public static final class string { public static int abc_action_bar_home_description = 0x7f070000; public static int abc_action_bar_home_description_format = 0x7f070001; public static int abc_action_bar_home_subtitle_description_format = 0x7f070002; public static int abc_action_bar_up_description = 0x7f070003; public static int abc_action_menu_overflow_description = 0x7f070004; public static int abc_action_mode_done = 0x7f070005; public static int abc_activity_chooser_view_see_all = 0x7f070006; public static int abc_activitychooserview_choose_application = 0x7f070007; public static int abc_capital_off = 0x7f070008; public static int abc_capital_on = 0x7f070009; public static int abc_search_hint = 0x7f07000a; public static int abc_searchview_description_clear = 0x7f07000b; public static int abc_searchview_description_query = 0x7f07000c; public static int abc_searchview_description_search = 0x7f07000d; public static int abc_searchview_description_submit = 0x7f07000e; public static int abc_searchview_description_voice = 0x7f07000f; public static int abc_shareactionprovider_share_with = 0x7f070010; public static int abc_shareactionprovider_share_with_application = 0x7f070011; public static int abc_toolbar_collapse_description = 0x7f070012; public static int app_name = 0x7f070035; public static int status_bar_notification_info_overflow = 0x7f070014; } public static final class style { public static int AlertDialog_AppCompat = 0x7f0900a9; public static int AlertDialog_AppCompat_Light = 0x7f0900aa; public static int Animation_AppCompat_Dialog = 0x7f0900ab; public static int Animation_AppCompat_DropDownUp = 0x7f0900ac; public static int Base_AlertDialog_AppCompat = 0x7f0900af; public static int Base_AlertDialog_AppCompat_Light = 0x7f0900b0; public static int Base_Animation_AppCompat_Dialog = 0x7f0900b1; public static int Base_Animation_AppCompat_DropDownUp = 0x7f0900b2; public static int Base_DialogWindowTitleBackground_AppCompat = 0x7f0900b6; public static int Base_DialogWindowTitle_AppCompat = 0x7f0900b5; public static int Base_TextAppearance_AppCompat = 0x7f090039; public static int Base_TextAppearance_AppCompat_Body1 = 0x7f09003a; public static int Base_TextAppearance_AppCompat_Body2 = 0x7f09003b; public static int Base_TextAppearance_AppCompat_Button = 0x7f090027; public static int Base_TextAppearance_AppCompat_Caption = 0x7f09003c; public static int Base_TextAppearance_AppCompat_Display1 = 0x7f09003d; public static int Base_TextAppearance_AppCompat_Display2 = 0x7f09003e; public static int Base_TextAppearance_AppCompat_Display3 = 0x7f09003f; public static int Base_TextAppearance_AppCompat_Display4 = 0x7f090040; public static int Base_TextAppearance_AppCompat_Headline = 0x7f090041; public static int Base_TextAppearance_AppCompat_Inverse = 0x7f09000b; public static int Base_TextAppearance_AppCompat_Large = 0x7f090042; public static int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f09000c; public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f090043; public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f090044; public static int Base_TextAppearance_AppCompat_Medium = 0x7f090045; public static int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f09000d; public static int Base_TextAppearance_AppCompat_Menu = 0x7f090046; public static int Base_TextAppearance_AppCompat_SearchResult = 0x7f0900b7; public static int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f090047; public static int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f090048; public static int Base_TextAppearance_AppCompat_Small = 0x7f090049; public static int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f09000e; public static int Base_TextAppearance_AppCompat_Subhead = 0x7f09004a; public static int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f09000f; public static int Base_TextAppearance_AppCompat_Title = 0x7f09004b; public static int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f090010; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f090098; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f09004c; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f09004d; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f09004e; public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f09004f; public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f090050; public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f090051; public static int Base_TextAppearance_AppCompat_Widget_Button = 0x7f090052; public static int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f090099; public static int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900b9; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f090054; public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f090055; public static int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f090056; public static int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f090057; public static int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0900ba; public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f090058; public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f090059; public static int Base_ThemeOverlay_AppCompat = 0x7f0900bf; public static int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0900c0; public static int Base_ThemeOverlay_AppCompat_Dark = 0x7f0900c1; public static int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0900c2; public static int Base_ThemeOverlay_AppCompat_Light = 0x7f0900c3; public static int Base_Theme_AppCompat = 0x7f09005a; public static int Base_Theme_AppCompat_CompactMenu = 0x7f0900bb; public static int Base_Theme_AppCompat_Dialog = 0x7f090011; public static int Base_Theme_AppCompat_DialogWhenLarge = 0x7f090001; public static int Base_Theme_AppCompat_Dialog_Alert = 0x7f090012; public static int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0900bc; public static int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f090013; public static int Base_Theme_AppCompat_Light = 0x7f09005b; public static int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0900bd; public static int Base_Theme_AppCompat_Light_Dialog = 0x7f090014; public static int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f090002; public static int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f090015; public static int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0900be; public static int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f090016; public static int Base_V11_Theme_AppCompat_Dialog = 0x7f090019; public static int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f09001a; public static int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f090023; public static int Base_V12_Widget_AppCompat_EditText = 0x7f090024; public static int Base_V21_Theme_AppCompat = 0x7f09005c; public static int Base_V21_Theme_AppCompat_Dialog = 0x7f09005d; public static int Base_V21_Theme_AppCompat_Light = 0x7f09005e; public static int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f09005f; public static int Base_V22_Theme_AppCompat = 0x7f090096; public static int Base_V22_Theme_AppCompat_Light = 0x7f090097; public static int Base_V23_Theme_AppCompat = 0x7f09009a; public static int Base_V23_Theme_AppCompat_Light = 0x7f09009b; public static int Base_V7_Theme_AppCompat = 0x7f0900c4; public static int Base_V7_Theme_AppCompat_Dialog = 0x7f0900c5; public static int Base_V7_Theme_AppCompat_Light = 0x7f0900c6; public static int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0900c7; public static int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0900c9; public static int Base_V7_Widget_AppCompat_EditText = 0x7f0900ca; public static int Base_Widget_AppCompat_ActionBar = 0x7f0900cc; public static int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0900cd; public static int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0900ce; public static int Base_Widget_AppCompat_ActionBar_TabText = 0x7f090061; public static int Base_Widget_AppCompat_ActionBar_TabView = 0x7f090062; public static int Base_Widget_AppCompat_ActionButton = 0x7f090063; public static int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f090064; public static int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f090065; public static int Base_Widget_AppCompat_ActionMode = 0x7f0900cf; public static int Base_Widget_AppCompat_ActivityChooserView = 0x7f0900d0; public static int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f090025; public static int Base_Widget_AppCompat_Button = 0x7f090066; public static int Base_Widget_AppCompat_ButtonBar = 0x7f09006a; public static int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0900d2; public static int Base_Widget_AppCompat_Button_Borderless = 0x7f090067; public static int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f090068; public static int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0900d1; public static int Base_Widget_AppCompat_Button_Colored = 0x7f09009c; public static int Base_Widget_AppCompat_Button_Small = 0x7f090069; public static int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f09006b; public static int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f09006c; public static int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0900d3; public static int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f090000; public static int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0900d4; public static int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f09006d; public static int Base_Widget_AppCompat_EditText = 0x7f090026; public static int Base_Widget_AppCompat_ImageButton = 0x7f09006e; public static int Base_Widget_AppCompat_Light_ActionBar = 0x7f0900d5; public static int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0900d6; public static int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0900d7; public static int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f09006f; public static int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090070; public static int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f090071; public static int Base_Widget_AppCompat_Light_PopupMenu = 0x7f090072; public static int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f090073; public static int Base_Widget_AppCompat_ListPopupWindow = 0x7f090074; public static int Base_Widget_AppCompat_ListView = 0x7f090075; public static int Base_Widget_AppCompat_ListView_DropDown = 0x7f090076; public static int Base_Widget_AppCompat_ListView_Menu = 0x7f090077; public static int Base_Widget_AppCompat_PopupMenu = 0x7f090078; public static int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f090079; public static int Base_Widget_AppCompat_PopupWindow = 0x7f0900d9; public static int Base_Widget_AppCompat_ProgressBar = 0x7f09001c; public static int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f09001d; public static int Base_Widget_AppCompat_RatingBar = 0x7f09007a; public static int Base_Widget_AppCompat_SearchView = 0x7f0900da; public static int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0900db; public static int Base_Widget_AppCompat_SeekBar = 0x7f09007b; public static int Base_Widget_AppCompat_Spinner = 0x7f09007c; public static int Base_Widget_AppCompat_Spinner_Underlined = 0x7f090003; public static int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f09007d; public static int Base_Widget_AppCompat_Toolbar = 0x7f0900a8; public static int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f09007e; public static int Platform_AppCompat = 0x7f09001e; public static int Platform_AppCompat_Light = 0x7f09001f; public static int Platform_ThemeOverlay_AppCompat = 0x7f09007f; public static int Platform_ThemeOverlay_AppCompat_Dark = 0x7f090080; public static int Platform_ThemeOverlay_AppCompat_Light = 0x7f090081; public static int Platform_V11_AppCompat = 0x7f090020; public static int Platform_V11_AppCompat_Light = 0x7f090021; public static int Platform_V14_AppCompat = 0x7f090028; public static int Platform_V14_AppCompat_Light = 0x7f090029; public static int Platform_Widget_AppCompat_Spinner = 0x7f090022; public static int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f09002b; public static int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f09002c; public static int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f09002d; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f09002e; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f09002f; public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f090030; public static int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f090036; public static int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f090031; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f090032; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f090033; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f090034; public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f090035; public static int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f090037; public static int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f090038; public static int TextAppearance_AppCompat = 0x7f0900e5; public static int TextAppearance_AppCompat_Body1 = 0x7f0900e6; public static int TextAppearance_AppCompat_Body2 = 0x7f0900e7; public static int TextAppearance_AppCompat_Button = 0x7f0900e8; public static int TextAppearance_AppCompat_Caption = 0x7f0900e9; public static int TextAppearance_AppCompat_Display1 = 0x7f0900ea; public static int TextAppearance_AppCompat_Display2 = 0x7f0900eb; public static int TextAppearance_AppCompat_Display3 = 0x7f0900ec; public static int TextAppearance_AppCompat_Display4 = 0x7f0900ed; public static int TextAppearance_AppCompat_Headline = 0x7f0900ee; public static int TextAppearance_AppCompat_Inverse = 0x7f0900ef; public static int TextAppearance_AppCompat_Large = 0x7f0900f0; public static int TextAppearance_AppCompat_Large_Inverse = 0x7f0900f1; public static int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0900f2; public static int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0900f3; public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0900f4; public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0900f5; public static int TextAppearance_AppCompat_Medium = 0x7f0900f6; public static int TextAppearance_AppCompat_Medium_Inverse = 0x7f0900f7; public static int TextAppearance_AppCompat_Menu = 0x7f0900f8; public static int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0900fb; public static int TextAppearance_AppCompat_SearchResult_Title = 0x7f0900fc; public static int TextAppearance_AppCompat_Small = 0x7f0900fd; public static int TextAppearance_AppCompat_Small_Inverse = 0x7f0900fe; public static int TextAppearance_AppCompat_Subhead = 0x7f0900ff; public static int TextAppearance_AppCompat_Subhead_Inverse = 0x7f090100; public static int TextAppearance_AppCompat_Title = 0x7f090101; public static int TextAppearance_AppCompat_Title_Inverse = 0x7f090102; public static int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f090103; public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f090104; public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f090105; public static int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f090106; public static int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f090107; public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f090108; public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f090109; public static int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f09010a; public static int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f09010b; public static int TextAppearance_AppCompat_Widget_Button = 0x7f09010c; public static int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f09010f; public static int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f090110; public static int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f090112; public static int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f090113; public static int TextAppearance_AppCompat_Widget_Switch = 0x7f090114; public static int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f090115; public static int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f090118; public static int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f090119; public static int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f09011a; public static int ThemeOverlay_AppCompat = 0x7f090129; public static int ThemeOverlay_AppCompat_ActionBar = 0x7f09012a; public static int ThemeOverlay_AppCompat_Dark = 0x7f09012b; public static int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f09012c; public static int ThemeOverlay_AppCompat_Light = 0x7f09012f; public static int Theme_AppCompat = 0x7f09011b; public static int Theme_AppCompat_CompactMenu = 0x7f09011c; public static int Theme_AppCompat_Dialog = 0x7f09011d; public static int Theme_AppCompat_DialogWhenLarge = 0x7f090120; public static int Theme_AppCompat_Dialog_Alert = 0x7f09011e; public static int Theme_AppCompat_Dialog_MinWidth = 0x7f09011f; public static int Theme_AppCompat_Light = 0x7f090121; public static int Theme_AppCompat_Light_DarkActionBar = 0x7f090122; public static int Theme_AppCompat_Light_Dialog = 0x7f090123; public static int Theme_AppCompat_Light_DialogWhenLarge = 0x7f090126; public static int Theme_AppCompat_Light_Dialog_Alert = 0x7f090124; public static int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f090125; public static int Theme_AppCompat_Light_NoActionBar = 0x7f090127; public static int Theme_AppCompat_NoActionBar = 0x7f090128; public static int Widget_AppCompat_ActionBar = 0x7f090132; public static int Widget_AppCompat_ActionBar_Solid = 0x7f090133; public static int Widget_AppCompat_ActionBar_TabBar = 0x7f090134; public static int Widget_AppCompat_ActionBar_TabText = 0x7f090135; public static int Widget_AppCompat_ActionBar_TabView = 0x7f090136; public static int Widget_AppCompat_ActionButton = 0x7f090137; public static int Widget_AppCompat_ActionButton_CloseMode = 0x7f090138; public static int Widget_AppCompat_ActionButton_Overflow = 0x7f090139; public static int Widget_AppCompat_ActionMode = 0x7f09013a; public static int Widget_AppCompat_ActivityChooserView = 0x7f09013b; public static int Widget_AppCompat_AutoCompleteTextView = 0x7f09013c; public static int Widget_AppCompat_Button = 0x7f09013d; public static int Widget_AppCompat_ButtonBar = 0x7f090143; public static int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f090144; public static int Widget_AppCompat_Button_Borderless = 0x7f09013e; public static int Widget_AppCompat_Button_Borderless_Colored = 0x7f09013f; public static int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f090140; public static int Widget_AppCompat_Button_Colored = 0x7f090141; public static int Widget_AppCompat_Button_Small = 0x7f090142; public static int Widget_AppCompat_CompoundButton_CheckBox = 0x7f090145; public static int Widget_AppCompat_CompoundButton_RadioButton = 0x7f090146; public static int Widget_AppCompat_CompoundButton_Switch = 0x7f090147; public static int Widget_AppCompat_DrawerArrowToggle = 0x7f090148; public static int Widget_AppCompat_DropDownItem_Spinner = 0x7f090149; public static int Widget_AppCompat_EditText = 0x7f09014a; public static int Widget_AppCompat_ImageButton = 0x7f09014b; public static int Widget_AppCompat_Light_ActionBar = 0x7f09014c; public static int Widget_AppCompat_Light_ActionBar_Solid = 0x7f09014d; public static int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f09014e; public static int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f09014f; public static int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f090150; public static int Widget_AppCompat_Light_ActionBar_TabText = 0x7f090151; public static int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090152; public static int Widget_AppCompat_Light_ActionBar_TabView = 0x7f090153; public static int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f090154; public static int Widget_AppCompat_Light_ActionButton = 0x7f090155; public static int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f090156; public static int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f090157; public static int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f090158; public static int Widget_AppCompat_Light_ActivityChooserView = 0x7f090159; public static int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f09015a; public static int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f09015b; public static int Widget_AppCompat_Light_ListPopupWindow = 0x7f09015c; public static int Widget_AppCompat_Light_ListView_DropDown = 0x7f09015d; public static int Widget_AppCompat_Light_PopupMenu = 0x7f09015e; public static int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f09015f; public static int Widget_AppCompat_Light_SearchView = 0x7f090160; public static int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f090161; public static int Widget_AppCompat_ListPopupWindow = 0x7f090163; public static int Widget_AppCompat_ListView = 0x7f090164; public static int Widget_AppCompat_ListView_DropDown = 0x7f090165; public static int Widget_AppCompat_ListView_Menu = 0x7f090166; public static int Widget_AppCompat_PopupMenu = 0x7f090167; public static int Widget_AppCompat_PopupMenu_Overflow = 0x7f090168; public static int Widget_AppCompat_PopupWindow = 0x7f090169; public static int Widget_AppCompat_ProgressBar = 0x7f09016a; public static int Widget_AppCompat_ProgressBar_Horizontal = 0x7f09016b; public static int Widget_AppCompat_RatingBar = 0x7f09016c; public static int Widget_AppCompat_SearchView = 0x7f09016f; public static int Widget_AppCompat_SearchView_ActionBar = 0x7f090170; public static int Widget_AppCompat_SeekBar = 0x7f090171; public static int Widget_AppCompat_Spinner = 0x7f090173; public static int Widget_AppCompat_Spinner_DropDown = 0x7f090174; public static int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f090175; public static int Widget_AppCompat_Spinner_Underlined = 0x7f090176; public static int Widget_AppCompat_TextView_SpinnerItem = 0x7f090177; public static int Widget_AppCompat_Toolbar = 0x7f090178; public static int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f090179; } public static final class styleable { public static int[] ActionBar = { 0x7f010008, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056, 0x7f01009c }; public static int[] ActionBarLayout = { 0x010100b3 }; public static int ActionBarLayout_android_layout_gravity = 0; public static int ActionBar_background = 10; public static int ActionBar_backgroundSplit = 12; public static int ActionBar_backgroundStacked = 11; public static int ActionBar_contentInsetEnd = 21; public static int ActionBar_contentInsetLeft = 22; public static int ActionBar_contentInsetRight = 23; public static int ActionBar_contentInsetStart = 20; public static int ActionBar_customNavigationLayout = 13; public static int ActionBar_displayOptions = 3; public static int ActionBar_divider = 9; public static int ActionBar_elevation = 26; public static int ActionBar_height = 0; public static int ActionBar_hideOnContentScroll = 19; public static int ActionBar_homeAsUpIndicator = 28; public static int ActionBar_homeLayout = 14; public static int ActionBar_icon = 7; public static int ActionBar_indeterminateProgressStyle = 16; public static int ActionBar_itemPadding = 18; public static int ActionBar_logo = 8; public static int ActionBar_navigationMode = 2; public static int ActionBar_popupTheme = 27; public static int ActionBar_progressBarPadding = 17; public static int ActionBar_progressBarStyle = 15; public static int ActionBar_subtitle = 4; public static int ActionBar_subtitleTextStyle = 6; public static int ActionBar_title = 1; public static int ActionBar_titleTextStyle = 5; public static int[] ActionMenuItemView = { 0x0101013f }; public static int ActionMenuItemView_android_minWidth = 0; public static int[] ActionMode = { 0x7f010008, 0x7f010040, 0x7f010041, 0x7f010045, 0x7f010047, 0x7f010057 }; public static int ActionMode_background = 3; public static int ActionMode_backgroundSplit = 4; public static int ActionMode_closeItemLayout = 5; public static int ActionMode_height = 0; public static int ActionMode_subtitleTextStyle = 2; public static int ActionMode_titleTextStyle = 1; public static int[] ActivityChooserView = { 0x7f010058, 0x7f010059 }; public static int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; public static int ActivityChooserView_initialActivityCount = 0; public static int[] AlertDialog = { 0x010100f2, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f }; public static int AlertDialog_android_layout = 0; public static int AlertDialog_buttonPanelSideLayout = 1; public static int AlertDialog_listItemLayout = 5; public static int AlertDialog_listLayout = 2; public static int AlertDialog_multiChoiceItemLayout = 3; public static int AlertDialog_singleChoiceItemLayout = 4; public static int[] AppCompatTextView = { 0x01010034, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c }; public static int AppCompatTextView_android_textAppearance = 0; public static int AppCompatTextView_textAllCaps = 1; public static int[] ButtonBarLayout = { 0x7f01011c }; public static int ButtonBarLayout_allowStacking = 0; public static int[] CompoundButton = { 0x01010107, 0x7f010136, 0x7f010137 }; public static int CompoundButton_android_button = 0; public static int CompoundButton_buttonTint = 1; public static int CompoundButton_buttonTintMode = 2; public static int[] DrawerArrowToggle = { 0x7f010150, 0x7f010151, 0x7f010152, 0x7f010153, 0x7f010154, 0x7f010155, 0x7f010156, 0x7f010157 }; public static int DrawerArrowToggle_arrowHeadLength = 4; public static int DrawerArrowToggle_arrowShaftLength = 5; public static int DrawerArrowToggle_barLength = 6; public static int DrawerArrowToggle_color = 0; public static int DrawerArrowToggle_drawableSize = 2; public static int DrawerArrowToggle_gapBetweenBars = 3; public static int DrawerArrowToggle_spinBars = 1; public static int DrawerArrowToggle_thickness = 7; public static int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f010044, 0x7f010161, 0x7f010162, 0x7f010163 }; public static int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static int LinearLayoutCompat_Layout_android_layout_height = 2; public static int LinearLayoutCompat_Layout_android_layout_weight = 3; public static int LinearLayoutCompat_Layout_android_layout_width = 1; public static int LinearLayoutCompat_android_baselineAligned = 2; public static int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static int LinearLayoutCompat_android_gravity = 0; public static int LinearLayoutCompat_android_orientation = 1; public static int LinearLayoutCompat_android_weightSum = 4; public static int LinearLayoutCompat_divider = 5; public static int LinearLayoutCompat_dividerPadding = 8; public static int LinearLayoutCompat_measureWithLargestChild = 6; public static int LinearLayoutCompat_showDividers = 7; public static int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static int ListPopupWindow_android_dropDownVerticalOffset = 1; public static int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static int MenuGroup_android_checkableBehavior = 5; public static int MenuGroup_android_enabled = 0; public static int MenuGroup_android_id = 1; public static int MenuGroup_android_menuCategory = 3; public static int MenuGroup_android_orderInCategory = 4; public static int MenuGroup_android_visible = 2; public static int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010164, 0x7f010165, 0x7f010166, 0x7f010167, 0x7f010168, 0x7f010169, 0x7f01016a, 0x7f01016b, 0x7f01016c, 0x7f01016d }; public static int MenuItem_actionLayout = 16; public static int MenuItem_actionProviderClass = 18; public static int MenuItem_actionViewClass = 17; public static int MenuItem_android_alphabeticShortcut = 9; public static int MenuItem_android_checkable = 11; public static int MenuItem_android_checked = 3; public static int MenuItem_android_enabled = 1; public static int MenuItem_android_icon = 0; public static int MenuItem_android_id = 2; public static int MenuItem_android_menuCategory = 5; public static int MenuItem_android_numericShortcut = 10; public static int MenuItem_android_onClick = 12; public static int MenuItem_android_orderInCategory = 6; public static int MenuItem_android_title = 7; public static int MenuItem_android_titleCondensed = 8; public static int MenuItem_android_visible = 4; public static int MenuItem_showAsAction = 15; public static int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f01016e, 0x7f01016f }; public static int MenuView_android_headerBackground = 4; public static int MenuView_android_horizontalDivider = 2; public static int MenuView_android_itemBackground = 5; public static int MenuView_android_itemIconDisabledAlpha = 6; public static int MenuView_android_itemTextAppearance = 1; public static int MenuView_android_verticalDivider = 3; public static int MenuView_android_windowAnimationStyle = 0; public static int MenuView_preserveIconSpacing = 7; public static int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f010170 }; public static int[] PopupWindowBackgroundState = { 0x7f010171 }; public static int PopupWindowBackgroundState_state_above_anchor = 0; public static int PopupWindow_android_popupBackground = 0; public static int PopupWindow_overlapAnchor = 2; public static int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f01017f, 0x7f010180, 0x7f010181, 0x7f010182, 0x7f010183, 0x7f010184, 0x7f010185, 0x7f010186, 0x7f010187, 0x7f010188, 0x7f010189, 0x7f01018a, 0x7f01018b }; public static int SearchView_android_focusable = 0; public static int SearchView_android_imeOptions = 3; public static int SearchView_android_inputType = 2; public static int SearchView_android_maxWidth = 1; public static int SearchView_closeIcon = 8; public static int SearchView_commitIcon = 13; public static int SearchView_defaultQueryHint = 7; public static int SearchView_goIcon = 9; public static int SearchView_iconifiedByDefault = 5; public static int SearchView_layout = 4; public static int SearchView_queryBackground = 15; public static int SearchView_queryHint = 6; public static int SearchView_searchHintIcon = 11; public static int SearchView_searchIcon = 10; public static int SearchView_submitBackground = 16; public static int SearchView_suggestionRowLayout = 14; public static int SearchView_voiceIcon = 12; public static int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f010056 }; public static int Spinner_android_dropDownWidth = 3; public static int Spinner_android_popupBackground = 1; public static int Spinner_android_prompt = 2; public static int Spinner_popupTheme = 4; public static int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0101a9, 0x7f0101aa, 0x7f0101ab, 0x7f0101ac, 0x7f0101ad, 0x7f0101ae, 0x7f0101af, 0x7f0101b0, 0x7f0101b1, 0x7f0101b2, 0x7f0101b3 }; public static int SwitchCompat_android_textOff = 1; public static int SwitchCompat_android_textOn = 0; public static int SwitchCompat_android_thumb = 2; public static int SwitchCompat_showText = 13; public static int SwitchCompat_splitTrack = 12; public static int SwitchCompat_switchMinWidth = 10; public static int SwitchCompat_switchPadding = 11; public static int SwitchCompat_switchTextAppearance = 9; public static int SwitchCompat_thumbTextPadding = 8; public static int SwitchCompat_track = 5; public static int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x0101009b, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x010103ac, 0x7f010066, 0x7f01006c }; public static int TextAppearance_android_shadowColor = 6; public static int TextAppearance_android_shadowDx = 7; public static int TextAppearance_android_shadowDy = 8; public static int TextAppearance_android_shadowRadius = 9; public static int TextAppearance_android_textColor = 3; public static int TextAppearance_android_textSize = 0; public static int TextAppearance_android_textStyle = 2; public static int TextAppearance_android_typeface = 1; public static int TextAppearance_textAllCaps = 11; public static int[] Toolbar = { 0x010100af, 0x01010140, 0x7f01003c, 0x7f01003f, 0x7f010043, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010056, 0x7f0101b7, 0x7f0101b8, 0x7f0101b9, 0x7f0101ba, 0x7f0101bb, 0x7f0101bc, 0x7f0101bd, 0x7f0101be, 0x7f0101bf, 0x7f0101c0, 0x7f0101c1, 0x7f0101c2, 0x7f0101c3, 0x7f0101c4, 0x7f0101c5, 0x7f0101c6, 0x7f0101c7 }; public static int Toolbar_android_gravity = 0; public static int Toolbar_android_minHeight = 1; public static int Toolbar_collapseContentDescription = 23; public static int Toolbar_collapseIcon = 22; public static int Toolbar_contentInsetEnd = 6; public static int Toolbar_contentInsetLeft = 7; public static int Toolbar_contentInsetRight = 8; public static int Toolbar_contentInsetStart = 5; public static int Toolbar_logo = 4; public static int Toolbar_logoDescription = 26; public static int Toolbar_maxButtonHeight = 20; public static int Toolbar_navigationContentDescription = 25; public static int Toolbar_navigationIcon = 24; public static int Toolbar_popupTheme = 11; public static int Toolbar_subtitle = 3; public static int Toolbar_subtitleTextAppearance = 13; public static int Toolbar_subtitleTextColor = 28; public static int Toolbar_title = 2; public static int Toolbar_titleMarginBottom = 18; public static int Toolbar_titleMarginEnd = 16; public static int Toolbar_titleMarginStart = 15; public static int Toolbar_titleMarginTop = 17; public static int Toolbar_titleMargins = 19; public static int Toolbar_titleTextAppearance = 12; public static int Toolbar_titleTextColor = 27; public static int[] View = { 0x01010000, 0x010100da, 0x7f0101c8, 0x7f0101c9, 0x7f0101ca }; public static int[] ViewBackgroundHelper = { 0x010100d4, 0x7f0101cb, 0x7f0101cc }; public static int ViewBackgroundHelper_android_background = 0; public static int ViewBackgroundHelper_backgroundTint = 1; public static int ViewBackgroundHelper_backgroundTintMode = 2; public static int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static int ViewStubCompat_android_id = 0; public static int ViewStubCompat_android_inflatedId = 2; public static int ViewStubCompat_android_layout = 1; public static int View_android_focusable = 1; public static int View_android_theme = 0; public static int View_paddingEnd = 3; public static int View_paddingStart = 2; public static int View_theme = 4; } }
[ "18242312549@163.com" ]
18242312549@163.com
7204e52d5826f56c96091a927086d692bb2a4261
7f3b2d869d3c361d906af7cf1f678fca2c8f19dd
/app/src/main/java/com/vtec/j1tth4/vtecpos/provider/ProductData.java
689f08eebfbb6ec37871507eca61ab4961a082f7
[]
no_license
Synature-Jitthapong/vtecpos
1c8f9a3b48b5b4bb7beab6ce3042cbf4e8e0c875
f12c4bfe8dc2bd8c470bedb6b0e0c509e09187a1
refs/heads/master
2016-09-10T12:42:00.613233
2015-05-19T15:21:17
2015-05-19T15:21:17
32,794,245
0
0
null
null
null
null
UTF-8
Java
false
false
30,819
java
package com.vtec.j1tth4.vtecpos.provider; /** * Created by j1tth4 on 5/1/15 AD. */ public class ProductData { public static class Products{ private int productId; private int shopId; private int inventoryId; private int productGroupId; private int productDeptId; private int productCat1Id; private int productCat2Id; private int productCat3Id; private int productCat4Id; private int productCat5Id; private int productTypeId; private String productCode; private String productBarCode; private String productName; private String productNameLang1; private String productNameLang2; private String productNameLang3; private String productNameLang4; private String productNameLang5; private String productMName; private String productMNameLang1; private String productMNameLang2; private String productMNameLang3; private String productMNameLang4; private String productMNameLang5; private String productPictureServer; private String productPictureClient; private int printerId; private int printGroup; private String printProductName; private String durationTime; private int hasServiceCharge; private int isOutOfStock; private int autoComment; private int isDisplayBill; private int isPrintCheck; private int isPrintReceipt; private int canReturnProduct; private int displayAtCheckerSystem; private String productEnableDateTime; private String productExpireDateTime; private String productEnableDayString; private String warningTime; private String criticalTime; private int saleMode; private int saleMode1; private int saleMode2; private int saleMode3; private int saleMode4; private int saleMode5; private int saleMode6; private int saleMode7; private int saleMode8; private int saleMode9; private int saleMode10; private int vatType; private String vatCode; private String productUnitName; private int discountAllow; private int zeroPriceAllow; private double limitDiscountAmount; private double limitDiscountPercent; private double commRate; private String productDesp; private int productDisplay; private int productActivate; private int productOrdering; private int printOrdering; private int addingFromBranch; private int deleted; private String insertDate; private String updateDate; private double productPrice; private double productVatPercent; private String productVatDisplay; private String productVatDesp; private int componentLevel; public double getProductPrice() { return productPrice; } public void setProductPrice(double productPrice) { this.productPrice = productPrice; } public int getComponentLevel() { return componentLevel; } public void setComponentLevel(int componentLevel) { this.componentLevel = componentLevel; } public double getProductVatPercent() { return productVatPercent; } public void setProductVatPercent(double productVatPercent) { this.productVatPercent = productVatPercent; } public String getProductVatDisplay() { return productVatDisplay; } public void setProductVatDisplay(String productVatDisplay) { this.productVatDisplay = productVatDisplay; } public String getProductVatDesp() { return productVatDesp; } public void setProductVatDesp(String productVatDesp) { this.productVatDesp = productVatDesp; } public int getProductId() { return productId; } public void setProductId(int productId) { this.productId = productId; } public int getShopId() { return shopId; } public void setShopId(int shopId) { this.shopId = shopId; } public int getInventoryId() { return inventoryId; } public void setInventoryId(int inventoryId) { this.inventoryId = inventoryId; } public int getProductGroupId() { return productGroupId; } public void setProductGroupId(int productGroupId) { this.productGroupId = productGroupId; } public int getProductDeptId() { return productDeptId; } public void setProductDeptId(int productDeptId) { this.productDeptId = productDeptId; } public int getProductCat1Id() { return productCat1Id; } public void setProductCat1Id(int productCat1Id) { this.productCat1Id = productCat1Id; } public int getProductCat2Id() { return productCat2Id; } public void setProductCat2Id(int productCat2Id) { this.productCat2Id = productCat2Id; } public int getProductCat3Id() { return productCat3Id; } public void setProductCat3Id(int productCat3Id) { this.productCat3Id = productCat3Id; } public int getProductCat4Id() { return productCat4Id; } public void setProductCat4Id(int productCat4Id) { this.productCat4Id = productCat4Id; } public int getProductCat5Id() { return productCat5Id; } public void setProductCat5Id(int productCat5Id) { this.productCat5Id = productCat5Id; } public int getProductTypeId() { return productTypeId; } public void setProductTypeId(int productTypeId) { this.productTypeId = productTypeId; } public String getProductCode() { return productCode; } public void setProductCode(String productCode) { this.productCode = productCode; } public String getProductBarCode() { return productBarCode; } public void setProductBarCode(String productBarCode) { this.productBarCode = productBarCode; } public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public String getProductNameLang1() { return productNameLang1; } public void setProductNameLang1(String productNameLang1) { this.productNameLang1 = productNameLang1; } public String getProductNameLang2() { return productNameLang2; } public void setProductNameLang2(String productNameLang2) { this.productNameLang2 = productNameLang2; } public String getProductNameLang3() { return productNameLang3; } public void setProductNameLang3(String productNameLang3) { this.productNameLang3 = productNameLang3; } public String getProductNameLang4() { return productNameLang4; } public void setProductNameLang4(String productNameLang4) { this.productNameLang4 = productNameLang4; } public String getProductNameLang5() { return productNameLang5; } public void setProductNameLang5(String productNameLang5) { this.productNameLang5 = productNameLang5; } public String getProductMName() { return productMName; } public void setProductMName(String productMName) { this.productMName = productMName; } public String getProductMNameLang1() { return productMNameLang1; } public void setProductMNameLang1(String productMNameLang1) { this.productMNameLang1 = productMNameLang1; } public String getProductMNameLang2() { return productMNameLang2; } public void setProductMNameLang2(String productMNameLang2) { this.productMNameLang2 = productMNameLang2; } public String getProductMNameLang3() { return productMNameLang3; } public void setProductMNameLang3(String productMNameLang3) { this.productMNameLang3 = productMNameLang3; } public String getProductMNameLang4() { return productMNameLang4; } public void setProductMNameLang4(String productMNameLang4) { this.productMNameLang4 = productMNameLang4; } public String getProductMNameLang5() { return productMNameLang5; } public void setProductMNameLang5(String productMNameLang5) { this.productMNameLang5 = productMNameLang5; } public String getProductPictureServer() { return productPictureServer; } public void setProductPictureServer(String productPictureServer) { this.productPictureServer = productPictureServer; } public String getProductPictureClient() { return productPictureClient; } public void setProductPictureClient(String productPictureClient) { this.productPictureClient = productPictureClient; } public int getPrinterId() { return printerId; } public void setPrinterId(int printerId) { this.printerId = printerId; } public int getPrintGroup() { return printGroup; } public void setPrintGroup(int printGroup) { this.printGroup = printGroup; } public String getPrintProductName() { return printProductName; } public void setPrintProductName(String printProductName) { this.printProductName = printProductName; } public String getDurationTime() { return durationTime; } public void setDurationTime(String durationTime) { this.durationTime = durationTime; } public int getHasServiceCharge() { return hasServiceCharge; } public void setHasServiceCharge(int hasServiceCharge) { this.hasServiceCharge = hasServiceCharge; } public int getIsOutOfStock() { return isOutOfStock; } public void setIsOutOfStock(int isOutOfStock) { this.isOutOfStock = isOutOfStock; } public int getAutoComment() { return autoComment; } public void setAutoComment(int autoComment) { this.autoComment = autoComment; } public int getIsDisplayBill() { return isDisplayBill; } public void setIsDisplayBill(int isDisplayBill) { this.isDisplayBill = isDisplayBill; } public int getIsPrintCheck() { return isPrintCheck; } public void setIsPrintCheck(int isPrintCheck) { this.isPrintCheck = isPrintCheck; } public int getIsPrintReceipt() { return isPrintReceipt; } public void setIsPrintReceipt(int isPrintReceipt) { this.isPrintReceipt = isPrintReceipt; } public int getCanReturnProduct() { return canReturnProduct; } public void setCanReturnProduct(int canReturnProduct) { this.canReturnProduct = canReturnProduct; } public int getDisplayAtCheckerSystem() { return displayAtCheckerSystem; } public void setDisplayAtCheckerSystem(int displayAtCheckerSystem) { this.displayAtCheckerSystem = displayAtCheckerSystem; } public String getProductEnableDateTime() { return productEnableDateTime; } public void setProductEnableDateTime(String productEnableDateTime) { this.productEnableDateTime = productEnableDateTime; } public String getProductExpireDateTime() { return productExpireDateTime; } public void setProductExpireDateTime(String productExpireDateTime) { this.productExpireDateTime = productExpireDateTime; } public String getProductEnableDayString() { return productEnableDayString; } public void setProductEnableDayString(String productEnableDayString) { this.productEnableDayString = productEnableDayString; } public String getWarningTime() { return warningTime; } public void setWarningTime(String warningTime) { this.warningTime = warningTime; } public String getCriticalTime() { return criticalTime; } public void setCriticalTime(String criticalTime) { this.criticalTime = criticalTime; } public int getSaleMode() { return saleMode; } public void setSaleMode(int saleMode) { this.saleMode = saleMode; } public int getSaleMode1() { return saleMode1; } public void setSaleMode1(int saleMode1) { this.saleMode1 = saleMode1; } public int getSaleMode2() { return saleMode2; } public void setSaleMode2(int saleMode2) { this.saleMode2 = saleMode2; } public int getSaleMode3() { return saleMode3; } public void setSaleMode3(int saleMode3) { this.saleMode3 = saleMode3; } public int getSaleMode4() { return saleMode4; } public void setSaleMode4(int saleMode4) { this.saleMode4 = saleMode4; } public int getSaleMode5() { return saleMode5; } public void setSaleMode5(int saleMode5) { this.saleMode5 = saleMode5; } public int getSaleMode6() { return saleMode6; } public void setSaleMode6(int saleMode6) { this.saleMode6 = saleMode6; } public int getSaleMode7() { return saleMode7; } public void setSaleMode7(int saleMode7) { this.saleMode7 = saleMode7; } public int getSaleMode8() { return saleMode8; } public void setSaleMode8(int saleMode8) { this.saleMode8 = saleMode8; } public int getSaleMode9() { return saleMode9; } public void setSaleMode9(int saleMode9) { this.saleMode9 = saleMode9; } public int getSaleMode10() { return saleMode10; } public void setSaleMode10(int saleMode10) { this.saleMode10 = saleMode10; } public int getVatType() { return vatType; } public void setVatType(int vatType) { this.vatType = vatType; } public String getVatCode() { return vatCode; } public void setVatCode(String vatCode) { this.vatCode = vatCode; } public String getProductUnitName() { return productUnitName; } public void setProductUnitName(String productUnitName) { this.productUnitName = productUnitName; } public int getDiscountAllow() { return discountAllow; } public void setDiscountAllow(int discountAllow) { this.discountAllow = discountAllow; } public int getZeroPriceAllow() { return zeroPriceAllow; } public void setZeroPriceAllow(int zeroPriceAllow) { this.zeroPriceAllow = zeroPriceAllow; } public double getLimitDiscountAmount() { return limitDiscountAmount; } public void setLimitDiscountAmount(double limitDiscountAmount) { this.limitDiscountAmount = limitDiscountAmount; } public double getLimitDiscountPercent() { return limitDiscountPercent; } public void setLimitDiscountPercent(double limitDiscountPercent) { this.limitDiscountPercent = limitDiscountPercent; } public double getCommRate() { return commRate; } public void setCommRate(double commRate) { this.commRate = commRate; } public String getProductDesp() { return productDesp; } public void setProductDesp(String productDesp) { this.productDesp = productDesp; } public int getProductDisplay() { return productDisplay; } public void setProductDisplay(int productDisplay) { this.productDisplay = productDisplay; } public int getProductActivate() { return productActivate; } public void setProductActivate(int productActivate) { this.productActivate = productActivate; } public int getProductOrdering() { return productOrdering; } public void setProductOrdering(int productOrdering) { this.productOrdering = productOrdering; } public int getPrintOrdering() { return printOrdering; } public void setPrintOrdering(int printOrdering) { this.printOrdering = printOrdering; } public int getAddingFromBranch() { return addingFromBranch; } public void setAddingFromBranch(int addingFromBranch) { this.addingFromBranch = addingFromBranch; } public int getDeleted() { return deleted; } public void setDeleted(int deleted) { this.deleted = deleted; } public String getInsertDate() { return insertDate; } public void setInsertDate(String insertDate) { this.insertDate = insertDate; } public String getUpdateDate() { return updateDate; } public void setUpdateDate(String updateDate) { this.updateDate = updateDate; } } public static class ProductPrice{ private int productPriceId; private int productId; private double productPrice; private double prePaidPrice; private double mainPrice; private int saleMode; private String priceRemark; private String fromDate; private String toDate; private int addingFromBranch; public int getProductPriceId() { return productPriceId; } public void setProductPriceId(int productPriceId) { this.productPriceId = productPriceId; } public int getProductId() { return productId; } public void setProductId(int productId) { this.productId = productId; } public double getProductPrice() { return productPrice; } public void setProductPrice(double productPrice) { this.productPrice = productPrice; } public double getPrePaidPrice() { return prePaidPrice; } public void setPrePaidPrice(double prePaidPrice) { this.prePaidPrice = prePaidPrice; } public double getMainPrice() { return mainPrice; } public void setMainPrice(double mainPrice) { this.mainPrice = mainPrice; } public int getSaleMode() { return saleMode; } public void setSaleMode(int saleMode) { this.saleMode = saleMode; } public String getPriceRemark() { return priceRemark; } public void setPriceRemark(String priceRemark) { this.priceRemark = priceRemark; } public String getFromDate() { return fromDate; } public void setFromDate(String fromDate) { this.fromDate = fromDate; } public String getToDate() { return toDate; } public void setToDate(String toDate) { this.toDate = toDate; } public int getAddingFromBranch() { return addingFromBranch; } public void setAddingFromBranch(int addingFromBranch) { this.addingFromBranch = addingFromBranch; } } public static class ProductDept{ private int productDeptId; private int productGroupId; private int shopId; private String productDeptCode; private String productDeptName; private String productDeptNameLang1; private String productDeptNameLang2; private String productDeptNameLang3; private String productDeptNameLang4; private String productDeptNameLang5; private int productDeptActivate; private int productDeptSaleMode; private int productDeptOrdering; private int printProductForSession; private int printReceiptGroupingDept; private int displayMobile; private int addingFromBranch; private int deleted; public int getProductDeptId() { return productDeptId; } public void setProductDeptId(int productDeptId) { this.productDeptId = productDeptId; } public int getProductGroupId() { return productGroupId; } public void setProductGroupId(int productGroupId) { this.productGroupId = productGroupId; } public int getShopId() { return shopId; } public void setShopId(int shopId) { this.shopId = shopId; } public String getProductDeptCode() { return productDeptCode; } public void setProductDeptCode(String productDeptCode) { this.productDeptCode = productDeptCode; } public String getProductDeptName() { return productDeptName; } public void setProductDeptName(String productDeptName) { this.productDeptName = productDeptName; } public String getProductDeptNameLang1() { return productDeptNameLang1; } public void setProductDeptNameLang1(String productDeptNameLang1) { this.productDeptNameLang1 = productDeptNameLang1; } public String getProductDeptNameLang2() { return productDeptNameLang2; } public void setProductDeptNameLang2(String productDeptNameLang2) { this.productDeptNameLang2 = productDeptNameLang2; } public String getProductDeptNameLang3() { return productDeptNameLang3; } public void setProductDeptNameLang3(String productDeptNameLang3) { this.productDeptNameLang3 = productDeptNameLang3; } public String getProductDeptNameLang4() { return productDeptNameLang4; } public void setProductDeptNameLang4(String productDeptNameLang4) { this.productDeptNameLang4 = productDeptNameLang4; } public String getProductDeptNameLang5() { return productDeptNameLang5; } public void setProductDeptNameLang5(String productDeptNameLang5) { this.productDeptNameLang5 = productDeptNameLang5; } public int getProductDeptActivate() { return productDeptActivate; } public void setProductDeptActivate(int productDeptActivate) { this.productDeptActivate = productDeptActivate; } public int getProductDeptSaleMode() { return productDeptSaleMode; } public void setProductDeptSaleMode(int productDeptSaleMode) { this.productDeptSaleMode = productDeptSaleMode; } public int getProductDeptOrdering() { return productDeptOrdering; } public void setProductDeptOrdering(int productDeptOrdering) { this.productDeptOrdering = productDeptOrdering; } public int getPrintProductForSession() { return printProductForSession; } public void setPrintProductForSession(int printProductForSession) { this.printProductForSession = printProductForSession; } public int getPrintReceiptGroupingDept() { return printReceiptGroupingDept; } public void setPrintReceiptGroupingDept(int printReceiptGroupingDept) { this.printReceiptGroupingDept = printReceiptGroupingDept; } public int getDisplayMobile() { return displayMobile; } public void setDisplayMobile(int displayMobile) { this.displayMobile = displayMobile; } public int getAddingFromBranch() { return addingFromBranch; } public void setAddingFromBranch(int addingFromBranch) { this.addingFromBranch = addingFromBranch; } public int getDeleted() { return deleted; } public void setDeleted(int deleted) { this.deleted = deleted; } } public static class ProductGroups{ private int productGroupId; private int shopId; private String productGroupCode; private String productGroupName; private String productGroupNameLang1; private String productGroupNameLang2; private String productGroupNameLang3; private String productGroupNameLang4; private String productGroupNameLang5; private int productGroupActivate; private int productGroupSaleMode; private int productGroupType; private int productGroupOrdering; private int printDeptForSession; private int displayMobile; private int isComment; private int addingFromBranch; private int deleted; public int getProductGroupId() { return productGroupId; } public void setProductGroupId(int productGroupId) { this.productGroupId = productGroupId; } public int getShopId() { return shopId; } public void setShopId(int shopId) { this.shopId = shopId; } public String getProductGroupCode() { return productGroupCode; } public void setProductGroupCode(String productGroupCode) { this.productGroupCode = productGroupCode; } public String getProductGroupName() { return productGroupName; } public void setProductGroupName(String productGroupName) { this.productGroupName = productGroupName; } public String getProductGroupNameLang1() { return productGroupNameLang1; } public void setProductGroupNameLang1(String productGroupNameLang1) { this.productGroupNameLang1 = productGroupNameLang1; } public String getProductGroupNameLang2() { return productGroupNameLang2; } public void setProductGroupNameLang2(String productGroupNameLang2) { this.productGroupNameLang2 = productGroupNameLang2; } public String getProductGroupNameLang3() { return productGroupNameLang3; } public void setProductGroupNameLang3(String productGroupNameLang3) { this.productGroupNameLang3 = productGroupNameLang3; } public String getProductGroupNameLang4() { return productGroupNameLang4; } public void setProductGroupNameLang4(String productGroupNameLang4) { this.productGroupNameLang4 = productGroupNameLang4; } public String getProductGroupNameLang5() { return productGroupNameLang5; } public void setProductGroupNameLang5(String productGroupNameLang5) { this.productGroupNameLang5 = productGroupNameLang5; } public int getProductGroupActivate() { return productGroupActivate; } public void setProductGroupActivate(int productGroupActivate) { this.productGroupActivate = productGroupActivate; } public int getProductGroupSaleMode() { return productGroupSaleMode; } public void setProductGroupSaleMode(int productGroupSaleMode) { this.productGroupSaleMode = productGroupSaleMode; } public int getProductGroupType() { return productGroupType; } public void setProductGroupType(int productGroupType) { this.productGroupType = productGroupType; } public int getProductGroupOrdering() { return productGroupOrdering; } public void setProductGroupOrdering(int productGroupOrdering) { this.productGroupOrdering = productGroupOrdering; } public int getPrintDeptForSession() { return printDeptForSession; } public void setPrintDeptForSession(int printDeptForSession) { this.printDeptForSession = printDeptForSession; } public int getDisplayMobile() { return displayMobile; } public void setDisplayMobile(int displayMobile) { this.displayMobile = displayMobile; } public int getIsComment() { return isComment; } public void setIsComment(int isComment) { this.isComment = isComment; } public int getAddingFromBranch() { return addingFromBranch; } public void setAddingFromBranch(int addingFromBranch) { this.addingFromBranch = addingFromBranch; } public int getDeleted() { return deleted; } public void setDeleted(int deleted) { this.deleted = deleted; } } }
[ "jitthapong@synaturegroup.com" ]
jitthapong@synaturegroup.com
3d2f2f5182ac70a313efad59c9b1de289a157519
30ed65975c43057c4e5929819620265bef1a1927
/src/main/java/com/jinyu/fdxc/model/dao/ZnbmDAO.java
a8d0485ba02755a4376b667114dacf46cfffbb7b
[]
no_license
JuJieCo/fdxc_website
0bc813ddd0ecb01a317ed0e4d72bf97bc5351801
ce4cb3cb3ffab9456bd3362c3b7f639f75cf45fc
refs/heads/master
2021-06-21T16:49:48.527845
2017-04-20T16:38:09
2017-04-20T16:38:09
88,876,679
0
0
null
null
null
null
UTF-8
Java
false
false
4,294
java
package com.jinyu.fdxc.model.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.springframework.jdbc.core.PreparedStatementCreator; import org.springframework.jdbc.support.GeneratedKeyHolder; import org.springframework.jdbc.support.KeyHolder; import com.jinyu.fdxc.model.utils.DataUtil; import com.jinyu.fdxc.model.utils.Page; import com.jinyu.fdxc.model.utils.PageUtil; import com.jinyu.fdxc.model.utils.SpringJDBCTemplate; import com.jinyu.fdxc.struts.bean.Znbm; import com.jinyu.fdxc.struts.bean.SysUser; public class ZnbmDAO extends SpringJDBCTemplate { /** *查询所有的 */ @SuppressWarnings("unchecked") public List<Znbm> queryZnbmList(Object[] objs , Page page,Integer deptType ) throws Exception { String sql = " select * from znbm where 1=1 "; List<Object> list = new ArrayList<Object>(); if(objs!=null&&objs.length>0){ if(objs.length>=1&&objs[0]!=null&&!"".equals(objs[0])){ sql +=" and znbm_id=? "; list.add(objs[0]); } if(objs.length>=2&&objs[1]!=null&&!"".equals(objs[1])){ sql +=" and znbm_title like ? "; list.add("%"+objs[1]+"%"); } } if(deptType!=null){ sql +=" and dept_type = "+deptType; } sql += " and znbm_title <> '' order by znbm_id desc"; return this.getJdbcTemplate().query(PageUtil.fyPage(sql, list.toArray(), page, this.getJdbcTemplate(), Page.DATABASE_TYPE_MYSQL),list.toArray(), new Znbm()); } /** *按id查询一条记录 */ @SuppressWarnings("unchecked") public Znbm findZnbmByID(int id) throws Exception { String sql = " select * from znbm where znbm_id="+id; List<Znbm> znbmList = this.getJdbcTemplate().query(sql,new Znbm()); if(znbmList!=null&&znbmList.size()>0){ return znbmList.get(0); } return null; } /** *查询发布人 */ @SuppressWarnings("unchecked") public SysUser findUserByID(int id) throws Exception { String sql = " select t2.* from znbm t1 , sys_user t2 where t1.user_id = t2.user_id and t1.znbm_id="+id; List<SysUser> userList = this.getJdbcTemplate().query(sql,new SysUser()); if(userList!=null&&userList.size()>0){ return userList.get(0); } return null; } /** *保存 没有附件直接保存 */ public int saveZnbm(Znbm znbm) throws Exception { final String sql = "insert into znbm (znbm_title,znbm_bgs,znbm_ywk,znbm_fwz,dept_type,sub_date,user_id,hold) values (?,?,?,?,?,?,?,?)"; final Object[] objs = {znbm.getZnbmTitle(),znbm.getZnbmBgs(),znbm.getZnbmYwk(),znbm.getZnbmFwz(),znbm.getDeptType() ,znbm.getSubDate(),znbm.getUser().getUserID(),znbm.getHold()}; KeyHolder keyHolder = new GeneratedKeyHolder(); try { this.getJdbcTemplate().update(new PreparedStatementCreator(){ public PreparedStatement createPreparedStatement(Connection con) throws SQLException { int i = 0; int n = 0; PreparedStatement pst = con.prepareStatement(sql,PreparedStatement.RETURN_GENERATED_KEYS); pst.setString(++i, DataUtil.toString(objs[n++])); pst.setString(++i, DataUtil.toString(objs[n++])); pst.setString(++i, DataUtil.toString(objs[n++])); pst.setString(++i, DataUtil.toString(objs[n++])); pst.setInt(++i, DataUtil.toInt(objs[n++])); pst.setTimestamp(++i, DataUtil.toTimestamp(objs[n++])); pst.setInt(++i, DataUtil.toInt(objs[n++])); pst.setString(++i, DataUtil.toString(objs[n++])); return pst; }}, keyHolder); } catch (Exception e) { e.printStackTrace(); } return keyHolder.getKey().intValue(); } /** *修改 */ public void editZnbm(Znbm znbm) throws Exception { String sql = "update znbm set znbm_title=?,znbm_bgs=?,znbm_ywk=?,znbm_fwz=?,sub_date=?,hold=? where znbm_id=?"; Object[] objs = {znbm.getZnbmTitle(),znbm.getZnbmBgs(),znbm.getZnbmYwk(),znbm.getZnbmFwz() ,znbm.getSubDate(),znbm.getHold(),znbm.getZnbmID()}; this.getJdbcTemplate().update(sql,objs); } /** *删除 */ public void deleteZnbmByID(int id) throws Exception { String sql = " delete from znbm where znbm_id="+id; this.getJdbcTemplate().update(sql); } }
[ "whm029@126.com" ]
whm029@126.com
9e9599ca618392067c84766ebb9f79163c0e4e47
060c73cbfb0da3587559024a788cd5eb5269f438
/EquipmentSys/src/com/equipment/service/UserService.java
91eb8332d7fb9cec1877f965dc06fe55729a7517
[]
no_license
979531840/equipmentQin
b58e8abd02019bd84b93333051cfdfbc76c3276c
d6f490f983c1d8d88c190d370ba91fee33c2d5d0
refs/heads/master
2020-03-19T03:31:03.103035
2018-06-02T16:24:47
2018-06-02T16:24:51
135,735,341
2
1
null
null
null
null
UTF-8
Java
false
false
462
java
package com.equipment.service; import java.util.List; import com.equipment.model.PageBean; import com.equipment.model.User; public interface UserService { public User login(User user); public List<User> find(PageBean pageBean,User s_user); public int count(User s_user); public void delete(int id); public void add(User user); public void update(User user); public User loadById(int id); public boolean existUserByDeptId(int deptId); }
[ "979531840@qq.com" ]
979531840@qq.com
c5fecd1108cd336ed1140cd14e275321cacc38d4
a9a1e99cb6bfc987b38e4bf1f358ba0b5cb887d8
/bytescope.common/src/main/java/scouterx/org/pmw/tinylog/writers/FileWriter.java
2de335747db9ef11dfb8703a7569367f3e891741
[ "Apache-2.0" ]
permissive
changwng/bytescope
2e23b653436dcc1d617977387dd6859583d17030
56f679376b208bbed65a702f949531ae745a865b
refs/heads/master
2020-04-23T09:19:25.825812
2016-11-16T13:33:07
2016-11-16T13:33:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,528
java
/* * Copyright 2012 Martin Winandy * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ package scouterx.org.pmw.tinylog.writers; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.EnumSet; import java.util.Set; import scouterx.org.pmw.tinylog.Configuration; import scouterx.org.pmw.tinylog.EnvironmentHelper; import scouterx.org.pmw.tinylog.LogEntry; /** * Writes log entries to a file. */ @PropertiesSupport(name = "file", properties = { @Property(name = "filename", type = String.class), @Property(name = "buffered", type = boolean.class, optional = true), @Property(name = "append", type = boolean.class, optional = true) }) public final class FileWriter implements Writer { private static final int BUFFER_SIZE = 64 * 1024; private final String filename; private final boolean buffered; private final boolean append; private OutputStream stream; /** * @param filename * Filename of the log file */ public FileWriter(final String filename) { this(filename, false, false); } /** * @param filename * Filename of the log file * @param buffered * Buffered writing */ public FileWriter(final String filename, final boolean buffered) { this(filename, buffered, false); } /** * @param filename * Filename of the log file * @param buffered * Buffered writing * @param append * Continuing existing file */ public FileWriter(final String filename, final boolean buffered, final boolean append) { this.filename = filename; this.buffered = buffered; this.append = append; } /** * Helper constructor with wrapper class parameters for {@link scouterx.org.pmw.tinylog.PropertiesLoader PropertiesLoader}. * * @param filename * Filename of the log file * @param buffered * Buffered writing * @param append * Continuing existing file */ FileWriter(final String filename, final Boolean buffered, final Boolean append) { this.filename = filename; this.buffered = buffered == null ? false : buffered; this.append = append == null ? false : append; } @Override public Set<LogEntryValue> getRequiredLogEntryValues() { return EnumSet.of(LogEntryValue.RENDERED_LOG_ENTRY); } /** * Get the filename of the log file. * * @return Filename of the log file */ public String getFilename() { return filename; } /** * Determine whether buffered writing is enabled. * * @return <code>true</code> if buffered writing is enabled, otherwise <code>false</code> */ public boolean isBuffered() { return buffered; } /** * Determine whether appending is enabled. * * @return <code>true</code> if appending is enabled, otherwise <code>false</code> */ public boolean isAppending() { return append; } @Override public void init(final Configuration configuration) throws IOException { File file = new File(filename); EnvironmentHelper.makeDirectories(file); if (buffered) { stream = new BufferedOutputStream(new FileOutputStream(file, append), BUFFER_SIZE); } else { stream = new FileOutputStream(file, append); } VMShutdownHook.register(this); } @Override public void write(final LogEntry logEntry) throws IOException { byte[] data = logEntry.getRenderedLogEntry().getBytes(); synchronized (stream) { stream.write(data); } } @Override public void flush() throws IOException { if (buffered) { synchronized (stream) { stream.flush(); } } } /** * Close the log file. * * @throws IOException * Failed to close the log file */ @Override public void close() throws IOException { synchronized (stream) { VMShutdownHook.unregister(this); stream.close(); } } }
[ "gunlee01@gmail.com" ]
gunlee01@gmail.com
7b0315c39a619c3b74067e3a86c3f6b40d0b7a97
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/20/20_a637c65905cddc3cc50eecdb5200a93237888703/DatabaseHandler/20_a637c65905cddc3cc50eecdb5200a93237888703_DatabaseHandler_t.java
82056e7fe8336d88e16ec91f2bcefc26c10422a0
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
28,941
java
package se.goagubbar.twee; import java.util.ArrayList; import se.goagubbar.twee.Models.Episode; import se.goagubbar.twee.Models.ExtendedSeries; import se.goagubbar.twee.Models.Profile; import se.goagubbar.twee.Models.Series; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DatabaseHandler extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 18; private static final String DATABASE_NAME = "Teewee"; private static final String TABLE_SERIES = "Series"; private static final String TABLE_EPISODES = "Episodes"; private static final String TABLE_PROFILE = "Profile"; private static final String ENCODING_SETTING = "PRAGMA encoding = 'UTF-8'"; //BaseEntity private static final String KEY_ID = "Id"; private static final String KEY_SUMMARY = "Summary"; private static final String KEY_LASTUPDATED = "LastUpdated"; private static final String KEY_SERIESID = "SeriesId"; private static final String KEY_EPISODEID = "EpisodeId"; //Series private static final String KEY_NAME = "Name"; private static final String KEY_ACTORS = "Actors"; private static final String KEY_DAYTIME = "Airs"; private static final String KEY_GENRE = "Genre"; private static final String KEY_IMDBID = "ImdbId"; private static final String KEY_RATING = "Rating"; private static final String KEY_STATUS = "Status"; private static final String KEY_IMAGE = "Image"; private static final String KEY_HEADER = "Header"; private static final String KEY_FIRSTAIRED = "FirstAired"; //Episode private static final String KEY_SEASON = "Season"; private static final String KEY_EPISODE = "Episode"; private static final String KEY_TITLE = "Title"; private static final String KEY_AIRED = "Aired"; private static final String KEY_WATCHED = "Watched"; private static final String KEY_PROFILENAME = "Name"; private static final String KEY_PROFILEID = "ProfileId"; public DatabaseHandler(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(ENCODING_SETTING); String CREATE_SERIES_TABLE = String.format("CREATE TABLE %s(%s INTEGER PRIMARY KEY autoincrement, %s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %S TEXT)", TABLE_SERIES, KEY_ID, KEY_SUMMARY, KEY_NAME,KEY_ACTORS,KEY_DAYTIME,KEY_GENRE,KEY_IMDBID,KEY_RATING,KEY_STATUS,KEY_IMAGE, KEY_FIRSTAIRED, KEY_HEADER, KEY_SERIESID, KEY_LASTUPDATED, KEY_PROFILEID); db.execSQL(CREATE_SERIES_TABLE); String CREATE_EPISODE_TABLE = String.format("CREATE TABLE %s(%s INTEGER PRIMARY KEY autoincrement,%s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT,%s TEXT, %s TEXT, %s TEXT, %s TEXT, %S TEXT)", TABLE_EPISODES, KEY_ID, KEY_SEASON, KEY_EPISODE, KEY_TITLE, KEY_AIRED, KEY_WATCHED, KEY_SUMMARY, KEY_SERIESID, KEY_LASTUPDATED, KEY_EPISODEID, KEY_PROFILEID); db.execSQL(CREATE_EPISODE_TABLE); String CREATE_PROFILE_TABLE = String.format("CREATE TABLE %s(%s INTEGER PRIMARY KEY autoincrement,%s TEXT)", TABLE_PROFILE, KEY_ID, KEY_PROFILENAME); db.execSQL(CREATE_PROFILE_TABLE); //Add default profile ContentValues values = new ContentValues(); values.put(KEY_PROFILENAME, "Default"); db.insert(TABLE_PROFILE, null, values); } @Override public void onOpen(SQLiteDatabase db) { if (!db.isReadOnly()) { db.execSQL(ENCODING_SETTING); } } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.d("Rebuild db", "Start"); db.execSQL("DROP TABLE IF EXISTS " + TABLE_EPISODES); db.execSQL("DROP TABLE IF EXISTS " + TABLE_SERIES); db.execSQL("DROP TABLE IF EXISTS " + TABLE_PROFILE); onCreate(db); Log.d("Rebuild db", "Done"); } //CRUD public void AddShow(Series series) { SQLiteDatabase db = this.getWritableDatabase(); try { ContentValues values = new ContentValues(); values.put(KEY_NAME, series.getName()); values.put(KEY_ACTORS, series.getActors()); values.put(KEY_SUMMARY, series.getSummary()); values.put(KEY_DAYTIME, series.getAirs()); values.put(KEY_GENRE, series.getGenre()); values.put(KEY_IMDBID, series.getImdbId()); values.put(KEY_RATING, series.getRating()); values.put(KEY_STATUS, series.getStatus()); values.put(KEY_IMAGE, series.getImage()); values.put(KEY_HEADER, series.getHeader()); values.put(KEY_FIRSTAIRED, series.getFirstAired()); values.put(KEY_SERIESID, series.getSeriesId()); values.put(KEY_LASTUPDATED, series.getLastUpdated()); values.put(KEY_PROFILEID, Utils.selectedProfile); db.insert(TABLE_SERIES, null, values); } catch (Exception e) { Log.d("Error","addSeries"); // TODO: handle exception } finally { db.close(); } } public void AddEpisodes(ArrayList<Episode> episodes) { SQLiteDatabase db = this.getWritableDatabase(); try { ContentValues values = null; db.beginTransaction(); for (Episode ep : episodes) { values = new ContentValues(); values.put(KEY_AIRED, ep.getAired()); values.put(KEY_EPISODE, ep.getEpisode()); values.put(KEY_SEASON, ep.getSeason()); values.put(KEY_SERIESID, ep.getSeriesId()); values.put(KEY_SUMMARY, ep.getSummary()); values.put(KEY_TITLE, ep.getTitle()); values.put(KEY_WATCHED, ep.getWatched()); values.put(KEY_LASTUPDATED, ep.getLastUpdated()); values.put(KEY_EPISODEID, ep.getEpisodeId()); values.put(KEY_PROFILEID, Utils.selectedProfile); db.insert(TABLE_EPISODES, null, values); } db.setTransactionSuccessful(); db.endTransaction(); } catch (Exception e) { Log.d("Error","addEpisodes"); // TODO: handle exception } finally{ db.close(); } } public void UpdateAndAddEpisodes(ArrayList<Episode> episodes, String seriesId) { ArrayList<String> oldEpisodes = GetEpisodesForShow(seriesId); SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = null; try { db.beginTransaction(); for (Episode ep : episodes) { if(oldEpisodes.contains(ep.getEpisodeId())){ values = new ContentValues(); values.put(KEY_AIRED, ep.getAired()); values.put(KEY_EPISODE, ep.getEpisode()); values.put(KEY_SEASON, ep.getSeason()); values.put(KEY_SERIESID, ep.getSeriesId()); values.put(KEY_SUMMARY, ep.getSummary()); values.put(KEY_TITLE, ep.getTitle()); values.put(KEY_LASTUPDATED, ep.getLastUpdated()); values.put(KEY_PROFILEID, Utils.selectedProfile); db.update(TABLE_EPISODES, values, KEY_EPISODEID +"="+ ep.getEpisodeId(),null); } else { values = new ContentValues(); values.put(KEY_AIRED, ep.getAired()); values.put(KEY_EPISODE, ep.getEpisode()); values.put(KEY_SEASON, ep.getSeason()); values.put(KEY_SERIESID, ep.getSeriesId()); values.put(KEY_SUMMARY, ep.getSummary()); values.put(KEY_TITLE, ep.getTitle()); values.put(KEY_WATCHED, ep.getWatched()); values.put(KEY_LASTUPDATED, ep.getLastUpdated()); values.put(KEY_EPISODEID, ep.getEpisodeId()); values.put(KEY_PROFILEID, Utils.selectedProfile); db.insert(TABLE_EPISODES, null, values); } } db.setTransactionSuccessful(); db.endTransaction(); } catch (Exception e) { Log.d("Error","updateAndAddEpisodes"); // TODO: handle exception } finally{ db.close(); } } //DU HLL P MED KOLLEN AV EPISODEERNA!!!!! private ArrayList<String> GetEpisodesForShow(String seriesId) { ArrayList<String> episodes = new ArrayList<String>(); String sql = "SELECT "+ KEY_EPISODEID +" FROM " + TABLE_EPISODES + " WHERE " + KEY_SERIESID + " = " + seriesId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(sql,null); try { cursor.moveToFirst(); while (!cursor.isAfterLast()) { episodes.add(cursor.getString(0)); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error","GetEpisodesForSearies"); // TODO: handle exception } finally { cursor.close(); db.close(); } return episodes; } public ArrayList<Series> GetAllShows() { ArrayList<Series> series = new ArrayList<Series>(); SQLiteDatabase db = this.getReadableDatabase(); String sql = "SELECT * FROM " + TABLE_SERIES + " WHERE ProfileId = "+ Utils.selectedProfile + " ORDER BY "+ KEY_NAME +" ASC"; Cursor cursor = db.rawQuery(sql,null); try { cursor.moveToFirst(); while (!cursor.isAfterLast()) { Series s = new Series(); s.setActors(cursor.getString(3)); s.setAirs(cursor.getString(4)); s.setImage(cursor.getString(9)); s.setGenre(cursor.getString(5)); s.setID(Integer.parseInt(cursor.getString(0))); s.setImdbId(cursor.getString(6)); s.setName(cursor.getString(2)); s.setRating(cursor.getString(7)); s.setStatus(cursor.getString(8)); s.setSummary(cursor.getString(1)); s.setFirstAired(cursor.getString(10)); s.setHeader(cursor.getString(11)); s.setSeriesId(cursor.getString(12)); s.Episodes = new ArrayList<Episode>(); s.Episodes.add(GetNextEpisodeForShow(s.getSeriesId())); series.add(s); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error","getAllSeries"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return series; } public ArrayList<ExtendedSeries> GetMyShows() { ArrayList<ExtendedSeries> series = new ArrayList<ExtendedSeries>(); SQLiteDatabase db = this.getReadableDatabase(); String sql = "SELECT * FROM " + TABLE_SERIES + " WHERE ProfileId = "+ Utils.selectedProfile + " ORDER BY "+ KEY_NAME +" ASC"; Cursor cursor = db.rawQuery(sql,null); try { cursor.moveToFirst(); while (!cursor.isAfterLast()) { ExtendedSeries s = new ExtendedSeries(); s.setActors(cursor.getString(3)); s.setAirs(cursor.getString(4)); s.setImage(cursor.getString(9)); s.setGenre(cursor.getString(5)); s.setID(Integer.parseInt(cursor.getString(0))); s.setImdbId(cursor.getString(6)); s.setName(cursor.getString(2)); s.setRating(cursor.getString(7)); s.setStatus(cursor.getString(8)); s.setSummary(cursor.getString(1)); s.setFirstAired(cursor.getString(10)); s.setHeader(cursor.getString(11)); s.setSeriesId(cursor.getString(12)); s.Episodes = new ArrayList<Episode>(); s.Episodes.add(GetNextEpisodeForShow(s.getSeriesId())); Episode e = s.Episodes.get(0); if(s.getStatus().equals("Ended")) { s.setNextEpisodeInformation(""); } else { s.setNextEpisodeInformation(e.getAired() != null ? new DateHelper().Episodenumber(e) + " " + e.getTitle() + " - " + new DateHelper().DaysTilNextEpisode(e.getAired()) : "No information"); } s.setTotalEpisodes(GetTotalEpisodes(s.getSeriesId())); s.setwatchedEpisodes(GetWatchedEpisodes(s.getSeriesId())); series.add(s); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error - GetMySeries",e.getMessage()); // TODO: handle exception } finally{ cursor.close(); db.close(); } return series; } // public ArrayList<Series> GetAllSeries(Integer profileId) // { // // ArrayList<Series> series = new ArrayList<Series>(); // String sql = "SELECT * FROM " + TABLE_SERIES + " WHERE ProfileId = "+ profileId + " ORDER BY "+ KEY_NAME +" ASC"; // SQLiteDatabase db = this.getReadableDatabase(); // Cursor cursor = db.rawQuery(sql,null); // try { // cursor.moveToFirst(); // while (!cursor.isAfterLast()) { // Series s = new Series(); // // s.setActors(cursor.getString(3)); // s.setAirs(cursor.getString(4)); // s.setImage(cursor.getString(9)); // s.setGenre(cursor.getString(5)); // s.setID(Integer.parseInt(cursor.getString(0))); // s.setImdbId(cursor.getString(6)); // s.setName(cursor.getString(2)); // s.setRating(cursor.getString(7)); // s.setStatus(cursor.getString(8)); // s.setSummary(cursor.getString(1)); // s.setFirstAired(cursor.getString(10)); // s.setHeader(cursor.getString(11)); // s.setSeriesId(cursor.getString(12)); // // s.Episodes = new ArrayList<Episode>(); // // s.Episodes.add(GetNextEpisodeForSeries(s.getSeriesId())); // // series.add(s); // cursor.moveToNext(); // } // } catch (Exception e) { // Log.d("Error","getAllSeries()"); // // TODO: handle exception // } // finally{ // cursor.close(); // db.close(); // } // // return series; // } public Episode GetLastAiredEpisodeForShow(String seriesId) { Episode e = new Episode(); SQLiteDatabase db = this.getReadableDatabase(); String dateWithoutTime = android.text.format.DateFormat.format("yyyy-MM-dd", new java.util.Date()).toString(); String sql = "SELECT * FROM "+ TABLE_EPISODES +" WHERE date("+ KEY_AIRED +") < date('"+ dateWithoutTime +"') AND "+KEY_SERIESID+" = "+ seriesId +" AND "+KEY_SEASON+" != 0 AND "+ KEY_PROFILEID + " = " + Utils.selectedProfile +" ORDER BY "+ KEY_AIRED +" DESC LIMIT 1"; Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { e.setAired(cursor.getString(4)); e.setEpisode(cursor.getString(2)); e.setID(Integer.parseInt(cursor.getString(0))); e.setSeason(cursor.getString(1)); e.setSeriesId(cursor.getString(7)); e.setSummary(cursor.getString(6)); e.setTitle(cursor.getString(3)); e.setWatched(cursor.getString(5)); } } } catch (Exception e2) { Log.d("Error","GetLastAiredEpisodeForSeries"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return e; } public Episode GetNextEpisodeForShow(String seriesId) { Episode e = new Episode(); SQLiteDatabase db = this.getReadableDatabase(); String dateWithoutTime = android.text.format.DateFormat.format("yyyy-MM-dd", new java.util.Date()).toString(); String sql = "SELECT * FROM "+ TABLE_EPISODES +" WHERE date("+ KEY_AIRED +") >= date('"+ dateWithoutTime +"') AND "+KEY_SERIESID+" = "+ seriesId +" AND "+KEY_SEASON+" != 0 AND "+KEY_PROFILEID+" = "+Utils.selectedProfile+" ORDER BY "+ KEY_AIRED +" ASC LIMIT 1"; Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { e.setAired(cursor.getString(4)); e.setEpisode(cursor.getString(2)); e.setSeason(cursor.getString(1)); e.setTitle(cursor.getString(3)); } } } catch (Exception e2) { Log.d("Error","GetNextEpisodeForSeries"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return e; } public Episode GetEpisodeById(String episodeId) { Episode e = new Episode(); String sql = "SELECT * FROM "+ TABLE_EPISODES +" WHERE "+KEY_ID+" = "+ episodeId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { e.setAired(cursor.getString(4)); e.setEpisode(cursor.getString(2)); e.setID(Integer.parseInt(cursor.getString(0))); e.setSeason(cursor.getString(1)); e.setSeriesId(cursor.getString(7)); e.setSummary(cursor.getString(6)); e.setTitle(cursor.getString(3)); e.setWatched(cursor.getString(5)); } } } catch (Exception e2) { Log.d("Error","GetEpisodeById"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return e; } public Series GetShowById(String id) { Series s = new Series(); String sql = "SELECT * FROM " + TABLE_SERIES + " WHERE " + KEY_ID + " = " + id + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { s.setActors(cursor.getString(3)); s.setAirs(cursor.getString(4)); s.setImage(cursor.getString(9)); s.setHeader(cursor.getString(11)); s.setGenre(cursor.getString(5)); s.setID(Integer.parseInt(cursor.getString(0))); s.setImdbId(cursor.getString(6)); s.setName(cursor.getString(2)); s.setRating(cursor.getString(7)); s.setStatus(cursor.getString(8)); s.setSummary(cursor.getString(1)); s.setFirstAired(cursor.getString(10)); s.setSeriesId(cursor.getString(12)); } } s.Episodes = GetEpisodes(s.getSeriesId()); } catch (Exception e) { Log.d("Error","getSeriesById"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return s; } public Boolean ShowExists(String seriesId) { String sql = "SELECT * FROM " + TABLE_SERIES + " WHERE " + KEY_SERIESID + " = " + seriesId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { cursor.close(); return true; } } } catch (Exception e) { Log.d("Error","SeriesExist"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return false; } public void ToggleEpisodeWatched(String id, boolean watched) { SQLiteDatabase db = this.getWritableDatabase(); try { String value; if(watched) { value = "1"; } else { value = "0"; } ContentValues values = new ContentValues(); values.put(KEY_WATCHED, value); db.update(TABLE_EPISODES, values, KEY_ID + " = ? AND " + KEY_PROFILEID + " = " + Utils.selectedProfile, new String[] { id }); } catch (Exception e) { Log.d("Error","ToggleEpisodeWatch"); // TODO: handle exception } finally{ db.close(); } } public void ToggleSeasonWatched(String id, String season, boolean watched) { SQLiteDatabase db = this.getWritableDatabase(); try { String value; String dateWithoutTime = android.text.format.DateFormat.format("yyyy-MM-dd", new java.util.Date()).toString(); if(watched) { value = "1"; } else { value = "0"; } ContentValues values = new ContentValues(); values.put(KEY_WATCHED, value); db.update(TABLE_EPISODES, values, KEY_AIRED + " < date('"+ dateWithoutTime +"') AND "+KEY_SERIESID + " = ? AND " + KEY_SEASON + " = ? AND " + KEY_PROFILEID + " = " + Utils.selectedProfile, new String[] { id, season }); } catch (Exception e) { Log.d("Error","ToggleSeasonWatched"); // TODO: handle exception } finally{ db.close(); } } public void MarkShowAsWatched(String id) { SQLiteDatabase db = this.getWritableDatabase(); try { String dateWithoutTime = android.text.format.DateFormat.format("yyyy-MM-dd", new java.util.Date()).toString(); ContentValues values = new ContentValues(); values.put(KEY_WATCHED, "1"); db.update(TABLE_EPISODES, values, KEY_AIRED + " < date('"+ dateWithoutTime +"') AND "+ KEY_SERIESID +" = ? AND " + KEY_PROFILEID + " = " + Utils.selectedProfile, new String[] {id}); } catch (Exception e) { Log.d("Error","MarkSeriesAsWatched"); // TODO: handle exception } finally{ db.close(); } } private ArrayList<Episode> GetEpisodes(String seriesId) { ArrayList<Episode> episodes = new ArrayList<Episode>(); String sql = "SELECT * FROM " + TABLE_EPISODES + " WHERE " + KEY_SEASON + " != 0 AND " + KEY_AIRED + " != '' AND " + KEY_SERIESID + " = " + seriesId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile + " ORDER BY CAST("+ KEY_SEASON +" AS INTEGER) DESC, CAST(" + KEY_EPISODE + " AS INTEGER) DESC"; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); try { cursor.moveToFirst(); while(!cursor.isAfterLast()) { Episode e = new Episode(); e.setAired(cursor.getString(4)); e.setEpisode(cursor.getString(2)); e.setID(Integer.parseInt(cursor.getString(0))); e.setSeason(cursor.getString(1)); e.setSeriesId(cursor.getString(7)); e.setSummary(cursor.getString(6)); e.setTitle(cursor.getString(3)); e.setWatched(cursor.getString(5)); episodes.add(e); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error","GetEpisodes"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return episodes; } public ArrayList<Episode> GetAiredEpisodes(String seriesId) { String dateWithoutTime = android.text.format.DateFormat.format("yyyy-MM-dd", new java.util.Date()).toString(); ArrayList<Episode> episodes = new ArrayList<Episode>(); String sql = "SELECT * FROM " + TABLE_EPISODES + " WHERE " + KEY_SEASON + " != 0 AND " + KEY_AIRED + " != '' AND " + KEY_AIRED + " <= date('" + dateWithoutTime + "') AND " + KEY_SERIESID + " = " + seriesId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile + " ORDER BY "+KEY_AIRED+" DESC"; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); try { cursor.moveToFirst(); while(!cursor.isAfterLast()) { Episode e = new Episode(); e.setAired(cursor.getString(4)); e.setEpisode(cursor.getString(2)); e.setID(Integer.parseInt(cursor.getString(0))); e.setSeason(cursor.getString(1)); e.setSeriesId(cursor.getString(7)); e.setSummary(cursor.getString(6)); e.setTitle(cursor.getString(3)); e.setWatched(cursor.getString(5)); episodes.add(e); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error","GetAiredEpisodes"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return episodes; } public ArrayList<Episode> GetAllEpisodesForGivenTimePeriod(int timeperiod) { ArrayList<Episode> episodes = new ArrayList<Episode>(); String dateWithoutTime = android.text.format.DateFormat.format("yyyy-MM-dd", new java.util.Date()).toString(); String sql = ""; SQLiteDatabase db = this.getReadableDatabase(); switch (timeperiod) { case 0: //Today sql = "SELECT * FROM "+ TABLE_EPISODES + " e INNER JOIN "+TABLE_SERIES+" s ON e.seriesId = s.SeriesId WHERE "+KEY_AIRED+" >= date('"+dateWithoutTime+"') AND STRFTIME('%j', "+ KEY_AIRED +") = STRFTIME('%j', '"+ dateWithoutTime +"') AND STRFTIME('%Y', "+ KEY_AIRED +") = STRFTIME('%Y', '"+ dateWithoutTime +"') ORDER BY " + KEY_AIRED; break; case 1: //This week sql = "SELECT * FROM "+ TABLE_EPISODES +" e INNER JOIN "+TABLE_SERIES+" s ON e.seriesId = s.SeriesId WHERE "+KEY_AIRED+" >= date('"+dateWithoutTime+"') AND STRFTIME('%W', "+ KEY_AIRED +") = STRFTIME('%W', '"+ dateWithoutTime +"') AND STRFTIME('%Y', "+ KEY_AIRED +") = STRFTIME('%Y', '"+ dateWithoutTime +"') ORDER BY " + KEY_AIRED; break; case 2: //This month sql = "SELECT * FROM "+ TABLE_EPISODES +" e INNER JOIN "+TABLE_SERIES+" s ON e.seriesId = s.SeriesId WHERE "+KEY_AIRED+" >= date('"+dateWithoutTime+"') AND STRFTIME('%m', "+ KEY_AIRED +") = STRFTIME('%m', '"+ dateWithoutTime +"') AND STRFTIME('%Y', "+ KEY_AIRED +") = STRFTIME('%Y', '"+ dateWithoutTime +"') ORDER BY " + KEY_AIRED; break; default: break; } Cursor cursor = db.rawQuery(sql, null); try { cursor.moveToFirst(); while(!cursor.isAfterLast()) { Episode e = new Episode(); e.setTitle(cursor.getString(3)); e.setAired(cursor.getString(4)); e.setSummary(cursor.getString(6)); e.setSeason(cursor.getString(1)); e.setEpisode(cursor.getString(2)); e.setSeriesId(cursor.getString(20)); e.setWatched("0"); episodes.add(e); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error","GetAllEpisodesForGivenTimePeriod"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return episodes; } public void DeleteShow(String seriesId) { SQLiteDatabase db = this.getWritableDatabase(); try { db.delete(TABLE_EPISODES, KEY_SERIESID + " = ? AND " + KEY_PROFILEID + " = " + Utils.selectedProfile, new String[] { String.valueOf(seriesId) }); db.delete(TABLE_SERIES, KEY_SERIESID + " = ? AND " + KEY_PROFILEID + " = " + Utils.selectedProfile, new String[] { String.valueOf(seriesId) }); } catch (Exception e) { Log.d("Error","DeleteSeries"); // TODO: handle exception } finally{ db.close(); } } //Profiles public ArrayList<Profile> GetAllprofiles() { ArrayList<Profile> profiles = new ArrayList<Profile>(); SQLiteDatabase db = this.getReadableDatabase(); String sql = "SELECT * FROM " + TABLE_PROFILE; Cursor cursor = db.rawQuery(sql, null); try { cursor.moveToFirst(); while (!cursor.isAfterLast()) { Profile p = new Profile(); p.setId(Integer.parseInt(cursor.getString(0))); p.setName(cursor.getString(1)); profiles.add(p); cursor.moveToNext(); } } catch (Exception e) { Log.d("Error","GetAllProfiles"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return profiles; } public void AddNewProfile(String profileName) { SQLiteDatabase db = this.getWritableDatabase(); try { ContentValues values = new ContentValues(); values.put(KEY_PROFILENAME, profileName); db.insert(TABLE_PROFILE, null, values); } catch (Exception e) { Log.d("Error","AddNewProfile"); // TODO: handle exception } finally{ db.close(); } } public String GetSelectedProfile(){ String name = ""; SQLiteDatabase db = this.getReadableDatabase(); String sql = "SELECT * FROM " + TABLE_PROFILE + " WHERE Id = " + Utils.selectedProfile; Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { name = cursor.getString(1); } } } catch (Exception e) { Log.d("Error","GetSelectedProfile"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return name; } public String GetSelectedProfile(Integer profileId){ SQLiteDatabase db = this.getReadableDatabase(); String name = ""; String sql = "SELECT * FROM " + TABLE_PROFILE + " WHERE Id = " + profileId; Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { name = cursor.getString(1); } } } catch (Exception e) { Log.d("Error","GetSelectedProfile()"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return name; } private int GetTotalEpisodes(String seriesId){ SQLiteDatabase db = this.getReadableDatabase(); int episodes = 0; String sql = "SELECT COUNT(*) FROM " + TABLE_EPISODES + " WHERE " + KEY_SEASON + " != 0 AND " + KEY_AIRED + " != '' AND " + KEY_SERIESID + " = " + seriesId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile; Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { episodes = Integer.parseInt(cursor.getString(0)); } } } catch (Exception e) { Log.d("Error","GetTotalEpisodes"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return episodes; } private int GetWatchedEpisodes(String seriesId){ SQLiteDatabase db = this.getReadableDatabase(); int episodes = 0; String sql = "SELECT COUNT(*) FROM " + TABLE_EPISODES + " WHERE " + KEY_SEASON + " != 0 AND " + KEY_AIRED + " != '' AND " + KEY_SERIESID + " = " + seriesId + " AND " + KEY_PROFILEID + " = " + Utils.selectedProfile + " AND " + KEY_WATCHED + " = '1'"; Cursor cursor = db.rawQuery(sql, null); try { if(cursor != null) { if(cursor.moveToFirst()) { episodes = Integer.parseInt(cursor.getString(0)); } } } catch (Exception e) { Log.d("Error","GetWatchedEpisodes"); // TODO: handle exception } finally{ cursor.close(); db.close(); } return episodes; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
691c7c02c4b7ca130dd86a4d93a13637d22706ea
30e616ef6f662bb71c33017a59c0e8ec149a21a8
/cometd-javascript/tests/src/test/java/org/cometd/javascript/CometDWebSocketNetworkDelayListenerTest.java
7b9f8d6a1c01c9bb5737bb34439feb4846ac411b
[ "Apache-2.0" ]
permissive
cometd/cometd
b17aa4b3eb5781e7aca751b5b475989ae7dfe237
1d2d31401833dd95d11800bf53602aad0b1c68a7
refs/heads/6.0.x
2023-08-30T21:50:40.019430
2023-08-25T09:27:43
2023-08-25T09:27:43
1,765,693
426
192
Apache-2.0
2023-09-11T07:37:04
2011-05-18T11:55:11
Java
UTF-8
Java
false
false
3,624
java
/* * Copyright (c) 2008-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.cometd.javascript; import org.cometd.bayeux.Channel; import org.cometd.bayeux.Promise; import org.cometd.bayeux.server.BayeuxServer; import org.cometd.bayeux.server.ServerMessage; import org.cometd.bayeux.server.ServerSession; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class CometDWebSocketNetworkDelayListenerTest extends AbstractCometDWebSocketTest { @Test public void testNetworkDelayListener() throws Exception { long maxNetworkDelay = 1000; bayeuxServer.addExtension(new BayeuxServer.Extension() { private int metaConnects; @Override public boolean sendMeta(ServerSession to, ServerMessage.Mutable message) { if (Channel.META_CONNECT.equals(message.getChannel())) { if (++metaConnects == 2) { sleep(3 * maxNetworkDelay / 2); } } return true; } }); evaluateScript("cometd.configure({" + "url: '" + cometdURL + "', " + "logLevel: '" + getLogLevel() + "'," + "maxNetworkDelay: " + maxNetworkDelay + "});"); evaluateScript("var transportLatch = new Latch(1);"); Latch transportLatch = javaScript.get("transportLatch"); evaluateScript("cometd.addTransportListener('timeout', function() {" + "transportLatch.countDown();" + "return " + maxNetworkDelay + ";" + "});"); String channelName = "/delayListener"; evaluateScript("var messageLatch = new Latch(1);"); Latch messageLatch = javaScript.get("messageLatch"); evaluateScript("cometd.addListener('" + channelName + "', function() { messageLatch.countDown(); });"); evaluateScript("var connectLatch = new Latch(2);"); Latch connectLatch = javaScript.get("connectLatch"); evaluateScript("cometd.addListener('/meta/connect', function(m) {" + " if (m.successful) {" + " connectLatch.countDown(); " + " } else {" + " cometd._info('/meta/connect failure', m);" + " }" + "});"); evaluateScript("cometd.handshake();"); Thread.sleep(metaConnectPeriod / 2); String sessionId = evaluateScript("cometd.getClientId();"); bayeuxServer.getSession(sessionId).deliver(null, channelName, "DATA", Promise.noop()); Assertions.assertTrue(messageLatch.await(5000)); // Verify that the transport listener is invoked. Assertions.assertTrue(transportLatch.await(metaConnectPeriod)); // Verify that we are still connected. Assertions.assertTrue(connectLatch.await(2 * metaConnectPeriod)); boolean disconnected = evaluateScript("cometd.isDisconnected();"); Assertions.assertFalse(disconnected); disconnect(); } }
[ "simone.bordet@gmail.com" ]
simone.bordet@gmail.com
86ee2d25a0010bdc4fe6092ea4cadafc6d611260
3392c311326bb277b235919d61da6de9ad458941
/java/opentracing-opentelemetry/jaeger/shipping-service/src/main/java/com/sonal/distributedtracing/shipping/rest/ShipmentController.java
e58aa4890d481cae226a21e016408274088dbb64
[]
no_license
sinhasonalkumar/microservices
fd1b89eb756562a4e44ae8ef258678e3d7e54a85
a414e9d0724ff6d94ea04495089c421ec4ab5707
refs/heads/master
2023-08-31T21:09:16.611342
2023-08-20T22:11:40
2023-08-20T22:11:40
252,251,925
1
1
null
2023-09-05T21:59:49
2020-04-01T18:11:41
Java
UTF-8
Java
false
false
1,737
java
package com.sonal.distributedtracing.shipping.rest; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.sonal.distributedtracing.shipping.service.ShippingService; import com.sonal.distributedtracing.shipping.vo.ShippingRequestVO; import com.sonal.distributedtracing.shipping.vo.ShippingResponseVO; import brave.Tracer; import brave.baggage.BaggageField; import lombok.extern.slf4j.Slf4j; @Slf4j @RestController @RequestMapping("/shipment") public class ShipmentController { @Autowired private Tracer tracer; @Autowired private ShippingService shippingService; @PostMapping public ResponseEntity<ShippingResponseVO> shipOrderRequest(@RequestBody ShippingRequestVO shippingRequestVO){ printBaggages(); log.info("Active Trace : " + tracer.currentSpan().context().traceIdString()); log.info("Active Span : " + tracer.currentSpan().context().spanIdString()); log.info("started"); ResponseEntity<ShippingResponseVO> response = ResponseEntity.ok(shippingService.shipOrderRequest(shippingRequestVO)); log.info("Ended"); return response; } private void printBaggages() { Map<String, String> allValues = BaggageField.getAllValues(); StringBuilder baggages = new StringBuilder(); allValues.keySet() .stream() .forEach(b -> baggages.append(b + "=" + allValues.get(b))); log.info("Baggages : " + baggages); } }
[ "sinha.sonal.kumar@gmail.com" ]
sinha.sonal.kumar@gmail.com
3ff3e0802bfc4738def2bdcec10f3da6c4157a15
5d3bbee0705adc7f44d0853de7de4b0390425dba
/_01_spring_overview/practice/customer-management/src/main/java/cg/wbd/grandemonstration/CustomerController.java
1e40211d252344124eb3d750a7e75aa4d3c16812
[]
no_license
Hanguyen2332/C0421G1_Module_4
14e42e74a67fdd2ed9ebcf0a47b9ac2d3ab6f5e5
5eba11e416a88a5f507876addedcc2a67691d867
refs/heads/main
2023-08-21T21:33:25.545869
2021-10-02T07:47:38
2021-10-02T07:47:38
397,856,888
0
0
null
null
null
null
UTF-8
Java
false
false
1,775
java
package cg.wbd.grandemonstration; import cg.wbd.grandemonstration.model.Customer; import cg.wbd.grandemonstration.service.CustomerService; import cg.wbd.grandemonstration.service.CustomerServiceFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import java.util.List; @Controller public class CustomerController { //--tạo đối tượng kiểu CustomerService (interface) (vì getInstance() mehthod trả về đối tượng kiểu CustomerService)--// //private CustomerService customerService = CustomerServiceFactory.getInstance(); @Autowired private CustomerService customerService; // @GetMapping("/customers") ////B1. // public String showList() { // return "customers/list.jsp"; //~ forward --> xxx.jsp // } ////B2. // public String showList(HttpServletRequest request) { // List<Customer> customers = customerService.findAll(); // request.setAttribute("customers", customers); // return "customers/list.jsp"; // } ////B3 // public String showList(Model model) { // List<Customer> customers = customerService.findAll(); // model.addAttribute("customers", customers); // return "customers/list.jsp"; // } ////B4: public ModelAndView showList() { ModelAndView modelAndView = new ModelAndView("customers/list.jsp"); List<Customer> customers = customerService.findAll(); modelAndView.addObject("customers", customers); return modelAndView; } }
[ "thanhha2332@gmail.com" ]
thanhha2332@gmail.com
f4d156c5b117aa552f7355c6db4ea0475c9766a4
e14e4a1e3206c320f789bce5270885777bfb2a5a
/src/chapter_18/Service/ServiceBrowser.java
bbc4b3f3f3a3cf93f13728d820d80b9528cc320d
[]
no_license
MariaZuevaMouse/HeadFirstJava
ae08b3a7a325e2e01bbb4cf4a6174767f86ba7e3
a6e3e645b71fcc4b8430871fdd17dfd1b6e51c8c
refs/heads/master
2022-11-17T02:49:17.143835
2020-07-05T19:49:35
2020-07-05T19:49:35
277,370,965
0
0
null
null
null
null
UTF-8
Java
false
false
1,897
java
package chapter_18.Service; import com.sun.javafx.logging.JFRInputEvent; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.rmi.Naming; public class ServiceBrowser { JPanel mainPanel; JComboBox serviceList; ServiceServer server; public void buildGui(){ JFrame frame = new JFrame("RMI Browser"); mainPanel = new JPanel(); frame.getContentPane().add(BorderLayout.CENTER, mainPanel); Object[] services = getServiceList(); serviceList = new JComboBox(services); frame.getContentPane().add(BorderLayout.NORTH, serviceList); serviceList.addActionListener(new MyListListener()); frame.setSize(500, 500); frame.setVisible(true); } void loadService(Object serviceSelection){ try{ Service svc = server.getService(serviceSelection); mainPanel.removeAll(); mainPanel.add(svc.getGuiPanel()); mainPanel.validate(); mainPanel.repaint(); } catch (Exception ex){ex.printStackTrace();} } Object[] getServiceList(){ Object obj = null; Object[] services = null; try{ obj = Naming.lookup("rmi://127.0.0.1/ServiceServer"); }catch (Exception ex){ex.printStackTrace();} server = (ServiceServer) obj; try { services = server.getServiceList(); }catch (Exception ex){ ex.printStackTrace(); } return services; } class MyListListener implements ActionListener{ @Override public void actionPerformed(ActionEvent e) { Object selection = serviceList.getSelectedItem(); loadService(selection); } } public static void main(String[] args) { new ServiceBrowser().buildGui(); } }
[ "58681283+MariaZuevaMouse@users.noreply.github.com" ]
58681283+MariaZuevaMouse@users.noreply.github.com
cf1e0cb1cddfb40729bd8850f33083d74b31abec
e12442dded669c4c6ac7feedc92fab9e11608ee8
/src/java/com/hzih/sslvpn/web/action/sslvpn/acl/ACLXML.java
caabeceb3d51c2eb466fd7e1e77efb77a89f08a8
[]
no_license
gholdzhang/sslvpn_check
e101a1e5bcc6b063d48228aa675bccf8472ed843
3ca0656920c9418d74e51814b3fb038389405f1f
refs/heads/master
2023-03-16T21:28:29.267823
2016-04-16T03:15:14
2016-04-16T03:15:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,487
java
package com.hzih.sslvpn.web.action.sslvpn.acl; import com.hzih.sslvpn.utils.StringContext; import org.apache.log4j.Logger; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import org.dom4j.io.XMLWriter; import java.io.*; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 13-11-18 * Time: 下午7:59 * To change this template use File | Settings | File Templates. */ public class ACLXML { private static Logger logger = Logger.getLogger(ACLXML.class); public static final String control = "acl"; public static final String status = "status"; public static final String url = "url"; public static final String port = "port"; public static final String proxy_ip = "proxy_ip"; public static final String proxy_port = "proxy_port"; public static String getAttribute(String attributeName) { SAXReader saxReader = new SAXReader(); Document doc = null; try { doc = saxReader.read(new File(StringContext.acl_xml)); } catch (DocumentException e) { logger.error(e.getMessage(),e); } Element root = doc.getRootElement(); String result = root.attributeValue(attributeName); return result; } public static boolean saveConfig(String status, String control_url, String port, String proxy_ip, String proxy_port) { boolean flag = false; Document doc = DocumentHelper.createDocument(); Element root = doc.addElement(ACLXML.control); root.addAttribute(ACLXML.status, status); root.addAttribute(ACLXML.url, control_url); root.addAttribute(ACLXML.port, port); root.addAttribute(ACLXML.proxy_ip, proxy_ip); root.addAttribute(ACLXML.proxy_port, proxy_port); OutputFormat outputFormat = new OutputFormat("", true); try { XMLWriter xmlWriter = new XMLWriter(new FileOutputStream(new File(StringContext.acl_xml)), outputFormat); try { xmlWriter.write(doc); flag = true; } catch (IOException e) { logger.info(e.getMessage(),e); } } catch (UnsupportedEncodingException e) { logger.info(e.getMessage(),e); } catch (FileNotFoundException e) { logger.info(e.getMessage(),e); } return flag; } }
[ "465805947@QQ.com" ]
465805947@QQ.com
09d36a4a54279d5fb603fa10a7ca8efce3a5c28e
d76ec4aac5acf78790eab7684e72e7d28a367ec1
/src/main/java/com/employees/profile/EmployeesApplication.java
8e1956b84c987f953574674ff993e57f25efcdea
[]
no_license
FR4NC15C0JH/employees-register-backend
063423967adf7aca969de9e00fbdf87f409dd580
56dae3271f791ee07b02ac976ac8a11f9859ca5f
refs/heads/master
2020-03-27T14:12:40.978138
2018-09-05T19:30:43
2018-09-05T19:30:43
146,650,132
0
1
null
null
null
null
UTF-8
Java
false
false
1,194
java
package com.employees.profile; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.security.crypto.password.PasswordEncoder; import com.employees.profile.enumerator.Profiles; import com.employees.profile.model.User; import com.employees.profile.repository.UserRepository; @SpringBootApplication public class EmployeesApplication { public static void main(String[] args) { SpringApplication.run(EmployeesApplication.class, args); } @Bean CommandLineRunner init(UserRepository userRepository, PasswordEncoder passwordEncoder) { return args -> { initUser(userRepository, passwordEncoder); }; } private void initUser(UserRepository userRepository, PasswordEncoder passwordEncoder) { User admin = new User(); admin.setEmail("admin@employees.com"); admin.setPassword(passwordEncoder.encode("123456")); admin.setProfiles(Profiles.ROLE_ADMIN); User find = userRepository.findByEmail("admin@employees.com"); if(find == null) { userRepository.save(admin); } } }
[ "jh.programador@gmail.com" ]
jh.programador@gmail.com
fcd22076481a4aaa913af713a8cd5f702bd4e212
ceb14c55aec895c378cc6f8c78f3353d9c1b6470
/src/br/com/impacta/ads/AgendaApp.java
98519322973bc8206aa3a8b07aaac370cb3a3fcd
[]
no_license
luc4sg0mes/sw-design
656aab21aa4274fe0f751a64a2304cc537afa850
11234b82566e2c4b0879788a24ce968cebcdc578
refs/heads/master
2021-01-20T14:03:52.230277
2017-02-22T01:18:17
2017-02-22T01:18:17
82,735,605
0
0
null
null
null
null
ISO-8859-1
Java
false
false
2,850
java
package br.com.impacta.ads; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import static java.lang.System.out; public class AgendaApp { private static Scanner entrada = new Scanner (System.in); //private static List<Contato> contatos = new ArrayList<>(); private static IContatoDao dao = new ContatoDao(); public static void main (String []args){ boolean sair = false; while (!sair){ int opcao = apresentarMenuPrincipal(); switch(opcao){ case 1: inserirContato(); break; case 2: buscarContato(); break; case 3: sair = true; break; default: out.println("ERRO: opcção invalida!"); } } out.println("\nFim do programa!"); } public static int apresentarMenuPrincipal(){ boolean inteiro = false; int opcao = 0; while (!inteiro){ out.println("\nAGENDA TELEFÔNICA!"); out.println("(1) Inserir"); out.println("(2) Buscar"); out.println("(3) Sair"); out.println("Escolha uma opção: "); String s = entrada.nextLine(); try{ opcao = Integer.parseInt(s); inteiro = true; }catch(Exception e){ out.println("ERRO: opção deve ser um valor inteiro!"); } } return opcao; } private static void inserirContato(){ out.println("\nINSERÇÃO DE NOVO CONTATO:"); String nome = lerNome(); String telefone = lerTelefone(); Contato c = new Contato (nome, telefone); //if(contatos.contains(c)){ if(dao.existe(c)){ out.println("Este contato já está cadastrado!"); } else{ //contatos.add(c); dao.inserir(c); out.println("Contato inserido!"); } } private static String lerNome(){ boolean valido = false; String nome = ""; while (!valido){ out.print("Nome: "); nome = entrada.nextLine(); if(nome.length()==0 || nome.length()>200){ out.println("ERRO: nome do tamanho inválido!"); }else{valido = true;} } return nome; } private static String lerTelefone(){ boolean valido = false; String telefone = ""; while (!valido){ out.print("Telefone: "); telefone = entrada.nextLine(); if(telefone.length()==0 || telefone.length()>25){ out.println("ERRO: telefone de tamanho inválido!"); }else{valido = true;} } return telefone; } private static void buscarContato(){ out.println("\nBUSCA DE CONTATOS:"); String nome = lerNome(); // List<Contato> resultado = new ArrayList<>(); // for(Contato c: contatos){ // if(nome.equals(c.getNome())){ // resultado.add(c); // } // } List<Contato> resultado = dao.buscar(nome); if(resultado.size() == 0){ out.println("Não há contato com este nome!"); }else{ out.println("\nResultado da busca:"); for(Contato c: resultado){ out.println(c); } } } }
[ "HP@172.20.25.168" ]
HP@172.20.25.168
572b2613f0fc5ea34a228e8a37bda3ce82837ab0
e05f43dcdf1cc0dd2e2627283574e4a8345ee446
/SpringTemplate/src/main/java/com/nit/dao/EmployeeDao.java
f361fad134ad752b66161c71921fe810d116de53
[]
no_license
kaushalkbca15/SpringJDBC
a466db3bd3947e6f9a98e08b365160dcb826a6bf
fe242615dab6612c59b2c7c039ca56bf5849f2bc
refs/heads/master
2021-05-02T03:51:58.271456
2018-02-09T13:47:15
2018-02-09T13:47:15
120,865,038
0
0
null
null
null
null
UTF-8
Java
false
false
276
java
package com.nit.dao; import java.util.List; import java.util.Map; public interface EmployeeDao { int getDeptNo(int empno); String getName(int empno); double getSalary(int empno); Map<String,Object> getEmployee(int empno); List<Map<String,Object>> getAllEmployees(); }
[ "email@example.com" ]
email@example.com
41d4a6e67bc00300dd649e6383939d7a5b22c8da
2ca9bb9cdccc053a00ce9bfd1c2a99cc4ef75593
/interview/src/main/java/com/practice/interview/redhat/webservice/SearchCustomerServiceImpl.java
8622f02eaeb5333d64b5d19488bb71eae6197ecf
[]
no_license
arpitarora123/javaforall
fe2994e724c925180c1a3839329dcdf5fea3693b
c39775177a4f95b8058b0e9b2b91f667de489449
refs/heads/master
2022-01-07T10:42:13.164297
2019-05-03T16:32:05
2019-05-03T16:32:05
106,071,180
0
0
null
null
null
null
UTF-8
Java
false
false
947
java
///** // * Question #6 // */ //package com.practice.interview.redhat.webservice; // //import java.util.List; // //import javax.ws.rs.Consumes; //import javax.ws.rs.POST; //import javax.ws.rs.Path; //import javax.ws.rs.Produces; //import javax.ws.rs.core.MediaType; // ///** // * @author Arpit // * @version 1.0 // * @since 2019-02-15 // */ //@Path("/customers") //@Consumes(MediaType.APPLICATION_JSON) //@Produces(MediaType.APPLICATION_JSON) //public class SearchCustomerServiceImpl implements SearchCustomerService { // // /** // * {@inheritDoc} // */ // @Override // @POST // @Path("/search") // public List<Customer> getCustomers(SearchCriteria criteria) { // // SearchCustomerServiceDaoImpl searchCustomerServiceDaoImpl = new SearchCustomerServiceDaoImpl(); // searchCustomerServiceDaoImpl.getCustomers(criteria); // // List<Customer> cusomerList = searchCustomerServiceDaoImpl.getCustomers(criteria); // return cusomerList; // } // //}
[ "arpit.arora123@gmail.com" ]
arpit.arora123@gmail.com
c0a6677eedc687dde00700544cca2b7109d54100
122cf195f45446e3806904403486578e9be2ca43
/Triangle.java
5740c5510e5ef5f71b1e4614017330db839a6dc4
[]
no_license
willemfrishert/datorgrafik
639db0fa5a22c2e87f80d224753cc057816b2671
35342085d1cc78b1d7483906f6f88d63582769e3
refs/heads/master
2020-04-24T04:55:30.897095
2007-05-07T09:47:46
2007-05-07T09:47:46
32,142,354
0
0
null
null
null
null
UTF-8
Java
false
false
936
java
/* Triangle.java 1.01 2007-03-16 * Stefan Gustavson, ITN-LiTH 2007 (stegu@itn.liu.se) */ /** A triangle polygon class for TNM046 lab exercises. * @version 2007-03-16 * @author Stefan Gustavson (stegu@itn.liu.se) * @see Mesh */ public class Triangle { /** * The triangle corners, in counter-clockwise order viewed from the front side. */ public int p1,p2,p3; /** * Default constructor, yields an invalid triangle with p1=p2=p3= -1 */ public Triangle() { p1=-1; p2=-1; p3=-1; } /** * Constructor to create a triangle from three vertex indices * @param p1 The first vertex index * @param p2 The second vertex index * @param p3 The third vertex index */ public Triangle(int p1, int p2, int p3) { this.p1=p1; this.p2=p2; this.p3=p3; } /** * Reverse the vertex order of the triangle */ public void reverse() { int p=p1; p1=p2; p2=p; } }
[ "wfrishert@df9d814b-612d-0410-bf66-eb8e6cbdb898" ]
wfrishert@df9d814b-612d-0410-bf66-eb8e6cbdb898
30a9728f1068aaab05487ce8dddf7413b0e1e37f
92defe9a6cfb711df61df190bf8804ef82993742
/engine/src/main/java/org/entando/entando/plugins/jacms/aps/system/init/portdb/ContentSearch.java
bbf1ec87c26793b2e8388f3aff3aa10db52911b8
[]
no_license
DevBrandon/entando-core
e6ffeddd0d76ff5f3694e96834a313764c20a739
4d1f88b372d4b0ef604fdde2aa929eef3de0e6b2
refs/heads/master
2020-12-26T01:13:58.694861
2014-12-01T17:18:43
2014-12-01T17:18:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,836
java
/* * * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved. * * This file is part of Entando software. * Entando is a free software; * You can redistribute it and/or modify it * under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; version 2. * * See the file License for the specific language governing permissions * and limitations under the License * * * * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved. * */ package org.entando.entando.plugins.jacms.aps.system.init.portdb; import java.util.Date; import org.entando.entando.aps.system.init.IDatabaseManager; import org.entando.entando.aps.system.init.model.ExtendedColumnDefinition; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; /** * @author E.Santoboni */ @DatabaseTable(tableName = ContentSearch.TABLE_NAME) public class ContentSearch implements ExtendedColumnDefinition { public ContentSearch() {} @DatabaseField(foreign = true, columnName = "contentid", width = 16, canBeNull = false, index = true) private Content _contentId; @DatabaseField(columnName = "attrname", dataType = DataType.STRING, width = 30, canBeNull = false, index = true) private String _attributeName; @DatabaseField(columnName = "textvalue", dataType = DataType.STRING, canBeNull = true) private String _textValue; @DatabaseField(columnName = "datevalue", dataType = DataType.DATE, canBeNull = true) private Date _dateValue; @DatabaseField(columnName = "numvalue", dataType = DataType.INTEGER, canBeNull = true) private int _numberValue; @DatabaseField(columnName = "langcode", dataType = DataType.STRING, width = 3, canBeNull = true) private String _langCode; @Override public String[] extensions(IDatabaseManager.DatabaseType type) { String tableName = TABLE_NAME; String contentTableName = Content.TABLE_NAME; if (IDatabaseManager.DatabaseType.MYSQL.equals(type)) { tableName = "`" + tableName + "`"; contentTableName = "`" + contentTableName + "`"; } return new String[]{"ALTER TABLE " + tableName + " " + "ADD CONSTRAINT " + TABLE_NAME + "_contid_fkey FOREIGN KEY (contentid) " + "REFERENCES " + contentTableName + " (contentid)"}; } public static final String TABLE_NAME = "contentsearch"; } /* CREATE TABLE contentsearch ( contentid character varying(16) NOT NULL, attrname character varying(30) NOT NULL, textvalue character varying(255), datevalue date, numvalue integer, langcode character varying(2), CONSTRAINT contentsearch_contentid_fkey FOREIGN KEY (contentid) REFERENCES contents (contentid) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ) */
[ "eugenio.santoboni@gmail.com" ]
eugenio.santoboni@gmail.com
877ea6c1414d6f282bbc35858dfb405a9b237aa8
b9d2c22a0dbde06fef018f109ebfc972cbd31d4f
/microservicecloud-api/src/main/java/com/atguigu/springcloud/service/DeptClientService.java
1f2f1001c56e70e91782bb589bb332a82cf7ce7a
[]
no_license
LuFengShan/microservicecloud
c78ee3445e2e68eca23d05af8675d7b4f23efd69
1429f7c21d6978ac2e87a4bc4ff28b59186c4cc1
refs/heads/master
2020-04-28T20:46:40.415976
2019-03-14T05:57:42
2019-03-14T05:57:42
175,555,365
0
0
null
null
null
null
UTF-8
Java
false
false
1,111
java
package com.atguigu.springcloud.service; import java.util.List; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import com.atguigu.springcloud.entities.Dept; /** * {@link FeignClient}:使用方法是,创建一个接口和一个注解 * 修改microservicecloud-api工程, 根据已经有的DeptClientService接口新建一个实现了FallbackFactory接口的类DeptClientServiceFallbackFactory */ //@FeignClient(value = "MICROSERVICECLOUD-DEPT") @FeignClient(value = "MICROSERVICECLOUD-DEPT", fallbackFactory = DeptClientServiceFallbackFactory.class) public interface DeptClientService { @RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET) public Dept get(@PathVariable("id") long id); @RequestMapping(value = "/dept/list", method = RequestMethod.GET) public List<Dept> list(); @RequestMapping(value = "/dept/add", method = RequestMethod.POST) public boolean add(Dept dept); }
[ "sunguangxu@aliyun.com" ]
sunguangxu@aliyun.com
a64208fa59ea4a5cfe30c2410264955638e10ff5
9a69971adb8166ad661d1fa3438802ab69a835f0
/src/main/java/org/cqu/edu/msc/annihilation/campephilus/module/core/service/info/EvaluationInfoService.java
23abef6349be058a08de1205735c7ca8fa9a62b5
[]
no_license
roclee81/campephilus
4fbcdfba980b5048f49d491e02f3a4893d3623e5
c9025921bb4ae71dfc5ae3ca6655e3a0b3445cf7
refs/heads/master
2020-09-13T15:43:57.061114
2019-11-18T12:47:03
2019-11-18T12:47:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
841
java
package org.cqu.edu.msc.annihilation.campephilus.module.core.service.info; import org.cqu.edu.msc.annihilation.campephilus.module.core.entity.info.EvaluationInfo; import org.cqu.edu.msc.annihilation.campephilus.module.instrument.form.InstrumentForm; import org.cqu.edu.msc.annihilation.common.dto.ResultDTO; /** * campephilus * * @author lx * @date 2019/9/17 * @email vinicolor.violet.end@gmail.com * Description: */ public interface EvaluationInfoService { /** * 接续instrumentForm数据并保存数据 * * @param instrumentForm instrumentForm */ void saveEvaluationInfoFromInstrumentForm(InstrumentForm instrumentForm); ResultDTO saveList(InstrumentForm instrumentForm); ResultDTO save(EvaluationInfo t); ResultDTO delete(EvaluationInfo t); ResultDTO update(EvaluationInfo t); }
[ "vinicolor.violet.end@gmail.com" ]
vinicolor.violet.end@gmail.com
263b4e62416ce05537815d10443fc59ec32ce308
235b821882839aafe94764114c78fe5e2bc657c9
/MyArrayIndexOutOfBoundsException.java
b52b0fd0e0c18ecb6952182b660f9230f2bb73c2
[]
no_license
whiteplaid/prog.kiev.ua-homework5c
17198a130f7478bac6cf94ecba64cc779d31f724
c5d859c5cc6a062eb797b3c135e61b00ca1c3eda
refs/heads/master
2020-04-01T20:41:41.900348
2018-10-18T11:55:54
2018-10-18T11:55:54
153,616,205
0
0
null
null
null
null
UTF-8
Java
false
false
754
java
package com.homework.groupofstudents; public class MyArrayIndexOutOfBoundsException extends ArrayIndexOutOfBoundsException{ /** * */ private static final long serialVersionUID = 1L; private String message; public MyArrayIndexOutOfBoundsException(String message) { super(); this.message = message; } public MyArrayIndexOutOfBoundsException() { super(); // TODO Auto-generated constructor stub } public MyArrayIndexOutOfBoundsException(int index) { super(index); // TODO Auto-generated constructor stub } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } @Override public String toString() { return "Exception [message= " + message + "]"; } }
[ "whitemailru@gmail.com" ]
whitemailru@gmail.com
f07705874eee316a71ba54ffed32b54d1019b972
e0660dd18d400cce0e4cd18860a4f489f16fa232
/src/main/java/com/ebs/springboot/config/JpaConfig.java
b15686c6c3b2b13dbe8f7652a0f7e5518b587bc2
[]
no_license
bllizz/spring-boot-example
7644a81707be81f686851f828f10dc387c0ac49a
1696796e959024adf37391522f0ed00a194bbf0c
refs/heads/master
2022-11-10T17:08:53.374693
2020-07-06T06:25:35
2020-07-06T06:25:35
274,818,869
0
0
null
null
null
null
UTF-8
Java
false
false
232
java
package com.ebs.springboot.config; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaAuditing; @Configuration @EnableJpaAuditing public class JpaConfig { }
[ "saga0601@gmail.com" ]
saga0601@gmail.com
7fd98a1dbebe83555bc331ab7b3697fc3ec935a8
2223d9016e4246f15db655473993733836a03e1a
/src/main/java/entity/Course.java
cfa8450897b5b0c295fa18982c9566cee508842b
[]
no_license
alexandertsukanov/Druzi
fd86024f21e3faf49b12c6a14e36036839c54ac5
2cc5a7900d38bf0eea95ca2527cba66bde3004aa
refs/heads/master
2021-06-10T08:23:18.036047
2017-01-17T08:09:47
2017-01-17T08:09:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,247
java
package entity; import javax.persistence.*; import java.io.Serializable; /** * * @author tsukanov * */ @Entity @Table(name = "course") public class Course extends AbstractFinishDateEntity<Long> implements Serializable, ProfileEntity { private static final long serialVersionUID = 4206575925684228495L; @Id @Column(unique = true, nullable = false) private Long id; @Column(length=60) private String name; @Column(length=60) private String school; // bi-directional many-to-one association to Profile @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "id_profile", nullable = false) private Profile profile; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getSchool() { return school; } public void setSchool(String school) { this.school = school; } public Profile getProfile() { return profile; } public void setProfile(Profile profile) { this.profile = profile; } @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((getFinishDate() == null) ? 0 : getFinishDate().hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((school == null) ? 0 : school.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (!(obj instanceof Course)) return false; Course other = (Course) obj; if (getFinishDate() == null) { if (other.getFinishDate() != null) return false; } else if (!getFinishDate().equals(other.getFinishDate())) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (school == null) { if (other.school != null) return false; } else if (!school.equals(other.school)) return false; return true; } }
[ "alexander.tsukanovvv@gmail.com" ]
alexander.tsukanovvv@gmail.com
a1db4de6c62befdb607d0bc48b93c98590c87247
6ca809356a979a07d61ef7abaa3acd0d9ec5516a
/src/ID/deadwood/Controller.java
bb0bd6bb05564f587ae880d03ab4aa1ad6a5d57e
[]
no_license
danebuckley/deadwoodbestgroup
9d6e0684cf0f3dbcb5cbfab93df68008e5a390c7
cdc1e2d1b43fca03e54021845befa510a7bdfd44
refs/heads/master
2023-01-21T15:15:13.845231
2020-12-05T07:57:20
2020-12-05T07:57:20
308,223,784
1
0
null
2020-12-05T07:54:49
2020-10-29T05:07:18
Java
UTF-8
Java
false
false
4,839
java
package ID.deadwood; import ID.deadwood.GameLoop; import ID.deadwood.UI; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.control.*; import javafx.scene.text.Text; import java.net.URL; import java.util.ResourceBundle; public class Controller implements Initializable { @FXML private Label pr_text; @FXML private Button op_one; @FXML private Button op_two; @FXML private Button op_three; @FXML private Button op_four; @FXML private Button op_five; @FXML private Button op_six; @FXML private Button op_seven; @FXML private Button op_eight; @FXML private Button op_nine; @FXML private DialogPane dialog_pane; @FXML private Label dialog_header; @FXML private Label dialog_description; @FXML private Label location_label; @FXML private Label role_label; @FXML private Label shots_label; @FXML private Label rank_label; @FXML private Label dollar_label; @FXML private Label credit_label; @FXML private Label sceneWrap_label; @FXML private Label complete_label; @FXML private Label totalDays_label; private UI ui = UI.getInstance(); private static Label promptText; private static Button[] promptButtons; private static DialogPane dialog; private static Label dialogHeader; private static Label dialogDescription; private static Label playerRoom; private static Label playerRole; private static Label playerShots; private static Label playerRank; private static Label playerDollars; private static Label playerCredits; private static Label scenesWrapped; private static Label daysComplete; private static Label totalDays; public void initialize(URL location, ResourceBundle resources) { promptText = pr_text; promptButtons = new Button[]{op_one, op_two, op_three, op_four, op_five, op_six, op_seven, op_eight, op_nine}; for (int i = 0; i < promptButtons.length; i++) { final int idx = i; System.out.println(idx); promptButtons[i].setOnAction(event -> { triggerButton(idx); }); } dialog = dialog_pane; Node nextNode = dialog.lookupButton(ButtonType.NEXT); if (nextNode instanceof Button) { Button nextButton = (Button) nextNode; nextButton.setOnAction(event -> { triggerButton("NEXT"); }); } dialogHeader = dialog_header; dialogDescription = dialog_description; dialog.setVisible(false); playerRoom = location_label; playerRole = role_label; playerShots = shots_label; playerRank = rank_label; playerDollars = dollar_label; playerCredits = credit_label; scenesWrapped = sceneWrap_label; daysComplete = complete_label; totalDays = totalDays_label; } public static void playerDisplay(String location, String role, int shots, int rank, int dollars, int credits) { playerRoom.setText(location); playerRole.setText(role); playerShots.setText(Integer.toString(shots)); playerRank.setText(Integer.toString(rank)); playerDollars.setText(Integer.toString(dollars)); playerCredits.setText(Integer.toString(credits)); } public static void gameStateDisplay(int wrapped, int complete, int total) { scenesWrapped.setText(Integer.toString(wrapped)); daysComplete.setText(Integer.toString(complete)); totalDays.setText(Integer.toString(total)); } public void triggerButton(int idx) { ui.triggerOptionEvent(idx); } public void triggerButton(String button) { dialog.setVisible(false); ui.triggerDialogEvent(button); } public static void optionPrompt(String descriptor, String[] actions) { // buttonActions = actions; promptText.setText(descriptor + "s"); for (int i = 0; i < promptButtons.length; i++) { boolean excluded = actions.length <= i; String textValue = excluded ? "" : actions[i]; promptButtons[i].setText(textValue); promptButtons[i].setDisable(excluded); } } public static void notifPrompt(String descriptor) { notifPrompt(descriptor, ""); } public static void notifPrompt(String descriptor, String detail) { dialog.setVisible(true); dialogHeader.setText(descriptor); dialogDescription.setText(detail); disableOptionButtons(); } public static void disableOptionButtons() { for (Button button : promptButtons) { button.setDisable(true); } } public static void enableOptionButtons() { for (Button button : promptButtons) { button.setDisable(false); } } }
[ "cullumi@wwu.edu" ]
cullumi@wwu.edu
77554ada037527c183a1b59704648de589929cbc
27a993f9097c6648d73b14adf7c46d671c414dea
/src/com/linkin/utils/SyncImageLoader.java
5ef25d959ebd3857dbbc5c71389cc3381114a3f2
[]
no_license
ipmarco-fire/Linkin_Libs
806523a7c0f4d30d01536ff8e52f90521e679c07
2665deef077d76ceab78a8e6a4e23ac5eceb7ab5
refs/heads/master
2020-05-20T10:59:58.720991
2014-01-10T01:57:36
2014-01-10T01:57:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,540
java
/** * 异步加载图片类 */ package com.linkin.utils; import java.io.File; import com.nostra13.universalimageloader.cache.disc.impl.TotalSizeLimitedDiscCache; import com.nostra13.universalimageloader.cache.disc.naming.HashCodeFileNameGenerator; import com.nostra13.universalimageloader.cache.memory.impl.LruMemoryCache; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; import com.nostra13.universalimageloader.core.assist.QueueProcessingType; import com.nostra13.universalimageloader.core.download.BaseImageDownloader; import com.nostra13.universalimageloader.utils.StorageUtils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.widget.ImageView; public class SyncImageLoader { ImageLoader imageLoader; DisplayImageOptions options; ImageLoaderConfiguration config; public SyncImageLoader(Context context) { File cacheDir = StorageUtils.getCacheDirectory(context); config = new ImageLoaderConfiguration.Builder(context) .memoryCacheExtraOptions(480, 800) // default = device screen dimensions .discCacheExtraOptions(480, 800, CompressFormat.PNG, 80, null) .threadPoolSize(5) // default .threadPriority(Thread.NORM_PRIORITY - 1) // default .tasksProcessingOrder(QueueProcessingType.FIFO) // default .denyCacheImageMultipleSizesInMemory() .memoryCache(new LruMemoryCache(10 * 1024 * 1024)) .memoryCacheSize(10 * 1024 * 1024) .memoryCacheSizePercentage(13) // default .discCache(new TotalSizeLimitedDiscCache(cacheDir,20 * 1024 * 1024)) // default //.discCacheSize(50 * 1024 * 1024) //.discCacheFileCount(5) .discCacheFileNameGenerator(new HashCodeFileNameGenerator()) // default .imageDownloader(new BaseImageDownloader(context)) // default .defaultDisplayImageOptions(DisplayImageOptions.createSimple()) // default .writeDebugLogs() .build(); options = new DisplayImageOptions.Builder() .cacheInMemory(true) .cacheOnDisc(true) .bitmapConfig(Bitmap.Config.RGB_565) .build(); imageLoader = ImageLoader.getInstance(); imageLoader.init(config); } public void displayImage(ImageView imgView, String url) { imageLoader.displayImage(url, imgView,options); } }
[ "84426590@qq.com" ]
84426590@qq.com
3056c2c5573bad214ad17fcdc63bc98b5d828d88
4c536a08e7de713a5b4f1d08542f86bf725f93f2
/employee/src/main/java/com/employee/repository/EmployeeRepository.java
71c799971d5e02d95d02cd74b20fead829be23d8
[]
no_license
Akanksha-sep/spring-boot-demo
252fabecad072800e9511098dbe82d7ae8cd722f
764992761202f88466ab1d511ea47e068743f907
refs/heads/main
2023-01-23T02:24:19.525307
2020-12-02T16:23:36
2020-12-02T16:23:36
317,918,211
0
0
null
null
null
null
UTF-8
Java
false
false
329
java
package com.employee.repository; import com.employee.model.Employee; import org.springframework.cache.annotation.Cacheable; import org.springframework.data.repository.CrudRepository; /** * Created by Akanksha.Singh1 on 22-11-2020 */ public interface EmployeeRepository extends CrudRepository<Employee, String> { }
[ "noreply@github.com" ]
noreply@github.com
7a6a7ecb28f7ad2333ea9330c96b009cd2096c06
ddfa39e1d0051baa20afce102226248abb0ab8db
/src/main/java/specificexceptions/DroneNotEnoughEnergyException.java
89dc1930075b7347654023f70ef771bb39a43f57
[]
no_license
Bineryss/Drone-Factory
38088f03e03ba09755b67e1897d8518e391699b7
71e0bf88396fa233533faae4508bf82cc7af3256
refs/heads/master
2020-04-01T13:31:14.302006
2019-10-17T20:12:56
2019-10-17T20:12:56
153,255,919
0
0
null
null
null
null
UTF-8
Java
false
false
199
java
package specificexceptions; public class DroneNotEnoughEnergyException extends Exception { public DroneNotEnoughEnergyException() { super("Die Drone hat nicht genug Energie!"); } }
[ "binerys@outlook.de" ]
binerys@outlook.de
b3b5552c26a1ace47ac7e558201d8ed996b126cc
dac00d08886039c83bde1124798dcdfd2666d953
/MyChess/src/myPackage/Figure.java
980bd3445994a6b2512af247fc17f0687387a3d3
[]
no_license
MaestroAN/Anton-HelloIT
7a680e24e5d32e1484d3b765f378427eef40953b
413a50f77a68d257f3253b9c95c24563c72f512e
refs/heads/master
2020-03-30T21:01:01.804697
2018-10-28T16:40:29
2018-10-28T16:40:29
151,613,468
0
0
null
null
null
null
UTF-8
Java
false
false
334
java
package myPackage; public abstract class Figure { boolean isWhite; public Figure(boolean isWhite) { this.isWhite = isWhite; } public boolean isWhite() { return this.isWhite; } abstract public boolean checkTheoreticalCorrectness(Move move, Cell to); public abstract String toString(); }
[ "maestro113an@gmail.com" ]
maestro113an@gmail.com
a342925f48b5cbfbedddf3a0cccc1eb80c2ad60d
4585727f326d14e2f96489b3c32879422b28362c
/src/main/java/com/rotterdam/service/PeriodService.java
5318fb59bc5f38d522b490c4739ac77c4db191a7
[ "Apache-2.0" ]
permissive
vasax32/rotterdam
88d675ecc602c26b7c88dfa072d546bcf7e845a7
5c4d4c45301168cdbf5214c81dbe7d1128ea0662
refs/heads/master
2021-01-01T05:50:05.371547
2015-03-25T14:41:44
2015-03-25T14:41:44
29,427,316
0
1
null
null
null
null
UTF-8
Java
false
false
2,031
java
package com.rotterdam.service; import com.rotterdam.dto.StartEndDto; import com.rotterdam.model.dao.PeriodDao; import com.rotterdam.model.entity.Period; import com.rotterdam.model.entity.PeriodType; import com.rotterdam.model.entity.User; import com.rotterdam.tools.DateTools; import com.rotterdam.tools.PeriodDefiner; import org.springframework.transaction.annotation.Transactional; import javax.inject.Inject; import javax.inject.Named; import java.util.Date; import java.util.List; /** * Created by vasax32 on 21.01.15. */ @Named public class PeriodService { @Inject private PeriodDao periodDao; @Inject private PeriodDefiner periodDefiner; @Transactional public void makePeriodCheck(User user){ //now we need to deal with period check Date now = new Date(); Period period = periodDao.selectByDateBetweenAndUser(now, user.getId()); if(period == null){ //now we need to create new period period = new Period(); period.setUser(user); //period.setPeriodType(PeriodType.FOURWEEK); // setting this by default, can be changed in settings // setPeriodDateFourWeek(period, user.getId()); setPeriodData(period, PeriodType.FOURWEEK); period = periodDao.insert(period); //now we need calculate time-for-time for previous period } else { //every thing is ok } } private void setPeriodData(Period period, PeriodType periodType){ period.setPeriodType(periodType); List<Date> startingDays = periodDefiner.getStartingDaysOfWeeksOfCurrentPeriod(new Date(), periodType); period.setStartDate(startingDays.get(0)); int weekCount = startingDays.size(); period.setEndDate( DateTools.getDateOf7DayAfter( startingDays.get(weekCount - 1))); } public StartEndDto getAvailableDates(long id) { return periodDao.selectMinMaxDatesByUser(id); } }
[ "h7k5@yandex.ua" ]
h7k5@yandex.ua
3d680cc6af197aa927165d83e2a34047dad98f6b
f5c35f22a309934184f8e03eff40f4659b28dfa2
/springboot-mybatis-redis/src/main/java/com/zhangjie/springboot/conf/MyBatisConfig.java
949e27ba51800390c0160342e2250137560cdafd
[]
no_license
SolitaryZJ/x.cloud
ab375b5a1e345dd1898e7be055cf7cbd156918bd
c18afa3328d02cefb69d9d0090e26f2eb6ee7a6b
refs/heads/master
2021-04-12T08:29:39.265465
2017-06-16T07:49:41
2017-06-16T07:49:41
94,519,214
0
0
null
null
null
null
UTF-8
Java
false
false
1,447
java
package com.zhangjie.springboot.conf; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.tomcat.jdbc.pool.DataSource; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.SqlSessionTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.annotation.TransactionManagementConfigurer; /** * datasource生成sqlSessionFactoryBean * @author Administrator * */ public class MyBatisConfig implements TransactionManagementConfigurer{ @Autowired private DataSource dataSource; @Override public PlatformTransactionManager annotationDrivenTransactionManager() { return new DataSourceTransactionManager(dataSource); } //创建SqlSessionFactoryBean @Bean(name = "sqlSessionFactory") public SqlSessionFactory sqlSessionFactoryBean(){ SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); bean.setDataSource(dataSource); try { return bean.getObject(); } catch (Exception e) { e.printStackTrace(); throw new RuntimeException(e); } } @Bean public SqlSessionTemplate sqlSessionTemplate(SqlSessionFactory sqlSessionFactory){ return new SqlSessionTemplate(sqlSessionFactory); } }
[ "noreply@github.com" ]
noreply@github.com
b6ebabe02978476f4b804ef94671aea27bc431ba
6e2bcf5403f183aea388b8537a8252b16741f701
/src/ProxyImpl.java
c25be0b3de2e229d51089a3c1cd5746263d18003
[]
no_license
ichannels/practicaSMA2
9c93c4a4627643ce48e603b70474361f2d394e4c
5ab7176e966af662593d837621afd335443cd4a3
refs/heads/master
2020-04-14T00:24:17.617569
2019-01-13T15:52:56
2019-01-13T15:52:56
163,532,491
0
0
null
null
null
null
UTF-8
Java
false
false
273
java
public class ProxyImpl implements ProxyInterface { private Proxy proxy; @Override public void proxyTo(String uri) { } public Proxy getProxy() { return proxy; } public void setProxy(Proxy proxy) { this.proxy = proxy; } }
[ "ignacio.canalesmontero@gmail.com" ]
ignacio.canalesmontero@gmail.com
d1d9484e902cd002dada87d2f4d9e8f1804cf85b
e0cbb0192ad240664722d5d79a065581db747146
/Java_06/src/com/biz/classes/string/String_04.java
87db06b43c8b43be1fa3e0b31015fade6fef7b04
[]
no_license
freeswoo/javaworks
82e81f25a4eab916f014b08e0ad03832e5367979
01933265387acc6965655c4f1d63d2c9b55a5b42
refs/heads/master
2020-08-04T21:39:40.413454
2019-11-04T07:43:25
2019-11-04T07:43:25
212,286,883
2
0
null
null
null
null
UTF-8
Java
false
false
986
java
package com.biz.classes.string; public class String_04 { public static void main(String[] args) { String strNation = "Republic of Korea"; String strSearch = "r"; int intLength = strNation.length(); // 5번째 위치부터 문자열을 잘라서 보여달라 strNation.substring(5); // 5번째 위치부터 // 8번 앞까지 문자열을 잘라서 보여달라 strNation.substring(5,8); String strAt = strNation.substring(0,1); if(strAt.equalsIgnoreCase(strSearch)) System.out.println("0번째 위치에서 찾음"); strAt = strNation.substring(1,2); if(strAt.equalsIgnoreCase(strSearch)) System.out.println("1번째 위치에서 찾음"); strAt = strNation.substring(2,3); if(strAt.equalsIgnoreCase(strSearch)) System.out.println("2번째 위치에서 찾음"); strAt = strNation.substring(3,4); if(strAt.equalsIgnoreCase(strSearch)) System.out.println("3번째 위치에서 찾음"); } }
[ "freeswoo@naver.com" ]
freeswoo@naver.com
3bd06371c8800b0ade94049e79a795bef4863b19
305ec0d887ffcc475100cd95912d9903893c9632
/src/br/com/portalnet/model/MuralRecados.java
61f2f058142d03ce5626e5495d6be276e5c324e6
[]
no_license
marcosene/PortalNET
5bd2d5d07f2cebcd610011df4522ddee0edbbf0c
40057f45c7b36a5a90b874aa06fa917c2e051baf
refs/heads/master
2021-01-20T00:58:41.705667
2015-06-02T03:47:44
2015-06-02T03:47:44
36,706,232
0
0
null
null
null
null
UTF-8
Java
false
false
3,244
java
package br.com.portalnet.model; import java.io.Serializable; import java.util.Calendar; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.validation.constraints.NotNull; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.NotEmpty; @Entity @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public class MuralRecados implements Serializable, Comparable<MuralRecados> { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private Long id; @NotEmpty @Length(max=64) private String assunto; @NotEmpty @Length(max=1024) private String descricao; @NotNull @Temporal(TemporalType.TIMESTAMP) private Calendar dataRegistro; private boolean flagAssuntoTrabalho; @ManyToOne @JoinColumn(name="ColaboradorAutor_id", referencedColumnName="id") private Colaborador colaboradorAutor; @ManyToOne @JoinColumn(name="ColaboradorDest_id", referencedColumnName="id") private Colaborador colaboradorDest; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getAssunto() { return assunto; } public void setAssunto(String assunto) { this.assunto = assunto.trim(); } public String getDescricao() { return descricao; } public void setDescricao(String descricao) { this.descricao = descricao.trim(); } public Calendar getDataRegistro() { return dataRegistro; } public void setDataRegistro(Calendar dataRegistro) { this.dataRegistro = dataRegistro; } public boolean isFlagAssuntoTrabalho() { return flagAssuntoTrabalho; } public void setFlagAssuntoTrabalho(boolean flagAssuntoTrabalho) { this.flagAssuntoTrabalho = flagAssuntoTrabalho; } public Colaborador getColaboradorAutor() { return colaboradorAutor; } public void setColaboradorAutor(Colaborador colaboradorAutor) { this.colaboradorAutor = colaboradorAutor; } public Colaborador getColaboradorDest() { return colaboradorDest; } public void setColaboradorDest(Colaborador colaboradorDest) { this.colaboradorDest = colaboradorDest; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MuralRecados other = (MuralRecados) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } public int compareTo(MuralRecados o) { return this.getDataRegistro().compareTo(o.getDataRegistro()); } }
[ "marcoaurelio.sene@gmail.com" ]
marcoaurelio.sene@gmail.com
29efe1b744b1ad088b394cc5a6712452550f19fe
0989ac766fe06c6116919b3b1e9bd03300d42042
/_2014_2015/src/acslSpelling.java
ab49239eb9550845236dea4dc31f91f0a392b6a0
[]
no_license
wonup2/ACSL
7d18d0f89f3c7b52a05e917162ec6c3363e26903
935fa22dc9b8178e45b5f314b6c0c989952df57a
refs/heads/master
2023-09-01T05:18:47.230803
2023-08-21T22:57:13
2023-08-21T22:57:13
199,730,824
0
0
null
null
null
null
UTF-8
Java
false
false
2,854
java
//package _201415; import java.io.*; import java.util.*; public class acslSpelling { public static void main(String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); for(int i = 0; i<5; i++){ String input = in.readLine(); System.out.println(pluralify(input)); } for(int i = 0; i<5; i++){ String[] input = in.readLine().split(" "); System.out.println(suffixAdd(input[0], input[1])); } } public static String pluralify (String word){ int n = word.length(); List<String> rule1a = Arrays.asList("ch", "sh"); List<Character> rule1b = Arrays.asList('s', 'x', 'z'); if(rule1a.contains(word.substring(n-2)) || rule1b.contains(word.charAt(n-1))){ return word + "es"; } List<Character> vowels = Arrays.asList('a','e','i','o','u'); if(word.charAt(n-1)=='y'){ if(vowels.contains(word.charAt(n-2))){ return word + "s"; } else return word.substring(0, n-1) + "ies"; } if(word.charAt(n-1)=='f'){ return word.substring(0, n-1) + "ves"; } if(word.substring(n-2).equals("fe")){ return word.substring(0, n-2) + "ves"; } if (word.charAt(n - 1) == 'o'){ if(vowels.contains(word.charAt(n - 2))){ return word + "s"; } else return word + "es"; } return word + "s"; } public static String suffixAdd (String word, String suffix){ List<Character> vowels = Arrays.asList('a','e','i','o','u'); int n = word.length(); if(word.charAt(n-1) == 'e' && vowels.contains(suffix.charAt(0))){ return word.substring(0, n-1) + suffix; } if(suffix.charAt(0)!='i' && word.charAt(n-1)=='y'){ return word.substring(0, n-1) + "i" + suffix; } /* Double a final single consonant when a single vowel precedes the consonant */ if(vowels.contains(suffix.charAt(0))){ int i = n-2; int count = 0; while(i>=0 && vowels.contains(word.charAt(i))){ count++; i--; } if (!vowels.contains(word.charAt(n - 1)) && count==1) { return word + word.charAt(n-1) + "" + suffix; } } return word + suffix; } } /* Sample Input: church redeploy candy midwife rodeo guide ance like ness pity ful occupy ing occur ence Test Input: suffix contest scarf raspberry auto beauty ful compute ing bookkeep ing differ ence amuse ment */
[ "wonup2@hotmail.com" ]
wonup2@hotmail.com
153f9ee9a3c8c012eaa96a6606a6979499ee5136
374262f8ec2050850fe3caac93dd1a29befbf950
/aws-java-sdk-budgets/src/main/java/com/amazonaws/services/budgets/model/Notification.java
41e1a6293db5168a8b7e5c6dceb4fb7cece246f9
[ "Apache-2.0" ]
permissive
kdheerendra/aws-sdk-java
454ea7f92a3229d264ae9d34a678ca46b9253dcd
36bb9b750d04dc5871d6191bce101540c858986a
refs/heads/master
2021-04-28T22:01:51.477984
2016-12-31T19:33:43
2016-12-31T19:33:43
77,733,717
0
0
null
2016-12-31T09:21:30
2016-12-31T09:21:29
null
UTF-8
Java
false
false
6,510
java
/* * Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.budgets.model; import java.io.Serializable; /** * Notification model. Each budget may contain multiple notifications with different settings. */ public class Notification implements Serializable, Cloneable { private String notificationType; private String comparisonOperator; private Double threshold; /** * @param notificationType * @see NotificationType */ public void setNotificationType(String notificationType) { this.notificationType = notificationType; } /** * @return * @see NotificationType */ public String getNotificationType() { return this.notificationType; } /** * @param notificationType * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationType */ public Notification withNotificationType(String notificationType) { setNotificationType(notificationType); return this; } /** * @param notificationType * @see NotificationType */ public void setNotificationType(NotificationType notificationType) { this.notificationType = notificationType.toString(); } /** * @param notificationType * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationType */ public Notification withNotificationType(NotificationType notificationType) { setNotificationType(notificationType); return this; } /** * @param comparisonOperator * @see ComparisonOperator */ public void setComparisonOperator(String comparisonOperator) { this.comparisonOperator = comparisonOperator; } /** * @return * @see ComparisonOperator */ public String getComparisonOperator() { return this.comparisonOperator; } /** * @param comparisonOperator * @return Returns a reference to this object so that method calls can be chained together. * @see ComparisonOperator */ public Notification withComparisonOperator(String comparisonOperator) { setComparisonOperator(comparisonOperator); return this; } /** * @param comparisonOperator * @see ComparisonOperator */ public void setComparisonOperator(ComparisonOperator comparisonOperator) { this.comparisonOperator = comparisonOperator.toString(); } /** * @param comparisonOperator * @return Returns a reference to this object so that method calls can be chained together. * @see ComparisonOperator */ public Notification withComparisonOperator(ComparisonOperator comparisonOperator) { setComparisonOperator(comparisonOperator); return this; } /** * @param threshold */ public void setThreshold(Double threshold) { this.threshold = threshold; } /** * @return */ public Double getThreshold() { return this.threshold; } /** * @param threshold * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withThreshold(Double threshold) { setThreshold(threshold); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getNotificationType() != null) sb.append("NotificationType: ").append(getNotificationType()).append(","); if (getComparisonOperator() != null) sb.append("ComparisonOperator: ").append(getComparisonOperator()).append(","); if (getThreshold() != null) sb.append("Threshold: ").append(getThreshold()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Notification == false) return false; Notification other = (Notification) obj; if (other.getNotificationType() == null ^ this.getNotificationType() == null) return false; if (other.getNotificationType() != null && other.getNotificationType().equals(this.getNotificationType()) == false) return false; if (other.getComparisonOperator() == null ^ this.getComparisonOperator() == null) return false; if (other.getComparisonOperator() != null && other.getComparisonOperator().equals(this.getComparisonOperator()) == false) return false; if (other.getThreshold() == null ^ this.getThreshold() == null) return false; if (other.getThreshold() != null && other.getThreshold().equals(this.getThreshold()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNotificationType() == null) ? 0 : getNotificationType().hashCode()); hashCode = prime * hashCode + ((getComparisonOperator() == null) ? 0 : getComparisonOperator().hashCode()); hashCode = prime * hashCode + ((getThreshold() == null) ? 0 : getThreshold().hashCode()); return hashCode; } @Override public Notification clone() { try { return (Notification) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }
[ "" ]
e7e706d1cdd3fed78739215cdbbf5ee267680880
d483476b6d7f1be19953235b3a8d3b9823eb7d22
/NewsPaperApp/app/src/main/java/com/maryam/newspaperapp/MainActivity.java
e6e87a2002a0298c6b3e2211f7722c80a605514b
[]
no_license
maryamismailova/androidProjects
aa7f867ab098969cb43b806b21a555980d90ab3f
13d1b322fd07db06ba2e9d94d98a60f1206c68e4
refs/heads/master
2020-04-25T04:32:00.738272
2019-02-25T13:51:29
2019-02-25T13:51:29
172,513,555
0
0
null
null
null
null
UTF-8
Java
false
false
6,762
java
package com.maryam.newspaperapp; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteStatement; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { ListView newsList; ArrayList<String> titles=new ArrayList<>(); ArrayList<String> articleURLs=new ArrayList<>(); ArrayAdapter<String> arrayAdapter; SQLiteDatabase database; public class DownloadIdTask extends AsyncTask<String, String, Void> { @Override protected Void doInBackground(String... strings) { String data=""; JSONArray jsonArray=null; try { //READ IDs data=readURL(strings[0]); jsonArray=new JSONArray(data); int nbArticles=20; if(jsonArray.length()<nbArticles)nbArticles=jsonArray.length(); for(int i=0;i<nbArticles;i++){ //READ TITLE&URL Log.i("Article ID", jsonArray.getString(i)); String articleId=jsonArray.getString(i); String articleObject=readURL(" https://hacker-news.firebaseio.com/v0/item/"+articleId+".json?print=pretty"); JSONObject jsonObject=new JSONObject(articleObject); if(!jsonObject.isNull("title") && !jsonObject.isNull("url")) { // Log.i("Title", jsonObject.getString("title")); // Log.i("URL", jsonObject.getString("url")); // READ HTML String pageData = readURL(jsonObject.getString("url")); String sqlQuery="INSERT INTO news (title, data) VALUES ('"+jsonObject.getString("title")+"' , '"+pageData+"' )"; // database.execSQL("INSERT INTO news (title, data) VALUES (" + jsonObject.getString("title") + ", " + // pageData + ")"); // SQLiteStatement statement=new SQLiteStatement(database, "INSERT INTO news (title, data) VALUES (?, ?, ?)", null); SQLiteStatement statement=database.compileStatement("INSERT INTO news (title, data) VALUES (?, ?)"); statement.bindString(1, jsonObject.getString("title")); statement.bindString(2, pageData); statement.execute(); // publishProgress(sqlQuery); } } } catch (JSONException e) { e.printStackTrace(); } return null; } @Override protected void onProgressUpdate(String... values) { super.onProgressUpdate(values); // Log.i("SQL", values[0]); database.execSQL(values[0]); } @Override protected void onPostExecute(Void aVoid) { super.onPostExecute(aVoid); Cursor c=database.rawQuery("SELECT * FROM news", null); c.moveToFirst(); do{ int titleIndex=c.getColumnIndex("title"); titles.add(c.getString(titleIndex)); arrayAdapter.notifyDataSetChanged(); }while(c.moveToNext()); } protected String readURL(String urlString){ URL url; URLConnection connection; String data=""; try { //READ IDs url = new URL(urlString); connection = url.openConnection(); connection.connect(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream())); String read; while ((read = bufferedReader.readLine()) != null) { data += read; } }catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return data; } } public void setupData(){ Cursor c=database.rawQuery("SELECT * FROM news", null); if(c==null || c.getCount()==0){ //need to download the data! Log.i("Database", "EMPTY"); try { String url="https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty"; DownloadIdTask task=new DownloadIdTask(); task.execute(url); }catch (Exception e){ e.printStackTrace(); } }else{ Log.i("SQL", "Access data"); c.moveToFirst(); do{ int titleIndex=c.getColumnIndex("title"); titles.add(c.getString(titleIndex)); arrayAdapter.notifyDataSetChanged(); }while(c.moveToNext()); } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); newsList=findViewById(R.id.newsList); arrayAdapter=new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, titles); newsList.setAdapter(arrayAdapter); database=this.openOrCreateDatabase("News", MODE_PRIVATE, null); // database.execSQL("DELETE FROM news"); database.execSQL("CREATE TABLE IF NOT EXISTS news (title VARCHAR, data VARCHAR)"); setupData(); newsList.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Cursor c=database.rawQuery("SELECT * FROM news", null); int textIndex=c.getColumnIndex("data"); c.move(position+1); Log.i("NewsSelected", ""+position); String pageText=c.getString(textIndex); Intent intent=new Intent(getApplicationContext(),Main2Activity.class ); intent.putExtra("pageText", pageText); startActivity(intent); } }); } }
[ "ismailova.maryam@gmail.com" ]
ismailova.maryam@gmail.com
5da0fcd7b82aa5cd75df945f37988db6e884b9c7
4a5e792bda84eea4218f588aa350a5e127de98e0
/Odontolog/test/com/ingsoft/odontolog/unit/ListaDeTurnos_UT.java
8619f664b2b6944edda8034fbe047959cd3bf4d9
[]
no_license
nicolasgoldman07/sistema_consultorio
23fbe44e9534ced347d223c8d8225a7ea7082af1
7e3a0e3a514ed347cb3ca6bb0770061957b9505d
refs/heads/master
2020-03-17T13:01:28.426609
2019-12-16T18:53:30
2019-12-16T18:53:30
133,613,920
0
0
null
null
null
null
UTF-8
Java
false
false
180
java
package com.ingsoft.odontolog.unit; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class ListaDeTurnos_UT { }
[ "39325543+odontolog@users.noreply.github.com" ]
39325543+odontolog@users.noreply.github.com
9b999e1ab6300cde1abaddd4baf2df92ea81d93a
430ad2845fcf33a9147d79f7bcda86429398e75c
/EX4/FOLDER_2_SRC/TYPES/TYPE_INT.java
d5ce3d7c696130ccea11f185cd8cc305a19d9434
[]
no_license
yuvalyehudab/COMPILATION
ec1a6414d25bbe4438250a95b48965ec0c4f4060
859065e2464f9700a14d7c48b4588f49a3240df3
refs/heads/master
2022-04-07T08:12:55.227520
2020-03-08T20:39:45
2020-03-08T20:39:45
221,204,761
0
0
null
null
null
null
UTF-8
Java
false
false
752
java
package TYPES; public class TYPE_INT extends TYPE { /**************************************/ /* USUAL SINGLETON IMPLEMENTATION ... */ /**************************************/ public static TYPE_INT instance = new TYPE_INT(); /*****************************/ /* PREVENT INSTANTIATION ... */ /*****************************/ protected TYPE_INT() {super("int");} public boolean isBool(){return true;} public boolean canAssign(TYPE t){return (t == instance || t == TYPE_ERROR.instance);} /******************************/ /* GET SINGLETON INSTANCE ... */ /******************************/ public static TYPE_INT getInstance() { if (instance == null) { instance = new TYPE_INT(); instance.name = "int"; } return instance; } }
[ "yuvalyehudab@mail.tau.ac.il" ]
yuvalyehudab@mail.tau.ac.il
36f1f733fb622baccb8c6bd43608fb7bde1d0c80
ef95a43e6ce0813848ed20a009ea2cba9bbd72b7
/Intent02/app/src/test/java/com/example/intent02/ExampleUnitTest.java
08fdbc8d20de8176d00cc42f925ab2cf3bad0f11
[]
no_license
JAlexisH254/res22-08
011caabad720c62324b2b93fe56df0ae0434220e
00769fc41272f2f0f0a00ffec9f5711ad73bebec
refs/heads/master
2020-07-09T07:12:23.800017
2019-12-14T02:58:23
2019-12-14T02:58:23
203,912,427
0
0
null
null
null
null
UTF-8
Java
false
false
381
java
package com.example.intent02; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } }
[ "harry_23_54@outlook.com" ]
harry_23_54@outlook.com
8ebe5eddd6f1e6518a1fb6992da701f24c77a17c
b15e201c34088796b2ab7f258e548c472c31056b
/src/main/java/org/jtheque/books/persistence/dao/able/IDaoBooks.java
80a041e4a20d88a91135a256fe321b233d65aadf
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
wichtounet/jtheque-books-module
204197adc9dfcd5fd47a29720df6e95b577b0367
d70df2b50ae5b8ba14fc7d559dd6519dcbc1345d
refs/heads/master
2020-12-24T13:52:14.792967
2010-07-05T14:41:39
2010-07-05T14:41:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,656
java
package org.jtheque.books.persistence.dao.able; /* * Copyright JTheque (Baptiste Wicht) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import org.jtheque.books.persistence.od.able.Book; import org.jtheque.core.managers.persistence.able.JThequeDao; import java.util.Collection; /** * A DAO for books specification. * * @author Baptiste Wicht */ public interface IDaoBooks extends JThequeDao { String TABLE = "T_BOOKS"; String BOOKS_AUTHOR_TABLE = "T_AUTHORS_BOOKS"; /** * Return all the books. * * @return A List containing all the books. */ Collection<Book> getBooks(); /** * Save the book. * * @param book The book to save. */ void save(Book book); /** * Create the book. * * @param book The book to create. */ void create(Book book); /** * Delete the book. * * @param book The book to delete. * * @return true if the object is deleted else false. */ boolean delete(Book book); /** * Create an empty book. * * @return An empty book, not persisted. */ Book createBook(); }
[ "baptistewicht@gmail.com" ]
baptistewicht@gmail.com
54abf7c89c8185adccbe165b414c7469b0873bb7
3f40baf86ac3de97bb34674289adabc4e6ee8f13
/project-1/src/main/java/com/revature/models/ReimbursementForm.java
594ddd25759b7257a7bfe834a78fb6fda33fcc1b
[]
no_license
210222-reston-java-msa/project-1-xStaples
5ce0ae4037e682d98d65128c19e4cd18b90eb9e3
7449879d6f5f8d352f2dd41bea7ed823c9b075c0
refs/heads/main
2023-03-23T06:58:15.774792
2021-03-19T13:26:11
2021-03-19T13:26:11
343,495,582
0
0
null
null
null
null
UTF-8
Java
false
false
4,993
java
package com.revature.models; import java.time.LocalDateTime; public class ReimbursementForm { private int id; private int amount; private LocalDateTime submitTime; private LocalDateTime resolveTime; private String description; private Object receipt; private int authorId; private int resolverId; private int statusId; private int typeId; public ReimbursementForm() { super(); } public ReimbursementForm(int amount, String description, int authorId, int statusId, int typeId){ this.amount = amount; this.description = description; this.authorId = authorId; this.statusId = statusId; this.typeId = typeId; } public ReimbursementForm(int id, int amount, LocalDateTime submitTime, LocalDateTime resolveTime, String description, Object receipt, int authorId, int resolverId, int statusId, int typeId) { super(); this.id = id; this.amount = amount; this.submitTime = submitTime; this.resolveTime = resolveTime; this.description = description; this.receipt = receipt; this.authorId = authorId; this.resolverId = resolverId; this.statusId = statusId; this.typeId = typeId; } public ReimbursementForm(int amount, LocalDateTime submitTime, LocalDateTime resolveTime, String description, Object receipt, int authorId, int resolverId, int statusId, int typeId) { super(); this.amount = amount; this.submitTime = submitTime; this.resolveTime = resolveTime; this.description = description; this.receipt = receipt; this.authorId = authorId; this.resolverId = resolverId; this.statusId = statusId; this.typeId = typeId; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getAmount() { return amount; } public void setAmount(int amount) { this.amount = amount; } public LocalDateTime getSubmitTime() { return submitTime; } public void setSubmitTime(LocalDateTime submitTime) { this.submitTime = submitTime; } public LocalDateTime getResolveTime() { return resolveTime; } public void setResolveTime(LocalDateTime resolveTime) { this.resolveTime = resolveTime; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Object getReceipt() { return receipt; } public void setReceipt(Object receipt) { this.receipt = receipt; } public int getAuthorId() { return authorId; } public void setAuthorId(int authorId) { this.authorId = authorId; } public int getResolverId() { return resolverId; } public void setResolverId(int resolverId) { this.resolverId = resolverId; } public int getStatusId() { return statusId; } public void setStatusId(int statusId) { this.statusId = statusId; } public int getTypeId() { return typeId; } public void setTypeId(int typeId) { this.typeId = typeId; } @Override public String toString() { return "ReimbursementRequest [id=" + id + ", amount=" + amount + ", submitTime=" + submitTime + ", resolveTime=" + resolveTime + ", description=" + description + ", receipt=" + receipt + ", authorId=" + authorId + ", resolverId=" + resolverId + ", statusId=" + statusId + ", typeId=" + typeId + "]"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + amount; result = prime * result + authorId; result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + id; result = prime * result + ((receipt == null) ? 0 : receipt.hashCode()); result = prime * result + ((resolveTime == null) ? 0 : resolveTime.hashCode()); result = prime * result + resolverId; result = prime * result + statusId; result = prime * result + ((submitTime == null) ? 0 : submitTime.hashCode()); result = prime * result + typeId; return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ReimbursementForm other = (ReimbursementForm) obj; if (amount != other.amount) return false; if (authorId != other.authorId) return false; if (description == null) { if (other.description != null) return false; } else if (!description.equals(other.description)) return false; if (id != other.id) return false; if (receipt == null) { if (other.receipt != null) return false; } else if (!receipt.equals(other.receipt)) return false; if (resolveTime == null) { if (other.resolveTime != null) return false; } else if (!resolveTime.equals(other.resolveTime)) return false; if (resolverId != other.resolverId) return false; if (statusId != other.statusId) return false; if (submitTime == null) { if (other.submitTime != null) return false; } else if (!submitTime.equals(other.submitTime)) return false; if (typeId != other.typeId) return false; return true; } }
[ "daltonspencer112@gmail.com" ]
daltonspencer112@gmail.com
95ca7150117abbdf52ad9f06841ca5b5e833a2a5
e10b6d7502b89d252f0340e885343c1107fc8797
/src/main/java/com/huawei/ibn/model/l3/CidrBlock.java
8bc24950578d691b4a2364c247ebe5145a43172f
[]
no_license
oferby/ibn
bf5d9a0466e3ffd867ba75235d7a46a2a99e6b7e
163d943550493ccf6f3aed01517796c25d7a011a
refs/heads/master
2021-04-30T01:27:05.349985
2018-05-22T15:02:14
2018-05-22T15:02:14
121,484,052
0
0
null
null
null
null
UTF-8
Java
false
false
612
java
package com.huawei.ibn.model.l3; import com.huawei.ibn.model.common.GraphNode; import org.apache.commons.net.util.SubnetUtils; public class CidrBlock extends GraphNode{ private SubnetUtils utils; public CidrBlock() { } public CidrBlock(String cidr) { this.utils = new SubnetUtils(cidr); } public String getCidr() { return utils.getInfo().getCidrSignature(); } public void setCidr(String cidr) { this.utils = new SubnetUtils(cidr); } public boolean isInRange(String ipAddress) { return utils.getInfo().isInRange(ipAddress); } }
[ "shtoza00" ]
shtoza00
f372e8077922b7c14b384c3601214931f086836e
c4f0c58c3057d4b5b22f0fa351de96433cfd4408
/FileExporler/FileExporler/app/src/main/java/com/bgsltd/filecommande/utils/DataUtils.java
47794d435122a6125f85e70956a550dae9b66b4d
[]
no_license
aloha1/File_Command_2
92a86db112f7464e10327bfbb0f3c47e99bb99de
f818f11ee45bc3fa72de09ed2491ee64a961d812
refs/heads/master
2021-09-06T15:50:55.105668
2018-02-08T07:12:56
2018-02-08T07:12:56
110,736,289
0
0
null
null
null
null
UTF-8
Java
false
false
5,842
java
package com.bgsltd.filecommande.utils; import com.bgsltd.filecommande.ui.drawer.Item; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Created by arpitkh996 on 20-01-2016. */ //Central data being used across activity,fragments and classes public class DataUtils { public static ArrayList<String> hiddenfiles=new ArrayList<>(), gridfiles=new ArrayList<>(), listfiles=new ArrayList<>(),history=new ArrayList<>(); public static List<String> storages=new ArrayList<>(); public static final String DRIVE = "drive", SMB = "smb", BOOKS = "books", HISTORY = "Table1", HIDDEN = "Table2", LIST = "list", GRID = "grid"; public static final int DELETE = 0, COPY = 1, MOVE = 2, NEW_FOLDER = 3, RENAME = 4, NEW_FILE = 5, EXTRACT = 6, COMPRESS = 7; public static ArrayList<Item> list=new ArrayList<>(); public static ArrayList<String[]> servers=new ArrayList<>(),books=new ArrayList<>(),accounts=new ArrayList<>(); static DataChangeListener dataChangeListener; public static int containsServer(String[] a){ return contains(a,servers); } public static int containsBooks(String[] a){ return contains(a,books); } public static int containsAccounts(String[] a){ return contains(a,accounts); } public static int containsAccounts(String a){ return contains(a,accounts); } public static void clear(){ hiddenfiles=new ArrayList<>(); gridfiles=new ArrayList<>(); listfiles=new ArrayList<>(); history=new ArrayList<>(); storages=new ArrayList<>(); servers=new ArrayList<>(); books=new ArrayList<>(); accounts=new ArrayList<>(); } public static void registerOnDataChangedListener(DataChangeListener dataChangeListener){ DataUtils.dataChangeListener=dataChangeListener; } static int contains(String a, ArrayList<String[]> b) { int i = 0; for (String[] x : b) { if (x[1].equals(a)) return i; i++; } return -1; } static int contains(String[] a, ArrayList<String[]> b) { if(b==null)return -1; int i = 0; for (String[] x : b) { if (x[0].equals(a[0]) && x[1].equals(a[1])) return i; i++; } return -1; } public static void removeBook(int i){ if(books.size()>i) books.remove(i); } public static void removeAcc(int i){ if(accounts.size()>i) accounts.remove(i); } public static void removeServer(int i){ if(servers.size()>i) servers.remove(i); } public static void addBook(String[] i){ books.add(i); } public static void addBook(String[] i,boolean refreshdrawer){ if(refreshdrawer && dataChangeListener!=null)dataChangeListener.onBookAdded(i,true); books.add(i); } public static void addAcc(String[] i){ accounts.add(i); } public static void addServer(String[] i){ servers.add(i); } public static void addHiddenFile(String i) { hiddenfiles.add(i); if(dataChangeListener!=null) dataChangeListener.onHiddenFileAdded(i); } public static void removeHiddenFile(String i) { hiddenfiles.remove(i); if(dataChangeListener!=null) dataChangeListener.onHiddenFileRemoved(i); } public static void addHistoryFile(String i) { history.add(i); if(dataChangeListener!=null) dataChangeListener.onHistoryAdded(i); } public static void sortBook(){ Collections.sort(books,new BookSorter()); } public static void setServers(ArrayList<String[]> servers) { if(servers!=null) DataUtils.servers = servers; } public static void setBooks(ArrayList<String[]> books) { if(books!=null) DataUtils.books = books; } public static void setAccounts(ArrayList<String[]> accounts) { if(accounts!=null) DataUtils.accounts = accounts; } public static ArrayList<String[]> getServers() { return servers; } public static ArrayList<String[]> getBooks() { return books; } public static ArrayList<String[]> getAccounts() { return accounts; } public static ArrayList<String> getHiddenfiles() { return hiddenfiles; } public static void setHiddenfiles(ArrayList<String> hiddenfiles) { if(hiddenfiles!=null) DataUtils.hiddenfiles = hiddenfiles; } public static void setGridfiles(ArrayList<String> gridfiles) { if(gridfiles!=null) DataUtils.gridfiles = gridfiles; } public static ArrayList<String> getListfiles() { return listfiles; } public static void setListfiles(ArrayList<String> listfiles) { if(listfiles!=null) DataUtils.listfiles = listfiles; } public static void clearHistory() { history=new ArrayList<>(); if(dataChangeListener!=null) dataChangeListener.onHistoryCleared(); } public static List<String> getStorages() { return storages; } public static void setStorages(List<String> storages) { DataUtils.storages = storages; } public static ArrayList<Item> getList() { return list; } public static void setList(ArrayList<Item> list) { DataUtils.list = list; } //Callbacks to do original changes in database (and ui if required) public interface DataChangeListener{ void onHiddenFileAdded(String path); void onHiddenFileRemoved(String path); void onHistoryAdded(String path); void onBookAdded(String path[],boolean refreshdrawer); void onHistoryCleared(); } }
[ "yunwenl@gmail.com" ]
yunwenl@gmail.com
9d80e8325b65205a10ba593707394e2214fd581d
8ba401e8007661c5b039a77ad052afa40d634478
/src/MainPkg/MnemУnico.java
2806003ae89a2a865edc2221e7e8db1aa5cd68b7
[]
no_license
czaghi/Mnemonico
25ce934e2af727eb1fb85ee3e0cbcd20dbfda42d
c122f9b8f17426c2dd9fd699ff553efd100f7cd5
refs/heads/master
2020-04-06T04:05:35.605901
2017-02-24T15:57:05
2017-02-24T15:57:05
83,057,369
0
0
null
null
null
null
UTF-8
Java
false
false
8,353
java
/* Classe principal, sera usada apenas para alternar entre cenas quando necessario. Tudo que precisar ser configurado, para montar a cena, sera feito nas classes auxiliars (AuxSimulacao) com o apoio dos metodos da classe SceneConfig. Por enquanto, estou usando para testar se as classes funcionam, e qualquer duvida que apareca sobre o uso do javaFX em si. */ package MainPkg; import static MainPkg.Languages.LangStrings.*; import static MainPkg.SceneConfig.hlp; import java.io.File; import javafx.animation.Timeline; import javafx.application.Application; import javafx.beans.value.ObservableValue; import javafx.event.ActionEvent; import static javafx.geometry.Pos.BASELINE_CENTER; import javafx.scene.control.Button; import javafx.scene.control.CheckBox; import javafx.scene.control.Label; import javafx.scene.effect.DropShadow; import javafx.scene.input.MouseEvent; import javafx.scene.media.*; import static javafx.scene.paint.Color.WHITE; import javafx.scene.text.Font; import javafx.stage.Stage; public class Mnemônico extends Application { public static int lang; public static CheckBox mut = new CheckBox(m[lang]); public static boolean mt = true; SceneConfig sceneconfig = new SceneConfig(); private static final Label sbshelp1 = new Label(); private static final Label sbshelp2 = new Label(); public static void main(String[] args) { launch(args); } @Override public void start(Stage pS) { lang = 0; ClassLoader cl = new ClassLoader() {}; //AudioClip music = new AudioClip(new Media(new File("Mnemônico - tema.wav").toURI().toString()).getSource()); //music.setCycleCount(Timeline.INDEFINITE); //====================================================================// // Botões da tela inicial Button start = startButton(iniciar[lang], 50, 400); Button intro = startButton(introducao[lang], 158, 400); Button cred = startButton(creditos[lang], 287, 400); Button exit = startButton(sair[lang], 410, 400); mut.setTextFill(WHITE); mut.setTranslateX(20); mut.setTranslateY(20); mut.setSelected(hlp); mut.selectedProperty().addListener( (ObservableValue<? extends Boolean> ov, Boolean old_val, Boolean new_val) -> { mt = !mt; if (mt == true) { //music.stop(); } else { //music.play(); } }); //====================================================================// // Botões do menu Button configsim = startButton(configsims[lang], 50, 100); Button configproc = startButton(configprocs[lang], 50, 150); Button autosim = startButton(autosims[lang], 50, 200); Button stbstsim = startButton(stbstsims[lang], 50, 250); Button mainback = startButton(voltar[lang], 393, 400); //====================================================================// // Botões da intro Button introback = startButton(voltar[lang], 5, 468); //====================================================================// //Botões da simulação automatica Button autosimback = startButton(voltar[lang], 693, 20); //====================================================================// //Botões da simulação sbs Button stbstsimback = startButton(voltar[lang], 5, 568); //====================================================================// // Botões dos cred Button credback = startButton(voltar[lang], 5, 468); //====================================================================// // Botões da configuração de simulação Button simback = startButton(voltar[lang], 5, 468); //====================================================================// // Botões da configuração de processos Button ppback = startButton(voltar[lang], 400, 468); //====================================================================// start.setOnAction((ActionEvent e) -> { pS.setTitle(menu[lang]); pS.setScene(sceneconfig.mainConfig(configsim, configproc, autosim, stbstsim, mainback)); }); intro.setOnAction((ActionEvent e) -> { pS.setTitle(intros[lang]); pS.setScene(sceneconfig.introConfig(introback)); }); cred.setOnAction((ActionEvent e) -> { pS.setTitle(creds[lang]); pS.setScene(sceneconfig.creditConfig(credback)); }); exit.setOnAction((ActionEvent e) -> { System.exit(0); }); configsim.setOnAction((ActionEvent e) -> { pS.setTitle(confsim[lang]); pS.setScene(sceneconfig.simConfig(simback)); }); configproc.setOnAction((ActionEvent e) -> { pS.setTitle(confproc[lang]); pS.setScene(sceneconfig.processPropertiesConfig(ppback)); }); autosim.setOnAction((ActionEvent e) -> { pS.setTitle(simulando[lang]); pS.setScene(sceneconfig.autoSimulationConfig(autosimback, sbshelp1, sbshelp2)); }); stbstsim.setOnAction((ActionEvent e) -> { pS.setTitle(simulando[lang]); pS.setScene(sceneconfig.stbstSimulationConfig(stbstsimback, sbshelp1, sbshelp2)); }); mainback.setOnAction((ActionEvent e) -> { pS.setTitle(bemvindo[lang]); pS.setScene(sceneconfig.titleConfig(start, intro, cred, exit, pS)); }); introback.setOnAction((ActionEvent e) -> { pS.setTitle(bemvindo[lang]); pS.setScene(sceneconfig.titleConfig(start, intro, cred, exit, pS)); }); autosimback.setOnAction((ActionEvent e) -> { pS.setTitle(menu[lang]); pS.setScene(sceneconfig.mainConfig(configsim, configproc, autosim, stbstsim, mainback)); if (SceneConfig.timer != null) { SceneConfig.timer.stop(); SceneConfig.timer = null; } }); sbshelp1.setMinWidth(600); sbshelp1.setAlignment(BASELINE_CENTER); sbshelp1.setTranslateX(100); sbshelp1.setTranslateY(530); sbshelp1.setFont(new Font(25)); sbshelp2.setMinWidth(600); sbshelp2.setAlignment(BASELINE_CENTER); sbshelp2.setTranslateX(100); sbshelp2.setTranslateY(560); sbshelp2.setFont(new Font(25)); stbstsimback.setOnAction((ActionEvent e) -> { pS.setTitle(menu[lang]); pS.setScene(sceneconfig.mainConfig(configsim, configproc, autosim, stbstsim, mainback)); }); credback.setOnAction((ActionEvent e) -> { pS.setTitle(bemvindo[lang]); pS.setScene(sceneconfig.titleConfig(start, intro, cred, exit, pS)); }); simback.setOnAction((ActionEvent e) -> { pS.setTitle(menu[lang]); pS.setScene(sceneconfig.mainConfig(configsim, configproc, autosim, stbstsim, mainback)); }); ppback.setOnAction((ActionEvent e) -> { pS.setTitle(menu[lang]); pS.setScene(sceneconfig.mainConfig(configsim, configproc, autosim, stbstsim, mainback)); }); //====================================================================// pS.setScene(sceneconfig.titleConfig(start, intro, cred, exit, pS)); pS.setTitle(bemvindo[lang]); pS.show(); } public static void setSbsHelp1(String newString) { sbshelp1.setText(newString); } public static void setSbsHelp2(String newString) { sbshelp2.setText(newString); } public static Button startButton(String name, double x, double y) { Button b = new Button(name); DropShadow shadow = new DropShadow(); b.addEventHandler(MouseEvent.MOUSE_ENTERED, (MouseEvent e) -> { b.setEffect(shadow); }); b.addEventHandler(MouseEvent.MOUSE_EXITED, (MouseEvent e) -> { b.setEffect(null); }); b.setTranslateX(x); b.setTranslateY(y); return b; } }
[ "czoliv@hotmail.com" ]
czoliv@hotmail.com
a55e1f8e5043865e8c264c45d2a3b4bf8780a5a2
40d844c1c780cf3618979626282cf59be833907f
/src/testcases/CWE190_Integer_Overflow/s04/CWE190_Integer_Overflow__int_URLConnection_square_09.java
c336c82e05ec5b433df6ba64ef423ab549d25af3
[]
no_license
rubengomez97/juliet
f9566de7be198921113658f904b521b6bca4d262
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
refs/heads/master
2023-06-02T00:37:24.532638
2021-06-23T17:22:22
2021-06-23T17:22:22
379,676,259
1
0
null
null
null
null
UTF-8
Java
false
false
13,932
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_URLConnection_square_09.java Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-09.tmpl.java */ /* * @description * CWE: 190 Integer Overflow * BadSource: URLConnection Read data from a web server with URLConnection * GoodSource: A hardcoded non-zero, non-min, non-max, even number * Sinks: square * GoodSink: Ensure there will not be an overflow before squaring data * BadSink : Square data, which can lead to overflow * Flow Variant: 09 Control flow: if(IO.STATIC_FINAL_TRUE) and if(IO.STATIC_FINAL_FALSE) * * */ package testcases.CWE190_Integer_Overflow.s04; import testcasesupport.*; import javax.servlet.http.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.net.URL; import java.net.URLConnection; import java.util.logging.Level; public class CWE190_Integer_Overflow__int_URLConnection_square_09 extends AbstractTestCase { public void bad() throws Throwable { int data; if (IO.STATIC_FINAL_TRUE) { data = Integer.MIN_VALUE; /* Initialize data */ /* read input from URLConnection */ { URLConnection urlConnection = (new URL("http://www.example.org/")).openConnection(); BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { readerInputStream = new InputStreamReader(urlConnection.getInputStream(), "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); /* POTENTIAL FLAW: Read data from a web server with URLConnection */ /* This will be reading the first "line" of the response body, * which could be very long if there are no newlines in the HTML */ String stringNumber = readerBuffered.readLine(); if (stringNumber != null) // avoid NPD incidental warnings { try { data = Integer.parseInt(stringNumber.trim()); } catch (NumberFormatException exceptNumberFormat) { IO.logger.log(Level.WARNING, "Number format exception parsing data from string", exceptNumberFormat); } } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } } } } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.STATIC_FINAL_TRUE) { /* POTENTIAL FLAW: if (data*data) > Integer.MAX_VALUE, this will overflow */ int result = (int)(data * data); IO.writeLine("result: " + result); } } /* goodG2B1() - use goodsource and badsink by changing first IO.STATIC_FINAL_TRUE to IO.STATIC_FINAL_FALSE */ private void goodG2B1() throws Throwable { int data; if (IO.STATIC_FINAL_FALSE) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } else { /* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */ data = 2; } if (IO.STATIC_FINAL_TRUE) { /* POTENTIAL FLAW: if (data*data) > Integer.MAX_VALUE, this will overflow */ int result = (int)(data * data); IO.writeLine("result: " + result); } } /* goodG2B2() - use goodsource and badsink by reversing statements in first if */ private void goodG2B2() throws Throwable { int data; if (IO.STATIC_FINAL_TRUE) { /* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */ data = 2; } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.STATIC_FINAL_TRUE) { /* POTENTIAL FLAW: if (data*data) > Integer.MAX_VALUE, this will overflow */ int result = (int)(data * data); IO.writeLine("result: " + result); } } /* goodB2G1() - use badsource and goodsink by changing second IO.STATIC_FINAL_TRUE to IO.STATIC_FINAL_FALSE */ private void goodB2G1() throws Throwable { int data; if (IO.STATIC_FINAL_TRUE) { data = Integer.MIN_VALUE; /* Initialize data */ /* read input from URLConnection */ { URLConnection urlConnection = (new URL("http://www.example.org/")).openConnection(); BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { readerInputStream = new InputStreamReader(urlConnection.getInputStream(), "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); /* POTENTIAL FLAW: Read data from a web server with URLConnection */ /* This will be reading the first "line" of the response body, * which could be very long if there are no newlines in the HTML */ String stringNumber = readerBuffered.readLine(); if (stringNumber != null) // avoid NPD incidental warnings { try { data = Integer.parseInt(stringNumber.trim()); } catch (NumberFormatException exceptNumberFormat) { IO.logger.log(Level.WARNING, "Number format exception parsing data from string", exceptNumberFormat); } } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } } } } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.STATIC_FINAL_FALSE) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ IO.writeLine("Benign, fixed string"); } else { /* FIX: Add a check to prevent an overflow from occurring */ /* NOTE: Math.abs of the minimum int or long will return that same value, so we must check for it */ if ((data != Integer.MIN_VALUE) && (data != Long.MIN_VALUE) && (Math.abs(data) <= (long)Math.sqrt(Integer.MAX_VALUE))) { int result = (int)(data * data); IO.writeLine("result: " + result); } else { IO.writeLine("data value is too large to perform squaring."); } } } /* goodB2G2() - use badsource and goodsink by reversing statements in second if */ private void goodB2G2() throws Throwable { int data; if (IO.STATIC_FINAL_TRUE) { data = Integer.MIN_VALUE; /* Initialize data */ /* read input from URLConnection */ { URLConnection urlConnection = (new URL("http://www.example.org/")).openConnection(); BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { readerInputStream = new InputStreamReader(urlConnection.getInputStream(), "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); /* POTENTIAL FLAW: Read data from a web server with URLConnection */ /* This will be reading the first "line" of the response body, * which could be very long if there are no newlines in the HTML */ String stringNumber = readerBuffered.readLine(); if (stringNumber != null) // avoid NPD incidental warnings { try { data = Integer.parseInt(stringNumber.trim()); } catch (NumberFormatException exceptNumberFormat) { IO.logger.log(Level.WARNING, "Number format exception parsing data from string", exceptNumberFormat); } } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } } } } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.STATIC_FINAL_TRUE) { /* FIX: Add a check to prevent an overflow from occurring */ /* NOTE: Math.abs of the minimum int or long will return that same value, so we must check for it */ if ((data != Integer.MIN_VALUE) && (data != Long.MIN_VALUE) && (Math.abs(data) <= (long)Math.sqrt(Integer.MAX_VALUE))) { int result = (int)(data * data); IO.writeLine("result: " + result); } else { IO.writeLine("data value is too large to perform squaring."); } } } public void good() throws Throwable { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
[ "you@example.com" ]
you@example.com
6e1a1346de97f8b9e5052a6bd930306d148a64ee
d2634f18e71406a8de8479e7302ca2f7c0daf8e2
/chapter_001/src/main/java/ru/job4j/array/ArrayChar.java
ec4d0bbb7abaf29f3b894461fe8144dd64ca65d8
[ "Apache-2.0" ]
permissive
artem-gandybin/job4j2
811ce9c7d94a4a62968d260fcf4c71e608958af4
8cb798fee35b401eebcdacfe2e1dda9d15a4a5fe
refs/heads/master
2021-07-02T21:57:36.447831
2019-06-05T08:28:24
2019-06-05T08:28:24
185,279,564
0
0
Apache-2.0
2020-10-13T13:18:56
2019-05-06T22:17:54
Java
UTF-8
Java
false
false
921
java
package ru.job4j.array; /** Программа Обертка над строкой * @author Artem Gandybin (arteg@mail.ru) * @version $Id$ * @since 0.1 */ public class ArrayChar { /** * Метод проверяет. что слово начинается с префикса. * @param prefix префикс. * @return true, если слово начинаеться с префикса */ public boolean startsWith(String word, String prefix) { boolean result = true; char[] pref = prefix.toCharArray(); char[] wrd = word.toCharArray(); // проверить. что массив data имеет первые элементы одинаковые с value for (int i = 0; i < pref.length; i++) { if (pref[i] != wrd[i]) { result = false; break; } } return result; } }
[ "arteg@mail.ru" ]
arteg@mail.ru
8b3e7d6ce3e71cdac7057776693adfb231a3dc10
828b5327357d0fb4cb8f3b4472f392f3b8b10328
/flink-runtime/src/main/java/org/apache/flink/runtime/operators/chaining/ChainedDriver.java
52907f450159027cfd3571724ea35dd06cd3d9d6
[ "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "ISC", "MIT-0", "GPL-2.0-only", "BSD-2-Clause-Views", "OFL-1.1", "Apache-2.0", "LicenseRef-scancode-jdom", "GCC-exception-3.1", "MPL-2.0", "CC-PDDC", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "LicenseRef...
permissive
Romance-Zhang/flink_tpc_ds_game
7e82d801ebd268d2c41c8e207a994700ed7d28c7
8202f33bed962b35c81c641a05de548cfef6025f
refs/heads/master
2022-11-06T13:24:44.451821
2019-09-27T09:22:29
2019-09-27T09:22:29
211,280,838
0
1
Apache-2.0
2022-10-06T07:11:45
2019-09-27T09:11:11
Java
UTF-8
Java
false
false
4,466
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.operators.chaining; import org.apache.flink.api.common.ExecutionConfig; import org.apache.flink.api.common.accumulators.Accumulator; import org.apache.flink.api.common.functions.Function; import org.apache.flink.api.common.functions.RuntimeContext; import org.apache.flink.metrics.Counter; import org.apache.flink.runtime.execution.Environment; import org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable; import org.apache.flink.runtime.metrics.groups.OperatorIOMetricGroup; import org.apache.flink.runtime.metrics.groups.OperatorMetricGroup; import org.apache.flink.runtime.operators.BatchTask; import org.apache.flink.runtime.operators.util.DistributedRuntimeUDFContext; import org.apache.flink.runtime.operators.util.TaskConfig; import org.apache.flink.runtime.operators.util.metrics.CountingCollector; import org.apache.flink.util.Collector; import java.util.Map; /** * The interface to be implemented by drivers that do not run in an own task context, but are chained to other * tasks. */ public abstract class ChainedDriver<IT, OT> implements Collector<IT> { protected TaskConfig config; protected String taskName; protected Collector<OT> outputCollector; protected ClassLoader userCodeClassLoader; private DistributedRuntimeUDFContext udfContext; protected ExecutionConfig executionConfig; protected boolean objectReuseEnabled = false; protected OperatorMetricGroup metrics; protected Counter numRecordsIn; protected Counter numRecordsOut; public void setup(TaskConfig config, String taskName, Collector<OT> outputCollector, AbstractInvokable parent, ClassLoader userCodeClassLoader, ExecutionConfig executionConfig, Map<String, Accumulator<?,?>> accumulatorMap) { this.config = config; this.taskName = taskName; this.userCodeClassLoader = userCodeClassLoader; this.metrics = parent.getEnvironment().getMetricGroup().getOrAddOperator(taskName); this.numRecordsIn = this.metrics.getIOMetricGroup().getNumRecordsInCounter(); this.numRecordsOut = this.metrics.getIOMetricGroup().getNumRecordsOutCounter(); this.outputCollector = new CountingCollector<>(outputCollector, numRecordsOut); Environment env = parent.getEnvironment(); if (parent instanceof BatchTask) { this.udfContext = ((BatchTask<?, ?>) parent).createRuntimeContext(metrics); } else { this.udfContext = new DistributedRuntimeUDFContext(env.getTaskInfo(), userCodeClassLoader, parent.getExecutionConfig(), env.getDistributedCacheEntries(), accumulatorMap, metrics ); } this.executionConfig = executionConfig; this.objectReuseEnabled = executionConfig.isObjectReuseEnabled(); setup(parent); } public abstract void setup(AbstractInvokable parent); public abstract void openTask() throws Exception; public abstract void closeTask() throws Exception; public abstract void cancelTask(); public abstract Function getStub(); public abstract String getTaskName(); @Override public abstract void collect(IT record); public OperatorIOMetricGroup getIOMetrics() { return this.metrics.getIOMetricGroup(); } protected RuntimeContext getUdfRuntimeContext() { return this.udfContext; } @SuppressWarnings("unchecked") public void setOutputCollector(Collector<?> outputCollector) { this.outputCollector = new CountingCollector<>((Collector<OT>) outputCollector, numRecordsOut); } public Collector<OT> getOutputCollector() { return outputCollector; } public TaskConfig getTaskConfig() { return this.config; } }
[ "1003761104@qq.com" ]
1003761104@qq.com
afa58d009357a8eb04456690e9f4cda298efccc7
c6ac9279c7c76bf385a33e2f4316874f7b20f9ee
/app/src/main/java/com/martinb/meli/activity/ProfileEditActivity.java
f1f47be3ee8c55e3df6da05f754f230f2e457a0f
[]
no_license
martinBosch/client-meli
8eed07036fa0f02a8591c6309678ae89dba7e7b4
7035500bc62ea086379e0a9ac30674631dcd512e
refs/heads/master
2020-03-27T21:07:53.289730
2018-12-06T17:55:06
2018-12-06T17:55:06
147,117,076
0
0
null
null
null
null
UTF-8
Java
false
false
4,113
java
package com.martinb.meli.activity; import android.arch.lifecycle.Observer; import android.arch.lifecycle.ViewModelProviders; import android.content.Intent; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import com.martinb.meli.R; import com.martinb.meli.authentication.AccountAuthenticator; import com.martinb.meli.model.UserInfo; import com.martinb.meli.view_model.ProfileEditViewModel; import es.dmoral.toasty.Toasty; import static com.martinb.meli.activity.ProfileActivity.USER_INFO; public class ProfileEditActivity extends AppCompatActivity { private ProfileEditViewModel profileEditViewModel; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_profile_edit); this.profileEditViewModel = ViewModelProviders.of(this) .get(ProfileEditViewModel.class); Intent intent = getIntent(); UserInfo userInfo = (UserInfo) intent.getSerializableExtra(USER_INFO); setupToolbar(); setupUserInfo(userInfo); } private void setupToolbar() { Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar12); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.toolbar_menu_profile_edit, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { int itemId = item.getItemId(); switch(itemId) { case R.id.save: saveProfile(); return true; case android.R.id.home: onBackPressed(); return true; default: return super.onOptionsItemSelected(item); } } private void saveProfile() { String token = AccountAuthenticator.getAuthToken(ProfileEditActivity.this); String userId = AccountAuthenticator.getUserId(ProfileEditActivity.this); UserInfo userInfo = getNewUserInfo(); profileEditViewModel.saveChanges(token, userId, userInfo).observe(this, new Observer<String>() { @Override public void onChanged(@Nullable String token) { if (token == null) { String e = profileEditViewModel.getErrorMsj(); showErrorMessage(e); return; } AccountAuthenticator.updateAuthToken(ProfileEditActivity.this, token); goProfileScreen(); } }); } private void goProfileScreen() { Intent intent = new Intent(this, ProfileActivity.class); startActivity(intent); } private UserInfo getNewUserInfo() { EditText display_name_text = findViewById(R.id.display_name_edit); String display_name = display_name_text.getText().toString(); TextView email_text = findViewById(R.id.email_edit); String email = email_text.getText().toString(); EditText phone_text = findViewById(R.id.phone_edit); String phone = phone_text.getText().toString(); return new UserInfo(display_name, email, phone); } private void setupUserInfo(UserInfo userInfo) { EditText display_name = findViewById(R.id.display_name_edit); display_name.setText(userInfo.getDisplayName()); TextView email = findViewById(R.id.email_edit); email.setText(userInfo.getEmail()); EditText phone = findViewById(R.id.phone_edit); phone.setText(userInfo.getPhone()); } private void showErrorMessage(String msj) { Toasty.error(this, msj, Toast.LENGTH_SHORT, true).show(); } }
[ "martinbosch17@gmail.com" ]
martinbosch17@gmail.com
a70f2e4790ae3c7e79db5f95b079c919addc744b
a1b1332e22929323334b6c77fa236270a481358b
/src/com/teamapril/uhack/MainActivity.java
c9d5f0a5aa45e0ba3841e15843b2e1753089c701
[]
no_license
dimawalaadormeo/uhack
51526041f9164b9a0d7fa8eed74c3ce138f14e81
71fc9b881af23bfacd0a69c3dfe6842fbd049c11
refs/heads/master
2020-09-17T04:44:19.317755
2016-08-27T11:27:41
2016-08-27T11:27:41
66,711,194
0
0
null
null
null
null
UTF-8
Java
false
false
8,361
java
package com.teamapril.uhack; import java.io.ByteArrayOutputStream; import java.util.List; import android.support.v7.app.ActionBarActivity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.hardware.Camera; import android.hardware.Camera.Face; import android.hardware.Camera.FaceDetectionListener; import android.hardware.SensorManager; import android.os.Bundle; import android.util.Base64; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.OrientationEventListener; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.widget.ImageButton; public class MainActivity extends ActionBarActivity implements SurfaceHolder.Callback { public static final String TAG = MainActivity.class.getSimpleName(); private Camera mCamera; // We need the phone orientation to correctly draw the overlay: private int mOrientation; private int mOrientationCompensation; private OrientationEventListener mOrientationEventListener; // Let's keep track of the display rotation and orientation also: private int mDisplayRotation; private int mDisplayOrientation; ImageButton captureButton; // Holds the Face Detection result: private Camera.Face[] mFaces; // The surface view for the camera data private SurfaceView mView; // Draw rectangles and other fancy stuff: private FaceOverlayView mFaceView; /** * Sets the faces for the overlay view, so it can be updated * and the face overlays will be drawn again. */ private FaceDetectionListener faceDetectionListener = new FaceDetectionListener() { @Override public void onFaceDetection(Face[] faces, Camera camera) { Log.d("onFaceDetection", "Number of Faces:" + faces.length); // Update the view now! mFaceView.setFaces(faces); } }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mView = (SurfaceView) findViewById(R.id.surfaceView); /* mView = new SurfaceView(this); setContentView(mView, new LayoutParams(600, 600));*/ // Now create the OverlayView: mFaceView = new FaceOverlayView(this); addContentView(mFaceView, new LayoutParams(mView.getLayoutParams())); // Create and Start the OrientationListener: mOrientationEventListener = new SimpleOrientationEventListener(this); mOrientationEventListener.enable(); captureButton = (ImageButton) findViewById(R.id.btnCapture); captureButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { runOnUiThread(new Runnable() { @Override public void run() { mCamera.takePicture(null, null, mPicture); } }); } }); } Camera.PictureCallback mPicture = new Camera.PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { Bitmap bitmapPicture = BitmapFactory.decodeByteArray(data,0,data.length); // Log.d("IMAGE",encodeToBase64(bitmapPicture, Bitmap.CompressFormat.PNG, 100)); captureButton.setImageBitmap(bitmapPicture); mCamera.startPreview(); } }; public String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality) { ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream(); image.compress(compressFormat, quality, byteArrayOS); return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT); } @Override protected void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); SurfaceHolder holder = mView.getHolder(); holder.addCallback(this); } @Override protected void onPause() { mOrientationEventListener.disable(); super.onPause(); } @Override protected void onResume() { mOrientationEventListener.enable(); super.onResume(); } public void surfaceCreated(SurfaceHolder surfaceHolder) { mCamera = Camera.open(); mCamera.setFaceDetectionListener(faceDetectionListener); mCamera.startFaceDetection(); try { mCamera.setPreviewDisplay(surfaceHolder); } catch (Exception e) { Log.e(TAG, "Could not preview the image.", e); } } public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i2, int i3) { // We have no surface, return immediately: if (surfaceHolder.getSurface() == null) { return; } // Try to stop the current preview: try { mCamera.stopPreview(); } catch (Exception e) { // Ignore... } // Get the supported preview sizes: Camera.Parameters parameters = mCamera.getParameters(); List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes(); Camera.Size previewSize = previewSizes.get(0); // And set them: parameters.setPreviewSize(previewSize.width, previewSize.height); mCamera.setParameters(parameters); // Now set the display orientation for the camera. Can we do this differently? mDisplayRotation = Util.getDisplayRotation(MainActivity.this); mDisplayOrientation = Util.getDisplayOrientation(mDisplayRotation, 0); mCamera.setDisplayOrientation(mDisplayOrientation); if (mFaceView != null) { mFaceView.setDisplayOrientation(mDisplayOrientation); } // Finally start the camera preview again: mCamera.startPreview(); } public void surfaceDestroyed(SurfaceHolder surfaceHolder) { mCamera.setPreviewCallback(null); mCamera.setFaceDetectionListener(null); mCamera.setErrorCallback(null); mCamera.release(); mCamera = null; } /** * We need to react on OrientationEvents to rotate the screen and * update the views. */ private class SimpleOrientationEventListener extends OrientationEventListener { public SimpleOrientationEventListener(Context context) { super(context, SensorManager.SENSOR_DELAY_NORMAL); } @Override public void onOrientationChanged(int orientation) { // We keep the last known orientation. So if the user first orient // the camera then point the camera to floor or sky, we still have // the correct orientation. if (orientation == ORIENTATION_UNKNOWN) return; mOrientation = Util.roundOrientation(orientation, mOrientation); // When the screen is unlocked, display rotation may change. Always // calculate the up-to-date orientationCompensation. int orientationCompensation = mOrientation + Util.getDisplayRotation(MainActivity.this); if (mOrientationCompensation != orientationCompensation) { mOrientationCompensation = orientationCompensation; mFaceView.setOrientation(mOrientationCompensation); } } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @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(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } }
[ "madormeo@localhost.localdomain" ]
madormeo@localhost.localdomain
154f79f0d04efbc41b1cf155ddaf783da86ff5a7
e798cf69505b8b40815bc03c9301c6c880595160
/src/com/java/practice/A.java
338f1bf20d79fe824ca7d6844018578180725686
[]
no_license
Suresh694/Practice
78f3a231df49ad1d570b6a889e7d820b1e3c08d6
5db3364466469e2edc77ff0431482ce92e79622a
refs/heads/master
2020-12-26T05:39:24.875996
2020-02-07T14:21:57
2020-02-07T14:21:57
237,403,992
0
0
null
null
null
null
UTF-8
Java
false
false
677
java
package com.java.practice; public class A { A() { System.out.println("A Constructor"); // TODO Auto-generated constructor stub } public void print() { System.out.println("A"); } } class B extends A{ B() { System.out.println("B Constructor"); // TODO Auto-generated constructor stub } public void print() { System.out.println("B"); } } class C extends B{ public C() { System.out.println("C"); // TODO Auto-generated constructor stub } public void print() { System.out.println("C Normal"); } } class practice{ public static void main(String []args) { A obj=new C(); obj.print(); } }
[ "noreply@github.com" ]
noreply@github.com
60c4a2f491b3a90743705dbb27ecf3ccb81a1e9e
7731f417107b20a649801d936f51c12838b56a20
/app/src/main/java/cn/synway/app/api/DialogCallException.java
d66c9160b7ead58b7f80b118d3c55c4ce2221ac4
[]
no_license
wuliang6661/app2.0
19125181d4f431f03e644ab5293d402277def646
2c3ddbaa1dc7f9d0d7ba5c5443854c747b6f7d30
refs/heads/master
2023-06-04T15:21:53.375173
2021-06-23T08:41:37
2021-06-23T08:41:37
258,925,054
3
1
null
null
null
null
UTF-8
Java
false
false
224
java
package cn.synway.app.api; public class DialogCallException extends Exception { public String message; public DialogCallException(String message) { super(message); this.message = message; } }
[ "wuliang6661@163.com" ]
wuliang6661@163.com
0e3fe063d1bb13af7b312d6e403b31a5d1d08ed8
d91f45dbf9da4650a4af48e2050d7fa7c3e26f09
/app/src/main/java/com/example/hxb_retorfit_mvp/network/NetWorkSubscriber.java
e363eaa250016843e17233d21dd49858a1050208
[]
no_license
hexingbo/Retrofit_RxJava_MVP2
ef171d0021d89f61146c11eb10acd615a0cde6ed
1af1cbc5c5db478c1ac62ba6d6f2d5e9a9bcc621
refs/heads/master
2020-03-19T12:58:26.703508
2018-06-13T02:06:05
2018-06-13T02:06:05
136,553,168
0
0
null
null
null
null
UTF-8
Java
false
false
461
java
package com.example.hxb_retorfit_mvp.network; import rx.Subscriber; /** * @作者 :贺兴波 * @时间 :2018/6/8 * @描述 :NetWorkSubscriber */ public class NetWorkSubscriber<T> extends Subscriber<T> { @Override public void onStart() { super.onStart(); } @Override public void onCompleted() { } @Override public void onError(Throwable e) { } @Override public void onNext(T t) { } }
[ "386985454@qq.com" ]
386985454@qq.com
49be1a8f1f0dcea4b58d421538368daef2f41c86
94b4f292d61a105cd36919438e95b36cf66ee2d9
/src/com/analyze/attribute/bean/LocalVariableTypeTableAttributeBean.java
648bd2093c7edcaf32bf319f080b2a9c8a067c62
[]
no_license
jessie517/ClassFileAnalyze
85c0a8a54fe387598738153f7c9a468721f1322c
1d8cc7bcc7b8778edc21807403d9a81eeadcd10a
refs/heads/master
2022-12-11T22:57:22.301598
2020-09-04T08:52:02
2020-09-04T08:52:02
108,259,119
0
0
null
null
null
null
UTF-8
Java
false
false
3,295
java
package com.analyze.attribute.bean; import com.analyze.constant.bean.ConstBean; /** * Created by chenjiaxu on 2017/10/28. */ public class LocalVariableTypeTableAttributeBean implements AttributeInfoBean { private LocalVariableTypeInfo[] localVariableTypeTable; public LocalVariableTypeTableAttributeBean(byte[] infoBytes) { int localVariableTableLength = (infoBytes[0] & 0xFF) << 8 | (infoBytes[1] & 0xFF); this.localVariableTypeTable = getLocalVariableTypeTable(infoBytes, localVariableTableLength, 2); } public static LocalVariableTypeInfo[] getLocalVariableTypeTable(byte[] infoBytes, int tableLegth, int currentIndex) { LocalVariableTypeInfo[] localVariableTable = new LocalVariableTypeInfo[tableLegth]; for (int i = 0; i < tableLegth; i++) { LocalVariableTypeInfo localVariableTypeInfo = new LocalVariableTypeInfo(); localVariableTypeInfo.setStartPc((infoBytes[currentIndex++] & 0xFF) << 8 | (infoBytes[currentIndex++] & 0xFF)); localVariableTypeInfo.setLength((infoBytes[currentIndex++] & 0xFF) << 8 | (infoBytes[currentIndex++] & 0xFF)); localVariableTypeInfo.setNameIndex((infoBytes[currentIndex++] & 0xFF) << 8 | (infoBytes[currentIndex++] & 0xFF)); localVariableTypeInfo.setSignatureIndex((infoBytes[currentIndex++] & 0xFF) << 8 | (infoBytes[currentIndex++] & 0xFF)); localVariableTypeInfo.setIndex((infoBytes[currentIndex++] & 0xFF) << 8 | (infoBytes[currentIndex++] & 0xFF)); localVariableTable[i] = localVariableTypeInfo; } return localVariableTable; } public String toString(ConstBean[] constBeans) { StringBuffer stringBuffer = new StringBuffer(); for (int i = 0; i < localVariableTypeTable.length; i++) { stringBuffer.append(localVariableTypeTable[i].toString(constBeans) + "\n"); } return stringBuffer.toString(); } static class LocalVariableTypeInfo { private int startPc; private int length; private int nameIndex; private int signatureIndex; private int index; public int getStartPc() { return startPc; } public void setStartPc(int startPc) { this.startPc = startPc; } public int getLength() { return length; } public void setLength(int length) { this.length = length; } public int getNameIndex() { return nameIndex; } public void setNameIndex(int nameIndex) { this.nameIndex = nameIndex; } public int getSignatureIndex() { return signatureIndex; } public void setSignatureIndex(int signatureIndex) { this.signatureIndex = signatureIndex; } public int getIndex() { return index; } public void setIndex(int index) { this.index = index; } public String toString(ConstBean[] constBeans) { return "startPc: " + startPc + ", length: " + length + ", name: " + constBeans[nameIndex].getValue() + ", signature: " + constBeans[signatureIndex].getValue() + ", index: " + index; } } }
[ "jessie_517@126.com" ]
jessie_517@126.com
85572a710652a241d742a98ec867952f6b81849d
a4b43fc956c6ba8df751666855fceecc3d0441f0
/src/main/java/gezer/votecounter/utils/CandidatesReader.java
b4771a0c50f35f27de4351b3c5d9d295d5e8cda1
[]
no_license
umigez/oracle-vote-counter
3cdecdfb501b5208dfbe451d779ee8f27b9a842c
7c97f10514221e1883df18ee132d239a9459602e
refs/heads/master
2020-09-12T12:21:34.204393
2019-11-19T13:06:17
2019-11-19T13:06:17
222,423,899
0
0
null
null
null
null
UTF-8
Java
false
false
1,075
java
package gezer.votecounter.utils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public final class CandidatesReader { private CandidatesReader() { } /** * * @param inputStream this stream will be closed when this method returns. * @return The candidates as a list of strings. * @throws IOException if any errors while reading the stream. */ public static List<String> readCandidates(InputStream inputStream) throws IOException { // use default char set - better to be specific in real code try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { List<String> candidates = new ArrayList<>(); while (reader.ready()) { String line = reader.readLine().trim(); if (!line.isEmpty()) { candidates.add(line); } } return candidates; } } }
[ "umitgezer2@gmail.com" ]
umitgezer2@gmail.com
c276dee125e7aea5d337014c7e84082de0d08eba
2e7695dbb20081109319fe9444565fce228a5c93
/src/main/java/com/page_assessment_wallet_system/PageAssessmentWalletSystemApplication.java
ff3ea4d68d8e7460ca8b22073b82ca01efad7e82
[]
no_license
ayenijeremiaho/page-wallet-service
5634ad1837bfc62f67ab627b974f1a2fbe035bba
81284ce708d18093bbd3d202c683cfe89cb7150e
refs/heads/master
2023-07-05T16:17:42.318089
2021-08-19T23:31:12
2021-08-19T23:31:12
398,093,648
0
0
null
null
null
null
UTF-8
Java
false
false
503
java
package com.page_assessment_wallet_system; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.security.authentication.AuthenticationManager; @SpringBootApplication public class PageAssessmentWalletSystemApplication { public static void main(String[] args) { SpringApplication.run(PageAssessmentWalletSystemApplication.class, args); } }
[ "ayenijeremiah@gmail.com" ]
ayenijeremiah@gmail.com
61272913a91579d1b7b89f0095662ac4234e2396
e4424b3ed4ef3424d67ab42b4bb984438dc48ed2
/src/unittests/PolygonTests.java
ade97d34071d8966d22e9b3e12286185bb97c347
[]
no_license
shaeliya/WorkWithGit
952361765a614dff2dbc8173a3184e24f381cd29
16fcaaa6cd7d8a20fe6522d31e9292bd1d16858a
refs/heads/master
2023-05-30T06:35:51.979991
2021-06-16T19:08:24
2021-06-16T19:08:24
343,720,169
0
0
null
null
null
null
UTF-8
Java
false
false
6,167
java
//======================== //Shalhevet Eliyahu //ID:211661160 //shalhevet2001@gmail.com //Maya Pasha //322290180 //mayapasha56@gmail.com //========================= /** * */ package unittests; import static org.junit.Assert.*; import java.util.List; import org.junit.Test; import geometries.*; import primitives.*; /** * Testing Polygons * * @author Dan * */ public class PolygonTests { /** * Test method for * {@link geometries.Polygon#Polygon(primitives.Point3D, primitives.Point3D, primitives.Point3D, primitives.Point3D)}. */ @Test public void testConstructor() { // ============ Equivalence Partitions Tests ============== // TC01: Correct concave quadrangular with vertices in correct order try { new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(-1, 1, 1)); } catch (IllegalArgumentException e) { fail("Failed constructing a correct polygon"); } // TC02: Wrong vertices order try { new Polygon(new Point3D(0, 0, 1), new Point3D(0, 1, 0), new Point3D(1, 0, 0), new Point3D(-1, 1, 1)); fail("Constructed a polygon with wrong order of vertices"); } catch (IllegalArgumentException e) {} // TC03: Not in the same plane try { new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(0, 2, 2)); fail("Constructed a polygon with vertices that are not in the same plane"); } catch (IllegalArgumentException e) {} // TC04: Concave quadrangular try { new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(0.5, 0.25, 0.5)); fail("Constructed a concave polygon"); } catch (IllegalArgumentException e) {} // =============== Boundary Values Tests ================== // TC10: Vertex on a side of a quadrangular try { new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(0, 0.5, 0.5)); fail("Constructed a polygon with vertix on a side"); } catch (IllegalArgumentException e) {} // TC11: Last point = first point try { new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(0, 0, 1)); fail("Constructed a polygon with vertice on a side"); } catch (IllegalArgumentException e) {} // TC12: Colocated points try { new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(0, 1, 0)); fail("Constructed a polygon with vertice on a side"); } catch (IllegalArgumentException e) {} } /** * Test method for {@link geometries.Polygon#getNormal(primitives.Point3D)}. */ @Test public void testGetNormal() { // ============ Equivalence Partitions Tests ============== // TC01: There is a simple single test here Polygon pl = new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0), new Point3D(-1, 1, 1)); double sqrt3 = Math.sqrt(1d / 3); assertEquals("Bad normal to trinagle", new Vector(sqrt3, sqrt3, sqrt3), pl.getNormal(new Point3D(0, 0, 1))); } /** * Test method for {@link geometries.Triangle#findIntsersections(Ray ray)}. */ public void testFindIntsersections() { Point3D point1= new Point3D(1,0,0); Point3D point2= new Point3D(0,1,0); Point3D point3= new Point3D(-1,0,0); Point3D point4= new Point3D(0,-1,0); Point3D point5= new Point3D(0,0,-0.25); Point3D point6= new Point3D(1.25,1.25,1); Point3D point7= new Point3D(2,0,1); Point3D point8= new Point3D(0.5,0.5,1); Point3D point9= new Point3D(1,0,1); Point3D point10= new Point3D(4,-3,0); Vector vector1= new Vector(1,1,1); Vector vector2= new Vector(0,0,-1); Polygon polygon= new Polygon(point1,point2,point3,point4); // ============ Equivalence Partitions Tests ============== //Ray inside polygon Ray ray1 = new Ray (point5,vector1); List <Point3D>point3DList1 = polygon.findIntsersections(ray1); assertEquals("The test failed, the function found more than one intersection point",1,point3DList1.size(),0.1); assertTrue("The test failed, the function did not find what it was looking for",point3DList1.get(0).equals(new Point3D(0.25,0.25,0))); // ============ Equivalence Partitions Tests ============== //Ray outside against edge Ray ray2 = new Ray (point6,vector2); List <Point3D>point3DList2 = polygon.findIntsersections(ray2); if(point3DList2!= null) { fail("The test failed, the function found intersection point"); } // ============ Equivalence Partitions Tests ============== //Ray outside against vertex Ray ray3 = new Ray (point7,vector2); List <Point3D>point3DList3 = polygon.findIntsersections(ray3); if(point3DList3!= null) { fail("The test failed, the function found intersection point"); } // =============== Boundary Values Tests ================== //the ray begins before the plane On edge Ray ray4= new Ray (point8,vector2); List <Point3D>point3DList4 = polygon.findIntsersections(ray4); if(point3DList4!= null) { fail("The test failed, the function found intersection point"); } // =============== Boundary Values Tests ================== //the ray begins before the plane In vertex Ray ray5= new Ray (point9,vector2); List <Point3D>point3DList5 = polygon.findIntsersections(ray5); if(point3DList5!= null) { fail("The test failed, the function found intersection point"); } // =============== Boundary Values Tests ================== //the ray begins before the plane On edge's continuation Ray ray6= new Ray (point10,vector2); List <Point3D>point3DList6 = polygon.findIntsersections(ray6); if(point3DList6!= null) { fail("The test failed, the function found intersection point"); } } }
[ "shalhevet2001@gmail.com" ]
shalhevet2001@gmail.com
f5cdc86b70cee0ab2b0f357dfb5e8163eb23ce21
aae733949bf0098b44aa7feb39b3220cd22cbaff
/src/main/java/com/pollra/web/blog/package-info.java
6750a5b01600b8e4f4b5606e330331495da910d4
[]
no_license
pollra/orange_back
58f22fc1ffac82fcb40bc643a128ad5d33f4afcb
08d6b77f73edbcef0b8384bd0a767faf2bc3dc26
refs/heads/master
2021-07-14T09:21:27.576374
2020-09-21T01:59:29
2020-09-21T01:59:29
208,333,292
0
0
null
null
null
null
UTF-8
Java
false
false
28
java
package com.pollra.web.blog;
[ "pollra32@naver.com" ]
pollra32@naver.com
05324865526276c9090e0ee8ce639e24d2266f06
b9b210a1b7bb3c4d9cb73080c370c46850f7472f
/src/main/java/application/controller/ResidenceApplicationController.java
a89170bcdde1bc233ec5b1b922e5dfd50ec5c770
[]
no_license
RinaBrisk/PassportService
ae9422a7e502d99a3379e8146b22f9522e439007
efb86a78bbba715e563a3a21eb7f50e217393c4d
refs/heads/master
2022-06-22T16:14:18.473018
2019-05-29T17:43:25
2019-05-29T17:43:25
187,671,618
0
0
null
2022-06-21T01:09:01
2019-05-20T15:53:55
Java
UTF-8
Java
false
false
3,130
java
package application.controller; import application.DTO.*; import application.database.MySQLDataBase; import application.utils.NotificationType; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.ComboBox; import javafx.scene.control.Button; import javafx.scene.control.TextField; import javafx.stage.Stage; public class ResidenceApplicationController extends PassportServiceController { private ResidenceApplication residenceApplication; @FXML private TextField series; @FXML private TextField number; @FXML private TextField city; @FXML private TextField street; @FXML private TextField house; @FXML private TextField apartment; @FXML private ComboBox<String> typeOfResidence; @FXML private Button cancel; public void parseResidenceApplicationData() { int passportId = MySQLDataBase.hasPassportInDB(series.getText(), number.getText()); if (passportId == 0) { notificate("Указанный паспорт не существует! Сначала напишите заявление на паспорт!", NotificationType.ERROR); return; } else { TypeOfResidence typeOfResidenceLocal = null; if (typeOfResidence.getValue() == null) { notificate("Поле ВИД ПРОПИСКИ не может быть пустым!", NotificationType.ERROR); return; } else if (typeOfResidence.getValue().equals("постоянная")) { typeOfResidenceLocal = TypeOfResidence.constant; } else if (typeOfResidence.getValue().equals("временная")) { typeOfResidenceLocal = TypeOfResidence.temporary; } if (city.getText().equals("")) { notificate("Поле ГОРОД не может быть пустым!", NotificationType.ERROR); return; } else if (street.getText().equals("")) { notificate("Поле УЛИЦА не может быть пустым!", NotificationType.ERROR); return; } else if (house.getText().equals("")) { notificate("Поле ДОМ не может быть пустым!", NotificationType.ERROR); return; } Address address; if(!apartment.getText().equals("")){ address = new Address(city.getText(), street.getText(), house.getText(), apartment.getText()); }else{ address = new Address(city.getText(), street.getText(), house.getText()); } residenceApplication = new ResidenceApplication(passportId, typeOfResidenceLocal, address); MySQLDataBase.insertDataInResidenceApplication(residenceApplication); notificate("Заявление успешно отправлено!", NotificationType.SUCCESS); } } public void closeStage(ActionEvent event) { Stage stage = (Stage) cancel.getScene().getWindow(); stage.close(); } }
[ "rina_sergeeva@bk.ru" ]
rina_sergeeva@bk.ru
1a15ad110f6242ffd012fdca8b3503bfaa2da9b5
b9c6d4f40a7f0128900c1afc85669e507e8509ed
/nvk-web/src/main/java/hu/unideb/inf/nvkshop/web/admin/CategoryForm.java
7969c1367473d6bdf36a1f13102ff00e50184ba8
[]
no_license
NVKShop/nvk-server
0a0c1c2838cae370d99949a63f3eccbadc5a4401
d905367e1692c7e999e8a18e76e8ffc7035af1dd
refs/heads/master
2021-01-11T02:14:45.249154
2016-12-20T12:20:32
2016-12-20T12:20:32
71,004,399
0
0
null
null
null
null
UTF-8
Java
false
false
1,214
java
package hu.unideb.inf.nvkshop.web.admin; import java.util.List; import hu.unideb.inf.nvkshop.web.AbstractUserForm; import hu.unideb.inf.rft.nvkshop.entities.product.Category; import hu.unideb.inf.rft.nvkshop.entities.product.Item; public class CategoryForm extends AbstractUserForm { private String newCategoryName; private List<Category> rootCategories; private Category category; private Boolean isAdmin; private List<Item> cart; public List<Item> getCart() { return cart; } public void setCart(List<Item> cart) { this.cart = cart; } @Override public Boolean getIsAdmin() { return true; } @Override public void setIsAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; } public Category getCategory() { return category; } public void setCategory(Category category) { this.category = category; } public String getNewCategoryName() { return newCategoryName; } public void setNewCategoryName(String newCategoryName) { this.newCategoryName = newCategoryName; } @Override public List<Category> getRootCategories() { return rootCategories; } @Override public void setRootCategories(List<Category> rootCategories) { this.rootCategories = rootCategories; } }
[ "solyomszem3@gmail.com" ]
solyomszem3@gmail.com
b30761ebb28c12fdcc5aeb26470f76d6da38e40b
5eef6ced918e4881282f8787096ea76de4ad7ae3
/GamingLibProjectProject/GamingLibProject/src/main/java/y6b/Gaming/Games2DLib/Graphics/Circle.java
677107d7cd0d3b89e19c7469d4dce6f8be3aea22
[]
no_license
Yazany6b/AndroidGamingLib
b9c7bec10ccbaec4c2c1a9046bd0e117a7a8725c
00dd027f18d0819bbd46c9d2d630249124d5e93e
refs/heads/master
2016-09-02T04:35:14.548262
2014-08-05T01:08:34
2014-08-05T01:08:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
365
java
package y6b.Gaming.Games2DLib.Graphics; /** * Created by Yazan on 8/4/14. */ public final class Circle { public Vector2D center; public float radius; public Circle(){ center = new Vector2D(); radius = 1; } public Circle(Vector2D center, float radius) { this.center = center; this.radius = radius; } }
[ "yazanse@yahoo.com" ]
yazanse@yahoo.com
e0766ee431c193fe36922b0a1f37835a8e10cc9e
6ae664ac3b400697dee3cd86bd04bc5e8519af01
/src/main/java/com/hatcherdev/inventorysystem/bizlogic/InventoryService.java
015107a2ae1c6173241b8daafc46761e951cc634
[]
no_license
jhatcher9999/JavaInventoryApp
8d9b43ab419e2c46559ff4f7165f5184309af30a
f9b919752b850ea75f6c90e1671d47b8b4574ce9
refs/heads/main
2023-03-07T06:42:27.244606
2021-02-13T01:57:56
2021-02-13T01:57:56
326,752,442
0
0
null
null
null
null
UTF-8
Java
false
false
3,228
java
package com.hatcherdev.inventorysystem.bizlogic; import com.hatcherdev.inventorysystem.DAO.InventoryDAO; import com.hatcherdev.inventorysystem.objects.Inventory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List; public class InventoryService { private static final Logger logger = LoggerFactory.getLogger(InventoryService.class); private final int DEFAULT_STORE_NUMBER = 1; private InventoryDAO inventoryDAO; public void createRandomInventoryRecords(int numberOfInventoryRecordsToCreate, InventoryDAO.StorageDestination storageDestination) { inventoryDAO = new InventoryDAO(storageDestination, DEFAULT_STORE_NUMBER); //test inserting random(ish) values into the table int upperRange = numberOfInventoryRecordsToCreate; logger.info("Inventory inserts completed - 0 of " + Integer.toString(upperRange)); for (int i = 0; i < upperRange; i++) { inventoryDAO.storeInventoryChange(); if (i > 0 && i % 1000 == 0) { logger.info("Inventory inserts completed - " + Integer.toString(i) + " of " + Integer.toString(upperRange)); } } inventoryDAO.teardown(); logger.info("Inventory inserts completed - " + Integer.toString(upperRange) + " of " + Integer.toString(upperRange)); } public void createInventoryUpdateRecords(int numberOfInventoryRecordsToCreate, InventoryDAO.StorageDestination storageDestination) { inventoryDAO = new InventoryDAO(storageDestination, DEFAULT_STORE_NUMBER); List<Inventory> inventoryItems = inventoryDAO.getInventoryRecords(numberOfInventoryRecordsToCreate); if (inventoryItems == null) { logger.info("No inventory items to select from. Run random insert first."); return; } int itemCount = inventoryItems.size(); if (itemCount < numberOfInventoryRecordsToCreate) { logger.info("Fewer inventory items available (" + Integer.toString(itemCount) + ") than were requested (" + Integer.toString(numberOfInventoryRecordsToCreate) + ")."); return; } System.out.println("Inventory updates completed - 0 of " + Integer.toString(itemCount)); for (int i = 0; i < itemCount; i++) { Inventory inventoryItem = inventoryItems.get(i); inventoryDAO.storeInventoryChange(inventoryItem, true); if (i > 0 && i % 1000 == 0) { logger.info("Inventory updates completed - " + Integer.toString(i) + " of " + Integer.toString(itemCount)); } } inventoryDAO.teardown(); logger.info("Inventory updates completed - " + Integer.toString(itemCount) + " of " + Integer.toString(itemCount)); } public void processInventoryEvents(int numberOfInventoryRecords) { inventoryDAO = new InventoryDAO(InventoryDAO.StorageDestination.DATABASE, DEFAULT_STORE_NUMBER); inventoryDAO.processInventoryEvents(numberOfInventoryRecords); inventoryDAO.teardown(); logger.info("Inventory events processed - " + Integer.toString(numberOfInventoryRecords) + " of " + Integer.toString(numberOfInventoryRecords)); } }
[ "hatcher@cockroachlabs.com" ]
hatcher@cockroachlabs.com
2d75b5ba846e953e0ab3b4dd180e10f7d7401e94
5c3d245b2ce530ded86591f8d25f05bd69f4d763
/java/biotools-schema3-parser/src/main/java/es/elixir/bsc/biotools/parser/model/OntologyConcept.java
bf9c874e9537973dfcb064c25dce943a84bee0ba
[]
no_license
inab/elixibilitas
124b36290907e5fda70079c94c2cbe1e1de16433
c0f22f19bd75e43d3b9a7ddb9d7a16c7a9472983
refs/heads/master
2021-11-17T21:47:54.139281
2021-09-22T14:39:51
2021-09-22T14:39:51
92,834,870
0
0
null
2021-08-23T20:44:31
2017-05-30T13:19:19
Java
UTF-8
Java
false
false
2,259
java
/** * ***************************************************************************** * Copyright (C) 2018 ELIXIR ES, Spanish National Bioinformatics Institute (INB) * and Barcelona Supercomputing Center (BSC) * * Modifications to the initial code base are copyright of their respective * authors, or their employers as appropriate. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA ***************************************************************************** */ package es.elixir.bsc.biotools.parser.model; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * * @author Dmitry Repchevsky */ @XmlType(name = "ontologyConcept") @XmlSeeAlso({ Operation.class, Topic.class, EDAMformat.class, EDAMdata.class}) public class OntologyConcept { private String uri; private String term; @XmlElement(required = true) @XmlSchemaType(name = "anyURI") public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") public String getTerm() { return term; } public void setTerm(String term) { this.term = term; } }
[ "redmitry@list.ru" ]
redmitry@list.ru
b7beffc6d430962c7e9655e6d733d792eb99a0d6
8dab0290bd9a8864579082af4391c71d6126a119
/src/main/java/ro/autoepc/rabbitmqmonitoring/domain/enumeration/State.java
cca8388d4f2d4bc02c22f8ba112eaf0b12e8dc8a
[]
no_license
lovercoder/rabbitmq-monitoring
1d2306ee470e0eb9d336219df3d5d8a65ffdd23d
ebdca426d32fb36c0fa0bc1d3b268afe899e2f98
refs/heads/master
2020-04-12T14:33:00.559384
2018-07-24T21:44:30
2018-07-24T21:44:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
137
java
package ro.autoepc.rabbitmqmonitoring.domain.enumeration; /** * The State enumeration. */ public enum State { ENABLED, DISABLED }
[ "ionutz@vostro.fritz.box" ]
ionutz@vostro.fritz.box
73fdc5726c3c96d22b6a82dc2d39f20a8e3e6e3d
2dea6ffb40d23487740f5d72fb415dea324e55de
/src/psuedooperatingsystem/PsuedoOperatingSystem.java
49da472b9b9a96766d143283694aee1930938fc6
[]
no_license
AK67/PsuedoOperatingSystem
e8075df9766724d3afdadb4b077e525a3447429f
577820af30690ddd8f6562820024052651757c39
refs/heads/master
2021-01-23T22:14:52.939267
2015-03-30T08:36:44
2015-03-30T08:36:44
33,111,516
0
0
null
null
null
null
UTF-8
Java
false
false
686
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package psuedooperatingsystem; import ak.os.readWriteMemory.HDD; import ak.os.testComponents.feeder.Feeder; import ak.os.testComponents.memoryDisplay.MemoryDisplay; /** * * @author anubhav.kaushik */ public class PsuedoOperatingSystem { /** * @param args the command line arguments */ public static void main(String[] args) { HDD Hdd = HDD.getInstance( ); // Feeder.hddFeeder(); //MemoryDisplay.HDDMemoryDisplay(); } }
[ "anubhavgreen41@gmail.com" ]
anubhavgreen41@gmail.com
cf9c9b5477874ba8aa5e0068e72f0ba98e23fec4
8d94459245bbfc0c318ef7a2ccc557fba66ee5bc
/web/src/main/java/com/soundon/group/web/alibaba/boot/dubbo/demo/consumer/controller/DemoConsumerController.java
8f3e7121fd92b8d33ac4ac46fa85cfbca14bb10d
[]
no_license
wdw190/soundongroup
83a313e8ff67125979dc2302a1122218e18936e4
d94dcbb181b560ee3a1a8923a89a5b56e3687f2c
refs/heads/master
2020-03-22T21:21:04.619450
2018-07-12T07:41:45
2018-07-12T07:41:45
140,678,852
0
0
null
null
null
null
UTF-8
Java
false
false
1,559
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.soundon.group.web.alibaba.boot.dubbo.demo.consumer.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.alibaba.dubbo.config.annotation.Reference; import alibaba.boot.dubbo.demo.consumer.DemoService; @RestController public class DemoConsumerController { @Reference(version = "${demo.service.version}", application = "${dubbo.application.id}", url = "dubbo://localhost:12345") private DemoService demoService; @RequestMapping("/sayHello") public String sayHello(@RequestParam String name) { return demoService.sayHello(name); } }
[ "2519151032@qq.com" ]
2519151032@qq.com
f9965106a5b02be0f4a0edc2cdf6278d739f8eeb
cf07086845a7205ec9298435bc66ad441f3d595e
/flink知识点/src/main/java/事件时间/Window_EventTimeTumbling.java
6c94e53887ab69278157cd0e5b03809b1933985a
[]
no_license
intsmaze/commengzcaa
6dd690fb22280ddb7a8a25c93c89602864d7224c
3ca7a3091fe7c0bc299a8a28342c0a2c2ea35297
refs/heads/master
2023-03-31T14:03:35.880800
2021-04-05T01:41:04
2021-04-05T01:41:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,056
java
package 事件时间; import org.apache.flink.api.common.eventtime.SerializableTimestampAssigner; import org.apache.flink.api.common.eventtime.WatermarkStrategy; import org.apache.flink.streaming.api.datastream.KeyedStream; import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator; import org.apache.flink.streaming.api.datastream.WindowedStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.api.windowing.assigners.TumblingEventTimeWindows; import org.apache.flink.streaming.api.windowing.time.Time; import org.apache.flink.streaming.api.windowing.windows.TimeWindow; import java.time.Duration; /** * flink1.12 默认的是事件时间语义 */ public class Window_EventTimeTumbling { public static void main(String[] args) throws Exception { //1.获取执行环境 StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); env.setParallelism(1); //2.读取端口数据并转换为JavaBean SingleOutputStreamOperator<WaterSensor> waterSensorDS = env.socketTextStream("hadoop102", 9999) .map(data -> { String[] split = data.split(","); return new WaterSensor(split[0], Long.parseLong(split[1]), Integer.parseInt(split[2])); }); //3.提取数据中的时间戳字段 不允许迟到 // WatermarkStrategy<WaterSensor> waterSensorWatermarkStrategy = WatermarkStrategy.<WaterSensor>forMonotonousTimestamps() // .withTimestampAssigner(new SerializableTimestampAssigner<WaterSensor>() { // @Override // public long extractTimestamp(WaterSensor element, long recordTimestamp) { // return element.getTs() * 1000L; // } // }); //允许迟到时间 WatermarkStrategy<WaterSensor> waterSensorWatermarkStrategy = WatermarkStrategy.<WaterSensor>forBoundedOutOfOrderness(Duration.ofSeconds(2)) .withTimestampAssigner(new SerializableTimestampAssigner<WaterSensor>() { @Override public long extractTimestamp(WaterSensor element, long recordTimestamp) { return element.getTs() * 1000L; } }); SingleOutputStreamOperator<WaterSensor> waterSensorSingleOutputStreamOperator = waterSensorDS.assignTimestampsAndWatermarks(waterSensorWatermarkStrategy); //4.按照id分组 KeyedStream<WaterSensor, String> keyedStream = waterSensorSingleOutputStreamOperator.keyBy(WaterSensor::getId); //5.开窗 WindowedStream<WaterSensor, String, TimeWindow> window = keyedStream.window(TumblingEventTimeWindows.of(Time.seconds(5))); //6.计算总和 SingleOutputStreamOperator<WaterSensor> result = window.sum("vc"); //7.打印 result.print(); //8.执行任务 env.execute(); } }
[ "mengzc163@163.com" ]
mengzc163@163.com
2609e48e9a996acae46e3586b822c766e1be3217
acaf4a7192faa3c722f921d98a880dd0b8056cb1
/src/lab3/prob4tiep/Driver.java
77fef6683c51f1b40ed60dd48cbb96a8a5e453e2
[]
no_license
DKNY1201/mpp
06584efd84fea4f73a905fae92b42098d1dae212
3b281961503ac17d61a55ca7eb2a6719e601969e
refs/heads/master
2020-12-03T09:30:52.443427
2017-07-18T15:00:28
2017-07-18T15:00:28
95,626,679
1
2
null
null
null
null
UTF-8
Java
false
false
1,091
java
package prob4tiep; import java.util.List; import java.util.Arrays; public class Driver { public static void main(String[] args) { House[] houses = { new House("900 N 10th ST", "Fairfield", 9000), new House("1000 W 8th ST", "Fairfield", 8000), new House("300 N 4th ST", "Fairfield", 10000) }; Condo[] condos = { new Condo("20 Main ST", "Fairfield", 2), new Condo("40 Burlington ST", "Fairfield", 3), new Condo("100 Main ST", "Fairfield", 5) }; Trailer[] trailers = { new Trailer("No 1 Center Park", "New York"), new Trailer("No 2 Center Park", "New York") }; List<House> houseList = Arrays.asList(houses); List<Condo> condoList = Arrays.asList(condos); List<Trailer> trailerList = Arrays.asList(trailers); List<Property> propertyList = Admin.refactorPropertyList(houseList, condoList, trailerList); double totalRent = Admin.computeTotalRent(propertyList); System.out.println("Your total rent is " + totalRent + "\n"); Admin.listPropertyByCity(propertyList, "Fairfield"); Admin.listPropertyByCity(propertyList, "New York"); } }
[ "pain2589@gmail.com" ]
pain2589@gmail.com
442e7cd5071e6fd31c218d2f0886fa2040f488ac
bba1e74e4a6519fb7eb7f39150b20bb2bd9a2f68
/TCIWS/CollectionDemo/src/SetDemo.java
385028289902c6c4a8947ccc5202a3ef04d4d240
[]
no_license
webutech/TCI_Pune_2017
c69f8790a808940defdd4f347db242ed8bfad411
310d909f3b5c3720f52ea52f7c932076d1ac437b
refs/heads/master
2021-01-23T22:19:10.727839
2017-09-09T14:17:24
2017-09-09T14:17:24
102,924,873
0
0
null
null
null
null
UTF-8
Java
false
false
566
java
import java.util.HashSet; import java.util.Iterator; public class SetDemo { public static void main(String[] args) { HashSet set=new HashSet(); set.add("Pankaj"); set.add("Bhopal"); set.add("Indore"); System.out.println(set); System.out.println("Using For Each....."); for (Object element : set) { System.out.println(element); } System.out.println("using Iterator........."); Iterator it=set.iterator(); while(it.hasNext()){ Object element=it.next(); System.out.println(element); } } }
[ "noreply@github.com" ]
noreply@github.com
6102e7d8b8a3c445210be5d7fa46fce6ac21a04f
24a5ee772bccc50a7a9ca19d22a2407ba05958be
/15 GUI Programming/Demo20.java
cf4a7b3ded24f2af680ad278d0ff647df405b92f
[]
no_license
Lakshay-Dhingra/Java-Concepts
b4fda2e81481ab5c8ccff922c9ca0952d5581860
14ff1fadde156de445b1f34d9c60fc298e6cb5bf
refs/heads/master
2022-12-06T16:03:01.558253
2020-08-05T11:27:38
2020-08-05T11:27:38
285,266,752
1
0
null
null
null
null
UTF-8
Java
false
false
26
java
//without using any layout
[ "lakshaydhingra32969@gmail.com" ]
lakshaydhingra32969@gmail.com
065fb1bd8b24dd1d060c556eadbd3e9ab49686f9
1d35f3630148deb0e22ccedb15980ba004023549
/simpleanimation/src/main/java/com/hq/simpleanimation/load/ball/ElasticBallBuilder.java
ae6727b1867302abe8929648a5f253e77fb5562a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
wwan12/SimpleExample_v1
95aa6f912911754d3edc19d8ac1a613e982a0fad
8b6675c8ab9d251086429a038d100a8c9d9098b2
refs/heads/master
2023-08-13T22:17:36.922406
2023-06-25T09:14:57
2023-06-25T09:14:57
174,499,736
0
0
null
null
null
null
UTF-8
Java
false
false
8,805
java
package com.hq.simpleanimation.load.ball; import android.animation.Animator; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; import androidx.annotation.FloatRange; import android.view.animation.AccelerateInterpolator; import android.view.animation.BounceInterpolator; import android.view.animation.DecelerateInterpolator; import java.util.LinkedList; public class ElasticBallBuilder extends BaseBallBuilder { //动画间隔时间 private static final long DURATION_TIME = 333; //最终阶段 private static final int FINAL_STATE = 2; //小球共5个位置 private static final int SUM_POINT_POS = 5; //背景圆集合 private final LinkedList<CirclePoint> mBGCircles = new LinkedList<>(); private float mBallR; private Path mPath; //当前动画阶段 private int mCurrAnimatorState = 0; //每个小球的偏移量 private float mCanvasTranslateOffset; //当前状态是否翻转 private boolean mIsReverse = false; //当前小球的位置 private int mCurrPointPos = 0; @Override protected void initParams(Context context) { mBallR = getAllSize() / SUM_POINT_POS; mCanvasTranslateOffset = getIntrinsicWidth() / SUM_POINT_POS; mPath = new Path(); initPaint(5); initPoints(mBallR); initBGPoints(); } /** * 背景圆点初始化 */ private void initBGPoints() { float centerX = getViewCenterX(); float centerY = getViewCenterY(); CirclePoint p_0 = new CirclePoint(centerX - mCanvasTranslateOffset * 2, centerY); CirclePoint p_1 = new CirclePoint(centerX - mCanvasTranslateOffset, centerY); CirclePoint p_2 = new CirclePoint(centerX, centerY); CirclePoint p_3 = new CirclePoint(centerX + mCanvasTranslateOffset, centerY); CirclePoint p_4 = new CirclePoint(centerX + mCanvasTranslateOffset * 2, centerY); p_0.setEnabled(false);//默认第一个圆不显示 mBGCircles.add(p_0); mBGCircles.add(p_1); mBGCircles.add(p_2); mBGCircles.add(p_3); mBGCircles.add(p_4); } @Override protected void onDraw(Canvas canvas) { drawBG(canvas); drawBall(canvas); } /** * 绘制小球 * * @param canvas */ private void drawBall(Canvas canvas) { canvas.save(); mPaint.setStyle(Paint.Style.FILL_AND_STROKE); float offsetX = mBGCircles.size() / 2 * mCanvasTranslateOffset; canvas.translate(-offsetX + mCanvasTranslateOffset * mCurrPointPos, 0); super.drawBall(canvas, mPath, mPaint); canvas.restore(); } /** * 绘制背景圆 * * @param canvas */ private void drawBG(Canvas canvas) { canvas.save(); mPaint.setStyle(Paint.Style.STROKE); for (CirclePoint point : mBGCircles) { point.draw(canvas, mBallR, mPaint); } canvas.restore(); } @Override protected void prepareStart(ValueAnimator floatValueAnimator) { floatValueAnimator.setDuration(DURATION_TIME); } @Override protected void prepareEnd() { } @Override protected void computeUpdateValue(ValueAnimator animation, @FloatRange(from = 0.0, to = 1.0) float animatedValue) { float offset = mCanvasTranslateOffset; int currState = mIsReverse ? mCurrAnimatorState + 3 : mCurrAnimatorState; switch (currState) { case 0: animation.setDuration(DURATION_TIME); animation.setInterpolator(new AccelerateInterpolator()); mBallPoints.get(5).setOffsetX(animatedValue * offset); mBallPoints.get(6).setOffsetX(animatedValue * offset); mBallPoints.get(7).setOffsetX(animatedValue * offset); break; case 1: animation.setDuration(DURATION_TIME + 111); animation.setInterpolator(new DecelerateInterpolator()); mBallPoints.get(2).setOffsetX(animatedValue * offset); mBallPoints.get(3).setOffsetX(animatedValue * offset); mBallPoints.get(4).setOffsetX(animatedValue * offset); mBallPoints.get(8).setOffsetX(animatedValue * offset); mBallPoints.get(9).setOffsetX(animatedValue * offset); mBallPoints.get(10).setOffsetX(animatedValue * offset); break; case 2: animation.setDuration(DURATION_TIME + 333); animation.setInterpolator(new BounceInterpolator()); mBallPoints.get(0).setOffsetX(animatedValue * offset); mBallPoints.get(1).setOffsetX(animatedValue * offset); mBallPoints.get(11).setOffsetX(animatedValue * offset); break; case 3: animation.setDuration(DURATION_TIME); animation.setInterpolator(new AccelerateInterpolator()); mBallPoints.get(0).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(1).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(11).setOffsetX((1 - animatedValue) * offset); break; case 4: animation.setDuration(DURATION_TIME + 111); animation.setInterpolator(new DecelerateInterpolator()); mBallPoints.get(2).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(3).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(4).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(8).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(9).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(10).setOffsetX((1 - animatedValue) * offset); break; case 5: animation.setDuration(DURATION_TIME + 333); animation.setInterpolator(new BounceInterpolator()); mBallPoints.get(5).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(6).setOffsetX((1 - animatedValue) * offset); mBallPoints.get(7).setOffsetX((1 - animatedValue) * offset); break; } } @Override public void onAnimationRepeat(Animator animation) { if (++mCurrAnimatorState > FINAL_STATE) {//还原到第一阶段 mCurrAnimatorState = 0; /* 小球位置改变 */ if (mIsReverse) {//倒序 mCurrPointPos--; } else {//顺序 mCurrPointPos++; } /* 重置并翻转动画过程 */ if (mCurrPointPos >= SUM_POINT_POS - 1) {//倒序 mIsReverse = true; mCurrPointPos = SUM_POINT_POS - 2;//I Don't Know for (int i = 0; i < mBGCircles.size(); i++) { CirclePoint point = mBGCircles.get(i); if (i == mBGCircles.size() - 1) { point.setEnabled(true); } else { point.setEnabled(false); } } } else if (mCurrPointPos < 0) {//顺序 mIsReverse = false; mCurrPointPos = 0; for (int i = 0; i < mBGCircles.size(); i++) { CirclePoint point = mBGCircles.get(i); if (i == 0) { point.setEnabled(false); } else { point.setEnabled(true); } } } //每个阶段恢复状态,以及对背景圆的控制 if (mIsReverse) {//倒序 //恢复状态 for (CirclePoint point : mBallPoints) { point.setOffsetX(mCanvasTranslateOffset); } mBGCircles.get(mCurrPointPos + 1).setEnabled(true); } else {//顺序 //恢复状态 for (CirclePoint point : mBallPoints) { point.setOffsetX(0); } mBGCircles.get(mCurrPointPos).setEnabled(false); } } } }
[ "376954839@qq.com" ]
376954839@qq.com
fe8d4dda6bc80c19ed8a58f598508a0acaaf0798
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2016/8/ConvertNonCoreEdgeStoreCliTest.java
b59f33518d7bab0e3f392bc0b333f2345238ec97
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
2,448
java
/* * Copyright (c) 2002-2016 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.coreedge.convert; import org.junit.Test; import static junit.framework.TestCase.fail; import static org.junit.Assert.assertTrue; public class ConvertNonCoreEdgeStoreCliTest { @Test public void shouldIndicateMissingHomeDir() throws Throwable { try { // given ConvertNonCoreEdgeStoreCli.main( new String[]{""} ); fail( "Should have thrown IllegalArgumentException" ); } catch ( IllegalArgumentException exception ) { assertTrue(exception.getMessage(), exception.getMessage().contains( "Missing argument 'home-dir'" ) ); } } @Test public void shouldIndicateMissingDatabase() throws Throwable { try { // given ConvertNonCoreEdgeStoreCli.main( new String[]{"--home-dir", "foo"} ); fail( "Should have thrown IllegalArgumentException" ); } catch ( IllegalArgumentException exception ) { assertTrue(exception.getMessage(), exception.getMessage().contains( "Missing argument 'database'" ) ); } } @Test public void shouldIndicateMissingConfig() throws Throwable { try { // given ConvertNonCoreEdgeStoreCli.main( new String[]{"--home-dir", "foo", "--database", "foo"} ); fail( "Should have thrown IllegalArgumentException" ); } catch ( IllegalArgumentException exception ) { assertTrue(exception.getMessage(), exception.getMessage().contains( "Missing argument 'config'" ) ); } } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
132b2a386f3c6dd052a498e66ba7058babe6d4bb
b0a56c8ebf2b5a87241d2e53318472d2332af8fc
/src/model/AlunoReport.java
f026fffa7ab8e3479dd44a67d07e89e60e85a681
[]
no_license
nathaliacosim/sistema-matricula-java
6110e728d70ef9a9a6117e72fb8a99d47b2fa30e
844016ec887f392de8d8c9bf70de9fd6b6f11331
refs/heads/master
2022-11-08T23:50:04.021568
2020-07-01T22:31:46
2020-07-01T22:31:46
276,494,633
0
0
null
null
null
null
UTF-8
Java
false
false
1,706
java
package model; public class AlunoReport { private int id; private String nome; private String sexo; private int idade; private int peso; private String telefone; private String email; private String endereco; public AlunoReport() {} public AlunoReport(int id, String nome, String sexo, int idade, int peso, String telefone, String email, String endereco) { this.id = id; this.nome = nome; this.sexo = sexo; this.idade = idade; this.peso = peso; this.telefone = telefone; this.email = email; this.endereco = endereco; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getSexo() { return sexo; } public void setSexo(String sexo) { this.sexo = sexo; } public int getIdade() { return idade; } public void setIdade(int idade) { this.idade = idade; } public int getPeso() { return peso; } public void setPeso(int peso) { this.peso = peso; } public String getTelefone() { return telefone; } public void setTelefone(String telefone) { this.telefone = telefone; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getEndereco() { return endereco; } public void setEndereco(String endereco) { this.endereco = endereco; } }
[ "nathalia.cosim@novaandradina.org" ]
nathalia.cosim@novaandradina.org
0af0f780d81325e65f11617dbd6ffa59e1315000
5ec648611e13df34f71a6c75667f1a838d351218
/GildedRoseKata/src/gildedrose/IniciarCiclo.java
47e241e186d6e1d3b2043a136f0ebc14db6ce69a
[]
no_license
MiguelAngelVM/GilgerRoseKata
057481f3b9d5834e99013c229e6c81b62b0f79ca
01caf378c35308138cc08377cd82b9b7580d1635
refs/heads/master
2021-01-10T16:20:53.888403
2015-11-07T00:49:29
2015-11-07T00:49:29
43,983,365
0
0
null
null
null
null
UTF-8
Java
false
false
361
java
package gildedrose; public class IniciarCiclo implements Command{ private InterfaceProducto interfaceProducto; public IniciarCiclo(InterfaceProducto interfaceProducto) { this.interfaceProducto = interfaceProducto; } @Override public void execute(Item item) { // TODO Auto-generated method stub interfaceProducto.detallesDelProduto(item); } }
[ "a20130233@utem.edu.mx" ]
a20130233@utem.edu.mx
ddee2ace92c1d98254667aa7b9ef7b79fd0e57b5
2f6d4f07887867168257550d7bfa2a498452beeb
/src/main/java/edu/progmatic/messenger/constans/DateMatcher.java
724d78409773f1adb07dcfd93432ab7a458d2ae5
[]
no_license
tothcsaba92/Web-Forum
39737368725884e3c1f88718414ea5c20abf6bb1
309257b8ef12f433fc14c80ba169024cfd007e2e
refs/heads/master
2022-12-10T18:19:13.367224
2020-07-25T18:33:40
2020-07-25T18:33:40
272,801,043
0
0
null
2020-09-09T19:31:45
2020-06-16T20:03:25
JavaScript
UTF-8
Java
false
false
139
java
package edu.progmatic.messenger.constans; /** * * @author csaba */ public interface DateMatcher { boolean matches(String date); }
[ "toth.csaba.szeged@gmail.com" ]
toth.csaba.szeged@gmail.com
dff157ee13c815ec282516129dee6eca01b54f73
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_45525.java
2f301265c4640beffb95b3f904c14d3232fae794
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
/** * ????????????????? * @param methodName ??? * @param configKey ??key????? * @param defaultValue ??? * @return ??? method config value */ public Object getMethodConfigValue(String methodName,String configKey,Object defaultValue){ Object value=getMethodConfigValue(methodName,configKey); return value == null ? defaultValue : value; }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
523a1f596bafdf1f7364b765f694349696ec9e5e
5f1344106dfe553c221290959fd7c1050a71e5dd
/discovery-service/src/test/java/il/ac/afeka/fdp/discovery/DiscoveryServiceApplicationTests.java
fede9ab34c4b7bb561c99715313f1e65a7630f69
[]
no_license
FDP-ASIS/Server
57bc00d13d2a6aae68f9072559253fcb0a7f29e7
3fb3ea01b91b2f908d751338ef50394319dad8d2
refs/heads/master
2022-11-25T17:25:42.410041
2020-07-30T09:30:41
2020-07-30T09:30:41
265,185,255
1
0
null
2020-07-30T09:30:42
2020-05-19T08:08:51
Java
UTF-8
Java
false
false
227
java
package il.ac.afeka.fdp.discovery; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class DiscoveryServiceApplicationTests { @Test void contextLoads() { } }
[ "liadkh95@gmail.com" ]
liadkh95@gmail.com
2a14a70d57c6edf563cd4a32dbc5c6de7680e99e
50694f80c0443eba692b819b550030ba10a74b35
/org.xjtusicd3.portal/src/main/java/org/xjtusicd3/portal/controller/ITIL/ChangeController.java
698b48e4490e760f41cdd5a603cb078754333f12
[]
no_license
zhuzhangli/robotTwo
d6dda291534da25696b9688ad501fdb10e197755
afff265b80b60a935b4612297a181825d172ded0
refs/heads/master
2021-08-31T12:57:14.772927
2017-12-21T10:45:37
2017-12-21T10:45:37
114,988,044
1
0
null
null
null
null
UTF-8
Java
false
false
8,048
java
package org.xjtusicd3.portal.controller.ITIL; import java.util.List; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import org.xjtusicd3.portal.service.ChangeService; import org.xjtusicd3.portal.view.EquipmentComputerView; @Controller public class ChangeController { //ITIL管理流程_变更管理 @RequestMapping(value="changePage",method=RequestMethod.GET) public ModelAndView changePage(){ ModelAndView mv=new ModelAndView("changePage"); //获取当前用户配置信息 List<Map<String, Object>> ClientDeviceList = ChangeService.findCurrentCfgInfo(); //###### 加入硬件和软件比较信息 ###### GetDeviceInfo(ClientDeviceList); mv.addObject("ClientDeviceList", ClientDeviceList); return mv; } private void GetDeviceInfo(List<Map<String, Object>> TableList_hardware) { // 设备是否被修改标志 Integer Changeflag; // 用于比较的临时字段 String tep_cmp_register; String tep_cmp_current; // 遍历列表 得到所有设备 for(int i=0;i<TableList_hardware.size();i++) { // 初始化当前设备的改变标志 0-未改变 1-改变了 2-未找到 Changeflag = 0; // 设备表中的信息 Map<String, Object> map = TableList_hardware.get(i); String macAddress =(String) map.get("MACADDRESS"); // 根据MAC地址查找当前设备资源表 返回 CurrentClientDevice 客户机对象 EquipmentComputerView temp_CurrentDeviceClient = ChangeService.FindEquipmentFromBasicByMac(macAddress); // 分为 找到 和 没找到 if(temp_CurrentDeviceClient != null) { System.out.println("当前设备已找到对应设备"); System.out.println(temp_CurrentDeviceClient.getMACADDRESS()); System.out.println("结束"); /************************ 硬件是否改变功能 ******************************/ // 对返回对象的属性值逐一进行比较 并将副本属性加入到原先的map对象中 // 要对比的属性有七个 只要一个返回 true(即属性发生了改变)则列表“硬件是否改变” 标志就要显示 “是” Boolean tem_falg1 = AddCurrentDeviceAttrToMap(map,"CPU",temp_CurrentDeviceClient); Boolean tem_falg2 = AddCurrentDeviceAttrToMap(map,"RAM",temp_CurrentDeviceClient); Boolean tem_falg3 = AddCurrentDeviceAttrToMap(map,"HARDDRIVER",temp_CurrentDeviceClient); Boolean tem_falg4 = AddCurrentDeviceAttrToMap(map,"NETWORKCARD",temp_CurrentDeviceClient); Boolean tem_falg5 = AddCurrentDeviceAttrToMap(map,"MOTHERBOARD",temp_CurrentDeviceClient); Boolean tem_falg6 = AddCurrentDeviceAttrToMap(map,"GRAPHICCARD",temp_CurrentDeviceClient); Boolean tem_falg7 = AddCurrentDeviceAttrToMap(map,"OSNAME",temp_CurrentDeviceClient); // 加入硬件是否改变标志 这里只是一个设备的硬件改变标志 if(tem_falg1||tem_falg2||tem_falg3||tem_falg4||tem_falg5||tem_falg6||tem_falg7) { map.put("Hardware_Changeflag", 1); } else { map.put("Hardware_Changeflag", 0); } /************************ 软件是否改变功能 ******************************/ /* System.out.println("进入软件信息配置阶段"); Integer i_DeviceSoftConfigChangeFlag = 0; //###### 返回设备对应的软件列表 ###### List<Map<String, Object>> TableList_software = DevCfgService.FindDeviceSoftwareConfigsByDeviceID(temp_DeviceID); if(TableList_software.size()==0) { map.put("AllSoftware_Changeflag", 2); } else { //###### 改造返回列表并返回 整个软件是否改变 的标志 ###### i_DeviceSoftConfigChangeFlag = DevCfgService.GetDeviceSoftwareConfigsInfo(TableList_software,temp_DeviceID); if(i_DeviceSoftConfigChangeFlag == 1) { // 当前设备表中有设备 但当前配置表中有该设备的配置 但配置不一致 map.put("AllSoftware_Changeflag", 1); } else { // 当前设备表中有设备 但当前配置表中有该设备的配置 而且配置一致 map.put("AllSoftware_Changeflag", 0); } } */ } else { System.out.println("当前设备表中没有对应设备 "); map.put("Hardware_Changeflag", 2); map.put("AllSoftware_Changeflag", 3); } /************************************************** 测试结果输出代码 输出当前软件配置 ****************************************************/ // // 在 map 对象中加入是否改变的标志位 // Iterator entries = map.entrySet().iterator(); // System.out.println("############################## 输出客户机展示页面传入的map 第"+ i+ "条设备#####################################"); // System.out.println("********** 这是一条设备信息 *********"); // while (entries.hasNext()) // { // Map.Entry entry = (Map.Entry) entries.next(); // String key = (String)entry.getKey(); // Object value = entry.getValue(); // System.out.println("Key = " + key + ", Value = " + value); // } /************************************************** 测试结果输出代码 结束 *********************************************************/ } } /***************** 工具函数 ********************/ /* 添加当前设备中要和注册设备比较的属性值至传至前台的 map * Map<String, Object> map, 要传至前台的 map * String attr, 传入 map 的属性值名称 * attr + "_cur" 当前设备表中的对应的 attr 属性 * attr + "_cmp" 与传入设备对应的当前设备表中的对应的 attr 属性的比较结果 1不同(改变了) 0 相同(两边一样) * CurrentDeviceClient cur_dev 与传入设备对应的当前设备客户机对象 * * 返回值 传入设备和当前设备attr属性的比较结果 1不同(改变了) 0 相同(两边一样) * */ private Boolean AddCurrentDeviceAttrToMap(Map<String, Object> map, String attr,EquipmentComputerView cur_dev) { // 处理器 String tep_cmp_register = (String) map.get(attr); String tep_cmp_current = ""; Boolean Changeflag; // 每个case代表要比较的参数 分别去调用当前设备的相应参数 switch(attr) { // 处理器 case "CPU": tep_cmp_current = cur_dev.getCPU(); break; // 内存 case "RAM": tep_cmp_current = cur_dev.getRAM(); break; // 硬盘 case "HARDDRIVER": tep_cmp_current = cur_dev.getSTORAGE(); break; // 网卡 case "NETWORKCARD": tep_cmp_current = cur_dev.getNETWORKCARD(); break; // 主板 case "MOTHERBOARD": tep_cmp_current = cur_dev.getMOTHERBOARD(); break; // 显卡 case "GRAPHICCARD": tep_cmp_current = cur_dev.getGRAPHICCARD(); break; // 操作系统 case "OSNAME": tep_cmp_current = cur_dev.getOSNAME(); break; default: System.out.println("出错了!对象没匹配上"); } // 将副本属性加入到原先的map对象中 /* 原属性名 + 后缀_Curr 代表当前设备对应的属性*/ map.put(attr + "_cur", tep_cmp_current); if(!tep_cmp_register.equals(tep_cmp_current)) {// 如果不相等说明设备改变了 Changeflag = true; // 将属性比较结果加入到map对象中 map.put(attr +"_cmp", 1); } else { Changeflag = false; map.put(attr +"_cmp", 0); } return Changeflag; } }
[ "532878474@qq.com" ]
532878474@qq.com
ee9520cab7ffbae16657383fa2588abf77016b3f
ce54f806d6571cc8f070c96458fa39e426fc9850
/src/main/java/com/dimon/tryjava/myIO/IOServer.java
4d0f795eed3ecfc02b04553172c9954d8ee720b5
[]
no_license
leonardMel/javaExamples
889cd92997f4a72d785bdc2d2f8f2855efe8562f
40931ad0e6ae84e79d39daade2ad4e90502e8038
refs/heads/master
2020-03-29T19:02:43.816997
2018-10-15T12:39:21
2018-10-15T12:39:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,446
java
package com.dimon.tryjava.myIO; import java.io.IOException; import java.io.InputStream; import java.net.ServerSocket; import java.net.Socket; /** * Created by limeng on 2018/10/4. */ //https://juejin.im/book/5b4bc28bf265da0f60130116/section/5b4bc28b5188251b1f224ee5 public class IOServer { public static void main(String[] args) throws Exception { ServerSocket serverSocket = new ServerSocket(8000); // (1) 接收新连接线程 new Thread(() -> { while (true) { try { // (1) 阻塞方法获取新的连接 Socket socket = serverSocket.accept(); // (2) 每一个新的连接都创建一个线程,负责读取数据 new Thread(() -> { try { int len; byte[] data = new byte[1024]; InputStream inputStream = socket.getInputStream(); // (3) 按字节流方式读取数据 while ((len = inputStream.read(data)) != -1) { System.out.println(new String(data, 0, len)); } } catch (IOException e) { } }).start(); } catch (IOException e) { } } }).start(); } }
[ "limeng0525@gmail.com" ]
limeng0525@gmail.com
380a54d2069fd109cee1a529527ef3a917dce4f7
173c50f2cc37e9abd8937c33135b29196575bcc0
/Thurs/src/com/moto/thurs/WorkerInterface.java
07fc7d79b2457f45b7e0ca25364974a2304c25eb
[]
no_license
madhuradole/visa_9_28
9ee9d4970eaa1b7f4e8f9b2c871a7963c1bdbe48
a1b12f7467d9b5d432f7c26a95a148100f7c23d3
refs/heads/master
2022-12-24T01:28:39.695750
2020-10-01T20:10:47
2020-10-01T20:10:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
115
java
package com.moto.thurs; @FunctionalInterface public interface WorkerInterface { void doSomeWork(String x); }
[ "jwkidd3@Johns-MacBook-Air-2.local" ]
jwkidd3@Johns-MacBook-Air-2.local
e324ef0cefacce0d0a7ec3436e3760f56eb8fe07
1605ba164469b1e537bdce82fa441f81a0f11c61
/java-basic/app/src/main/java/Hello2.java
be17236e2aa8ca224db28f9ecf593c550380bf5f
[]
no_license
aaaahhhh1818/bitcamp-study
a92e0454ffe3d54066feb35719aed0d96d7d1a05
98b331416d21bac8ed2d3eb712024393dc3727ed
refs/heads/main
2023-08-30T15:51:54.740367
2021-10-10T08:03:11
2021-10-10T08:03:11
374,932,590
0
0
null
null
null
null
UTF-8
Java
false
false
298
java
class Hello2 { public static void main(String[] arge) { System.out.println("Hello, world!"); } void f1() { System.out.println("Hello, world!2"); } void f2() { System.out.println("Hello, world!3"); } }
[ "aaaaahhhhh1818@hanmail.net" ]
aaaaahhhhh1818@hanmail.net
8e836f0e8d2150a3240f688e0acb2ae324e0504f
e223e1b0d99d4cdb10fda93eb0e357a606a0099b
/manager/api/beans/src/main/java/io/apiman/manager/api/beans/metrics/UsageHistogramIntervalType.java
06f1164ad74e38678d773eba494d0e4af90f2e04
[ "Apache-2.0" ]
permissive
kouao/apiman
ca2fa34ba34a1409226bc42cd342be464d94d69e
30f475e602d1b2c30278266059f0f414912fc884
refs/heads/master
2020-12-14T08:55:06.803866
2015-06-25T18:57:20
2015-06-25T18:57:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
824
java
/* * Copyright 2015 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.apiman.manager.api.beans.metrics; /** * The various intervals allowed for a histogram metric. * * @author eric.wittmann@redhat.com */ public enum UsageHistogramIntervalType { month, week, day, hour, minute }
[ "eric.wittmann@gmail.com" ]
eric.wittmann@gmail.com