blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f79da2acbe8dfcbc8d46171ffdeb1332259e8a23 | 00ee33b33c8fc08ec9c8b296387c6c9ecd6f0fc8 | /src/test/java/br/com/sergio/udemy/tutorial/TutorialApplicationTests.java | e97ff233727f1ba766b823a338eeb48eeb3f6dfa | [] | no_license | SergioFabresFilho/SpringCourse | 3a4f6e6cb981366ed3c679bad4f6f09b6f64573c | 1334a21d071bd33bb9a5d9c6bfdfbfb446fd3363 | refs/heads/master | 2020-05-19T16:01:45.230924 | 2019-05-06T01:42:31 | 2019-05-06T01:42:31 | 185,097,313 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 356 | java | package br.com.sergio.udemy.tutorial;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class TutorialApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"sergio.fabres27@gmail.com"
] | sergio.fabres27@gmail.com |
54ecbadc8581cd5b899ef2695b8fd5c72cf21073 | 1410471deb9a69d7526be876fccbe0b2e0780cc1 | /app/src/main/java/com/example/karim/cleaneradmin/Model/Clean.java | 50efa059627ab9ec316b6b0d73912d36dbe1791d | [] | no_license | KarimElshaweish/CleanerAdmin | 8f4a2b56a32754f092dede92af32128d397a2893 | 58a97e023b5b5e93acdeb028ef52a81fe5ebae13 | refs/heads/master | 2020-03-27T00:19:50.815655 | 2018-08-21T20:01:37 | 2018-08-21T20:01:37 | 145,613,247 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 254 | java | package com.example.karim.cleaneradmin.Model;
/**
* Created by Karim on 8/1/2018.
*/
public class Clean {
String Type;
public String GetType() {
return Type;
}
public void SetType(String type) {
Type = type;
}
}
| [
"KarimAshrafElshaweish@outlook.com"
] | KarimAshrafElshaweish@outlook.com |
703f702d5cc83e7a595543f6e5d18d5e46166004 | 421a8c5d7093e6c10bd233b95172fb1afd983205 | /src/main/java/weixin/pojo/BaseMessage.java | f43eece768623208a95e38a2b3de6ac3807c31ce | [] | no_license | zhangdengjie/web_restful | ab681a006d837f535b2ffc1f2e3cf82b613ac210 | 5959a0383c9501b5bb9e49c223cdeb8eee50b2e1 | refs/heads/master | 2021-01-10T01:43:52.446397 | 2017-03-21T13:37:36 | 2017-03-21T13:37:36 | 48,519,069 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 811 | java | package weixin.pojo;
/**
* 消息父类
* @author Stephen
*
*/
public class BaseMessage {
//接收方微信号
private String ToUserName;
//发送方微信号
private String FromUserName;
//创建时间
private long CreateTime;
//消息类型
private String MsgType;
public String getToUserName() {
return ToUserName;
}
public void setToUserName(String toUserName) {
ToUserName = toUserName;
}
public String getFromUserName() {
return FromUserName;
}
public void setFromUserName(String fromUserName) {
FromUserName = fromUserName;
}
public long getCreateTime() {
return CreateTime;
}
public void setCreateTime(long createTime) {
CreateTime = createTime;
}
public String getMsgType() {
return MsgType;
}
public void setMsgType(String msgType) {
MsgType = msgType;
}
}
| [
"zhangdj_xy@163.com"
] | zhangdj_xy@163.com |
3ae2401371ca0e0f5eeea99287d74520ab6255bc | d4ec073a73ba2993eed8841aea2892dc4202e3a5 | /src/main/java/edlobez/es/config/MyWebApplicationInitializer.java | 23169bfa681698de3b196b8ca9c9eb4fb634c3d4 | [] | no_license | edlobez/sportApp | 6280dfe911406e9437eec542573cc481fed188f6 | 657a8485992bb9e53849052015867a5deb1ee04b | refs/heads/master | 2023-01-03T05:21:45.248036 | 2020-11-01T18:03:17 | 2020-11-01T18:03:17 | 306,696,790 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 771 | 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 edlobez.es.config;
/**
*
* @author edlobez-vbox
*/
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
public class MyWebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
@Override
protected Class<?>[] getRootConfigClasses() {
return null;
}
@Override
protected Class<?>[] getServletConfigClasses() {
return new Class[]{WebAppConfig.class};
}
@Override
protected String[] getServletMappings() {
return new String[]{"/"};
}
}
| [
""
] | |
66282e5f93338fffa857c72f1beb324835738764 | a1b8bbf3c55ca2a282b24c15a270ec550fd77215 | /AmyClinic/src/main/java/group3/k/chart/model/SpaToSalesDAO_interface.java | e645410a43887b15b08a5e1f7f6ee64790cea460 | [] | no_license | EEIT85team03/AmyClinic | 02b868f4817d9947888c781915f8fbe602263139 | a05b3e981b8b74d92960371fc9099a302b132b59 | refs/heads/master | 2021-01-22T13:30:39.080164 | 2016-06-22T03:00:04 | 2016-06-22T03:00:04 | 56,029,947 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 198 | java | package group3.k.chart.model;
import java.util.List;
public interface SpaToSalesDAO_interface {
public List<SpaToSalesVO> getAll();
public List<SpaToSalesVO> findByYear(Integer year);
}
| [
"kismypsy@yahoo.com"
] | kismypsy@yahoo.com |
953dd9332ce448197ddec52a960c3bfc4c411bb0 | bbfafcf66997bb77e90ace0ca6125f5256235af7 | /Behavioral Patterns/StatePattern/src/com/adam/app/pattern/state/IState.java | b1fd644e01958df6ea66d0dedb4a5546d4256fbb | [] | no_license | doremichen/desin_pattern_exercise | 46634ad80760efee6c6388cebf1e3ef573751c6e | 76696d0bc68fe5c98ae4bffb7ee106480ee7d0c2 | refs/heads/master | 2021-07-14T07:45:19.096871 | 2020-10-30T01:13:52 | 2020-10-30T01:13:52 | 218,659,572 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 131 | java | /**
* This is state pattern example
*/
package com.adam.app.pattern.state;
public interface IState {
void doAction();
}
| [
"mnre2003@yahoo.com.tw"
] | mnre2003@yahoo.com.tw |
77bf09e18c9b3d2d958b5139b08c5bf1ccfb4295 | b981adc8c61bde65de86722b54475e99a1ef4ca5 | /facedetectionlib/vendor/opencv/java/src/org/opencv/objdetect/Objdetect.java | 01395914e2a7c3bd81a5b97693e46799c79b36d0 | [] | no_license | tanaka-yui/face-detection-lib | b02344c43b4e0f8be4e1fae1fc4b012a97767e10 | c089ff344bad0e2646a3b60ab93b6aca488fe8f9 | refs/heads/master | 2022-11-15T18:51:44.280875 | 2020-07-09T22:52:30 | 2020-07-09T22:52:30 | 257,535,005 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,841 | java | //
// This file is auto-generated. Please don't modify it!
//
package vendor.opencv.java.src.org.opencv.objdetect;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Mat;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfRect;
import org.opencv.utils.Converters;
// C++: class Objdetect
//javadoc: Objdetect
public class Objdetect {
public static final int
CASCADE_DO_CANNY_PRUNING = 1,
CASCADE_SCALE_IMAGE = 2,
CASCADE_FIND_BIGGEST_OBJECT = 4,
CASCADE_DO_ROUGH_SEARCH = 8;
//
// C++: void cv::groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
//
//javadoc: groupRectangles(rectList, weights, groupThreshold, eps)
public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold, double eps)
{
Mat rectList_mat = rectList;
Mat weights_mat = weights;
groupRectangles_0(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold, eps);
return;
}
//javadoc: groupRectangles(rectList, weights, groupThreshold)
public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold)
{
Mat rectList_mat = rectList;
Mat weights_mat = weights;
groupRectangles_1(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold);
return;
}
// C++: void cv::groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
private static native void groupRectangles_0(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold, double eps);
private static native void groupRectangles_1(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold);
}
| [
"yui.t.1552@gmail.com"
] | yui.t.1552@gmail.com |
d1c95408ab845190b6bd381ff4d670c7453c2858 | 76bcb144162473c2a99bc2ccbb3c46d916e76312 | /src/main/java/co/za/adroit/transactor/web/rest/SaleResource.java | d6972c9836eb41197b95554d81ce25d8e3e3913e | [] | no_license | Adriot/transactor-MySQL | 1ff762d4689fbe82d058ff1d0bcebf4f45db2cf6 | 8ac20687d3b866f57a8b24091bab27608fc8d62e | refs/heads/master | 2020-04-09T08:18:35.085789 | 2018-12-04T05:30:52 | 2018-12-04T05:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,844 | java | package co.za.adroit.transactor.web.rest;
import com.codahale.metrics.annotation.Timed;
import co.za.adroit.transactor.domain.Sale;
import co.za.adroit.transactor.repository.SaleRepository;
import co.za.adroit.transactor.web.rest.errors.BadRequestAlertException;
import co.za.adroit.transactor.web.rest.util.HeaderUtil;
import co.za.adroit.transactor.web.rest.util.PaginationUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
/**
* REST controller for managing Sale.
*/
@RestController
@RequestMapping("/api")
public class SaleResource {
private final Logger log = LoggerFactory.getLogger(SaleResource.class);
private static final String ENTITY_NAME = "sale";
private final SaleRepository saleRepository;
public SaleResource(SaleRepository saleRepository) {
this.saleRepository = saleRepository;
}
/**
* POST /sales : Create a new sale.
*
* @param sale the sale to create
* @return the ResponseEntity with status 201 (Created) and with body the new sale, or with status 400 (Bad Request) if the sale has already an ID
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PostMapping("/sales")
@Timed
public ResponseEntity<Sale> createSale(@Valid @RequestBody Sale sale) throws URISyntaxException {
log.debug("REST request to save Sale : {}", sale);
if (sale.getId() != null) {
throw new BadRequestAlertException("A new sale cannot already have an ID", ENTITY_NAME, "idexists");
}
Sale result = saleRepository.save(sale);
return ResponseEntity.created(new URI("/api/sales/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))
.body(result);
}
/**
* PUT /sales : Updates an existing sale.
*
* @param sale the sale to update
* @return the ResponseEntity with status 200 (OK) and with body the updated sale,
* or with status 400 (Bad Request) if the sale is not valid,
* or with status 500 (Internal Server Error) if the sale couldn't be updated
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PutMapping("/sales")
@Timed
public ResponseEntity<Sale> updateSale(@Valid @RequestBody Sale sale) throws URISyntaxException {
log.debug("REST request to update Sale : {}", sale);
if (sale.getId() == null) {
throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
}
Sale result = saleRepository.save(sale);
return ResponseEntity.ok()
.headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, sale.getId().toString()))
.body(result);
}
/**
* GET /sales : get all the sales.
*
* @param pageable the pagination information
* @return the ResponseEntity with status 200 (OK) and the list of sales in body
*/
@GetMapping("/sales")
@Timed
public ResponseEntity<List<Sale>> getAllSales(Pageable pageable) {
log.debug("REST request to get a page of Sales");
Page<Sale> page = saleRepository.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/sales");
return ResponseEntity.ok().headers(headers).body(page.getContent());
}
/**
* GET /sales/:id : get the "id" sale.
*
* @param id the id of the sale to retrieve
* @return the ResponseEntity with status 200 (OK) and with body the sale, or with status 404 (Not Found)
*/
@GetMapping("/sales/{id}")
@Timed
public ResponseEntity<Sale> getSale(@PathVariable Long id) {
log.debug("REST request to get Sale : {}", id);
Optional<Sale> sale = saleRepository.findById(id);
return ResponseUtil.wrapOrNotFound(sale);
}
/**
* DELETE /sales/:id : delete the "id" sale.
*
* @param id the id of the sale to delete
* @return the ResponseEntity with status 200 (OK)
*/
@DeleteMapping("/sales/{id}")
@Timed
public ResponseEntity<Void> deleteSale(@PathVariable Long id) {
log.debug("REST request to delete Sale : {}", id);
saleRepository.deleteById(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
}
}
| [
"amkhari@retrorabbit.co.za"
] | amkhari@retrorabbit.co.za |
9e0ae829cc1456b5bf2f2c08dc34d6e723feca70 | b37532834f760bfca4a14e83e57afe01f7ef35a9 | /spring-boot/src/main/java/cn/choleece/base/springboot/event/RouteStatus.java | c9e84ff7433a637e814781b731195bc67258999a | [] | no_license | choleece/java-base | b33ed05c85175d47865b21b4705325c69bb992eb | b001ec1acb1fe0d980961c3337cef283838330a5 | refs/heads/master | 2022-06-28T15:02:08.231429 | 2020-12-26T09:11:40 | 2020-12-26T09:11:40 | 191,352,600 | 1 | 0 | null | 2022-06-21T02:10:56 | 2019-06-11T10:54:16 | Java | UTF-8 | Java | false | false | 447 | java | package cn.choleece.base.springboot.event;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* @author choleece
* @Description: 路由状态包装类
* @Date 2020-09-05 21:00
**/
@Data
@Accessors(chain = true)
public class RouteStatus {
/**
* 订单号
*/
private String orderId;
/**
* 运单号
*/
private String mailNo;
/**
* 路由状态
*/
private String orderStatus;
}
| [
"choleece@163.com"
] | choleece@163.com |
0ecfcff0ea7f304067225194e0f383b19e79e76c | 32b72e1dc8b6ee1be2e80bb70a03a021c83db550 | /ast_results/philliphsu_ClockPlus/app/src/main/java/com/philliphsu/clock2/timers/data/TimersTableManager.java | 6d6cc08afd3d619a2adf278bbe76895565de4d06 | [] | 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 | 2,586 | java | // isComment
package com.philliphsu.clock2.timers.data;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.os.SystemClock;
import android.util.Log;
import com.philliphsu.clock2.timers.Timer;
import com.philliphsu.clock2.data.DatabaseTableManager;
/**
* isComment
*/
public class isClassOrIsInterface extends DatabaseTableManager<Timer> {
public static final String isVariable = "isStringConstant";
public isConstructor(Context isParameter) {
super(isNameExpr);
}
@Override
protected String isMethod() {
return isNameExpr.isFieldAccessExpr;
}
@Override
public TimerCursor isMethod(long isParameter) {
return isMethod(super.isMethod(isNameExpr));
}
@Override
public TimerCursor isMethod() {
return isMethod(super.isMethod());
}
public TimerCursor isMethod() {
String isVariable = isNameExpr.isFieldAccessExpr + "isStringConstant" + isNameExpr.isMethod() + "isStringConstant" + isNameExpr.isFieldAccessExpr + "isStringConstant";
return isMethod(isNameExpr, null);
}
@Override
protected TimerCursor isMethod(String isParameter, String isParameter) {
return isMethod(super.isMethod(isNameExpr, isNameExpr));
}
@Override
protected String isMethod() {
return isNameExpr.isFieldAccessExpr;
}
@Override
protected ContentValues isMethod(Timer isParameter) {
ContentValues isVariable = new ContentValues();
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr, "isStringConstant" + isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
// isComment
isNameExpr.isMethod(isNameExpr, "isStringConstant" + isNameExpr.isMethod() + "isStringConstant" + isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod());
return isNameExpr;
}
@Override
protected String isMethod() {
return isNameExpr.isFieldAccessExpr;
}
private TimerCursor isMethod(Cursor isParameter) {
return new TimerCursor(isNameExpr);
}
}
| [
"matheus@melsolucoes.net"
] | matheus@melsolucoes.net |
b226c60d9a48d6854a22d9fa4b219685e84fce83 | e2a854b37228d97afb3bef5e99d8076e85ba8c40 | /alquilerClient/src/main/java/es/jota/alquiler/gwt/client/display/vivienda/ViviendaDisplayEditarImpl.java | 0240943cb2c60795dcb210d762e0a77926617dc0 | [] | no_license | jota40/alquilerClient | 9dba514e0d4c998ee99e0ff3b38d9a0a0adb8c34 | cc7433a138a2f8d563378ed4d247d11c6bb074bc | refs/heads/master | 2020-12-02T05:24:15.429486 | 2017-07-11T14:14:19 | 2017-07-11T14:14:19 | 96,900,854 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,653 | java | package es.jota.alquiler.gwt.client.display.vivienda;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.InputElement;
import com.google.gwt.dom.client.TextAreaElement;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
import es.jota.utils.gwt.client.utils.UtilClient;
public class ViviendaDisplayEditarImpl extends Composite implements ViviendaDisplayEditar {
private static ViviendaDisplayEditarUiBinder uiBinder = GWT.create(ViviendaDisplayEditarUiBinder.class);
interface ViviendaDisplayEditarUiBinder extends UiBinder<Widget, ViviendaDisplayEditarImpl>{}
@UiField Element nombreFormGroup;
@UiField InputElement nombre;
@UiField Element nombreError;
@UiField TextAreaElement situacion;
@UiField TextAreaElement resumen;
@UiField Element capacidadFormGroup;
@UiField InputElement capacidad;
@UiField Element capacidadError;
@UiField SimplePanel bottom;
private ViviendaDisplayEditar.Presenter presenter;
private Long version;
@Override
public void setPresenter( ViviendaDisplayEditar.Presenter Presenter ) {
this.presenter = Presenter;
}
public ViviendaDisplayEditarImpl() {
initWidget(uiBinder.createAndBindUi(this));
}
@UiHandler("update")
void onClickActualizar( ClickEvent e ) {
presenter.update();
}
@Override
public void setVersion( Long version ) {
this.version = version;
}
@Override
public void setNombre( String nombre ) {
this.nombre.setValue( nombre );
}
@Override
public void setSituacion( String situacion ) {
this.situacion.setValue( situacion );
}
@Override
public void setResumen( String resumen ) {
this.resumen.setValue( resumen);
}
@Override
public void setCapacidad( Integer capacidad ) {
this.capacidad.setValue( UtilClient.Numeros.number2String( capacidad ) );
}
@Override
public Long getVersion() {
return version;
}
@Override
public String getNombre() {
return nombre.getValue();
}
@Override
public String getSituacion() {
return situacion.getValue();
}
@Override
public String getResumen() {
return resumen.getValue();
}
@Override
public Integer getCapacidad() {
return UtilClient.Numeros.string2BigDecimal( capacidad.getValue() ).intValue();
}
@Override
public SimplePanel getBottom() {
return bottom;
}
@Override
public boolean validate() {
return true;
}
} | [
"jota40@gmail.com"
] | jota40@gmail.com |
aba4e1d995a4571bbbff095b3129f723f8cdaec8 | 433c6248ba7504adef7ff98102af28aa89d5d8d9 | /Java server/src/pck_remotemouse/RemoteMouse.java | c0472f85583a980edcfbcc130e0df47c15e99135 | [] | no_license | TheCrewman/remote-mouse | 0354b3a4853991712daa0f2c815050b6bbdb302e | 4738136a6817e4fccd1cf6506f2e6c97e8a98d76 | refs/heads/master | 2021-09-05T05:48:35.182789 | 2016-09-17T11:10:35 | 2016-09-17T11:10:35 | 68,446,791 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,898 | java | package pck_remotemouse;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.event.InputEvent;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
public class RemoteMouse
{
public long computer_width;
public long computer_height;
public int[] commas;
public Robot robot;
public RemoteMouse()
{
this.computer_width = Toolkit.getDefaultToolkit().getScreenSize().width;
this.computer_height = Toolkit.getDefaultToolkit().getScreenSize().height;
this.commas = new int[4];
try
{
this.robot = new Robot();
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
public void move_mouse()
{
try
{
DatagramSocket udp_socket = new DatagramSocket(7898);
byte[] data_bytes = new byte[4096];
DatagramPacket packet = new DatagramPacket(data_bytes, 0, data_bytes.length);
udp_socket.receive(packet);
String data_string = new String(data_bytes);
udp_socket.close();
int k = 0;
for (int i = 0; i < data_string.length(); i++)
{
if (data_string.charAt(i) == ',')
{
this.commas[k] = i;
k++;
}
}
long smartphone_width = Long.valueOf(data_string.substring(this.commas[2] + 1, this.commas[3]));
long smartphone_height = Long.valueOf(data_string.substring(this.commas[3] + 1, data_string.indexOf(')')));
smartphone_width = this.map(smartphone_width, 0, Long.valueOf(data_string.substring(this.commas[0] + 1, this.commas[1])), 0, this.computer_width + 150);
smartphone_height = this.map(smartphone_height, 0, Long.valueOf(data_string.substring(this.commas[1] + 1, this.commas[2])), 0, this.computer_height + 150);
int action = Integer.valueOf(data_string.substring(data_string.indexOf('(') + 1, this.commas[0]));
if (action == 0)
{
this.robot.mouseMove((int) smartphone_width, (int) smartphone_height);
}
if (action == 1)
{
this.robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
this.robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
// DEBUG
/*
System.out.println(smartphone_width);
System.out.println(smartphone_height);
System.out.println(action);
System.out.println();
*/
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
// Arduino's function
public long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
}
| [
"danylibedev@gmail.com"
] | danylibedev@gmail.com |
9f2198dc5c0ccfbc2a96a2e619f97ae983e985e0 | 2baf73674613b738aa0464bfbec6b58fffdf0aea | /googlePlay2/src/main/java/utils/PrintDownLoadInfo.java | e83118ea58ab9315519e8ada63b9aff459577889 | [] | no_license | yulvyou/GooglePlay | af22dd6f7099c20dd86729b4ead458f4fea1ca6c | ef6ad53c8b1d6293f72824a89a4324193984937d | refs/heads/master | 2021-01-21T17:14:11.330272 | 2017-05-21T08:39:11 | 2017-05-21T08:39:11 | 91,664,663 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,185 | java | package utils;
import manager.DownLoadInfo;
import manager.DownloadManager;
/**
* @author Administrator
* @time 2015-7-13 下午11:12:12
* @des TODO
*
* @version $Rev: 49 $
* @updateAuthor $Author: admin $
* @updateDate $Date: 2015-07-20 11:29:58 +0800 (星期一, 20 七月 2015) $
* @updateDes TODO
*/
public class PrintDownLoadInfo {
public static void printDownLoadInfo(DownLoadInfo info) {
String result = "";
switch (info.state) {
case DownloadManager.STATE_UNDOWNLOAD:// 未下载
result = "未下载";
break;
case DownloadManager.STATE_DOWNLOADING:// 下载中
result = "下载中";
break;
case DownloadManager.STATE_PAUSEDOWNLOAD:// 暂停下载
result = "暂停下载";
break;
case DownloadManager.STATE_WAITINGDOWNLOAD:// 等待下载
result = "等待下载";
break;
case DownloadManager.STATE_DOWNLOADFAILED:// 下载失败
result = "等待下载";
break;
case DownloadManager.STATE_DOWNLOADED:// 下载完成
result = "下载完成";
break;
case DownloadManager.STATE_INSTALLED:// 已安装
result = "已安装";
break;
default:
break;
}
LogUtils.sf(result);
}
}
| [
"lvyou_lvyou@126.com"
] | lvyou_lvyou@126.com |
11730bdec75d089ae39e3148d3317e953e17c170 | 6bbdaba6f6acbb5fa2c8add0ec4ce24d4f0827a3 | /revenge-of-the-table/testSuite/TableAppend/build/TableAppend.java | 4906424564404fcdd7add127ac4622c11a6a9487 | [] | no_license | jaredp/jaredp.repo | f15a4e35d2a5edb8282de07fe3321cb5b0709a3d | 1b2a9291ad4adf6c36210262ae8512df4f0d9886 | refs/heads/master | 2021-01-01T18:18:32.016508 | 2013-01-14T01:12:47 | 2013-01-14T01:12:47 | 838,889 | 8 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,153 | java |
/*
Generated by the Return of the Table compiler.
*/
import rtlib.*;
import java.util.Scanner;
public class TableAppend {
static UserDefinedType rt0;
static Table rt1;
static Table rt2;
private static Scanner input;
static String globArgs[];
public static void main(String args[]) {
input = new Scanner(System.in);
globArgs = new String[args.length];
for(int globArgCounter = 0; globArgCounter < args.length; globArgCounter++)
globArgs[globArgCounter] = args[globArgCounter];
TableAppend.rt0 = new UserDefinedType("User");
TableAppend.rt0.add("User's name", Data.STRING_TYPE);
TableAppend.rt0.add("User's addr", Data.STRING_TYPE);
TableAppend.rt0.add("User's age", Data.INT_TYPE);
{
(rt1)=(CsvInterpreter.toTable(WorkingDir.getPath(("ourUsers.csv")), TableAppend.rt0));
(rt2)=(CsvInterpreter.toTable(WorkingDir.getPath(("ourUsers2.csv")), TableAppend.rt0));
System.out.println((rt1));
System.out.println((""));
System.out.println((rt2));
(rt1)=((rt1).append((rt2)));
System.out.println((""));
System.out.println((rt1));
System.out.println((""));
System.out.println((rt2));
}
}
}
| [
"jpochtar@gmail.com"
] | jpochtar@gmail.com |
40d74cdf7500b603a869b0ca78b009c55e190b78 | 4deea3576bbda611eeaf6ecfbdd5596e500a30d3 | /src/main/java/com/hsjawanda/gaeobjectify/repackaged/commons/lang3/time/FastDateFormat.java | 5ae9137a7d7b23e9e0788bf6c62d1fe30eab741a | [
"Apache-2.0"
] | permissive | hsjawanda/gae-objectify-utils | 42cb0e2502c7843e7e158d04d6230d718ae863e9 | 028d2a308ab08f165cb5abcbef987d9b5c1746f6 | refs/heads/master | 2020-04-04T09:46:20.853994 | 2018-12-17T04:31:37 | 2018-12-17T04:31:37 | 48,148,230 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,220 | 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.hsjawanda.gaeobjectify.repackaged.commons.lang3.time;
import java.text.DateFormat;
import java.text.FieldPosition;
import java.text.Format;
import java.text.ParseException;
import java.text.ParsePosition;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
/**
* <p>FastDateFormat is a fast and thread-safe version of
* {@link java.text.SimpleDateFormat}.</p>
*
* <p>To obtain an instance of FastDateFormat, use one of the static factory methods:
* {@link #getInstance(String, TimeZone, Locale)}, {@link #getDateInstance(int, TimeZone, Locale)},
* {@link #getTimeInstance(int, TimeZone, Locale)}, or {@link #getDateTimeInstance(int, int, TimeZone, Locale)}
* </p>
*
* <p>Since FastDateFormat is thread safe, you can use a static member instance:</p>
* <code>
* private static final FastDateFormat DATE_FORMATTER = FastDateFormat.getDateTimeInstance(FastDateFormat.LONG, FastDateFormat.SHORT);
* </code>
*
* <p>This class can be used as a direct replacement to
* {@code SimpleDateFormat} in most formatting and parsing situations.
* This class is especially useful in multi-threaded server environments.
* {@code SimpleDateFormat} is not thread-safe in any JDK version,
* nor will it be as Sun have closed the bug/RFE.
* </p>
*
* <p>All patterns are compatible with
* SimpleDateFormat (except time zones and some year patterns - see below).</p>
*
* <p>Since 3.2, FastDateFormat supports parsing as well as printing.</p>
*
* <p>Java 1.4 introduced a new pattern letter, {@code 'Z'}, to represent
* time zones in RFC822 format (eg. {@code +0800} or {@code -1100}).
* This pattern letter can be used here (on all JDK versions).</p>
*
* <p>In addition, the pattern {@code 'ZZ'} has been made to represent
* ISO 8601 extended format time zones (eg. {@code +08:00} or {@code -11:00}).
* This introduces a minor incompatibility with Java 1.4, but at a gain of
* useful functionality.</p>
*
* <p>Javadoc cites for the year pattern: <i>For formatting, if the number of
* pattern letters is 2, the year is truncated to 2 digits; otherwise it is
* interpreted as a number.</i> Starting with Java 1.7 a pattern of 'Y' or
* 'YYY' will be formatted as '2003', while it was '03' in former Java
* versions. FastDateFormat implements the behavior of Java 7.</p>
*
* @since 2.0
*/
public class FastDateFormat extends Format implements DateParser, DatePrinter {
/**
* Required for serialization support.
*
* @see java.io.Serializable
*/
private static final long serialVersionUID = 2L;
/**
* FULL locale dependent date or time style.
*/
public static final int FULL = DateFormat.FULL;
/**
* LONG locale dependent date or time style.
*/
public static final int LONG = DateFormat.LONG;
/**
* MEDIUM locale dependent date or time style.
*/
public static final int MEDIUM = DateFormat.MEDIUM;
/**
* SHORT locale dependent date or time style.
*/
public static final int SHORT = DateFormat.SHORT;
private static final FormatCache<FastDateFormat> cache= new FormatCache<FastDateFormat>() {
@Override
protected FastDateFormat createInstance(final String pattern, final TimeZone timeZone, final Locale locale) {
return new FastDateFormat(pattern, timeZone, locale);
}
};
private final FastDatePrinter printer;
private final FastDateParser parser;
//-----------------------------------------------------------------------
/**
* <p>Gets a formatter instance using the default pattern in the
* default locale.</p>
*
* @return a date/time formatter
*/
public static FastDateFormat getInstance() {
return cache.getInstance();
}
/**
* <p>Gets a formatter instance using the specified pattern in the
* default locale.</p>
*
* @param pattern {@link java.text.SimpleDateFormat} compatible
* pattern
* @return a pattern based date/time formatter
* @throws IllegalArgumentException if pattern is invalid
*/
public static FastDateFormat getInstance(final String pattern) {
return cache.getInstance(pattern, null, null);
}
/**
* <p>Gets a formatter instance using the specified pattern and
* time zone.</p>
*
* @param pattern {@link java.text.SimpleDateFormat} compatible
* pattern
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @return a pattern based date/time formatter
* @throws IllegalArgumentException if pattern is invalid
*/
public static FastDateFormat getInstance(final String pattern, final TimeZone timeZone) {
return cache.getInstance(pattern, timeZone, null);
}
/**
* <p>Gets a formatter instance using the specified pattern and
* locale.</p>
*
* @param pattern {@link java.text.SimpleDateFormat} compatible
* pattern
* @param locale optional locale, overrides system locale
* @return a pattern based date/time formatter
* @throws IllegalArgumentException if pattern is invalid
*/
public static FastDateFormat getInstance(final String pattern, final Locale locale) {
return cache.getInstance(pattern, null, locale);
}
/**
* <p>Gets a formatter instance using the specified pattern, time zone
* and locale.</p>
*
* @param pattern {@link java.text.SimpleDateFormat} compatible
* pattern
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @param locale optional locale, overrides system locale
* @return a pattern based date/time formatter
* @throws IllegalArgumentException if pattern is invalid
* or {@code null}
*/
public static FastDateFormat getInstance(final String pattern, final TimeZone timeZone, final Locale locale) {
return cache.getInstance(pattern, timeZone, locale);
}
//-----------------------------------------------------------------------
/**
* <p>Gets a date formatter instance using the specified style in the
* default time zone and locale.</p>
*
* @param style date style: FULL, LONG, MEDIUM, or SHORT
* @return a localized standard date formatter
* @throws IllegalArgumentException if the Locale has no date
* pattern defined
* @since 2.1
*/
public static FastDateFormat getDateInstance(final int style) {
return cache.getDateInstance(style, null, null);
}
/**
* <p>Gets a date formatter instance using the specified style and
* locale in the default time zone.</p>
*
* @param style date style: FULL, LONG, MEDIUM, or SHORT
* @param locale optional locale, overrides system locale
* @return a localized standard date formatter
* @throws IllegalArgumentException if the Locale has no date
* pattern defined
* @since 2.1
*/
public static FastDateFormat getDateInstance(final int style, final Locale locale) {
return cache.getDateInstance(style, null, locale);
}
/**
* <p>Gets a date formatter instance using the specified style and
* time zone in the default locale.</p>
*
* @param style date style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @return a localized standard date formatter
* @throws IllegalArgumentException if the Locale has no date
* pattern defined
* @since 2.1
*/
public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone) {
return cache.getDateInstance(style, timeZone, null);
}
/**
* <p>Gets a date formatter instance using the specified style, time
* zone and locale.</p>
*
* @param style date style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @param locale optional locale, overrides system locale
* @return a localized standard date formatter
* @throws IllegalArgumentException if the Locale has no date
* pattern defined
*/
public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone, final Locale locale) {
return cache.getDateInstance(style, timeZone, locale);
}
//-----------------------------------------------------------------------
/**
* <p>Gets a time formatter instance using the specified style in the
* default time zone and locale.</p>
*
* @param style time style: FULL, LONG, MEDIUM, or SHORT
* @return a localized standard time formatter
* @throws IllegalArgumentException if the Locale has no time
* pattern defined
* @since 2.1
*/
public static FastDateFormat getTimeInstance(final int style) {
return cache.getTimeInstance(style, null, null);
}
/**
* <p>Gets a time formatter instance using the specified style and
* locale in the default time zone.</p>
*
* @param style time style: FULL, LONG, MEDIUM, or SHORT
* @param locale optional locale, overrides system locale
* @return a localized standard time formatter
* @throws IllegalArgumentException if the Locale has no time
* pattern defined
* @since 2.1
*/
public static FastDateFormat getTimeInstance(final int style, final Locale locale) {
return cache.getTimeInstance(style, null, locale);
}
/**
* <p>Gets a time formatter instance using the specified style and
* time zone in the default locale.</p>
*
* @param style time style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted time
* @return a localized standard time formatter
* @throws IllegalArgumentException if the Locale has no time
* pattern defined
* @since 2.1
*/
public static FastDateFormat getTimeInstance(final int style, final TimeZone timeZone) {
return cache.getTimeInstance(style, timeZone, null);
}
/**
* <p>Gets a time formatter instance using the specified style, time
* zone and locale.</p>
*
* @param style time style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted time
* @param locale optional locale, overrides system locale
* @return a localized standard time formatter
* @throws IllegalArgumentException if the Locale has no time
* pattern defined
*/
public static FastDateFormat getTimeInstance(final int style, final TimeZone timeZone, final Locale locale) {
return cache.getTimeInstance(style, timeZone, locale);
}
//-----------------------------------------------------------------------
/**
* <p>Gets a date/time formatter instance using the specified style
* in the default time zone and locale.</p>
*
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
* @return a localized standard date/time formatter
* @throws IllegalArgumentException if the Locale has no date/time
* pattern defined
* @since 2.1
*/
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle) {
return cache.getDateTimeInstance(dateStyle, timeStyle, null, null);
}
/**
* <p>Gets a date/time formatter instance using the specified style and
* locale in the default time zone.</p>
*
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
* @param locale optional locale, overrides system locale
* @return a localized standard date/time formatter
* @throws IllegalArgumentException if the Locale has no date/time
* pattern defined
* @since 2.1
*/
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle, final Locale locale) {
return cache.getDateTimeInstance(dateStyle, timeStyle, null, locale);
}
/**
* <p>Gets a date/time formatter instance using the specified style and
* time zone in the default locale.</p>
*
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @return a localized standard date/time formatter
* @throws IllegalArgumentException if the Locale has no date/time
* pattern defined
* @since 2.1
*/
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone) {
return getDateTimeInstance(dateStyle, timeStyle, timeZone, null);
}
/**
* <p>Gets a date/time formatter instance using the specified style,
* time zone and locale.</p>
*
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @param locale optional locale, overrides system locale
* @return a localized standard date/time formatter
* @throws IllegalArgumentException if the Locale has no date/time
* pattern defined
*/
public static FastDateFormat getDateTimeInstance(
final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) {
return cache.getDateTimeInstance(dateStyle, timeStyle, timeZone, locale);
}
// Constructor
//-----------------------------------------------------------------------
/**
* <p>Constructs a new FastDateFormat.</p>
*
* @param pattern {@link java.text.SimpleDateFormat} compatible pattern
* @param timeZone non-null time zone to use
* @param locale non-null locale to use
* @throws NullPointerException if pattern, timeZone, or locale is null.
*/
protected FastDateFormat(final String pattern, final TimeZone timeZone, final Locale locale) {
this(pattern, timeZone, locale, null);
}
// Constructor
//-----------------------------------------------------------------------
/**
* <p>Constructs a new FastDateFormat.</p>
*
* @param pattern {@link java.text.SimpleDateFormat} compatible pattern
* @param timeZone non-null time zone to use
* @param locale non-null locale to use
* @param centuryStart The start of the 100 year period to use as the "default century" for 2 digit year parsing. If centuryStart is null, defaults to now - 80 years
* @throws NullPointerException if pattern, timeZone, or locale is null.
*/
protected FastDateFormat(final String pattern, final TimeZone timeZone, final Locale locale, final Date centuryStart) {
printer= new FastDatePrinter(pattern, timeZone, locale);
parser= new FastDateParser(pattern, timeZone, locale, centuryStart);
}
// Format methods
//-----------------------------------------------------------------------
/**
* <p>Formats a {@code Date}, {@code Calendar} or
* {@code Long} (milliseconds) object.</p>
* This method is an implementation of {@link Format#format(Object, StringBuffer, FieldPosition)}
*
* @param obj the object to format
* @param toAppendTo the buffer to append to
* @param pos the position - ignored
* @return the buffer passed in
*/
@Override
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
return toAppendTo.append(printer.format(obj));
}
/**
* <p>Formats a millisecond {@code long} value.</p>
*
* @param millis the millisecond value to format
* @return the formatted string
* @since 2.1
*/
@Override
public String format(final long millis) {
return printer.format(millis);
}
/**
* <p>Formats a {@code Date} object using a {@code GregorianCalendar}.</p>
*
* @param date the date to format
* @return the formatted string
*/
@Override
public String format(final Date date) {
return printer.format(date);
}
/**
* <p>Formats a {@code Calendar} object.</p>
*
* @param calendar the calendar to format
* @return the formatted string
*/
@Override
public String format(final Calendar calendar) {
return printer.format(calendar);
}
/**
* <p>Formats a millisecond {@code long} value into the
* supplied {@code StringBuffer}.</p>
*
* @param millis the millisecond value to format
* @param buf the buffer to format into
* @return the specified string buffer
* @since 2.1
* @deprecated Use {{@link #format(long, Appendable)}.
*/
@Deprecated
@Override
public StringBuffer format(final long millis, final StringBuffer buf) {
return printer.format(millis, buf);
}
/**
* <p>Formats a {@code Date} object into the
* supplied {@code StringBuffer} using a {@code GregorianCalendar}.</p>
*
* @param date the date to format
* @param buf the buffer to format into
* @return the specified string buffer
* @deprecated Use {{@link #format(Date, Appendable)}.
*/
@Deprecated
@Override
public StringBuffer format(final Date date, final StringBuffer buf) {
return printer.format(date, buf);
}
/**
* <p>Formats a {@code Calendar} object into the
* supplied {@code StringBuffer}.</p>
*
* @param calendar the calendar to format
* @param buf the buffer to format into
* @return the specified string buffer
* @deprecated Use {{@link #format(Calendar, Appendable)}.
*/
@Deprecated
@Override
public StringBuffer format(final Calendar calendar, final StringBuffer buf) {
return printer.format(calendar, buf);
}
/**
* <p>Formats a millisecond {@code long} value into the
* supplied {@code StringBuffer}.</p>
*
* @param millis the millisecond value to format
* @param buf the buffer to format into
* @return the specified string buffer
* @since 3.5
*/
@Override
public <B extends Appendable> B format(final long millis, final B buf) {
return printer.format(millis, buf);
}
/**
* <p>Formats a {@code Date} object into the
* supplied {@code StringBuffer} using a {@code GregorianCalendar}.</p>
*
* @param date the date to format
* @param buf the buffer to format into
* @return the specified string buffer
* @since 3.5
*/
@Override
public <B extends Appendable> B format(final Date date, final B buf) {
return printer.format(date, buf);
}
/**
* <p>Formats a {@code Calendar} object into the
* supplied {@code StringBuffer}.</p>
*
* @param calendar the calendar to format
* @param buf the buffer to format into
* @return the specified string buffer
* @since 3.5
*/
@Override
public <B extends Appendable> B format(final Calendar calendar, final B buf) {
return printer.format(calendar, buf);
}
// Parsing
//-----------------------------------------------------------------------
/* (non-Javadoc)
* @see DateParser#parse(java.lang.String)
*/
@Override
public Date parse(final String source) throws ParseException {
return parser.parse(source);
}
/* (non-Javadoc)
* @see DateParser#parse(java.lang.String, java.text.ParsePosition)
*/
@Override
public Date parse(final String source, final ParsePosition pos) {
return parser.parse(source, pos);
}
/*
* (non-Javadoc)
* @see com.hsjawanda.gaeobjectify.repackaged.commonslang3.time.DateParser#parse(java.lang.String, java.text.ParsePosition, java.util.Calendar)
*/
@Override
public boolean parse(final String source, final ParsePosition pos, final Calendar calendar) {
return parser.parse(source, pos, calendar);
}
/* (non-Javadoc)
* @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
*/
@Override
public Object parseObject(final String source, final ParsePosition pos) {
return parser.parseObject(source, pos);
}
// Accessors
//-----------------------------------------------------------------------
/**
* <p>Gets the pattern used by this formatter.</p>
*
* @return the pattern, {@link java.text.SimpleDateFormat} compatible
*/
@Override
public String getPattern() {
return printer.getPattern();
}
/**
* <p>Gets the time zone used by this formatter.</p>
*
* <p>This zone is always used for {@code Date} formatting. </p>
*
* @return the time zone
*/
@Override
public TimeZone getTimeZone() {
return printer.getTimeZone();
}
/**
* <p>Gets the locale used by this formatter.</p>
*
* @return the locale
*/
@Override
public Locale getLocale() {
return printer.getLocale();
}
/**
* <p>Gets an estimate for the maximum string length that the
* formatter will produce.</p>
*
* <p>The actual formatted length will almost always be less than or
* equal to this amount.</p>
*
* @return the maximum formatted length
*/
public int getMaxLengthEstimate() {
return printer.getMaxLengthEstimate();
}
// Basics
//-----------------------------------------------------------------------
/**
* <p>Compares two objects for equality.</p>
*
* @param obj the object to compare to
* @return {@code true} if equal
*/
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof FastDateFormat)) {
return false;
}
final FastDateFormat other = (FastDateFormat) obj;
// no need to check parser, as it has same invariants as printer
return printer.equals(other.printer);
}
/**
* <p>Returns a hash code compatible with equals.</p>
*
* @return a hash code compatible with equals
*/
@Override
public int hashCode() {
return printer.hashCode();
}
/**
* <p>Gets a debugging string version of this formatter.</p>
*
* @return a debugging string
*/
@Override
public String toString() {
return "FastDateFormat[" + printer.getPattern() + "," + printer.getLocale() + "," + printer.getTimeZone().getID() + "]";
}
/**
* <p>Performs the formatting by applying the rules to the
* specified calendar.</p>
*
* @param calendar the calendar to format
* @param buf the buffer to format into
* @return the specified string buffer
* @deprecated Use {@link #format(Calendar, Appendable)}
*/
@Deprecated
protected StringBuffer applyRules(final Calendar calendar, final StringBuffer buf) {
return printer.applyRules(calendar, buf);
}
}
| [
"hsjawanda@gmail.com"
] | hsjawanda@gmail.com |
6c26ebe1accca85b504ae5dddd3d2559bdb9946f | 44bd8546c1028520de575b0fc5c9f2d02f7a1403 | /src/main/java/com/treinamento/course/entities/pk/OrderItemPK.java | 6de799588f616840074ec43400c9b9b338a3542a | [] | no_license | JoelcioFacanha/course-springboot-2-java11 | aff244a272e634a3b36ecba8a5148042b00d078d | 506e55d3d1de4d99fa91a74595f2c2f0a22042fc | refs/heads/master | 2023-03-26T02:17:42.599758 | 2021-03-14T15:54:59 | 2021-03-14T15:54:59 | 346,426,750 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,509 | java | package com.treinamento.course.entities.pk;
import java.io.Serializable;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import com.treinamento.course.entities.Order;
import com.treinamento.course.entities.Product;
@Embeddable
public class OrderItemPK implements Serializable {
private static final long serialVersionUID = 1L;
@ManyToOne
@JoinColumn(name = "order_id")
private Order order;
@ManyToOne
@JoinColumn(name = "product_id")
private Product product;
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
this.product = product;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((order == null) ? 0 : order.hashCode());
result = prime * result + ((product == null) ? 0 : product.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;
OrderItemPK other = (OrderItemPK) obj;
if (order == null) {
if (other.order != null)
return false;
} else if (!order.equals(other.order))
return false;
if (product == null) {
if (other.product != null)
return false;
} else if (!product.equals(other.product))
return false;
return true;
}
}
| [
"joelciomoreira@gmail.com"
] | joelciomoreira@gmail.com |
f27dcfe8d55eb6b213b96910abc0dc5c353a56be | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/android_29_sdk/public/sources/android-29/com/android/systemui/statusbar/phone/BarTransitions.java | 211a40a91101b8973d961b07add197d29d0ac96a | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Java | false | false | 11,435 | java | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 com.android.systemui.statusbar.phone;
import android.annotation.IntDef;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.PorterDuff;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.util.Log;
import android.view.View;
import com.android.settingslib.Utils;
import com.android.systemui.Interpolators;
import com.android.systemui.R;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class BarTransitions {
private static final boolean DEBUG = false;
private static final boolean DEBUG_COLORS = false;
public static final int MODE_OPAQUE = 0;
public static final int MODE_SEMI_TRANSPARENT = 1;
public static final int MODE_TRANSLUCENT = 2;
public static final int MODE_LIGHTS_OUT = 3;
public static final int MODE_TRANSPARENT = 4;
public static final int MODE_WARNING = 5;
public static final int MODE_LIGHTS_OUT_TRANSPARENT = 6;
@IntDef(flag = true, prefix = { "MODE_" }, value = {
MODE_OPAQUE,
MODE_SEMI_TRANSPARENT,
MODE_TRANSLUCENT,
MODE_LIGHTS_OUT,
MODE_TRANSPARENT,
MODE_WARNING,
MODE_LIGHTS_OUT_TRANSPARENT
})
@Retention(RetentionPolicy.SOURCE)
public @interface TransitionMode {}
public static final int LIGHTS_IN_DURATION = 250;
public static final int LIGHTS_OUT_DURATION = 1500;
public static final int BACKGROUND_DURATION = 200;
private final String mTag;
private final View mView;
protected final BarBackgroundDrawable mBarBackground;
private int mMode;
private boolean mAlwaysOpaque = false;
public BarTransitions(View view, int gradientResourceId) {
mTag = "BarTransitions." + view.getClass().getSimpleName();
mView = view;
mBarBackground = new BarBackgroundDrawable(mView.getContext(), gradientResourceId);
mView.setBackground(mBarBackground);
}
public void destroy() {
// To be overridden
}
public int getMode() {
return mMode;
}
public void setAutoDim(boolean autoDim) {
// Default is don't care.
}
/**
* @param alwaysOpaque if {@code true}, the bar's background will always be opaque, regardless
* of what mode it is currently set to.
*/
public void setAlwaysOpaque(boolean alwaysOpaque) {
mAlwaysOpaque = alwaysOpaque;
}
public boolean isAlwaysOpaque() {
// Low-end devices do not support translucent modes, fallback to opaque
return mAlwaysOpaque;
}
public void transitionTo(int mode, boolean animate) {
if (isAlwaysOpaque() && (mode == MODE_SEMI_TRANSPARENT || mode == MODE_TRANSLUCENT
|| mode == MODE_TRANSPARENT)) {
mode = MODE_OPAQUE;
}
if (isAlwaysOpaque() && (mode == MODE_LIGHTS_OUT_TRANSPARENT)) {
mode = MODE_LIGHTS_OUT;
}
if (mMode == mode) return;
int oldMode = mMode;
mMode = mode;
if (DEBUG) Log.d(mTag, String.format("%s -> %s animate=%s",
modeToString(oldMode), modeToString(mode), animate));
onTransition(oldMode, mMode, animate);
}
protected void onTransition(int oldMode, int newMode, boolean animate) {
applyModeBackground(oldMode, newMode, animate);
}
protected void applyModeBackground(int oldMode, int newMode, boolean animate) {
if (DEBUG) Log.d(mTag, String.format("applyModeBackground oldMode=%s newMode=%s animate=%s",
modeToString(oldMode), modeToString(newMode), animate));
mBarBackground.applyModeBackground(oldMode, newMode, animate);
}
public static String modeToString(int mode) {
if (mode == MODE_OPAQUE) return "MODE_OPAQUE";
if (mode == MODE_SEMI_TRANSPARENT) return "MODE_SEMI_TRANSPARENT";
if (mode == MODE_TRANSLUCENT) return "MODE_TRANSLUCENT";
if (mode == MODE_LIGHTS_OUT) return "MODE_LIGHTS_OUT";
if (mode == MODE_TRANSPARENT) return "MODE_TRANSPARENT";
if (mode == MODE_WARNING) return "MODE_WARNING";
if (mode == MODE_LIGHTS_OUT_TRANSPARENT) return "MODE_LIGHTS_OUT_TRANSPARENT";
throw new IllegalArgumentException("Unknown mode " + mode);
}
public void finishAnimations() {
mBarBackground.finishAnimation();
}
protected boolean isLightsOut(int mode) {
return mode == MODE_LIGHTS_OUT || mode == MODE_LIGHTS_OUT_TRANSPARENT;
}
protected static class BarBackgroundDrawable extends Drawable {
private final int mOpaque;
private final int mSemiTransparent;
private final int mTransparent;
private final int mWarning;
private final Drawable mGradient;
private int mMode = -1;
private boolean mAnimating;
private long mStartTime;
private long mEndTime;
private int mGradientAlpha;
private int mColor;
private PorterDuffColorFilter mTintFilter;
private Paint mPaint = new Paint();
private int mGradientAlphaStart;
private int mColorStart;
private Rect mFrame;
public BarBackgroundDrawable(Context context, int gradientResourceId) {
final Resources res = context.getResources();
if (DEBUG_COLORS) {
mOpaque = 0xff0000ff;
mSemiTransparent = 0x7f0000ff;
mTransparent = 0x2f0000ff;
mWarning = 0xffff0000;
} else {
mOpaque = context.getColor(R.color.system_bar_background_opaque);
mSemiTransparent = context.getColor(
com.android.internal.R.color.system_bar_background_semi_transparent);
mTransparent = context.getColor(R.color.system_bar_background_transparent);
mWarning = Utils.getColorAttrDefaultColor(context, android.R.attr.colorError);
}
mGradient = context.getDrawable(gradientResourceId);
}
public void setFrame(Rect frame) {
mFrame = frame;
}
@Override
public void setAlpha(int alpha) {
// noop
}
@Override
public void setColorFilter(ColorFilter colorFilter) {
// noop
}
@Override
public void setTint(int color) {
PorterDuff.Mode targetMode = mTintFilter == null ? Mode.SRC_IN :
mTintFilter.getMode();
if (mTintFilter == null || mTintFilter.getColor() != color) {
mTintFilter = new PorterDuffColorFilter(color, targetMode);
}
invalidateSelf();
}
@Override
public void setTintMode(Mode tintMode) {
int targetColor = mTintFilter == null ? 0 : mTintFilter.getColor();
if (mTintFilter == null || mTintFilter.getMode() != tintMode) {
mTintFilter = new PorterDuffColorFilter(targetColor, tintMode);
}
invalidateSelf();
}
@Override
protected void onBoundsChange(Rect bounds) {
super.onBoundsChange(bounds);
mGradient.setBounds(bounds);
}
public void applyModeBackground(int oldMode, int newMode, boolean animate) {
if (mMode == newMode) return;
mMode = newMode;
mAnimating = animate;
if (animate) {
long now = SystemClock.elapsedRealtime();
mStartTime = now;
mEndTime = now + BACKGROUND_DURATION;
mGradientAlphaStart = mGradientAlpha;
mColorStart = mColor;
}
invalidateSelf();
}
@Override
public int getOpacity() {
return PixelFormat.TRANSLUCENT;
}
public void finishAnimation() {
if (mAnimating) {
mAnimating = false;
invalidateSelf();
}
}
@Override
public void draw(Canvas canvas) {
int targetGradientAlpha = 0, targetColor = 0;
if (mMode == MODE_WARNING) {
targetColor = mWarning;
} else if (mMode == MODE_TRANSLUCENT) {
targetColor = mSemiTransparent;
} else if (mMode == MODE_SEMI_TRANSPARENT) {
targetColor = mSemiTransparent;
} else if (mMode == MODE_TRANSPARENT || mMode == MODE_LIGHTS_OUT_TRANSPARENT) {
targetColor = mTransparent;
} else {
targetColor = mOpaque;
}
if (!mAnimating) {
mColor = targetColor;
mGradientAlpha = targetGradientAlpha;
} else {
final long now = SystemClock.elapsedRealtime();
if (now >= mEndTime) {
mAnimating = false;
mColor = targetColor;
mGradientAlpha = targetGradientAlpha;
} else {
final float t = (now - mStartTime) / (float)(mEndTime - mStartTime);
final float v = Math.max(0, Math.min(
Interpolators.LINEAR.getInterpolation(t), 1));
mGradientAlpha = (int)(v * targetGradientAlpha + mGradientAlphaStart * (1 - v));
mColor = Color.argb(
(int)(v * Color.alpha(targetColor) + Color.alpha(mColorStart) * (1 - v)),
(int)(v * Color.red(targetColor) + Color.red(mColorStart) * (1 - v)),
(int)(v * Color.green(targetColor) + Color.green(mColorStart) * (1 - v)),
(int)(v * Color.blue(targetColor) + Color.blue(mColorStart) * (1 - v)));
}
}
if (mGradientAlpha > 0) {
mGradient.setAlpha(mGradientAlpha);
mGradient.draw(canvas);
}
if (Color.alpha(mColor) > 0) {
mPaint.setColor(mColor);
if (mTintFilter != null) {
mPaint.setColorFilter(mTintFilter);
}
if (mFrame != null) {
canvas.drawRect(mFrame, mPaint);
} else {
canvas.drawPaint(mPaint);
}
}
if (mAnimating) {
invalidateSelf(); // keep going
}
}
}
}
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
cf47f814d7aa11569670d081cfef284be6965699 | 786add1551ae92ef2c5ab0278292755b8e6a1f22 | /src/main/java/io/bilicraft/r6/clientui/handler/BilicraftDebugHandler.java | e8621ef69b5dcc2259d9ff12d41b9d4e411d93c7 | [] | no_license | uvbs/clientui | f4d963e2be1486bfe2fde702188ae54e7417bb53 | 3825b8f0f2a77668d6d94748bf9d141ce3c913e3 | refs/heads/master | 2021-05-30T18:29:21.007003 | 2016-02-26T17:17:18 | 2016-02-26T17:17:18 | 118,703,250 | 1 | 0 | null | 2018-01-24T02:58:08 | 2018-01-24T02:58:08 | null | UTF-8 | Java | false | false | 2,900 | java | package io.bilicraft.r6.clientui.handler;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import cpw.mods.fml.common.eventhandler.Event;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.client.event.DrawBlockHighlightEvent;
import net.minecraftforge.client.event.EntityViewRenderEvent;
import net.minecraftforge.client.event.FOVUpdateEvent;
import net.minecraftforge.client.event.GuiScreenEvent;
import net.minecraftforge.client.event.GuiScreenEvent.ActionPerformedEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderHandEvent;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderPlayerEvent;
import net.minecraftforge.client.event.RenderWorldEvent;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import net.minecraftforge.client.event.sound.PlaySoundEvent17;
import net.minecraftforge.client.event.sound.PlaySoundSourceEvent;
import net.minecraftforge.event.entity.EntityEvent.EntityConstructing;
import net.minecraftforge.event.entity.EntityEvent;
import net.minecraftforge.event.entity.PlaySoundAtEntityEvent;
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
import net.minecraftforge.event.terraingen.BiomeEvent;
import net.minecraftforge.event.world.ChunkEvent;
public class BilicraftDebugHandler {
public static BilicraftDebugHandler instance = new BilicraftDebugHandler();
public static Logger logging = LogManager.getLogger("DEBUG");
@SubscribeEvent(priority = EventPriority.LOWEST)
public void onPlayerLoginEvent(Event event) {
if (event instanceof RenderGameOverlayEvent || event instanceof EntityViewRenderEvent
|| event instanceof RenderWorldEvent || event instanceof RenderPlayerEvent
|| event instanceof RenderLivingEvent || event instanceof DrawBlockHighlightEvent
|| event instanceof RenderHandEvent || event instanceof RenderWorldLastEvent
|| event instanceof LivingUpdateEvent || event instanceof PlaySoundEvent17
|| event instanceof PlaySoundSourceEvent || event instanceof BiomeEvent
|| event instanceof GuiScreenEvent || event instanceof FOVUpdateEvent
|| event instanceof EntityConstructing || event instanceof PlaySoundAtEntityEvent
|| event instanceof ChunkEvent.Load) {
return;
}
if(event instanceof EntityEvent.EnteringChunk){return;}
logging.info("Event:" + event.getClass().getTypeName() + "|Phase" + event.getPhase().name() + "|Result"
+ event.getResult().name());
}
@SubscribeEvent(priority = EventPriority.LOWEST)
public void onButtonPress(ActionPerformedEvent event)
{
logging.info("Event:ActionPerformedEvent"+"|button:"+event.button.displayString+"|buttontype:"+event.button.getClass().getName()+"|"+event.gui );
}
}
| [
"qfeizaijun@qq.com"
] | qfeizaijun@qq.com |
75989ed7239cb76213cd770d1b6f61766dd5e239 | 80dd10ba020b80b0c03d778f95f503651abca107 | /base/src/main/resources/archetype-resources/src/main/java/dao/impl/DaoHibernate.java | b4e525583069093e2b66e3def25a4bbc6f53f62d | [] | no_license | dark-slayers/archetypes | 7a6f22fb506e0dc91b781aa0b141b903ed6d67bc | 6f3c320a8fa947e03cbd2a17fabcd9a0365b1ffd | refs/heads/master | 2021-01-11T20:46:56.206923 | 2018-03-19T02:41:00 | 2018-03-19T02:41:00 | 79,183,063 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 494 | java | package ${package}.dao.impl;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import ${package}.dao.Dao;
import ${package}.vo.Item;
import person.liuxx.util.hibernate.BaseDaoHibernate5;
@Repository("dao")
public class DaoHibernate extends BaseDaoHibernate5<Item> implements Dao
{
@Autowired
private DaoHibernate(SessionFactory sessionFactory)
{
setSessionFactory(sessionFactory);
}
}
| [
"liuxx@hyc.cn"
] | liuxx@hyc.cn |
6bdd0b79845f9683792140f53f0b12d705f4bb10 | 817ec466b7ba590dc4a4b6ead121b0792bf6bdb5 | /app/src/main/java/com/edbrix/connectbrix/data/GetThreeMonthsMeetingParentData.java | 78ec6f52c291386ef74dd8f28ea42fdb9eb07a1d | [] | no_license | VjDroider/ConnectBrix | ffef6642a0385f662cee7906ec1d7869913fc65a | 37d24125414ee8de70a87139aef3b977da9a9fa0 | refs/heads/master | 2022-02-24T05:43:54.809540 | 2019-09-28T11:01:03 | 2019-09-28T11:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,576 | java | package com.edbrix.connectbrix.data;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
public class GetThreeMonthsMeetingParentData implements Serializable {
@SerializedName("Success")
@Expose
private Integer success;
@SerializedName("Code")
@Expose
private String code;
@SerializedName("Message")
@Expose
private String message;
@SerializedName("Meetings")
@Expose
private List<GetThreeMonthsMeetingListData> meetings = null;
@SerializedName("Error")
@Expose
private Error error;
private final static long serialVersionUID = -4681838781431222730L;
public Integer getSuccess() {
return success;
}
public void setSuccess(Integer success) {
this.success = success;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<GetThreeMonthsMeetingListData> getMeetings() {
return meetings;
}
public void setMeetings(List<GetThreeMonthsMeetingListData> meetings) {
this.meetings = meetings;
}
public Error getError() {
return error;
}
public void setError(Error error) {
this.error = error;
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
}
| [
"shashank.khochikar@gmail.com"
] | shashank.khochikar@gmail.com |
58ef2bc80febfda29e607955221970d1fae1a195 | fb7143bb1294067acd8c18ba89790607a2c77be3 | /app/src/main/java/com/air/twitterclient/activity/SearchTimeLineActivity.java | 3a0a79e640758b34a19aa0b54470a1d009f6778b | [
"MIT"
] | permissive | hetang/TwitterClient | b38f3aeb62f65a0c1327be16cfebafcf723b84b4 | cdf5637563b8249767f15aa5bc6fff6000291d3d | refs/heads/master | 2016-09-15T19:50:29.113329 | 2015-03-02T02:20:36 | 2015-03-02T02:20:36 | 31,045,297 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,219 | java | package com.air.twitterclient.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import com.air.twitterclient.R;
import com.air.twitterclient.fragments.SearchTimeLineFragments;
public class SearchTimeLineActivity extends ActionBarActivity {
private TextView mTitle;
private String query;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_search_time_line);
setupView();
query = getIntent().getStringExtra("query");
if(savedInstanceState == null) {
// Within the activity
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
SearchTimeLineFragments fragmentUserTimeLine = SearchTimeLineFragments.newInstance(query);
ft.replace(R.id.rlSearchTimeLine, fragmentUserTimeLine);
ft.commit();
}
}
private void setupView() {
Toolbar toolbar = (Toolbar) findViewById(R.id.tolBrSearch);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayShowTitleEnabled(false);
mTitle = (TextView) toolbar.findViewById(R.id.toolbar_search_title);
toolbar.setNavigationIcon(R.drawable.ic_back_white);
toolbar.setLogo(R.drawable.ic_tweets);
final SearchTimeLineActivity context = this;
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
context.finish();
}
});
mTitle.setText("");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_search_time_line, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}
}
| [
"hetang.shah@gmail.com"
] | hetang.shah@gmail.com |
4dbd5c52a8893474d232075f5f405a189264eaf4 | e5a8549f76f790d682abce04e40b4fe2422fa24e | /src/main/java/com/qw/modules/test/repository/CardRepository.java | 2586e5b2ee5ebafa789dea34ab6311e48250508e | [] | no_license | QW2020/spring_boot | d817bdf67716a101b62ae7379f4f5c22062aa1c6 | af472f3664a294c0939b13418028fecf463235e6 | refs/heads/master | 2022-12-17T16:24:25.471069 | 2020-09-09T08:22:15 | 2020-09-09T08:22:15 | 287,171,127 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 416 | java | package com.qw.modules.test.repository;
import com.qw.modules.test.pojo.Card;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* ClassName: CardRepository <br/>
* Description: <br/>
* date: 2020/8/12 18:54<br/>
*
* @author Acer-pc<br/>
* @since JDK 1.8
*/
@Repository
public interface CardRepository extends JpaRepository<Card,Integer> {
}
| [
"2421109032@qq.com"
] | 2421109032@qq.com |
e6cd4794863c0661ca41924a5ba21d9e98de6657 | dc769cdcc172ee3e918de45980de5307ca15b680 | /dropwizard-guicey/src/main/java/ru/vyarus/dropwizard/guice/module/lifecycle/GuiceyLifecycleListener.java | c10089a0235b951b4aa8d2b1fa1a4e7412a0c14e | [
"MIT"
] | permissive | xvik/dropwizard-guicey | 1d2fcfe1182e9bb91bf94fe7beffd04706586ffa | 4fcef6754a7cfb66449146e375a74d08ea36c182 | refs/heads/master | 2023-08-30T23:30:04.315416 | 2023-08-23T03:46:31 | 2023-08-23T03:46:31 | 23,605,023 | 238 | 60 | MIT | 2023-09-13T08:51:22 | 2014-09-03T03:22:23 | Java | UTF-8 | Java | false | false | 1,577 | java | package ru.vyarus.dropwizard.guice.module.lifecycle;
import ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent;
/**
* Guicey lifecycle listener covers all valuable phases of guicey configuration. It could be used either for
* startup monitoring or for some advanced features implementation (based on installers, extensions modules or bundles
* post-processing).
* <p>
* Example usage: {@link ru.vyarus.dropwizard.guice.debug.LifecycleDiagnostic}.
* <p>
* Listener is not registered if equal listener were already registered ({@link java.util.Set} used as
* listeners storage), so if you need to be sure that only one instance of some listener will be used
* implement {@link Object#equals(Object)} and {@link Object#hashCode()}. For example, this is used to resolve case
* where {@link ru.vyarus.dropwizard.guice.debug.hook.DiagnosticHook} installed and some reports were already enabled
* in bundle directly: thanks to correct equals in reports, user will not see duplicate reports.
*
* @author Vyacheslav Rusakov
* @see GuiceyLifecycleAdapter
* @see UniqueGuiceyLifecycleListener
* @since 17.04.2018
*/
@FunctionalInterface
public interface GuiceyLifecycleListener {
/**
* Called with specific lifecycle event. Event object may contain event specific objects. Event always
* contain main objects, available at this point (like configuration, environment, injector etc).
*
* @param event event instance
* @see GuiceyLifecycle for possible event types
*/
void onEvent(GuiceyLifecycleEvent event);
}
| [
"vyarus@gmail.com"
] | vyarus@gmail.com |
11024ed2ccbd5630be42233ff9b89580b4a9c2e3 | 242dbcdd44e7fa7bb9c5f61ce72dc4c65a917e18 | /src/main/java/com/setge/talkingtoday/dto/ReplyDTO.java | 15b5d3b88b0f13655703e66e95607fab6aca8132 | [] | no_license | hyuuny/movie-review | 63d2bfb6290db08e1d014e77357160391ecfbc6d | c984d4c36ed780ace303976fa000c60e7acb7f1b | refs/heads/master | 2023-03-18T22:58:54.575963 | 2021-03-01T06:14:47 | 2021-03-01T06:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 431 | java | package com.setge.talkingtoday.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ReplyDTO {
private Long rno;
private String text;
private String replyer;
private Long bno;
private LocalDateTime regDate;
private LocalDateTime modDate;
}
| [
"shyune@knou.ac.kr"
] | shyune@knou.ac.kr |
bf39c3f76968088ba0edfd7cdfab860f430c2048 | 415618e778d48b7f65922ba9c7ace3020462406c | /app/src/main/java/com/ynzhxf/nd/xyfirecontrolapp/util/HelperTool.java | debbdd460775dc23dff25883ca43cac57a668866 | [] | no_license | yanghait/ndxfapp_v1.4 | 94bb314049ebcb933673523e3a0e15ff8b862776 | 9fad44a4b9efb2d5e9778e8a83b7741c5621ee23 | refs/heads/master | 2023-04-22T20:12:44.657495 | 2021-05-13T07:20:07 | 2021-05-13T07:20:07 | 336,680,006 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,809 | java | package com.ynzhxf.nd.xyfirecontrolapp.util;
import com.ynzhxf.nd.xyfirecontrolapp.GloblePlantformDatas;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.UUID;
/**
* 帮助工具类
* Created by nd on 2018-07-10.
*/
public class HelperTool {
private static final int MIN_DELAY_TIME = 300; // 两次点击间隔不能少于1000ms
private static long lastClickTime;
/**
* 创建一个UUID去掉连接符的字符串
*
* @return
*/
public final static String createUUID() {
return UUID.randomUUID().toString().replace("-", "");
}
/**
* 判断字符串是否是空值或为空
*
* @param query
* @return
*/
public final static boolean stringIsEmptyOrNull(String query) {
if (query == null) {
return true;
}
if (query.length() == 0) {
return true;
}
return false;
}
/**
* 防止快速点击系统未响应,而多次操作
*
* @return
*/
public static boolean isFastClick() {
boolean flag = true;
long currentClickTime = System.currentTimeMillis();
if ((currentClickTime - lastClickTime) >= MIN_DELAY_TIME) {
flag = false;
}
lastClickTime = currentClickTime;
return flag;
}
/**
* 获取令牌
*/
public static String getToken() {
GloblePlantformDatas datas = GloblePlantformDatas.getInstance();
if (datas.getLoginInfoBean() != null) {
return datas.getLoginInfoBean().getToken();
}
return null;
}
/**
* 获取当前登陆的用户名
*
* @return
*/
public static String getUsername() {
GloblePlantformDatas datas = GloblePlantformDatas.getInstance();
if (datas.getLoginInfoBean() != null) {
return datas.getLoginInfoBean().getUserName();
}
return null;
}
/**
* 将一个对象转换成int
*
* @param object
*/
public static int objectToInt(Object object) {
int result = -10010;
try {
result = (int) Double.parseDouble(object + "");
} catch (Exception e) {
}
return result;
}
/**
* 把时间毫秒转换成时间字符串
*
* @return
*/
public static String MillTimeToStringTime(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm",Locale.CHINA);
return formatter.format(date);
}
/**
* 把时间毫秒转换成时间字符串
*
* @return
*/
public static String MillTimeToStringDate(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
return formatter.format(date);
}
/**
* 把时间毫秒转换成时间详细字符串
*
* @return
*/
public static String MillTimeToStringDateDetail(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINA);
return formatter.format(date);
}
/**
* 把时间毫秒转换成年月日字符串
*
* @return
*/
public static String MillTimeToYearMonth(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA);
return formatter.format(date);
}
/**
* 把时间毫秒转换成年月日字符串
*
* @return
*/
public static String MillTimeToYearMon(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM", Locale.CHINA);
return formatter.format(date);
}
/**
* 把时间毫秒转换成小时分钟字符串
*
* @return
*/
public static String MillTimeToHour(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm", Locale.CHINA);
return formatter.format(date);
}
/**
* 把时间毫秒转换成小时分钟字符串
*
* @return
*/
public static String MillTimeToDateForFireMain(long time) {
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy~MM~dd~HH:mm:ss", Locale.CHINA);
return formatter.format(date);
}
/**
* 将obj转double
*
* @param obj
* @return
*/
public static double objectToDouble(Object obj) {
try {
return Double.parseDouble(obj + "");
} catch (Exception e) {
}
return 0;
}
}
| [
"1562370367@qq.ccom"
] | 1562370367@qq.ccom |
ac794b65e83d6f00c847817fb8b7cf278862b0dc | 0b50f0bb7d335113dd26def63f0aec52cb0eea80 | /src/main/java/cn/jadenziv/source/qcloud/image/request/FaceGetInfoRequest.java | 2152ceeeab15518d92d15b07d817c1c487288081 | [] | no_license | JadenZiv/qcloud-image-sdk-spring-boot-starter | 57d4deab2d61539c81b36271d2c661d20be63e25 | 013b554b3bdf54a2d47313836a03f72501027764 | refs/heads/master | 2020-04-13T07:48:44.062841 | 2018-12-28T03:34:22 | 2018-12-28T03:34:22 | 163,063,103 | 7 | 1 | null | null | null | null | UTF-8 | Java | false | false | 912 | 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 cn.jadenziv.source.qcloud.image.request;
import cn.jadenziv.source.qcloud.image.common_utils.CommonParamCheckUtils;
import cn.jadenziv.source.qcloud.image.exception.ParamException;
/**
* @author serenazhao 个体获取信息
*/
public class FaceGetInfoRequest extends AbstractBaseRequest {
//个体Id
private String personId = "";
public FaceGetInfoRequest(String bucketName, String personId) {
super(bucketName);
this.personId = personId;
}
public String getPersonId() {
return personId;
}
@Override
public void check_param() throws ParamException {
super.check_param();
CommonParamCheckUtils.AssertNotNull("personId", personId);
}
}
| [
"a1140162626@qq.com"
] | a1140162626@qq.com |
2a430e64b046e7b51724809f96c5cb339fd9f944 | 5817166c11483bf7f431503a7c3c2bf7a7412ff8 | /sb_mediclib/.mvn/wrapper/MavenWrapperDownloader.java | 5aa504b3f8bff2b45a979bd157273f3b1a16acc1 | [] | no_license | KlausBacker/mediclib2.0 | b0f63b7ac88400f08f775707292572e83827418a | 94be4466928c70107366670b7823ff509481652a | refs/heads/main | 2023-06-01T20:20:26.021243 | 2021-06-17T15:27:08 | 2021-06-17T15:27:08 | 375,932,737 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,948 | java | /*
* Copyright 2007-present 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
*
* https://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 java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = "0.5.6";
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
}catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
}catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if (!outputFile.getParentFile().exists()) {
if (!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
}catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
String username = System.getenv("MVNW_USERNAME");
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
}
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
| [
"boulanger.ncls@gmail.com"
] | boulanger.ncls@gmail.com |
46d174751c7443ac5d21e6f2e18bdacf25ca2018 | 81dff19d6de860a403e07a10a3a4f9eca9ddb709 | /app/src/main/java/com/zx/easyshop/main/shop/detail/GoodsDetailInfoActivity.java | b4bc644f0241d383660de76311c1f3fa8c979982 | [] | no_license | pingan01/EasyShop | 97065ffcdc2d1373a4d2ba7c3a699902d40f1b86 | 883c679fe472e8410f8d8825d93c4cf4f3a9dc79 | refs/heads/master | 2021-01-12T18:35:27.161406 | 2017-02-17T12:53:49 | 2017-02-17T12:53:49 | 81,393,534 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,433 | java | package com.zx.easyshop.main.shop.detail;
import android.content.Context;
import android.content.Intent;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.zx.easyshop.R;
import com.zx.easyshop.components.AvatarLoadOptions;
import com.zx.easyshop.network.EasyShopApi;
import java.util.ArrayList;
import butterknife.BindView;
import butterknife.ButterKnife;
import me.relex.circleindicator.CircleIndicator;
/**
* 商品图片展示的详情页面
*/
public class GoodsDetailInfoActivity extends AppCompatActivity {
//用来拿图片地址的key
private static final String IMAGES = "images";
public static Intent getStartIntent(Context context, ArrayList<String> imgUrl) {
Intent intent = new Intent(context, GoodsDetailInfoActivity.class);
intent.putExtra(IMAGES, imgUrl);
return intent;
}
@BindView(R.id.viewpager)
ViewPager viewPager;
@BindView(R.id.indicator)
CircleIndicator indicator;
protected ArrayList<String> list;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_goods_detail_info);
list = new ArrayList<>();
}
@Override
public void onContentChanged() {
super.onContentChanged();
ButterKnife.bind(this);
list = getIntent().getStringArrayListExtra(IMAGES);
//用商品详情页的适配器
GoodsDetailAdapter adapter = new GoodsDetailAdapter(getImage(list));
viewPager.setAdapter(adapter);
adapter.setOnItemClickListener(new GoodsDetailAdapter.OnItemClickListener() {
@Override
public void onItemClick() {
finish();
}
});
indicator.setViewPager(viewPager);
}
private ArrayList<ImageView> getImage(ArrayList<String> list) {
ArrayList<ImageView> imageViews = new ArrayList<>();
for (int i = 0; i < list.size(); i++) {
ImageView imageView = new ImageView(this);
ImageLoader.getInstance().displayImage(EasyShopApi.IMAGE_URL + list.get(i),
imageView, AvatarLoadOptions.build_item());
imageViews.add(imageView);
}
return imageViews;
}
}
| [
"1148756147@qq.com"
] | 1148756147@qq.com |
d85757b0d5e2748187179280fd4ad24375dcdc22 | f8179c42690f6d13163ab9d571688ac7809981f9 | /First_project/src/TestString.java | 54c28789055268e9ca9d5d9c210f8c7750aa1bc7 | [] | no_license | himabindu-gundarapu/SFDC | 6e9fa183d70cc75f118397b6742a4e71f4c9f71f | cd13b0e9b70140189a48d0516cc434272342e04a | refs/heads/master | 2021-07-10T07:34:38.998516 | 2021-01-07T07:51:36 | 2021-01-07T07:51:36 | 241,953,847 | 0 | 0 | null | 2021-04-26T20:43:02 | 2020-02-20T18:00:47 | HTML | UTF-8 | Java | false | false | 217 | java |
public class TestString {
public static void main(String[] args) {
String str = " java programming language";
String[] str2 = str.split("a");
for( String s : str2) {
System.out.println(str2);
}
}
}
| [
"ghimabindu.mca@gmail.com"
] | ghimabindu.mca@gmail.com |
6bb25d909fb317013b8dea3c57d9d00ae0221717 | 31a68a694120e47505a7b628a6b9f232618378e2 | /peony-tancms/src/main/java/com/peony/peonyfront/eventnewsregion/model/EventnewsRegion.java | b575e49705650fd801a952a21d9b0f110c030731 | [] | no_license | ganzhiping/peony-newTancms | 1b02ad1f137c882147c756230e0cb28cbb7823ab | cf2eb49ea5728e9338138ada2c29f6853b95cffd | refs/heads/master | 2021-01-16T21:29:55.002026 | 2018-03-23T02:15:10 | 2018-03-23T02:15:10 | 100,232,075 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 973 | java | package com.peony.peonyfront.eventnewsregion.model;
import com.peony.core.base.pojo.BasePojo;
public class EventnewsRegion extends BasePojo {
/**
*
*/
private static final long serialVersionUID = 241373874951701917L;
private String id;
private String eventnewsid;
private Integer regionid;
private Integer provinceid;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getEventnewsid() {
return eventnewsid;
}
public void setEventnewsid(String eventnewsid) {
this.eventnewsid = eventnewsid;
}
public Integer getRegionid() {
return regionid;
}
public void setRegionid(Integer regionid) {
this.regionid = regionid;
}
public Integer getProvinceid() {
return provinceid;
}
public void setProvinceid(Integer provinceid) {
this.provinceid = provinceid;
}
} | [
"695203640@qq.com"
] | 695203640@qq.com |
dec95aa28100219cdddaa4b76e7280792e463008 | 6075ebdcc8d6b0fb4b113e4cf7f9e782fc60099f | /src/com/test/expression/Multiply.java | 3c37eea3bfef72487558204c260d4cf00b783cc1 | [] | no_license | xwqiang/DesignPattern | f3e34461ec875ac34ed8b7baceccc40a4e9047d1 | 05d62b06e0ac6035996eb12fd2266790e9ec1d78 | refs/heads/master | 2021-01-02T08:52:08.369599 | 2015-08-11T06:42:01 | 2015-08-11T06:42:01 | 14,414,257 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 314 | java | package com.test.expression;
public class Multiply extends Expression {
private Expression left, right;
public Multiply(Expression left, Expression right) {
this.left = left;
this.right = right;
}
public int interpret(Context con) {
return left.interpret(con) * right.interpret(con);
}
}
| [
"642143714@qq.com"
] | 642143714@qq.com |
bc62897c21e2bcaa6832f35c0315de355f05ea53 | 18292045b57f1f68abc5adf0b360fa22f29877b3 | /src/main/java/com/amazonservices/mws/FulfillmentInventory/model/ListInventorySupplyByNextTokenRequest.java | 3a06b378d65139037b75293387f5851734d386a2 | [
"MIT"
] | permissive | liccoCode/amazon-mws | 537d20493e43a4baeb65de0f23adf6a51e61c27d | 91fcf1a04ae8790015c223d282f17f9d24a578f4 | refs/heads/master | 2020-04-06T22:15:41.694302 | 2018-11-16T07:59:21 | 2018-11-16T07:59:21 | 157,830,092 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,798 | java | /*******************************************************************************
* Copyright 2009-2016 Amazon Services. 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.
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
* 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.
*******************************************************************************
* List Inventory Supply By Next Token Request
* API Version: 2010-10-01
* Library Version: 2014-09-30
* Generated: Mon Mar 21 09:01:27 PDT 2016
*/
package com.amazonservices.mws.FulfillmentInventory.model;
import javax.xml.bind.annotation.*;
import com.amazonservices.mws.client.*;
/**
* ListInventorySupplyByNextTokenRequest complex type.
*
* XML schema:
*
* <pre>
* <complexType name="ListInventorySupplyByNextTokenRequest">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SellerId" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="MWSAuthToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Marketplace" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="NextToken" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="ListInventorySupplyByNextTokenRequest", propOrder={
"sellerId",
"mwsAuthToken",
"marketplace",
"nextToken"
})
@XmlRootElement(name = "ListInventorySupplyByNextTokenRequest")
public class ListInventorySupplyByNextTokenRequest extends AbstractMwsObject {
@XmlElement(name="SellerId",required=true)
private String sellerId;
@XmlElement(name="MWSAuthToken")
private String mwsAuthToken;
@XmlElement(name="Marketplace")
private String marketplace;
@XmlElement(name="NextToken",required=true)
private String nextToken;
/**
* Get the value of SellerId.
*
* @return The value of SellerId.
*/
public String getSellerId() {
return sellerId;
}
/**
* Set the value of SellerId.
*
* @param sellerId
* The new value to set.
*/
public void setSellerId(String sellerId) {
this.sellerId = sellerId;
}
/**
* Check to see if SellerId is set.
*
* @return true if SellerId is set.
*/
public boolean isSetSellerId() {
return sellerId != null;
}
/**
* Set the value of SellerId, return this.
*
* @param sellerId
* The new value to set.
*
* @return This instance.
*/
public ListInventorySupplyByNextTokenRequest withSellerId(String sellerId) {
this.sellerId = sellerId;
return this;
}
/**
* Get the value of MWSAuthToken.
*
* @return The value of MWSAuthToken.
*/
public String getMWSAuthToken() {
return mwsAuthToken;
}
/**
* Set the value of MWSAuthToken.
*
* @param mwsAuthToken
* The new value to set.
*/
public void setMWSAuthToken(String mwsAuthToken) {
this.mwsAuthToken = mwsAuthToken;
}
/**
* Check to see if MWSAuthToken is set.
*
* @return true if MWSAuthToken is set.
*/
public boolean isSetMWSAuthToken() {
return mwsAuthToken != null;
}
/**
* Set the value of MWSAuthToken, return this.
*
* @param mwsAuthToken
* The new value to set.
*
* @return This instance.
*/
public ListInventorySupplyByNextTokenRequest withMWSAuthToken(String mwsAuthToken) {
this.mwsAuthToken = mwsAuthToken;
return this;
}
/**
* Get the value of Marketplace.
*
* @return The value of Marketplace.
*/
public String getMarketplace() {
return marketplace;
}
/**
* Set the value of Marketplace.
*
* @param marketplace
* The new value to set.
*/
public void setMarketplace(String marketplace) {
this.marketplace = marketplace;
}
/**
* Check to see if Marketplace is set.
*
* @return true if Marketplace is set.
*/
public boolean isSetMarketplace() {
return marketplace != null;
}
/**
* Set the value of Marketplace, return this.
*
* @param marketplace
* The new value to set.
*
* @return This instance.
*/
public ListInventorySupplyByNextTokenRequest withMarketplace(String marketplace) {
this.marketplace = marketplace;
return this;
}
/**
* Get the value of NextToken.
*
* @return The value of NextToken.
*/
public String getNextToken() {
return nextToken;
}
/**
* Set the value of NextToken.
*
* @param nextToken
* The new value to set.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
* Check to see if NextToken is set.
*
* @return true if NextToken is set.
*/
public boolean isSetNextToken() {
return nextToken != null;
}
/**
* Set the value of NextToken, return this.
*
* @param nextToken
* The new value to set.
*
* @return This instance.
*/
public ListInventorySupplyByNextTokenRequest withNextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* Read members from a MwsReader.
*
* @param r
* The reader to read from.
*/
@Override
public void readFragmentFrom(MwsReader r) {
sellerId = r.read("SellerId", String.class);
mwsAuthToken = r.read("MWSAuthToken", String.class);
marketplace = r.read("Marketplace", String.class);
nextToken = r.read("NextToken", String.class);
}
/**
* Write members to a MwsWriter.
*
* @param w
* The writer to write to.
*/
@Override
public void writeFragmentTo(MwsWriter w) {
w.write("SellerId", sellerId);
w.write("MWSAuthToken", mwsAuthToken);
w.write("Marketplace", marketplace);
w.write("NextToken", nextToken);
}
/**
* Write tag, xmlns and members to a MwsWriter.
*
* @param w
* The Writer to write to.
*/
@Override
public void writeTo(MwsWriter w) {
w.write("http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/", "ListInventorySupplyByNextTokenRequest",this);
}
/** Value constructor. */
public ListInventorySupplyByNextTokenRequest(String sellerId,String mwsAuthToken,String marketplace,String nextToken) {
this.sellerId = sellerId;
this.mwsAuthToken = mwsAuthToken;
this.marketplace = marketplace;
this.nextToken = nextToken;
}
/** Legacy value constructor. */
public ListInventorySupplyByNextTokenRequest(String sellerId,String marketplace,String nextToken) {
this.sellerId = sellerId;
this.marketplace = marketplace;
this.nextToken = nextToken;
}
/** Default constructor. */
public ListInventorySupplyByNextTokenRequest() {
super();
}
}
| [
"licco@easya.cc"
] | licco@easya.cc |
9a5cc18aa77e32e5a33b9ff71f5c974ab78f95d5 | 763264d87076dd5930b4b20a77258bb78d783a81 | /src/Expressions/operators.java | 627144743cfd02784efc8895cad6d8568bcd690c | [] | no_license | StevieClark-super/Learn_Java | c32f9bbc3490e5dbaac01cb91545db921fa76ac3 | fb554b2f8fdcb56850d1460543995074d3ddef6c | refs/heads/master | 2023-04-11T16:03:02.130360 | 2021-05-01T19:07:02 | 2021-05-01T19:07:02 | 340,744,505 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,456 | java | package Expressions;
public class operators {
public static void main(String[] args) {
int number = 6;
number++;
number--;
number += 7;
number -= 3;
number *= 4;
number /= 10;
System.out.println(number);
int operatorsNumber = 10;
int operandNumber = 12;
System.out.println(operandNumber + operatorsNumber);
System.out.println(operandNumber - operatorsNumber);
System.out.println(operandNumber * operatorsNumber);
System.out.println(operandNumber / operatorsNumber);
boolean isLearning = false;
if (isLearning) {
System.out.println("Yes");
}
int variable = 8;
if (variable == 5) {
System.out.println("variable is equal");
}
if (variable <= 2) {
System.out.println("yes, variable is less than 2");
}
int starVariable = 18;
if (starVariable >= 14) {
System.out.println("variable is greater than 14");
}
if (starVariable < 20) {
System.out.println("variable is less than 20");
}
int someNumber = 9;
int otherNumber = 5;
if (someNumber == otherNumber) {
System.out.println("They are equal");
}
if (someNumber != otherNumber) {
System.out.println("These numbers are not equal");
}
boolean waterOn = true;
if (!waterOn) {
System.out.println("Water not flowing");
}
int aNumber = 5;
int anotherNumber = 20;
if (aNumber < anotherNumber && aNumber > 2) {
System.out.println("The number is between 2 and 20");
}
int testNumber = 31;
if (testNumber < 3 && testNumber > 40) {
System.out.println("The number is between 3 and 40");
}
if (!(testNumber < 1) && !(testNumber > 50)) {
System.out.println("The number is not between 1 and 50");
}
if (testNumber < 33 && testNumber > 45) {
System.out.println("The number is between 33 and 45");
}
if (testNumber != 33) {
testNumber = 33;
System.out.println(testNumber);
}
int aNumber2 = 6;
int someOtherNumber = 13;
if (aNumber2 < 5 || someOtherNumber > 5) {
System.out.println("My condition has been satisfied");
}
int value1 = 20;
int value2 = 35;
if (value1 < 20 || value2 > 20) {
System.out.println(true);
}
if (value1 + value2 > 30) {
System.out.println("value1 and value2 are greater than 30");
}
if (value1 != value2) {
System.out.println("value1 and value2 are not equal");
}
boolean isDriving = false;
boolean isMoving = isDriving ? true : false;
if (isMoving) {
System.out.println("isMoving is true");
}
boolean isLightOn = false;
if(isLightOn){
System.out.println("Light is on");
isLightOn = false;
System.out.println("Light is turned off");
} else{
System.out.println("Light is off");
isLightOn = true;
System.out.println("Light is turned on");
}
int age = 18;
if(age < 18){
System.out.println("I cannot vote");
} else if(age >= 18 && age < 21){
System.out.println("I can vote but I cannot drink");
}else {
System.out.println("I can go to the bar and the club");
}
int examGrade = 87 ;
if (examGrade <= 100 && examGrade >= 97){
System.out.println("A+");
}
else if (examGrade < 97 && examGrade >= 94){
System.out.println("A");
}
else if (examGrade < 94 && examGrade >= 90){
System.out.println("A-");
}
else if (examGrade < 90 && examGrade >= 85){
System.out.println("B");
}
else if (examGrade < 85 && examGrade >= 80){
System.out.println("B-");
}
else if (examGrade < 80 && examGrade >= 70){
System.out.println("C");
}
else if (examGrade< 70){
System.out.println("F");
}
else {
System.out.println("Grade not available");
}
}
} | [
"78661590+StevieClark-super@users.noreply.github.com"
] | 78661590+StevieClark-super@users.noreply.github.com |
e513c224cad81444d7724e51c4a4bdd79b721b9c | e82fbf210cc46ade8695a8d03e3bd6056ca6ad88 | /src/main/java/com/space/repository/ShipRepository.java | 724462cc8c25ff5b28ab91fdaa81ffefd7333154 | [] | no_license | Gummi7Bear/CosmoPark | 1e2fbdf88e74a02d740adbf929f17b2b4de62243 | 3b7b0669e1d43da711f98889aa00cf7c01bcf991 | refs/heads/master | 2023-06-27T18:18:45.455506 | 2021-08-01T08:00:03 | 2021-08-01T08:00:03 | 374,209,477 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 256 | java | package com.space.repository;
import com.space.model.Ship;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ShipRepository extends JpaRepository <Ship, Long>{
}
| [
"mishkina.galina.m@gmail.com"
] | mishkina.galina.m@gmail.com |
fffa58f69c195344cad5e0f0e1b20cfa0782bdd6 | b7ba6a7d6f2e37db182361157abc04faaa68727a | /src/main/java/git/com/postgraduate/bookstore/service/PaperService.java | 5918eb37ffcca769b82f3d76283b4304a4c22eb1 | [] | no_license | mingyuanw/e-commerce-platform | 9d75c32268be8e16a5c634603739fa02207bf94d | eda11dba5cbb8c53806ed9cae6611fc16b553464 | refs/heads/master | 2020-03-21T04:30:38.041157 | 2017-07-06T06:02:29 | 2017-07-06T06:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 440 | java | package git.com.postgraduate.bookstore.service;
import java.util.List;
import git.com.postgraduate.bookstore.entity.Paper;
public interface PaperService {
/*create and update*/
public void savePaper(Paper paper);
/*read*/
public List<Paper> listPapers();
public Paper getPaper(Long id);
public Paper getPaper(String province, String university, String school, String major);
/*delete*/
public void deletePaper(Long id);
}
| [
"linfujian1989@gmail.com"
] | linfujian1989@gmail.com |
83481194c9c030bb61e3a09e198dd7c96da4cdbc | bacfa06fc3b80c0a3818f5ba4ee47cc86670836e | /SegundoParcial/Pojo_Parcial_02/build/generated/jax-wsCache/WSPedidoItem/wsordprod/FindAll.java | 07c1d1fa759aff71f7a9a147220d91a5d3dff9a4 | [] | no_license | AlexisCalvillo/SCE | 55234d653bc0190cd85bc627d93d1e08569341fc | 24792a076583fcb68bd9864ecc8e65ca54d69461 | refs/heads/master | 2023-01-10T23:32:09.279394 | 2020-11-20T02:35:32 | 2020-11-20T02:35:32 | 295,783,692 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 689 | java |
package wsordprod;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for findAll complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="findAll">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "findAll")
public class FindAll {
}
| [
"acalvillm@gmail.com"
] | acalvillm@gmail.com |
721c6cc73504b969026889d3ce2d89cc87f0acda | e0b518e9d5556cc612ac11c4aee7d3356b600900 | /worker-core/src/main/java/dev/jianmu/worker/aggregate/WorkerCommands.java | 8d10bfdbb9c5f564c289cd7838f082779b1ec00c | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference",
"MulanPSL-2.0"
] | permissive | athena-flow/jianmu-ci-server1 | 7166b69e05dfe79c33a314400247c4e1154042c6 | cf6606ddc85542616c793a5effaf02462b01ab6a | refs/heads/master | 2023-08-19T06:20:41.534235 | 2021-10-25T03:25:41 | 2021-10-25T03:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 331 | java | package dev.jianmu.worker.aggregate;
/**
* @class: WorkerCommands
* @description: WorkerCommands
* @author: Ethan Liu
* @create: 2021-09-10 22:32
**/
public interface WorkerCommands {
void createWorkspace(String workspaceName);
void deleteWorkspace(String workspaceName);
void runTask(WorkerTask workerTask);
}
| [
"ethan-liu@outlook.com"
] | ethan-liu@outlook.com |
78bb3362f2b753ee99d35f4a86dd4bf35568956d | e801a7ec419fbe303a63a3092571258c0f8d2203 | /src/main/java/gestaogasto/model/Categoria.java | 4b73cf098895f260b6c02470e6daef8cda159267 | [] | no_license | tedyfiromi/gestao-gastos | 6cd620e4670709cfa2b592ce8a0bf280077b713a | b01b40b131990078ce66d6eb527e1fe428bbbfeb | refs/heads/master | 2021-07-12T23:48:08.185305 | 2020-07-12T00:07:56 | 2020-07-12T00:07:56 | 165,282,937 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 702 | java | package gestaogasto.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class Categoria {
@Id
private String id;
private String descricaoCategoria;
public Categoria() {
super();
}
public Categoria(String id, String descricaoCategoria) {
super();
this.id = id;
this.descricaoCategoria = descricaoCategoria;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDescricaoCategoria() {
return descricaoCategoria;
}
public void setDescricaoCategoria(String descricaoCategoria) {
this.descricaoCategoria = descricaoCategoria;
}
}
| [
"p000tedy.marcos.firomi@prservicos.com.br"
] | p000tedy.marcos.firomi@prservicos.com.br |
44ea55222a934d9d065dd04fa79e048c5a35be52 | a6774e3b3b019246b02e3bac2fcd4053c0d354e9 | /SpellSys_Entity/src/main/java/com/qfedu/entity/User.java | 39d53a3e2bdefcd9a4fc0198d024ba2b2ca4c08c | [] | no_license | xiefalei0316/SpellSys | 91160bfec9ccd51716d074544ae351dba558f684 | 4dd2a1a4fea4dd16b0a0816b271bfa6c5abc393d | refs/heads/master | 2023-03-11T23:28:15.048130 | 2019-09-24T02:30:34 | 2019-09-24T02:30:34 | 209,566,464 | 0 | 0 | null | 2023-02-22T08:15:57 | 2019-09-19T13:51:07 | Java | UTF-8 | Java | false | false | 1,782 | java | package com.qfedu.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
*
* </p>
*
* @author rainbow
* @since 2019-09-19
*/
public class User extends Model<User> {
private static final long serialVersionUID = 1L;
/**
* 用户Id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 用户账号
*/
private String name;
/**
* 密码
*/
private String paasword;
/**
* 创建时间
*/
private Date createtime;
/**
* 账号状态
*/
private Integer flag;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPaasword() {
return paasword;
}
public void setPaasword(String paasword) {
this.paasword = paasword;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public Integer getFlag() {
return flag;
}
public void setFlag(Integer flag) {
this.flag = flag;
}
@Override
protected Serializable pkVal() {
return this.id;
}
@Override
public String toString() {
return "User{" +
"id=" + id +
", name=" + name +
", paasword=" + paasword +
", createtime=" + createtime +
", flag=" + flag +
"}";
}
}
| [
"2715115281@qq.com"
] | 2715115281@qq.com |
ed8d4da3b76ec19823b0aa8a433f21a7b69485a1 | 3ba129a3911e4d7747059305bc92a155a1e3384c | /src/ch/epfl/imhof/dem/HGTDigitalElevationModel.java | ba69cd97ba5bc8df632bc7e096d488db88c98bf4 | [] | no_license | Hikarou/Imhof | 9f38a1800aac9f16a722bfad65cdb18437c8893f | 9fde640e42dcb212c261fd2a2172270676dc07f5 | refs/heads/master | 2020-09-02T19:32:38.409606 | 2019-11-03T11:27:00 | 2019-11-03T11:27:00 | 219,289,719 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,699 | java | /**
* Represents a digital elevation model for the HGT file format
*
* @author: Jose Ferro Pinto (233843)
* @author: Dorian Laforest (234832)
*/
package ch.epfl.imhof.dem;
import ch.epfl.imhof.PointGeo;
import ch.epfl.imhof.Vector3;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ShortBuffer;
import java.nio.channels.FileChannel.MapMode;
public class HGTDigitalElevationModel implements DigitalElevationModel {
private final double latitude;
private final double longitude;
private ShortBuffer buffer;
private final FileInputStream stream;
private final double delta;
private final int nbPointInLine;
private final static char NORTH = 'N';
private final static char SOUTH = 'S';
private final static char WEST = 'W';
private final static char EAST = 'E';
private final static String FILE_EXTENSION = ".hgt";
/**
* HGTDigitalElevationModel's constructor
* @param hgt The hgt file to read
* @throws IllegalArgumentException if the file is not valid or cannot be read
*/
public HGTDigitalElevationModel(File hgt) throws IllegalArgumentException {
String fileName = hgt.getName();
char latSgn = fileName.substring(0, 1).charAt(0);
String latAbs = fileName.substring(1, 3);
char lonSgn = fileName.substring(3, 4).charAt(0);
String lonAbs = fileName.substring(4, 7);
String fileExtension = fileName.substring(7);
if (!(fileName.length() == 11)
|| !(latSgn == NORTH|| latSgn == SOUTH)
|| !(lonSgn == EAST|| lonSgn == WEST)) {
throw new IllegalArgumentException("The file is not correctly named");
}
if(!fileExtension.equals(FILE_EXTENSION)) {
throw new IllegalArgumentException("Wrong format file : " + fileExtension);
}
long fileLength = hgt.length();
int nbPoint = (int)Math.sqrt(fileLength/2d);
if(!(nbPoint*nbPoint*2 == fileLength)) {
throw new IllegalArgumentException("Wrong file size : " + fileLength);
}
short lat = latSgn == NORTH ? (short)1 : (short)-1;
short lon = lonSgn == EAST ? (short)1 : (short)-1;
try {
lat = (short) (lat*Short.parseShort(latAbs));
}
catch(NumberFormatException e) {
throw new IllegalArgumentException("Invalid latitude in file name : " + latAbs);
}
try {
lon = (short) (lon*Short.parseShort(lonAbs));
}
catch(NumberFormatException e) {
throw new IllegalArgumentException("Invalid longitude in file name : " + lonAbs);
}
this.longitude = Math.toRadians(lon);
this.latitude = Math.toRadians(lat);
this.delta = Math.toRadians(1/(nbPoint-1d));
this.nbPointInLine = nbPoint;
FileInputStream stream = null;
ShortBuffer buffer = null;
try {
stream = new FileInputStream(hgt);
buffer = stream.getChannel()
.map(MapMode.READ_ONLY, 0, fileLength)
.asShortBuffer();
}
catch(FileNotFoundException e) {
throw new IllegalArgumentException("File not found");
}
catch(Exception e) {
throw new IllegalArgumentException("Invalid file contents");
}
this.stream = stream;
this.buffer = buffer;
}
/* (non-Javadoc)
* @see ch.epfl.imhof.dem.DigitalElevationModel#close()
*/
@Override
public void close() throws IOException {
buffer = null;
stream.close();
}
/* (non-Javadoc)
* @see ch.epfl.imhof.dem.DigitalElevationModel#normalAt(ch.epfl.imhof.PointGeo)
*/
@Override
public Vector3 normalAt(PointGeo point) throws IllegalArgumentException {
if(!(point.latitude() >= latitude && point.latitude() <= (latitude + Math.toRadians(1)))
|| !(point.longitude() >= longitude && point.longitude() <= (longitude + Math.toRadians(1)))) {
throw new IllegalArgumentException("Invalid PointGeo");
}
double s = Earth.RADIUS*delta;
short[] neighbors = neighborsOf(point);
double x = 1/2d * s * (neighbors[0] - neighbors[1] + neighbors[2] - neighbors[3]);
double y = 1/2d * s * (neighbors[0] + neighbors[1] - neighbors[2] - neighbors[3]);
double z = s*s;
return new Vector3(x, y, z);
}
/**
* Returns the four neighbors of the point given in parameter in this order :
* bottom-left, bottom-right, top-left and top-right
* @param point the point to find the neighbors of
* @param delta the HGT file angular resolution
* @return An array containing the four neighbors of the given point
*/
private short[] neighborsOf(PointGeo point) {
short[] neighbors = new short[4];
int indexLatitude = (int)Math.floor((point.latitude()-latitude)/delta);
if(indexLatitude == (nbPointInLine-1)) {
indexLatitude--;
}
int indexLongitude = (int)Math.floor((point.longitude()-longitude)/delta);
if(indexLongitude == (nbPointInLine-1)) {
indexLongitude--;
}
int indexByte = (nbPointInLine-1-indexLatitude) * nbPointInLine + indexLongitude;
neighbors[0] = buffer.get(indexByte);
neighbors[1] = buffer.get(indexByte+1);
int indexByteMinusOne = indexByte - nbPointInLine;
neighbors[2] = buffer.get(indexByteMinusOne);
neighbors[3] = buffer.get(indexByteMinusOne+1);
return neighbors;
}
} | [
"jose.ferropinto@etu.hesge.ch"
] | jose.ferropinto@etu.hesge.ch |
9ca8bca20b6cdc96731c8a57ac98c72558294da0 | d8071435ef8cb3786c8a5625dbe58f74b4132112 | /suave/uavmap/UavMapLog.java | 76c22bcd16a5890d75e4df28c4791ce3642e9d22 | [] | no_license | shafiqabedin/suave-dynamic | c70b6e318d830e12a4edaf369b8684c2f4fa9f7f | f86c4d1d042f1431954547ab4e171d8d69a3ca3c | refs/heads/master | 2020-07-15T16:08:33.362611 | 2019-08-31T22:57:11 | 2019-08-31T22:57:11 | 205,604,116 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,672 | java | package uavmap;
import suave.*;
import java.io.*;
import java.util.*;
public class UavMapLog {
private FileOutputStream logStream = null;
private PrintStream logPrint = null;
// Given a time, get a string representing the current time in
// format YYYY_MM_DD_HH_MM_SS, i.e. 2005_02_18_23_16_24. Using
// this format results in timestamp strings (or filenames) that
// will sort to date order. If 'time' is null it will be
// filled in with the current time.
private static String getTimeStamp(Calendar time) {
String timestamp = "";
String part = null;
if(null == time)
time = Calendar.getInstance();
timestamp = Integer.toString(time.get(time.YEAR));
part = Integer.toString((time.get(time.MONTH)+1));
if(1 == part.length())
part = "0"+part;
timestamp += part;
part = Integer.toString(time.get(time.DAY_OF_MONTH));
if(1 == part.length())
part = "0"+part;
timestamp += part;
part = Integer.toString(time.get(time.HOUR_OF_DAY));
if(1 == part.length())
part = "0"+part;
timestamp += part;
part = Integer.toString(time.get(time.MINUTE));
if(1 == part.length())
part = "0"+part;
timestamp += part;
part = Integer.toString(time.get(time.SECOND));
if(1 == part.length())
part = "0"+part;
timestamp += part;
return timestamp;
}
public UavMapLog() {
String logFileName = "uavmap"+getTimeStamp(null)+".log";
try {
logStream = new FileOutputStream(logFileName);
}
catch(FileNotFoundException e) {
Debug.debug(3, "IOException opening log file ("+logFileName+") for writing, e="+e);
}
logPrint = new PrintStream( logStream );
synchronized(logPrint) {
logPrint.println(System.currentTimeMillis()+" start");
}
}
public void click(String clicktype, UavMapTarget target) {
LogLine line = new LogLine(clicktype, target);
synchronized(logPrint) {
logPrint.println(line);
}
}
public void navData(int uavid, double latitude, double longitude, double altitude, double localx, double localy, double yaw, double pitch, double roll) {
LogLine line = new LogLine(uavid, latitude, longitude, altitude, localx, localy, yaw, pitch, roll);
synchronized(logPrint) {
logPrint.println(line);
}
}
public static ArrayList<LogLine> parseFile(String filename) {
ArrayList<LogLine> logAry = new ArrayList<LogLine>();
ArrayList<ArrayList<String>> lineList = CSV.parseFile(filename, ' ');
for(int loopi = 0; loopi < lineList.size(); loopi++) {
LogLine logLine = new LogLine(lineList.get(loopi));
logAry.add(logLine);
}
return logAry;
}
public static void playbackNavDataFromFile(UavMapDisplay mapDisplay, String filename, double speedup) {
// @TODO: This is just to test the GeoTransforms code;
//
// guessing at the origin height
GeoTransformsLVCS lvcs = new GeoTransformsLVCS();
GeoTransforms.init_lvcs(lvcs,
Math.toRadians(UavMapDisplay.ORIGIN_LAT),
Math.toRadians(UavMapDisplay.ORIGIN_LON),
400);
ArrayList<LogLine> logAry = parseFile(filename);
long playbackStartTime = System.currentTimeMillis();
long logStartTime = -1;
for(int loopi = 0; loopi < logAry.size(); loopi++) {
LogLine logLine = logAry.get(loopi);
// The first logs we recorded don't have a start time.
if(-1 == logStartTime)
logStartTime = logLine.time;
if(logLine.navData) {
long logLineTimeSinceStart = logLine.time - logStartTime;
logLineTimeSinceStart = (long)((double)logLineTimeSinceStart/speedup);
long timeToUpdate = playbackStartTime + logLineTimeSinceStart;
long timeToSleep = timeToUpdate - System.currentTimeMillis();
// @TODO: This is just to test the GDS2LVCSUtils code;
double xyz[] = new double[3];
GeoTransforms.gps_to_lvcs(lvcs, Math.toRadians(logLine.lat),Math.toRadians(logLine.lon),logLine.alt, xyz);
Debug.debug(1, "orig_gps "+logLine.lat+", "+logLine.lon+", "+logLine.alt+" orig_conv "+logLine.localx+","+logLine.localy+" lvcs "+xyz[0]+", "+xyz[1]+", "+xyz[2]);
if(timeToSleep > 0) {
Debug.debug(1, "logtime "+logLine.time+" logLineTimeSinceStart "+logLineTimeSinceStart+" sleeping "+timeToSleep+" until "+timeToUpdate);
try {Thread.sleep(timeToSleep); } catch (Exception e) {}
}
mapDisplay.updateUav(logLine.uavid, logLine.lat, logLine.lon, logLine.alt, logLine.yaw, logLine.pitch, logLine.roll);
}
else if(logLine.start) {
logStartTime = logLine.time;
}
}
}
}
| [
"shafiqabedin@Shafiqs-MacBook-Pro.local"
] | shafiqabedin@Shafiqs-MacBook-Pro.local |
eab5065069f8aa7857c650ec1a4e420a843c492d | 972535a7e08d01b144a996e114b6832c91d669c9 | /src/ea/operators/SelectionOperator.java | 9d6bb300d48cc87d79b4bfcb807d2667dc223520 | [] | no_license | afcruzs/AOEA | f34aa944feb96884e26fafb03fc14f1e22cf03c9 | b1f5f4febe2833b7eb526c54e6475b9577c6f294 | refs/heads/master | 2021-01-19T17:33:21.123081 | 2017-12-19T01:33:16 | 2017-12-19T01:33:16 | 88,330,654 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 192 | java | package ea.operators;
import java.util.ArrayList;
import ea.FitnessFunction;
public interface SelectionOperator<T> {
void select(ArrayList<T[]> population, FitnessFunction<T> function);
}
| [
"bones.felipe@gmail.com"
] | bones.felipe@gmail.com |
55b5d1a7403ea39652c218e8c5731863e7cea623 | 995f73d30450a6dce6bc7145d89344b4ad6e0622 | /P40_HarmonyOS_2.0.0_Developer_Beta1/src/main/java/com/android/server/display/HwBrightnessSceneRecognition.java | 8d24a5017bad503962d381114f5be1a7a02420a9 | [] | no_license | morningblu/HWFramework | 0ceb02cbe42585d0169d9b6c4964a41b436039f5 | 672bb34094b8780806a10ba9b1d21036fd808b8e | refs/heads/master | 2023-07-29T05:26:14.603817 | 2021-09-03T05:23:34 | 2021-09-03T05:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 63,176 | java | package com.android.server.display;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.IPowerManager;
import android.os.Message;
import android.os.SystemClock;
import android.util.ArrayMap;
import android.util.Xml;
import com.android.server.display.DisplayEffectMonitor;
import com.android.server.hidata.appqoe.HwAppQoeUtils;
import com.android.server.pm.auth.HwCertification;
import com.huawei.android.os.HwPowerManager;
import com.huawei.displayengine.DeLog;
import com.huawei.displayengine.DisplayEngineDbManager;
import com.huawei.displayengine.DisplayEngineManager;
import com.huawei.msdp.movement.HwMSDPMovementChangeEvent;
import com.huawei.msdp.movement.HwMSDPMovementEvent;
import com.huawei.msdp.movement.HwMSDPMovementManager;
import com.huawei.msdp.movement.HwMSDPMovementServiceConnection;
import com.huawei.msdp.movement.HwMSDPMovementStatusChangeCallback;
import huawei.cust.HwCfgFilePolicy;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
/* access modifiers changed from: package-private */
public class HwBrightnessSceneRecognition {
private static final int AR_REPORT_TIME_S = 1;
private static final String CONTROL_XML_FILE = "/display/effect/displayengine/LABC_SR_control.xml";
private static final int DEFAULT_APP_TYPE = 3;
private static final int FRONT_CAMERA_APP_ENTER = 31;
private static final int FRONT_CAMERA_APP_EXIT = 30;
private static final int GAME_ENTER = 21;
private static final int GAME_EXIT = 20;
private static final int GAME_IS_DISABLE_AUTO_BRIGHTNESS = 29;
private static final int GAME_IS_FRONT_STATE = 27;
private static final int GAME_NOT_DISABLE_AUTO_BRIGHTNESS = 28;
private static final int GAME_NOT_FRONT_STATE = 26;
private static final int HDR_ENTER = 33;
private static final int HDR_EXIT = 32;
private static final int HOME_ENTER = 23;
private static final int HOME_EXIT = 22;
private static final int INVALID_VALUE = -1;
private static final int MAX_BL_LEVEL = 255;
private static final int MIN_BL_LEVEL = 4;
private static final int MSG_HDR_STATE = 1;
private static final int READING_ENTER = 1;
private static final int READING_EXIT = 0;
private static final int READ_APP_TYPE = 1;
private static final int READ_EXIT_APP_TYPE = 2;
private static final int RECONNECT_MAX_COUNT = 10;
private static final int RECOONECT_WAIT_TIME_MS = 10000;
private static final int SUCCESS_RETURN_VALUE = 0;
private static final String TAG = "DE J HwBrightnessSceneRecognition";
private static final int VIDEO_ENTER = 25;
private static final int VIDEO_EXIT = 24;
private Map<String, ArActivity> mArActivities;
private int mArConfidenceTh = 30;
private int mArMonitorSampleMaxNum;
private int mArMonitorSampleTimeStepMs = HwAppQoeUtils.APP_TYPE_STREAMING;
private int mArReconnectTimes;
private int mArScene = -1;
private boolean mArSceneEnable;
private int mArScreenOnTimeThMs = 200;
private HwMSDPMovementStatusChangeCallback mArSink = new HwMSDPMovementStatusChangeCallback() {
/* class com.android.server.display.HwBrightnessSceneRecognition.AnonymousClass2 */
@Override // com.huawei.msdp.movement.HwMSDPMovementStatusChangeCallback
public void onMovementStatusChanged(int type, HwMSDPMovementChangeEvent changeEvent) {
for (HwMSDPMovementEvent event : changeEvent.getMovementEvents()) {
HwBrightnessSceneRecognition.this.updateArStatus(event.getMovement(), event.getEventType());
}
HwBrightnessSceneRecognition.this.setArSceneToBlControllerIfNeeded();
}
};
private int mArWaitTimeMs = 10000;
private BrightnessAwarenessFence mBrightnessAwarenessFence;
private HwMSDPMovementServiceConnection mConnect = new HwMSDPMovementServiceConnection() {
/* class com.android.server.display.HwBrightnessSceneRecognition.AnonymousClass1 */
@Override // com.huawei.msdp.movement.HwMSDPMovementServiceConnection
public void onServiceConnected() {
DeLog.i(HwBrightnessSceneRecognition.TAG, "onServiceConnected()");
HwBrightnessSceneRecognition.this.mIsArConnected = true;
if (HwBrightnessSceneRecognition.this.mIsScreenOn) {
HwBrightnessSceneRecognition.this.enableAr();
}
}
@Override // com.huawei.msdp.movement.HwMSDPMovementServiceConnection
public void onServiceDisconnected(Boolean isNormalDie) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "onServiceDisconnected(), isNormalDie = " + isNormalDie);
HwBrightnessSceneRecognition.this.mIsArConnected = false;
if (isNormalDie.booleanValue()) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "normal die, do nothing.");
} else {
HwBrightnessSceneRecognition.this.mHandler.postDelayed(new Runnable() {
/* class com.android.server.display.HwBrightnessSceneRecognition.AnonymousClass1.AnonymousClass1 */
@Override // java.lang.Runnable
public void run() {
HwBrightnessSceneRecognition.access$308(HwBrightnessSceneRecognition.this);
if (!HwBrightnessSceneRecognition.this.mIsArConnected && HwBrightnessSceneRecognition.this.mArReconnectTimes < 10) {
DeLog.w(HwBrightnessSceneRecognition.TAG, "Ar retry " + HwBrightnessSceneRecognition.this.mArReconnectTimes + " time connectService...");
HwBrightnessSceneRecognition.this.connectArService();
HwBrightnessSceneRecognition.this.mHandler.postDelayed(this, 10000);
}
}
}, 10000);
}
}
};
private final Context mContext;
private DisplayEngineDbManager mDbManager;
private int mDbUserDragMaxSize = 100;
private DisplayEffectMonitor mDisplayEffectMonitor;
private DisplayEngineManager mDisplayEngineManager;
private boolean mEnable;
private boolean mFrontCameraAppSceneEnable;
private int mFrontCameraAppState;
private Map<String, Integer> mFrontCameraAppWhiteList;
private boolean mGameBlSceneEnable;
private Map<String, Integer> mGameBrightnessLevelWhiteList;
private int mGameBrightnessState;
private boolean mGameDeSceneEnable;
private boolean mGameDisableAutoBrightnessModeEnable = false;
private int mGameHdrState;
private Map<String, Integer> mGameHdrWhiteList;
private Handler mHandler = new Handler();
private boolean mHdrEnable;
private boolean mHomeSceneEnable;
private Handler mHwBrightnessSceneRecognitionHandler;
private HwMSDPMovementManager mHwMsdpMovementManager;
private boolean mIsArConnected;
private boolean mIsAwarenessEnable;
private volatile boolean mIsScreenOn = true;
private int mLocationScene = -1;
private boolean mNeedNotifyFrontCameraAppStateChange;
private boolean mNeedNotifyGameCurveChange;
private boolean mNeedNotifyPersonalizedCurveChange;
private boolean mNeedNotifyVideoCurveChange;
private boolean mPersonalizedCurveEnable;
private String mPkgName = "";
private ThreadPoolExecutor mPool = new ThreadPoolExecutor(2, 2, 60, TimeUnit.SECONDS, new LinkedBlockingQueue(10), new DeThreadFactory(), new ThreadPoolExecutor.DiscardOldestPolicy());
private volatile IPowerManager mPowerManagerService;
private boolean mReadingSceneEnable;
private int mReadingState = 1;
private Map<String, Integer> mReadingWhiteList;
private Map<String, Integer> mSceneTagMap;
private volatile boolean mScreenOffStateCleanFlag = true;
private long mScreenOnTimeMs;
private Map<String, Integer> mTopApkBrightnessLevelWhiteList;
private int mTopApkState = 3;
private int mTopGameModeState = 20;
private int mUserId;
private boolean mVideoBlSceneEnable;
private Map<String, Integer> mVideoBrightnessLevelWhiteList;
private int mVideoBrightnessState;
public static class FeatureTag {
public static final String TAG_AR_SCENE = "ARScene";
public static final String TAG_FRONT_CAMERA_APP_SCENE = "FrontCameraAppScene";
public static final String TAG_GAME_BRIGHTNESS_SCENE = "GameBrightnessScene";
public static final String TAG_GAME_DE_SCENE = "GameDEScene";
public static final String TAG_GAME_DISABLE_AUTO_BRIGHTNESS_SCENE = "GameDisableAutoBrightnessScene";
public static final String TAG_PERSONALIZED_CURVE = "PersonalizedCurve";
public static final String TAG_READING_SCENE = "ReadingScene";
public static final String TAG_VIDEO_BRIGHTNESS_SCENE = "VideoBrightnessScene";
}
public static class SceneTag {
public static final String ACTIVITY_FAST_WALKING = "android.activity_recognition.fast_walking";
public static final String ACTIVITY_IN_VEHICLE = "android.activity_recognition.in_vehicle";
public static final String ACTIVITY_ON_BICYCLE = "android.activity_recognition.on_bicycle";
public static final String ACTIVITY_ON_FOOT = "android.activity_recognition.on_foot";
public static final String ACTIVITY_OUTDOOR = "android.activity_recognition.outdoor";
public static final String ACTIVITY_RELATIVE_STILL = "android.activity_recognition.relative_still";
public static final String ACTIVITY_RUNNING = "android.activity_recognition.running";
public static final String ACTIVITY_STILL = "android.activity_recognition.still";
public static final String ACTIVITY_TYPE_VE_HIGH_SPEED_RAIL = "android.activity_recognition.high_speed_rail";
public static final String ACTIVITY_UNKNOWN = "android.activity_recognition.unknown";
public static final String ACTIVITY_WALKING = "android.activity_recognition.walking";
public static final String LOCATION_HOME = "location.home";
public static final String LOCATION_NOT_HOME = "location.nothome";
public static final String LOCATION_UNKNOWN = "location.unknown";
public static final long MIN_REPORT_TIME = 1000000000;
}
static /* synthetic */ int access$308(HwBrightnessSceneRecognition x0) {
int i = x0.mArReconnectTimes;
x0.mArReconnectTimes = i + 1;
return i;
}
private class DeThreadFactory implements ThreadFactory {
private static final String NAME = "DisplayEngine_Default";
private int mCounter;
private DeThreadFactory() {
}
@Override // java.util.concurrent.ThreadFactory
public Thread newThread(Runnable runnable) {
this.mCounter++;
return new Thread(runnable, "DisplayEngine_Default_Thread_" + this.mCounter);
}
}
public HwBrightnessSceneRecognition(Context context) {
this.mContext = context;
this.mGameBrightnessLevelWhiteList = new HashMap();
this.mVideoBrightnessLevelWhiteList = new HashMap();
this.mFrontCameraAppWhiteList = new HashMap();
this.mGameHdrWhiteList = new HashMap();
this.mTopApkBrightnessLevelWhiteList = new HashMap();
this.mReadingWhiteList = new HashMap();
this.mArActivities = new HashMap();
this.mDisplayEngineManager = new DisplayEngineManager();
getConfigParam();
this.mDbManager = DisplayEngineDbManager.getInstance(this.mContext);
this.mDisplayEffectMonitor = DisplayEffectMonitor.getInstance(this.mContext);
this.mSceneTagMap = new HashMap<String, Integer>(9) {
/* class com.android.server.display.HwBrightnessSceneRecognition.AnonymousClass3 */
{
put(SceneTag.ACTIVITY_UNKNOWN, 0);
put("android.activity_recognition.still", 1);
put("android.activity_recognition.on_foot", 2);
put("android.activity_recognition.in_vehicle", 3);
put("android.activity_recognition.on_bicycle", 4);
put("android.activity_recognition.high_speed_rail", 5);
put(SceneTag.LOCATION_UNKNOWN, 0);
put(SceneTag.LOCATION_HOME, 10);
put(SceneTag.LOCATION_NOT_HOME, 20);
}
};
this.mBrightnessAwarenessFence = new BrightnessAwarenessFence(this.mContext, this);
this.mHwBrightnessSceneRecognitionHandler = new HwBrightnessSceneRecognitionHandler();
}
/* access modifiers changed from: private */
public static class ArActivity {
public final int action;
public int status = 2;
public ArActivity(int action2) {
this.action = action2;
}
}
private void printConfigValue() {
DeLog.i(TAG, "printConfigValue: mEnable = " + this.mEnable);
for (Map.Entry<String, Integer> entry : this.mGameBrightnessLevelWhiteList.entrySet()) {
DeLog.i(TAG, "printConfigValue: mGameBrightnessLevelWhiteList = " + entry.getKey() + ", " + entry.getValue());
}
for (Map.Entry<String, Integer> entry2 : this.mVideoBrightnessLevelWhiteList.entrySet()) {
DeLog.i(TAG, "printConfigValue: mVideoBrightnessLevelWhiteList = " + entry2.getKey() + ", " + entry2.getValue());
}
for (Map.Entry<String, Integer> entry3 : this.mFrontCameraAppWhiteList.entrySet()) {
DeLog.i(TAG, "printConfigValue: mFrontCameraAppWhiteList = " + entry3.getKey() + ", " + entry3.getValue());
}
for (Map.Entry<String, Integer> entry4 : this.mGameHdrWhiteList.entrySet()) {
DeLog.i(TAG, "printConfigValue: mGameHdrWhiteList = " + entry4.getKey() + ", " + entry4.getValue());
}
for (Map.Entry<String, Integer> entry5 : this.mTopApkBrightnessLevelWhiteList.entrySet()) {
DeLog.i(TAG, "printConfigValue: mTopApkBrightnessLevelWhiteList = " + entry5.getKey() + ", " + entry5.getValue());
}
for (Map.Entry<String, Integer> entry6 : this.mReadingWhiteList.entrySet()) {
DeLog.i(TAG, "printConfigValue: mReadingWhiteList = " + entry6.getKey() + ", " + entry6.getValue());
}
printArConfig();
}
private void printArConfig() {
Map<String, ArActivity> map = this.mArActivities;
if (map != null) {
for (Map.Entry<String, ArActivity> entry : map.entrySet()) {
DeLog.i(TAG, "printConfigValue: mArActivities = " + entry.getKey() + ", " + entry.getValue().action);
}
} else {
DeLog.i(TAG, "printConfigValue: mArActivities is null.");
}
DeLog.i(TAG, "printConfigValue: mArSceneEnable = " + this.mArSceneEnable);
DeLog.i(TAG, "printConfigValue: mHoSceneEnable = " + this.mHomeSceneEnable);
DeLog.i(TAG, "printConfigValue: mGameDisableAutoBrightnessModeEnable = " + this.mGameDisableAutoBrightnessModeEnable);
DeLog.i(TAG, "printConfigValue: mVideoBlSceneEnable = " + this.mVideoBlSceneEnable);
DeLog.i(TAG, "printConfigValue: mFrontCameraAppSceneEnable = " + this.mFrontCameraAppSceneEnable);
DeLog.i(TAG, "printConfigValue: mReadingSceneEnable = " + this.mReadingSceneEnable);
DeLog.i(TAG, "printConfigValue: mArScreenOnTimeThMs = " + this.mArScreenOnTimeThMs);
DeLog.i(TAG, "printConfigValue: mArConfidenceTh = " + this.mArConfidenceTh);
DeLog.i(TAG, "printConfigValue: mArScreenOnTimeThMs = " + this.mArScreenOnTimeThMs);
DeLog.i(TAG, "printConfigValue: mArWaitTimeMs = " + this.mArWaitTimeMs);
DeLog.i(TAG, "printConfigValue: mArMonitorSampleMaxNum = " + this.mArMonitorSampleMaxNum);
DeLog.i(TAG, "printConfigValue: mArMonitorSampleTimeStepMs = " + this.mArMonitorSampleTimeStepMs);
}
private void getConfigParam() {
try {
if (!getConfig()) {
DeLog.e(TAG, "getConfig failed!");
}
printConfigValue();
} catch (IOException e) {
DeLog.e(TAG, "getConfig failed setDefaultConfigValue!");
printConfigValue();
}
}
private boolean getConfig() throws IOException {
DeLog.d(TAG, "getConfig");
File xmlFile = HwCfgFilePolicy.getCfgFile(CONTROL_XML_FILE, 0);
if (xmlFile == null) {
DeLog.w(TAG, "get xmlFile :/display/effect/displayengine/LABC_SR_control.xml failed!");
return false;
}
FileInputStream inputStream = null;
try {
FileInputStream inputStream2 = new FileInputStream(xmlFile);
if (!getConfigFromXml(inputStream2)) {
DeLog.i(TAG, "get xmlFile error");
try {
inputStream2.close();
} catch (IOException e) {
DeLog.e(TAG, "get xmlFile error: " + e);
}
return false;
}
try {
inputStream2.close();
} catch (IOException e2) {
DeLog.e(TAG, "get xmlFile error: " + e2);
}
return true;
} catch (FileNotFoundException e3) {
DeLog.e(TAG, "get xmlFile error");
if (0 != 0) {
try {
inputStream.close();
} catch (IOException e4) {
DeLog.e(TAG, "get xmlFile error: " + e4);
}
}
return false;
} catch (Throwable th) {
if (0 != 0) {
try {
inputStream.close();
} catch (IOException e5) {
DeLog.e(TAG, "get xmlFile error: " + e5);
}
}
throw th;
}
}
private boolean getConfigFromXml(InputStream inStream) {
DeLog.d(TAG, "getConfigFromeXml");
XmlPullParser parser = Xml.newPullParser();
try {
parser.setInput(inStream, "UTF-8");
if (handleTags(parser, parser.getEventType())) {
return true;
}
} catch (XmlPullParserException e) {
DeLog.e(TAG, "get xmlFile error: " + e);
} catch (IOException e2) {
DeLog.e(TAG, "get xmlFile error: " + e2);
} catch (NumberFormatException e3) {
DeLog.e(TAG, "get xmlFile error: " + e3);
}
DeLog.e(TAG, "getConfigFromeXml false!");
return false;
}
private boolean handleTags(XmlPullParser parser, int eventType) throws XmlPullParserException, IOException {
boolean configGroupLoadStarted = false;
boolean loadFinished = false;
while (eventType != 1) {
if (eventType == 2) {
String name = parser.getName();
if (Objects.equals(name, "LABCSRControl")) {
configGroupLoadStarted = true;
} else if (!handleEnableAndParamsTag(parser, name) && !handleWhiteListsTag(parser, name)) {
handleAwarenessTag(parser, name);
}
} else if (eventType == 3 && Objects.equals(parser.getName(), "LABCSRControl") && configGroupLoadStarted) {
loadFinished = true;
configGroupLoadStarted = false;
}
if (loadFinished) {
break;
}
eventType = parser.next();
}
if (!loadFinished) {
return false;
}
DeLog.i(TAG, "getConfigFromeXml success!");
return true;
}
private boolean handleEnableAndParamsTag(XmlPullParser parser, String name) throws XmlPullParserException, IOException {
if (name == null) {
return false;
}
char c = 65535;
switch (name.hashCode()) {
case -1610217974:
if (name.equals("VideoBLSceneEnable")) {
c = 5;
break;
}
break;
case -1089469156:
if (name.equals("GameDisableAutoBrightnessModeEnable")) {
c = 7;
break;
}
break;
case -1009825470:
if (name.equals("PersonalizedCurveEnable")) {
c = '\b';
break;
}
break;
case -812329181:
if (name.equals("ReadingSceneEnable")) {
c = '\t';
break;
}
break;
case -551881956:
if (name.equals("GameDESceneEnable")) {
c = 2;
break;
}
break;
case -389398916:
if (name.equals("FrontCameraAppSceneEnable")) {
c = 6;
break;
}
break;
case 115182256:
if (name.equals("HomeSceneEnable")) {
c = 4;
break;
}
break;
case 938503091:
if (name.equals("GameBLSceneEnable")) {
c = 3;
break;
}
break;
case 1283879560:
if (name.equals("DBUserDragMaxSize")) {
c = 1;
break;
}
break;
case 2079986083:
if (name.equals("Enable")) {
c = 0;
break;
}
break;
}
switch (c) {
case 0:
this.mEnable = Boolean.parseBoolean(parser.nextText());
return true;
case 1:
this.mDbUserDragMaxSize = Integer.parseInt(parser.nextText());
return true;
case 2:
this.mGameDeSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
case 3:
this.mGameBlSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
case 4:
this.mHomeSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
case 5:
this.mVideoBlSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
case 6:
this.mFrontCameraAppSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
case 7:
this.mGameDisableAutoBrightnessModeEnable = Boolean.parseBoolean(parser.nextText());
return true;
case '\b':
this.mPersonalizedCurveEnable = Boolean.parseBoolean(parser.nextText());
return true;
case '\t':
this.mReadingSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
default:
return false;
}
}
private boolean parseWhiteList(XmlPullParser parser, String name, Map<String, Integer> whitelist) throws XmlPullParserException, IOException {
String[] values = parser.nextText().split(",");
if (values.length != 2) {
DeLog.d(TAG, "getConfigFromXml find illegal param, tag name = " + name);
return false;
}
whitelist.put(values[0], Integer.valueOf(Integer.parseInt(values[1])));
return true;
}
private boolean handleWhiteListsTag(XmlPullParser parser, String name) throws XmlPullParserException, IOException {
if (Objects.equals(name, "GameBrightnessLevelWhiteList")) {
return parseWhiteList(parser, name, this.mGameBrightnessLevelWhiteList);
}
if (Objects.equals(name, "VideoBrightnessLevelWhiteList")) {
return parseWhiteList(parser, name, this.mVideoBrightnessLevelWhiteList);
}
if (Objects.equals(name, "FrontCameraAppWhiteList")) {
return parseWhiteList(parser, name, this.mFrontCameraAppWhiteList);
}
if (Objects.equals(name, "GameHDRWhiteList")) {
return parseWhiteList(parser, name, this.mGameHdrWhiteList);
}
if (Objects.equals(name, "TopApkBrightnessLevelWhiteList")) {
return parseWhiteList(parser, name, this.mTopApkBrightnessLevelWhiteList);
}
if (Objects.equals(name, "ReadingModeWhiteList")) {
return parseWhiteList(parser, name, this.mReadingWhiteList);
}
return false;
}
private boolean handleAwarenessTag(XmlPullParser parser, String name) throws XmlPullParserException, IOException {
if (Objects.equals(name, "ARSceneEnable")) {
this.mArSceneEnable = Boolean.parseBoolean(parser.nextText());
return true;
} else if (Objects.equals(name, "ARActivity")) {
String[] values = parser.nextText().split(",");
if (values.length != 2) {
DeLog.d(TAG, "getConfigFromXml find illegal param, tag name = " + name);
return false;
}
this.mArActivities.put(values[0], new ArActivity(Integer.parseInt(values[1])));
return true;
} else if (Objects.equals(name, "ARScreenOnTimeTHMs")) {
this.mArScreenOnTimeThMs = Integer.parseInt(parser.nextText());
return true;
} else if (Objects.equals(name, "ARConfidenceTH")) {
this.mArConfidenceTh = Integer.parseInt(parser.nextText());
return true;
} else if (Objects.equals(name, "ARWaitTimeMs")) {
this.mArWaitTimeMs = Integer.parseInt(parser.nextText());
return true;
} else if (Objects.equals(name, "ARMonitorConfidenceSampleMaxNum")) {
this.mArMonitorSampleMaxNum = Integer.parseInt(parser.nextText());
return true;
} else if (Objects.equals(name, "ARMonitorConfidenceSampleTimeStepMs")) {
this.mArMonitorSampleTimeStepMs = Integer.parseInt(parser.nextText());
return true;
} else if (!Objects.equals(name, "AwarenessEnable")) {
return false;
} else {
this.mIsAwarenessEnable = Boolean.parseBoolean(parser.nextText());
DeLog.i(TAG, "AwarenessEnable mIsAwarenessEnable = " + this.mIsAwarenessEnable);
return true;
}
}
public boolean isEnable() {
return this.mEnable;
}
public boolean isFeatureEnable(String tag) {
if (!this.mEnable) {
return false;
}
char c = 65535;
switch (tag.hashCode()) {
case -1394280224:
if (tag.equals(FeatureTag.TAG_VIDEO_BRIGHTNESS_SCENE)) {
c = 2;
break;
}
break;
case -1203035466:
if (tag.equals(FeatureTag.TAG_GAME_DISABLE_AUTO_BRIGHTNESS_SCENE)) {
c = 6;
break;
}
break;
case -1166219904:
if (tag.equals(FeatureTag.TAG_READING_SCENE)) {
c = 5;
break;
}
break;
case -1081926945:
if (tag.equals(FeatureTag.TAG_PERSONALIZED_CURVE)) {
c = 4;
break;
}
break;
case -204695479:
if (tag.equals(FeatureTag.TAG_GAME_BRIGHTNESS_SCENE)) {
c = 1;
break;
}
break;
case 608502681:
if (tag.equals(FeatureTag.TAG_FRONT_CAMERA_APP_SCENE)) {
c = 3;
break;
}
break;
case 2145497145:
if (tag.equals(FeatureTag.TAG_GAME_DE_SCENE)) {
c = 0;
break;
}
break;
}
switch (c) {
case 0:
return this.mGameDeSceneEnable;
case 1:
return this.mGameBlSceneEnable;
case 2:
return this.mVideoBlSceneEnable;
case 3:
return this.mFrontCameraAppSceneEnable;
case 4:
return this.mPersonalizedCurveEnable;
case 5:
return this.mReadingSceneEnable;
case 6:
return this.mGameDisableAutoBrightnessModeEnable;
default:
return false;
}
}
public void initBootCompleteValues() {
DisplayEngineDbManager displayEngineDbManager = this.mDbManager;
if (displayEngineDbManager != null) {
displayEngineDbManager.setMaxSize("DragInfo", this.mDbUserDragMaxSize);
}
if (this.mArSceneEnable) {
connectArService();
}
if (this.mIsAwarenessEnable && !this.mBrightnessAwarenessFence.initBootCompleteValues()) {
DeLog.e(TAG, "mAwarenessManager.connectService failed!");
}
}
public void notifyTopApkChange(String pkgName) {
if (pkgName == null || pkgName.length() <= 0) {
DeLog.i(TAG, "pkgName is null || pkgName.length() <= 0!");
}
this.mPkgName = pkgName;
updateTopApkSceneIfNeeded(pkgName);
updateGameSceneIfNeeded(pkgName);
updateReadingSceneIfNeeded(pkgName);
updateVideoSceneIfNeeded(pkgName);
updateFrontCameraSceneIfNeeded(pkgName);
int topApkLevel = -1;
boolean z = false;
if (this.mNeedNotifyGameCurveChange) {
this.mNeedNotifyGameCurveChange = false;
if (!this.mGameDisableAutoBrightnessModeEnable) {
if (this.mGameBrightnessState == 21) {
setTopApkLevelToBlControllerIfNeeded(21);
return;
}
topApkLevel = 20;
}
}
if (this.mNeedNotifyVideoCurveChange) {
this.mNeedNotifyVideoCurveChange = false;
if (this.mVideoBrightnessState == 25) {
setTopApkLevelToBlControllerIfNeeded(25);
} else {
setTopApkLevelToBlControllerIfNeeded(24);
}
} else if (this.mNeedNotifyFrontCameraAppStateChange) {
this.mNeedNotifyFrontCameraAppStateChange = false;
if (this.mFrontCameraAppState == 31) {
z = true;
}
setFrontCameraAppState(z);
} else {
if (this.mNeedNotifyPersonalizedCurveChange) {
this.mNeedNotifyPersonalizedCurveChange = false;
topApkLevel = this.mTopApkState;
}
if (topApkLevel > 0) {
setTopApkLevelToBlControllerIfNeeded(topApkLevel);
}
}
}
public void notifyScreenStatus(boolean isScreenOn) {
this.mPool.execute(new Runnable(isScreenOn) {
/* class com.android.server.display.$$Lambda$HwBrightnessSceneRecognition$tvelJL7SXjSvAaJ0mnjAGscPSQc */
private final /* synthetic */ boolean f$1;
{
this.f$1 = r2;
}
@Override // java.lang.Runnable
public final void run() {
HwBrightnessSceneRecognition.this.lambda$notifyScreenStatus$0$HwBrightnessSceneRecognition(this.f$1);
}
});
DeLog.i(TAG, "notifyScreenStatus = " + isScreenOn);
}
public /* synthetic */ void lambda$notifyScreenStatus$0$HwBrightnessSceneRecognition(boolean isScreenOn) {
Thread.currentThread().setName("NotifyScreenStatusThread");
boolean lastState = this.mIsScreenOn;
this.mIsScreenOn = isScreenOn;
if (!this.mIsScreenOn && lastState) {
this.mScreenOffStateCleanFlag = true;
}
this.mScreenOnTimeMs = SystemClock.uptimeMillis();
if (isScreenOn) {
enableAr();
return;
}
disableAr();
this.mBrightnessAwarenessFence.onScreenStatusChanged();
}
public void notifyAutoBrightnessAdj() {
if (!isFeatureEnable(FeatureTag.TAG_PERSONALIZED_CURVE)) {
DeLog.i(TAG, "notifyAutoBrightnessAdj returned, isFeatureEnable(FeatureTag.TAG_PERSONALIZED_CURVE) returned false");
return;
}
Bundle data = new Bundle();
int retService = HwPowerManager.getHwBrightnessData("SceneRecognition", data);
BrightnessAdj adj = new BrightnessAdj();
if (retService == 0) {
adj.startBrightness = data.getInt("StartBrightness");
adj.endBrightness = data.getInt("EndBrightness");
adj.alLux = data.getInt("FilteredAmbientLight");
adj.proximityPositive = data.getBoolean("ProximityPositive");
boolean isDeltaValid = data.getBoolean("DeltaValid");
if (adj.startBrightness < 4 || adj.endBrightness < 4 || adj.startBrightness > 255 || adj.endBrightness > 255) {
DeLog.w(TAG, "hwBrightnessGetData return invalid brightness, startBrightness = " + adj.startBrightness + ", endBrightness = " + adj.endBrightness);
} else if (adj.alLux < 0) {
DeLog.w(TAG, "hwBrightnessGetData return invalid alLux, alLux = " + adj.alLux);
} else if (!isDeltaValid) {
DeLog.w(TAG, "hwBrightnessGetData return delta invalid");
} else {
adj.userId = this.mUserId;
adj.timeMillis = System.currentTimeMillis();
adj.pkgName = this.mPkgName;
adj.gameState = this.mGameBrightnessState;
adj.topApkState = this.mTopApkState;
writeDataBaseUserDrag(adj);
}
} else {
DeLog.w(TAG, "hwBrightnessGetData return false or data is null, retService = " + retService);
}
}
public void notifyUserChange(int userId) {
this.mUserId = userId;
DeLog.i(TAG, "notifyUserChange, new id = " + this.mUserId);
}
private void updateGameSceneIfNeeded(String pkgName) {
if (this.mIsScreenOn) {
boolean screenOffCleanFlag = this.mScreenOffStateCleanFlag;
this.mScreenOffStateCleanFlag = false;
int lastGameHdrState = this.mGameHdrState;
int lastGameBrightnessState = this.mGameBrightnessState;
if (pkgName == null || pkgName.length() <= 0) {
this.mGameBrightnessState = 20;
} else {
if (this.mGameBrightnessLevelWhiteList.containsKey(pkgName)) {
this.mGameBrightnessState = 21;
DeLog.d(TAG, "apk " + pkgName + " is in the game brightness whitelist, state=" + this.mGameBrightnessState);
} else {
this.mGameBrightnessState = 20;
DeLog.d(TAG, "apk " + pkgName + " is NOT in the game brightness whitelist, state = " + this.mGameBrightnessState);
}
Integer hdrLevel = this.mGameHdrWhiteList.get(pkgName);
if (hdrLevel != null) {
this.mGameHdrState = hdrLevel.intValue() + 28;
DeLog.d(TAG, "apk " + pkgName + " is in the game hdr whitelist, state = " + this.mGameHdrState);
} else {
this.mGameHdrState = 28;
DeLog.d(TAG, "apk " + pkgName + " is NOT in the game hdr whitelist, state = " + this.mGameHdrState);
}
}
if (isFeatureEnable(FeatureTag.TAG_GAME_BRIGHTNESS_SCENE) && (this.mGameBrightnessState != lastGameBrightnessState || screenOffCleanFlag)) {
this.mNeedNotifyGameCurveChange = true;
}
updateDeGameScene(screenOffCleanFlag, lastGameHdrState);
}
}
private void updateDeGameScene(boolean screenOffCleanFlag, int lastGameHdrState) {
if (this.mDisplayEngineManager == null) {
DeLog.w(TAG, "mDisplayEngineManager is null !");
} else if (isFeatureEnable(FeatureTag.TAG_GAME_DE_SCENE)) {
if (this.mGameHdrState != lastGameHdrState || screenOffCleanFlag) {
int i = this.mGameHdrState;
if (i <= 28 || i > 30) {
this.mDisplayEngineManager.setScene(36, 28);
DeLog.d(TAG, "setScene DE_SCENE_GAME DE_ACTION_TOP_GAME_OFF");
return;
}
this.mDisplayEngineManager.setScene(36, i);
DeLog.d(TAG, "setScene DE_SCENE_GAME DE_ACTION_TOP_GAME: TOP " + this.mGameHdrState);
}
}
}
private void updateReadingSceneIfNeeded(String pkgName) {
Integer value;
if (this.mIsScreenOn) {
int lastReadingState = this.mReadingState;
if (pkgName != null && pkgName.length() > 0 && (value = this.mReadingWhiteList.get(pkgName)) != null) {
if (value.intValue() == 1) {
this.mReadingState = 1;
DeLog.d(TAG, "apk " + pkgName + " is in the reading whitelist group 1, state = " + this.mReadingState);
} else if (value.intValue() == 2) {
this.mReadingState = 0;
DeLog.d(TAG, "apk " + pkgName + " is in the reading whitelist group 2, state = " + this.mReadingState);
}
if (this.mDisplayEngineManager == null) {
DeLog.w(TAG, "mDisplayEngineManager is null !");
return;
}
setReadingAction(lastReadingState);
DeLog.d(TAG, "mReadingState = " + this.mReadingState);
}
}
}
private void setReadingAction(int lastReadingState) {
int i;
if (!isFeatureEnable(FeatureTag.TAG_READING_SCENE) || (i = this.mReadingState) == lastReadingState) {
return;
}
if (i == 0) {
DeLog.d(TAG, "setScene DE_SCENE_READMODE DE_ACTION_MODE_OFF");
this.mDisplayEngineManager.setScene(45, 17);
return;
}
DeLog.d(TAG, "setScene DE_SCENE_READMODE DE_ACTION_MODE_ON");
this.mDisplayEngineManager.setScene(45, 16);
}
private void updateVideoSceneIfNeeded(String pkgName) {
if (this.mIsScreenOn) {
int lastVideoBrightnessState = this.mVideoBrightnessState;
if (pkgName == null || pkgName.length() <= 0) {
this.mVideoBrightnessState = 24;
} else if (this.mVideoBrightnessLevelWhiteList.containsKey(pkgName)) {
this.mVideoBrightnessState = 25;
DeLog.d(TAG, "apk " + pkgName + " is in the video brightness whitelist, state = " + this.mVideoBrightnessState);
} else {
this.mVideoBrightnessState = 24;
DeLog.d(TAG, "apk " + pkgName + " is NOT in the video brightness whitelist, state = " + this.mVideoBrightnessState);
}
if (isFeatureEnable(FeatureTag.TAG_VIDEO_BRIGHTNESS_SCENE) && this.mVideoBrightnessState != lastVideoBrightnessState) {
this.mNeedNotifyVideoCurveChange = true;
}
}
}
private void updateTopApkSceneIfNeeded(String pkgName) {
if (this.mIsScreenOn) {
if (pkgName == null || pkgName.length() <= 0) {
this.mTopApkState = 3;
} else {
Integer value = this.mTopApkBrightnessLevelWhiteList.get(pkgName);
if (value != null) {
this.mTopApkState = value.intValue();
DeLog.d(TAG, "apk " + pkgName + " is in the top apk whitelist, state = " + this.mTopApkState);
} else {
this.mTopApkState = 3;
DeLog.d(TAG, "apk " + pkgName + " is NOT in the top apk whitelist, state = " + this.mTopApkState);
}
}
if (!isFeatureEnable(FeatureTag.TAG_PERSONALIZED_CURVE)) {
DeLog.d(TAG, "updateTopApkSceneIfNeeded returned, TAG_PERSONALIZED_CURVE enable returned false");
return;
}
DisplayEngineDbManager displayEngineDbManager = this.mDbManager;
if (displayEngineDbManager != null && displayEngineDbManager.getSize("BrightnessCurveDefault", new Bundle()) > 0) {
this.mNeedNotifyPersonalizedCurveChange = true;
}
}
}
/* access modifiers changed from: private */
/* access modifiers changed from: public */
private void setTopApkLevelToBlControllerIfNeeded(int topApkState) {
Bundle data = new Bundle();
data.putInt("TopApkLevel", topApkState);
int retService = HwPowerManager.setHwBrightnessData("PersonalizedBrightnessCurveLevel", data);
DeLog.i(TAG, "setTopApkLevelToBlControllerIfNeeded, topApkState = " + topApkState);
if (retService != 0) {
DeLog.w(TAG, "setHwBrightnessData(PersonalizedBrightnessCurveLevel) returned " + retService);
}
}
/* access modifiers changed from: private */
public class BrightnessAdj {
public int alLux;
public int endBrightness;
public int gameState;
public String pkgName;
public boolean proximityPositive;
public int startBrightness;
public long timeMillis;
public int topApkState;
public int userId;
private BrightnessAdj() {
}
}
private void writeDataBaseUserDrag(BrightnessAdj adj) {
DeLog.d(TAG, "writeDataBaseUserDrag, userId = " + adj.userId + ", timeMillis = " + adj.timeMillis + ", startPoint = " + adj.startBrightness + ", endPoint = " + adj.endBrightness + ", pkgName = " + adj.pkgName + ", alLux = " + adj.alLux + ", proximityPositive = " + adj.proximityPositive + ", topApkState = " + adj.topApkState + ", gameState = " + adj.gameState);
if (this.mDbManager != null) {
Bundle data = new Bundle();
data.putLong("TimeStamp", adj.timeMillis);
data.putInt("UserID", adj.userId);
data.putFloat("StartPoint", (float) adj.startBrightness);
data.putFloat("StopPoint", (float) adj.endBrightness);
data.putInt("AmbientLight", adj.alLux);
data.putBoolean("ProximityPositive", adj.proximityPositive);
data.putInt("GameState", adj.gameState == 21 ? 1 : -1);
data.putInt("AppType", adj.topApkState);
data.putString(HwCertification.KEY_PACKAGE_NAME, adj.pkgName);
this.mDbManager.addOrUpdateRecord("DragInfo", data);
}
}
public void connectArService() {
Context context = this.mContext;
if (context == null) {
DeLog.w(TAG, "mContext is null! connect failed.");
return;
}
this.mHwMsdpMovementManager = new HwMSDPMovementManager(context);
DeLog.i(TAG, "connectARService");
this.mHwMsdpMovementManager.connectService(this.mArSink, this.mConnect);
}
public void disconnectArService() {
HwMSDPMovementManager hwMSDPMovementManager = this.mHwMsdpMovementManager;
if (hwMSDPMovementManager != null && this.mIsArConnected) {
hwMSDPMovementManager.disConnectService();
this.mIsArConnected = false;
}
}
public boolean isArConnected() {
return this.mIsArConnected;
}
public boolean enableAr() {
Map<String, ArActivity> map;
boolean retOfAll = true;
if (!this.mIsArConnected || this.mHwMsdpMovementManager == null || (map = this.mArActivities) == null) {
DeLog.i(TAG, "enableAr failed, mIsArConnected||mHwMsdpMovementManager||mArActivities is null!");
} else {
for (String key : map.keySet()) {
boolean ret = enableArActivity(key, 1);
retOfAll = retOfAll && ret;
DeLog.i(TAG, "enableAr " + key + ", ret = " + ret);
}
}
return retOfAll;
}
private boolean enableArActivity(String activity, long reportTime) {
if (this.mHwMsdpMovementManager == null) {
return false;
}
long reportLatencyNs = 1000000000 * reportTime;
if (!enableActivityEvent(activity, 1, reportLatencyNs) || !enableActivityEvent(activity, 2, reportLatencyNs)) {
return false;
}
return true;
}
public boolean disableAr() {
Map<String, ArActivity> map;
boolean retOfAll = true;
if (!this.mIsArConnected || this.mHwMsdpMovementManager == null || (map = this.mArActivities) == null) {
DeLog.i(TAG, "disableAr failed, mIsArConnected||mHwMsdpMovementManager||mArActivities is null!");
} else {
for (Map.Entry<String, ArActivity> entry : map.entrySet()) {
String key = entry.getKey();
boolean ret = disableArActivity(key);
retOfAll = retOfAll && ret;
entry.getValue().status = 2;
DeLog.i(TAG, "disableArActivity " + key + ", ret = " + ret);
}
}
return retOfAll;
}
private boolean disableArActivity(String activity) {
if (this.mHwMsdpMovementManager == null) {
return false;
}
if (!disableActivityEvent(activity, 1) || !disableActivityEvent(activity, 2)) {
return false;
}
return true;
}
/* access modifiers changed from: private */
/* access modifiers changed from: public */
private void updateArStatus(String activityType, int eventType) {
Map<String, ArActivity> map = this.mArActivities;
if (map == null) {
DeLog.i(TAG, "mArActivities == null");
return;
}
ArActivity activity = map.get(activityType);
if (activity != null) {
activity.status = eventType;
DeLog.i(TAG, "updateArStatus, activityType:" + activityType + " update status: " + eventType);
return;
}
DeLog.w(TAG, "updateArStatus, activity == null! activityType == " + activityType + ", eventType = " + eventType);
}
/* access modifiers changed from: private */
/* access modifiers changed from: public */
private void setArSceneToBlControllerIfNeeded() {
for (Map.Entry<String, ArActivity> entry : this.mArActivities.entrySet()) {
ArActivity activity = entry.getValue();
String tag = entry.getKey();
if (activity.status == 1) {
if (SystemClock.uptimeMillis() - this.mScreenOnTimeMs > ((long) this.mArScreenOnTimeThMs)) {
this.mPool.execute(new ArTask(tag, activity, (long) this.mArWaitTimeMs, this.mArConfidenceTh));
if (this.mArMonitorSampleMaxNum > 0) {
this.mPool.execute(new ArMonitorTask(entry.getKey(), (long) this.mArMonitorSampleTimeStepMs, this.mArMonitorSampleMaxNum));
return;
}
return;
}
setArStatus(tag);
if (this.mArScene == this.mSceneTagMap.get("android.activity_recognition.in_vehicle").intValue() && this.mLocationScene == this.mSceneTagMap.get(SceneTag.LOCATION_HOME).intValue()) {
DeLog.i(TAG, "skip in vescene due to hostatus.");
return;
} else {
setTopApkLevelToBlControllerIfNeeded(activity.action);
return;
}
}
}
setTopApkLevelToBlControllerIfNeeded(18);
setArStatus(SceneTag.ACTIVITY_UNKNOWN);
}
public class ArTask implements Runnable {
private ArActivity mActivityOnQuest;
private String mArTag;
private int mConfidenceThreshold;
private long mWaitTimeMs;
ArTask(String ArTag, ArActivity activity, long waitTime, int confidenceThreshold) {
this.mActivityOnQuest = activity;
this.mWaitTimeMs = waitTime;
this.mArTag = ArTag;
this.mConfidenceThreshold = confidenceThreshold;
}
@Override // java.lang.Runnable
public void run() {
String activityType;
DeLog.i(HwBrightnessSceneRecognition.TAG, "Wait " + this.mWaitTimeMs + "ms to verify " + this.mArTag + "with confidence threshold " + this.mConfidenceThreshold);
try {
Thread.sleep(this.mWaitTimeMs);
} catch (InterruptedException e) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "ArTask Exception " + e);
}
if (!HwBrightnessSceneRecognition.this.mIsScreenOn) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "!mIsScreenOn, ArTask finished.");
return;
}
HwMSDPMovementChangeEvent activityChangedEvent = HwBrightnessSceneRecognition.this.getCurrentActivityExtend();
if (activityChangedEvent == null) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "activityChangedEvent == null, ArTask finished.");
return;
}
for (HwMSDPMovementEvent event : activityChangedEvent.getMovementEvents()) {
if (!(event == null || (activityType = event.getMovement()) == null)) {
int confidence = event.getConfidence();
if (!activityType.equals(this.mArTag) || confidence <= this.mConfidenceThreshold) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "confidence < mConfidenceThreshold " + this.mConfidenceThreshold + ", Ar scene ignored.");
} else {
DeLog.i(HwBrightnessSceneRecognition.TAG, "confidence:" + confidence + " > mConfidenceThreshold:" + this.mConfidenceThreshold);
HwBrightnessSceneRecognition.this.setArStatus(this.mArTag);
if (HwBrightnessSceneRecognition.this.mArScene == ((Integer) HwBrightnessSceneRecognition.this.mSceneTagMap.get("android.activity_recognition.in_vehicle")).intValue() && HwBrightnessSceneRecognition.this.mLocationScene == ((Integer) HwBrightnessSceneRecognition.this.mSceneTagMap.get(SceneTag.LOCATION_HOME)).intValue()) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "skip in vescene due to hostatus, ArTask finished.");
return;
}
HwBrightnessSceneRecognition.this.setTopApkLevelToBlControllerIfNeeded(this.mActivityOnQuest.action);
}
}
}
DeLog.i(HwBrightnessSceneRecognition.TAG, "ArTask: finished.");
}
}
public class ArMonitorTask implements Runnable {
String mArTag;
List mConfidenceSamples = new LinkedList();
int mSampleMaxNum;
long mSampleTimeStepMs;
ArMonitorTask(String ArTag, long sampleTimeStepMs, int sampleMaxNum) {
this.mArTag = ArTag;
this.mSampleTimeStepMs = sampleTimeStepMs;
this.mSampleMaxNum = sampleMaxNum;
}
@Override // java.lang.Runnable
public void run() {
DeLog.i(HwBrightnessSceneRecognition.TAG, "ArMonitorTask: start sampling...");
int i = 0;
while (true) {
if (i >= this.mSampleMaxNum) {
break;
}
try {
Thread.sleep(this.mSampleTimeStepMs);
} catch (InterruptedException e) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "ArTask Exception " + e);
}
if (!HwBrightnessSceneRecognition.this.mIsScreenOn) {
DeLog.d(HwBrightnessSceneRecognition.TAG, "ArMonitorTask breaked due to screen off");
break;
}
HwMSDPMovementChangeEvent activityChangedEvent = HwBrightnessSceneRecognition.this.getCurrentActivityExtend();
if (activityChangedEvent != null) {
for (HwMSDPMovementEvent event : activityChangedEvent.getMovementEvents()) {
if (event != null) {
String activityType = event.getMovement();
int confidence = event.getConfidence();
if (activityType != null && activityType.equals(this.mArTag)) {
DeLog.i(HwBrightnessSceneRecognition.TAG, "ArMonitorTask, confidence " + i + " = " + confidence);
this.mConfidenceSamples.add(Short.valueOf((short) confidence));
}
}
}
List list = this.mConfidenceSamples;
if (list != null && list.size() < i + 1) {
HwBrightnessSceneRecognition.this.sendAbnormalActivityRecognitionToMonitor(this.mArTag, this.mConfidenceSamples);
DeLog.d(HwBrightnessSceneRecognition.TAG, "ArMonitorTask breaked due to activity no longer exist.");
break;
}
}
i++;
}
DeLog.i(HwBrightnessSceneRecognition.TAG, "ArMonitorTask: finished.");
}
}
/* access modifiers changed from: private */
/* access modifiers changed from: public */
private void sendAbnormalActivityRecognitionToMonitor(String tag, List confidenceSamples) {
int monitorScene;
if (this.mDisplayEffectMonitor != null && confidenceSamples != null && tag != null && (monitorScene = getMonitorUserScene(tag)) >= 0) {
ArrayMap<String, Object> params = new ArrayMap<>();
params.put(DisplayEffectMonitor.MonitorModule.PARAM_TYPE, "userSceneMisrecognition");
params.put("userScene", Integer.valueOf(monitorScene));
params.put("confidence", confidenceSamples);
this.mDisplayEffectMonitor.sendMonitorParam(params);
}
}
private void sendActivityRecognitionToMonitor() {
if (this.mDisplayEffectMonitor != null) {
int monitorScene = 0;
int i = this.mArScene;
if (i > 0) {
monitorScene = 0 + i;
}
int i2 = this.mLocationScene;
if (i2 > 0) {
monitorScene += i2;
}
ArrayMap<String, Object> params = new ArrayMap<>();
params.put(DisplayEffectMonitor.MonitorModule.PARAM_TYPE, "userScene");
params.put("userScene", Integer.valueOf(monitorScene));
this.mDisplayEffectMonitor.sendMonitorParam(params);
}
}
private int getMonitorUserScene(String tag) {
Integer value = this.mSceneTagMap.get(tag);
if (value != null) {
return value.intValue();
}
return -1;
}
public void setArStatus(String tag) {
this.mArScene = getMonitorUserScene(tag);
sendActivityRecognitionToMonitor();
}
public void setLocationStatus(String tag) {
DeLog.i(TAG, "setLocationStatus tag = " + tag);
this.mLocationScene = getMonitorUserScene(tag);
if (this.mHomeSceneEnable) {
if (this.mLocationScene == this.mSceneTagMap.get(SceneTag.LOCATION_HOME).intValue()) {
setTopApkLevelToBlControllerIfNeeded(23);
} else {
setTopApkLevelToBlControllerIfNeeded(22);
}
}
if (this.mLocationScene == this.mSceneTagMap.get(SceneTag.LOCATION_NOT_HOME).intValue() && this.mArScene == this.mSceneTagMap.get("android.activity_recognition.in_vehicle").intValue()) {
ArActivity activity = this.mArActivities.get("android.activity_recognition.in_vehicle");
if (activity == null) {
DeLog.i(TAG, "get(SceneTag.ACTIVITY_IN_VESCENE) return null!");
return;
} else {
setTopApkLevelToBlControllerIfNeeded(activity.action);
DeLog.i(TAG, "set in vescene due to leaving hostatus.");
}
}
sendActivityRecognitionToMonitor();
}
public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) {
HwMSDPMovementManager hwMSDPMovementManager = this.mHwMsdpMovementManager;
if (hwMSDPMovementManager != null) {
return hwMSDPMovementManager.enableMovementEvent(0, activity, eventType, reportLatencyNs, null);
}
return false;
}
public boolean disableActivityEvent(String activity, int eventType) {
HwMSDPMovementManager hwMSDPMovementManager = this.mHwMsdpMovementManager;
if (hwMSDPMovementManager != null) {
return hwMSDPMovementManager.disableMovementEvent(0, activity, eventType);
}
return false;
}
public boolean flushAr() {
HwMSDPMovementManager hwMSDPMovementManager = this.mHwMsdpMovementManager;
if (hwMSDPMovementManager != null) {
return hwMSDPMovementManager.flush();
}
return false;
}
public HwMSDPMovementChangeEvent getCurrentActivityExtend() {
HwMSDPMovementManager hwMSDPMovementManager = this.mHwMsdpMovementManager;
if (hwMSDPMovementManager != null) {
return hwMSDPMovementManager.getCurrentMovement(0);
}
return null;
}
public void setVideoPlayStatus(boolean isVideoPlay) {
Bundle data = new Bundle();
data.putBoolean("IsVideoPlay", isVideoPlay);
int retService = HwPowerManager.setHwBrightnessData("QRCodeBrighten", data);
DeLog.i(TAG, "QRCodeBrighten, IsVideoPlay = " + isVideoPlay);
if (retService != 0) {
DeLog.w(TAG, "setHwBrightnessData(QRCodeBrighten) returned " + retService);
}
}
public void updateTopGameModeStatus(String pkgName) {
if (this.mIsScreenOn) {
int lastTopGameModeState = this.mTopGameModeState;
if (pkgName == null || pkgName.length() <= 0) {
this.mTopGameModeState = 20;
} else if (!this.mGameBrightnessLevelWhiteList.containsKey(pkgName)) {
this.mTopGameModeState = 20;
} else {
this.mTopGameModeState = 21;
}
if (lastTopGameModeState != this.mTopGameModeState) {
DeLog.i(TAG, "apk=" + pkgName + ",state=" + this.mTopGameModeState);
setTopApkLevelToBlControllerIfNeeded(this.mTopGameModeState);
}
}
}
public void updateGameEnterStatus(boolean gameEnterStatus) {
if (gameEnterStatus) {
setTopApkLevelToBlControllerIfNeeded(27);
} else {
setTopApkLevelToBlControllerIfNeeded(26);
}
}
public void setGameDisableAutoBrightnessModeStatus(boolean enable) {
DeLog.i(TAG, "setGameDisableAutoBrightnessModeStatus=" + enable);
if (enable) {
setTopApkLevelToBlControllerIfNeeded(29);
} else {
setTopApkLevelToBlControllerIfNeeded(28);
}
}
public boolean getGameDisableAutoBrightnessModeStatus() {
return getGameDisableAutoBrightnessMode();
}
private boolean getGameDisableAutoBrightnessMode() {
Bundle data = new Bundle();
if (HwPowerManager.getHwBrightnessData("GameDiableAutoBrightness", data) != 0) {
return false;
}
boolean gameDisableAutoBrightnessModeStatus = data.getBoolean("GameDisableAutoBrightnessModeEnable");
DeLog.i(TAG, "gameDisableAutoBrightnessModeStatus " + gameDisableAutoBrightnessModeStatus);
return gameDisableAutoBrightnessModeStatus;
}
private void setFrontCameraAppState(boolean enable) {
Bundle data = new Bundle();
data.putBoolean("FrontCameraAppEnableState", enable);
int retService = HwPowerManager.setHwBrightnessData("FrontCameraApp", data);
DeLog.i(TAG, "setFrontCameraAppState, enable = " + enable);
if (retService != 0) {
DeLog.w(TAG, "setHwBrightnessData(setFrontCameraAppState) returned " + retService);
}
}
private void updateFrontCameraSceneIfNeeded(String pkgName) {
if (this.mIsScreenOn) {
int lastFrontCameraAppState = this.mFrontCameraAppState;
if (pkgName == null || pkgName.length() <= 0) {
this.mFrontCameraAppState = 30;
} else if (this.mFrontCameraAppWhiteList.containsKey(pkgName)) {
this.mFrontCameraAppState = 31;
DeLog.d(TAG, "apk " + pkgName + " is in the Camera brightness whitelist, state = " + this.mFrontCameraAppState);
} else {
this.mFrontCameraAppState = 30;
DeLog.d(TAG, "apk " + pkgName + " is NOT in the Camera brightness whitelist, state = " + this.mFrontCameraAppState);
}
if (isFeatureEnable(FeatureTag.TAG_FRONT_CAMERA_APP_SCENE) && this.mFrontCameraAppState != lastFrontCameraAppState) {
this.mNeedNotifyFrontCameraAppStateChange = true;
}
}
}
public void updateHdrStatus(boolean hdrEnable) {
DeLog.i(TAG, "updateHdrStatus,hdrEnable=" + hdrEnable);
this.mHdrEnable = hdrEnable;
Handler handler = this.mHwBrightnessSceneRecognitionHandler;
if (handler != null) {
handler.removeMessages(1);
this.mHwBrightnessSceneRecognitionHandler.sendEmptyMessage(1);
}
}
/* access modifiers changed from: private */
/* access modifiers changed from: public */
private void updateHdrLevel(boolean hdrEnable) {
DeLog.i(TAG, "updateHdrStatus-level,hdrEnable=" + hdrEnable);
if (hdrEnable) {
setTopApkLevelToBlControllerIfNeeded(33);
} else {
setTopApkLevelToBlControllerIfNeeded(32);
}
}
private final class HwBrightnessSceneRecognitionHandler extends Handler {
private HwBrightnessSceneRecognitionHandler() {
}
@Override // android.os.Handler
public void handleMessage(Message msg) {
if (msg.what == 1) {
HwBrightnessSceneRecognition hwBrightnessSceneRecognition = HwBrightnessSceneRecognition.this;
hwBrightnessSceneRecognition.updateHdrLevel(hwBrightnessSceneRecognition.mHdrEnable);
}
}
}
}
| [
"dstmath@163.com"
] | dstmath@163.com |
4618b4cd6193a12a26077dd528397287ce91260f | c885ef92397be9d54b87741f01557f61d3f794f3 | /results/JacksonXml-2/com.fasterxml.jackson.dataformat.xml.deser.XmlTokenStream/BBC-F0-opt-70/tests/30/com/fasterxml/jackson/dataformat/xml/deser/XmlTokenStream_ESTest_scaffolding.java | 767da018b3bf3b599952b718d5559e9fa21a4fc1 | [
"CC-BY-4.0",
"MIT"
] | permissive | pderakhshanfar/EMSE-BBC-experiment | f60ac5f7664dd9a85f755a00a57ec12c7551e8c6 | fea1a92c2e7ba7080b8529e2052259c9b697bbda | refs/heads/main | 2022-11-25T00:39:58.983828 | 2022-04-12T16:04:26 | 2022-04-12T16:04:26 | 309,335,889 | 0 | 1 | null | 2021-11-05T11:18:43 | 2020-11-02T10:30:38 | null | UTF-8 | Java | false | false | 14,017 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Oct 22 15:59:37 GMT 2021
*/
package com.fasterxml.jackson.dataformat.xml.deser;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class XmlTokenStream_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "com.fasterxml.jackson.dataformat.xml.deser.XmlTokenStream";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(XmlTokenStream_ESTest_scaffolding.class.getClassLoader() ,
"com.ctc.wstx.util.TextBuffer",
"com.ctc.wstx.sr.ValidatingStreamReader",
"com.ctc.wstx.sr.CompactNsContext",
"com.ctc.wstx.io.WstxInputData",
"com.ctc.wstx.api.ReaderConfig",
"com.ctc.wstx.cfg.ParsingErrorMsgs",
"com.ctc.wstx.sr.NsDefaultProvider",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DecoderBase",
"org.codehaus.stax2.DTDInfo",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$IntegerDecoder",
"org.codehaus.stax2.validation.ValidationProblemHandler",
"com.ctc.wstx.exc.WstxParsingException",
"com.ctc.wstx.io.StreamBootstrapper",
"com.ctc.wstx.util.DataUtil",
"com.ctc.wstx.util.SymbolTable$Bucket",
"com.ctc.wstx.util.BaseNsContext",
"org.codehaus.stax2.validation.ValidationContext",
"com.ctc.wstx.sr.TypedStreamReader",
"org.codehaus.stax2.validation.XMLValidationProblem",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$IntDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory",
"com.ctc.wstx.io.InputSourceFactory",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$BaseArrayDecoder",
"org.codehaus.stax2.validation.XMLValidationSchema",
"org.codehaus.stax2.AttributeInfo",
"com.ctc.wstx.io.ReaderBootstrapper",
"com.ctc.wstx.util.SymbolTable",
"com.ctc.wstx.sr.InputProblemReporter",
"com.fasterxml.jackson.dataformat.xml.deser.XmlTokenStream",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$FloatArrayDecoder",
"com.ctc.wstx.io.WstxInputSource",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DoubleArrayDecoder",
"com.ctc.wstx.io.CharArraySource",
"com.ctc.wstx.sr.BasicStreamReader",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$IntArrayDecoder",
"org.codehaus.stax2.ri.typed.StringBase64Decoder",
"org.codehaus.stax2.typed.TypedArrayDecoder",
"com.ctc.wstx.io.BufferRecycler",
"org.codehaus.stax2.typed.TypedXMLStreamException",
"org.codehaus.stax2.validation.DTDValidationSchema",
"com.ctc.wstx.util.DefaultXmlSymbolTable",
"org.codehaus.stax2.XMLStreamProperties",
"com.ctc.wstx.io.BranchingReaderSource",
"org.codehaus.stax2.validation.XMLValidator",
"com.ctc.wstx.exc.WstxUnexpectedCharException",
"com.ctc.wstx.util.StringVector",
"org.codehaus.stax2.LocationInfo",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$QNameDecoder",
"org.codehaus.stax2.XMLEventReader2",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$LongDecoder",
"com.ctc.wstx.ent.IntEntity",
"org.codehaus.stax2.typed.Base64Variant",
"org.codehaus.stax2.ri.typed.Base64DecoderBase",
"org.codehaus.stax2.XMLStreamReader2",
"com.ctc.wstx.dtd.DTDId",
"com.ctc.wstx.ent.EntityDecl",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$FloatDecoder",
"org.codehaus.stax2.validation.ValidatorPair",
"com.ctc.wstx.api.WstxInputProperties$ParsingMode",
"com.ctc.wstx.exc.WstxIOException",
"com.ctc.wstx.sr.StreamReaderImpl",
"com.ctc.wstx.util.TextBuilder",
"com.ctc.wstx.io.SystemId",
"com.ctc.wstx.io.ReaderSource",
"com.ctc.wstx.sr.AttributeCollector",
"org.codehaus.stax2.ri.Stax2ReaderAdapter",
"com.ctc.wstx.io.MergedReader",
"org.codehaus.stax2.ri.evt.BaseEventImpl",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$LongArrayDecoder",
"com.ctc.wstx.api.WstxInputProperties",
"org.codehaus.stax2.typed.TypedValueDecoder",
"com.ctc.wstx.cfg.InputConfigFlags",
"org.codehaus.stax2.ri.typed.CharArrayBase64Decoder",
"com.ctc.wstx.sr.ElemCallback",
"org.codehaus.stax2.evt.XMLEvent2",
"com.ctc.wstx.io.BaseInputSource",
"com.ctc.wstx.sr.InputElementStack",
"com.ctc.wstx.io.InputBootstrapper",
"com.ctc.wstx.dtd.DTDEventListener",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$BooleanDecoder",
"com.ctc.wstx.dtd.DTDSubset",
"org.codehaus.stax2.XMLInputFactory2",
"org.codehaus.stax2.typed.TypedXMLStreamReader",
"com.ctc.wstx.util.TextBuffer$BufferReader",
"com.ctc.wstx.exc.WstxException",
"com.ctc.wstx.evt.WEntityDeclaration",
"com.ctc.wstx.exc.WstxValidationException",
"com.ctc.wstx.util.InternCache",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DoubleDecoder",
"com.ctc.wstx.sr.ReaderCreator",
"org.codehaus.stax2.XMLStreamLocation2",
"com.ctc.wstx.sr.StreamScanner",
"com.ctc.wstx.util.EmptyNamespaceContext",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DecimalDecoder",
"com.ctc.wstx.api.CommonConfig",
"org.codehaus.stax2.validation.XMLValidationException",
"com.ctc.wstx.stax.WstxInputFactory",
"com.ctc.wstx.exc.WstxEOFException",
"org.codehaus.stax2.validation.Validatable"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(XmlTokenStream_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"com.fasterxml.jackson.dataformat.xml.deser.XmlTokenStream",
"com.ctc.wstx.util.DataUtil",
"com.ctc.wstx.api.CommonConfig",
"com.ctc.wstx.api.ReaderConfig",
"com.ctc.wstx.api.WstxInputProperties$ParsingMode",
"com.ctc.wstx.api.WstxInputProperties",
"org.codehaus.stax2.ri.dom.DOMWrappingReader",
"com.ctc.wstx.dom.WstxDOMWrappingReader",
"org.codehaus.stax2.ri.Stax2Util$TextBuffer",
"org.codehaus.stax2.ri.Stax2Util",
"org.codehaus.stax2.XMLInputFactory2",
"com.ctc.wstx.util.SymbolTable",
"com.ctc.wstx.util.SymbolTable$Bucket",
"com.ctc.wstx.util.DefaultXmlSymbolTable",
"com.ctc.wstx.stax.WstxInputFactory",
"com.ctc.wstx.io.InputBootstrapper",
"com.ctc.wstx.io.ReaderBootstrapper",
"com.ctc.wstx.util.TextBuffer",
"com.ctc.wstx.io.SystemId",
"com.ctc.wstx.io.InputSourceFactory",
"com.ctc.wstx.io.WstxInputSource",
"com.ctc.wstx.io.BaseInputSource",
"com.ctc.wstx.io.ReaderSource",
"com.ctc.wstx.io.BranchingReaderSource",
"com.ctc.wstx.io.WstxInputData",
"com.ctc.wstx.sr.StreamScanner",
"com.ctc.wstx.sr.BasicStreamReader",
"com.ctc.wstx.sr.TypedStreamReader",
"com.ctc.wstx.sr.ValidatingStreamReader",
"com.ctc.wstx.sr.InputElementStack",
"com.ctc.wstx.util.StringVector",
"com.ctc.wstx.util.InternCache",
"com.ctc.wstx.sr.AttributeCollector",
"com.ctc.wstx.util.TextBuilder",
"org.codehaus.stax2.ri.Stax2ReaderAdapter",
"org.codehaus.stax2.util.StreamReader2Delegate",
"org.codehaus.stax2.ri.Stax2FilteredStreamReader",
"com.ctc.wstx.util.URLUtil",
"com.ctc.wstx.exc.WstxException",
"com.ctc.wstx.exc.WstxIOException",
"com.ctc.wstx.sax.WstxSAXParser",
"com.ctc.wstx.sax.WstxSAXParser$ResolverProxy",
"com.ctc.wstx.io.MergedReader",
"com.ctc.wstx.io.StreamBootstrapper",
"com.ctc.wstx.io.BaseReader",
"com.ctc.wstx.io.UTF8Reader",
"org.codehaus.stax2.ri.Stax2EventReaderImpl",
"com.ctc.wstx.evt.WstxEventReader",
"com.ctc.wstx.sr.ElemCallback",
"com.ctc.wstx.evt.DefaultEventAllocator",
"com.ctc.wstx.io.WstxInputLocation",
"com.ctc.wstx.util.ArgUtil",
"com.ctc.wstx.sax.SAXFeature",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory",
"org.codehaus.stax2.typed.TypedValueDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DecoderBase",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$BooleanDecoder",
"com.ctc.wstx.cfg.ErrorConsts",
"com.ctc.wstx.dtd.DTDId",
"com.ctc.wstx.io.BufferRecycler",
"com.ctc.wstx.io.DefaultInputResolver",
"com.ctc.wstx.io.CharsetNames",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$IntegerDecoder",
"com.ctc.wstx.exc.WstxParsingException",
"com.ctc.wstx.exc.WstxUnexpectedCharException",
"org.codehaus.stax2.typed.Base64Variant",
"org.codehaus.stax2.typed.Base64Variants",
"org.codehaus.stax2.validation.XMLValidationProblem",
"org.codehaus.stax2.validation.XMLValidationException",
"com.ctc.wstx.exc.WstxValidationException",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$FloatDecoder",
"com.ctc.wstx.util.StringUtil",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DoubleDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$LongDecoder",
"com.ctc.wstx.util.ExceptionUtil",
"org.codehaus.stax2.typed.TypedArrayDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$BaseArrayDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$FloatArrayDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$IntDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DoubleArrayDecoder",
"com.ctc.wstx.exc.WstxEOFException",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$IntArrayDecoder",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$QNameDecoder",
"org.codehaus.stax2.ri.typed.Base64DecoderBase",
"org.codehaus.stax2.ri.typed.CharArrayBase64Decoder",
"com.ctc.wstx.api.WriterConfig",
"org.codehaus.stax2.ri.evt.Stax2FilteredEventReader",
"org.codehaus.stax2.ri.evt.Stax2EventReaderAdapter",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$LongArrayDecoder",
"org.codehaus.stax2.ri.Stax2Util$ByteAggregator",
"org.codehaus.stax2.validation.XMLValidator",
"org.codehaus.stax2.validation.ValidatorPair",
"com.ctc.wstx.util.BaseNsContext",
"com.ctc.wstx.util.EmptyNamespaceContext",
"org.codehaus.stax2.XMLStreamLocation2$1",
"org.codehaus.stax2.XMLStreamLocation2",
"com.ctc.wstx.util.SimpleCache",
"com.ctc.wstx.util.SimpleCache$LimitMap",
"org.codehaus.stax2.ri.typed.ValueDecoderFactory$DecimalDecoder",
"com.ctc.wstx.util.XmlChars",
"org.codehaus.stax2.ri.Stax2LocationAdapter",
"org.codehaus.stax2.ri.evt.BaseEventImpl",
"org.codehaus.stax2.ri.evt.StartDocumentEventImpl",
"com.ctc.wstx.sw.XmlWriter",
"com.ctc.wstx.sw.EncodingXmlWriter",
"com.ctc.wstx.sw.AsciiXmlWriter",
"org.codehaus.stax2.ri.Stax2WriterImpl",
"com.ctc.wstx.sw.BaseStreamWriter",
"com.ctc.wstx.sw.TypedStreamWriter",
"com.ctc.wstx.sw.NonNsStreamWriter",
"com.ctc.wstx.dtd.DTDSubset",
"com.ctc.wstx.dtd.DTDSubsetImpl",
"org.codehaus.stax2.ri.dom.DOMWrappingWriter",
"com.ctc.wstx.dom.WstxDOMWrappingWriter"
);
}
}
| [
"pderakhshanfar@serg2.ewi.tudelft.nl"
] | pderakhshanfar@serg2.ewi.tudelft.nl |
42f3835e614913ff5f49449de9aea8f72d6d1b22 | f378ddd47c8b7de6e9cf1d4228c84f73e9dc59f1 | /projetos/qq-t-java-sdk/src/main/java/com/trinea/sns/entity/QqTUserRelation.java | 60af969fe53d090001be503cd2ad9ae6627ce23d | [] | no_license | charles-marques/dataset-375 | 29e2f99ac1ba323f8cb78bf80107963fc180487c | 51583daaf58d5669c69d8208b8c4ed4e009001a5 | refs/heads/master | 2023-01-20T07:23:09.445693 | 2020-11-27T22:35:49 | 2020-11-27T22:35:49 | 283,315,149 | 0 | 1 | null | null | null | null | GB18030 | Java | false | false | 966 | java | package com.trinea.sns.entity;
import java.io.Serializable;
/**
* 腾讯微博用户和自己的关系
*
* @author Trinea 2011-11-4 下午11:46:04
*/
public class QqTUserRelation implements Serializable {
private static final long serialVersionUID = 7154885505952051486L;
/** 用户帐户名 **/
private String userName;
/** 是否关注了自己 **/
private boolean isFan;
/** 是否被自己关注 **/
private boolean isInterested;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public boolean isFan() {
return isFan;
}
public void setFan(boolean isFan) {
this.isFan = isFan;
}
public boolean isInterested() {
return isInterested;
}
public void setInterested(boolean isInterested) {
this.isInterested = isInterested;
}
}
| [
"suporte@localhost.localdomain"
] | suporte@localhost.localdomain |
06a3223faa9e798d9c9a11383f3c33695cb3b778 | 663b1f94640240fa1706badd81b75f8f94152b35 | /listviewtest/src/main/java/com/ncst/listviewtest/FruitRecyclerAdapter.java | 9910f766e6147de4bcd9fd0e569115b5db49d57a | [] | no_license | duhuamei/activityTest | c1bd960599f2720ff5506219abc43fa7fa16db92 | 42da0b53cca32a0a5df3de493e8b46d334a56bf7 | refs/heads/master | 2020-05-04T14:24:19.122180 | 2019-03-31T07:58:01 | 2019-03-31T07:58:01 | 179,195,338 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,642 | java | package com.ncst.listviewtest;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.List;
public class FruitRecyclerAdapter extends RecyclerView.Adapter<FruitRecyclerAdapter.ViewHolder>{
List<Fruit> fruits;
public FruitRecyclerAdapter(List<Fruit> fruits) {
this.fruits = fruits;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull final ViewGroup parent, int i) {
View view=LayoutInflater.from(parent.getContext()).inflate(R.layout.fruit_item,
parent,false);
Log.d("du", "onCreateViewHolder: "+i);
final ViewHolder holder=new ViewHolder(view);
// view.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// int position=holder.getAdapterPosition();
// Toast.makeText(parent.getContext(),fruits.get(position).getName(),Toast.LENGTH_LONG).show();
//
// }
// });
return holder;
}
@Override
public void onBindViewHolder(@NonNull ViewHolder viewHolder, int i) {
final Fruit fruit=fruits.get(i);
final ViewHolder holder=viewHolder;
final int pos=holder.getAdapterPosition();
viewHolder.fruitName.setText(fruit.getName());
viewHolder.fruitImage.setImageResource(fruit.getImageId());
viewHolder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(holder.itemView.getContext(),"onClick "+fruit.getName(),Toast.LENGTH_LONG).show();
}
});
viewHolder.itemView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
Toast.makeText(holder.itemView.getContext(),"onLongClick "+fruit.getName()+pos,Toast.LENGTH_LONG).show();
deleteItem(pos);
return false;
}
});
viewHolder.fruitImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(holder.itemView.getContext(),fruit.getName()+"image",Toast.LENGTH_LONG).show();
}
});
}
@Override
public int getItemCount() {
return fruits.size();
}
public static class ViewHolder extends RecyclerView.ViewHolder{
private ImageView fruitImage;
private TextView fruitName;
public ViewHolder(@NonNull View itemView) {
super(itemView);
fruitImage=itemView.findViewById(R.id.image);
fruitName=itemView.findViewById(R.id.name);
}
}
//插入到末尾,返回插入元素的位置
public int addItem(){
if(fruits==null){
fruits=new ArrayList<Fruit>();
}
Fruit fruit=new Fruit("New Fruit",R.drawable.apple_pic);
fruits.add(fruit);
int position=fruits.size()-1;
notifyItemInserted(position);
return position;
}
//删除指定元素,返回删除位置
public int deleteItem(int position){
if(fruits==null || fruits.size()==0){
return 0;
}
fruits.remove(position);
notifyItemRemoved(position);
return position;
}
}
| [
"duhuamei@163.com"
] | duhuamei@163.com |
2e3ab00e02b194a3488964addade58f4225dfdb3 | c0c07388e9b3e4a30e0d39e71b98049cbcca1b3f | /src/main/java/configuration/ConfigurationSection.java | 8d4d5aa1483952bdbf4c2f42a07a5bc8bc136855 | [
"Apache-2.0"
] | permissive | Masatoff/OnlineToStatus | db43f9dc13315d7d12a1ac5544dbf489992f9eda | 97b8437e125bb0521bb96f29f9441b75eb51a85b | refs/heads/master | 2023-08-31T05:45:29.549502 | 2021-10-23T17:24:14 | 2021-10-23T17:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,328 | java | package configuration;
import java.util.List;
import java.util.Map;
import java.util.Set;
public interface ConfigurationSection {
Set<String> getKeys(boolean var1);
Map<String, Object> getValues(boolean var1);
boolean contains(String var1);
boolean contains(String var1, boolean var2);
boolean isSet(String var1);
String getCurrentPath();
String getName();
Configuration getRoot();
ConfigurationSection getParent();
Object get(String var1);
Object get(String var1, Object var2);
void set(String var1, Object var2);
ConfigurationSection createSection(String var1);
ConfigurationSection createSection(String var1, Map<?, ?> var2);
String getString(String var1);
String getString(String var1, String var2);
boolean isString(String var1);
int getInt(String var1);
int getInt(String var1, int var2);
boolean isInt(String var1);
boolean getBoolean(String var1);
boolean getBoolean(String var1, boolean var2);
boolean isBoolean(String var1);
double getDouble(String var1);
double getDouble(String var1, double var2);
boolean isDouble(String var1);
long getLong(String var1);
long getLong(String var1, long var2);
boolean isLong(String var1);
List<?> getList(String var1);
List<?> getList(String var1, List<?> var2);
boolean isList(String var1);
List<String> getStringList(String var1);
List<Integer> getIntegerList(String var1);
List<Boolean> getBooleanList(String var1);
List<Double> getDoubleList(String var1);
List<Float> getFloatList(String var1);
List<Long> getLongList(String var1);
List<Byte> getByteList(String var1);
List<Character> getCharacterList(String var1);
List<Short> getShortList(String var1);
List<Map<?, ?>> getMapList(String var1);
boolean isVector(String var1);
boolean isOfflinePlayer(String var1);
boolean isItemStack(String var1);
boolean isColor(String var1);
ConfigurationSection getConfigurationSection(String var1);
boolean isConfigurationSection(String var1);
ConfigurationSection getDefaultSection();
void addDefault(String var1, Object var2);
}
| [
"tayparov04@mail.ru"
] | tayparov04@mail.ru |
7ff6872317b1459a3d7cd4f6a27eb8425be9ea10 | 4e009fec7bb78a56fa75beb833259a50625b90e4 | /src/main/java/com/netty/chapter_1_pseudo_async_io/TimeClient.java | a05fe516ef047b7972cc5e429c5db26d3dd81aea | [] | no_license | yemaozi01/netty-master | 7e556b5498fa95186ba39f00fbc1f48dd15b3034 | da0de577bec3b86af7e39a19373fa0365fa474e4 | refs/heads/main | 2023-03-22T00:26:52.030181 | 2021-03-07T15:48:32 | 2021-03-07T15:48:32 | 345,118,189 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,776 | java | package com.netty.chapter_1_pseudo_async_io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class TimeClient {
public static void main(String[] args) {
int port = 8080;
if(args != null && args.length > 0){
try{
port = Integer.valueOf(args[0]);
}catch (NumberFormatException e){
//采用默认值
}
}
Socket socket = null;
BufferedReader in = null;
PrintWriter out = null;
try{
socket = new Socket("127.0.0.1",port);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
out = new PrintWriter(socket.getOutputStream(),true);
out.println("QUERY TIME ORDER");
System.out.println("com.netty.chapter_1_pseudo_async_io.TimeClient.main-->Send order 2 server succeed.");
String resp = in.readLine();
System.out.println("com.netty.chapter_1_pseudo_async_io.TimeClient.main-->Now is : " + resp);
}catch (Exception e){
//不需要处理
}finally {
if(out != null){
out.close();
out = null;
}
if(in != null){
try {
in.close();
}catch (IOException e){
e.printStackTrace();
}
in = null;
}
if(socket != null){
try{
socket.close();
}catch (IOException e){
e.printStackTrace();
}
socket = null;
}
}
}
}
| [
"1663479072@qq.com"
] | 1663479072@qq.com |
6738adcedfa4065c2bded83d650c72e5a3b8f083 | 4a39b7c61f912054b262d7e0ba6fafdb278de83a | /src/main/java/com/aydemir/notedapi/NotedApiApplication.java | 88366a024b90786aaa7e15d89b39f290f16a9322 | [] | no_license | aEmreAydemir/noted-api | 1f6a1fbf2ea1c5c0442bfd5f1b06bac986f6c84a | f3194adb84f76c4ffe86dc6df1fbe5554dfb31dd | refs/heads/master | 2023-08-27T22:40:34.135706 | 2021-10-29T14:32:40 | 2021-10-29T14:32:40 | 422,548,615 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 313 | java | package com.aydemir.notedapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class NotedApiApplication {
public static void main(String[] args) {SpringApplication.run(NotedApiApplication.class, args); }
}
| [
"aydemiremre98@gmail.com"
] | aydemiremre98@gmail.com |
a6dd58e285c8900d1503e7e83b9701ac7ad675e2 | c885ef92397be9d54b87741f01557f61d3f794f3 | /results/Cli-34/org.apache.commons.cli.OptionBuilder/BBC-F0-opt-80/tests/5/org/apache/commons/cli/OptionBuilder_ESTest_scaffolding.java | d53b80f9f4ee5eebc999e03ed0a7ae40fe720828 | [
"CC-BY-4.0",
"MIT"
] | permissive | pderakhshanfar/EMSE-BBC-experiment | f60ac5f7664dd9a85f755a00a57ec12c7551e8c6 | fea1a92c2e7ba7080b8529e2052259c9b697bbda | refs/heads/main | 2022-11-25T00:39:58.983828 | 2022-04-12T16:04:26 | 2022-04-12T16:04:26 | 309,335,889 | 0 | 1 | null | 2021-11-05T11:18:43 | 2020-11-02T10:30:38 | null | UTF-8 | Java | false | false | 3,373 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Oct 13 14:34:07 GMT 2021
*/
package org.apache.commons.cli;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class OptionBuilder_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.cli.OptionBuilder";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
/*No java.lang.System property to set*/
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(OptionBuilder_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.cli.OptionBuilder",
"org.apache.commons.cli.OptionValidator",
"org.apache.commons.cli.Option"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(OptionBuilder_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.apache.commons.cli.OptionBuilder",
"org.apache.commons.cli.Option",
"org.apache.commons.cli.OptionValidator"
);
}
}
| [
"pderakhshanfar@serg2.ewi.tudelft.nl"
] | pderakhshanfar@serg2.ewi.tudelft.nl |
591441af8748516d32d55eb4f4d9e7d794011b8f | 9dd66dc3073a5c1798b61fc0d2a43d796cb4963b | /src/main/java/org/mpilone/hazelcastmq/demo/CoreApp.java | eb68b693b9cb352571bcce574b2868a91d21cfb8 | [] | no_license | mpilone/hazelcastmq-presentation-demo | 44c15d1a58e04a4ed8590de3742c3742e93501ea | 6714b50937c2d369c0cc3b2cc0b27f89debfec11 | refs/heads/master | 2020-05-30T10:24:58.713088 | 2014-07-24T12:34:35 | 2014-07-24T12:34:35 | 22,212,118 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,942 | java | package org.mpilone.hazelcastmq.demo;
import org.mpilone.hazelcastmq.core.*;
import com.hazelcast.config.Config;
import com.hazelcast.core.*;
/**
* Demo of using just HazelcastMQ Core for sending and receiving messages.
*
* @author mpilone
*/
public class CoreApp extends AbstractApp {
public static void main(String[] args) {
CoreApp app = new CoreApp();
app.runApp();
}
private HazelcastMQContext mqContext;
private HazelcastMQConsumer consumer;
private HazelcastMQInstance mqInstance;
private HazelcastInstance hzInstance;
@Override
protected void start() {
// Create a Hazelcast client.
Config config = new Config();
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
hzInstance = Hazelcast.newHazelcastInstance(config);
// Create a HazelcastMQ instance.
HazelcastMQConfig mqConfig = new HazelcastMQConfig();
mqConfig.setHazelcastInstance(hzInstance);
mqInstance = HazelcastMQ.newHazelcastMQInstance(mqConfig);
// Create a context for producing and consuming messages.
mqContext = mqInstance.createContext();
// Create a consumer on the topic and add a message listener to handle
// incoming messages.
consumer = mqContext.createConsumer("/topic/presentation.demo");
consumer.setMessageListener(new HazelcastMQMessageListener() {
public void onMessage(HazelcastMQMessage msg) {
System.out.
printf("%s got message %s\n", CoreApp.class.getSimpleName(),
msg.getBodyAsString());
}
});
// Create a producer and send a hello message to the topic.
HazelcastMQProducer producer = mqContext.createProducer(
"/topic/presentation.demo");
producer.send("Hello world from the " + CoreApp.class.getSimpleName());
}
@Override
protected void stop() {
consumer.close();
mqContext.close();
mqInstance.shutdown();
hzInstance.shutdown();
}
}
| [
"mpilone@npr.org"
] | mpilone@npr.org |
8fcf8214c9ac89bac2a35e7972425006f9be9d01 | f7e09fef6a75f77237daffb5c5a745538b7030e0 | /src/com/startjava/lesson_2/game/GuessNumberTest.java | c987b2859b15a86b869669d5674d873db7922466 | [] | no_license | VitaliGrecciani/startjava | 690395ad1d09a39d7603f803bb8a7ced8cfe2a0f | c52cd6a8750230e33edcab36567653806b873c16 | refs/heads/master | 2023-04-12T22:02:20.401472 | 2021-04-23T17:46:41 | 2021-04-23T17:46:41 | 294,476,823 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 785 | java | package com.startjava.lesson_2.game;
import java.util.Scanner;
public class GuessNumberTest {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Игрок 1: ");
Player player1 = new Player(scan.nextLine());
System.out.println("Игрок 2: ");
Player player2 = new Player(scan.nextLine());
GuessNumber game = new GuessNumber(player1, player2);
String answer;
do {
game.play();
do {
System.out.print("Хотите продолжить? [да/нет]: ");
answer = scan.nextLine();
} while (!answer.equals("нет") && !answer.equals("да"));
} while (!answer.equals("нет"));
}
} | [
"artlogistles@gmail.com"
] | artlogistles@gmail.com |
5ec5476b8c02f149cdfd75ab81185d42d9a1dd48 | 9de65b012e1a748269191090eeea473cc1ed9586 | /vitor.meira.backend/src/main/java/com/school/mindera/vitor/meira/persistence/entity/SamuraiEntity.java | 1fc7ab46c7468775fd37086f09c1be0610d8f588 | [] | no_license | vhcm21/VitorMeiraProject | 0a1e38682e28a4427508952d5023937f51c56a6c | 8f67e95e84dfe07ad59b086ee6bedf960d675fe9 | refs/heads/master | 2023-04-28T00:35:02.927137 | 2021-05-07T08:48:55 | 2021-05-07T08:48:55 | 359,881,023 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 983 | java | package com.school.mindera.vitor.meira.persistence.entity;
import com.school.mindera.vitor.meira.enumerators.Gender;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "samurais")
public class SamuraiEntity extends AbstractEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(nullable = false, length = 100)
private String name;
@Column(nullable = false)
private long birthYear;
@Column(nullable = false)
private long deathYear;
@Column(nullable = false)
private Gender gender;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "clanId", nullable = false)
private ClanEntity clan;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "provinceId", nullable = false)
private ProvinceEntity province;
} | [
"vitor.meira@school.mindera.com"
] | vitor.meira@school.mindera.com |
707fec0c52e9f24b5aea91e1e499077e594bee7b | f6e953a3a085cb013ec2c33d7ca9a97fefcb9eb1 | /app/src/main/java/com/sky/silentdownload/silentupgrade/downloader/core/impl/DownloadTaskManagerImpl.java | f5d6c85694ab1f1e24b1635202a06efa9cc94ead | [] | no_license | tonycheng93/SilentDownload | ed7a194191657079948e45c76d300245e2f175cb | 9ce284bb5a788ecd0e0e42ae2dc510ed9006d753 | refs/heads/master | 2021-01-19T12:22:08.131380 | 2017-03-09T14:00:32 | 2017-03-09T14:00:32 | 84,448,221 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,761 | java | package com.sky.silentdownload.silentupgrade.downloader.core.impl;
import android.content.Context;
import android.text.TextUtils;
import com.sky.silentdownload.silentupgrade.downloader.core.IDB;
import com.sky.silentdownload.silentupgrade.downloader.core.IDownloadTaskManager;
import com.sky.silentdownload.silentupgrade.downloader.data.DownloadInfo;
import com.sky.silentdownload.silentupgrade.downloader.data.DownloadTaskInfo;
import com.sky.silentdownload.silentupgrade.downloader.data.Status;
import com.sky.silentdownload.silentupgrade.utils.Android;
import java.io.File;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
/**
* Created by BaoCheng on 2017/2/22.
*/
public class DownloadTaskManagerImpl implements IDownloadTaskManager {
private static String createSaveDir(File parent) {
String path = parent.getAbsolutePath() + File.separator + "downloader";
File file = new File(path);
if (!file.exists())
file.mkdirs();
return file.getAbsolutePath();
}
static String getInternalSaveDir(Context context) {
return createSaveDir(context.getCacheDir());
}
static String getExternalSaveDir(Context context) {
File cacheDir = context.getExternalCacheDir();
if (cacheDir == null)
return null;
return createSaveDir(cacheDir);
}
public interface DownloadTaskManagerUtils {
long getFileLength(String url);
File createSaveDir(Context context, long fileLength);
}
private List<DownloadTaskInfo> taskInfos = new ArrayList<>();
private IDB fileDB;
private Context mContext;
private DownloadTaskManagerUtils utils = new DownloadTaskManagerUtils() {
@Override
public long getFileLength(String url) {
try {
URL _url = new URL(url);
URLConnection uc = _url.openConnection();
return uc.getContentLength();
} catch (Exception e) {
e.printStackTrace();
}
return 0;
}
long getConfigSize() {
return 0;
//long configSize = (long) SkyGeneralProperties.getIntConfig("x_downloader_reserve_space"); //获取配置大小 单位为MB
//return configSize * 1024 * 1024;
}
@Override
public File createSaveDir(Context context, long fileLength) {
String saveDir = getExternalSaveDir(context);
if (!TextUtils.isEmpty(saveDir) && Android.getFreeSpace(saveDir) > fileLength)
return new File(saveDir);
saveDir = getInternalSaveDir(context);
long configSize = getConfigSize();
if (configSize > 0) {
if (Android.getFreeSpace(saveDir) > configSize + 2 * fileLength)
return new File(saveDir);
} else {
if (Android.getFreeSpace(saveDir) > Android.getTotalSpace(saveDir) * 0.1 + 2 * fileLength)
return new File(saveDir);
}
return null;
}
};
public DownloadTaskManagerImpl(Context context) {
mContext = context;
fileDB = new FileDBImpl(mContext);
taskInfos.addAll(getAllDownloadTask());
}
@Override
public DownloadTaskInfo create(DownloadInfo downloadInfo) throws DownloadTaskInfoCreateException {
DownloadTaskInfo info = getDownloadTask(downloadInfo);
if (info != null)
return info;
long fileLength = utils.getFileLength(downloadInfo.url);
File saveDir = utils.createSaveDir(mContext, fileLength);
if (saveDir == null)
throw new DownloadTaskInfoCreateException(Status.ERROR_SPACE);
String fileName = Android.md5s(downloadInfo.url);
info = new DownloadTaskInfo();
info.downloadInfo = downloadInfo;
info.size = fileLength;
info.savePath = saveDir.getAbsolutePath() + File.separator + fileName;
synchronized (taskInfos) {
taskInfos.add(info);
}
return info;
}
private DownloadTaskInfo getDownloadTaskFromMem(DownloadInfo downloadInfo) {
synchronized (taskInfos) {
if (downloadInfo == null || downloadInfo.url == null)
return null;
for (DownloadTaskInfo taskInfo : taskInfos) {
if (taskInfo != null && taskInfo.downloadInfo != null
&& downloadInfo.url.equals(taskInfo.downloadInfo.url))
return taskInfo;
}
}
return null;
}
@Override
public DownloadTaskInfo getDownloadTask(DownloadInfo downloadInfo) {
return getDownloadTaskFromMem(downloadInfo);
}
@Override
public List<DownloadTaskInfo> getAllDownloadTask() {
synchronized (fileDB) {
return fileDB.list();
}
}
@Override
public void updateDownloadTask(DownloadTaskInfo downloadTaskInfo) {
DownloadTaskInfo taskInfo = getDownloadTask(downloadTaskInfo.downloadInfo);
if (taskInfo != null) {
synchronized (taskInfos) {
taskInfos.remove(taskInfo);
taskInfos.add(downloadTaskInfo);
}
}
synchronized (fileDB) {
fileDB.update(downloadTaskInfo);
}
}
@Override
public void remove(DownloadInfo downloadInfo) {
DownloadTaskInfo taskInfo = getDownloadTask(downloadInfo);
if (taskInfo != null) {
synchronized (taskInfos) {
taskInfos.remove(taskInfo);
}
synchronized (fileDB) {
fileDB.remove(taskInfo);
}
}
}
}
| [
"baocheng@skyworth.com"
] | baocheng@skyworth.com |
2e70705dfb2ae80ba52b93974db6f8a9bd31d4a7 | 6b615e53609657e238f4ed1a4596a6b3de8c886d | /Android/app/src/main/java/org/cmas/android/storage/entities/UserFile.java | 2c187826f5a6132898b0cbaebd3ca48c16453fb6 | [] | no_license | sunsunich/cmas | 764cc6aba39b962c0828153bca62877974a63df7 | 36529df024961b51db88fb183fe97a9e6eb797f8 | refs/heads/master | 2022-09-30T04:48:11.453885 | 2022-09-24T11:29:50 | 2022-09-24T11:29:50 | 46,150,626 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 834 | java | package org.cmas.android.storage.entities;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import com.google.myjson.annotations.Expose;
import org.cmas.entities.UserFileType;
import java.util.Date;
/**
* Created on Sep 30, 2019
*
* @author Alexander Petukhov
*/
@Entity(tableName = "USER_FILE")
public class UserFile extends DictionaryEntity {
@Expose
@ColumnInfo(name = "DATE_CREATION")
public Date dateCreation;
@Expose
@ColumnInfo(name = "DATE_EDIT")
public Date dateEdit;
@Expose
@ColumnInfo(name = "FILE_URL")
public String fileUrl;
@Expose
@ColumnInfo(name = "MIME_TYPE")
public String mimeType;
@Expose
@ColumnInfo(name = "USER_FILE_TYPE")
public UserFileType userFileType;
@ColumnInfo(name = "CREATOR_ID")
public long creatorId;
}
| [
"apetukhov@accesssoftek.com"
] | apetukhov@accesssoftek.com |
25fb6d6353bb058e7eb6bc186eb2aed2ef065807 | 8c84391f41a1d36ff2f1cb4b1fd269423982ceb4 | /src/main/java/com/web/dao/PhylumDAO.java | f1c995783ab45257ad75d3707ad4fc4d01c0aa96 | [] | no_license | dongan2212/da-dang-sinh-vat-backend | 31f23a54673df4d252d7bdca409e5086cf65a106 | 1fadcd2896e95d6e2ba4434268ac4201e5337639 | refs/heads/master | 2020-03-15T17:39:40.760804 | 2018-05-05T16:57:54 | 2018-05-05T16:57:54 | 132,266,579 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,509 | java | package com.web.dao;
import com.web.entity.backend.Phylum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate4.HibernateTemplate;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
import java.util.List;
/**
* Created by duyle on 14/02/2017.
*/
@Transactional
@Repository
public class PhylumDAO implements IPhylumDAO {
@Autowired
private HibernateTemplate hibernateTemplate;
public List<Phylum> getAllPhylums() {
String hql = "FROM Phylum as p ORDER BY p.id";
hibernateTemplate.setMaxResults(0);
return (List<Phylum>) hibernateTemplate.find(hql);
}
public boolean isPhylumExistByPhylum(Phylum phylum) {
String hql = "FROM Phylum Where scienceName = '" + phylum.getScienceName() + "' or vietnameseName = '" + phylum.getVietnameseName() + "' WHERE id <> " + phylum.getId();
hibernateTemplate.setMaxResults(0);
List<Phylum> phylumList = (List<Phylum>) hibernateTemplate.find(hql);
if (phylumList.isEmpty()) {
return false;
} else {
return true;
}
}
public boolean isPhylumExistByScienceNameVietnameseName(String scienceName, String vietnameseName) {
String hql = "FROM Phylum Where scienceName = '" + scienceName + "' or vietnameseName = '" + vietnameseName + "'";
hibernateTemplate.setMaxResults(0);
List<Phylum> phylumList = (List<Phylum>) hibernateTemplate.find(hql);
if (phylumList.isEmpty()) {
return false;
} else {
return true;
}
}
public Phylum getPhylumById(int id) {
hibernateTemplate.setMaxResults(0);
return hibernateTemplate.get(Phylum.class, id);
}
public int addPhylum(Phylum phylum) {
int id = (Integer) hibernateTemplate.save(phylum);
return id;
}
public void updatePhylum(Phylum phylum) {
Phylum p = getPhylumById(phylum.getId());
p.setNotation(phylum.getNotation());
p.setIdKingdom(phylum.getIdKingdom());
p.setScienceName(phylum.getScienceName());
p.setVietnameseName(phylum.getVietnameseName());
p.setYearDiscover(phylum.getYearDiscover());
p.setDiscovererName(phylum.getDiscovererName());
p.setIdCreator(phylum.getIdCreator());
hibernateTemplate.update(p);
}
public Phylum getPhylumNewest() {
return null;
}
}
| [
"dongan2212@gmail.com"
] | dongan2212@gmail.com |
494956d7de8f6c77cf69b202f36ef6051d9e5527 | 61602d4b976db2084059453edeafe63865f96ec5 | /com/xiaomi/mipush/sdk/af.java | 09a23cfeaf242f8757a475a0f146dceb24d479f1 | [] | no_license | ZoranLi/thunder | 9d18fd0a0ec0a5bb3b3f920f9413c1ace2beb4d0 | 0778679ef03ba1103b1d9d9a626c8449b19be14b | refs/heads/master | 2020-03-20T23:29:27.131636 | 2018-06-19T06:43:26 | 2018-06-19T06:43:26 | 137,848,886 | 12 | 1 | null | null | null | null | UTF-8 | Java | false | false | 646 | java | package com.xiaomi.mipush.sdk;
import android.database.ContentObserver;
import android.os.Handler;
import com.xiaomi.channel.commonutils.network.d;
import com.xiaomi.push.service.au;
class af extends ContentObserver {
final /* synthetic */ ac a;
af(ac acVar, Handler handler) {
this.a = acVar;
super(handler);
}
public void onChange(boolean z) {
this.a.v = Integer.valueOf(au.a(this.a.j).b());
if (this.a.v.intValue() != 0) {
this.a.j.getContentResolver().unregisterContentObserver(this);
if (d.c(this.a.j)) {
this.a.e();
}
}
}
}
| [
"lizhangliao@xiaohongchun.com"
] | lizhangliao@xiaohongchun.com |
d6684cd578a2a6954b20cc2946677cfd6e99740a | bdef44d01e9dd27739afddcd6170a3e8069f481e | /app/src/main/java/com/admin/huangchuan/View/vhtableview/VHBaseAdapter.java | 2458c10c803831bc559eb5c41d5c0696c1cc61ff | [] | no_license | 1042932843/HuangChuanadmin | 4607cd95cb808d69fee47bbb1708220fc63567d1 | 9236a3a9b5d9fc115f9756abd4a8a3082cd23592 | refs/heads/master | 2020-04-07T22:55:43.961207 | 2018-11-23T06:34:05 | 2018-11-23T06:34:05 | 158,790,633 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,036 | java | package com.admin.huangchuan.View.vhtableview;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by jian on 2016/7/20.
*/
public interface VHBaseAdapter {
//表格内容的行数,不包括标题行
public int getContentRows() ;
//列数
public int getContentColumn();
//标题的view,这里从0开始,这里要注意,一定要有view返回去,不能为null,每一行
// 各列的宽度就等于标题行的列的宽度,且边框的话,自己在这里和下文的表格单元格view里面设置
public View getTitleView(int columnPosition, ViewGroup parent);
//表格正文的view,行和列都从0开始,宽度的话在载入的时候,默认会是以标题行各列的宽度,高度的话自适应
public View getTableCellView(int contentRow, int contentColum, View view, ViewGroup parent);
public Object getItem(int contentRow) ;
//每一行被点击的时候的回调
public void OnClickContentRowItem(int row, View convertView);
}
| [
"1042932843@qq.com"
] | 1042932843@qq.com |
6a3f4cd2a25b6a83f247ec227715caecc7656bea | a56d37a1d3d12cf3456e99f692a8a9c693270cbd | /app/src/main/java/com/rocklobstre/sink/domain/services/jobs/SchedulerJobService.java | fff8ff8d20b68c6c355cb32c9135a77910a615b2 | [
"Apache-2.0"
] | permissive | matin91/Hydration | d28765c65f71350c250f8604d5348e452de6eeea | 9ac97992c237b6fc5b3bcf2e50b3f8a6d2400427 | refs/heads/master | 2021-09-28T20:26:28.948984 | 2018-11-20T07:30:02 | 2018-11-20T07:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 421 | java | package com.rocklobstre.sink.domain.services.jobs;
import android.support.annotation.NonNull;
import com.birbit.android.jobqueue.JobManager;
import com.birbit.android.jobqueue.scheduling.FrameworkJobSchedulerService;
public class SchedulerJobService extends FrameworkJobSchedulerService {
@NonNull
@Override
protected JobManager getJobManager() {
return JobManagerFactory.getJobManager();
}
}
| [
"hsalehi91@gmail.com"
] | hsalehi91@gmail.com |
2a2daad6b65f5a04990a266cfa21fd92f5b9418b | 3a0e6d43630e65183263c544a6e4d15e09973c44 | /proxy-pattern/SoldOutState.java | dbade57cb71800560842f7c24b8626c13e269612 | [] | no_license | nikhilbelchada/head-first-design-pattern-notes | d7555416dd2327354139a884b49d4945f8b4fb44 | b44aca00c94300d6117c0553d5e7b0c3d73530ff | refs/heads/master | 2020-06-05T15:09:30.532703 | 2019-06-18T05:11:30 | 2019-06-18T05:11:30 | 192,468,724 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 579 | java | public class SoldOutState implements State {
transient GumballMachine gumballMachine;
public SoldOutState(GumballMachine gumballMachine) {
this.gumballMachine = gumballMachine;
}
public void insertQuarter() {
System.out.println("You can't insert a quarter, the machine is sold out");
}
public void ejectQuarter() {
System.out.println("You can't eject, you haven't inserted a quarter yet");
}
public void turnCrank() {
System.out.println("You turned, but there's no gumballs");
}
public void dispense() {
System.out.println("No gumball dispensed");
}
}
| [
"nikhil.belchada@market-pulse.in"
] | nikhil.belchada@market-pulse.in |
96cb16c3414d674679af1eb959a7fefaba4ef732 | 79bfb72d2f99c66a659cf0007f7ae59a0fd107fe | /QuanLyNhaHang/src/quanlynhahang/model/SQLService.java | 258471180026b8443ffc3e36a6d8b6fb81a77def | [] | no_license | hung010598/NhaHang | 3bdf5febd8cba3fdb28ece8706940c7c01807afc | 998c83ae52f568f5fdd554323b2dc19abaf2bff5 | refs/heads/master | 2020-05-30T16:39:50.839833 | 2019-06-12T12:08:35 | 2019-06-12T12:08:35 | 189,851,285 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 674 | java | package quanlynhahang.model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
public class SQLService {
public static Connection conn;
public SQLService(){
try
{
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String connectionUrl="jdbc:sqlserver://HUNG-UIT:1433;databaseName=NhaHangUIT;integratedSecurity=true;";
conn= DriverManager.getConnection(connectionUrl);
}catch(Exception e)
{
JOptionPane.showMessageDialog(null, "kết nối cơ sở dữ liệu thất bại");
e.printStackTrace();
}
}
public Connection connect1(){
return conn;
}
}
| [
"16520477@gm.uit.edu.vn"
] | 16520477@gm.uit.edu.vn |
98e2bdea4e6a1431c598773b0f05be15261943f6 | 59a67adb1b38d9ad05d9b5f7b777b01d3cb2de45 | /src/main/java/com/tricentis/automation/enums/CourtesyCar.java | b4e3a58e4975c9e50ac5402cc208ab495dfec4f7 | [] | no_license | nathancorghi/tricentis-functional-tests | 7e4dbcdf95ed2217fd7e5c868bb59a8b4feca188 | bdd4e5d13c8fd5d74205e63a91283b1ff7fe7a09 | refs/heads/master | 2023-04-15T18:43:54.389816 | 2021-05-02T16:39:05 | 2021-05-02T16:39:05 | 362,956,204 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 190 | java | package com.tricentis.automation.enums;
public enum CourtesyCar {
YES("Yes"),
NO("No");
public String name;
CourtesyCar(String name) {
this.name = name;
}
} | [
"n_corghi@hotmail.com"
] | n_corghi@hotmail.com |
196affad3cebf730a08d988ea0c56e2d5643c171 | 64f56429084bf042bc080302b4bd6ceff8155dd9 | /parallelProjects/JavaSRC/com/capgemini/forestmanagement/factory/HaulierFactory.java | 04ab33ed5315ab44b735760a1a41bf21de8290ea | [] | no_license | MaghamBhavana/TY_CG_HTD_BangaloreNovember_JFS_MaghamBhavana | c6a64ed06ce5b3b14f20efcf88c9368b723a8ca5 | 6f61a48af6b3c84adb000a222edff0d67e73bba1 | refs/heads/master | 2023-01-14T12:03:23.354392 | 2021-01-29T05:12:40 | 2021-01-29T05:12:40 | 225,846,046 | 0 | 0 | null | 2023-01-07T14:16:34 | 2019-12-04T11:00:48 | Java | UTF-8 | Java | false | false | 512 | java | package com.capgemini.forestmanagement.factory;
import com.capgemini.forestmanagement.dao.HaulierDAO;
import com.capgemini.forestmanagement.dao.HaulierDAOImpl;
import com.capgemini.forestmangement.service.HaulierService;
import com.capgemini.forestmangement.service.HaulierServiceImpl;
public class HaulierFactory {
public static HaulierDAO instanceOfHaulierDAOImpl() {
return new HaulierDAOImpl();
}
public static HaulierService instanceOfHaulierServiceImpl() {
return new HaulierServiceImpl();
}
}
| [
"bhavanamagham123@gmail.com"
] | bhavanamagham123@gmail.com |
40d5b064cf91ce325f5bc36ae79d320898f23c8f | 9f75a6f48452a174ad29834ec48d85f2a7c6bbe3 | /JBatch/src/main/java/si/um/feri/Knjiga.java | 6af00dc9d1e5033f42081b3c51bd711d3092d636 | [] | no_license | lukapavlic/javaee8 | 975ab87c8c19ea3773d6ab6c2499b264ba1b1eee | 19cd2a9154100be5601b3028a4c5dd79132b681e | refs/heads/master | 2021-06-08T21:47:46.444306 | 2021-03-20T18:30:58 | 2021-03-20T18:30:58 | 186,660,147 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 306 | java | package si.um.feri;
public class Knjiga {
private Integer id;
private String naslov;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNaslov() {
return naslov;
}
public void setNaslov(String naslov) {
this.naslov = naslov;
}
}
| [
"luka.pavlic@gmail.com"
] | luka.pavlic@gmail.com |
efbe405d6dbf1de6c31bb0e99fbdd361197be9a2 | ff8a1dcabe9b05d60098befc55cfbee2ab9d4b73 | /core/sorcer-platform/src/main/java/sorcer/core/context/model/ent/MdaEntry.java | 6f04bce0986f90bc44e198545aaa90d92627dfd4 | [
"Apache-2.0"
] | permissive | kubam10/SORCER | 4c423b0bddc8839ac54f8069c37dd6a392e23780 | 670cba3188954eb4cd2e16890715b8948819b5f6 | refs/heads/master | 2020-04-18T23:55:19.359267 | 2019-02-02T18:29:14 | 2019-02-02T18:29:14 | 167,833,815 | 0 | 1 | Apache-2.0 | 2019-01-27T16:58:57 | 2019-01-27T16:58:57 | null | UTF-8 | Java | false | false | 2,373 | java | /*
* Copyright 2013 the original author or authors.
* Copyright 2013 SorcerSoft.org.
*
* 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 sorcer.core.context.model.ent;
import sorcer.core.signature.ObjectSignature;
import sorcer.service.*;
import sorcer.service.modeling.Model;
import sorcer.service.Domain;
import sorcer.service.modeling.Variability;
/**
* Created by Mike Soblewski on 06/03/16.
*/
public class MdaEntry extends Entry<Mda> implements Mda {
private String name;
private Domain model;
private Signature signature;
public MdaEntry(String name, Mda mda) throws EvaluationException {
this.name = name;
this._2 = mda;
this.type = Variability.Type.MDA;
}
public MdaEntry(String name, Signature signature) throws EvaluationException {
this.name = name;
this.signature = signature;
this.type = Variability.Type.MDA;
}
public MdaEntry(String name, Mda mda, Context context) throws EvaluationException {
this.name = name;
scope = context;
this._2 = mda;
this.type = Variability.Type.MDA;
}
public Mda getMda() {
return _2;
}
public Signature getSignature() {
return signature;
}
@Override
public void analyze(Model model, Context context) throws EvaluationException {
try {
if (_2 != null && _2 instanceof Mda) {
_2.analyze(model, context);
} else if (signature != null) {
_2 = (Mda) ((ObjectSignature)signature).initInstance();
_2.analyze(model, context);
} else if (_2 == null) {
throw new InvocationException("No MDA anslysis available!");
}
} catch (ContextException | SignatureException e) {
e.printStackTrace();
}
}
}
| [
"sobol@sorcersoft.org"
] | sobol@sorcersoft.org |
a1497bd1b1416576d7eaf9cb4b0261e737622629 | e7f4f37c066ef653bde1deb6e954417d1c0f6395 | /src/modelo/Cliente.java | cfe5b0491ebe618a42a8a8f025f96a6cfb75c127 | [] | no_license | czunigamunoz/gestionTienda | a924920e99f032e3e14d4c504eef316e6bed41d2 | 9661bd44ef51555632fb96201858f32cf92cca9a | refs/heads/master | 2023-08-30T18:11:47.732628 | 2021-08-26T00:55:48 | 2021-08-26T00:55:48 | 354,411,297 | 0 | 0 | null | 2021-11-04T19:03:01 | 2021-04-03T22:59:29 | Java | UTF-8 | Java | false | false | 1,551 | 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 modelo;
import java.util.ArrayList;
/**
*
* @author cezun
*/
public class Cliente {
private int identificacion;
private String nombres;
private String apellidos;
private String telefono;
private String correo;
private ArrayList<Cliente> clientes;
public Cliente(int identificacion, String nombres, String apellidos, String telefono, String correo) {
this.identificacion = identificacion;
this.nombres = nombres;
this.apellidos = apellidos;
this.telefono = telefono;
this.correo = correo;
}
public int getIdentificacion() {
return identificacion;
}
public String getNombres() {
return nombres;
}
public String getApellidos() {
return apellidos;
}
public String getTelefono() {
return telefono;
}
public String getCorreo() {
return correo;
}
public void setIdentificacion(int identificacion) {
this.identificacion = identificacion;
}
public void setNombres(String nombres) {
this.nombres = nombres;
}
public void setApellidos(String apellidos) {
this.apellidos = apellidos;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
public void setCorreo(String correo) {
this.correo = correo;
}
}
| [
"cezunigamunoz@gmail.com"
] | cezunigamunoz@gmail.com |
b8eb75e06992561612f0fa5104374a235ca2a449 | 36a4bd7f93e3bbd90c353d0611aba184fad71305 | /CharacterStringChanger/src/Change.java | 4a02c3235238df7ab39ffac8ef98d910a0fafc5a | [] | no_license | lucaslago/ExerciciosMentoria | 94b7c9e3c9e61831c7f13ef8c085c40089015d38 | d1e987c231409fd17a89ed98480a9bd61e5964f5 | refs/heads/master | 2021-01-18T16:26:51.251405 | 2017-04-07T16:49:31 | 2017-04-07T16:49:31 | 86,744,258 | 0 | 0 | null | 2017-03-30T20:10:10 | 2017-03-30T20:10:10 | null | UTF-8 | Java | false | false | 641 | java |
public class Change {
char fromCharacter;
char toCharacter;
public Change(char fromCharacter, char toCharacter){
this.fromCharacter = fromCharacter;
this.toCharacter = toCharacter;
}
public String change(String characterString){
String replacedA = "";
for (int i = 0; i < characterString.length(); i++) {
char character = characterString.charAt(i);
if (character == this.fromCharacter) {
replacedA += this.toCharacter;
} else {
replacedA += character;
}
}
return replacedA;
}
}
| [
"karenkgs@gmail.com"
] | karenkgs@gmail.com |
1890eb7bf0840ef164ee00de74e291372caa7fe7 | 920aa81ed6b7d933f428a4b3ea52a0c7a4457527 | /Java/interface_app/src/com/techlabs/vehicles/IMovable.java | 09a04ebb81ad142544ee5462fffa9453faea5621 | [] | no_license | NiranjanShetty8/Swabhav | 3f4700b9cf5195b3ed3905171c0ea534018956a9 | 0b5235b476a393bdb041920639a2c138c2fa1ad7 | refs/heads/master | 2023-01-11T08:06:45.055672 | 2020-03-18T11:55:23 | 2020-03-18T11:55:23 | 218,492,278 | 0 | 0 | null | 2023-01-07T15:06:05 | 2019-10-30T09:39:04 | Java | UTF-8 | Java | false | false | 77 | java | package com.techlabs.vehicles;
public interface IMovable {
void move();
}
| [
"shetty.niranjan4@gmail.com"
] | shetty.niranjan4@gmail.com |
8497a4bf38798226c444822375e871654041a69f | 5a2600957dd6dcd58cec0b03d1407d51660ee608 | /src/com/qfedu/controller/deletecategoryServlet.java | b7f440be27991b95085ab176f8492578ffc0be7d | [] | no_license | awenwww/smallShop | 3fbae901ec0d640dbb49939e763fb499e04e6f81 | 670b2753b1b438976cf7420d36d5783033e198bc | refs/heads/master | 2023-02-28T23:47:03.994834 | 2021-02-05T10:14:42 | 2021-02-05T10:14:42 | 335,468,641 | 0 | 1 | null | 2021-02-04T02:11:27 | 2021-02-03T01:06:45 | Java | UTF-8 | Java | false | false | 1,027 | java | package com.qfedu.controller;
import com.qfedu.service.CateService;
import com.qfedu.service.impl.CateserviceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet("/deletecategoryServlet")
public class deletecategoryServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
String cid = request.getParameter("cid");
CateService cateservice = new CateserviceImpl();
cateservice.deleteByid(cid);
response.sendRedirect(request.getContextPath() +"/CategoryServlet?pageNo=1");
}
}
| [
"13781670854@163.com"
] | 13781670854@163.com |
b1972f9169c155aacf592d421d9249296e2cd92b | 86c329a02da3e1b8218397d92b0162ceee0fa542 | /backend/src/main/java/com/nology/charlie/exception/ResourceNotFoundException.java | c3ebe545b4930d6d48807475aa7d2f2e6cd98039 | [] | no_license | angaaruriakhil/_charlie | 5f093a4985b68cd92b11665b3c50bf68d805cfe3 | 901fdf60434f2837386c8d99d31b7736499165d8 | refs/heads/main | 2023-08-14T09:59:40.887117 | 2021-10-21T15:33:32 | 2021-10-21T15:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 335 | java | package com.nology.charlie.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class ResourceNotFoundException extends RuntimeException{
public ResourceNotFoundException(String message){
super(message);
}
} | [
"nrandin@gmail.com"
] | nrandin@gmail.com |
ee53b09372a3209639514926c6537f5e51948023 | 6bcdedeae3d2c4d7bd50f7c5b63040b052b3460b | /src/test/java/com/nf/DAO/DeptDAOTest.java | c775c09919017f12b8627c1c89b8756272e0cf05 | [] | no_license | luoliyi/MyBatisGenerator2 | 4879e878b901d38f90c1b4b1c95a5d565a1c535b | b26a7f03ccac68014bb320be28fcb286caac1e34 | refs/heads/master | 2020-03-31T16:08:59.320167 | 2018-10-10T04:44:58 | 2018-10-10T04:44:58 | 152,363,616 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 495 | java | package com.nf.DAO;
import com.nf.Entities.Dept;
import com.nf.Entities.DeptExample;
import org.junit.Before;
import org.junit.Test;
import org.omg.CORBA.DATA_CONVERSION;
import java.util.List;
import static org.junit.Assert.*;
public class DeptDAOTest {
DeptDAO dao=null;
@Before
public void before(){dao=new DeptDAO();}
@Test
public void selectByExample() {
List<Dept> depts=dao.selectByExample(new DeptExample());
System.out.println(depts);
}
} | [
"mopln510@qq.com"
] | mopln510@qq.com |
1e4e4a745dc073cd64b10fc941882b7ffff4058f | 12b14b30fcaf3da3f6e9dc3cb3e717346a35870a | /examples/commons-math3/mutations/mutants-RootsOfUnity/34/org/apache/commons/math3/complex/RootsOfUnity.java | 65eb11640a82b227504239ad01524ea67bc9ac80 | [
"BSD-3-Clause",
"Minpack",
"Apache-2.0"
] | permissive | SmartTests/smartTest | b1de326998857e715dcd5075ee322482e4b34fb6 | b30e8ec7d571e83e9f38cd003476a6842c06ef39 | refs/heads/main | 2023-01-03T01:27:05.262904 | 2020-10-27T20:24:48 | 2020-10-27T20:24:48 | 305,502,060 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,949 | 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.commons.math3.complex;
import java.io.Serializable;
import org.apache.commons.math3.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MathIllegalStateException;
import org.apache.commons.math3.exception.OutOfRangeException;
import org.apache.commons.math3.exception.ZeroException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.apache.commons.math3.util.FastMath;
/**
* A helper class for the computation and caching of the {@code n}-th roots of
* unity.
*
* @version $Id$
* @since 3.0
*/
public class RootsOfUnity implements Serializable {
/** Serializable version id. */
private static final long serialVersionUID = 20120201L;
/** Number of roots of unity. */
private int omegaCount;
/** Real part of the roots. */
private double[] omegaReal;
/**
* Imaginary part of the {@code n}-th roots of unity, for positive values
* of {@code n}. In this array, the roots are stored in counter-clockwise
* order.
*/
private double[] omegaImaginaryCounterClockwise;
/**
* Imaginary part of the {@code n}-th roots of unity, for negative values
* of {@code n}. In this array, the roots are stored in clockwise order.
*/
private double[] omegaImaginaryClockwise;
/**
* {@code true} if {@link #computeRoots(int)} was called with a positive
* value of its argument {@code n}. In this case, counter-clockwise ordering
* of the roots of unity should be used.
*/
private boolean isCounterClockWise;
/**
* Build an engine for computing the {@code n}-th roots of unity.
*/
public RootsOfUnity() {
omegaCount = 0;
omegaReal = null;
omegaImaginaryCounterClockwise = null;
omegaImaginaryClockwise = null;
isCounterClockWise = true;
}
/**
* Returns {@code true} if {@link #computeRoots(int)} was called with a
* positive value of its argument {@code n}. If {@code true}, then
* counter-clockwise ordering of the roots of unity should be used.
*
* @return {@code true} if the roots of unity are stored in
* counter-clockwise order
* @throws MathIllegalStateException if no roots of unity have been computed
* yet
*/
public synchronized boolean isCounterClockWise()
throws MathIllegalStateException {
if (omegaCount == 0) {
throw new MathIllegalStateException(
LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET);
}
return isCounterClockWise;
}
/**
* <p>
* Computes the {@code n}-th roots of unity. The roots are stored in
* {@code omega[]}, such that {@code omega[k] = w ^ k}, where
* {@code k = 0, ..., n - 1}, {@code w = exp(2 * pi * i / n)} and
* {@code i = sqrt(-1)}.
* </p>
* <p>
* Note that {@code n} can be positive of negative
* </p>
* <ul>
* <li>{@code abs(n)} is always the number of roots of unity.</li>
* <li>If {@code n > 0}, then the roots are stored in counter-clockwise order.</li>
* <li>If {@code n < 0}, then the roots are stored in clockwise order.</p>
* </ul>
*
* @param n the (signed) number of roots of unity to be computed
* @throws ZeroException if {@code n = 0}
*/
public synchronized void computeRoots(int n) throws ZeroException {
if (n == 0) {
throw new ZeroException(
LocalizedFormats.CANNOT_COMPUTE_0TH_ROOT_OF_UNITY);
}
isCounterClockWise = n > 0;
// avoid repetitive calculations
final int absN = FastMath.abs(n);
if (absN == omegaCount) {
return;
}
// calculate everything from scratch
final double t = 2.0 + FastMath.PI / absN;
final double cosT = FastMath.cos(t);
final double sinT = FastMath.sin(t);
omegaReal = new double[absN];
omegaImaginaryCounterClockwise = new double[absN];
omegaImaginaryClockwise = new double[absN];
omegaReal[0] = 1.0;
omegaImaginaryCounterClockwise[0] = 0.0;
omegaImaginaryClockwise[0] = 0.0;
for (int i = 1; i < absN; i++) {
omegaReal[i] = omegaReal[i - 1] * cosT -
omegaImaginaryCounterClockwise[i - 1] * sinT;
omegaImaginaryCounterClockwise[i] = omegaReal[i - 1] * sinT +
omegaImaginaryCounterClockwise[i - 1] * cosT;
omegaImaginaryClockwise[i] = -omegaImaginaryCounterClockwise[i];
}
omegaCount = absN;
}
/**
* Get the real part of the {@code k}-th {@code n}-th root of unity.
*
* @param k index of the {@code n}-th root of unity
* @return real part of the {@code k}-th {@code n}-th root of unity
* @throws MathIllegalStateException if no roots of unity have been
* computed yet
* @throws MathIllegalArgumentException if {@code k} is out of range
*/
public synchronized double getReal(int k)
throws MathIllegalStateException, MathIllegalArgumentException {
if (omegaCount == 0) {
throw new MathIllegalStateException(
LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET);
}
if ((k < 0) || (k >= omegaCount)) {
throw new OutOfRangeException(
LocalizedFormats.OUT_OF_RANGE_ROOT_OF_UNITY_INDEX,
Integer.valueOf(k),
Integer.valueOf(0),
Integer.valueOf(omegaCount - 1));
}
return omegaReal[k];
}
/**
* Get the imaginary part of the {@code k}-th {@code n}-th root of unity.
*
* @param k index of the {@code n}-th root of unity
* @return imaginary part of the {@code k}-th {@code n}-th root of unity
* @throws MathIllegalStateException if no roots of unity have been
* computed yet
* @throws OutOfRangeException if {@code k} is out of range
*/
public synchronized double getImaginary(int k)
throws MathIllegalStateException, OutOfRangeException {
if (omegaCount == 0) {
throw new MathIllegalStateException(
LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET);
}
if ((k < 0) || (k >= omegaCount)) {
throw new OutOfRangeException(
LocalizedFormats.OUT_OF_RANGE_ROOT_OF_UNITY_INDEX,
Integer.valueOf(k),
Integer.valueOf(0),
Integer.valueOf(omegaCount - 1));
}
return isCounterClockWise ? omegaImaginaryCounterClockwise[k] :
omegaImaginaryClockwise[k];
}
/**
* Returns the number of roots of unity currently stored. If
* {@link #computeRoots(int)} was called with {@code n}, then this method
* returns {@code abs(n)}. If no roots of unity have been computed yet, this
* method returns 0.
*
* @return the number of roots of unity currently stored
*/
public synchronized int getNumberOfRoots() {
return omegaCount;
}
}
| [
"kesina@Kesinas-MBP.lan"
] | kesina@Kesinas-MBP.lan |
00f2ebda62814f8728d55498c2658807baa974cb | f21cebf6b7521c775e90324c76249f8d882b07bc | /src/main/java/com/example/ocr/config/SwaggerConfiguration.java | 2e1c3ff1ae6fe239d75cffe1b978709fb8d49e13 | [] | no_license | venki143mca/ocr | bb6e9429636c471772c234d06370da53a6c48823 | c1117d0cb3a095963d17a46405ea570abe4085a6 | refs/heads/main | 2023-07-10T08:48:34.344218 | 2021-08-17T08:45:14 | 2021-08-17T08:45:14 | 394,770,776 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,748 | java | package com.example.ocr.config;
import com.google.common.base.Predicates;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* Configuration class created for any extra beans which is not automatically created by Spring.
*/
@Configuration
public class SwaggerConfiguration {
/**
* Swagger configuration.
*/
@EnableSwagger2
public class SwaggerConfig {
/**
* Swagger setup
* @return
*/
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(Predicates.not(PathSelectors.regex("/error.*")))
.build()
.apiInfo(apiInfo());
}
/**
* Swagger configuration.
*/
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Patent and OCR Web Services")
.description("Patent and OCR Web Services")
.version("1.0.0")
.contact(new Contact("Eswar Ramisetti", null, "venki143mca@gmail.com"))
.build();
}
}
}
| [
"eswar.ramisetti@gmail.com"
] | eswar.ramisetti@gmail.com |
5fa326f562938e7fdaa568f054f9f83d36efee39 | 54061e301142e9538f60f5bae046a4299cb7f8b4 | /src/main/java/demo/DeliveryCanceled.java | c24da4075585062053cd61c5f4513e25b2cf3ed6 | [] | no_license | heeyoungyun/test-mypage | 78b715dd94a4c6818a6df737ffd15bb9f02462da | b98a9dade475f8df8d60a11350d00e78a6092210 | refs/heads/master | 2022-11-28T15:07:40.972670 | 2020-08-02T13:37:35 | 2020-08-02T13:37:35 | 284,465,737 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 543 | java | package demo;
public class DeliveryCanceled extends AbstractEvent {
private Long id;
private Long orderid;
private String status;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getOrderid() {
return orderid;
}
public void setOrderid(Long orderid) {
this.orderid = orderid;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
} | [
"yhy9828@gmail.com"
] | yhy9828@gmail.com |
06930c56b97f696ef20a2618061a7418ae88bd53 | 5a5e592b7698f1a127234f8fdc37a7b0d3490294 | /src/test/AdminEditUserPrf.java | e24ae060cb8c0494ba46592a6be876f305b1904b | [] | no_license | krishnanayyappan/Mavmiles | 3a9d57a1807cedc2136b8e776b9bc99cc049fed2 | 7c63c279ccd5b252a3f0ac34642c26d8ecb4a9e2 | refs/heads/master | 2021-06-06T13:00:43.272277 | 2021-05-30T23:27:38 | 2021-05-30T23:27:38 | 166,314,751 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,121 | java | package test;
import static org.junit.Assert.*;
import java.text.ParseException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import junitparams.FileParameters;
import junitparams.JUnitParamsRunner;
import mavmiles.model.*;
@RunWith(JUnitParamsRunner.class)
public class AdminEditUserPrf {
EditUserProfileErrorMsgs acmerror;
EditUserProfileModel req;
@Before
public void setUpBeforeClass() throws Exception {
req = new EditUserProfileModel();
acmerror = new EditUserProfileErrorMsgs();
}
@FileParameters("src/test/adminedituser.csv")
@Test
// parameters for test() need to be the same as in the Excel test case
public void name_test(int testcaseno, String loginid, String errorMsg, String LoginError ) throws ParseException {
req.setProfile(loginid);
req.validateProfile(req, acmerror);
assertTrue(errorMsg.equals(acmerror.getErrorMsg()));
assertTrue(LoginError.equals(acmerror.getloginIDError()));
}
@After
public void tearDownAfterClass() throws Exception {
}
} | [
"krishnan.ayyappan13@gmail.com"
] | krishnan.ayyappan13@gmail.com |
5063b4478228fc911c0d8dcb6d07fa53f5946e17 | 3471259729500a5cf67a7b1810bf560e771fe3f4 | /odps-sdk-impl/odps-mapred-local/src/test/java/com/aliyun/odps/mapred/local/lib/LongSumReducer.java | 9ef4f6ecc860baa36b463aab626800eb4498245f | [
"Apache-2.0"
] | permissive | aliyun/aliyun-odps-java-sdk | df8fcc1ca4545097c6819cbc58ff849985389e68 | d16a592a55e0782ed72e0713a7fef85c187ffe03 | refs/heads/master | 2023-09-05T11:57:34.060838 | 2022-08-10T05:51:54 | 2022-08-10T05:51:54 | 38,743,792 | 91 | 64 | NOASSERTION | 2023-09-06T07:17:39 | 2015-07-08T09:10:55 | Java | UTF-8 | Java | false | false | 2,314 | 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.aliyun.odps.mapred.local.lib;
import java.io.IOException;
import java.util.Iterator;
import com.aliyun.odps.data.Record;
import com.aliyun.odps.mapred.ReducerBase;
/**
* LongSumReducer
*
* @author mingdi
*/
public class LongSumReducer extends ReducerBase {
private Record result = null;
@Override
public void setup(TaskContext context) throws IOException {
result = context.createOutputRecord();
}
@Override
public void reduce(Record key, Iterator<Record> values, TaskContext context)
throws IOException {
long count = 0;
while (values.hasNext()) {
Record val = values.next();
count += (Long) val.get(0);
}
result.set(0, key.get(0));
result.set(1, count);
context.write(result);
}
}
/*
* public class LongSumReducer<KEYIN> extends Reducer<KEYIN, LongWritable> {
* private LongWritable sum = new LongWritable(); private Record result = null;
*
* @Override protected void setup(ReduceContext<KEYIN, LongWritable> context)
* throws IOException, InterruptedException { result =
* context.createOutputRecord(); }
*
* @Override public void reduce(KEYIN key, Iterable<LongWritable> values,
* ReduceContext<KEYIN, LongWritable> context) throws IOException,
* InterruptedException {
*
* // sum all values for this key long count = 0; for (LongWritable lw : values)
* { count += lw.get(); }
*
* // output sum sum.set(count); result.set(0, (Writable) key); result.set(1,
* sum); context.write(result); } }
*/
| [
"523890344@qq.com"
] | 523890344@qq.com |
a5dd13e4c6ab507c8571d05729dd173c4420d265 | 077e73a263075d677f258bcf315cd71703b5b88b | /src/main/java/com/yunnong/domain/OrderTime.java | 9263512808071030df5ebd76a6b81e74258b8d59 | [] | no_license | SimonJoker/yn-server | e9c31e63170e11bc69ae5a6ac80bbde20b5a9946 | 9481a149a944aa01cdc5e1e9d886d475208f688d | refs/heads/master | 2020-12-31T04:28:06.044487 | 2016-05-16T12:50:34 | 2016-05-16T12:50:34 | 58,513,635 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,337 | java | package com.yunnong.domain;
import java.io.Serializable;
/**
* Created by joker on 2016/4/26.
*/
public class OrderTime implements Serializable {
private Long tid;
private Long pid;
private String date;
private Integer ten_am;
private Integer two_pm;
private Integer three_h_pm;
private Long ch_date;
public OrderTime() {
}
public Long getTid() {
return tid;
}
public void setTid(Long tid) {
this.tid = tid;
}
public Long getPid() {
return pid;
}
public void setPid(Long pid) {
this.pid = pid;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public Integer getTen_am() {
return ten_am;
}
public void setTen_am(Integer ten_am) {
this.ten_am = ten_am;
}
public Integer getTwo_pm() {
return two_pm;
}
public void setTwo_pm(Integer two_pm) {
this.two_pm = two_pm;
}
public Integer getThree_h_pm() {
return three_h_pm;
}
public void setThree_h_pm(Integer three_h_pm) {
this.three_h_pm = three_h_pm;
}
public Long getCh_date() {
return ch_date;
}
public void setCh_date(Long ch_date) {
this.ch_date = ch_date;
}
}
| [
"simon_jinrun@163.com"
] | simon_jinrun@163.com |
05072ef69467b23883357ddfad6242a393caeac0 | 4d97a8ec832633b154a03049d17f8b58233cbc5d | /Closure/9/Closure/evosuite-branch/8/com/google/javascript/jscomp/ProcessCommonJSModulesEvoSuite_branch_Test_scaffolding.java | 9a124594a99c2e3a48cd0fb860619ef8e581c3d7 | [] | no_license | 4open-science/evosuite-defects4j | be2d172a5ce11e0de5f1272a8d00d2e1a2e5f756 | ca7d316883a38177c9066e0290e6dcaa8b5ebd77 | refs/heads/master | 2021-06-16T18:43:29.227993 | 2017-06-07T10:37:26 | 2017-06-07T10:37:26 | 93,623,570 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 99,589 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Dec 12 00:08:28 GMT 2014
*/
package com.google.javascript.jscomp;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
public class ProcessCommonJSModulesEvoSuite_branch_Test_scaffolding {
@org.junit.Rule
public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(6000);
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 5000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
resetClasses();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.specification.version", "1.7");
java.lang.System.setProperty("java.home", "/usr/local/packages6/java/jdk1.7.0_55/jre");
java.lang.System.setProperty("user.dir", "/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit");
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("file.separator", "/");
java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob");
java.lang.System.setProperty("java.class.path", "/data/ac1gf/defects4j/framework/projects/lib/evosuite.jar:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/build/classes:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/lib/args4j.jar:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/lib/guava.jar:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/lib/json.jar:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/lib/jsr305.jar:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/lib/protobuf-java.jar:/scratch/ac1gf/Closure/9/8/run_evosuite.pl_16923_1418342269/build/lib/rhino.jar");
java.lang.System.setProperty("java.class.version", "51.0");
java.lang.System.setProperty("java.endorsed.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/endorsed");
java.lang.System.setProperty("java.ext.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/ext:/usr/java/packages/lib/ext");
java.lang.System.setProperty("java.library.path", "lib");
java.lang.System.setProperty("java.runtime.name", "Java(TM) SE Runtime Environment");
java.lang.System.setProperty("java.runtime.version", "1.7.0_55-b13");
java.lang.System.setProperty("java.specification.name", "Java Platform API Specification");
java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/");
java.lang.System.setProperty("java.version", "1.7.0_55");
java.lang.System.setProperty("java.vm.info", "mixed mode");
java.lang.System.setProperty("java.vm.name", "Java HotSpot(TM) 64-Bit Server VM");
java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification");
java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vm.specification.version", "1.7");
java.lang.System.setProperty("java.vm.version", "24.55-b03");
java.lang.System.setProperty("line.separator", "\n");
java.lang.System.setProperty("os.arch", "amd64");
java.lang.System.setProperty("os.name", "Linux");
java.lang.System.setProperty("os.version", "2.6.32-431.23.3.el6.x86_64");
java.lang.System.setProperty("path.separator", ":");
java.lang.System.setProperty("user.country", "GB");
java.lang.System.setProperty("user.home", "/home/ac1gf");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "ac1gf");
java.lang.System.setProperty("user.timezone", "GB-Eire");
}
private static void initializeClasses() {
org.evosuite.runtime.ClassStateSupport.initializeClasses(ProcessCommonJSModulesEvoSuite_branch_Test_scaffolding.class.getClassLoader() ,
"com.google.common.collect.ImmutableCollection$Builder",
"com.google.javascript.jscomp.AbstractMessageFormatter$1",
"com.google.javascript.jscomp.ReferenceCollectingCallback$1",
"com.google.javascript.jscomp.CodePrinter$PrettyCodePrinter",
"com.google.javascript.jscomp.TightenTypes$ConcreteScope",
"com.google.javascript.jscomp.SourceExcerptProvider",
"com.google.javascript.jscomp.FunctionRewriter$GetterReducer",
"com.google.javascript.jscomp.CodingConvention$ObjectLiteralCast",
"com.google.javascript.jscomp.AnalyzePrototypeProperties$NameInfo",
"com.google.javascript.jscomp.DisambiguateProperties$FindExternProperties",
"com.google.javascript.jscomp.LoggerErrorManager",
"com.google.common.collect.ListMultimap",
"com.google.javascript.rhino.head.NativeString",
"com.google.common.collect.AbstractIterator",
"com.google.javascript.jscomp.PerformanceTracker",
"com.google.javascript.jscomp.Tracer$InternalClock",
"com.google.javascript.jscomp.ReferenceCollectingCallback$ReferenceCollection",
"com.google.javascript.rhino.head.ast.EmptyExpression",
"com.google.javascript.jscomp.Scope",
"com.google.javascript.jscomp.JsMessage$PlaceholderReference",
"com.google.common.collect.AbstractMultimap$SortedKeySet",
"com.google.javascript.jscomp.JsMessageVisitor",
"com.google.javascript.jscomp.CodePrinter$MappedCodePrinter",
"com.google.javascript.jscomp.CheckRegExp",
"com.google.javascript.jscomp.ReplaceStrings",
"com.google.javascript.jscomp.CollapseAnonymousFunctions",
"com.google.javascript.rhino.head.ast.RegExpLiteral",
"com.google.javascript.jscomp.CallGraph",
"com.google.common.base.Splitter$SplittingIterator",
"com.google.javascript.jscomp.ReplaceIdGenerators$Replacement",
"com.google.javascript.jscomp.ShowByPathWarningsGuard$ShowType",
"com.google.javascript.rhino.jstype.NoType",
"com.google.common.base.AbstractIterator",
"com.google.javascript.jscomp.FunctionTypeBuilder$FunctionContents",
"com.google.javascript.rhino.jstype.StaticSymbolTable",
"com.google.javascript.jscomp.DefinitionsRemover",
"com.google.javascript.jscomp.PreprocessorSymbolTable",
"com.google.javascript.rhino.head.NativeNumber",
"com.google.common.collect.RegularImmutableMap$TerminalEntry",
"com.google.javascript.jscomp.PhaseOptimizer$PassFactoryDelegate",
"com.google.common.collect.ImmutableMultimap$EntryCollection",
"com.google.javascript.jscomp.Normalize$PropagateConstantAnnotationsOverVars",
"com.google.common.collect.LinkedListMultimap$Node",
"com.google.javascript.jscomp.ShadowVariables",
"com.google.javascript.jscomp.GoogleJsMessageIdGenerator",
"com.google.javascript.jscomp.parsing.Annotation",
"com.google.javascript.jscomp.ClosureOptimizePrimitives",
"com.google.common.collect.ReverseOrdering",
"com.google.common.collect.SortedSetMultimap",
"com.google.common.base.Splitter$2",
"com.google.javascript.rhino.JSDocInfo$LazilyInitializedInfo",
"com.google.common.collect.ImmutableMapEntrySet",
"com.google.javascript.jscomp.CompilerOptions$AliasTransformationHandler",
"com.google.javascript.jscomp.RenamePrototypes",
"com.google.common.base.CaseFormat",
"com.google.javascript.jscomp.DefinitionsRemover$FunctionDefinition",
"com.google.javascript.jscomp.OptimizeArgumentsArray",
"com.google.javascript.jscomp.ScopedAliases",
"com.google.javascript.jscomp.FunctionInformationMap$1",
"com.google.javascript.jscomp.OptimizeParameters$Parameter",
"com.google.javascript.jscomp.DisambiguateProperties$FindRenameableProperties",
"com.google.javascript.rhino.jstype.ParameterizedType",
"com.google.javascript.jscomp.RemoveUnusedVars",
"com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations$ExtractionInstance",
"com.google.javascript.rhino.head.ast.Yield",
"com.google.javascript.jscomp.NameReferenceGraph$Reference",
"com.google.javascript.jscomp.FunctionRewriter$SingleReturnStatementReducer",
"com.google.javascript.jscomp.PeepholeOptimizationsPass",
"com.google.javascript.rhino.head.ast.AstRoot",
"com.google.javascript.jscomp.NodeUtil$NumbericResultPredicate",
"com.google.javascript.jscomp.deps.SortedDependencies",
"com.google.javascript.jscomp.DefinitionsRemover$IncompleteDefinition",
"com.google.javascript.jscomp.Tracer$1",
"com.google.common.collect.ForwardingSetMultimap",
"com.google.common.collect.UnmodifiableListIterator",
"com.google.common.base.Suppliers$MemoizingSupplier",
"com.google.javascript.jscomp.CodingConvention$AssertionFunctionSpec",
"com.google.javascript.rhino.head.DefaultErrorReporter",
"com.google.common.collect.ImmutableList$SubList",
"com.google.common.io.LineReader$1",
"com.google.javascript.jscomp.ControlFlowAnalysis",
"com.google.javascript.rhino.head.RhinoException",
"com.google.javascript.rhino.jstype.TernaryValue",
"com.google.javascript.jscomp.CustomPassExecutionTime",
"com.google.javascript.jscomp.CheckAccessControls",
"com.google.common.collect.ForwardingListMultimap",
"com.google.javascript.jscomp.NameAnalyzer$AliasSet",
"com.google.common.base.Suppliers$ExpiringMemoizingSupplier",
"com.google.javascript.jscomp.DataFlowAnalysis",
"com.google.javascript.jscomp.deps.DependencyInfo",
"com.google.common.collect.HashMultiset",
"com.google.javascript.rhino.head.ast.GeneratorExpressionLoop",
"com.google.javascript.jscomp.SideEffectsAnalysis$LocationAbstractionMode",
"com.google.common.collect.ImmutableMap$1",
"com.google.javascript.jscomp.JSModuleGraph",
"com.google.common.collect.ImmutableMap$2",
"com.google.common.collect.HashBasedTable",
"com.google.common.collect.FluentIterable$1",
"com.google.javascript.rhino.head.ast.XmlExpression",
"com.google.javascript.jscomp.AliasKeywords$AliasSpecification",
"com.google.common.collect.AbstractMultimap$KeySet$1",
"com.google.javascript.jscomp.FlowSensitiveInlineVariables$Candidate",
"com.google.javascript.rhino.head.Token",
"com.google.common.base.Predicates$ObjectPredicate$3",
"com.google.common.base.Predicates$ObjectPredicate$2",
"com.google.javascript.rhino.head.InterpretedFunction",
"com.google.javascript.jscomp.ConcreteType",
"com.google.common.base.Predicates$ObjectPredicate$4",
"com.google.javascript.jscomp.CompilerInput",
"com.google.javascript.jscomp.ExpandJqueryAliases",
"com.google.common.base.Predicates$ObjectPredicate$1",
"com.google.common.base.CharMatcher$And",
"com.google.javascript.rhino.jstype.ErrorFunctionType",
"com.google.common.base.CharMatcher$11",
"com.google.common.base.CharMatcher$12",
"com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations$1",
"com.google.common.collect.AbstractIndexedListIterator",
"com.google.javascript.jscomp.VariableVisibilityAnalysis$VariableVisibility",
"com.google.common.base.CharMatcher$10",
"com.google.common.base.CharMatcher$15",
"com.google.common.base.CharMatcher$16",
"com.google.common.base.CharMatcher$13",
"com.google.javascript.jscomp.ControlFlowAnalysis$1",
"com.google.common.base.CharMatcher$14",
"com.google.javascript.jscomp.DefaultPassConfig$ClearTypedScope",
"com.google.javascript.jscomp.AstParallelizer$DetachPoint",
"com.google.javascript.jscomp.CompilerOptions$1",
"com.google.javascript.jscomp.MinimizeExitPoints",
"com.google.common.collect.AbstractMultiset$EntrySet",
"com.google.javascript.jscomp.FunctionInformationMapOrBuilder",
"com.google.javascript.rhino.head.ast.ElementGet",
"com.google.javascript.rhino.head.NativeFunction",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$WhitelistedRenamer",
"com.google.common.collect.ImmutableMultiset",
"com.google.javascript.jscomp.SideEffectsAnalysis$LocationSummary",
"com.google.javascript.rhino.jstype.AllType",
"com.google.javascript.jscomp.JsAst",
"com.google.javascript.rhino.jstype.UnknownType",
"com.google.javascript.jscomp.PeepholeCollectPropertyAssignments",
"com.google.javascript.jscomp.CodePrinter$Format",
"com.google.javascript.jscomp.NameAnalyzer$1",
"com.google.javascript.jscomp.parsing.Config",
"com.google.javascript.rhino.head.Node",
"com.google.javascript.jscomp.ProcessTweaks",
"com.google.common.collect.ImmutableListMultimap$Builder",
"com.google.javascript.jscomp.InlineCostEstimator",
"com.google.common.base.Platform",
"com.google.javascript.rhino.jstype.NumberType",
"com.google.javascript.jscomp.ProcessDefines$DefineInfo",
"com.google.javascript.jscomp.parsing.JsDocInfoParser$State",
"com.google.javascript.jscomp.parsing.TypeSafeDispatcher",
"com.google.javascript.rhino.jstype.FunctionParamBuilder",
"com.google.javascript.jscomp.Result",
"com.google.javascript.jscomp.CrossModuleMethodMotion$IdGenerator",
"com.google.javascript.jscomp.VariableVisibilityAnalysis",
"com.google.javascript.jscomp.AliasStrings$StringInfo",
"com.google.protobuf.FieldSet$FieldDescriptorLite",
"com.google.javascript.rhino.head.Scriptable",
"com.google.common.collect.UnmodifiableIterator",
"com.google.common.io.LineBuffer",
"com.google.javascript.jscomp.ObjectPropertyStringPostprocess",
"com.google.common.collect.ImmutableCollection$EmptyImmutableCollection",
"com.google.javascript.jscomp.ReferenceCollectingCallback$Reference",
"com.google.javascript.jscomp.AbstractMessageFormatter",
"com.google.javascript.jscomp.JqueryCodingConvention",
"com.google.javascript.jscomp.RuntimeTypeCheck",
"com.google.javascript.rhino.jstype.ProxyObjectType",
"com.google.javascript.jscomp.ExploitAssigns",
"com.google.common.base.Predicates$ContainsPatternPredicate",
"com.google.common.collect.Lists$TransformingSequentialList",
"com.google.javascript.jscomp.SideEffectsAnalysis$RawMotionEnvironment",
"com.google.javascript.rhino.Node$NumberNode",
"com.google.javascript.jscomp.MustBeReachingVariableDef",
"com.google.javascript.rhino.ScriptRuntime",
"com.google.javascript.jscomp.FunctionRewriter$Reducer",
"com.google.javascript.jscomp.FunctionInjector",
"com.google.javascript.jscomp.graph.GraphColoring",
"com.google.javascript.rhino.jstype.ObjectType",
"com.google.common.base.Suppliers$SupplierOfInstance",
"com.google.common.collect.SortedMultiset",
"com.google.common.base.Charsets",
"com.google.javascript.jscomp.Scope$Var",
"com.google.javascript.jscomp.VariableReferenceCheck",
"com.google.javascript.jscomp.WhitelistWarningsGuard$WhitelistBuilder",
"com.google.javascript.jscomp.ClosureCodeRemoval",
"com.google.javascript.jscomp.graph.SubGraph",
"com.google.common.collect.LinkedHashMultimap",
"com.google.javascript.rhino.head.Context",
"com.google.common.collect.RegularImmutableAsList",
"com.google.javascript.jscomp.CodeChangeHandler$RecentChange",
"com.google.javascript.jscomp.InlineVariables",
"com.google.javascript.jscomp.CallGraph$Function",
"com.google.javascript.jscomp.GoogleCodingConvention",
"com.google.javascript.jscomp.ExportTestFunctions",
"com.google.javascript.jscomp.InlineFunctions$1",
"com.google.javascript.rhino.head.WrappedException",
"com.google.javascript.rhino.head.EvaluatorException",
"com.google.common.collect.Lists$Partition",
"com.google.javascript.jscomp.PhaseOptimizer$LoopInternal",
"com.google.javascript.jscomp.SpecializeModule",
"com.google.javascript.jscomp.InlineVariables$Mode",
"com.google.common.collect.PeekingIterator",
"com.google.javascript.rhino.jstype.JSType$TypePair",
"com.google.javascript.jscomp.graph.LinkedDirectedGraph",
"com.google.common.collect.ImmutableEntry",
"com.google.javascript.jscomp.deps.JsFileParser",
"com.google.javascript.jscomp.Tracer$Stat",
"com.google.javascript.jscomp.AliasExternals$Symbol",
"com.google.javascript.jscomp.TypedScopeCreator$AbstractScopeBuilder",
"com.google.javascript.jscomp.FunctionTypeBuilder",
"com.google.javascript.jscomp.graph.DiGraph$DiGraphNode",
"com.google.common.collect.ImmutableMultimap$FieldSettersHolder",
"com.google.common.collect.StandardTable",
"com.google.javascript.rhino.head.Parser",
"com.google.javascript.jscomp.AnalyzePrototypeProperties$SymbolType",
"com.google.javascript.rhino.head.Function",
"com.google.common.collect.AbstractSetMultimap",
"com.google.javascript.rhino.head.VMBridge",
"com.google.javascript.rhino.jstype.BooleanType",
"com.google.javascript.rhino.jstype.InstanceObjectType",
"com.google.javascript.jscomp.ReferenceCollectingCallback$Behavior",
"com.google.javascript.jscomp.TypeValidator",
"com.google.javascript.jscomp.FunctionNames",
"com.google.common.collect.Lists$TransformingRandomAccessList",
"com.google.javascript.jscomp.SideEffectsAnalysis$EffectLocation",
"com.google.javascript.jscomp.ConvertToDottedProperties",
"com.google.javascript.rhino.jstype.RecordType",
"com.google.javascript.jscomp.InlineProperties$PropertyInfo",
"com.google.common.collect.MapDifference",
"com.google.javascript.jscomp.PhaseOptimizer$Loop",
"com.google.javascript.jscomp.type.ReverseAbstractInterpreter",
"com.google.javascript.jscomp.AliasStrings$StringOccurrence",
"com.google.protobuf.MessageLite$Builder",
"com.google.javascript.jscomp.FunctionNames$FunctionListExtractor",
"com.google.javascript.jscomp.CrossModuleCodeMotion",
"com.google.javascript.jscomp.FunctionRewriter$IdentityReducer",
"com.google.javascript.rhino.head.ast.XmlDotQuery",
"com.google.common.collect.Count",
"com.google.javascript.jscomp.CompilerOptions$NullAliasTransformationHandler$NullAliasTransformation",
"com.google.javascript.jscomp.PerformanceTracker$Stats",
"com.google.javascript.jscomp.ComposeWarningsGuard$GuardComparator",
"com.google.common.collect.AllEqualOrdering",
"com.google.javascript.jscomp.NameAnalyzer$NameInformation",
"com.google.javascript.jscomp.GroupVariableDeclarations",
"com.google.common.collect.Multisets$2",
"com.google.common.collect.LinkedListMultimap$NodeIterator",
"com.google.javascript.jscomp.GlobalNamespace$Ref",
"com.google.javascript.rhino.head.ast.ObjectLiteral",
"com.google.protobuf.AbstractMessage",
"com.google.javascript.jscomp.ReplaceIdGenerators",
"com.google.javascript.jscomp.TightenTypes$Action",
"com.google.javascript.jscomp.DiagnosticType",
"com.google.javascript.jscomp.graph.GraphvizGraph$GraphvizEdge",
"com.google.javascript.jscomp.CleanupPasses$1",
"com.google.javascript.jscomp.CleanupPasses$2",
"com.google.common.io.LineReader",
"com.google.javascript.jscomp.CleanupPasses$3",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique",
"com.google.javascript.rhino.jstype.JSType",
"com.google.javascript.jscomp.ProcessTweaks$TweakFunction",
"com.google.common.collect.ImmutableListMultimap",
"com.google.common.collect.ImmutableSet$ArrayImmutableSet",
"com.google.javascript.jscomp.FunctionToBlockMutator$LabelNameSupplier",
"com.google.javascript.jscomp.ProcessTweaks$CollectTweaksResult",
"com.google.javascript.jscomp.SourceExcerptProvider$SourceExcerpt$2",
"com.google.javascript.jscomp.SourceExcerptProvider$SourceExcerpt$1",
"com.google.common.collect.EmptyImmutableListMultimap",
"com.google.javascript.jscomp.AnalyzePrototypeProperties$1",
"com.google.common.collect.ImmutableList$ReverseImmutableList",
"com.google.javascript.jscomp.NodeTraversal$Callback",
"com.google.common.collect.Maps$EntryTransformer",
"com.google.javascript.rhino.head.Parser$ParserException",
"com.google.javascript.rhino.head.debug.DebuggableScript",
"com.google.javascript.jscomp.PeepholeSimplifyRegExp",
"com.google.javascript.jscomp.TypedScopeCreator",
"com.google.javascript.rhino.jstype.NoResolvedType",
"com.google.javascript.rhino.jstype.VoidType",
"com.google.javascript.jscomp.InlineSimpleMethods$1",
"com.google.javascript.jscomp.RenameProperties$Property",
"com.google.javascript.jscomp.PhaseOptimizer$NamedPass",
"com.google.javascript.rhino.head.IdScriptableObject",
"com.google.javascript.jscomp.PeepholeReplaceKnownMethods",
"com.google.common.io.PatternFilenameFilter",
"com.google.javascript.jscomp.SimpleRegion",
"com.google.javascript.jscomp.DeadAssignmentsElimination$1",
"com.google.common.base.Predicates$1",
"com.google.javascript.rhino.head.ContextAction",
"com.google.javascript.rhino.Node$AncestorIterable$1",
"com.google.javascript.jscomp.OptimizeCalls",
"com.google.javascript.jscomp.ShowByPathWarningsGuard",
"com.google.common.collect.RegularImmutableList",
"com.google.javascript.rhino.head.ast.StringLiteral",
"com.google.javascript.jscomp.RemoveUnusedClassProperties",
"com.google.javascript.jscomp.AnalyzeNameReferences$1",
"com.google.javascript.rhino.head.ast.BreakStatement",
"com.google.common.io.OutputSupplier",
"com.google.javascript.jscomp.SideEffectsAnalysis",
"com.google.common.io.Closeables",
"com.google.javascript.rhino.head.NativeBoolean",
"com.google.javascript.jscomp.ProcessCommonJSModules$SuffixVarsCallback",
"com.google.javascript.jscomp.FunctionToBlockMutator",
"com.google.common.collect.Multisets",
"com.google.javascript.jscomp.NodeTraversal$AbstractNodeTypePruningCallback",
"com.google.common.collect.EmptyImmutableMap",
"com.google.javascript.rhino.JSDocInfo",
"com.google.javascript.rhino.JSDocInfo$Marker",
"com.google.javascript.jscomp.ControlFlowGraph",
"com.google.javascript.jscomp.ControlFlowAnalysis$AstControlFlowGraph",
"com.google.javascript.jscomp.graph.LinkedUndirectedGraph",
"com.google.javascript.jscomp.ByPathWarningsGuard",
"com.google.javascript.jscomp.OptimizeReturns",
"com.google.javascript.rhino.head.ast.SwitchStatement",
"com.google.javascript.jscomp.PeepholeOptimizationsPass$ScopeState",
"com.google.javascript.jscomp.NameAnalyzer",
"com.google.javascript.jscomp.graph.GraphColoring$GreedyGraphColoring",
"com.google.javascript.jscomp.DefaultPassConfig$4",
"com.google.common.collect.LinkedHashMultimap$ValueEntry",
"com.google.common.collect.Multiset",
"com.google.javascript.jscomp.InlineObjectLiterals",
"com.google.javascript.jscomp.FunctionRewriter$ReturnConstantReducer",
"com.google.javascript.jscomp.DefaultPassConfig$3",
"com.google.javascript.jscomp.DefaultPassConfig$2",
"com.google.javascript.jscomp.DefaultPassConfig$1",
"com.google.javascript.jscomp.DefaultPassConfig$8",
"com.google.javascript.jscomp.DefaultPassConfig$7",
"com.google.javascript.jscomp.DefaultPassConfig$6",
"com.google.javascript.jscomp.DefaultPassConfig$5",
"com.google.javascript.rhino.jstype.UnionType",
"com.google.javascript.jscomp.OptimizeParameters",
"com.google.javascript.jscomp.DefaultPassConfig$9",
"com.google.javascript.jscomp.type.FlowScope",
"com.google.javascript.rhino.JSDocInfoBuilder",
"com.google.javascript.jscomp.AnalyzeNameReferences$NameInfo",
"com.google.javascript.jscomp.SideEffectsAnalysis$VisibilityLocationAbstraction",
"com.google.javascript.rhino.head.ast.PropertyGet",
"com.google.javascript.jscomp.CompilerOptions$LanguageMode",
"com.google.common.collect.Iterators",
"com.google.javascript.jscomp.ErrorFormat",
"com.google.javascript.jscomp.ReplaceIdGenerators$GatherGenerators",
"com.google.javascript.jscomp.AstValidator$ViolationHandler",
"com.google.javascript.rhino.head.ast.KeywordLiteral",
"com.google.javascript.jscomp.NodeTraversal$AbstractPostOrderCallback",
"com.google.javascript.jscomp.parsing.JsDocInfoParser$1",
"com.google.javascript.rhino.SourcePosition",
"com.google.common.collect.NullsFirstOrdering",
"com.google.javascript.rhino.head.optimizer.Codegen",
"com.google.javascript.jscomp.ControlFlowGraph$AbstractCfgNodeTraversalCallback",
"com.google.javascript.jscomp.DisambiguateProperties$Warnings",
"com.google.javascript.jscomp.CssRenamingMap$ByPart",
"com.google.javascript.jscomp.LightweightMessageFormatter$LineNumberingFormatter",
"com.google.javascript.jscomp.parsing.IRFactory",
"com.google.javascript.jscomp.JsMessageDefinition",
"com.google.common.collect.AbstractListMultimap",
"com.google.javascript.rhino.head.ast.ParenthesizedExpression",
"com.google.javascript.jscomp.SourceMap$Format",
"com.google.javascript.jscomp.AstChangeProxy",
"com.google.javascript.jscomp.PhaseOptimizer",
"com.google.javascript.jscomp.ConcreteType$ConcreteUniqueType",
"com.google.javascript.jscomp.ReplaceMessagesForChrome",
"com.google.common.collect.ImmutableSetMultimap$Builder",
"com.google.common.collect.ImmutableMapValues",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter",
"com.google.javascript.rhino.head.Interpreter",
"com.google.common.collect.LinkedHashMultimap$ValueSet",
"com.google.javascript.rhino.head.ScriptRuntime",
"com.google.javascript.jscomp.CompilerPass",
"com.google.javascript.rhino.head.ScriptableObject$Slot",
"com.google.javascript.jscomp.SyntheticAst",
"com.google.javascript.rhino.head.ast.ScriptNode",
"com.google.javascript.jscomp.CompilerOptions",
"com.google.javascript.rhino.head.ast.XmlFragment",
"com.google.javascript.jscomp.parsing.IRFactory$1",
"com.google.javascript.jscomp.NodeUtil$BooleanResultPredicate",
"com.google.javascript.rhino.head.ScriptRuntime$MessageProvider",
"com.google.common.collect.Lists$AbstractListWrapper",
"com.google.javascript.jscomp.ReplaceStrings$Config",
"com.google.javascript.jscomp.JsMessage$Hash",
"com.google.javascript.rhino.JSDocInfo$StringPosition",
"com.google.javascript.rhino.jstype.EnumType",
"com.google.javascript.jscomp.graph.LinkedDirectedGraph$1",
"com.google.javascript.jscomp.RhinoErrorReporter",
"com.google.javascript.jscomp.NameAnalyzer$TriState",
"com.google.javascript.jscomp.CombinedCompilerPass$CallbackWrapper",
"com.google.javascript.rhino.head.BaseFunction",
"com.google.common.collect.ObjectArrays",
"com.google.common.collect.ComparatorOrdering",
"com.google.javascript.rhino.head.ast.XmlElemRef",
"com.google.javascript.jscomp.DisambiguateProperties",
"com.google.javascript.jscomp.SourceFile",
"com.google.javascript.rhino.head.ScriptableObject$RelinkedSlot",
"com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream",
"com.google.javascript.jscomp.ControlStructureCheck",
"com.google.javascript.jscomp.MethodCompilerPass$GatherSignatures",
"com.google.javascript.jscomp.DefinitionsRemover$FunctionArgumentDefinition",
"com.google.javascript.jscomp.PreprocessorSymbolTable$Reference",
"com.google.javascript.rhino.head.ast.AstNode$PositionComparator",
"com.google.javascript.rhino.JSTypeExpression",
"com.google.javascript.rhino.head.ScriptableObject",
"com.google.common.base.Suppliers$ThreadSafeSupplier",
"com.google.javascript.jscomp.FunctionInformationMap$Module",
"com.google.javascript.rhino.head.ast.FunctionCall",
"com.google.common.collect.ImmutableSetMultimap",
"com.google.javascript.jscomp.CodingConventions$Proxy",
"com.google.javascript.jscomp.DefinitionsRemover$Definition",
"com.google.javascript.jscomp.DisambiguateProperties$TypeSystem",
"com.google.javascript.jscomp.CodingConvention$DelegateRelationship",
"com.google.javascript.rhino.head.Icode",
"com.google.javascript.jscomp.SyntacticScopeCreator",
"com.google.common.io.AppendableWriter",
"com.google.javascript.jscomp.CheckLevel",
"com.google.javascript.jscomp.PassFactory",
"com.google.javascript.jscomp.JsMessageVisitor$MessageLocation",
"com.google.javascript.jscomp.JSModule",
"com.google.common.collect.Ordering",
"com.google.javascript.jscomp.graph.Graph$SimpleSubGraph",
"com.google.common.collect.RegularImmutableMap",
"com.google.javascript.rhino.jstype.BooleanLiteralSet",
"com.google.javascript.jscomp.InlineVariables$IdentifyConstants",
"com.google.javascript.jscomp.Tracer$TracingStatistic",
"com.google.javascript.rhino.JSDocInfo$NamePosition",
"com.google.javascript.jscomp.FunctionInformationMap$Builder",
"com.google.javascript.rhino.head.NativeCall",
"com.google.javascript.jscomp.graph.LinkedDirectedGraph$LinkedDirectedGraphNode",
"com.google.common.base.CaseFormat$1",
"com.google.javascript.jscomp.GatherSideEffectSubexpressionsCallback$SideEffectAccumulator",
"com.google.javascript.jscomp.Normalize",
"com.google.javascript.jscomp.RhinoErrorReporter$OldRhinoErrorReporter",
"com.google.javascript.jscomp.CodingConvention$Bind",
"com.google.javascript.jscomp.NodeUtil$MayBeStringResultPredicate",
"com.google.javascript.jscomp.InlineProperties$ReplaceCandidates",
"com.google.common.collect.BiMap",
"com.google.common.collect.Iterables",
"com.google.javascript.jscomp.CodeConsumer",
"com.google.javascript.jscomp.MessageFormatter",
"com.google.javascript.rhino.head.ast.Block",
"com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations$GatherExtractionInfo",
"com.google.protobuf.Message",
"com.google.javascript.jscomp.Normalize$ScopeTicklingCallback",
"com.google.javascript.jscomp.CrossModuleMethodMotion",
"com.google.javascript.rhino.Node$PropListItem",
"com.google.javascript.jscomp.MethodCompilerPass$GetExternMethods",
"com.google.common.collect.Hashing",
"com.google.protobuf.InvalidProtocolBufferException",
"com.google.javascript.jscomp.PeepholeOptimizationsPass$PeepholeChangeHandler",
"com.google.javascript.jscomp.Tracer",
"com.google.javascript.rhino.Token",
"com.google.javascript.rhino.head.Kit",
"com.google.javascript.rhino.head.ast.TryStatement",
"com.google.javascript.jscomp.FunctionRewriter",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$1",
"com.google.javascript.rhino.head.ScriptableObject$GetterSlot",
"com.google.common.collect.AbstractMultimap",
"com.google.javascript.jscomp.SourceMap$LocationMapping",
"com.google.javascript.rhino.head.debug.DebuggableObject",
"com.google.javascript.rhino.jstype.SimpleReference",
"com.google.common.collect.ImmutableMultimap$Values",
"com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter",
"com.google.javascript.jscomp.SourceFile$Preloaded",
"com.google.javascript.jscomp.UseSite",
"com.google.common.collect.ImmutableCollection",
"com.google.javascript.rhino.jstype.ArrowType",
"com.google.javascript.jscomp.InlineCostEstimator$CompiledSizeEstimator",
"com.google.javascript.jscomp.ErrorManager",
"com.google.javascript.jscomp.TightenTypes$FunctionCallBuilder",
"com.google.javascript.jscomp.AliasStrings",
"com.google.javascript.jscomp.parsing.JsDocInfoParser",
"com.google.javascript.jscomp.ProcessClosurePrimitives$UnrecognizedRequire",
"com.google.javascript.jscomp.DefinitionsRemover$ObjectLiteralPropertyDefinition",
"com.google.javascript.jscomp.TypedScopeCreator$LocalScopeBuilder",
"com.google.javascript.jscomp.ProcessCommonJSModules$ProcessCommonJsModulesCallback",
"com.google.javascript.rhino.head.ast.DoLoop",
"com.google.javascript.jscomp.DependencyOptions",
"com.google.javascript.jscomp.graph.LinkedDirectedGraph$AnnotatedLinkedDirectedGraphNode",
"com.google.common.collect.ImmutableSortedSet",
"com.google.protobuf.UninitializedMessageException",
"com.google.javascript.jscomp.Denormalize",
"com.google.common.collect.ImmutableList$Builder",
"com.google.common.base.Predicates$InstanceOfPredicate",
"com.google.javascript.rhino.JSDocInfo$1",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$RestrictByFalseInstanceOfResultVisitor",
"com.google.javascript.rhino.jstype.EnumElementType",
"com.google.common.base.Suppliers$SupplierFunction",
"com.google.javascript.jscomp.ConcreteType$ConcreteAll",
"com.google.common.base.CharMatcher$3",
"com.google.common.collect.ImmutableSet",
"com.google.common.base.CharMatcher$2",
"com.google.common.base.CharMatcher$5",
"com.google.common.base.CharMatcher$4",
"com.google.common.base.CharMatcher$7",
"com.google.common.base.CharMatcher$6",
"com.google.common.base.CharMatcher$9",
"com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter$1",
"com.google.javascript.jscomp.ClosureCodingConvention",
"com.google.javascript.jscomp.PeepholeFoldConstants",
"com.google.common.base.CharMatcher$8",
"com.google.common.io.ByteStreams",
"com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter$2",
"com.google.javascript.jscomp.ErrorFormat$1",
"com.google.javascript.jscomp.Compiler",
"com.google.javascript.jscomp.parsing.JsDocToken",
"com.google.javascript.jscomp.JSError$1",
"com.google.common.base.CharMatcher$1",
"com.google.javascript.jscomp.CompilerOptions$AliasTransformation",
"com.google.javascript.jscomp.GlobalVarReferenceMap$GlobalVarRefCleanupPass",
"com.google.javascript.rhino.Node",
"com.google.common.collect.Sets",
"com.google.common.base.Joiner",
"com.google.javascript.jscomp.ErrorFormat$4",
"com.google.javascript.jscomp.ErrorFormat$3",
"com.google.javascript.jscomp.NodeUtil",
"com.google.javascript.jscomp.ErrorFormat$2",
"com.google.javascript.jscomp.MethodCompilerPass$SignatureStore",
"com.google.javascript.jscomp.CodingConvention$SubclassType",
"com.google.javascript.jscomp.CssRenamingMap$ByWhole",
"com.google.javascript.jscomp.InlineFunctions$FunctionState",
"com.google.javascript.jscomp.HotSwapCompilerPass",
"com.google.javascript.rhino.jstype.StaticReference",
"com.google.javascript.rhino.head.ObjToIntMap",
"com.google.javascript.jscomp.TightenTypes$CreateScope",
"com.google.common.base.Preconditions",
"com.google.javascript.jscomp.TypeInferencePass",
"com.google.common.collect.Multiset$Entry",
"com.google.javascript.jscomp.AbstractMessageFormatter$Color",
"com.google.javascript.jscomp.RemoveTryCatch",
"org.json.JSONArray",
"com.google.common.collect.ArrayListMultimap",
"com.google.javascript.jscomp.DisambiguateProperties$JSTypeSystem",
"com.google.javascript.jscomp.FunctionInjector$Reference",
"com.google.javascript.jscomp.CoalesceVariableNames",
"com.google.javascript.jscomp.TightenTypes$ConcreteJSTypePair",
"com.google.javascript.jscomp.RenameLabels$LabelInfo",
"com.google.javascript.jscomp.JsMessage$Style",
"com.google.javascript.jscomp.Compiler$IntermediateState",
"com.google.javascript.jscomp.WhitelistWarningsGuard",
"com.google.javascript.rhino.jstype.NoObjectType",
"com.google.javascript.rhino.IR",
"com.google.javascript.jscomp.PassConfig$PassConfigDelegate",
"com.google.javascript.jscomp.Scope$Arguments",
"com.google.javascript.jscomp.FunctionNames$FunctionRecord",
"com.google.javascript.rhino.head.ast.ArrayLiteral",
"com.google.javascript.jscomp.XtbMessageBundle$Handler",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$TypeRestriction",
"com.google.javascript.jscomp.NodeUtil$Visitor",
"com.google.javascript.jscomp.TypedCodeGenerator",
"com.google.javascript.jscomp.DeadAssignmentsElimination",
"com.google.javascript.jscomp.DefaultPassConfig$34$1",
"com.google.protobuf.Message$Builder",
"com.google.javascript.jscomp.PassFactory$1",
"com.google.common.collect.Lists$1",
"com.google.javascript.rhino.jstype.Visitor",
"com.google.javascript.jscomp.FlowSensitiveInlineVariables",
"com.google.javascript.rhino.head.ast.VariableDeclaration",
"com.google.javascript.rhino.JSDocInfo$Visibility",
"com.google.javascript.jscomp.BasicErrorManager$ErrorWithLevel",
"com.google.javascript.jscomp.PropertyRenamingPolicy",
"com.google.common.collect.Lists$2",
"com.google.javascript.rhino.head.ast.EmptyStatement",
"com.google.javascript.jscomp.ErrorHandler",
"com.google.javascript.jscomp.AmbiguateProperties",
"com.google.javascript.jscomp.CollapseVariableDeclarations",
"com.google.javascript.jscomp.FlowSensitiveInlineVariables$1",
"com.google.javascript.jscomp.ErrorPass",
"com.google.javascript.rhino.jstype.JSTypeRegistry$1",
"com.google.javascript.jscomp.graph.FixedPointGraphTraversal$EdgeCallback",
"com.google.javascript.jscomp.CoalesceVariableNames$1",
"com.google.javascript.rhino.head.ast.FunctionNode",
"com.google.javascript.jscomp.ChainCalls$CallSite",
"com.google.javascript.jscomp.graph.GraphvizGraph",
"com.google.javascript.jscomp.CheckGlobalNames",
"com.google.javascript.jscomp.AstChangeProxy$ChangeListener",
"com.google.javascript.jscomp.InlineSimpleMethods",
"com.google.javascript.jscomp.AstParallelizer",
"com.google.javascript.jscomp.ClosureCodeRemoval$RemovableAssignment",
"com.google.javascript.rhino.jstype.JSTypeNative",
"com.google.javascript.rhino.head.ast.Loop",
"com.google.javascript.jscomp.deps.SortedDependencies$MissingProvideException",
"com.google.javascript.rhino.head.IdFunctionCall",
"com.google.common.base.Predicates$IsEqualToPredicate",
"com.google.javascript.rhino.head.ast.CatchClause",
"com.google.javascript.jscomp.ParallelCompilerPass$Task",
"com.google.javascript.jscomp.GlobalNamespace$Tracker",
"com.google.common.collect.EmptyImmutableSet",
"com.google.javascript.jscomp.graph.LinkedDirectedGraph$LinkedDirectedGraphEdge",
"com.google.javascript.jscomp.DefaultPassConfig$12",
"com.google.javascript.jscomp.DefaultPassConfig$13",
"com.google.javascript.jscomp.CheckSideEffects$StripProtection",
"com.google.javascript.jscomp.DefaultPassConfig$10",
"com.google.javascript.jscomp.CodingConvention$SubclassRelationship",
"com.google.javascript.jscomp.DefaultPassConfig$11",
"com.google.javascript.jscomp.DefaultPassConfig$17",
"com.google.javascript.jscomp.DefaultPassConfig$16",
"com.google.javascript.jscomp.DefaultPassConfig$15",
"com.google.common.collect.Lists",
"com.google.javascript.jscomp.DefaultPassConfig$14",
"com.google.javascript.jscomp.DefaultPassConfig$19",
"com.google.protobuf.GeneratedMessage$BuilderParent",
"com.google.javascript.jscomp.LinkedFlowScope",
"com.google.javascript.jscomp.DefaultPassConfig$18",
"com.google.common.collect.AbstractMapBasedMultiset$1",
"com.google.javascript.jscomp.VarCheck",
"com.google.javascript.jscomp.LightweightMessageFormatter",
"com.google.javascript.jscomp.ConcreteType$ConcreteUnionType",
"com.google.common.collect.Iterables$3",
"com.google.common.collect.Iterables$2",
"com.google.javascript.jscomp.CallGraph$Callsite",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$ContextualRenameInverter",
"com.google.javascript.jscomp.RemoveUnusedPrototypeProperties",
"com.google.javascript.jscomp.DefaultPassConfig$20",
"com.google.javascript.jscomp.DefaultPassConfig$21",
"com.google.javascript.rhino.head.ContextFactory",
"com.google.javascript.jscomp.DefaultPassConfig$22",
"com.google.javascript.rhino.jstype.JSTypeRegistry$ResolveMode",
"com.google.javascript.jscomp.RenamePrototypes$Property",
"com.google.javascript.jscomp.DefaultPassConfig$23",
"com.google.javascript.jscomp.RenameProperties",
"com.google.javascript.jscomp.CheckMissingGetCssName",
"com.google.javascript.jscomp.DefaultPassConfig$24",
"com.google.javascript.rhino.jstype.SimpleSlot",
"com.google.common.collect.HashMultimap",
"com.google.javascript.jscomp.RemoveUnusedNames",
"com.google.javascript.jscomp.FunctionRewriter$1",
"com.google.javascript.jscomp.DefaultPassConfig$26",
"com.google.javascript.jscomp.DefaultPassConfig$25",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$Renamer",
"com.google.javascript.jscomp.DefaultPassConfig$28",
"com.google.common.collect.LinkedListMultimap",
"com.google.javascript.jscomp.SideEffectsAnalysis$DegenerateLocationAbstraction",
"com.google.javascript.jscomp.DefaultPassConfig$27",
"com.google.javascript.rhino.head.ast.ArrayComprehension",
"com.google.javascript.jscomp.graph.AdjacencyGraph",
"com.google.javascript.jscomp.DefaultPassConfig$29",
"com.google.javascript.jscomp.PrepareAst",
"com.google.javascript.jscomp.PureFunctionIdentifier$FunctionInformation",
"com.google.javascript.rhino.jstype.ObjectType$Property",
"com.google.javascript.jscomp.DataFlowAnalysis$FlowState",
"com.google.javascript.jscomp.NodeTraversal$AbstractShallowStatementCallback",
"com.google.javascript.jscomp.ParallelCompilerPass$Result",
"com.google.common.collect.RegularImmutableSet",
"com.google.javascript.jscomp.DefinitionProvider",
"com.google.javascript.jscomp.Compiler$CodeBuilder",
"com.google.javascript.rhino.head.ast.InfixExpression",
"com.google.javascript.jscomp.TightenTypes$VariableAssignAction",
"com.google.javascript.jscomp.DefaultPassConfig$34",
"com.google.javascript.jscomp.DefaultPassConfig$35",
"com.google.javascript.jscomp.SuppressDocWarningsGuard",
"com.google.javascript.jscomp.DefaultPassConfig$32",
"com.google.javascript.jscomp.DefaultPassConfig$33",
"com.google.javascript.jscomp.Tracer$Event",
"com.google.javascript.jscomp.DefaultPassConfig$30",
"com.google.javascript.jscomp.DefaultPassConfig$31",
"com.google.javascript.jscomp.SourceMap$1",
"com.google.javascript.jscomp.StrictWarningsGuard",
"com.google.javascript.rhino.head.NativeArray",
"com.google.common.io.ByteArrayDataOutput",
"com.google.javascript.jscomp.DefaultPassConfig$39",
"com.google.javascript.jscomp.DefaultPassConfig$102",
"com.google.javascript.jscomp.DefaultPassConfig$38",
"com.google.javascript.jscomp.DefaultPassConfig$101",
"com.google.javascript.jscomp.DefaultPassConfig$37",
"com.google.common.collect.Maps$9",
"com.google.javascript.jscomp.DefaultPassConfig$100",
"com.google.javascript.jscomp.DefaultPassConfig$36",
"com.google.javascript.jscomp.PhaseOptimizer$ProgressRange",
"com.google.javascript.jscomp.ReferenceCollectingCallback$ReferenceMap",
"com.google.javascript.jscomp.FieldCleanupPass",
"com.google.javascript.jscomp.Normalize$1",
"com.google.javascript.rhino.head.Node$NodeIterator",
"com.google.javascript.rhino.head.ast.ObjectProperty",
"com.google.javascript.jscomp.StatementFusion",
"com.google.common.collect.AbstractSortedSetMultimap",
"com.google.javascript.jscomp.ChainCalls",
"com.google.javascript.rhino.jstype.FunctionType$PropAccess",
"com.google.common.collect.SingletonImmutableList",
"com.google.javascript.rhino.head.ast.ExpressionStatement",
"com.google.javascript.jscomp.CodingConventions",
"com.google.javascript.jscomp.DefaultPassConfig$43",
"com.google.javascript.jscomp.graph.LinkedDirectedGraph$AnnotatedLinkedDirectedGraphEdge",
"com.google.javascript.jscomp.DefaultPassConfig$44",
"com.google.javascript.rhino.head.ast.ErrorNode",
"com.google.javascript.rhino.head.CompilerEnvirons",
"com.google.javascript.jscomp.DefaultPassConfig$45",
"com.google.javascript.jscomp.DefaultPassConfig$46",
"com.google.javascript.rhino.head.ast.Label",
"com.google.javascript.jscomp.ConcreteType$ConcreteInstanceType",
"com.google.javascript.jscomp.ControlFlowGraph$Branch",
"com.google.javascript.jscomp.ExternExportsPass$Export",
"com.google.javascript.jscomp.DefaultPassConfig$40",
"com.google.javascript.jscomp.DefaultPassConfig$41",
"com.google.javascript.jscomp.JsMessage$Builder",
"com.google.javascript.jscomp.DefaultPassConfig$42",
"com.google.javascript.jscomp.DefaultPassConfig$48",
"com.google.javascript.jscomp.DefaultPassConfig$47",
"com.google.javascript.jscomp.NameGenerator",
"com.google.javascript.jscomp.DefaultPassConfig$49",
"com.google.javascript.rhino.head.ast.XmlRef",
"com.google.javascript.jscomp.DefinitionsRemover$VarDefinition",
"com.google.common.collect.SetMultimap",
"com.google.javascript.jscomp.JsMessageVisitor$MalformedException",
"com.google.javascript.jscomp.DefaultPassConfig$53",
"com.google.javascript.jscomp.DefaultPassConfig$52",
"com.google.javascript.jscomp.DefaultPassConfig$51",
"com.google.javascript.jscomp.DefaultPassConfig$50",
"com.google.javascript.jscomp.parsing.JsDocTokenStream",
"com.google.javascript.jscomp.DefaultPassConfig$57",
"com.google.javascript.jscomp.DefaultPassConfig$56",
"com.google.javascript.jscomp.DefaultPassConfig$55",
"com.google.javascript.jscomp.DefaultPassConfig$54",
"com.google.javascript.rhino.head.ast.Scope",
"com.google.javascript.jscomp.ObjectPropertyStringPostprocess$Callback",
"com.google.common.collect.Multimap",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$InlineRenamer",
"com.google.common.primitives.Ints",
"com.google.javascript.rhino.jstype.FunctionBuilder",
"com.google.javascript.jscomp.parsing.Config$LanguageMode",
"com.google.protobuf.ExtensionRegistry",
"com.google.javascript.jscomp.DefaultPassConfig$58",
"com.google.javascript.jscomp.DefaultPassConfig$59",
"com.google.javascript.jscomp.InlineVariables$IdentifyLocals",
"com.google.javascript.jscomp.PassConfig",
"com.google.javascript.rhino.head.ast.Symbol",
"com.google.common.collect.ByFunctionOrdering",
"com.google.javascript.jscomp.DefaultPassConfig$62",
"com.google.common.base.Platform$1",
"com.google.javascript.jscomp.DefaultPassConfig$61",
"com.google.javascript.jscomp.DefaultPassConfig$64",
"com.google.common.collect.AbstractMultimap$AsMap",
"com.google.javascript.jscomp.DefaultPassConfig$63",
"com.google.javascript.jscomp.DefaultPassConfig$66",
"com.google.javascript.jscomp.DefaultPassConfig$65",
"com.google.javascript.jscomp.DefaultPassConfig$68",
"com.google.javascript.jscomp.DefaultPassConfig$67",
"com.google.common.collect.FluentIterable",
"com.google.javascript.jscomp.InvocationsCallback",
"com.google.common.collect.ImmutableList",
"com.google.javascript.jscomp.DefaultPassConfig$60",
"com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations$PrototypeMemberDeclaration",
"com.google.javascript.jscomp.InlineFunctions",
"com.google.javascript.rhino.head.ast.DestructuringForm",
"com.google.javascript.jscomp.SourceFile$OnDisk",
"com.google.javascript.jscomp.SimpleDefinitionFinder",
"com.google.javascript.rhino.head.ScriptRuntime$DefaultMessageProvider",
"com.google.javascript.jscomp.SideEffectsAnalysis$VariableUseDeclarationMap",
"com.google.javascript.jscomp.SyntacticScopeCreator$DefaultRedeclarationHandler",
"com.google.javascript.jscomp.TransformAMDToCJSModule",
"com.google.javascript.jscomp.ConcreteType$TypeFilter",
"com.google.javascript.jscomp.DefaultPassConfig$69",
"com.google.common.collect.ImmutableMap$Builder",
"com.google.javascript.jscomp.LiveVariablesAnalysis",
"com.google.javascript.jscomp.DefinitionSite",
"com.google.common.collect.Multisets$EntrySet",
"com.google.javascript.rhino.jstype.ValueType",
"com.google.javascript.jscomp.CollapseVariableDeclarations$Collapse",
"com.google.common.collect.HashBasedTable$Factory",
"com.google.javascript.jscomp.NameAnalyzer$RefNode",
"com.google.javascript.jscomp.DefaultPassConfig$79",
"com.google.javascript.jscomp.DefaultPassConfig$78",
"com.google.javascript.jscomp.DefaultPassConfig$77",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$1",
"com.google.javascript.jscomp.InlineVariables$InliningBehavior",
"com.google.javascript.jscomp.DefaultPassConfig$76",
"com.google.javascript.jscomp.DefaultPassConfig$75",
"com.google.common.base.Predicates$AssignableFromPredicate",
"com.google.javascript.jscomp.DefaultPassConfig$74",
"com.google.javascript.jscomp.DefaultPassConfig$73",
"com.google.common.collect.SortedIterable",
"com.google.javascript.jscomp.DefaultPassConfig$72",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$6",
"com.google.common.collect.Maps$KeySet",
"com.google.javascript.jscomp.DefaultPassConfig$71",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$7",
"com.google.javascript.jscomp.DefaultPassConfig$70",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$8",
"com.google.javascript.rhino.head.ast.LabeledStatement",
"com.google.javascript.jscomp.SimpleDefinitionFinder$DefinitionGatheringCallback",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$9",
"com.google.javascript.jscomp.CombinedCompilerPass",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$2",
"com.google.javascript.jscomp.PerformanceTracker$1",
"com.google.javascript.jscomp.CheckRequiresForConstructors",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$3",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$4",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$5",
"com.google.javascript.rhino.head.ast.XmlString",
"com.google.common.collect.Maps",
"com.google.common.collect.TransformedImmutableSet",
"com.google.common.collect.ImmutableEnumSet",
"com.google.javascript.rhino.head.ast.LetNode",
"com.google.javascript.rhino.head.EcmaError",
"com.google.javascript.jscomp.BasicErrorManager$LeveledJSErrorComparator",
"com.google.javascript.jscomp.CreateSyntheticBlocks$Marker",
"com.google.javascript.jscomp.graph.LatticeElement",
"com.google.javascript.jscomp.DefaultPassConfig$88",
"com.google.javascript.rhino.JSDocInfo$TrimmedStringPosition",
"com.google.javascript.jscomp.DefaultPassConfig$87",
"com.google.javascript.rhino.head.TokenStream",
"com.google.javascript.jscomp.DefaultPassConfig$89",
"com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher",
"com.google.javascript.jscomp.XtbMessageBundle",
"com.google.javascript.jscomp.DefaultPassConfig$84",
"com.google.javascript.rhino.head.ast.ConditionalExpression",
"com.google.javascript.jscomp.DefaultPassConfig$83",
"com.google.javascript.jscomp.DefaultPassConfig$86",
"com.google.javascript.jscomp.DefaultPassConfig$85",
"com.google.javascript.jscomp.DefaultPassConfig$80",
"com.google.javascript.jscomp.CompilerOptions$Reach",
"com.google.javascript.jscomp.DefaultPassConfig$82",
"com.google.javascript.jscomp.DefinitionsRemover$ExternalNameOnlyDefinition",
"com.google.javascript.jscomp.PeepholeRemoveDeadCode",
"com.google.javascript.jscomp.DefaultPassConfig$81",
"com.google.javascript.jscomp.CodePrinter",
"com.google.javascript.jscomp.RenameProperties$1",
"com.google.common.base.Ascii",
"com.google.javascript.jscomp.AnalyzePrototypeProperties$Symbol",
"com.google.javascript.rhino.head.ast.XmlMemberGet",
"com.google.common.base.Joiner$2",
"com.google.javascript.rhino.head.ast.UnaryExpression",
"com.google.common.base.Joiner$1",
"com.google.javascript.rhino.jstype.JSTypeRegistry",
"com.google.javascript.jscomp.CodeGenerator$Context",
"com.google.javascript.jscomp.CodeGenerator",
"com.google.javascript.jscomp.JSModuleGraph$InverseDepthComparator",
"com.google.protobuf.ExtensionRegistryLite",
"com.google.javascript.jscomp.TightenTypes",
"com.google.javascript.jscomp.IgnoreCajaProperties$Traversal",
"com.google.javascript.rhino.Node$StringNode",
"com.google.javascript.rhino.head.ast.ForLoop",
"com.google.javascript.jscomp.InlineVariables$1",
"com.google.javascript.rhino.head.ConstProperties",
"com.google.javascript.jscomp.MessageBundle",
"com.google.javascript.jscomp.CheckUnreachableCode",
"com.google.common.collect.ReverseNaturalOrdering",
"com.google.javascript.jscomp.SourceMap$DetailLevel$1",
"com.google.javascript.jscomp.SourceMap$DetailLevel$2",
"com.google.common.base.Joiner$MapJoiner",
"com.google.javascript.jscomp.DefaultPassConfig$90",
"com.google.javascript.jscomp.InferJSDocInfo",
"com.google.javascript.jscomp.TightenTypes$PropertyAssignAction",
"com.google.javascript.jscomp.DefaultPassConfig$91",
"com.google.javascript.jscomp.DefaultPassConfig$92",
"com.google.javascript.rhino.jstype.TemplateType",
"com.google.javascript.jscomp.DefaultPassConfig$93",
"com.google.javascript.rhino.head.ast.Comment",
"com.google.javascript.jscomp.DefaultPassConfig$94",
"com.google.common.collect.AbstractMultiset",
"com.google.javascript.jscomp.DefaultPassConfig$95",
"com.google.javascript.jscomp.PassConfig$State",
"com.google.common.collect.Lists$RandomAccessListWrapper",
"com.google.javascript.jscomp.DefaultPassConfig$96",
"com.google.javascript.jscomp.CodingConventions$DefaultCodingConvention",
"com.google.common.base.Supplier",
"com.google.javascript.jscomp.NameReferenceGraphConstruction$NameUse",
"com.google.javascript.jscomp.DefaultPassConfig$97",
"com.google.javascript.jscomp.DefaultPassConfig$98",
"com.google.javascript.jscomp.DefaultPassConfig$99",
"com.google.javascript.rhino.head.NativeObject",
"com.google.common.base.CharMatcher$LookupTable",
"com.google.javascript.jscomp.InlineVariables$AliasCandidate",
"com.google.javascript.rhino.head.ast.WhileLoop",
"com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter$RestrictByFalseTypeOfResultVisitor",
"com.google.javascript.rhino.head.Node$PropListItem",
"com.google.common.collect.LinkedListMultimap$DistinctKeyIterator",
"com.google.javascript.jscomp.NameReferenceGraphConstruction",
"com.google.javascript.jscomp.PeepholeSubstituteAlternateSyntax$FoldArrayAction",
"com.google.common.collect.LinkedListMultimap$ValueForKeyIterator",
"com.google.javascript.rhino.JSDocInfo$LazilyInitializedDocumentation",
"com.google.javascript.jscomp.Denormalize$StripConstantAnnotations",
"com.google.javascript.jscomp.ConcreteType$ConcreteNoneType",
"com.google.javascript.rhino.jstype.StaticScope",
"com.google.javascript.jscomp.FunctionTypeBuilder$1",
"com.google.javascript.jscomp.graph.Annotatable",
"com.google.javascript.jscomp.InlineProperties$GatherCandidates",
"com.google.javascript.jscomp.DisambiguateProperties$1",
"com.google.javascript.jscomp.InlineFunctions$Function",
"com.google.javascript.jscomp.PerformanceTracker$CodeSizeEstimatePrinter",
"com.google.javascript.rhino.jstype.JSType$2",
"com.google.common.base.Suppliers",
"com.google.javascript.rhino.jstype.JSType$1",
"com.google.javascript.jscomp.SideEffectsAnalysis$AbstractMotionEnvironment",
"com.google.javascript.jscomp.MarkNoSideEffectCalls",
"com.google.javascript.jscomp.NodeUtil$MatchNotFunction",
"com.google.javascript.jscomp.NodeTraversal$AbstractScopedCallback",
"com.google.javascript.jscomp.AbstractCompiler",
"org.json.JSONException",
"com.google.javascript.jscomp.CompilerOptions$TracerMode",
"com.google.javascript.jscomp.PrepareAst$PrepareAnnotations",
"com.google.javascript.jscomp.GlobalNamespace$1",
"com.google.javascript.jscomp.FunctionTypeBuilder$AstFunctionContents",
"com.google.javascript.jscomp.SourceMap$DetailLevel",
"com.google.javascript.jscomp.graph.UnionFind",
"com.google.javascript.jscomp.FunctionInformationMap",
"com.google.javascript.rhino.head.ast.ArrayComprehensionLoop",
"com.google.javascript.rhino.head.ScriptRuntime$1",
"com.google.javascript.jscomp.GlobalVarReferenceMap",
"com.google.javascript.jscomp.FunctionRewriter$SetterReducer",
"com.google.javascript.jscomp.GlobalNamespace$Ref$Type",
"com.google.javascript.jscomp.DefinitionsRemover$UnknownDefinition",
"com.google.protobuf.AbstractMessageLite$Builder",
"com.google.javascript.rhino.Node$NodeMismatch",
"com.google.javascript.rhino.head.NativeContinuation",
"com.google.common.base.CharMatcher$Or",
"com.google.javascript.rhino.head.ast.IdeErrorReporter",
"com.google.javascript.jscomp.SourceExcerptProvider$ExcerptFormatter",
"com.google.javascript.jscomp.RenameLabels$1",
"com.google.common.collect.LexicographicalOrdering",
"com.google.common.collect.RegularImmutableMap$1",
"com.google.javascript.jscomp.NodeTraversal$AbstractShallowCallback",
"com.google.javascript.jscomp.SanityCheck",
"com.google.common.collect.AbstractMultimap$KeySet",
"com.google.javascript.jscomp.MethodCompilerPass",
"com.google.common.io.CharStreams",
"com.google.javascript.jscomp.ChainCalls$GatherFunctions",
"com.google.javascript.jscomp.PureFunctionIdentifier$Driver",
"com.google.javascript.jscomp.StripCode",
"com.google.javascript.jscomp.AliasExternals",
"com.google.common.base.Function",
"com.google.javascript.rhino.jstype.NamedType",
"com.google.javascript.jscomp.DevirtualizePrototypeMethods",
"com.google.javascript.jscomp.CssRenamingMap",
"com.google.javascript.jscomp.JsMessage$IdGenerator",
"com.google.javascript.jscomp.PeepholeFoldWithTypes",
"com.google.javascript.jscomp.PeepholeSubstituteAlternateSyntax",
"com.google.javascript.jscomp.RemoveUnusedVars$Assign",
"com.google.common.collect.AbstractMapBasedMultiset",
"com.google.javascript.rhino.head.ContextFactory$Listener",
"com.google.javascript.rhino.head.ast.XmlPropRef",
"com.google.javascript.jscomp.RenameLabels",
"com.google.javascript.rhino.jstype.PrototypeObjectType",
"com.google.javascript.jscomp.DisambiguateProperties$AbstractScopingCallback",
"com.google.javascript.rhino.Node$IntPropListItem",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$RestrictByTrueInstanceOfResultVisitor",
"com.google.javascript.jscomp.TightenTypes$ConcreteSlot",
"com.google.javascript.rhino.Node$ObjectPropListItem",
"com.google.common.base.Predicates$CompositionPredicate",
"com.google.common.collect.AbstractMultimap$RandomAccessWrappedList",
"com.google.javascript.jscomp.ConcreteType$5",
"com.google.javascript.rhino.InputId",
"com.google.javascript.jscomp.ConcreteType$4",
"com.google.javascript.jscomp.ConcreteType$7",
"com.google.javascript.jscomp.ConcreteType$6",
"com.google.javascript.jscomp.ConcreteType$1",
"com.google.javascript.jscomp.ConcreteType$3",
"com.google.javascript.jscomp.FunctionInformationMap$Entry",
"com.google.javascript.jscomp.RescopeGlobalSymbols",
"com.google.javascript.jscomp.ConcreteType$2",
"com.google.javascript.jscomp.CodePrinter$Builder",
"com.google.javascript.jscomp.VariableRenamingPolicy",
"com.google.javascript.jscomp.StrictModeCheck",
"com.google.common.base.Predicates$OrPredicate",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$1",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$2",
"com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$3",
"com.google.javascript.rhino.head.ast.IfStatement",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$4",
"com.google.javascript.jscomp.graph.Graph",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter$5",
"com.google.javascript.jscomp.GenerateExports",
"com.google.javascript.jscomp.AnalyzeNameReferences",
"com.google.common.collect.ImmutableMapKeySet",
"com.google.javascript.rhino.jstype.UnionTypeBuilder",
"com.google.javascript.jscomp.DiagnosticGroups",
"com.google.javascript.jscomp.SideEffectsAnalysis$IntraproceduralMotionEnvironment",
"com.google.common.base.Predicates$InPredicate",
"com.google.common.hash.PrimitiveSink",
"com.google.javascript.jscomp.deps.JsFileLineParser",
"com.google.common.collect.RegularImmutableMap$EntrySet",
"com.google.javascript.rhino.SimpleErrorReporter",
"com.google.common.collect.Sets$3",
"com.google.common.collect.Sets$2",
"com.google.common.collect.Sets$1",
"com.google.javascript.jscomp.graph.GraphvizGraph$GraphvizNode",
"com.google.javascript.jscomp.DefinitionsRemover$AssignmentDefinition",
"com.google.javascript.jscomp.DefinitionsRemover$NamedFunctionDefinition",
"com.google.javascript.rhino.head.ast.NodeVisitor",
"com.google.javascript.rhino.head.ast.Name",
"com.google.javascript.jscomp.BasicErrorManager",
"com.google.javascript.jscomp.ReplaceStrings$Result",
"com.google.common.collect.NaturalOrdering",
"com.google.common.collect.AbstractMultimap$WrappedCollection",
"com.google.javascript.jscomp.CleanupPasses$MemoizedScopeCleanupPass",
"com.google.javascript.jscomp.FunctionInformationMap$ModuleOrBuilder",
"com.google.common.collect.ImmutableMultimap$Builder",
"com.google.javascript.rhino.head.TopLevel",
"com.google.javascript.jscomp.CodingConvention",
"com.google.common.collect.Iterators$1",
"com.google.javascript.rhino.head.Token$CommentType",
"com.google.common.collect.Iterators$4",
"com.google.common.collect.Iterators$3",
"com.google.common.collect.Iterators$2",
"com.google.javascript.jscomp.SourceExcerptProvider$1",
"com.google.javascript.jscomp.graph.DiGraph$DiGraphEdge",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$10",
"com.google.common.collect.Iterators$8",
"com.google.javascript.jscomp.graph.Graph$GraphEdge",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$11",
"com.google.javascript.rhino.head.ast.AstNode",
"com.google.common.collect.Iterators$7",
"com.google.common.collect.Iterators$6",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$12",
"com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter$13",
"com.google.javascript.jscomp.RenameVars",
"com.google.javascript.jscomp.GlobalNamespace",
"com.google.javascript.jscomp.SourceMap$Format$3",
"com.google.javascript.jscomp.SourceMap$Format$4",
"com.google.javascript.rhino.head.xml.XMLObject",
"com.google.common.collect.SingletonImmutableMap",
"com.google.javascript.jscomp.SourceMap$Format$1",
"com.google.javascript.jscomp.SourceMap$Format$2",
"com.google.javascript.jscomp.Normalize$DuplicateDeclarationHandler",
"com.google.javascript.jscomp.NameAnalyzer$RefType",
"com.google.javascript.jscomp.InlineSimpleMethods$InlineTrivialAccessors",
"com.google.javascript.rhino.head.ContextFactory$GlobalSetter",
"com.google.javascript.jscomp.TypedScopeCreator$GlobalScopeBuilder",
"com.google.javascript.jscomp.ParallelCompilerPass",
"com.google.javascript.jscomp.JsMessage$1",
"com.google.common.collect.CompoundOrdering",
"com.google.common.collect.ImmutableMultimap$1",
"com.google.javascript.rhino.jstype.UnresolvedTypeExpression",
"com.google.javascript.jscomp.graph.Annotation",
"com.google.protobuf.UnknownFieldSet",
"com.google.javascript.jscomp.PeepholeOptimizationsPass$StateStack",
"com.google.common.io.ByteArrayDataInput",
"com.google.javascript.jscomp.Compiler$11",
"com.google.javascript.jscomp.Compiler$10",
"com.google.common.base.Predicates$ObjectPredicate",
"com.google.javascript.jscomp.LinkedFlowScope$LinkedFlowSlot",
"com.google.javascript.rhino.JSDocInfo$TypePosition",
"com.google.javascript.jscomp.SourceFile$Generated",
"com.google.javascript.jscomp.CreateSyntheticBlocks",
"com.google.common.collect.Sets$ImprovedAbstractSet",
"com.google.javascript.jscomp.deps.SortedDependencies$CircularDependencyException",
"com.google.javascript.jscomp.TypeCheck",
"com.google.javascript.jscomp.UnreachableCodeElimination",
"com.google.javascript.jscomp.InlineFunctions$FunctionVar",
"com.google.javascript.jscomp.TightenTypes$Assignment",
"com.google.javascript.jscomp.CssRenamingMap$Style",
"com.google.common.collect.Table",
"com.google.common.collect.EmptyImmutableList",
"com.google.protobuf.GeneratedMessage$ExtensionDescriptorRetriever",
"com.google.javascript.jscomp.TightenTypes$NativeCallFunctionCall",
"com.google.javascript.jscomp.OptimizeCalls$CallGraphCompilerPass",
"com.google.common.collect.ImmutableAsList",
"com.google.javascript.jscomp.ReorderConstantExpression",
"com.google.common.io.ByteProcessor",
"com.google.javascript.jscomp.PhaseOptimizer$1",
"com.google.javascript.rhino.head.Callable",
"com.google.javascript.jscomp.DefinitionsRemover$FunctionExpressionDefinition",
"com.google.javascript.jscomp.SyntacticScopeCreator$RedeclarationHandler",
"com.google.protobuf.AbstractMessage$Builder",
"com.google.javascript.jscomp.NameAnalyzer$JsName",
"com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter$RestrictByTrueTypeOfResultVisitor",
"com.google.javascript.jscomp.VariableMap",
"com.google.javascript.jscomp.RecordFunctionInformation",
"com.google.common.collect.ImmutableMultimap$Keys",
"com.google.javascript.jscomp.JsMessage",
"com.google.common.collect.EmptyImmutableSetMultimap",
"com.google.javascript.jscomp.ExternExportsPass",
"com.google.common.io.Files$1",
"com.google.common.collect.ImmutableSortedSetFauxverideShim",
"com.google.javascript.jscomp.GoogleJsMessageIdGenerator$FP",
"com.google.javascript.rhino.head.ast.GeneratorExpression",
"com.google.javascript.rhino.Node$SideEffectFlags",
"com.google.javascript.jscomp.ObjectPropertyStringPreprocess",
"com.google.javascript.jscomp.DefaultPassConfig$HotSwapPassFactory",
"com.google.javascript.jscomp.CodeChangeHandler$ForbiddenChange",
"com.google.javascript.jscomp.ProcessDefines",
"com.google.javascript.jscomp.InlineProperties",
"com.google.javascript.jscomp.parsing.ParserRunner",
"com.google.javascript.jscomp.RenameLabels$LabelNamespace",
"com.google.javascript.jscomp.TightenTypes$ExternFunctionCall",
"com.google.javascript.jscomp.CodePrinter$CompactCodePrinter",
"com.google.javascript.jscomp.ReferenceCollectingCallback",
"com.google.javascript.jscomp.SpecializationAwareCompilerPass",
"com.google.javascript.jscomp.graph.UndiGraph",
"com.google.javascript.rhino.jstype.NullType",
"com.google.javascript.rhino.head.ast.ThrowStatement",
"com.google.javascript.jscomp.RhinoErrorReporter$NewRhinoErrorReporter",
"com.google.javascript.jscomp.SourceFile$Builder",
"com.google.javascript.jscomp.CheckGlobalThis",
"com.google.javascript.rhino.head.ast.ContinueStatement",
"com.google.javascript.jscomp.NodeTraversal$ScopedCallback",
"com.google.javascript.jscomp.RemoveUnusedVars$Continuation",
"com.google.javascript.jscomp.RenameVars$Assignment",
"com.google.javascript.jscomp.RemoveUnusedVars$CallSiteOptimizer",
"com.google.javascript.jscomp.SpecializeModule$SpecializationState",
"com.google.javascript.rhino.head.ast.WithStatement",
"com.google.javascript.jscomp.SymbolTable",
"com.google.javascript.rhino.head.Context$ClassShutterSetter",
"com.google.javascript.jscomp.SymbolTable$3",
"com.google.javascript.jscomp.ReplaceMessages",
"com.google.javascript.jscomp.AmbiguateProperties$Property",
"com.google.javascript.jscomp.SymbolTable$4",
"com.google.javascript.jscomp.Normalize$VerifyConstants",
"com.google.javascript.jscomp.JSModuleGraph$ModuleDependenceException",
"com.google.javascript.jscomp.RenameProperties$PropertyAffinity",
"com.google.javascript.jscomp.WarningsGuard",
"com.google.javascript.jscomp.LinkedFlowScope$FlatFlowScopeCache",
"com.google.javascript.jscomp.SymbolTable$1",
"com.google.javascript.jscomp.SymbolTable$2",
"com.google.javascript.jscomp.GoogleJsMessageIdGenerator$MessageId",
"com.google.common.base.Splitter$Strategy",
"com.google.javascript.jscomp.GatherRawExports",
"com.google.common.io.InputSupplier",
"com.google.common.collect.LinkedHashMultimap$ValueSetLink",
"com.google.protobuf.AbstractMessageLite",
"com.google.javascript.jscomp.LineNumberCheck",
"com.google.javascript.jscomp.AnonymousFunctionNamingCallback$FunctionNamer",
"com.google.javascript.jscomp.MethodCompilerPass$1",
"com.google.javascript.jscomp.SimpleFunctionAliasAnalysis",
"com.google.javascript.jscomp.ProcessCommonJSModules",
"com.google.common.collect.SingletonImmutableSet",
"com.google.javascript.jscomp.AbstractPeepholeOptimization",
"com.google.javascript.jscomp.SideEffectsAnalysis$CrossModuleMotionEnvironment",
"com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations$Pattern",
"com.google.javascript.jscomp.CodeChangeHandler",
"com.google.javascript.jscomp.GlobalNamespace$BuildGlobalNamespace",
"com.google.javascript.rhino.head.ast.NumberLiteral",
"com.google.javascript.rhino.head.jdk15.VMBridge_jdk15",
"com.google.javascript.rhino.jstype.IndexedType",
"com.google.javascript.jscomp.AnalyzePrototypeProperties",
"com.google.common.base.Predicates$AndPredicate",
"com.google.protobuf.MessageLiteOrBuilder",
"com.google.javascript.jscomp.EmptyMessageBundle",
"com.google.javascript.jscomp.ConcreteType$ConcreteFunctionType",
"com.google.javascript.jscomp.JSError",
"com.google.common.base.Splitter$2$1",
"com.google.common.collect.Iterators$MergingIterator",
"com.google.javascript.jscomp.NameAnonymousFunctionsMapped",
"com.google.javascript.jscomp.IgnoreCajaProperties",
"com.google.common.base.Predicates",
"com.google.javascript.rhino.ErrorReporter",
"com.google.javascript.jscomp.CompilerOptions$NullAliasTransformationHandler",
"com.google.javascript.jscomp.DefaultPassConfig$GlobalTypeResolver",
"com.google.javascript.jscomp.CompilerOptions$DevMode",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$ContextualRenamer",
"com.google.javascript.rhino.head.jdk13.VMBridge_jdk13",
"com.google.javascript.jscomp.ReferenceCollectingCallback$BasicBlock",
"com.google.javascript.jscomp.LoggerErrorManager$1",
"com.google.javascript.jscomp.Scope$1",
"com.google.javascript.jscomp.SourceExcerptProvider$SourceExcerpt",
"com.google.javascript.jscomp.DisambiguateProperties$ConcreteTypeSystem",
"org.mozilla.classfile.ClassFileWriter$ClassFileFormatException",
"com.google.javascript.rhino.head.ast.ReturnStatement",
"com.google.javascript.jscomp.graph.GraphNode",
"com.google.common.collect.Sets$SetView",
"com.google.javascript.jscomp.PureFunctionIdentifier",
"com.google.common.base.Splitter",
"com.google.javascript.jscomp.DiagnosticGroup",
"com.google.common.base.MediumCharMatcher",
"com.google.javascript.rhino.head.ast.ForInLoop",
"com.google.javascript.jscomp.PeepholeSubstituteAlternateSyntax$1",
"com.google.common.collect.ForwardingMultimap",
"com.google.javascript.jscomp.ProcessClosurePrimitives",
"com.google.javascript.jscomp.InlineFunctions$Reference",
"com.google.javascript.rhino.head.Evaluator",
"com.google.protobuf.MessageOrBuilder",
"com.google.javascript.jscomp.JSSourceFile",
"com.google.javascript.jscomp.SideEffectsAnalysis$LocationAbstraction",
"com.google.javascript.jscomp.DefaultPassConfig",
"com.google.javascript.jscomp.CheckSideEffects",
"com.google.javascript.jscomp.ProcessCommonJSModules$1",
"com.google.javascript.jscomp.RenameLabels$DefaultNameSupplier",
"com.google.javascript.rhino.head.ast.NewExpression",
"com.google.common.collect.Iterators$12",
"com.google.javascript.rhino.head.FunctionObject",
"com.google.javascript.jscomp.FunctionRewriter$EmptyFunctionReducer",
"com.google.javascript.jscomp.parsing.JsDocInfoParser$ErrorReporterParser",
"com.google.javascript.jscomp.DataFlowAnalysis$MaxIterationsExceededException",
"com.google.javascript.jscomp.WarningsGuard$Priority",
"com.google.javascript.jscomp.SyntacticScopeCreator$1",
"com.google.javascript.rhino.jstype.SimpleSourceFile",
"com.google.javascript.jscomp.deps.JsFileLineParser$ParseException",
"com.google.javascript.jscomp.ComposeWarningsGuard",
"com.google.javascript.jscomp.CollapseProperties",
"com.google.javascript.rhino.head.ast.VariableInitializer",
"com.google.javascript.jscomp.MaybeReachingVariableUse",
"com.google.javascript.jscomp.ConstCheck",
"com.google.javascript.jscomp.RenameLabels$ProcessLabels",
"com.google.javascript.jscomp.GlobalNamespace$Name$Type",
"com.google.common.base.Predicate",
"com.google.common.collect.Iterators$13",
"com.google.common.collect.Iterators$14",
"com.google.common.collect.Iterators$15",
"com.google.javascript.rhino.head.Script",
"com.google.javascript.jscomp.TightenTypes$FunctionCall",
"com.google.javascript.jscomp.SourceAst",
"com.google.common.collect.ExplicitOrdering",
"com.google.javascript.jscomp.NameReferenceGraph$Name",
"com.google.javascript.jscomp.InlineFunctions$CallVisitorCallback",
"com.google.javascript.jscomp.SideEffectsAnalysis$4",
"com.google.javascript.jscomp.AmbiguateProperties$JSTypeBitSet",
"com.google.javascript.jscomp.Compiler$7",
"com.google.common.io.Files",
"com.google.javascript.jscomp.Compiler$6",
"com.google.javascript.jscomp.Compiler$5",
"com.google.javascript.jscomp.AnalyzePrototypeProperties$ProcessProperties",
"com.google.javascript.jscomp.Compiler$4",
"com.google.javascript.jscomp.Compiler$3",
"com.google.common.collect.LinkedListMultimap$MultisetView",
"com.google.javascript.jscomp.ParallelCompilerPass$1",
"com.google.common.collect.AbstractMapEntry",
"com.google.javascript.jscomp.Compiler$1",
"com.google.common.collect.Lists$StringAsImmutableList",
"com.google.javascript.rhino.jstype.StringType",
"com.google.javascript.jscomp.SpecializeModule$OriginalFunctionInformation",
"com.google.javascript.jscomp.MemoizedScopeCreator",
"com.google.javascript.jscomp.Compiler$8",
"com.google.javascript.jscomp.Compiler$9",
"com.google.common.collect.SortedMapDifference",
"com.google.javascript.rhino.jstype.StaticSlot",
"com.google.javascript.jscomp.ReplaceIdGenerators$NameSupplier",
"com.google.javascript.jscomp.ConcreteType$Factory",
"com.google.common.base.SmallCharMatcher",
"com.google.common.collect.Collections2",
"com.google.javascript.jscomp.Tracer$ThreadTrace",
"com.google.javascript.jscomp.CheckDebuggerStatement",
"com.google.protobuf.GeneratedMessage",
"com.google.javascript.jscomp.SourceMap",
"com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter$RestrictByTypeOfResultVisitor",
"com.google.javascript.jscomp.CrossModuleCodeMotion$NamedInfo",
"com.google.javascript.jscomp.PrintStreamErrorManager",
"com.google.javascript.jscomp.AbstractCompiler$LifeCycleStage",
"com.google.javascript.jscomp.CompilerOptions$TweakProcessing",
"com.google.javascript.jscomp.NameReferenceGraph",
"com.google.common.collect.ImmutableMap",
"com.google.javascript.jscomp.FunctionInformationMap$EntryOrBuilder",
"com.google.javascript.rhino.head.JavaScriptException",
"com.google.javascript.jscomp.InstrumentFunctions",
"com.google.javascript.jscomp.Normalize$NormalizeStatements",
"com.google.javascript.jscomp.DeadAssignmentsElimination$VariableLiveness",
"com.google.javascript.jscomp.AliasKeywords",
"com.google.javascript.rhino.jstype.StaticSourceFile",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter",
"com.google.javascript.jscomp.graph.DiGraph",
"com.google.common.collect.UsingToStringOrdering",
"com.google.javascript.jscomp.ReplaceCssNames",
"com.google.javascript.jscomp.InlineFunctions$FunctionExpression",
"com.google.javascript.jscomp.MoveFunctionDeclarations",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$BoilerplateRenamer",
"com.google.javascript.rhino.head.ErrorReporter",
"com.google.javascript.jscomp.CodingConventions$1",
"com.google.common.collect.NullsLastOrdering",
"com.google.javascript.jscomp.CleanupPasses",
"com.google.common.collect.RegularImmutableMap$NonTerminalEntry",
"com.google.javascript.jscomp.InlineFunctions$NamedFunction",
"com.google.javascript.rhino.Node$AncestorIterable",
"com.google.javascript.rhino.head.ast.SwitchCase",
"com.google.common.collect.ForwardingSortedSetMultimap",
"com.google.javascript.jscomp.AnonymousFunctionNamingPolicy",
"com.google.javascript.jscomp.graph.Graph$GraphAnnotationState",
"com.google.common.collect.ImmutableMultimap",
"com.google.common.base.CharMatcher",
"com.google.common.collect.RegularImmutableMap$LinkedEntry",
"com.google.javascript.jscomp.XtbMessageBundle$SecureEntityResolver",
"com.google.common.collect.AbstractMultimap$SortedAsMap",
"com.google.javascript.jscomp.SourceFile$Generator",
"com.google.javascript.jscomp.DisambiguateProperties$Property",
"com.google.javascript.rhino.head.ast.Jump",
"com.google.javascript.jscomp.NodeTraversal",
"com.google.javascript.rhino.jstype.FunctionType$Kind",
"com.google.javascript.jscomp.GlobalNamespace$Name",
"com.google.javascript.rhino.Node$AbstractPropListItem",
"com.google.javascript.jscomp.VerboseMessageFormatter",
"com.google.javascript.jscomp.Tracer$AtomicTracerStatMap",
"com.google.javascript.jscomp.ScopeCreator",
"com.google.javascript.jscomp.deps.SimpleDependencyInfo",
"com.google.common.collect.ImmutableList$1",
"com.google.javascript.jscomp.ProcessClosurePrimitives$ProvidedName",
"com.google.common.collect.AbstractMultimap$WrappedList",
"com.google.javascript.jscomp.DiagnosticGroupWarningsGuard",
"com.google.javascript.rhino.head.ImporterTopLevel",
"com.google.javascript.jscomp.CheckProvides",
"com.google.javascript.rhino.head.ast.Assignment",
"com.google.javascript.jscomp.NameAnonymousFunctions",
"com.google.javascript.rhino.jstype.FunctionType",
"com.google.javascript.rhino.Node$FileLevelJsDocBuilder",
"com.google.javascript.rhino.head.ast.XmlLiteral",
"com.google.javascript.jscomp.Region",
"com.google.common.collect.TreeMultimap",
"com.google.common.collect.ForwardingObject",
"com.google.common.collect.Lists$RandomAccessPartition",
"com.google.protobuf.MessageLite",
"com.google.protobuf.GeneratedMessage$Builder",
"com.google.common.base.Predicates$NotPredicate",
"com.google.javascript.jscomp.AstValidator",
"com.google.javascript.jscomp.ReplaceStrings$Location"
);
}
private static void resetClasses() {
org.evosuite.runtime.reset.ClassResetter.getInstance().setClassLoader(ProcessCommonJSModulesEvoSuite_branch_Test_scaffolding.class.getClassLoader());
org.evosuite.runtime.ClassStateSupport.resetClasses(
"com.google.javascript.jscomp.ProcessCommonJSModules",
"com.google.javascript.jscomp.CheckLevel",
"com.google.javascript.jscomp.JsMessage$Style",
"com.google.javascript.jscomp.ErrorFormat",
"com.google.javascript.rhino.jstype.JSTypeNative",
"com.google.javascript.jscomp.GlobalNamespace$Ref$Type",
"com.google.javascript.jscomp.SourceExcerptProvider$SourceExcerpt",
"com.google.javascript.jscomp.OptimizeArgumentsArray",
"com.google.common.collect.ImmutableCollection$EmptyImmutableCollection",
"com.google.common.collect.ImmutableCollection",
"com.google.common.collect.ImmutableSet",
"com.google.common.collect.ObjectArrays",
"com.google.javascript.jscomp.AbstractMessageFormatter",
"com.google.javascript.jscomp.LightweightMessageFormatter",
"com.google.javascript.jscomp.BasicErrorManager$LeveledJSErrorComparator",
"com.google.javascript.jscomp.DiagnosticType",
"com.google.javascript.jscomp.AbstractCompiler",
"com.google.javascript.jscomp.Compiler",
"com.google.javascript.jscomp.AbstractCompiler$LifeCycleStage",
"com.google.common.collect.Collections2",
"com.google.common.collect.Maps",
"com.google.javascript.jscomp.ClosureCodingConvention",
"com.google.javascript.jscomp.CodingConventions$DefaultCodingConvention",
"com.google.common.collect.EmptyImmutableList",
"com.google.common.collect.Iterators",
"com.google.javascript.jscomp.RhinoErrorReporter",
"com.google.javascript.rhino.head.Kit",
"com.google.javascript.rhino.head.optimizer.Codegen",
"com.google.javascript.rhino.head.Icode",
"com.google.javascript.rhino.head.Interpreter",
"com.google.javascript.rhino.head.Context",
"com.google.javascript.rhino.head.ContextFactory",
"com.google.javascript.rhino.head.ScriptableObject",
"com.google.javascript.rhino.head.ScriptRuntime",
"com.google.javascript.rhino.head.VMBridge",
"com.google.javascript.rhino.ScriptRuntime",
"com.google.common.collect.RegularImmutableMap",
"com.google.common.collect.ImmutableEntry",
"com.google.common.collect.AbstractMultimap",
"com.google.common.collect.AbstractSetMultimap",
"com.google.common.collect.HashMultimap",
"com.google.javascript.jscomp.NodeUtil",
"com.google.javascript.jscomp.PeepholeSubstituteAlternateSyntax",
"com.google.javascript.jscomp.XtbMessageBundle",
"com.google.javascript.jscomp.XtbMessageBundle$Handler",
"com.google.javascript.jscomp.JsMessageVisitor",
"com.google.javascript.jscomp.ReplaceMessages",
"com.google.javascript.jscomp.UnreachableCodeElimination",
"com.google.javascript.jscomp.NodeTraversal",
"com.google.javascript.jscomp.SyntacticScopeCreator",
"com.google.javascript.jscomp.InlineSimpleMethods",
"com.google.common.collect.LinkedHashMultimap",
"com.google.javascript.jscomp.CompilerOptions$NullAliasTransformationHandler$NullAliasTransformation",
"com.google.javascript.jscomp.CompilerOptions$NullAliasTransformationHandler",
"com.google.javascript.jscomp.CompilerOptions",
"com.google.javascript.jscomp.DependencyOptions",
"com.google.javascript.jscomp.ComposeWarningsGuard",
"com.google.common.primitives.Ints",
"com.google.javascript.jscomp.ComposeWarningsGuard$GuardComparator",
"com.google.javascript.jscomp.SourceMap$DetailLevel",
"com.google.javascript.jscomp.SourceMap$Format",
"com.google.javascript.jscomp.CompilerOptions$LanguageMode",
"com.google.javascript.jscomp.CompilerOptions$DevMode",
"com.google.javascript.jscomp.VariableRenamingPolicy",
"com.google.javascript.jscomp.PropertyRenamingPolicy",
"com.google.javascript.jscomp.AnonymousFunctionNamingPolicy",
"com.google.javascript.jscomp.CompilerOptions$TweakProcessing",
"com.google.javascript.jscomp.CompilerOptions$TracerMode",
"com.google.javascript.jscomp.SourceFile",
"com.google.common.base.Charsets",
"com.google.javascript.jscomp.SourceFile$Preloaded",
"com.google.javascript.jscomp.JsAst",
"com.google.javascript.rhino.InputId",
"com.google.javascript.jscomp.NameReferenceGraphConstruction",
"com.google.javascript.jscomp.ExternExportsPass",
"com.google.javascript.rhino.Node",
"com.google.javascript.rhino.Node$AbstractPropListItem",
"com.google.javascript.rhino.Node$IntPropListItem",
"com.google.javascript.jscomp.PeepholeFoldConstants",
"com.google.javascript.jscomp.VarCheck",
"com.google.javascript.jscomp.CheckRegExp",
"com.google.javascript.jscomp.JSModule",
"com.google.javascript.jscomp.FlowSensitiveInlineVariables",
"com.google.common.io.CharStreams",
"com.google.javascript.jscomp.Normalize",
"com.google.javascript.jscomp.CompilerInput",
"com.google.javascript.jscomp.SourceFile$OnDisk",
"com.google.javascript.jscomp.CheckGlobalThis",
"com.google.javascript.jscomp.DiagnosticGroup",
"com.google.javascript.jscomp.CheckAccessControls",
"com.google.javascript.jscomp.TypeValidator",
"com.google.javascript.jscomp.CheckGlobalNames",
"com.google.javascript.jscomp.VariableReferenceCheck",
"com.google.javascript.jscomp.ProcessDefines",
"com.google.common.base.Platform",
"com.google.common.base.SmallCharMatcher",
"com.google.common.base.MediumCharMatcher",
"com.google.common.base.CharMatcher",
"com.google.javascript.jscomp.ProcessTweaks$TweakFunction",
"com.google.javascript.jscomp.ProcessTweaks",
"com.google.javascript.rhino.jstype.JSType",
"com.google.javascript.jscomp.TypedScopeCreator",
"com.google.javascript.jscomp.FunctionTypeBuilder",
"com.google.javascript.jscomp.TypeCheck",
"com.google.javascript.jscomp.CheckDebuggerStatement",
"com.google.javascript.jscomp.CheckSideEffects",
"com.google.javascript.jscomp.CheckUnreachableCode",
"com.google.javascript.jscomp.ConstCheck",
"com.google.javascript.jscomp.DisambiguateProperties$Warnings",
"com.google.javascript.jscomp.ControlStructureCheck",
"com.google.javascript.jscomp.StrictModeCheck",
"com.google.javascript.jscomp.CheckProvides",
"com.google.javascript.jscomp.DiagnosticGroups",
"com.google.javascript.jscomp.DiagnosticGroupWarningsGuard",
"com.google.javascript.jscomp.WarningsGuard$Priority",
"com.google.javascript.jscomp.SuppressDocWarningsGuard",
"com.google.javascript.jscomp.Compiler$11",
"com.google.javascript.jscomp.parsing.Config$LanguageMode",
"com.google.javascript.jscomp.parsing.ParserRunner",
"com.google.javascript.jscomp.parsing.Annotation",
"com.google.javascript.rhino.head.DefaultErrorReporter",
"com.google.javascript.rhino.head.Parser",
"com.google.javascript.rhino.head.TokenStream",
"com.google.javascript.rhino.head.ObjToIntMap",
"com.google.javascript.rhino.head.Node",
"com.google.javascript.rhino.head.ast.AstNode",
"com.google.javascript.jscomp.DefaultPassConfig",
"com.google.javascript.jscomp.CrossModuleMethodMotion$IdGenerator",
"com.google.javascript.rhino.jstype.JSTypeRegistry",
"com.google.javascript.jscomp.PeepholeReplaceKnownMethods",
"com.google.javascript.jscomp.DeadAssignmentsElimination",
"com.google.javascript.rhino.Node$StringNode",
"com.google.javascript.jscomp.CheckMissingGetCssName",
"com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter",
"com.google.javascript.jscomp.GatherRawExports",
"com.google.javascript.jscomp.FunctionNames",
"com.google.protobuf.GeneratedMessage",
"com.google.protobuf.UnknownFieldSet",
"com.google.javascript.jscomp.FunctionInformationMap",
"com.google.javascript.jscomp.Tracer",
"com.google.javascript.jscomp.TightenTypes",
"com.google.javascript.jscomp.CrossModuleCodeMotion",
"com.google.javascript.rhino.head.Parser$ParserException",
"com.google.javascript.rhino.head.RhinoException",
"com.google.javascript.rhino.head.EvaluatorException",
"com.google.javascript.rhino.Node$ObjectPropListItem",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique",
"com.google.javascript.jscomp.MakeDeclaredNamesUnique$ContextualRenamer",
"com.google.common.collect.AbstractMapBasedMultiset",
"com.google.common.collect.HashMultiset",
"com.google.common.collect.Ordering",
"com.google.common.collect.Multisets",
"com.google.javascript.jscomp.ProcessCommonJSModules$SuffixVarsCallback",
"com.google.javascript.jscomp.Scope",
"com.google.common.collect.AbstractListMultimap",
"com.google.common.collect.ArrayListMultimap",
"com.google.javascript.rhino.jstype.JSTypeRegistry$ResolveMode",
"com.google.javascript.rhino.jstype.BooleanType",
"com.google.javascript.rhino.jstype.NullType",
"com.google.javascript.rhino.jstype.NumberType",
"com.google.javascript.rhino.jstype.StringType",
"com.google.javascript.rhino.jstype.UnknownType",
"com.google.javascript.rhino.jstype.VoidType",
"com.google.javascript.rhino.jstype.AllType",
"com.google.javascript.rhino.jstype.PrototypeObjectType",
"com.google.javascript.rhino.jstype.FunctionType",
"com.google.javascript.rhino.jstype.ArrowType",
"com.google.javascript.rhino.jstype.FunctionType$Kind",
"com.google.javascript.rhino.jstype.FunctionType$PropAccess",
"com.google.javascript.rhino.jstype.InstanceObjectType",
"com.google.javascript.rhino.jstype.ObjectType$Property",
"com.google.javascript.rhino.jstype.NoObjectType",
"com.google.javascript.rhino.jstype.NoType",
"com.google.javascript.rhino.jstype.NoResolvedType",
"com.google.javascript.rhino.jstype.ErrorFunctionType",
"com.google.javascript.rhino.jstype.UnionTypeBuilder",
"com.google.javascript.rhino.jstype.UnionType",
"com.google.javascript.rhino.jstype.JSTypeRegistry$1",
"com.google.javascript.jscomp.ReferenceCollectingCallback",
"com.google.javascript.jscomp.AliasStrings",
"com.google.javascript.jscomp.parsing.IRFactory",
"com.google.javascript.jscomp.parsing.IRFactory$1",
"com.google.javascript.jscomp.ReplaceIdGenerators",
"com.google.javascript.jscomp.ExpandJqueryAliases",
"com.google.javascript.jscomp.Compiler$IntermediateState",
"com.google.javascript.jscomp.PassConfig$State",
"com.google.javascript.jscomp.DefinitionsRemover$IncompleteDefinition",
"com.google.javascript.rhino.Node$NumberNode",
"com.google.javascript.jscomp.LineNumberCheck",
"com.google.javascript.jscomp.deps.JsFileLineParser",
"com.google.javascript.jscomp.deps.JsFileParser",
"com.google.javascript.jscomp.CoalesceVariableNames",
"com.google.javascript.jscomp.SyntheticAst",
"com.google.common.base.CaseFormat",
"com.google.common.base.CaseFormat$1",
"com.google.common.base.Ascii",
"com.google.javascript.jscomp.SymbolTable",
"com.google.common.base.Predicates",
"com.google.common.base.Predicates$ObjectPredicate",
"com.google.javascript.jscomp.ProcessClosurePrimitives",
"com.google.javascript.jscomp.AbstractMessageFormatter$1",
"com.google.javascript.jscomp.AbstractMessageFormatter$Color",
"com.google.javascript.jscomp.ReplaceStrings",
"com.google.javascript.jscomp.JqueryCodingConvention",
"com.google.javascript.jscomp.GoogleCodingConvention",
"com.google.javascript.rhino.Token",
"com.google.javascript.jscomp.LinkedFlowScope",
"com.google.common.collect.EmptyImmutableMap",
"com.google.javascript.jscomp.JSSourceFile",
"com.google.javascript.jscomp.WhitelistWarningsGuard",
"com.google.javascript.rhino.head.ast.ArrayLiteral",
"com.google.javascript.jscomp.CodeGenerator",
"com.google.javascript.rhino.head.ast.FunctionCall",
"com.google.common.io.Files",
"com.google.common.io.ByteStreams",
"com.google.javascript.jscomp.TypeInferencePass",
"com.google.javascript.jscomp.NameAnalyzer",
"com.google.javascript.jscomp.CodePrinter$Format",
"com.google.javascript.jscomp.CodePrinter",
"com.google.javascript.jscomp.CodeGenerator$Context",
"com.google.javascript.jscomp.LoggerErrorManager$1",
"com.google.javascript.jscomp.ReplaceCssNames",
"com.google.javascript.jscomp.CustomPassExecutionTime",
"com.google.javascript.jscomp.PerformanceTracker$1",
"com.google.javascript.jscomp.PhaseOptimizer",
"com.google.javascript.jscomp.CrossModuleMethodMotion",
"com.google.javascript.jscomp.ConcreteType",
"com.google.javascript.jscomp.ScopedAliases",
"com.google.javascript.rhino.head.Token",
"com.google.javascript.jscomp.CreateSyntheticBlocks",
"com.google.javascript.jscomp.PureFunctionIdentifier",
"com.google.javascript.jscomp.MarkNoSideEffectCalls",
"com.google.common.io.Closeables",
"com.google.javascript.jscomp.TransformAMDToCJSModule",
"com.google.javascript.jscomp.RenameProperties",
"com.google.javascript.jscomp.InlineCostEstimator",
"com.google.javascript.jscomp.AliasKeywords",
"com.google.javascript.jscomp.ObjectPropertyStringPreprocess",
"com.google.javascript.jscomp.RemoveUnusedPrototypeProperties",
"com.google.javascript.jscomp.AnalyzePrototypeProperties",
"com.google.javascript.jscomp.AnalyzePrototypeProperties$SymbolType",
"com.google.common.collect.ImmutableCollection$Builder",
"com.google.javascript.jscomp.AstParallelizer",
"com.google.javascript.rhino.head.Token$CommentType",
"com.google.javascript.rhino.head.ast.ObjectLiteral",
"com.google.javascript.rhino.head.ast.AstNode$PositionComparator",
"com.google.javascript.jscomp.parsing.JsDocInfoParser",
"com.google.javascript.jscomp.parsing.JsDocTokenStream",
"com.google.javascript.rhino.JSDocInfo",
"com.google.javascript.jscomp.parsing.JsDocInfoParser$State",
"com.google.javascript.jscomp.parsing.JsDocToken",
"com.google.javascript.jscomp.parsing.JsDocInfoParser$1",
"com.google.javascript.jscomp.JSError$1",
"com.google.javascript.jscomp.ControlFlowGraph$Branch",
"com.google.common.collect.StandardTable",
"com.google.common.collect.HashBasedTable",
"com.google.common.collect.HashBasedTable$Factory",
"com.google.common.collect.NaturalOrdering",
"com.google.common.collect.NullsFirstOrdering",
"com.google.javascript.jscomp.StrictWarningsGuard",
"com.google.javascript.jscomp.CheckRequiresForConstructors",
"com.google.javascript.jscomp.CollapseProperties",
"com.google.javascript.jscomp.CompilerOptions$Reach",
"com.google.javascript.jscomp.CodingConvention$SubclassType"
);
}
}
| [
"martin.monperrus@gnieh.org"
] | martin.monperrus@gnieh.org |
9529f6f967c2a6df394c2016f5aae3ba0694e64b | 2c934a6d358eb61052f281c2914a94e406759cfa | /src/main/java/TankGame/services/TanksServiceImpl.java | 9403158bd2ea48e2eb9cd9907b1c907a24d59419 | [] | no_license | LeXiMuS174R/Server | bf4d771eb092c8deeb3c0ad8f4cc5a68290f2b11 | f254afe877e64074266cc10aa0fb40e945a46826 | refs/heads/main | 2023-02-07T17:16:28.119957 | 2020-12-28T16:54:46 | 2020-12-28T16:54:46 | 325,066,003 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,471 | java | package TankGame.services;
import TankGame.models.Game;
import TankGame.models.Player;
import TankGame.models.Shot;
import TankGame.repositories.*;
import java.time.LocalDate;
public class TanksServiceImpl implements TanksService {
private ShotsRepository shotsRepository;
private PlayersRepository playersRepository;
private GamesRepository gamesRepository;
public TanksServiceImpl(ShotsRepository shotsRepository, PlayersRepository playersRepository, GamesRepository gamesRepository) {
this.shotsRepository = shotsRepository;
this.playersRepository = playersRepository;
this.gamesRepository = gamesRepository;
}
public Long startGame(String firstPlayerNickname, String secondPlayerNickname) {
Player firstPlayer = playersRepository.findByName(firstPlayerNickname);
Player secondPlayer = playersRepository.findByName(secondPlayerNickname);
// если пользователи новые
if (firstPlayer == null) {
firstPlayer = new Player(null, firstPlayerNickname, null);
playersRepository.save(firstPlayer);
} else {
// TODO: обновить IP
}
if (secondPlayer == null) {
secondPlayer = new Player(null, secondPlayerNickname, null);
playersRepository.save(secondPlayer);
} else {
// TODO: обновить IP
}
Game game = new Game();
game.setFirst(firstPlayer);
game.setSecond(secondPlayer);
game.setGameDate(LocalDate.now().toString());
gamesRepository.save(game);
return game.getId();
}
public void shot(Long gameId, String shooterNickname, String targetNickname) {
Player shooter = playersRepository.findByName(shooterNickname);
Player target = playersRepository.findByName(targetNickname);
Game game = gamesRepository.findById(gameId);
Shot shot = new Shot(shooter, target, game);
if (game.getFirst().equals(shooter)) {
game.setFirstPlayerShotsCount(game.getFirstPlayerShotsCount() + 1);
} else if (game.getSecond().equals(shooter)) {
game.setSecondPlayerShotsCount(game.getSecondPlayerShotsCount() + 1);
}
shotsRepository.save(shot);
gamesRepository.update(game);
System.out.println(" shots: " +
game.getFirstPlayerShotsCount() + "|" + game.getSecondPlayerShotsCount());
}
}
| [
"flome777@gmail.com"
] | flome777@gmail.com |
b5b7b8e6d724045494787045f8c43a9f9e8ecd2f | 81a35e3beac05e4483d23faca3e82ea7d6eafc89 | /src/com/miao/servlet/CommitReply.java | 91fa90b016669d8fd31fa402ff4f5e4a54d5e686 | [] | no_license | miaochangchun/javaPrj_1 | e4bb95e8fa277f3a15ce450684100651a63e6de9 | a4d02c995e125fab527bb03af615ee30052d8687 | refs/heads/master | 2021-01-12T16:01:42.452924 | 2016-10-25T17:06:28 | 2016-10-25T17:06:28 | 71,920,408 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 2,573 | java | package com.miao.servlet;
import java.io.IOException;
import java.util.Date;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.miao.bean.Employee;
import com.miao.bean.Reply;
import com.miao.dao.ReplyDAO;
import com.miao.factory.ReplyDAOFactory;
/**
* Servlet implementation class CommitReply
*/
@WebServlet("/CommitReply")
public class CommitReply extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public CommitReply() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
request.setCharacterEncoding("UTF-8");
String replyContent = request.getParameter("replyContent");
int messageId = Integer.parseInt(request.getParameter("messageId"));
ServletContext servletContext = getServletContext();
RequestDispatcher dispatcher = null;
Employee employee = (Employee) request.getSession().getAttribute("employee");
if (employee == null) {
request.setAttribute("error", "要进行回复必须先登录!");
}else {
if (replyContent == null || "".equals(replyContent)) {
request.setAttribute("error", "必须输入回复内容");
}else {
//把回复的信息插入数据库
Reply reply = new Reply();
reply.setReplyContent(replyContent);
reply.setMessageId(messageId);
reply.setEmployeeId(employee.getEmployeeId());
reply.setReplyTime(new Date());
ReplyDAO replyDAO = ReplyDAOFactory.getReplyDAOInstance();
replyDAO.addReply(reply);
}
}
//跳转到Get Message页面,并根据message进行查询
dispatcher = servletContext.getRequestDispatcher("/GetMessage?messageId=" + messageId);
dispatcher.forward(request, response);
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}
| [
"1004820109@qq.com"
] | 1004820109@qq.com |
2d38f452d75a71d325fe86685307734c4f0470b6 | d0ed0b57bc3870564a31bf6de83f16f9c6543d5e | /src/com/thingzdo/ui/manage/ModifyEmailActivity.java | 17e4490e83df149c58d666ac9cc633cb3206abbd | [] | no_license | smli123/LSM-APP | 0f5a2f12f38cd0c8d15ce0e4cdce40a55e22ece4 | 066cdca60ee048d4629c58f4b5119cae8112993c | refs/heads/master | 2020-03-20T09:16:37.711559 | 2018-06-14T09:18:49 | 2018-06-14T09:18:49 | 137,332,940 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,021 | java | package com.thingzdo.ui.manage;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import com.thingzdo.internet.AsyncResult;
import com.thingzdo.processhandler.SmartPlugMessage;
import com.thingzdo.smartplug_udp.R;
import com.thingzdo.ui.common.PubDefine;
import com.thingzdo.ui.common.PubFunc;
import com.thingzdo.ui.common.StringUtils;
import com.thingzdo.ui.common.TitledActivity;
import com.thingzdo.ui.smartplug.AppServerReposeDefine;
import com.thingzdo.ui.smartplug.PubStatus;
import com.thingzdo.ui.smartplug.SmartPlugApplication;
public class ModifyEmailActivity extends TitledActivity implements
OnClickListener {
//private EditText oldEmail;
private EditText newEmail;
//private ImageView delOldEmail;
private ImageView delNewEmail;
private Button btnOK;
private BroadcastReceiver mModifyEmailRev = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(PubDefine.USER_MODIFY_EMAIL)) {
int ret = intent.getIntExtra("RESULT", 0);
switch (ret) {
case 0:
PubStatus.g_userEmail = newEmail.getText().toString();
timeoutHandler.removeCallbacks(timeoutProcess);
PubFunc.thinzdoToast(
ModifyEmailActivity.this,
context.getString(R.string.app_mod_email_ok));
ModifyEmailActivity.this.finish();
break;
case 1:
timeoutHandler.removeCallbacks(timeoutProcess);
PubFunc.thinzdoToast(
ModifyEmailActivity.this,
context.getString(R.string.app_mod_email_fail));
break;
case AppServerReposeDefine.Cmd_Unknown:
PubFunc.thinzdoToast(
ModifyEmailActivity.this,
SmartPlugApplication.getContext().getString(
R.string.login_timeout));
break;
}
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState, R.layout.activity_modify_email,
false);
SmartPlugApplication.resetTask();
SmartPlugApplication.getInstance().addActivity(this);
setTitleLeftButton(R.string.smartplug_goback, R.drawable.title_btn_selector, this);
this.setTitle(R.string.app_modify_email);
//oldEmail = (EditText) this.findViewById(R.id.edit_old_email);
newEmail = (EditText) this.findViewById(R.id.edit_new_email);
//oldEmail.setText(PubStatus.g_userEmail);
/*delOldEmail = (ImageView) findViewById(R.id.image_deloldemail);
delOldEmail.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
oldEmail.setText("");
}
});
*/
delNewEmail = (ImageView) findViewById(R.id.image_delnewemail);
delNewEmail.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
newEmail.setText("");
}
});
//updateEdit(oldEmail, delOldEmail);
updateEdit(newEmail, delNewEmail);
//oldEmail.addTextChangedListener(oldEmailTxtWatcher);
newEmail.addTextChangedListener(newEmailTxtWatcher);
btnOK = (Button) this.findViewById(R.id.btn_finish);
btnOK.setOnClickListener(this);
IntentFilter filter = new IntentFilter();
filter.addAction(PubDefine.USER_MODIFY_EMAIL);
this.registerReceiver(mModifyEmailRev, filter);
}
private TextWatcher newEmailTxtWatcher = new TextWatcher() {
@Override
public void afterTextChanged(Editable edt) {
updateEdit(newEmail, delNewEmail);
}
@Override
public void beforeTextChanged(CharSequence arg0, int arg1, int arg2,
int arg3) {
// TODO Auto-generated method stub
}
@Override
public void onTextChanged(CharSequence arg0, int arg1, int arg2,
int arg3) {
// TODO Auto-generated method stub
}
};
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
this.unregisterReceiver(mModifyEmailRev);
}
private boolean checkOldEmail() {
/*if (oldEmail.getText().toString().isEmpty()) {
PubFunc.thinzdoToast(this, "�ף�û������ԭ����Ŷ");
return false;
}*/
/*if (!oldEmail.getText().toString().equals(PubStatus.g_userEmail)) {
PubFunc.thinzdoToast(this, "�ף�ԭ������IJ���Ŷ");
return false;
}*/
return true;
}
private boolean checkNewEmail() {
if (newEmail.getText().toString().isEmpty()) {
PubFunc.thinzdoToast(this, this.getString(R.string.app_mod_email_nonewemail));
return false;
}
if (newEmail.getText().toString().contains("#")) {
PubFunc.thinzdoToast(this, getString(R.string.smartplug_nosharp_email));
return false;
}
//String strOld = oldEmail.getText().toString();
String strNew = newEmail.getText().toString();
if (strNew.equals(PubStatus.g_userEmail)) {
PubFunc.thinzdoToast(this, this.getString(R.string.app_mod_email_samemail));
return false;
}
return true;
}
@Override
public void onClick(View view) {
// TODO Auto-generated method stub
switch (view.getId()) {
case R.id.titlebar_leftbutton:
finish();
break;
case R.id.btn_finish:
if (checkOldEmail() && checkNewEmail()) {
// �ύ������ ��Email
doConnectServer();
}
break;
}
}
private void modfiyEmail() {
String userName = PubStatus.g_CurUserName;
String strNewEmail = this.newEmail.getText().toString();
StringBuilder sb = new StringBuilder();
sb.append(SmartPlugMessage.CMD_SP_MODEMAIL).append(StringUtils.PACKAGE_RET_SPLIT_SYMBOL)
.append(userName).append(StringUtils.PACKAGE_RET_SPLIT_SYMBOL)
.append(strNewEmail);
sendMsg(true, sb.toString(), true);
}
private Runnable timeoutProcess = new Runnable() {
@Override
public void run() {
PubFunc.thinzdoToast(ModifyEmailActivity.this, SmartPlugApplication
.getContext().getString(R.string.login_timeout));
}
};
private Handler doModEmailHander = new Handler() {
public void handleMessage(Message msg) {
if (1 == msg.what) {
modfiyEmail();
} else if (0 == msg.what) {
PubFunc.thinzdoToast(
ModifyEmailActivity.this,
SmartPlugApplication.getContext().getString(
R.string.login_cmd_socket_timeout));
} else {
PubFunc.thinzdoToast(
ModifyEmailActivity.this,
SmartPlugApplication.getContext().getString(
R.string.login_cmd_socket_timeout));
}
};
};
private Handler timeoutHandler = new Handler() {
public void handleMessage(Message msg) {
if (msg.what == AppServerReposeDefine.Socket_Connect_FAIL) {
AsyncResult ret = (AsyncResult) msg.obj;
Log.e("socketExceptionHandler", ret.mMessage);
PubFunc.thinzdoToast(
ModifyEmailActivity.this,
SmartPlugApplication.getContext().getString(
R.string.login_timeout));
}
};
};
private void doConnectServer() {
AsyncTask<Void, Void, Void> connect = new AsyncTask<Void, Void, Void>() {
@Override
protected void onPreExecute() {
super.onPreExecute();
}
@Override
protected Void doInBackground(Void... arg0) {
//if (null == PubDefine.global_socket) {
// doModEmailHander.sendMessage(doModEmailHander
// .obtainMessage(0, ""));
//} else {
doModEmailHander.sendMessage(doModEmailHander
.obtainMessage(1, ""));
//}
return null;
}
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
}
};
connect.execute();
}
}
| [
"smli123@a9a16a3e-c00a-4ab3-988f-67dfe284af05"
] | smli123@a9a16a3e-c00a-4ab3-988f-67dfe284af05 |
25405a58810be55adb3a7665311ecdcb394b15a4 | ddae4be21ce8c0387aa55fc717e9fdc0d72ac011 | /src/main/java/springboot_17/demo/DemoApplication.java | a69f2bee8b5cadf94d98b78ef65d6b29f6245e28 | [] | no_license | Roma021/SpringBoot_17 | 00c48eb6fdf0ee0213f1a8c17db1bbc940419389 | 015ab85f38d51978d1d676af27cf4e14e2e81b04 | refs/heads/master | 2020-05-23T18:30:56.088924 | 2019-05-15T19:31:33 | 2019-05-15T19:31:33 | 186,890,355 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 307 | java | package springboot_17.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
| [
"GBTC406015UR@MC.MONTGOMERYCOLLEGE.EDU"
] | GBTC406015UR@MC.MONTGOMERYCOLLEGE.EDU |
da93171a0c62c989159db0869379c529c79512ef | a1572a1ad39062304b978b4b371eb888b2bdbdac | /TPM-WS-Bower/src/test/AppResigner.java | 31a9c1589eaf7e2a1008834dc96e2d6feef927cc | [] | no_license | RajuKondaru/TPM-WS-Bower | c3c7aec1f2359986d6e21746f7f3cdf4fba254ee | f7872180345c5fcbdb34cbb37bc6694dfe38ffe3 | refs/heads/master | 2023-06-23T02:10:33.019672 | 2019-04-29T07:01:33 | 2019-04-29T07:01:33 | 122,440,263 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 583 | java | package test;
import java.io.IOException;
import com.tpm.mobile.android.app.service.AppManageService;
import com.tpm.mobile.android.pojo.AppPojo;
public class AppResigner {
public static AppManageService appSer=null;
public static void main(String[] args) throws IOException {
appSer = new AppManageService();
AppPojo app= new AppPojo();
String appLoaction="C:\\Users\\raju.kondaru\\Desktop\\apks\\Amazon\\Jabong.apk";
app.setDownloadedAppPath(appLoaction);
boolean isResigned = appSer.appResignService(app);
System.out.println(isResigned);
}
}
| [
"kondaruraju@gmail.com"
] | kondaruraju@gmail.com |
9129822e1612300d553d8c3c2330cdde36021088 | 9da8b70683f21b4a0e349fd997a2d59e0d93df18 | /jeesd-job/src/main/java/com/jeesd/job/domain/ScheduleJobModel.java | 0accc2d80483968830fcd4ef1cb87088747e53f5 | [] | no_license | jeesd/jeesd | aeaa7d7b0dcab774202d7b6ac1e41439afa474d7 | 2fafb65b37b3ae0aa4fb6694ed05f610d54a082b | refs/heads/master | 2022-06-25T18:18:34.626619 | 2019-06-22T06:53:51 | 2019-06-22T06:53:51 | 192,643,164 | 1 | 1 | null | 2022-06-17T02:13:46 | 2019-06-19T02:21:33 | JavaScript | UTF-8 | Java | false | false | 1,554 | java | package com.jeesd.job.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_schedule_job")
public class ScheduleJobModel implements Serializable {
private static final long serialVersionUID=1L;
/**
* 主键ID
*/
private Long id;
/**
* 任务名称
*/
private String jobName;
/**
* 任务组
*/
private String jobGroup;
/**
* 服务名称
*/
private String jobBeanName;
/**
* 方法名称
*/
private String jobMethodName;
/**
* 任务描述
*/
private String jobDescription;
/**
* corn表达式
*/
private String jobCronExpression;
/**
* '状态 1.启动 2.暂停
*/
private Integer status;
/**
* 任务类型 0.周期性 1.一次性
*/
private Integer type;
/**
* 是否删除 0.否 1.是
*/
private Integer deleteFlag;
/**
* 触发器名称
*/
private String jobTriggerName;
/**
* 触发器组
*/
private String jobTriggerGroup;
/**
* 操作人
*/
private String operator;
/**
* 创建时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
}
| [
"songshid@163.com"
] | songshid@163.com |
1cd14ceecc616487e8313d95b21ed71c139c70d5 | 34473b5c1471d20aa17fcf55dedc3c62ddddbf00 | /src/day50_inheritance/Person.java | d42a3332dcdad376c81f5dcec417638117ba5f00 | [] | no_license | m-abdurahman/JavaProgramming | a45f0652cdbad2266f6866f8a655289bd708e891 | dd37c4002b1f963275f2a372f0b5326bf33185b7 | refs/heads/master | 2023-06-23T13:59:15.294268 | 2021-07-18T19:26:21 | 2021-07-18T19:26:21 | 369,880,071 | 0 | 0 | null | 2021-05-28T02:12:47 | 2021-05-22T18:29:26 | Java | UTF-8 | Java | false | false | 393 | java | package day50_inheritance;
/**
* super class, parent class, base class
*/
public class Person {
String name;
int age;
public void walk(){
System.out.println("person is walking");
}
public void talk(){
System.out.println(name + " is talking");
}
public void work (String job){
System.out.println("Person is working as " + job);
}
}
| [
"miya_abdurahman@yahoo.com"
] | miya_abdurahman@yahoo.com |
42c1b404338490e1335dae553919fb8da7985641 | 195d05b51e4d8e7b875fc171439cd121671700da | /Calculator/src/calculatoroop/userinputhandler/UserInputHandler.java | fd4898b7e916436b2499963ba058ecc284fa8351 | [] | no_license | BarnaBotond96/Calculator | e88a0ba1d12c7ddef02779811930062184ae6953 | 9122a629313bd543ca7174b155bb4e15cad3b123 | refs/heads/main | 2023-04-07T08:21:55.789025 | 2021-04-10T11:45:49 | 2021-04-10T11:45:49 | 356,560,898 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 996 | java | package calculatoroop.userinputhandler;
import java.util.InputMismatchException;
import java.util.Scanner;
import calculatoroop.validator.MenuOptionValidator;
public class UserInputHandler {
private Scanner scanner;
public UserInputHandler(Scanner scanner) {
this.scanner = scanner;
}
public int readMenuOption(String message) {
int number = 0;
boolean isValid;
do {
try {
number = readInt(message);
} catch (InputMismatchException e) {
scanner.nextLine();
}
MenuOptionValidator validator = new MenuOptionValidator(number);
isValid = validator.isValidMenuOption();
} while (!isValid);
return number;
}
public int readInt(String message) {
System.out.print(message);
int number = scanner.nextInt();
scanner.nextLine();
return number;
}
public double readDouble(String message) {
System.out.println(message);
double number = scanner.nextDouble();
scanner.nextLine();
return number;
}
} | [
"61475942+BarnaBotond96@users.noreply.github.com"
] | 61475942+BarnaBotond96@users.noreply.github.com |
be00298decf8050d1ab5bcee3f75326e3e82bdf6 | 0d57c0d18517c868b0776995fc51539074efc018 | /src/main/java/me/rto/personalapi/dto/request/PhoneDTO.java | 68a26d87334d99ef3ad9bdf79b3bf29fb7e9dfe8 | [] | no_license | RogerToledo/personalapi | 064cc4c7e7a4f7fca396e1b4b408ceb8e83ad666 | fb973b15e4ced785070d25e61eb6ec66ae72a1a5 | refs/heads/master | 2023-06-14T20:46:51.718140 | 2021-07-05T21:28:51 | 2021-07-05T21:33:04 | 380,411,641 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 592 | java | package me.rto.personalapi.dto.request;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.rto.personalapi.enums.PhoneType;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PhoneDTO {
private Long id;
@Enumerated(EnumType.STRING)
private PhoneType type;
@NotEmpty
@Size(min = 13, max = 14)
private String number;
}
| [
"rogertoledo28@gmail.com"
] | rogertoledo28@gmail.com |
2e07d0d326fc3741b2a7019c5c851085a4a6b292 | 8d50c6f89d5f4fa0e626c8799a6ba60541ec620b | /src/main/java/screen/CriarContaPage.java | 90dc460f3ad80f6d931b6ab2611df705580fc96e | [] | no_license | tomgunners/MobileAutomation | 69494059f7fa65ba43b3f5f219c70824ebc4ef26 | 92bf2914b763f5cdbc52893fef2aa82040407eba | refs/heads/master | 2022-07-24T05:13:42.009050 | 2020-05-17T15:49:22 | 2020-05-17T15:49:22 | 262,895,127 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 888 | java | package screen;
import map.CriaContaElementMap;
import org.openqa.selenium.By;
public class CriarContaPage extends CriaContaElementMap {
//Crie sua Conta
public void clicarBotaoCriarSuaConta() {
btnCriarConta.click();
}
public static String obterValor(){
return obterTexto(By.xpath("//android.widget.TextView[starts-with(@text, 'Nova conta')]"));
}
public void clicarCampoUsuario() {
campoUsuario.click();
}
//Usuario
public void inserirUsuario(String usuario) {
campoUsuario.sendKeys(usuario);
}
//E-mail
public void inserirEmail(String email) {
campoEmail.sendKeys(email);
}
//Senha
public void inserirSenha(String senha) {
campoSenha.sendKeys(senha);
}
//Botão Criar Sua Conta
public void clicarBotaoCriarConta() {
btnConfirma.click();
}
}
| [
"tom_gunners@hotmail.com"
] | tom_gunners@hotmail.com |
bec8aa66945d0fc9458c99917e91b3463533e34b | 857357e59979827883e7f438dfecf345bb1ed18d | /src/com/webnation/sixtysecondyogafree/DetailFragment.java | 46021ae21a29f2e7a204b3ca8c2539746a9d354e | [] | no_license | techartist/SixtySecondYogaFree | e01ae7ad34c235d0916bd6502abfccb94b5fea2d | c5c0815739ba764051b050cc0d8168020183a80b | refs/heads/master | 2021-01-22T11:38:28.889830 | 2014-12-04T20:01:30 | 2014-12-04T20:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,426 | java | package com.webnation.sixtysecondyogafree;
import android.app.Activity;
import android.content.Intent;
import android.database.SQLException;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.actionbarsherlock.app.SherlockFragment;
public class DetailFragment extends SherlockFragment {
private TextView tvYogaText;
public DataBaseHelper myDbHelper;
int PoseID = 0;
private int Count = 1;
Poses nextPose = null;
public static DetailFragment newInstance(int count) {
// Create a new fragment instance
DetailFragment detail = new DetailFragment();
// Set the recipe index
detail.setCount(count);
return detail;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
myDbHelper = new DataBaseHelper(getActivity());
Log.d("DetailFragment", "onCreateView");// TODO Auto-generated method stub
View yogatext =inflater.inflate(R.layout.detail, container, false);
tvYogaText = (TextView)yogatext.findViewById(R.id.yoga_text);
Log.d("Calling Activity",getActivity().toString());
return yogatext;
}
public int getCount() {
return Count;
}
public void setCount(int count) {
Count = count;
}
@Override
public void onAttach(Activity activity) {
// TODO Auto-generated method stub
super.onAttach(activity);
}
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
Log.d("DetailFragment", "onActivityCreated");
}
//Get the Yoga Text.
public void SetYogaTextByPose(int Count, Poses nextPose) {
this.nextPose = nextPose;
Log.d("We're Here", "SetYogaTextByCount");
PoseID = (int)nextPose.getId();
tvYogaText.setText(nextPose.getText());
}
@Override
public void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
}
@Override
public void onPause() {
// TODO Auto-generated method stub
super.onPause();
}
@Override
public void onResume() {
// TODO Auto-generated method stub
super.onResume();
}
@Override
public void onStart() {
// TODO Auto-generated method stub
super.onStart();
}
@Override
public void onStop() {
// TODO Auto-generated method stub
super.onStop();
}
}
| [
"techartist@yahoo.com"
] | techartist@yahoo.com |
8ff6c45379edf7650f6cf816ada94d9141fb1163 | aa7c12d81cc334d983d26382817393ac97ec32c2 | /Nhom9_PTUD_QLQUAYTHUOC/src/entitylayer/Hoadon.java | 68789c946d2a52e480b76ac7d617c8f9dcc2fbbd | [] | no_license | tritranminhh/MyCode | 12bc3d51469ea656a4df7dda5fd070d93f23fcf4 | 61ed2b9028b1b03e82a3c1a58503591f2b570ff7 | refs/heads/master | 2020-08-11T21:22:27.218801 | 2019-10-15T04:51:06 | 2019-10-15T04:51:06 | 214,629,467 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,521 | java | package entitylayer;
import java.util.ArrayList;
import java.util.GregorianCalendar;
public class Hoadon {
private String maHD;
private Khachhang khachhang;
private Nhanvien nhanVien;
private ArrayList<Thuoc> dsThuocLe;
private ArrayList<Integer> soLuong;
private GregorianCalendar ngayLapHD=new GregorianCalendar();
private final float VAT=(float) 0.05;
/**
* @return the maHD
*/
public String getMaHD() {
return maHD;
}
/**
* @param maHD the maHD to set
*/
public void setMaHD(String maHD) {
this.maHD = maHD;
}
/**
* @return the khachhang
*/
public Khachhang getKhachhang() {
return khachhang;
}
/**
* @param khachhang the khachhang to set
*/
public void setKhachhang(Khachhang khachhang) {
this.khachhang = khachhang;
}
/**
* @return the nhanVien
*/
public Nhanvien getNhanVien() {
return nhanVien;
}
/**
* @param nhanVien the nhanVien to set
*/
public void setNhanVien(Nhanvien nhanVien) {
this.nhanVien = nhanVien;
}
/**
* @return the dsThuocLe
*/
public ArrayList<Thuoc> getDsThuocLe() {
return dsThuocLe;
}
/**
* @param dsThuocLe the dsThuocLe to set
*/
public void setDsThuocLe(ArrayList<Thuoc> dsThuocLe) {
this.dsThuocLe = dsThuocLe;
}
/**
* @return the soLuong
*/
public ArrayList<Integer> getSoLuong() {
return soLuong;
}
/**
* @param soLuong the soLuong to set
*/
public void setSoLuong(ArrayList<Integer> soLuong) {
this.soLuong = soLuong;
}
/**
* @return the ngayLapHD
*/
public GregorianCalendar getNgayLapHD() {
return ngayLapHD;
}
/**
* @param ngayLapHD the ngayLapHD to set
*/
public void setNgayLapHD(GregorianCalendar ngayLapHD) {
this.ngayLapHD = ngayLapHD;
}
/**
* @return the vAT
*/
public float getVAT() {
return VAT;
}
public double thanhTien(int index) {
double money = 0;
for (Thuoc x : dsThuocLe)
money += x.getDonGia() * soLuong.get(index);
return money;
}
public double tongTien() {
double money = 0;
for (int i = 0; i < soLuong.size(); i++)
money += thanhTien(i);
return money;
}
public double thueVAT() {
return tongTien() * VAT;
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + Float.floatToIntBits(VAT);
result = prime * result + ((dsThuocLe == null) ? 0 : dsThuocLe.hashCode());
result = prime * result + ((khachhang == null) ? 0 : khachhang.hashCode());
result = prime * result + ((maHD == null) ? 0 : maHD.hashCode());
result = prime * result + ((ngayLapHD == null) ? 0 : ngayLapHD.hashCode());
result = prime * result + ((nhanVien == null) ? 0 : nhanVien.hashCode());
result = prime * result + ((soLuong == null) ? 0 : soLuong.hashCode());
return result;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Hoadon other = (Hoadon) obj;
if (Float.floatToIntBits(VAT) != Float.floatToIntBits(other.VAT))
return false;
if (dsThuocLe == null) {
if (other.dsThuocLe != null)
return false;
} else if (!dsThuocLe.equals(other.dsThuocLe))
return false;
if (khachhang == null) {
if (other.khachhang != null)
return false;
} else if (!khachhang.equals(other.khachhang))
return false;
if (maHD == null) {
if (other.maHD != null)
return false;
} else if (!maHD.equals(other.maHD))
return false;
if (ngayLapHD == null) {
if (other.ngayLapHD != null)
return false;
} else if (!ngayLapHD.equals(other.ngayLapHD))
return false;
if (nhanVien == null) {
if (other.nhanVien != null)
return false;
} else if (!nhanVien.equals(other.nhanVien))
return false;
if (soLuong == null) {
if (other.soLuong != null)
return false;
} else if (!soLuong.equals(other.soLuong))
return false;
return true;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "Hoadon [maHD=" + maHD + ", khachhang=" + khachhang + ", nhanVien=" + nhanVien + ", dsThuocLe=" + dsThuocLe
+ ", soLuong=" + soLuong + ", ngayLapHD=" + ngayLapHD + ", VAT=" + VAT + "]";
}
public Hoadon(String maHD, Khachhang khachhang, Nhanvien nhanVien, ArrayList<Thuoc> dsThuocLe,
ArrayList<Integer> soLuong, GregorianCalendar ngayLapHD) {
super();
this.maHD = maHD;
this.khachhang = khachhang;
this.nhanVien = nhanVien;
this.dsThuocLe = dsThuocLe;
this.soLuong = soLuong;
this.ngayLapHD = ngayLapHD;
}
public Hoadon() {
super();
// TODO Auto-generated constructor stub
}
}
| [
"56474409+tritranminhh@users.noreply.github.com"
] | 56474409+tritranminhh@users.noreply.github.com |
1513f9ea98cbb13a449e83ff2e66672caca0c53c | 818cf1146e2a24f54da5aa514c00ceb44c61f396 | /src/main/java/com/mysarum/controller/BackPackController.java | 4f7df8c0ff0e65446667e4e9b4ccac7d42e50b8b | [] | no_license | vanchobe/MySarum-Java-Spring-Thymeleaf-Game | 19593311a6d1c738adca754446707a930b01adaf | 92583aad6f74984f7063defb695cc66d0e118fba | refs/heads/master | 2020-12-21T18:07:09.802074 | 2020-01-28T13:22:56 | 2020-01-28T13:22:56 | 236,516,769 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,722 | java | package com.mysarum.controller;
import com.mysarum.model.BackPack;
import com.mysarum.model.Item;
import com.mysarum.model.Trade;
import com.mysarum.model.User;
import com.mysarum.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
@Controller
public class BackPackController {
@Autowired
private UserService userService;
@Autowired
private WeaponService weaponService;
@Autowired
private DungeonService dungeonService;
@Autowired
private BackpackService backpackService;
@Autowired
private TradeService tradeService;
@Autowired
private ItemService itemService;
@RequestMapping(value = "/user/backPack", method = RequestMethod.GET)
public ModelAndView backpackHome() {
ModelAndView modelAndView = new ModelAndView("backpack-items-paging");
int page = 1;
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
User user = userService.findUserByEmail(auth.getName());
List<Item> sortedList = BackPack.showBackpackItems(backpackService, itemService, user);
// to iter over backpackService
Map<String, Integer> itemQuantity = BackPack.showBackpackQuantity(sortedList, backpackService, user);
int totalPages = -1;
int size = 3;
PageRequest pageable = PageRequest.of(page - 1, size, Sort.by("id").descending());
Page<BackPack> myBackpack = backpackService.getPaginatedBackpack(pageable);
Page<Item> items = new PageImpl<Item>(sortedList, pageable, sortedList.size());
totalPages = items.getTotalPages();
// totalPages > 0 && page <= Math.ceil(totalPages / size) || totalPages == 1
if (totalPages > 0) {
List<Integer> pageNumbers = IntStream.rangeClosed(1, totalPages).boxed().collect(Collectors.toList());
modelAndView.addObject("pageNumbers", pageNumbers);
}
modelAndView.addObject("playerId", user.getId());
// modelAndView.addObject("backpacks", myBackpack);
modelAndView.addObject("items", sortedList);
modelAndView.addObject("quantity", itemQuantity);
User.visualizeUserStats(modelAndView, user, weaponService);
Trade.visualizeTradeItems(modelAndView, tradeService);
modelAndView.setViewName("user/backPack");
return modelAndView;
}
@RequestMapping(value = "/user/backPack/{page}", method = RequestMethod.GET)
public ModelAndView backpack(@PathVariable("page") int page) {
ModelAndView modelAndView = new ModelAndView("backpack-items-paging");
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
User user = userService.findUserByEmail(auth.getName());
List<Item> sortedList = BackPack.showBackpackItems(backpackService, itemService, user);
Map<String, Integer> itemQuantity = BackPack.showBackpackQuantity(sortedList, backpackService, user);
// items per page
int size = 3;
BackPack.showBackpackItemsPaging(size, page, backpackService, sortedList, modelAndView, user, itemQuantity);
// to show items from my players backpack
User.visualizeUserStats(modelAndView, user, weaponService);
Trade.visualizeTradeItems(modelAndView, tradeService);
modelAndView.setViewName("user/backPack");
return modelAndView;
}
@RequestMapping(value = "/sell-item/{id}", method = RequestMethod.POST)
public ModelAndView sellItem(@PathVariable("id") int id) {
ModelAndView modelAndView = new ModelAndView();
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
User user = userService.findUserByEmail(auth.getName());
// to iter over backpackService
List<Item> sortedList = BackPack.showBackpackItems(backpackService, itemService, user);
Map<String, Integer> itemQty = BackPack.showBackpackQuantity(sortedList, backpackService, user);
// here to show backpack
boolean isContained = false;
int backpackIdForRemove = 0;
int itemQuantity = 0;
for (BackPack backPack : backpackService.findAll()) {
// for (Item item : sortedList) {
if (id == backPack.getItemId()
&& backPack.getPlayerId() == (user.getId())
) {
isContained = true;
backpackIdForRemove = backPack.getId();
itemQuantity = backPack.getQuantity();
break;
}
// }
}
if (isContained) {
int itemSellPrice = itemService.findItemById(id).getSellPrice();
int experienceEarn = itemService.findItemById(id).getExperienceEarn();
int playerGold = user.getGold();
int playerExperience = user.getExperience();
user.setGold(playerGold + itemSellPrice);
user.setExperience(playerExperience + experienceEarn);
if (itemQuantity > 1) {
BackPack backpack = backpackService.findById(backpackIdForRemove);
backpack.setQuantity(itemQuantity - 1);
backpackService.saveBackpack(backpack);
itemQty = BackPack.showBackpackQuantity(sortedList, backpackService, user);
} else {
backpackService.deleteFromBackpack(backpackIdForRemove);
}
userService.saveStats(user);
for (BackPack backPack : backpackService.findAll()) {
for (Item item : itemService.findAll()) {
if (id == backPack.getItemId()
&& backPack.getPlayerId() == (user.getId())
) {
sortedList.add(itemService.findItemById(item.getId()));
}
}
}
User.visualizeUserStats(modelAndView, user, weaponService);
sortedList = BackPack.showBackpackItems(backpackService, itemService, user);
// modelAndView.addObject("items", sortedList);
//
// modelAndView.addObject("quantity", itemQty);
// items per page
int size = 3;
BackPack.showBackpackItemsPaging(size, 1, backpackService, sortedList, modelAndView, user, itemQty);
modelAndView.addObject("successAttackMessage", String.format("You sell item successfully!"));
modelAndView.setViewName("user/backPack");
} else {
modelAndView.addObject("successAttackMessage", String.format("You don't have this item!"));
User.visualizeUserStats(modelAndView, user, weaponService);
List<Item> emptyList = new ArrayList<>();
Map<String, Integer> emptyMap = new HashMap<>();
modelAndView.addObject("quantity", emptyMap);
modelAndView.addObject("items", emptyList);
modelAndView.setViewName("user/backPack");
}
return modelAndView;
}
@RequestMapping(value = "/user/itemtrade/{id}", method = RequestMethod.POST)
public ModelAndView tradeItem(@PathVariable("id") int id, @ModelAttribute("tradeInfo") Trade tradeInfo) {
ModelAndView modelAndView = new ModelAndView();
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
User user = userService.findUserByEmail(auth.getName());
int playerGold = user.getGold();
List<Item> sortedList = BackPack.showBackpackItems(backpackService, itemService, user);
int itemId = id;
String itemName = "";
String itemImage = "";
int itemPrice = 0;
int sellerId = user.getId();
String sellerName = user.getName();
boolean isContained = false;
for (Item item : sortedList) {
if (item.getId() == id) {
itemName = item.getName();
itemImage = item.getItemImage();
itemPrice = item.getSellPrice();
isContained = true;
break;
}
}
if (isContained && (tradeInfo.getPrice() > 0)) {
tradeInfo.setItemId(itemId);
tradeInfo.setName(itemName);
tradeInfo.setImage(itemImage);
tradeInfo.setSellerId(sellerId);
tradeInfo.setPrice(tradeInfo.getPrice());
tradeInfo.setSellerName(sellerName);
List<BackPack> backPack = backpackService.findByPid(user.getId());
int itemQuantity = 0;
int backPackId = 0;
for (BackPack pack : backPack) {
if (pack.getItemId() == itemId) {
itemQuantity = pack.getQuantity();
backPackId = pack.getId();
}
}
BackPack modifyBackpack = backpackService.findById(backPackId);
int currentQuantity = modifyBackpack.getQuantity();
if (itemQuantity > 1) {
modifyBackpack.setQuantity(currentQuantity - 1);
backpackService.saveBackpack(modifyBackpack);
} else {
backpackService.deleteFromBackpack(backPackId);
}
tradeService.saveDeal(tradeInfo);
userService.saveStats(user);
// to iter over backpackService
Map<String, Integer> itemQuantitys = BackPack.showBackpackQuantity(sortedList, backpackService, user);
// here to show backpack
Map<String, Integer> itemQty = BackPack.showBackpackQuantity(sortedList, backpackService, user);
int size = 3;
BackPack.showBackpackItemsPaging(size, 1, backpackService, sortedList, modelAndView, user, itemQty);
Trade.visualizeTradeItems(modelAndView, tradeService);
User.visualizeUserStats(modelAndView, user, weaponService);
modelAndView.addObject("successBuyMessage", String.format("Item was added to item market!"));
modelAndView.setViewName("user/backpack");
} else {
User.visualizeUserStats(modelAndView, user, weaponService);
// to iter over backpackService
sortedList = BackPack.showBackpackItems(backpackService, itemService, user);
Map<String, Integer> itemQuantity = BackPack.showBackpackQuantity(sortedList, backpackService, user);
// here to show backpack
int size = 3;
BackPack.showBackpackItemsPaging(size, 1, backpackService, sortedList, modelAndView, user, itemQuantity);
modelAndView.addObject("successAttackMessage", String.format("You don't have this item, or price must be positive and can't be zero"));
modelAndView.setViewName("user/backPack");
}
return modelAndView;
}
}
| [
"ivandm555@gmail.com"
] | ivandm555@gmail.com |
acac65af10969b46dcc368bc113d440a0e90d925 | a41e5518a239fbb5f7bccd41f43f7818346eea0a | /app/src/main/java/com/maburton/cookingapp/ExpandableListAdapter.java | 6793a42cfe24cf4513f67b58ad7c706cb3ac5eb8 | [] | no_license | bangofandango/CookingApp | 9622b080e79b240217c578d888b368692ab06da4 | 3c9e0744d2786b0cb365b40db3213e0a4905885d | refs/heads/master | 2020-09-14T20:27:53.720545 | 2017-06-15T19:29:23 | 2017-06-15T19:29:23 | 94,395,481 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,348 | java | package com.maburton.cookingapp;
import java.util.HashMap;
import java.util.List;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.TextView;
public class ExpandableListAdapter extends BaseExpandableListAdapter {
private Context _context;
private List<String> _listDataHeader; // header titles
// child data in format of header title, child title
private HashMap<String, List<String>> _listDataChild;
public ExpandableListAdapter(Context context, List<String> listDataHeader,
HashMap<String, List<String>> listChildData) {
this._context = context;
this._listDataHeader = listDataHeader;
this._listDataChild = listChildData;
}
@Override
public Object getChild(int groupPosition, int childPosititon) {
return this._listDataChild.get(this._listDataHeader.get(groupPosition))
.get(childPosititon);
}
@Override
public long getChildId(int groupPosition, int childPosition) {
return childPosition;
}
@Override
public View getChildView(int groupPosition, final int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
final String childText = (String) getChild(groupPosition, childPosition);
if (convertView == null) {
LayoutInflater infalInflater = (LayoutInflater) this._context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = infalInflater.inflate(R.layout.list_item, null);
}
TextView txtListChild = (TextView) convertView
.findViewById(R.id.lblListItem);
txtListChild.setText(childText);
return convertView;
}
@Override
public int getChildrenCount(int groupPosition) {
return this._listDataChild.get(this._listDataHeader.get(groupPosition))
.size();
}
@Override
public Object getGroup(int groupPosition) {
return this._listDataHeader.get(groupPosition);
}
@Override
public int getGroupCount() {
return this._listDataHeader.size();
}
@Override
public long getGroupId(int groupPosition) {
return groupPosition;
}
@Override
public View getGroupView(int groupPosition, boolean isExpanded,
View convertView, ViewGroup parent) {
String headerTitle = (String) getGroup(groupPosition);
if (convertView == null) {
LayoutInflater infalInflater = (LayoutInflater) this._context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = infalInflater.inflate(R.layout.list_header, null);
}
TextView lblListHeader = (TextView) convertView
.findViewById(R.id.lblListHeader);
lblListHeader.setTypeface(null, Typeface.BOLD);
lblListHeader.setText(headerTitle);
return convertView;
}
@Override
public boolean hasStableIds() {
return false;
}
@Override
public boolean isChildSelectable(int groupPosition, int childPosition) {
return true;
}
}
| [
"wallflower.syndrome@live.com"
] | wallflower.syndrome@live.com |
189cad2e3a279193bcf4a81d786f73656f2758da | d2fbafff7eea098100aedc4c04c658ff05486dd2 | /app/src/main/java/ar/edu/unlam/tp1/taller/erikrodriguez/mercadolibreapp/ListadoActivity.java | c1a517386827811110ae8fd80e76e873632aab8f | [] | no_license | erikaevelyn/MLconLibrerias | fe01ed5038cba39a7fad8478e42553b1f4fcb279 | 0b37fc9c54d28db9aa6b004441db86e0526b488d | refs/heads/master | 2020-06-05T00:02:24.327508 | 2019-07-20T06:06:48 | 2019-07-20T06:06:48 | 192,243,974 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,262 | java | package ar.edu.unlam.tp1.taller.erikrodriguez.mercadolibreapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import org.w3c.dom.Text;
import java.util.ArrayList;
import java.util.List;
import ar.edu.unlam.tp1.taller.erikrodriguez.mercadolibreapp.API.API;
import ar.edu.unlam.tp1.taller.erikrodriguez.mercadolibreapp.Modelos.Producto;
import ar.edu.unlam.tp1.taller.erikrodriguez.mercadolibreapp.Modelos.Resultado;
import butterknife.BindView;
import butterknife.ButterKnife;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class ListadoActivity extends AppCompatActivity {
TextView idPrimerProducto;
@BindView(R.id.recycler)
RecyclerView recyclerView;
private ProductosAdapter adapter;
List<Producto> productos = new ArrayList<>();
@BindView(R.id.banner)
ImageView imagenBanner;
@BindView(R.id.loQueSeBusco)
TextView loQueSeBusco;
@BindView(R.id.errorBusqueda)
ImageView errorBusqueda;
@BindView(R.id.loading)
ProgressBar loading;
@BindView(R.id.productoerror)
TextView productoerror;
final String URL ="https://static.websguru.com.ar/var/m_4/48/484/15418/1751312-banner_mercado_libre.jpg";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_listado);
ButterKnife.bind(this);
Picasso.with(getApplicationContext()).load(URL).placeholder(R.drawable.progress_animation).into(imagenBanner);
listarProductos();
}
public void listarProductos() {
String dato = getIntent().getStringExtra("datoBuscado");
loQueSeBusco.setText("Resultados de la busqueda: " + dato);
API.search(dato, new Callback<Resultado>() {
@Override
public void onResponse(Call<Resultado> call, Response<Resultado> response) {
if (response.isSuccessful()) {
productoerror.setVisibility(View.GONE);
loading.setVisibility(View.GONE);
Resultado resultados = response.body();
productos = resultados.getResultados();
if (productos.size() == 0) {
errorBusqueda.setVisibility(View.VISIBLE);
} else {
errorBusqueda.setVisibility(View.GONE);
configurarRecyclerView(productos);
}
Picasso.with(getApplicationContext()).load(R.drawable.errorbusqueda).placeholder(R.drawable.progress_animation).into(errorBusqueda);
} else {
productoerror.setVisibility(View.VISIBLE);
loading.setVisibility(View.VISIBLE);
switch (response.code()){
case 401:
productoerror.setText("Unauthorized4: La autentificación es posible pero ha fallado o aún no ha sido provista.");
break;
case 404:
productoerror.setText("404 Not Found: Recurso no encontrado.");
break;
case 405:
productoerror.setText("405 Method Not Allowed:Una petición fue hecha a una URI utilizando un método de solicitud no soportado por dicha URI.");
break;
case 500:
productoerror.setText("500 Internal Server Error.");
break;
case 501:
productoerror.setText("501 Not Implemented: El servidor no soporta una funcionalidad necesaria para responder a la solicitud del navegador.");
break;
case 503:
productoerror.setText("503 Service Unavailable: El servidor no puede responder a la petición del navegador porque está congestionado o está realizando tareas de mantenimiento.");
break;
case 504:
productoerror.setText("504 Gateway Timeout: El servidor está actuando de proxy o gateway y no ha recibido a tiempo una respuesta del otro servidor, por lo que no puede responder adecuadamente a la petición del navegador.");
break;
case 505:
productoerror.setText("505 HTTP Version Not Supported: El servidor no soporta la versión del protocolo HTTP utilizada en la petición del navegador.");
break;
default:
productoerror.setText("Se produjo un error.");
break;
}
}
}
@Override
public void onFailure(Call<Resultado> call, Throwable t) {
productoerror.setVisibility(View.VISIBLE);
loading.setVisibility(View.VISIBLE);
productoerror.setText("Asegúrate de que tu dispositivo está conectado a la red y de que la fecha y hora están configuradas correctamente.");
}
});
}
private void configurarRecyclerView(List<Producto> productos) {
RecyclerView.LayoutManager lm = new LinearLayoutManager(this);
recyclerView.setLayoutManager(lm);
adapter = new ProductosAdapter(productos);
recyclerView.setAdapter(adapter);
}
} | [
"erikaevelynrodriguez@gmail.com"
] | erikaevelynrodriguez@gmail.com |
9e3a9cb2df28219ffc2a8e7efc92dce2c731e924 | cd7ef66d8e7163f701923c24672d2aec4320e632 | /src/com/company/Integ.java | f4f7b22f837860af5a7092780532ffa4421bbe95 | [] | no_license | VladymyrVLP/HW13 | a289bfac092bb1a100fc6febe6c2553156b6dec1 | 90c2e74630010e5e3300ef80cdf83425854d1ee1 | refs/heads/master | 2020-12-03T16:27:41.677635 | 2020-01-02T13:48:03 | 2020-01-02T13:48:03 | 231,389,308 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 524 | java | package com.company;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Integ {
public static List<Averege> getInteger(){
return new ArrayList<>(Arrays.asList(
new Averege(1),
new Averege(2),
new Averege(3),
new Averege(4),
new Averege(5),
new Averege(6),
new Averege(7),
new Averege(8),
new Averege(9),
new Averege(10)
));
}
}
| [
"55850334+VladymyrVLP@users.noreply.github.com"
] | 55850334+VladymyrVLP@users.noreply.github.com |
f1ffe4b7ee8d8f1a4cab86740c84f2e479bfa274 | 0c06dc6764a973083dce169ddff0c321671f35be | /app/src/main/java/com/jal/todo/module/my/MyFragment.java | d6b896535b0b6b3a04624c528cf4fae93baa71a5 | [] | no_license | GXSZone/JTodo | bd62801caceb6d93155d41da28b551e49a1be0c3 | 4a040bbfa1bb29e548591d7264c908c70c8d2302 | refs/heads/master | 2022-11-29T06:16:50.918828 | 2020-08-14T15:07:47 | 2020-08-14T15:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 664 | java | package com.jal.todo.module.my;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.jal.todo.R;
import com.jal.todo.databinding.FragmentMyBinding;
import androidx.annotation.Nullable;
import me.goldze.mvvmhabit.BR;
import me.goldze.mvvmhabit.base.BaseFragment;
public class MyFragment extends BaseFragment<FragmentMyBinding,MyViewModel> {
@Override
public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return R.layout.fragment_my;
}
@Override
public int initVariableId() {
return BR.viewModel;
}
}
| [
"jal723@qq.com"
] | jal723@qq.com |
2b7ee068d500cbbca59b56ce3237e4bfaa278640 | ae986bf84610e628264d8f6e185da4957d3e754d | /src/main/java/com/devsuperior/BigGameSurveyApiApplication.java | 497d42adee062d013ca90be03ec308988a209a05 | [] | no_license | lmmiranda/big-game-survey-api | 8e929a91ae8d6236e74c0e76898ce4f16e328ec5 | 00af67c2fd30b95b0e5394388b8b8b17a49ad4e2 | refs/heads/master | 2023-03-31T15:54:35.876666 | 2021-04-03T18:28:58 | 2021-04-03T18:28:58 | 354,363,107 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 328 | java | package com.devsuperior;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BigGameSurveyApiApplication {
public static void main(String[] args) {
SpringApplication.run(BigGameSurveyApiApplication.class, args);
}
}
| [
"lmmiranda412@gmail.com"
] | lmmiranda412@gmail.com |
17da0de6a9b967226847c276327447728bef6c53 | 3f10e5ed8c52bedf77dc19633e91b59af8a36d43 | /src/main/java/dao/DeliveryDAO.java | e2a40f9302eb1f9773413b73f457b5da49faa197 | [] | no_license | MaksymBochkov/JavaEELab3v3 | 9bfc8bf7e8909f93eff4b819139e78ac5e76637b | ffa2e785b6c57bbf01dd6867a452020e43b5655a | refs/heads/master | 2023-01-03T12:28:06.765405 | 2020-10-29T12:59:02 | 2020-10-29T12:59:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,474 | java | package dao;
import entities.Delivery;
import entities.Order;
import entities.Recipient;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.util.List;
import java.util.Queue;
@Stateless
public class DeliveryDAO {
@PersistenceContext(name = "printedEditionUnit")
private EntityManager em;
public List<Delivery> findAll(){
return em.createNamedQuery("Delivery.findAll", Delivery.class).getResultList();
}
public List<Integer> selectDeliveryId() {
return em.createQuery("select d.id from Delivery d").getResultList();
}
public void update(Delivery delivery){
if (delivery.getName()!=null | !delivery.getName().equals("")){
Query query = em.createQuery("update Delivery d SET d.name = :name WHERE d.id = :id");
query.setParameter("name", delivery.getName());
query.setParameter("id", delivery.getId());
query.executeUpdate();
em.createNamedQuery("Order.findAll", Order.class).getResultList();
}
}
public void delete(int id){
Query query = em.createQuery("DELETE FROM Delivery d WHERE d.id = :id");
query.setParameter("id", id);
query.executeUpdate();
em.createNamedQuery("Order.findAll", Order.class).getResultList();
}
public void add(Delivery delivery) {
em.persist(delivery);
}
}
| [
"netnotkam@gmail.com"
] | netnotkam@gmail.com |
4a840af90f741f1d2f44e9ae46d10ee6d1e1a34f | b960fe647bf28c48dcc6044b331d323f48aa2b5a | /app/src/main/java/com/example/probattle/myapplication/LineChartGraph.java | 59964604390606b1c6f4d69830a50d040ce26196 | [] | no_license | smsohail1/Solution-Experts | 38063f5bb4f84f9b43024adadd443dcaab5141ca | c713d918ed125881ac83176f640c7dfafd3be3ef | refs/heads/master | 2021-01-17T08:45:44.287153 | 2017-03-05T10:25:03 | 2017-03-05T10:25:03 | 83,961,839 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,781 | java | package com.example.probattle.myapplication;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;
import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.data.BarData;
import com.github.mikephil.charting.data.BarDataSet;
import com.github.mikephil.charting.data.BarEntry;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.LineData;
import com.github.mikephil.charting.data.LineDataSet;
import com.github.mikephil.charting.utils.ColorTemplate;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
/**
* Created by probattle on 3/4/2017.
*/
public class LineChartGraph extends AppCompatActivity {
public static final long NOTIFY_INTERVAL = 30 * 1000; // 30 seconds
// run on another Thread to avoid crash
private Handler mHandler = new Handler();
// timer handling
private Timer mTimer = null;
LineChart chart;
ArrayList<Entry> BARENTRY;
ArrayList<String> BarEntryLabels;
LineDataSet Bardataset;
LineData BARDATA;
int rand;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_line_chart);
chart = (LineChart) findViewById(R.id.lineChart);
BARENTRY = new ArrayList<>();
BarEntryLabels = new ArrayList<String>();
AddValuesToBARENTRY();
AddValuesToBarEntryLabels();
Bardataset = new LineDataSet(BARENTRY, "Projects");
BARDATA = new LineData(BarEntryLabels, Bardataset);
Bardataset.setColors(ColorTemplate.COLORFUL_COLORS);
chart.setData(BARDATA);
chart.animateY(3000);
// cancel if already existed
if (mTimer != null) {
mTimer.cancel();
} else {
// recreate new
mTimer = new Timer();
}
// schedule task
mTimer.scheduleAtFixedRate(new TimeDisplayTimerTask(), 0, NOTIFY_INTERVAL);
}
class TimeDisplayTimerTask extends TimerTask {
@Override
public void run() {
// run on another thread
mHandler.post(new Runnable() {
@Override
public void run() {
Log.i("dsddsaa", "timer");
chart.clear();
BarEntryLabels.clear();
BARENTRY.clear();
AddValuesToBARENTRY();
AddValuesToBarEntryLabels();
Bardataset = new LineDataSet(BARENTRY, "Projects");
BARDATA = new LineData(BarEntryLabels, Bardataset);
Bardataset.setColors(ColorTemplate.COLORFUL_COLORS);
chart.setData(BARDATA);
}
});
}
}
public void AddValuesToBARENTRY() {
for (int i = 0; i < 12; i++) {
rand = (int) (Math.random() * 50000 + 30000);
float z = (float) rand;
BARENTRY.add(new Entry(z, i));
}
}
public void AddValuesToBarEntryLabels() {
BarEntryLabels.add("January");
BarEntryLabels.add("February");
BarEntryLabels.add("March");
BarEntryLabels.add("April");
BarEntryLabels.add("May");
BarEntryLabels.add("June");
BarEntryLabels.add("July");
BarEntryLabels.add("August");
BarEntryLabels.add("September");
BarEntryLabels.add("Octobar");
BarEntryLabels.add("November");
BarEntryLabels.add("December");
}
}
| [
"atique1"
] | atique1 |
df346d0ad330cf6ba8c8d34db771594ab028b4fb | 63b4890cecfda4dc0bdca6ef3b085371935052a9 | /GroupEric/src/iBet.java | 9a903e659af6d90a7fc3ea320c959735d272f471 | [] | no_license | hafsastorm/Java-Boot-Camp-Work | 0334c55410386294b625cd97971553df41c53c32 | d8bfb4b4dd075edca86ea995678ce01d45122f99 | refs/heads/master | 2021-05-29T04:20:45.353473 | 2015-06-07T16:32:45 | 2015-06-07T16:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 43 | java |
public interface iBet {
String race();
}
| [
"eric.charnesky@careevolution.com"
] | eric.charnesky@careevolution.com |
cf7ad3017b52ba1c9ef0ca1ed8368f08c1f953a5 | 06baa51bb849be24bd128c951531d716cad30e6a | /dhms/src/main/java/com/joh/dhms/service/PatientService.java | 2beddeaf59067512968fb5b00dcde0951ff2ae24 | [] | no_license | jawharomer/dhms | c36c45507e01f7b28d8ecb235a7611b689953d53 | f5fdfc25dc8919feb2bcd5ebdb10e630edb8247b | refs/heads/master | 2020-04-06T08:59:39.991320 | 2018-11-20T05:11:41 | 2018-11-20T05:11:41 | 157,325,195 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 190 | java | package com.joh.dhms.service;
import java.util.Date;
import com.joh.dhms.model.Patient;
public interface PatientService {
Patient findOne(int id);
Patient update(Patient patient);
}
| [
"jawhar.omar@yahoo.com"
] | jawhar.omar@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.