blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 332 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 7 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 557 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 17 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 82 values | src_encoding stringclasses 28 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 5.41M | extension stringclasses 11 values | content stringlengths 7 5.41M | authors listlengths 1 1 | author stringlengths 0 161 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
915f41eb5842fbc7eb5941e0bba82055926ccfb1 | b59653b0b931f9ccd3ca8bc97fe0ba3692524f03 | /src/main/java/com/vuvarov/marketplace/strategy/target/searcher/TargetSearcher.java | 1c23fbf8980f9aa2972a7958d525de4dd9dd80d9 | [] | no_license | vova-uvarov/marketplace-amq-navigation-plugin | fe18b98de2ee8a860977a95eb9714ef1017fd5e5 | 547681d60664fae2a5b4497bb51d8d99ff5c7619 | refs/heads/master | 2023-04-03T17:05:02.336162 | 2021-04-14T07:40:49 | 2021-04-14T07:40:49 | 240,970,882 | 1 | 0 | null | 2020-05-29T10:03:53 | 2020-02-16T21:44:51 | Java | UTF-8 | Java | false | false | 3,143 | java | package com.vuvarov.marketplace.strategy.target.searcher;
import com.intellij.codeInsight.dataflow.SetUtil;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiMethod;
import com.intellij.psi.PsiMethodCallExpression;
import com.intellij.psi.PsiReference;
import com.intellij.psi.search.searches.MethodReferencesSearch;
import com.intellij.util.Query;
import com.vuvarov.marketplace.strategy.calculator.ArgumentValueCalculator;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public abstract class TargetSearcher {
public static final int MQENTITY_ARGUMENT_INDEX = 0;
public static final int MQOPERATION_ARGUMENT_INDEX = 1;
private static final ArgumentValueCalculator calculator = new ArgumentValueCalculator();
protected abstract List<PsiMethod> getPotencialMethods(PsiElement element);
public Collection<? extends PsiElement> searchTargets(@NotNull PsiElement element) {
Collection<? extends PsiElement> targets = searchTargetsInner(element, getPotencialMethods(element));
// todo hack for filter super method
return targets.stream()
.filter(t -> {
if (t instanceof PsiReference) {
return !((PsiReference) t).getCanonicalText().equals("super.configure");
}
return true;
}).collect(Collectors.toList());
}
@NotNull
private Collection<? extends PsiElement> searchTargetsInner(@NotNull PsiElement
element, List<PsiMethod> potencialMethods) {
List<PsiElement> resultElements = new ArrayList<>();
Set<String> sourceMqEntity = calculator.argumentValues((PsiMethodCallExpression) element, MQENTITY_ARGUMENT_INDEX);
Set<String> sourceMqOperation = calculator.argumentValues((PsiMethodCallExpression) element, MQOPERATION_ARGUMENT_INDEX);
for (PsiMethod method : potencialMethods) {
Query<PsiReference> search = MethodReferencesSearch.search(method);
List<PsiElement> collect = search.findAll().stream()
.filter(searchResult -> isTarget(sourceMqEntity, sourceMqOperation, searchResult))
.map(PsiReference::getElement)
.collect(Collectors.toList());
resultElements.addAll(collect);
}
return resultElements;
}
private boolean isTarget(Set<String> sendMqEntity, Set<String> sendMqOperation, PsiReference searchResult) {
PsiElement searchResultElement = searchResult.getElement().getParent();
Set<String> mqEntity = calculator.argumentValues((PsiMethodCallExpression) searchResultElement, MQENTITY_ARGUMENT_INDEX);
Set<String> mqOperation = calculator.argumentValues((PsiMethodCallExpression) searchResultElement, MQOPERATION_ARGUMENT_INDEX);
return !SetUtil.intersect(mqEntity, sendMqEntity).isEmpty() && !SetUtil.intersect(mqOperation, sendMqOperation).isEmpty();
}
}
| [
"vova.uvarov@gmail.com"
] | vova.uvarov@gmail.com |
10abf3ea2a44e7bfb03fc84738370989069dce2f | e738a461a36ae51c997b6f5606358f38d2b040ef | /Hello/src/de/fernuni_hagen/kurs1618/HelloWorld.java | 34fcc5617e5f71854af287f30145b4ad69c0aa55 | [] | no_license | WaldemarGareis/workspaceMAC | c0fe11aba2e075b8fe2a2d0b42009b23dc9f7d1e | 10be963288c596bb33524ad844676f1999d5bbf4 | refs/heads/master | 2021-05-28T18:33:33.490575 | 2015-05-21T11:51:42 | 2015-05-21T11:51:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 164 | java | package de.fernuni_hagen.kurs1618;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
} | [
"Waldemar@Waldemars-MacBook-Pro.local"
] | Waldemar@Waldemars-MacBook-Pro.local |
03680799f5412b771459d376aa4b5e5dc2f1e7fe | 4417886f50f85f3348a44b417e57c1ecac9930a4 | /src/main/java/com/sliu/framework/app/util/MD5Util.java | 58501f5a69d60e4d5ec1320c2188f2494d113103 | [] | no_license | itxiaojian/wechatpf | 1fcf2ecc783c36c5c84d8408d78639de22263bde | bdf2b36c9733b1125feabb5d078e84f51034f718 | refs/heads/master | 2021-01-19T20:55:50.196667 | 2017-04-19T02:20:35 | 2017-04-19T02:20:35 | 88,578,665 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,590 | java | package com.sliu.framework.app.util;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* 采用MD5加密解密
* @author tfq
* @datetime 2011-10-13
*/
public class MD5Util {
/***
* MD5加码 生成32位md5码
*/
public static String string2MD5(String inStr){
MessageDigest md5 = null;
try{
md5 = MessageDigest.getInstance("MD5");
}catch (Exception e){
System.out.println(e.toString());
e.printStackTrace();
return "";
}
char[] charArray = inStr.toCharArray();
byte[] byteArray = new byte[charArray.length];
for (int i = 0; i < charArray.length; i++)
byteArray[i] = (byte) charArray[i];
byte[] md5Bytes = md5.digest(byteArray);
StringBuffer hexValue = new StringBuffer();
for (int i = 0; i < md5Bytes.length; i++){
int val = ((int) md5Bytes[i]) & 0xff;
if (val < 16)
hexValue.append("0");
hexValue.append(Integer.toHexString(val));
}
return hexValue.toString();
}
/**
* 加密解密算法 执行一次加密,两次解密
*/
public static String convertMD5(String inStr){
char[] a = inStr.toCharArray();
for (int i = 0; i < a.length; i++){
a[i] = (char) (a[i] ^ 't');
}
String s = new String(a);
return s;
}
// 测试主函数
public static void main(String args[]) {
String s = new String("b3531cae6e1e5cd2b673da89d066c059");
System.out.println("原始:" + s);
System.out.println("MD5后:" + string2MD5(s));
System.out.println("加密的:" + convertMD5(s));
System.out.println("解密的:" + convertMD5(convertMD5(s)));
}
}
| [
"2629690209@qq.com"
] | 2629690209@qq.com |
08611381db20532fcfe7a1a917167203d1178358 | d4285021a4ed9728a9f0348e9a856efb92869903 | /akka/src/main/java/com/test/akka/stream/TestStream.java | d69415b2b9a32f56a364fef64d1790b7e1cfd210 | [] | no_license | vijaykiran225/fifa-server | 95bf71783b16225b9404d32e30be1f6a2a5b1a63 | 966326c78447494f5beae1e8134c40c7f47579e2 | refs/heads/master | 2020-03-27T21:02:37.084711 | 2018-12-02T17:23:42 | 2018-12-02T17:23:42 | 147,111,264 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,864 | java | package com.test.akka.stream;
import akka.NotUsed;
import akka.actor.ActorSystem;
import akka.japi.function.Procedure;
import akka.stream.ActorMaterializer;
import akka.stream.javadsl.FileIO;
import akka.stream.javadsl.Source;
import akka.util.ByteString;
import java.math.BigInteger;
import java.nio.file.Paths;
import java.time.Duration;
import java.time.temporal.TemporalUnit;
public class TestStream {
public static void main(String[] args) {
ActorSystem actorSystem = ActorSystem.create("stream-test");
ActorMaterializer actorMaterializer = ActorMaterializer.create(actorSystem);
Runnable terminate=actorSystem::terminate;
Procedure<String> sysout = System.out::println;
//basic processing
// Source.range(0, 50)
// .reduce((x,y) -> x+y)
// .runForeach(i -> System.out.println("got number " + i), actorMaterializer)
// .thenRun(actorSystem::terminate);
// write to files
// Source
// .range(1, 5)
// .scan(BigInteger.ONE, (x, y) -> x.multiply(BigInteger.valueOf(y)))
// .map(x-> x.multiply(BigInteger.valueOf(2)))
// .map(num -> ByteString.fromString(num.toString() + "\n"))
// .runWith(FileIO.toPath(Paths.get("fact.txt")),actorMaterializer)
// .thenRun(actorSystem::terminate);
Source.range(1, 7)
.scan(BigInteger.ONE,(x,y) -> x.multiply(BigInteger.valueOf(y)))
.zipWith(Source.range(1,7), (num, idx) -> String.format("%d! = %s", idx, num))
.throttle(1,Duration.ofSeconds(3))
.map(str-> ByteString.fromString(str+"\n")) // required by runwith
.runWith(FileIO.toPath(Paths.get("out.txt")),actorMaterializer)
.thenRun(terminate);
}
}
| [
"vijaykiran225@gmail.com"
] | vijaykiran225@gmail.com |
e773f1ca0a5d525bb8e095bbc643476403ce66cc | 8c18c946dc18817a8147767b6ceec17658ce84ad | /CursoSelenium/src/main/java/br/com/selenium/test/TestarRegrasFormulario.java | bf2bdafb227b7e5f42e96e2df462e5a2fa211085 | [] | no_license | cintialcarvalho/selenium-studies | 6c4efff67692a3e3c96533db89f422a1baf47c31 | fa33b5aa55ee2a80665c462acc169986710f4ece | refs/heads/master | 2023-04-27T02:28:37.983217 | 2020-08-06T19:32:50 | 2020-08-06T19:32:50 | 283,232,669 | 0 | 0 | null | 2021-04-26T20:32:29 | 2020-07-28T14:14:32 | Java | UTF-8 | Java | false | false | 3,633 | java | package br.com.selenium.test;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
// Classe sem seguir nenhuma metodologia de boas práticas. Podemos ver que há grande repetiçao de código.
public class TestarRegrasFormulario {
private WebDriver driver;
@Before
public void inicializar() {
driver = new ChromeDriver();
driver.manage().window().setSize(new Dimension(1200, 865));
driver.get("file:///" + System.getProperty("user.dir") + "/src/main/resources/componentes.html");
}
@After
public void finalizar() {
driver.quit();
}
@Test
public void verificarNomeObrigatorio() {
driver.findElement(By.id("elementosForm:cadastrar")).click();
Alert alertaNome = driver.switchTo().alert();
String MsgAlertaNome = alertaNome.getText();
alertaNome.accept();
Assert.assertEquals("Nome eh obrigatorio", MsgAlertaNome);
}
@Test
public void verificarSobrenomeObrigatorio() {
driver.findElement(By.id("elementosForm:nome")).sendKeys("Fulano");
driver.findElement(By.id("elementosForm:cadastrar")).click();
Alert alertaSobrenome = driver.switchTo().alert();
String msgAlertaSobrenome = alertaSobrenome.getText();
alertaSobrenome.accept();
Assert.assertEquals("Sobrenome eh obrigatorio", msgAlertaSobrenome);
}
@Test
public void verificarSexoObrigatorio() {
driver.findElement(By.id("elementosForm:nome")).sendKeys("Fulano");
driver.findElement(By.id("elementosForm:sobrenome")).sendKeys("da Silva");
driver.findElement(By.id("elementosForm:cadastrar")).click();
Alert alertaSexo = driver.switchTo().alert();
String msgAlertaSexo = alertaSexo.getText();
alertaSexo.accept();
Assert.assertEquals("Sexo eh obrigatorio", msgAlertaSexo);
}
@Test
public void verificarComidaSelecionada() {
driver.findElement(By.id("elementosForm:nome")).sendKeys("Fulano");
driver.findElement(By.id("elementosForm:sobrenome")).sendKeys("da Silva");
driver.findElement(By.id("elementosForm:sexo:1")).click();
driver.findElement(By.id("elementosForm:comidaFavorita:0")).click();
driver.findElement(By.id("elementosForm:comidaFavorita:3")).click();
driver.findElement(By.id("elementosForm:cadastrar")).click();
Alert alertaComida = driver.switchTo().alert();
String msgAlertaComida = alertaComida.getText();
alertaComida.accept();
Assert.assertEquals("Tem certeza que voce eh vegetariano?", msgAlertaComida);
}
@Test
public void verificarEsporteSelecionado() {
driver.findElement(By.id("elementosForm:nome")).sendKeys("Fulano");
driver.findElement(By.id("elementosForm:sobrenome")).sendKeys("da Silva");
driver.findElement(By.id("elementosForm:sexo:1")).click();
driver.findElement(By.id("elementosForm:comidaFavorita:0")).click();
driver.findElement(By.id("elementosForm:comidaFavorita:2")).click();
WebElement elementoEsporte = driver.findElement(By.id("elementosForm:esportes"));
Select comboEsporte = new Select(elementoEsporte);
comboEsporte.selectByValue("Corrida");
comboEsporte.selectByValue("nada");
driver.findElement(By.id("elementosForm:cadastrar")).click();
Alert alertaEsporte = driver.switchTo().alert();
String msgAlertaEsporte = alertaEsporte.getText();
alertaEsporte.accept();
Assert.assertEquals("Voce faz esporte ou nao?", msgAlertaEsporte);
}
} | [
"cintialcarvalho@gmail.com"
] | cintialcarvalho@gmail.com |
652bbf43988b545f01936f2da4465914533b06b1 | 9310f5c9986c5f8fea1103378c3be149d972834d | /reflectdemo2/CloudMeaage.java | 1303536faecb3ad0c4ff3911d7eaac1b323a1fa1 | [] | no_license | anruoxin/Other_learn | 6c76c99a1a7888a3b43bde861dbd5d76d39a12ee | e95a5d079983f1c9644f7841c1fc0eb3fc67c8bb | refs/heads/master | 2022-07-07T22:45:14.649138 | 2019-06-03T03:29:09 | 2019-06-03T03:29:09 | 187,003,794 | 0 | 0 | null | 2022-06-29T17:22:59 | 2019-05-16T10:12:15 | Java | UTF-8 | Java | false | false | 292 | java | package reflectdemo2;
/**
* @author admin
* @title: CloudMeaage
* @projectName ideaDemo
* @description: TODO
* @date 2019/5/2815:24
*/
public class CloudMeaage implements IMessageService{
@Override
public void sendMsg() {
System.out.println("发送云消息");
}
}
| [
"34086552+anruoxin@users.noreply.github.com"
] | 34086552+anruoxin@users.noreply.github.com |
c1f863e6f2c42d0763f79f78f4b9d112c68e74f2 | cc34035c779577eb6d48dc5131f51d12eb8d80e5 | /demo/src/main/java/com/alison/springevent/ErrorHandlerAdd.java | 37ba5db1259c7449005415e98b1b91f9a5aaa4e2 | [
"Apache-2.0"
] | permissive | GavinAlison/advanceJava | 2aa541f86a10d5ae263f6c93831f21cea04d90b0 | 61db2d6a59c624f10471ef004fbbe3fc5490ebb8 | refs/heads/master | 2023-03-19T03:18:56.774838 | 2023-03-14T06:58:55 | 2023-03-14T06:58:55 | 205,755,765 | 0 | 0 | Apache-2.0 | 2019-12-10T08:25:56 | 2019-09-02T01:38:04 | Java | UTF-8 | Java | false | false | 673 | java | package com.alison.springevent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.SimpleApplicationEventMulticaster;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* @Classname ErrorHandlerAdd
* @Date 2021/10/1 0:29
* @Created by alison
*/
@Component
public class ErrorHandlerAdd {
@Autowired
private SimpleApplicationEventMulticaster simpleApplicationEventMulticaster;
@Autowired
private MyErrorHandler myErrorHandler;
@PostConstruct
public void init() {
simpleApplicationEventMulticaster.setErrorHandler(myErrorHandler);
}
}
| [
"921757697@qq.com"
] | 921757697@qq.com |
2980a9b9415ed6794bf98c61b768b4550beaccc0 | b3d1320f8b609c05815865cc32056404c58cf85f | /HotelReservationSystem/src/hotelreservationsystem/HotelReservationSystem.java | 90cae6c800812930e90a2788aeec5c102b6fad17 | [] | no_license | kianan94/HotelReservationSystem | 30e4e486faa4c7639514470ec84341b38ff882b0 | d5255d69ff502de830f41c661753232a32ca105f | refs/heads/master | 2021-08-11T18:27:15.055871 | 2017-11-14T02:26:38 | 2017-11-14T02:26:38 | 110,360,661 | 0 | 1 | null | 2017-11-11T16:24:08 | 2017-11-11T16:24:08 | null | UTF-8 | Java | false | false | 647 | 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 hotelreservationsystem;
/**
*
* @author LOH JYH YEONG
*/
public class HotelReservationSystem {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("This is system.");
Room room1 = new Room();
int roomNum = room1.returnRoomNo(1000);
System.out.println(roomNum);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
3400339457652a87c30f5f9e8517e3b876c65f8c | 32b361eae1037d8e5b47c0258da99049b8414008 | /src/main/java/cw07/override/A.java | eb55b54d4cdcc937a4e89b142fad2cc9fb48f5ee | [] | no_license | Eugene1992/java-essential-06 | 627bb5884af620ae433a28a4995b3fae5d3e9f60 | 8977ff22a946380ee5cea185aefa9826fe8d8e55 | refs/heads/master | 2020-04-06T07:10:17.439540 | 2016-08-30T08:34:41 | 2016-08-30T08:34:41 | 65,797,335 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 162 | java | package cw07.override;
public interface A {
void abstractMethod(int k);
static void staticMethod() {
}
default void defaultMethod() {
}
}
| [
"deyneko55@gmail.com"
] | deyneko55@gmail.com |
eac4435fbd996310a1449d610083e9089f7971f3 | 9e8ae4e322a96d8c540d912437f12624369318cc | /src/test/java/com/epam/ta/util/TestListener.java | 2a6d3504254f2b3ecad029ec5631d72a49cc1627 | [] | no_license | kotvitaliy/learning_java_test | a2e22a88cf25bbc6080e37ef77f31dffea49b90a | ee54c137d50c3ed78da431c6d11d4dd10b6cb532 | refs/heads/master | 2023-01-20T17:50:14.346898 | 2020-11-25T09:25:33 | 2020-11-25T09:25:33 | 315,884,078 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,834 | java | package com.epam.ta.util;
import com.epam.ta.driver.DriverSingleton;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
public class TestListener implements ITestListener {
private Logger log = LogManager.getRootLogger();
public void onTestStart(ITestResult iTestResult) {
}
public void onTestSuccess(ITestResult iTestResult) {
}
public void onTestFailure(ITestResult iTestResult) {
saveScreenshot();
}
public void onTestSkipped(ITestResult iTestResult) {
}
public void onTestFailedButWithinSuccessPercentage(ITestResult iTestResult) {
}
public void onStart(ITestContext iTestContext) {
}
public void onFinish(ITestContext iTestContext) {
}
private void saveScreenshot(){
File screenCapture = ((TakesScreenshot)DriverSingleton
.getDriver())
.getScreenshotAs(OutputType.FILE);
try {
FileUtils.copyFile(screenCapture, new File(
".//target/screenshots/"
+ getCurrentTimeAsString() +
".png"));
} catch (IOException e) {
log.error("Failed to save screenshot: " + e.getLocalizedMessage());
}
}
private String getCurrentTimeAsString(){
DateTimeFormatter formatter = DateTimeFormatter.ofPattern( "uuuu-MM-dd_HH-mm-ss" );
return ZonedDateTime.now().format(formatter);
}
}
| [
"vkotlubaev@rra-systems.com"
] | vkotlubaev@rra-systems.com |
065b0d283f00849b21438648569ffe1618740245 | 656250610865d59f2cdb72bcf2c07a7cbf9d927e | /app/src/main/java/com/sven/huinews/international/utils/shot/utils/asset/NvAssetManager.java | 9eab25d3e29541c49e6beaa2a3ffbb54a91ac003 | [] | no_license | hechunjiang/we | 033f2f6c07b18846133e3c09ff74d5e47524547b | 3c7f16e38364287a1f4e74723a56981b418b333a | refs/heads/master | 2020-04-05T11:31:37.473553 | 2018-11-15T09:03:26 | 2018-11-15T09:03:26 | 156,838,166 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 44,718 | java | package com.sven.huinews.international.utils.shot.utils.asset;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
import com.meicam.sdk.NvsAssetPackageManager;
import com.meicam.sdk.NvsStreamingContext;
import com.sven.huinews.international.utils.shot.utils.PathUtils;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
/**
* Created by shizhouhu on 2018/6/14.
*/
public class NvAssetManager implements NvHttpRequest.NvHttpRequestListener, NvsAssetPackageManager.AssetPackageManagerCallback {
private static final String TAG = "NvAssetManager ";
private static NvAssetManager m_instance = null;
private NvHttpRequest m_httpRequest;
/**
* 所有素材字典,包括本地素材和在线素材
*/
private HashMap<String, ArrayList<NvAsset>> assetDict;
/**
* 同时下载限制个数
*/
private int maxConcurrentAssetDownloadNum = 10;
/**
* 等待下载队列
*/
private ArrayList<String> pendingAssetsToDownload = new ArrayList<>();
/**
* 正在下载的个数
*/
private int downloadingAssetsCounter;
/**
* 在线素材的顺序表
*/
private HashMap<String, ArrayList<String>> remoteAssetsOrderedList;
/**
* 自定义贴纸素材。说明:自定义贴纸只有自定义图片的路径和自定义模板的包,没有单独的自定义贴纸包,所以需要单独存储。
* 并且自定义贴纸的信息存储在User defaults里面。
*/
private ArrayList<NvCustomStickerInfo> customStickerArray;
/**
* 是否同步安装素材,默认同步安装。
*/
public boolean isSyncInstallAsset;
private String assetDownloadDirPathTheme;
private String assetDownloadDirPathFilter;
private String assetDownloadDirPathCaption;
private String assetDownloadDirPathAnimatedSticker;
private String assetDownloadDirPathTransition;
private String assetDownloadDirPathCaptureScene;
private String assetDownloadDirPathParticle;
private String assetDownloadDirPathFaceSticker;
private String assetDownloadDirPathCustomAnimatedSticker;
private String assetDownloadDirPathFace1Sticker;
private boolean isLocalAssetSearchedTheme;
private boolean isLocalAssetSearchedFilter;
private boolean isLocalAssetSearchedCaption;
private boolean isLocalAssetSearchedAnimatedSticker;
private boolean isLocalAssetSearchedTransition;
private boolean isLocalAssetSearchedCaptureScene;
private boolean isLocalAssetSearchedParticle;
private boolean isLocalAssetSearchedFaceSticker;
private boolean isLocalAssetSearchedCustomAnimatedSticker;
private boolean isLocalAssetSearchedFace1Sticker;
private NvsStreamingContext streamingContext;
private static SharedPreferences preferences;
private static final String assetdata = "assetdata";
private static final String NV_CDN_URL = "http://omxuaeaki.bkt.clouddn.com";
private static final String NV_DOMAIN_URL = "https://meishesdk.meishe-app.com";
public NvAssetManagerListener listener;
private Context mContext;
private NvsAssetPackageManager packageManager;
public static NvAssetManager sharedInstance(Context context){
if(m_instance == null)
m_instance = new NvAssetManager(context);
return m_instance;
}
private NvAssetManager(Context context) {
mContext = context;
m_httpRequest = NvHttpRequest.sharedInstance();
streamingContext = NvsStreamingContext.getInstance();
preferences = context.getSharedPreferences(assetdata, Context.MODE_PRIVATE);
assetDict = new HashMap<String, ArrayList<NvAsset>>();
remoteAssetsOrderedList = new HashMap<String, ArrayList<String>>();
customStickerArray = new ArrayList<NvCustomStickerInfo>();
packageManager = streamingContext.getAssetPackageManager();
packageManager.setCallbackInterface(this);
isSyncInstallAsset = true;
// 测试自定义贴纸的时候把注释打开
// initCustomStickerInfoFromSharedPreferences();
}
/**
* 下载在线素材信息
*/
public void downloadRemoteAssetsInfo(int assetType, int aspectRatio, int categoryId, int page, int pageSize) {
m_httpRequest.getAssetList(assetType, aspectRatio, categoryId, page, pageSize, this);
}
/**
* 下载素材
*/
public boolean downloadAsset(String uuid) {
NvAsset asset = findAsset(uuid);
if (asset == null) {
Log.e(TAG,"Invalid asset uuid " + uuid);
return false;
}
if (!asset.hasRemoteAsset()) {
Log.e(TAG,"Asset doesn't have a remote url!" + uuid);
return false;
}
switch (asset.downloadStatus) {
case NvAsset.DownloadStatusNone:
case NvAsset.DownloadStatusFinished:
case NvAsset.DownloadStatusFailed:
break;
case NvAsset.DownloadStatusPending:
Log.e(TAG, "Asset has already in pending download state!" + uuid);
return false;
case NvAsset.DownloadStatusInProgress:
Log.e(TAG, "Asset is being downloaded right now!" + uuid);
return false;
case NvAsset.DownloadStatusDecompressing:
Log.e(TAG, "Asset is being uncompressed right now!" + uuid);
return false;
default:
Log.e(TAG, "Invalid status for Asset !" + uuid);
return false;
}
pendingAssetsToDownload.add(asset.uuid);
asset.downloadStatus = NvAsset.DownloadStatusPending;
downloadPendingAsset();
return true;
}
private void downloadPendingAsset() {
while (downloadingAssetsCounter < maxConcurrentAssetDownloadNum && pendingAssetsToDownload.size() > 0) {
String uuid = pendingAssetsToDownload.get(pendingAssetsToDownload.size() - 1);
pendingAssetsToDownload.remove(pendingAssetsToDownload.size() - 1);
if (!startDownloadAsset(uuid)) {
NvAsset asset = findAsset(uuid);
asset.downloadStatus = NvAsset.DownloadStatusFailed;
listener.onDonwloadAssetFailed(uuid);
}
}
}
private boolean startDownloadAsset(String uuid) {
NvAsset asset = findAsset(uuid);
if (asset == null) {
Log.e(TAG,"Invalid asset uuid " + uuid);
return false;
}
if (!asset.hasRemoteAsset()) {
Log.e(TAG,"Asset doesn't have a remote url!" + uuid);
return false;
}
String assetDownloadDir = getAssetDownloadDir(asset.assetType);
int lastIndex = asset.remotePackageUrl.lastIndexOf("/");
String assetPackageName = asset.remotePackageUrl.substring(lastIndex);
String assetDownloadDestPath = assetDownloadDir + assetPackageName ;
m_httpRequest.downloadAsset(asset.remotePackageUrl, assetDownloadDestPath, this, asset.uuid);
downloadingAssetsCounter++;
asset.downloadProgress = 0;
asset.downloadStatus = NvAsset.DownloadStatusInProgress;
return true;
}
/**
* 取消下载素材
*/
public boolean cancelAssetDownload(String uuid) {
NvAsset asset = findAsset(uuid);
if (asset == null) {
Log.e(TAG,"Invalid asset uuid " + uuid);
return false;
}
switch (asset.downloadStatus) {
case NvAsset.DownloadStatusPending:{
pendingAssetsToDownload.remove(uuid);
asset.downloadStatus = NvAsset.DownloadStatusNone;
break;
}
case NvAsset.DownloadStatusInProgress:{
asset.downloadStatus = NvAsset.DownloadStatusNone;
break;
}
default: {
Log.e(TAG, "You can't cancel downloading asset while it is not in any of the download states!" + uuid);
return false;
}
}
return true;
}
/**
* 获取在线素材信息
*/
public ArrayList<NvAsset> getRemoteAssets(int assetType, int aspectRatio, int categoryId) {
ArrayList<NvAsset> array = new ArrayList<NvAsset>();
ArrayList<String> assets = remoteAssetsOrderedList.get(String.valueOf(assetType));
if (assets != null) {
for (String uuid: assets) {
NvAsset asset = findAsset(uuid);
if (aspectRatio == NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
array.add(asset);
} else if (aspectRatio == NvAsset.AspectRatio_All && categoryId != NvAsset.NV_CATEGORY_ID_ALL) {
if (asset.categoryId == categoryId)
array.add(asset);
} else if (aspectRatio != NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
if ((asset.aspectRatio & aspectRatio) == aspectRatio)
array.add(asset);
} else {
if ((asset.aspectRatio & aspectRatio) == aspectRatio && asset.categoryId == categoryId)
array.add(asset);
}
}
}
return array;
}
/**
* 根据页面获取在线素材信息
*/
public ArrayList<NvAsset> getRemoteAssetsWithPage(int assetType, int aspectRatio, int categoryId, int page, int pageSize) {
ArrayList<NvAsset> array = new ArrayList<NvAsset>();
ArrayList<String> assets = remoteAssetsOrderedList.get(String.valueOf(assetType));
if (assets != null) {
for (int i = page*pageSize; i < (page+1)*pageSize; i++) {
if (i >= assets.size())
break;
String uuid = assets.get(i);
NvAsset asset = findAsset(uuid);
if (aspectRatio == NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
array.add(asset);
} else if (aspectRatio == NvAsset.AspectRatio_All && categoryId != NvAsset.NV_CATEGORY_ID_ALL) {
if (asset.categoryId == categoryId)
array.add(asset);
} else if (aspectRatio != NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
if ((asset.aspectRatio & aspectRatio) == aspectRatio)
array.add(asset);
} else {
if ((asset.aspectRatio & aspectRatio) == aspectRatio && asset.categoryId == categoryId)
array.add(asset);
}
}
}
return array;
}
/**
* 获取可用素材id列表
*/
public ArrayList<NvAsset> getUsableAssets(int assetType, int aspectRatio, int categoryId) {
ArrayList<NvAsset> assets = assetDict.get(String.valueOf(assetType));
Comparator c = new Comparator<NvAsset>() {
@Override
public int compare(NvAsset asset1, NvAsset asset2) {
String filePath1 = asset1.isReserved() ? asset1.bundledLocalDirPath : asset1.localDirPath;
String filePath2 = asset2.isReserved() ? asset2.bundledLocalDirPath : asset2.localDirPath;
return PathUtils.getFileModifiedTime(filePath1) < PathUtils.getFileModifiedTime(filePath2) ? 1 : -1;
}
};
Collections.sort(assets, c);
ArrayList<NvAsset> array = new ArrayList<NvAsset>();
if (assets != null) {
for (NvAsset asset: assets) {
if (aspectRatio == NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
if (asset.isUsable())
array.add(asset);
} else if (aspectRatio == NvAsset.AspectRatio_All && categoryId != NvAsset.NV_CATEGORY_ID_ALL) {
if (asset.categoryId == categoryId && asset.isUsable())
array.add(asset);
} else if (aspectRatio != NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
if ((asset.aspectRatio & aspectRatio) == aspectRatio && asset.isUsable())
array.add(asset);
} else {
if ((asset.aspectRatio & aspectRatio) == aspectRatio && asset.categoryId == categoryId && asset.isUsable())
array.add(asset);
}
}
}
return array;
}
/**
* 获取预装素材id列表
*/
public ArrayList<NvAsset> getReservedAssets(int assetType, int aspectRatio, int categoryId) {
ArrayList<NvAsset> assets = assetDict.get(String.valueOf(assetType));
ArrayList<NvAsset> array = new ArrayList<NvAsset>();
if (assets != null) {
for (NvAsset asset: assets) {
if (aspectRatio == NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
if (asset.isReserved())
array.add(asset);
} else if (aspectRatio == NvAsset.AspectRatio_All && categoryId != NvAsset.NV_CATEGORY_ID_ALL) {
if (asset.categoryId == categoryId && asset.isUsable() && asset.isReserved())
array.add(asset);
} else if (aspectRatio != NvAsset.AspectRatio_All && categoryId == NvAsset.NV_CATEGORY_ID_ALL) {
if ((asset.aspectRatio & aspectRatio) == aspectRatio && asset.isUsable() && asset.isReserved())
array.add(asset);
} else {
if ((asset.aspectRatio & aspectRatio) == aspectRatio && asset.categoryId == categoryId && asset.isUsable() && asset.isReserved())
array.add(asset);
}
}
}
return array;
}
/**
* 获取素材对象
*/
public NvAsset getAsset(String uuid) {
return findAsset(uuid);
}
/**
* 搜索本地素材,搜索结果存入素材字典
*/
public void searchLocalAssets(int assetType) {
if (getIsLocalAssetSearched(assetType))
return;
String dirPath = getAssetDownloadDir(assetType);
searchAssetInLocalPath(assetType, dirPath);
setIsLocalAssetSearched(assetType, true);
}
/**
* 搜索预装素材,搜索结果存入素材字典
*/
public void searchReservedAssets(int assetType, String bundlePath) {
searchAssetInBundlePath(assetType, bundlePath);
}
private void searchAssetInBundlePath(int assetType, String dirPath) {
String assetSuffix = getAssetSuffix(assetType);
ArrayList<NvAsset> assets = assetDict.get(String.valueOf(assetType));
if (assets == null) {
assets = new ArrayList<>();
assetDict.put(String.valueOf(assetType), assets);
}
try {
String[] fileList = mContext.getAssets().list(dirPath);
for (int index = 0; index < fileList.length;++index){
String filePath = fileList[index];
if(TextUtils.isEmpty(filePath))
continue;
if(filePath.endsWith(assetSuffix)){
String tmpPackagePath = "assets:/" + dirPath + File.separator + filePath;
NvAsset asset = installAssetPackage(tmpPackagePath, assetType, true);
if(asset == null)
continue;
asset.isReserved = true;
asset.assetType = assetType;
if (assetType != NvAsset.ASSET_FACE1_STICKER) {
asset.bundledLocalDirPath = tmpPackagePath;
asset.coverUrl = dirPath + File.separator + asset.uuid + ".png";
}
NvAsset assetInfo = findAsset(asset.uuid);
if (assetInfo == null) {
assets.add(asset);
} else {
if (assetInfo.version < asset.version) {
assetInfo.copyAsset(asset);
}
}
}
}
}catch (Exception e) {
e.printStackTrace();
}
}
private void searchAssetInLocalPath(int assetType, String dirPath) {
String assetSuffix = getAssetSuffix(assetType);
ArrayList<NvAsset> assets = assetDict.get(String.valueOf(assetType));
if (assets == null) {
assets = new ArrayList<>();
assetDict.put(String.valueOf(assetType), assets);
}
File dir = new File(dirPath);
if (dir.exists()) {
File[] files = dir.listFiles();
for (File file: files) {
String filePath = file.getAbsolutePath();
if (!filePath.endsWith(assetSuffix))
continue;
NvAsset asset = installAssetPackage(filePath, assetType, false);
if(asset == null)
continue;
asset.isReserved = false;
asset.assetType = assetType;
if (assetType != NvAsset.ASSET_FACE1_STICKER)
asset.localDirPath = filePath;
NvUserAssetInfo userAssetInfo = getAssetInfoFromSharedPreferences(asset.uuid, assetType);
if(userAssetInfo != null){
if (assetType != NvAsset.ASSET_FACE1_STICKER)
asset.coverUrl = userAssetInfo.coverUrl;
asset.name = userAssetInfo.name;
asset.categoryId = userAssetInfo.categoryId;
asset.aspectRatio = userAssetInfo.aspectRatio;
asset.remotePackageSize = userAssetInfo.remotePackageSize;
}
NvAsset assetInfo = findAsset(asset.uuid);
if (assetInfo == null) {
assets.add(asset);
} else {
if (assetInfo.version < asset.version) {
assetInfo.copyAsset(asset);
}
}
}
}
}
private String getAssetSuffix(int assetType) {
String assetSuffix;
switch (assetType) {
case NvAsset.ASSET_THEME:
assetSuffix = ".theme";
break;
case NvAsset.ASSET_FILTER:
assetSuffix = ".videofx";
break;
case NvAsset.ASSET_CAPTION_STYLE:
assetSuffix = ".captionstyle";
break;
case NvAsset.ASSET_ANIMATED_STICKER:
assetSuffix = ".animatedsticker";
break;
case NvAsset.ASSET_VIDEO_TRANSITION:
assetSuffix = ".videotransition";
break;
case NvAsset.ASSET_CAPTURE_SCENE:
assetSuffix = ".capturescene";
break;
case NvAsset.ASSET_PARTICLE:
assetSuffix = ".videofx";
break;
case NvAsset.ASSET_FACE_STICKER:
assetSuffix = ".capturescene";
break;
case NvAsset.ASSET_CUSTOM_ANIMATED_STICKER:
assetSuffix = ".animatedsticker";
break;
case NvAsset.ASSET_FACE1_STICKER:
assetSuffix = ".zip";
break;
case NvAsset.ASSET_FACE_BUNDLE_STICKER:
assetSuffix = ".bundle";
break;
default:
assetSuffix = ".videofx";
break;
}
return assetSuffix;
}
public NvAsset installAssetPackage(String filePath, int assetType, boolean isReserved) {
NvAsset asset = new NvAsset();
String fileName = filePath.substring(filePath.lastIndexOf("/")+1);
if(TextUtils.isEmpty(fileName))
return null;
asset.assetType = assetType;
asset.uuid = fileName.split("\\.")[0];
if(TextUtils.isEmpty(asset.uuid))
return null;
StringBuilder packageId = new StringBuilder();
NvsAssetPackageManager manager = streamingContext.getAssetPackageManager();
if(manager == null)
return null;
asset.downloadStatus = NvAsset.DownloadStatusDecompressing;
if (assetType == NvAsset.ASSET_FACE1_STICKER) {
String destPath = PathUtils.getAssetDownloadPath(NvAsset.ASSET_FACE1_STICKER);
boolean ret = false;
if (isReserved) {
String assetfile = filePath.replace("assets:/", "");
ret = PathUtils.unZipAsset(mContext, assetfile, destPath + File.separator, true);
} else {
ret = PathUtils.unZipFile(filePath, destPath + File.separator);
}
if (ret) {
asset.downloadStatus = NvAsset.DownloadStatusFinished;
asset.version = PathUtils.getAssetVersionWithPath(filePath);
if (isReserved) {
asset.bundledLocalDirPath = destPath + File.separator + asset.uuid + File.separator + asset.uuid + ".bundle";
String coverfile = filePath.replace("assets:/", "").replace(".zip", ".png");
asset.coverUrl = coverfile;
} else {
asset.localDirPath = destPath + File.separator + asset.uuid + File.separator + asset.uuid + ".bundle";
asset.coverUrl = destPath + File.separator + asset.uuid + File.separator + asset.uuid + ".png";
}
} else {
asset.downloadStatus = NvAsset.DownloadStatusDecompressingFailed;
}
} else if(assetType != NvAsset.ASSET_FACE_BUNDLE_STICKER){
if (isSyncInstallAsset) {
int error = manager.installAssetPackage(filePath, null, asset.getPackageType(), true, packageId);
if (error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_NO_ERROR) {
asset.downloadStatus = NvAsset.DownloadStatusFinished;
asset.version = manager.getAssetPackageVersion(asset.uuid, asset.getPackageType());
asset.aspectRatio = manager.getAssetPackageSupportedAspectRatio(asset.uuid, asset.getPackageType());
} else if (error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_ALREADY_INSTALLED) {
asset.downloadStatus = NvAsset.DownloadStatusFinished;
asset.version = manager.getAssetPackageVersion(asset.uuid, asset.getPackageType());
asset.aspectRatio = manager.getAssetPackageSupportedAspectRatio(asset.uuid, asset.getPackageType());
int version = manager.getAssetPackageVersionFromAssetPackageFilePath(filePath);
if (version > asset.version) {
error = manager.upgradeAssetPackage(filePath, null, asset.getPackageType(), false, packageId);
if (error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_NO_ERROR) {
asset.version = version;
}
}
} else {
asset.downloadStatus = NvAsset.DownloadStatusDecompressingFailed;
}
} else {
if (manager.getAssetPackageStatus(asset.uuid, asset.getPackageType()) == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_ALREADY_INSTALLED) {
int version = manager.getAssetPackageVersionFromAssetPackageFilePath(filePath);
NvAsset assetInfo = findAsset(asset.uuid);
if (assetInfo == null) {
;// 正常情况下不会调用到这,因为已安装的素材肯定能找到
} else {
if (version > assetInfo.version) {
manager.upgradeAssetPackage(filePath, null, asset.getPackageType(), false, packageId);
}
}
} else {
manager.installAssetPackage(filePath, null, asset.getPackageType(), false, packageId);
}
}
}
asset.name = "";
asset.categoryId = NvAsset.NV_CATEGORY_ID_ALL;
asset.aspectRatio = NvAsset.AspectRatio_All;
return asset;
}
public void setAssetInfoToSharedPreferences() {
String separator = ";";
for (String key: assetDict.keySet()) {
ArrayList<NvAsset> assetList = assetDict.get(key);
HashMap<String,String> assetsInfo=new HashMap<>();
for (NvAsset asset: assetList) {
assetsInfo.put(asset.uuid,
"name:" + asset.name + separator +
"coverUrl:" + asset.coverUrl + separator +
"categoryId:" + String.valueOf(asset.categoryId) + separator +
"aspectRatio:" + String.valueOf(asset.aspectRatio) + separator +
"remotePackageSize:" + String.valueOf(asset.remotePackageSize) + separator +
"assetType:" + String.valueOf(asset.assetType)
);
}
JSONObject jsonObject = new JSONObject(assetsInfo);
String assetDownloadPath = PathUtils.getAssetDownloadPath(-1);
File infoFile = new File(assetDownloadPath + File.separator + "info_" + key + ".json");
// 文件的接口会抛异常,需要处理
try {
if (!infoFile.exists()) {
infoFile.createNewFile();
}
FileWriter writer = new FileWriter(infoFile.getAbsoluteFile());
BufferedWriter bufferedWriter = new BufferedWriter(writer);
bufferedWriter.write(jsonObject.toString());
bufferedWriter.close();
} catch (Exception e) {
e.printStackTrace();
}
}
// 测试自定义贴纸的时候把注释打开
// setCustomStickerInfoToSharedPreferences();
}
private void setCustomStickerInfoToSharedPreferences() {
String separator = ";";
HashMap<String,String> assetsInfo=new HashMap<>();
for (NvCustomStickerInfo info: customStickerArray) {
assetsInfo.put(info.uuid,
"templateUuid:" + info.templateUuid + separator +
"imagePath:" + info.imagePath + separator +
"order:" + String.valueOf(info.order)
);
}
JSONObject jsonObject = new JSONObject(assetsInfo);
String assetDownloadPath = PathUtils.getAssetDownloadPath(-1);
File infoFile = new File(assetDownloadPath + File.separator + "info_" + String.valueOf(NvAsset.ASSET_CUSTOM_ANIMATED_STICKER) + ".json");
// 文件的接口会抛异常,需要处理
try {
if (!infoFile.exists()) {
infoFile.createNewFile();
}
FileWriter writer = new FileWriter(infoFile.getAbsoluteFile());
BufferedWriter bufferedWriter = new BufferedWriter(writer);
bufferedWriter.write(jsonObject.toString());
bufferedWriter.close();
} catch (Exception e) {
e.printStackTrace();
}
}
private void initCustomStickerInfoFromSharedPreferences() {
String assetDownloadPath = PathUtils.getAssetDownloadPath(-1);
File infoFile = new File(assetDownloadPath + File.separator + "info_"+ String.valueOf(NvAsset.ASSET_CUSTOM_ANIMATED_STICKER)+".json");
// 文件的接口会抛异常,需要处理
try {
if (!infoFile.exists()) {
return ;
}
BufferedReader bufferedReader = new BufferedReader(new FileReader(infoFile));
String assetsInfo = "", temp;
while((temp=bufferedReader.readLine())!=null){
assetsInfo += temp;
}
JSONObject jsonObject = new JSONObject(assetsInfo);
Iterator iterator = jsonObject.keys();
while (iterator.hasNext()) {
String uuid = (String)iterator.next();
String assetInfo = jsonObject.getString(uuid);
NvCustomStickerInfo userAssetInfo = new NvCustomStickerInfo();
String[] assetList = assetInfo.split(";");
for (String str : assetList) {
userAssetInfo.uuid = uuid;
if (str.indexOf("templateUuid:") >= 0) {
userAssetInfo.templateUuid = str.replaceAll("templateUuid:", "");
} else if (str.indexOf("imagePath:") >= 0) {
userAssetInfo.imagePath = str.replaceAll("imagePath:", "");
} else if (str.indexOf("order:") >= 0) {
userAssetInfo.order = Integer.parseInt(str.replaceAll("order:", ""));
} else {
continue;
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
public NvUserAssetInfo getAssetInfoFromSharedPreferences(String uuid, int assetType) {
String assetDownloadPath = PathUtils.getAssetDownloadPath(-1);
File infoFile = new File(assetDownloadPath + File.separator + "info_"+ String.valueOf(assetType)+".json");
// 文件的接口会抛异常,需要处理
try {
if (!infoFile.exists()) {
return null;
}
BufferedReader bufferedReader = new BufferedReader(new FileReader(infoFile));
String assetsInfo = "", temp;
while((temp=bufferedReader.readLine())!=null){
assetsInfo += temp;
}
JSONObject jsonObject = new JSONObject(assetsInfo);
Iterator iterator = jsonObject.keys();
while (iterator.hasNext()) {
String uuidIn = (String)iterator.next();
if (uuidIn.equals(uuid)) {
String assetInfo = jsonObject.getString(uuid);
NvUserAssetInfo userAssetInfo = new NvUserAssetInfo();
String[] assetList = assetInfo.split(";");
for (String str : assetList) {
if (str.indexOf("uuid:") >= 0) {
userAssetInfo.uuid = uuid;
} else if (str.indexOf("name:") >= 0) {
userAssetInfo.name = str.replaceAll("name:", "");
} else if (str.indexOf("coverUrl:") >= 0) {
userAssetInfo.coverUrl = str.replaceAll("coverUrl:", "");
} else if (str.indexOf("categoryId:") >= 0) {
userAssetInfo.categoryId = Integer.parseInt(str.replaceAll("categoryId:", ""));
} else if (str.indexOf("aspectRatio:") >= 0) {
userAssetInfo.aspectRatio = Integer.parseInt(str.replaceAll("aspectRatio:", ""));
} else if (str.indexOf("remotePackageSize:") >= 0) {
userAssetInfo.remotePackageSize = Integer.parseInt(str.replaceAll("remotePackageSize:", ""));
} else if (str.indexOf("assetType:") >= 0) {
userAssetInfo.assetType = Integer.parseInt(str.replaceAll("assetType:", ""));
} else {
continue;
}
}
return userAssetInfo;
}
}
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
private String getAssetDownloadDir(int assetType) {
switch (assetType) {
case NvAsset.ASSET_THEME:
assetDownloadDirPathTheme = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathTheme;
case NvAsset.ASSET_FILTER:
assetDownloadDirPathFilter = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathFilter;
case NvAsset.ASSET_CAPTION_STYLE:
assetDownloadDirPathCaption = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathCaption;
case NvAsset.ASSET_ANIMATED_STICKER:
assetDownloadDirPathAnimatedSticker = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathAnimatedSticker;
case NvAsset.ASSET_VIDEO_TRANSITION:
assetDownloadDirPathTransition = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathTransition;
case NvAsset.ASSET_CAPTURE_SCENE:
assetDownloadDirPathCaptureScene = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathCaptureScene;
case NvAsset.ASSET_PARTICLE:
assetDownloadDirPathParticle = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathParticle;
case NvAsset.ASSET_FACE_STICKER:
assetDownloadDirPathFaceSticker = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathFaceSticker;
case NvAsset.ASSET_CUSTOM_ANIMATED_STICKER:
assetDownloadDirPathCustomAnimatedSticker = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathCustomAnimatedSticker;
case NvAsset.ASSET_FACE1_STICKER:
assetDownloadDirPathFace1Sticker = PathUtils.getAssetDownloadPath(assetType);
return assetDownloadDirPathFace1Sticker;
default:
break;
}
return "";
}
private boolean getIsLocalAssetSearched(int assetType) {
switch (assetType) {
case NvAsset.ASSET_THEME:
return isLocalAssetSearchedTheme;
case NvAsset.ASSET_FILTER:
return isLocalAssetSearchedFilter;
case NvAsset.ASSET_CAPTION_STYLE:
return isLocalAssetSearchedCaption;
case NvAsset.ASSET_ANIMATED_STICKER:
return isLocalAssetSearchedAnimatedSticker;
case NvAsset.ASSET_VIDEO_TRANSITION:
return isLocalAssetSearchedTransition;
case NvAsset.ASSET_CAPTURE_SCENE:
return isLocalAssetSearchedCaptureScene;
case NvAsset.ASSET_PARTICLE:
return isLocalAssetSearchedParticle;
case NvAsset.ASSET_FACE_STICKER:
return isLocalAssetSearchedFaceSticker;
case NvAsset.ASSET_CUSTOM_ANIMATED_STICKER:
return isLocalAssetSearchedCustomAnimatedSticker;
case NvAsset.ASSET_FACE1_STICKER:
return isLocalAssetSearchedFace1Sticker;
default:
break;
}
return false;
}
private void setIsLocalAssetSearched(int assetType, boolean isSearched) {
switch (assetType) {
case NvAsset.ASSET_THEME:
isLocalAssetSearchedTheme = isSearched;
break;
case NvAsset.ASSET_FILTER:
isLocalAssetSearchedFilter = isSearched;
break;
case NvAsset.ASSET_CAPTION_STYLE:
isLocalAssetSearchedCaption = isSearched;
break;
case NvAsset.ASSET_ANIMATED_STICKER:
isLocalAssetSearchedAnimatedSticker = isSearched;
break;
case NvAsset.ASSET_VIDEO_TRANSITION:
isLocalAssetSearchedTransition = isSearched;
break;
case NvAsset.ASSET_CAPTURE_SCENE:
isLocalAssetSearchedCaptureScene = isSearched;
break;
case NvAsset.ASSET_PARTICLE:
isLocalAssetSearchedParticle = isSearched;
break;
case NvAsset.ASSET_FACE_STICKER:
isLocalAssetSearchedFaceSticker = isSearched;
break;
case NvAsset.ASSET_CUSTOM_ANIMATED_STICKER:
isLocalAssetSearchedCustomAnimatedSticker = isSearched;
break;
case NvAsset.ASSET_FACE1_STICKER:
isLocalAssetSearchedFace1Sticker = isSearched;
break;
default:
break;
}
}
private NvAsset findAsset(String uuid) {
for (String key: assetDict.keySet()) {
ArrayList<NvAsset> assetList = assetDict.get(key);
for (NvAsset asset: assetList) {
if (asset.uuid.equals(uuid))
return asset;
}
}
return null;
}
private void addRemoteAssetData(ArrayList<NvHttpRequest.NvAssetInfo> resultsArray, int assetType) {
ArrayList<NvAsset> assets = assetDict.get(String.valueOf(assetType));
if (assets == null) {
assets = new ArrayList<NvAsset>();
}
for (NvHttpRequest.NvAssetInfo assetInfo: resultsArray) {
NvAsset asset = new NvAsset();
asset.assetType = assetType;
asset.categoryId = assetInfo.getCategory();
asset.tags = assetInfo.getTags();
asset.remotePackageSize = assetInfo.getPackageSize();
asset.uuid = assetInfo.getId();
asset.minAppVersion = assetInfo.getMinAppVersion();
asset.remotePackageUrl = assetInfo.getPackageUrl().replaceAll(NV_DOMAIN_URL, NV_CDN_URL);
asset.remoteVersion = assetInfo.getVersion();
asset.coverUrl = assetInfo.getCoverUrl().replaceAll(NV_DOMAIN_URL, NV_CDN_URL);
asset.aspectRatio = assetInfo.getSupportedAspectRatio();
asset.name = assetInfo.getName();
asset.desc = assetInfo.getDesc();
NvAsset foundAsset = findAsset(asset.uuid);
if (foundAsset == null) {
assets.add(asset);
} else {
foundAsset.categoryId = asset.categoryId;
foundAsset.name = asset.name;
foundAsset.coverUrl = asset.coverUrl;
foundAsset.aspectRatio = asset.aspectRatio;
foundAsset.remotePackageSize = asset.remotePackageSize;
foundAsset.remoteVersion = asset.remoteVersion;
foundAsset.remotePackageUrl = asset.remotePackageUrl;
}
}
assetDict.put(String.valueOf(assetType), assets);
}
private void addRemoteAssetOrderedList(ArrayList<NvHttpRequest.NvAssetInfo> resultsArray, int assetType) {
ArrayList<String> assets = remoteAssetsOrderedList.get(String.valueOf(assetType));
if (assets == null) {
assets = new ArrayList<String>();
}
for (NvHttpRequest.NvAssetInfo assetInfo: resultsArray) {
if (!assets.contains(assetInfo.getId())) {
assets.add(assetInfo.getId());
}
}
remoteAssetsOrderedList.put(String.valueOf(assetType), assets);
}
@Override
public void onGetAssetListSuccess(ArrayList responseArrayList, int assetType, boolean hasNext) {
addRemoteAssetData(responseArrayList, assetType);
addRemoteAssetOrderedList(responseArrayList, assetType);
listener.onRemoteAssetsChanged(hasNext);
}
@Override
public void onGetAssetListFailed(IOException e, int assetType) {
listener.onGetRemoteAssetsFailed();
}
@Override
public void onDonwloadAssetProgress(int progress, String downloadId) {
listener.onDownloadAssetProgress(downloadId, progress);
}
@Override
public void onDonwloadAssetSuccess(boolean success, String downloadPath, String downloadId) {
downloadingAssetsCounter--;
NvAsset asset = findAsset(downloadId);
asset.downloadProgress = 1;
asset.downloadStatus = NvAsset.DownloadStatusDecompressing;
asset.localDirPath = downloadPath;
NvAsset assetInfo = installAssetPackage(downloadPath, asset.assetType, false);
if (isSyncInstallAsset) {
asset.downloadStatus = assetInfo.downloadStatus;
asset.version = assetInfo.version;
}
if (asset.assetType == NvAsset.ASSET_FACE1_STICKER) {
asset.downloadStatus = assetInfo.downloadStatus;
asset.version = assetInfo.version;
asset.localDirPath = assetInfo.localDirPath;
}
listener.onDonwloadAssetSuccess(downloadId);
setAssetInfoToSharedPreferences();
}
@Override
public void onDonwloadAssetFailed(Exception e, String downloadId) {
listener.onDonwloadAssetFailed(downloadId);
}
@Override
public void onFinishAssetPackageInstallation(String assetPackageId, String assetPackageFilePath, int assetPackageType, int error) {
if (error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_NO_ERROR || error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_ALREADY_INSTALLED) {
NvAsset asset = findAsset(assetPackageId);
asset.downloadStatus = NvAsset.DownloadStatusFinished;
asset.version = packageManager.getAssetPackageVersion(assetPackageId, assetPackageType);
asset.aspectRatio = packageManager.getAssetPackageSupportedAspectRatio(asset.uuid, asset.getPackageType());
} else {
NvAsset asset = findAsset(assetPackageId);
asset.downloadStatus = NvAsset.DownloadStatusDecompressingFailed;
}
listener.onFinishAssetPackageInstallation(assetPackageId);
}
@Override
public void onFinishAssetPackageUpgrading(String assetPackageId, String assetPackageFilePath, int assetPackageType, int error) {
if (error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_NO_ERROR || error == NvsAssetPackageManager.ASSET_PACKAGE_MANAGER_ERROR_ALREADY_INSTALLED) {
NvAsset asset = findAsset(assetPackageId);
asset.downloadStatus = NvAsset.DownloadStatusFinished;
asset.version = packageManager.getAssetPackageVersion(assetPackageId, assetPackageType);
asset.aspectRatio = packageManager.getAssetPackageSupportedAspectRatio(asset.uuid, asset.getPackageType());
} else {
NvAsset asset = findAsset(assetPackageId);
asset.downloadStatus = NvAsset.DownloadStatusDecompressingFailed;
}
listener.onFinishAssetPackageUpgrading(assetPackageId);
}
public interface NvAssetManagerListener {
/**
* 获取到在线素材列表后执行该回调。
*/
void onRemoteAssetsChanged(boolean hasNext);
/**
* 获取到在线素材列表失败执行该回调。
*/
void onGetRemoteAssetsFailed();
/**
* 下载在线素材进度执行该回调。
*/
void onDownloadAssetProgress(String uuid, int progress);
/**
* 下载在线素材失败执行该回调。
*/
void onDonwloadAssetFailed(String uuid);
/**
* 下载在线素材完成执行该回调。
*/
void onDonwloadAssetSuccess(String uuid);
/**
* 如果素材为异步安装,安装完成后执行该回调。
*/
void onFinishAssetPackageInstallation(String uuid);
/**
* 如果素材为异步安装,升级完成后执行该回调。
*/
void onFinishAssetPackageUpgrading(String uuid);
}
public class NvUserAssetInfo {
public String uuid;
public String name;
public String coverUrl;
public int categoryId;
public int aspectRatio;
public int remotePackageSize;
public int assetType;
}
public class NvCustomStickerInfo {
public String uuid;
public String templateUuid;
public String imagePath;
public int order;
}
}
| [
"2654313873@qq.com"
] | 2654313873@qq.com |
f997c5e5df688166e2dea0ab431dcf98c305f5db | 57a8102994f76e55399fb27fa20de6011ec920d8 | /src/main/java/org/folio/cataloging/business/in/Filtro.java | a837f00cc2dbdfe3d29d84b98303eab9189d8e58 | [
"Apache-2.0"
] | permissive | carmentrazza/mod-cataloging | ab5c848264f09b7c9a3fd4d7102140d058977739 | 03467d2bf278d916d012db4fe7f4ff94ee5c7d60 | refs/heads/master | 2021-08-23T08:23:58.176080 | 2017-12-04T09:01:58 | 2017-12-04T09:01:58 | 113,018,484 | 0 | 0 | null | 2017-12-04T08:53:06 | 2017-12-04T08:53:05 | null | UTF-8 | Java | false | false | 2,576 | java | package org.folio.cataloging.business.in;
import java.util.ArrayList;
import org.folio.cataloging.business.codetable.ValueLabelElement;
public class Filtro {
private int idFiltro;
private String descFiltro;
private String tipoFiltro;
private String valFiltro;
private boolean valFiltroBoolean;
private ArrayList valFiltroLista;
private final static String MULTILIST = "MULTILIST";
private final static String BOOLEAN = "BOOLEAN";
private String label;
private int value;
public int getIdFiltro() {
return idFiltro;
}
public void setIdFiltro(int idFiltro) {
this.idFiltro = idFiltro;
}
public String getDescFiltro() {
return descFiltro;
}
public void setDescFiltro(String descFiltro) {
this.descFiltro = descFiltro;
}
public String getTipoFiltro() {
return tipoFiltro;
}
public void setTipoFiltro(String tipoFiltro) {
this.tipoFiltro = tipoFiltro;
}
public String getValFiltro() {
return valFiltro;
}
public void setValFiltro(String valFiltro) {
if (this.tipoFiltro.equalsIgnoreCase(MULTILIST)){
if(valFiltro!=null && (!valFiltro.equals(""))){
String[] v = valFiltro.split("\\/");
ArrayList lista = new ArrayList();
for (int i = 0; i < v.length; i++) {
ValueLabelElement ve = new ValueLabelElement(v[i],v[i]);
lista.add(ve);
}
this.valFiltroLista = lista;
}else{
this.valFiltroLista = new ArrayList();
}
}else if(this.tipoFiltro.equalsIgnoreCase(BOOLEAN)){
if(valFiltro!=null && (!valFiltro.equals(""))){
if(valFiltro.equals("0")){
this.valFiltroBoolean=false;
}else{
this.valFiltroBoolean=true;
}
}
}
if(!this.tipoFiltro.equalsIgnoreCase(BOOLEAN)){
this.valFiltro = valFiltro;
}
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public ArrayList getValFiltroLista() {
return valFiltroLista;
}
public void setValFiltroLista(ArrayList valFiltroLista) {
this.valFiltroLista = valFiltroLista;
}
public boolean isValFiltroBoolean() {
return valFiltroBoolean;
}
public void setValFiltroBoolean(boolean valFiltroBoolean) {
this.valFiltroBoolean = valFiltroBoolean;
}
// public String getValFiltroBoolean() {
// return valFiltroBoolean;
// }
// public void setValFiltroBoolean(String valFiltroBoolean) {
// this.valFiltroBoolean = valFiltroBoolean;
// }
}
| [
"a.gazzarini@gmail.com"
] | a.gazzarini@gmail.com |
7087af605cce5afc0d0c7b2cfa6e581e329e2953 | ef9a4e3fd02b0d676bd613fb1b04d294acd7f14d | /src/main/java/kg/itacademy/finalproject/service/LabTestResultService.java | 5bed35e4c52f3df8b627c9067301f56d008b9642 | [] | no_license | ElizaChurokova/final-project | 19b0c6ad778f951ec1c8a76fa5c490fe5697c6c9 | a623cd29022890b0c517ceff4478d469010249bc | refs/heads/main | 2023-06-12T20:38:02.546520 | 2021-07-07T12:55:37 | 2021-07-07T12:55:37 | 376,363,221 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 470 | java | package kg.itacademy.finalproject.service;
import kg.itacademy.finalproject.entity.LabTestResult;
import kg.itacademy.finalproject.model.LabTestResultModel;
import kg.itacademy.finalproject.model.UserCreateModel;
import java.util.List;
public interface LabTestResultService {
LabTestResult save(LabTestResult labTestResult);
LabTestResult save(LabTestResultModel labTestResultModel);
LabTestResult findById(Long id);
List<LabTestResult> findAll();
}
| [
"elizachurokova@gmail.com"
] | elizachurokova@gmail.com |
97d4a851a630ebc5797b1dc464641b29ca061e10 | 82259a33299bab79cc3ac49ccfdfbf33a6c74366 | /bin/custom/news/newsstorefront/web/src/my/news/storefront/controllers/misc/EstimateTaxesController.java | adc629a7b9a548a46cd502ad2e418386f274a64f | [] | no_license | Neothat/newsProject | ba8f66b553411cf961b30613f41329582fdce822 | a1c7d66d8f0478b36acf83ec57e89791aa43114a | refs/heads/master | 2023-06-27T20:16:45.489107 | 2021-07-28T07:55:42 | 2021-07-28T07:55:42 | 390,264,355 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,560 | java | /*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package my.news.storefront.controllers.misc;
import de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController;
import de.hybris.platform.commercefacades.order.CartFacade;
import de.hybris.platform.commercefacades.order.data.CartData;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Controller to handle the tax estimation on a cart.
*/
@Controller
public class EstimateTaxesController extends AbstractController
{
@Resource(name = "cartFacade")
private CartFacade cartFacade;
@RequestMapping(value = "/cart/estimate", method = RequestMethod.GET, produces = "application/json")
@ResponseBody
public CartData addToCart(@RequestParam("zipCode") final String zipCode, @RequestParam("isocode") final String countryIsoCode,
final Model model)
{
return cartFacade.estimateExternalTaxes(zipCode, countryIsoCode);
}
}
| [
"denis.volkov@accenture.com"
] | denis.volkov@accenture.com |
e5171781635186379fd97a57e73a4ad2ecf366cf | 5eb0b50b16eda027ddaf9ad4a85b3d67b54ee932 | /src/main/java/com/example/design/builder/Item.java | bd88cb7833fe3d1a0a2a9bc52c7a8f55acfc95b0 | [] | no_license | huc003/design | 286f49eb26dea4aeb079b2605a5a0d3f8b80e232 | 844c4b5a5ae77ecb402eaf9c0302788c41d7e8d1 | refs/heads/master | 2020-03-18T23:33:45.190727 | 2018-06-12T07:25:47 | 2018-06-12T07:25:47 | 135,410,497 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 225 | java | package com.example.design.builder;
/**
* @Author: 胡成
* @Version: 0.0.1V
* @Date: 2018/5/30
* @Description: 建造者模式
**/
public interface Item {
String name();
Packing packing();
float price();
}
| [
"459382234@qq.com"
] | 459382234@qq.com |
c78f7bacac9020a742763cb449a33fe2da750691 | 6285a1aea2ac646d78dedc400ffa64af483e733e | /MyTodo/app/src/main/java/com/example/saki/mytodo/db/DatabaseManager.java | 804a3901df4674ab5ce9ff67d42703b4ee8051b8 | [] | no_license | Saki-Zhang/My-Todo | d1d5688fd7a2b7a82a7154eeee215e5fceadb33e | eb95be68999d6a2793a15c1c9d8bdadf6f543f80 | refs/heads/master | 2021-01-11T18:39:41.290040 | 2020-07-29T02:18:18 | 2020-07-29T02:18:18 | 79,574,974 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,140 | java | package com.example.saki.mytodo.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
public class DatabaseManager {
protected SQLiteDatabase database;
protected DatabaseHelper databaseHelper;
public DatabaseManager(Context context) {
if (databaseHelper == null) {
databaseHelper = new DatabaseHelper(context);
}
database = databaseHelper.getWritableDatabase();
}
public void close() {
database.close();
}
public void recreateTable() {
database.execSQL(TableFields.TodoTask.SQL_DROP_TASKS);
database.execSQL(TableFields.TodoTask.SQL_CREATE_TASKS);
}
public long insert(String tableName, ContentValues contentValues) {
return database.insert(tableName, null, contentValues);
}
public long update(String tableName, ContentValues contentValues, String whereClause, String[] whereArgs) {
return database.update(tableName, contentValues, whereClause, whereArgs);
}
public boolean delete(String tableName, String whereClause, String[] whereArgs) {
database.delete(tableName, whereClause, whereArgs);
return true;
}
}
| [
"zuoqi.zhang@gmail.com"
] | zuoqi.zhang@gmail.com |
006148d8b31622c1b5f1b89d837ab1d8aa3dc20d | cf61e6a14d9c300f4a46f8674bcb8e3e09cc9cfe | /src/main/java/com/mtons/mblog/base/utils/FileKit.java | 42f4ae87eb8ecf96d7dcfae4d4972ec351e06409 | [
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"GPL-3.0-only"
] | permissive | qingttian/mblog | 84de521b7939ff7779778c50197adcdea76dc17f | f3f435e1760f1471bb16feff9a7997572e106158 | refs/heads/master | 2020-04-23T07:45:34.649658 | 2019-02-15T12:32:19 | 2019-02-15T12:32:19 | 167,556,324 | 0 | 0 | Apache-2.0 | 2019-01-25T14:01:26 | 2019-01-25T14:01:26 | null | UTF-8 | Java | false | false | 1,387 | java | package com.mtons.mblog.base.utils;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
/**
* @author - langhsu
* @create - 2018/3/9
*/
public class FileKit {
// 文件允许格式
private static List<String> allowFiles = Arrays.asList(".gif", ".png", ".jpg", ".jpeg", ".bmp");
private final static String PREFIX_VIDEO="video/";
private final static String PREFIX_IMAGE="image/";
/**
* 文件类型判断
*
* @param fileName
* @return
*/
public static boolean checkFileType(String fileName) {
Iterator<String> type = allowFiles.iterator();
while (type.hasNext()) {
String ext = type.next();
if (fileName.toLowerCase().endsWith(ext)) {
return true;
}
}
return false;
}
public static String getFilename(String path) {
int pos = path.lastIndexOf(File.separator);
return path.substring(pos + 1);
}
public static String getSuffix(String filename) {
int pos = filename.lastIndexOf(".");
return filename.substring(pos);
}
public static void writeByteArrayToFile(byte[] bytes, String dest) throws IOException {
FileUtils.writeByteArrayToFile(new File(dest), bytes);
}
}
| [
"langhsu@163.com"
] | langhsu@163.com |
0fd609f6858a1286083d9cbe9695494ca60ecc20 | 59867cf039e851471a4cca5624f70c61c95e5582 | /app/src/main/java/com/bretthirschberger/project2/SplashActivity.java | f834d3176440f587f062a1484336de3501837730 | [] | no_license | bhirschberger98/Project2 | a63f627ed740cd86388f093bf4632fbc76afde6a | 0757eabaa9e57d4456a4806bb6535cb538031626 | refs/heads/master | 2020-08-07T02:00:01.277372 | 2019-10-21T23:19:06 | 2019-10-21T23:19:06 | 213,242,917 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 848 | java | package com.bretthirschberger.project2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
public class SplashActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new Thread(){
@Override
public void run() {
super.run();
try {
sleep(1500);
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
startActivity(intent);
finish();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}.start();
}
}
| [
"bretthirschberger@gmail.com"
] | bretthirschberger@gmail.com |
688c76205b6d31e283335d44353c159f67740b58 | a57c97bf5405ed8865eb565691b719786a2b231b | /STL_NIS/src/main/java/com/stee/dto/realtime/Response.java | c39c030a4135899c92029bcc7bf11c9a5b1d108b | [] | no_license | JerryDean/OfficeRepository | 683e1bd1013e6b5c5e66aa6e84b44368fcb1980a | b8aa21c357eb648a65994eecbfaee806dbb968e5 | refs/heads/master | 2021-01-19T04:17:06.851916 | 2017-04-11T09:49:37 | 2017-04-11T09:49:37 | 62,019,403 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,955 | java | /* Copyright (C) 2016, ST Electronics Info-Comm Systems PTE. LTD
* All rights reserved.
*
* This software is confidential and proprietary property of
* ST Electronics Info-Comm Systems PTE. LTD.
* The user shall not disclose the contents of this software and shall
* only use it in accordance with the terms and conditions stated in
* the contract or license agreement with ST Electronics Info-Comm Systems PTE. LTD.
*
* Project Name : STL_NIA
* File Name : Response
* Author : Jerry
* Created : 2016/12/16
*
* <p> History : <br><br>
*
* SNo / CR PR_No / Modified by / Date Modified / Comments <br>
* --------------------------------------------------------------------------------
*
*/
package com.stee.dto.realtime;
import java.util.Date;
import javax.xml.bind.annotation.XmlType;
/**
* Created by SerryMiano on 2016/12/16.
*/
@XmlType(propOrder = {"status", "date", "value", "statusInfo"})
public class Response {
private String status;
private Date date;
private Object value;
private String statusInfo;
@Override
public String toString() {
return "Response{" +
"status='" + status + '\'' +
", date='" + date + '\'' +
", value='" + value + '\'' +
", statusInfo='" + statusInfo + '\'' +
'}';
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public void setValue(String value) {
this.value = value;
}
public String getStatusInfo() {
return statusInfo;
}
public void setStatusInfo(String statusInfo) {
this.statusInfo = statusInfo;
}
}
| [
"jerry_dean@sina.com"
] | jerry_dean@sina.com |
a748ff580d6d15cc46af1a3e75c11f2928dfba90 | 89a256e3dd64c43d12a953e12e5712a135f10335 | /CThread/src/hk/stockino/thread/NewFixedThreadPoolTest.java | 051134cc6748834fe2971574118f0fd5f0fd4c00 | [] | no_license | RCXLD/Thread_Java_FourWays | 5080fac7e2c098bb00697b380e6469b28707ec47 | 1d5b46738ab5968832c8e502e2eaf6a11490ec1d | refs/heads/master | 2021-05-29T19:03:23.502891 | 2014-07-23T03:04:37 | 2014-07-23T03:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 629 | java | package hk.stockino.thread;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class NewFixedThreadPoolTest {
public static void main(String[] argStrings)
{
ExecutorService fixedThreadPoolExecutorService=Executors.newFixedThreadPool(3);
for(int i=0;i<10;i++){
final int index=i;
fixedThreadPoolExecutorService.execute(new Runnable(){
public void run (){
try {
System.out.println(index);
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
}
}
}
| [
"qyv.liu@gmail.com"
] | qyv.liu@gmail.com |
1f1c5a4eb45e3730634b0f5e6afc479000ade00f | cd22a855f3c705e97c816fbadc263a02b60d370c | /src/test/java/steps/MainPageUISteps.java | fc4ae2c4bd5c5363eed176614312ca060fe690af | [] | no_license | Vatamanenco/EnterMdTestFramework | 62d1a4c33fe3a49c2db6b2ac852ed6faec4aeb4f | 2af4c62ec2ed996101ecc7ff563bb60a28d8799f | refs/heads/master | 2023-07-22T08:53:36.451036 | 2019-12-27T08:31:08 | 2019-12-27T08:31:08 | 230,404,050 | 0 | 0 | null | 2023-07-06T23:50:53 | 2019-12-27T08:30:27 | Java | UTF-8 | Java | false | false | 1,487 | java | package steps;
import cucumber.api.java.en.Then;
import org.apache.log4j.Logger;
import pages.MainPage;
import pages.Page;
import util.Driver;
import util.TakeScreens;
import util.Waiter;
public class MainPageUISteps {
Page page = new Page();
MainPage mainPage = page.getMainPage();
static Logger log = Logger.getLogger(MainPageUISteps.class);
@Then("^All non-changeable elements with text are displayed on selected language$")
public void thenAllNonChangeableElementsWithTextAreDisplayedOnSelectedLanguage() {
Waiter.waitByXPath("//div[contains(@class,'uk-flex-middle attar-header')]//div[contains(@class,'uk-width-auto@m')]");
TakeScreens.takeScreenshot(Driver.getDriver(), "Language is changed, user is on main page");
mainPage.assertMainPageUIElements();
TakeScreens.takeScreenshot(Driver.getDriver(), "UI elements checked");
log.info("UI elements are present");
}
@Then("^All non-changeable elements is present and selected language is romanian$")
public void allNonChangeableElementsIsPresentAndSelectedLanguageIsRomanian() {
Waiter.waitByXPath("//div[contains(@class,'uk-flex-middle attar-header')]//div[contains(@class,'uk-width-auto@m')]");
TakeScreens.takeScreenshot(Driver.getDriver(), "Is on main page");
mainPage.assertMainPageUIElements();
TakeScreens.takeScreenshot(Driver.getDriver(), "UI elements checked");
log.info("UI elements are present");
}
}
| [
"Ogogo761967"
] | Ogogo761967 |
bc145ecebc2bc68f105a36bca7f82d2e40016b00 | 89d142435d649cbc5cdc0004745502da422bb1af | /src/com/kausha/algo/leetcode/Permutations.java | 72a416b91b98992d466a7fdbef97bdecdb747a4e | [] | no_license | kaushlendra-rai/MyAlgo | 31360f1b623e3dfc44bdc4a34b0e645de265a734 | fdb0956affa662b5b399388947041cd94fea42e1 | refs/heads/master | 2022-07-15T06:23:26.985066 | 2022-06-02T02:50:29 | 2022-06-02T02:50:29 | 177,527,131 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,484 | java | package com.kausha.algo.leetcode;
import java.util.*;
// https://leetcode.com/problems/permutations/
/**
Given an array nums of distinct integers, return all the possible permutations.
You can return the answer in any order.
Example 1:
Input: nums = [1,2,3]
Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
Example 2:
Input: nums = [0,1]
Output: [[0,1],[1,0]]
* @author sinkar
*
*/
public class Permutations {
public static void main(String[] args) {
Permutations p = new Permutations();
int[] nums = new int[] {1, 2, 3};
//int[] nums = new int[] {0};
System.out.println(p.permute(nums));
}
public List<List<Integer>> permute(int[] arrNums) {
List<Integer> nums = new ArrayList<>();
for(int num : arrNums)
nums.add(num);
List<List<Integer>> result = new ArrayList<>();
permute(result, nums, new ArrayList<>());
return result;
}
public void permute(List<List<Integer>> result, List<Integer> remaining, List<Integer> curr) {
if(remaining.isEmpty()) {
result.add(curr);
}else {
for(int i=0; i < remaining.size(); i++) {
List<Integer> nums = new ArrayList<>();
List<Integer> newCurr = new ArrayList<>(curr);
for(int j=0; j < remaining.size(); j++)
if(i != j)
nums.add(remaining.get(j));
newCurr.add(remaining.get(i));
permute(result, nums, newCurr);
}
}
}
}
| [
"rai.kaushal@gmail.com"
] | rai.kaushal@gmail.com |
a0e3f5e1c789dd94a334eaaf3da2d2fc70f78a4e | 7a7ba2805a15059c30f31e1b352ab6aa30592de7 | /awd.cloud.platform/awd.cloud.platform.api/src/main/java/awd/cloud/platform/controller/kss/Kss_WpbgController.java | 8bbe44beeb4f6b8962f44933da0f8a8e88b7013f | [] | no_license | tony-catalina/Peking_cloud2 | bc1bf7f377b68ce06c77d2de36554893eaabc697 | c47db69483c203f4aefd37a034ada6aeb182c4fd | refs/heads/master | 2022-12-13T14:55:37.859352 | 2020-03-02T08:13:48 | 2020-03-02T08:13:48 | 244,308,357 | 0 | 1 | null | 2022-12-06T00:46:17 | 2020-03-02T07:35:13 | JavaScript | UTF-8 | Java | false | false | 12,706 | java | /*
* Copyright 2008 [rapid-framework], Inc. All rights reserved.
* Website: http://www.rapid-framework.org.cn
*/
package awd.cloud.platform.controller.kss;
import awd.cloud.platform.api.KssServerApis;
import awd.cloud.platform.api.KssService;
import awd.cloud.platform.service.PublicService;
import awd.cloud.platform.utils.*;
import awd.framework.common.utils.OpenAPI;
import awd.framework.common.utils.StringUtils;
import com.alibaba.fastjson.JSON;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
@RestController
@RefreshScope
@RequestMapping("/v4/kss/wpjs")
@Api(tags = "kss-wpbg",description = "wpbg")
public class Kss_WpbgController extends PublicService {
@Autowired
private KssServerApis kssServerApis;
/**
* @api {get} /v4/kss/wpbg/wpjsList 根据人员编号查询物品接收
* @apiVersion 0.4.0
* @apiName wpjsList
* @apiGroup g_kss
* @apiPermission any
* @apiDescription 根据人员编号查询物品接收
*
* @apiParam {String} appcode 应用代码(必填)
* @apiParam {String} jsbh 监所编号(必填;最大字段长度:9)
* @apiParam {String} json 查询参数集
*
* @apiSuccess {String}id id
* @apiSuccess {String}rybh 人员编号
* @apiSuccess {String}jsbh 监所编号
* @apiSuccess {String}jsbhString 监所编号(已转换)
* @apiSuccess {String}srlx 接收类型
* @apiSuccess {String}srlxString 接收类型(已转换)
* @apiSuccess {String}jswpmc 接受物品名称
* @apiSuccess {String}jszjh 家属证件号
* @apiSuccess {String}djr 登记人
* @apiSuccess {String}djsj 登记时间
* @apiSuccess {String}fzdbh 封装袋编号
* @apiSuccess {String}fzdsl 封装袋数量
* @apiSuccess {String}djwpsl 大件物品数量
* @apiSuccess {String}djwpbh 大件物品编号
* @apiSuccess {String}bz 备注
* @apiSuccess {String}state 状态
* @apiSuccess {String}stateString 状态(已转换)
* @apiSuccess {String}creator 创建人
* @apiSuccess {String}createtime 创建时间
* @apiSuccess {String}updator 修改人
* @apiSuccess {String}updatetime 修改时间
* @apiSuccess {String}message 返回信息
* @apiSuccess {String}result 返回结果
* @apiSuccess {String}total 返回总数
* @apiSuccess {String}data 返回数据
* @apiSuccess {String}status 返回状态
* @apiSuccess {String}timestamp 时间戳
*
* @apiSuccessExample {json} 返回 (成功):
* HTTP/1.1 200 OK
*
* {
* "message": "查询成功",
* "result": {
* "total": 268,
* "data": [
* {
* id: "11000011420200120000263"
* rybh: "110000114202001200001"
* jsbh: "110000114"
* jsbhString: null
* srlx: "1"
* srlxString: null
* jswpmc: "24"
* jszjh: null
* djr: "管理员"
* djsj: null
* fzdbh: "0002"
* fzdsl: 1
* djwpsl: 1
* djwpbh: "0001"
* bz: ",sda,,,,,,,"
* state: "R2"
* stateString: null
* creator: "管理员"
* createtime: "2020-01-20 11:44:51"
* updator: null
* updatetime: null
* },
* ],
* "page": "1"
* },
* "status": 200,
* "timestamp": 1578447454182
* }
*
* @apiUse QueryError
*
* @apiExample 请求参数:
* appcode:"应用代码(必填)",
* jsbh:"监所编号(必填; 最大字段长度:9)(必填)",
* json:{
* "rybh":"人员编号"
* "page": "当前页数",
* "rows": "一页数据量",
* "sort": "id",
* "order": "desc"
* }
*
*
*/
@ApiOperation("根据人员编号查询物品接收")
@GetMapping("/wpjsList")
@HystrixCommand
@ApiResponses({@ApiResponse(code = 200, message = "查询成功"), @ApiResponse(code = 401, message = "未授权"),
@ApiResponse(code = 403, message = "无权限"), @ApiResponse(code = 404, message = "数据不存在")})
@OpenAPI
public ResponseMessage<Map<String, Object>> wpjsList(HttpServletRequest request, @RequestParam(name = "appcode")String appcode, @RequestParam(name = "jsbh")String jsbh, String json) {
String interfaceId = "/v4/kss/wpbg/wpjsList";
String state = request.getParameter("state");
try {
ResponseMessage<Map<String, Object>> maps = this.userAuthorizatio(request, json, interfaceId);
if (maps.getStatus() != 200) {
return ResponseMessage.error(maps.getMessage());
}
//查询参数
QueryParam param = new QueryParam();
if (!StringUtils.isNullOrEmpty(jsbh)) {
param.and("jsbh", TermType.eq, jsbh);
}
if (!StringUtils.isNullOrEmpty(maps.getResult().get("rybh"))) {
param.and("rybh", TermType.eq, maps.getResult().get("rybh"));
}
DefaultQueryParam.addDefaultQueryParam(request, param, state);
System.err.println("param--" + JSON.toJSONString(param));
ResponseMessage<PagerResult<Map<String, Object>>> result = kssServerApis.wpjsQueryForPage(param);
System.err.println("result" + JSON.toJSONString(result));
//封装需要的数据
Map<String, Object> maplist = new HashMap<String, Object>();
maplist.put("entity", result.getResult().getData());
maplist.put("interfaceId", interfaceId);
maplist.put("total", result.getResult().getTotal());
maplist.put("page", request.getParameter("page"));
ResponseMessage<Map<String, Object>> list = this.kfzdShow(maplist);
if (list.getStatus() == 200) {
list.setMessage("查询成功");
if (list.getResult() == null) {
list.setMessage("未查询数据");
}
}
return list;
} catch (Exception e) {
e.printStackTrace();
return ResponseMessage.error("查询失败!");
}
}
/**
* @api {get} /v4/kss/wpbg/wpglList 根据物品接收id查询物品
* @apiVersion 0.4.0
* @apiName wpjsList
* @apiGroup g_kss
* @apiPermission any
* @apiDescription 根据物品接收id查询物品
*
* @apiParam {String} appcode 应用代码(必填)
* @apiParam {String} jsbh 监所编号(必填;最大字段长度:9)
* @apiParam {String} json 查询参数集
*
* @apiSuccess {String}id id
* @apiSuccess {String}rybh 人员编号
* @apiSuccess {String}jsbh 监所编号
* @apiSuccess {String}jsbhString 监所编号(已转换)
* @apiSuccess {String}wpjsid 物品接收id
* @apiSuccess {String}wpmc 物品名称
* @apiSuccess {String}sl 数量
* @apiSuccess {String}xh 型号
* @apiSuccess {String}tz 特征
* @apiSuccess {String}lqzt 领取状态
* @apiSuccess {String}lqrq 领取日期
* @apiSuccess {String}bz 备注
* @apiSuccess {String}creator 创建人
* @apiSuccess {String}createtime 创建时间
* @apiSuccess {String}updator 修改人
* @apiSuccess {String}updatetime 修改时间
* @apiSuccess {String}lqr 领取人
* @apiSuccess {String}wpmcString 物品名称(已转换)
* @apiSuccess {String}lqztString 领取状态(已转换)
* @apiSuccess {String}message 返回信息
* @apiSuccess {String}result 返回结果
* @apiSuccess {String}total 返回总数
* @apiSuccess {String}data 返回数据
* @apiSuccess {String}status 返回状态
* @apiSuccess {String}timestamp 时间戳
*
* @apiSuccessExample {json} 返回 (成功):
* HTTP/1.1 200 OK
*
* {
* "message": "查询成功",
* "result": {
* "total": 268,
* "data": [
* {
* id: "11000011420200115000379"00263"
* rybh: "110000114201912190006"00001"
* jsbh: "110000114"
* jsbhString: "北京市第一看守所"
* wpjsid: "11000011420200115000259"
* wpmc: "3"
* sl: 1
* xh: "1"
* tz: "1"
* lqzt: "0"
* lqrq: null
* bz: ""
* creator: "管理员"
* createtime: "2020-01-15 13:28:23"
* updator: ""
* updatetime: null
* lqr: ""
* wpmcString: "卫生裤"
* lqztString: "未领取" 11:44:51"
* },
* ],
* "page": "1"
* },
* "status": 200,
* "timestamp": 1578447454182
* }
*
* @apiUse QueryError
*
* @apiExample 请求参数:
* appcode:"应用代码(必填)",
* jsbh:"监所编号(必填; 最大字段长度:9)(必填)",
* json:{
* "id":"物品接收id",
* "page": "当前页数",
* "rows": "一页数据量",
* "sort": "id",
* "order": "desc"
* }
*/
@ApiOperation("根据物品接收id查询物品")
@GetMapping("/wpglList")
@HystrixCommand
@ApiResponses({@ApiResponse(code = 200, message = "查询成功"), @ApiResponse(code = 401, message = "未授权"),
@ApiResponse(code = 403, message = "无权限"), @ApiResponse(code = 404, message = "数据不存在")})
@OpenAPI
public ResponseMessage<Map<String, Object>> wpglList(HttpServletRequest request, @RequestParam(name = "appcode")String appcode, @RequestParam(name = "jsbh")String jsbh, String json) {
String interfaceId = "/v4/kss/wpbg/wpglList";
String state = request.getParameter("state");
try {
ResponseMessage<Map<String, Object>> maps = this.userAuthorizatio(request, json, interfaceId);
if (maps.getStatus() != 200) {
return ResponseMessage.error(maps.getMessage());
}
//查询参数
QueryParam param = new QueryParam();
if (!StringUtils.isNullOrEmpty(jsbh)) {
param.and("jsbh", TermType.eq, jsbh);
}
if (!StringUtils.isNullOrEmpty(maps.getResult().get("wpjsid"))) {
param.and("wpjsid", TermType.eq, maps.getResult().get("wpjsid"));
}
DefaultQueryParam.addDefaultQueryParam(request, param, state);
System.err.println("param--" + JSON.toJSONString(param));
ResponseMessage<PagerResult<Map<String, Object>>> result = kssServerApis.wpjsQueryForPage(param);
System.err.println("result" + JSON.toJSONString(result));
//封装需要的数据
Map<String, Object> maplist = new HashMap<String, Object>();
maplist.put("entity", result.getResult().getData());
maplist.put("interfaceId", interfaceId);
maplist.put("total", result.getResult().getTotal());
maplist.put("page", request.getParameter("page"));
ResponseMessage<Map<String, Object>> list = this.kfzdShow(maplist);
if (list.getStatus() == 200) {
list.setMessage("查询成功");
if (list.getResult() == null) {
list.setMessage("未查询数据");
}
}
return list;
} catch (Exception e) {
e.printStackTrace();
return ResponseMessage.error("查询失败!");
}
}
}
| [
"m13635576437@163.com"
] | m13635576437@163.com |
bbfc80d9f76226ba5da19021df9727bdb0c6836d | 7ce1aa6478fb54fc8d948a9a2eabe5cc755091de | /Week_07/src/main/java/com/example/demo/service/UserService.java | 2726801d27f9845f170bcd836d23ca16ee45271d | [] | no_license | Elita0208/JAVA-000 | e3be3b957fa89b50f8d2277e74ed0632b0a96f65 | 90e307cc6eb510ac263e9d5ea40e7e38f9e04b9b | refs/heads/main | 2023-01-22T20:19:01.400589 | 2020-12-02T07:32:16 | 2020-12-02T07:32:16 | 302,791,386 | 0 | 0 | null | 2020-10-10T01:46:27 | 2020-10-10T01:46:27 | null | UTF-8 | Java | false | false | 124 | java | package com.example.demo.service;
import com.example.demo.model.User;
public interface UserService {
User getAll();
}
| [
"anitee0208@gmail.com"
] | anitee0208@gmail.com |
b075b9efaaed6846872c3618a1d2170f2d8e8d1e | d44e436364adb68a725805f5a082019afd8997ef | /AhDB/src/com/ahmap/domain/UserClass.java | b94523dec227b496ba36c5901617c05ae2b65893 | [] | no_license | DOITDEV/GIS | 10f7883d13e39edc6d1f98b850425001bc0ed336 | 409c7fbb32c54fca6f3077de831ae32c87f6a877 | refs/heads/master | 2020-04-20T17:53:23.177378 | 2013-10-08T09:00:14 | 2013-10-08T09:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 357 | java | package com.ahmap.domain;
public class UserClass {
private int classId;
private String className;
public int getClassId() {
return classId;
}
public void setClassId(int classId) {
this.classId = classId;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
}
| [
"cyj91516@aliyun.com"
] | cyj91516@aliyun.com |
41f81f66c0e76183fb7b2de87c2f489e29aba2dd | 76760b760668d2b1a0e81f04370d7df269164675 | /src/test/java/com/mulesoft/training/HelloMavenTest.java | 2558f2ae60ea987c0bd9d263605cd1e4e562016a | [] | no_license | angelalberici/maven-project | 8ad39ce0e358a55a5203943d4322c792a99ca336 | e39c80cd0c9fd6b148a206bc26a423311b3587de | refs/heads/master | 2020-04-29T16:34:33.521767 | 2019-03-19T10:12:28 | 2019-03-19T10:12:28 | 176,266,006 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 740 | java | package com.mulesoft.training;
import static org.junit.Assert.*;
import org.junit.Test;
import org.mule.api.MuleEvent;
import org.mule.tck.junit4.FunctionalTestCase;
public class HelloMavenTest extends FunctionalTestCase {
@Test
public void retrieveFlightsAddsAppropriateHeader() throws Exception {
MuleEvent event = runFlow("retrieveFlights");
String contentType = event.getMessage().getOutboundProperty("Content-Type");
assertEquals("application/json", contentType);
}
@Test
public void mavenFlowReturnsHelloMaven() throws Exception {
runFlowAndExpect("mavenFlow", "Hello Maven");
}
@Override
protected String getConfigFile() {
return "maven-project.xml";
}
}
| [
"angel.alberici@angelalber-ltm2.internal.salesforce.com"
] | angel.alberici@angelalber-ltm2.internal.salesforce.com |
d5ec2b58b2aa8045a2933c75930f49de9070d66b | 661d2a36bf48ffaab7c8317211bccd09a92e6b67 | /Glow Store/app/build/generated/not_namespaced_r_class_sources/debug/r/androidx/recyclerview/R.java | 0b67355dd12429187e63687feab5827afd08c61c | [] | no_license | nezarra/glowstore | ca1a4218a07a594b7508ae3fad001af0f083466a | 907c2d7c93f532e2fe03f1d9f8429e483b93d263 | refs/heads/main | 2023-06-24T08:25:12.224032 | 2021-07-18T17:18:20 | 2021-07-18T17:18:20 | 387,230,242 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,789 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package androidx.recyclerview;
public final class R {
private R() {}
public static final class attr {
private attr() {}
public static final int alpha = 0x7f040027;
public static final int fastScrollEnabled = 0x7f0400e8;
public static final int fastScrollHorizontalThumbDrawable = 0x7f0400e9;
public static final int fastScrollHorizontalTrackDrawable = 0x7f0400ea;
public static final int fastScrollVerticalThumbDrawable = 0x7f0400eb;
public static final int fastScrollVerticalTrackDrawable = 0x7f0400ec;
public static final int font = 0x7f0400ef;
public static final int fontProviderAuthority = 0x7f0400f1;
public static final int fontProviderCerts = 0x7f0400f2;
public static final int fontProviderFetchStrategy = 0x7f0400f3;
public static final int fontProviderFetchTimeout = 0x7f0400f4;
public static final int fontProviderPackage = 0x7f0400f5;
public static final int fontProviderQuery = 0x7f0400f6;
public static final int fontStyle = 0x7f0400f7;
public static final int fontVariationSettings = 0x7f0400f8;
public static final int fontWeight = 0x7f0400f9;
public static final int layoutManager = 0x7f040129;
public static final int recyclerViewStyle = 0x7f0401a1;
public static final int reverseLayout = 0x7f0401a2;
public static final int spanCount = 0x7f0401b7;
public static final int stackFromEnd = 0x7f0401bd;
public static final int ttcIndex = 0x7f040226;
}
public static final class color {
private color() {}
public static final int notification_action_color_filter = 0x7f06007a;
public static final int notification_icon_bg_color = 0x7f06007b;
public static final int ripple_material_light = 0x7f060085;
public static final int secondary_text_default_material_light = 0x7f060088;
}
public static final class dimen {
private dimen() {}
public static final int compat_button_inset_horizontal_material = 0x7f070051;
public static final int compat_button_inset_vertical_material = 0x7f070052;
public static final int compat_button_padding_horizontal_material = 0x7f070053;
public static final int compat_button_padding_vertical_material = 0x7f070054;
public static final int compat_control_corner_material = 0x7f070055;
public static final int compat_notification_large_icon_max_height = 0x7f070056;
public static final int compat_notification_large_icon_max_width = 0x7f070057;
public static final int fastscroll_default_thickness = 0x7f070086;
public static final int fastscroll_margin = 0x7f070087;
public static final int fastscroll_minimum_range = 0x7f070088;
public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f070092;
public static final int item_touch_helper_swipe_escape_max_velocity = 0x7f070093;
public static final int item_touch_helper_swipe_escape_velocity = 0x7f070094;
public static final int notification_action_icon_size = 0x7f0700c5;
public static final int notification_action_text_size = 0x7f0700c6;
public static final int notification_big_circle_margin = 0x7f0700c7;
public static final int notification_content_margin_start = 0x7f0700c8;
public static final int notification_large_icon_height = 0x7f0700c9;
public static final int notification_large_icon_width = 0x7f0700ca;
public static final int notification_main_column_padding_top = 0x7f0700cb;
public static final int notification_media_narrow_margin = 0x7f0700cc;
public static final int notification_right_icon_size = 0x7f0700cd;
public static final int notification_right_side_padding_top = 0x7f0700ce;
public static final int notification_small_icon_background_padding = 0x7f0700cf;
public static final int notification_small_icon_size_as_large = 0x7f0700d0;
public static final int notification_subtext_size = 0x7f0700d1;
public static final int notification_top_pad = 0x7f0700d2;
public static final int notification_top_pad_large_text = 0x7f0700d3;
}
public static final class drawable {
private drawable() {}
public static final int notification_action_background = 0x7f0800ac;
public static final int notification_bg = 0x7f0800ad;
public static final int notification_bg_low = 0x7f0800ae;
public static final int notification_bg_low_normal = 0x7f0800af;
public static final int notification_bg_low_pressed = 0x7f0800b0;
public static final int notification_bg_normal = 0x7f0800b1;
public static final int notification_bg_normal_pressed = 0x7f0800b2;
public static final int notification_icon_background = 0x7f0800b3;
public static final int notification_template_icon_bg = 0x7f0800b4;
public static final int notification_template_icon_low_bg = 0x7f0800b5;
public static final int notification_tile_bg = 0x7f0800b6;
public static final int notify_panel_notification_icon_bg = 0x7f0800b7;
}
public static final class id {
private id() {}
public static final int accessibility_action_clickable_span = 0x7f090006;
public static final int accessibility_custom_action_0 = 0x7f090007;
public static final int accessibility_custom_action_1 = 0x7f090008;
public static final int accessibility_custom_action_10 = 0x7f090009;
public static final int accessibility_custom_action_11 = 0x7f09000a;
public static final int accessibility_custom_action_12 = 0x7f09000b;
public static final int accessibility_custom_action_13 = 0x7f09000c;
public static final int accessibility_custom_action_14 = 0x7f09000d;
public static final int accessibility_custom_action_15 = 0x7f09000e;
public static final int accessibility_custom_action_16 = 0x7f09000f;
public static final int accessibility_custom_action_17 = 0x7f090010;
public static final int accessibility_custom_action_18 = 0x7f090011;
public static final int accessibility_custom_action_19 = 0x7f090012;
public static final int accessibility_custom_action_2 = 0x7f090013;
public static final int accessibility_custom_action_20 = 0x7f090014;
public static final int accessibility_custom_action_21 = 0x7f090015;
public static final int accessibility_custom_action_22 = 0x7f090016;
public static final int accessibility_custom_action_23 = 0x7f090017;
public static final int accessibility_custom_action_24 = 0x7f090018;
public static final int accessibility_custom_action_25 = 0x7f090019;
public static final int accessibility_custom_action_26 = 0x7f09001a;
public static final int accessibility_custom_action_27 = 0x7f09001b;
public static final int accessibility_custom_action_28 = 0x7f09001c;
public static final int accessibility_custom_action_29 = 0x7f09001d;
public static final int accessibility_custom_action_3 = 0x7f09001e;
public static final int accessibility_custom_action_30 = 0x7f09001f;
public static final int accessibility_custom_action_31 = 0x7f090020;
public static final int accessibility_custom_action_4 = 0x7f090021;
public static final int accessibility_custom_action_5 = 0x7f090022;
public static final int accessibility_custom_action_6 = 0x7f090023;
public static final int accessibility_custom_action_7 = 0x7f090024;
public static final int accessibility_custom_action_8 = 0x7f090025;
public static final int accessibility_custom_action_9 = 0x7f090026;
public static final int action_container = 0x7f09002e;
public static final int action_divider = 0x7f090030;
public static final int action_image = 0x7f090031;
public static final int action_text = 0x7f090037;
public static final int actions = 0x7f090038;
public static final int async = 0x7f09003f;
public static final int blocking = 0x7f090043;
public static final int chronometer = 0x7f09004e;
public static final int dialog_button = 0x7f090060;
public static final int forever = 0x7f090072;
public static final int icon = 0x7f09007c;
public static final int icon_group = 0x7f09007d;
public static final int info = 0x7f090080;
public static final int italic = 0x7f090082;
public static final int item_touch_helper_previous_elevation = 0x7f090083;
public static final int line1 = 0x7f09008f;
public static final int line3 = 0x7f090090;
public static final int normal = 0x7f0900a6;
public static final int notification_background = 0x7f0900a7;
public static final int notification_main_column = 0x7f0900a8;
public static final int notification_main_column_container = 0x7f0900a9;
public static final int right_icon = 0x7f0900ba;
public static final int right_side = 0x7f0900bb;
public static final int tag_accessibility_actions = 0x7f0900e8;
public static final int tag_accessibility_clickable_spans = 0x7f0900e9;
public static final int tag_accessibility_heading = 0x7f0900ea;
public static final int tag_accessibility_pane_title = 0x7f0900eb;
public static final int tag_screen_reader_focusable = 0x7f0900ec;
public static final int tag_transition_group = 0x7f0900ed;
public static final int tag_unhandled_key_event_manager = 0x7f0900ee;
public static final int tag_unhandled_key_listeners = 0x7f0900ef;
public static final int text = 0x7f0900f0;
public static final int text2 = 0x7f0900f1;
public static final int time = 0x7f0900f9;
public static final int title = 0x7f0900fa;
}
public static final class integer {
private integer() {}
public static final int status_bar_notification_info_maxnum = 0x7f0a000e;
}
public static final class layout {
private layout() {}
public static final int custom_dialog = 0x7f0c001e;
public static final int notification_action = 0x7f0c0036;
public static final int notification_action_tombstone = 0x7f0c0037;
public static final int notification_template_custom_big = 0x7f0c0038;
public static final int notification_template_icon_group = 0x7f0c0039;
public static final int notification_template_part_chronometer = 0x7f0c003a;
public static final int notification_template_part_time = 0x7f0c003b;
}
public static final class string {
private string() {}
public static final int status_bar_notification_info_overflow = 0x7f10002a;
}
public static final class style {
private style() {}
public static final int TextAppearance_Compat_Notification = 0x7f11011a;
public static final int TextAppearance_Compat_Notification_Info = 0x7f11011b;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f11011c;
public static final int TextAppearance_Compat_Notification_Time = 0x7f11011d;
public static final int TextAppearance_Compat_Notification_Title = 0x7f11011e;
public static final int Widget_Compat_NotificationActionContainer = 0x7f1101cc;
public static final int Widget_Compat_NotificationActionText = 0x7f1101cd;
}
public static final class styleable {
private styleable() {}
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f040027 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] FontFamily = { 0x7f0400f1, 0x7f0400f2, 0x7f0400f3, 0x7f0400f4, 0x7f0400f5, 0x7f0400f6 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f0400ef, 0x7f0400f7, 0x7f0400f8, 0x7f0400f9, 0x7f040226 };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
public static final int[] RecyclerView = { 0x10100c4, 0x10100eb, 0x10100f1, 0x7f0400e8, 0x7f0400e9, 0x7f0400ea, 0x7f0400eb, 0x7f0400ec, 0x7f040129, 0x7f0401a2, 0x7f0401b7, 0x7f0401bd };
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_android_clipToPadding = 1;
public static final int RecyclerView_android_descendantFocusability = 2;
public static final int RecyclerView_fastScrollEnabled = 3;
public static final int RecyclerView_fastScrollHorizontalThumbDrawable = 4;
public static final int RecyclerView_fastScrollHorizontalTrackDrawable = 5;
public static final int RecyclerView_fastScrollVerticalThumbDrawable = 6;
public static final int RecyclerView_fastScrollVerticalTrackDrawable = 7;
public static final int RecyclerView_layoutManager = 8;
public static final int RecyclerView_reverseLayout = 9;
public static final int RecyclerView_spanCount = 10;
public static final int RecyclerView_stackFromEnd = 11;
}
}
| [
"neselvia@gmail.com"
] | neselvia@gmail.com |
4d96e4154635245e8d6636617a7ff595fffd6c99 | 5fa318467e80894477cebd57b9b68eb1d228f1f4 | /samples/core/src/main/java/io/oasp/gastronomy/restaurant/eventsmanagement/logic/api/to/EventEto.java | 39559f6d4fe5b836a1381f6ca5ba05378c606e97 | [
"Apache-2.0"
] | permissive | elyamad/oasp4j | 937ad09e20fa8074bbb1d4215786350bea64afab | 247865d0a10d4c4e545a24220bf1325ac8bd386d | refs/heads/master | 2021-01-19T03:11:00.221897 | 2017-05-21T23:00:45 | 2017-05-21T23:00:45 | 87,308,850 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,475 | java | package io.oasp.gastronomy.restaurant.eventsmanagement.logic.api.to;
import io.oasp.gastronomy.restaurant.eventsmanagement.common.api.Event;
import io.oasp.module.basic.common.api.to.AbstractEto;
/**
* @author jalbenqu
*
*/
public class EventEto extends AbstractEto implements Event {
private static final long serialVersionUID = 1L;
private int session;
private Double data;
private String dateEvent;
private String eventname;
/**
* The constructor.
*/
public EventEto() {
super();
}
/**
* @return session
*/
public int getSession() {
return this.session;
}
/**
* @param session new value of {@link #getsession}.
*/
public void setSession(int session) {
this.session = session;
}
/**
* @return data
*/
public Double getData() {
return this.data;
}
/**
* @param data new value of {@link #getdata}.
*/
public void setData(Double data) {
this.data = data;
}
/**
* @return dateEvent
*/
public String getDateEvent() {
return this.dateEvent;
}
/**
* @param date new value of {@link #getdateEvent}.
*/
public void setDateEvent(String dateEvent) {
this.dateEvent = dateEvent;
}
/**
* @return eventname
*/
public String getEventname() {
return this.eventname;
}
/**
* @param eventname new value of {@link #geteventname}.
*/
public void setEventname(String eventname) {
this.eventname = eventname;
}
}
| [
"julienalbenque@gmail.com"
] | julienalbenque@gmail.com |
96153a0d6706caad3fa0ab753f677f8ae425515a | e680c1483a143a40fd5d92e0e0befbd9e2dcdf0d | /valid-sudoku/Solution.java | d6fc056dfef558de79dbc263fda8c6d6978ac4d9 | [] | no_license | grvgoel81/leetcode | a715ddb35442bbda21b66ecd88eb55bca2d836da | e490d6b109890db104ceeb3647bb60f954ca2bcf | refs/heads/master | 2022-08-19T10:24:08.871144 | 2020-05-26T10:12:08 | 2020-05-26T10:12:08 | 267,265,566 | 1 | 0 | null | 2020-05-27T08:36:19 | 2020-05-27T08:36:18 | null | UTF-8 | Java | false | false | 1,281 | java | public class Solution {
public boolean isValidSudoku(char[][] board) {
for (int i = 0; i < 9; i++) {
if (!checkValid(board, i, 0, 9)) {
return false;
}
}
for (int j = 0; j < 9; j++) {
if (!checkValid(board, 0, j, 1)) {
return false;
}
}
for (int i = 0; i < 9; i += 3) {
for (int j = 0; j < 9; j += 3) {
if (!checkValid(board, i, j, 3)) {
return false;
}
}
}
return true;
}
boolean checkValid(char[][] board, int r, int c, int columnLimit) {
boolean[] used = new boolean[10];
int offsetR = 0;
int offsetC = 0;
for (int i = 0; i < 9; i++) {
char cell = board[r + offsetR][c + offsetC];
if (cell != '.') {
int digit = cell - '0';
if (used[digit]) {
return false;
}
used[digit] = true;
}
offsetC++;
if (offsetC == columnLimit) {
offsetR++;
offsetC = 0;
}
}
return true;
}
}
| [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
85f3c889cdcd41e9e8a565a052677a2eb0c3cc39 | 5725405b6f788c5c57250b1c4d09a9aa56e14cc6 | /tapestry-core/src/test/java/org/apache/tapestry5/util/Transformer.java | 5dee893e3edd8026de8d81e85350acc72cab6be2 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"MIT",
"Apache-2.0",
"MIT-0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"MPL-1.1",
"CC-BY-2.5"
] | permissive | nirvdrum/tapestry5 | 614aff41a1b88ccfd5d907f9682d606b234089c9 | 773c7480d77826d80f50dee03057d56cab3ac824 | refs/heads/5.0 | 2022-12-23T01:42:32.675122 | 2009-01-13T17:54:26 | 2009-01-13T17:54:26 | 180,714 | 1 | 1 | Apache-2.0 | 2022-12-09T22:04:32 | 2009-05-13T00:17:00 | Java | UTF-8 | Java | false | false | 712 | java | // Copyright 2006 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.util;
public interface Transformer<T>
{
T transform(T input);
}
| [
"hlship@apache.org"
] | hlship@apache.org |
1647d66325f9d0a9e0c75543cd82d991c1fff7eb | 0cf279fff12d1a4af6ffff5810bfc88a5f9a8652 | /src/main/java/banking/Database.java | 9ec50b34f385d06e1b83bf07a16c03e432853053 | [] | no_license | IoSonoPiero/Simple_Banking_System | b5aa40cd9c7a60dfc0d5bcc9b47b6f6ceb3a7dee | a28552133cac0a33d831a6d34e14f3bd6895b378 | refs/heads/master | 2023-06-27T00:53:03.465371 | 2021-08-03T10:23:03 | 2021-08-03T10:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,561 | java | package banking;
import org.sqlite.SQLiteDataSource;
import java.sql.*;
public class Database {
String databaseName;
public void getBalance(Account account) {
String getBalanceSQL = "SELECT balance FROM card WHERE number = ? AND pin = ?";
try (Connection connection = this.connect();) {
try (PreparedStatement getBalance = connection.prepareStatement(getBalanceSQL)) {
getBalance.setString(1, account.getAccountNumber());
getBalance.setString(2, account.getPinNumber());
try (ResultSet cards = getBalance.executeQuery()) {
if (cards.next()) {
account.setBalance(cards.getLong("balance"));
}
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
}
public Account userLogin(String accountNumber, String pinNumber) {
String loginSQL = "SELECT number, pin, balance FROM card WHERE number = ? AND pin = ?";
try (Connection connection = this.connect();) {
try (PreparedStatement getAccount = connection.prepareStatement(loginSQL)) {
getAccount.setString(1, accountNumber);
getAccount.setString(2, pinNumber);
try (ResultSet cards = getAccount.executeQuery()) {
if (cards.next()) {
return new Account(cards.getString("number"), cards.getString("pin"), cards.getLong("balance"));
//return true;
}
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
return null;
}
private Connection connect() {
String url = "jdbc:sqlite:" + databaseName;
SQLiteDataSource dataSource = new SQLiteDataSource();
dataSource.setUrl(url);
Connection connection = null;
try {
connection = dataSource.getConnection();
} catch (SQLException exception) {
exception.printStackTrace();
}
return connection;
}
public void createDatabase() {
try (Connection connection = this.connect();) {
try (Statement statement = connection.createStatement()) {
statement.executeUpdate("CREATE TABLE IF NOT EXISTS card (" +
"id INTEGER PRIMARY KEY," +
"number TEXT NOT NULL," +
"pin TEXT NOT NULL," +
"balance INTEGER DEFAULT 0)");
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
}
public void createAccount(Account account) {
String insertCardSQL = "INSERT INTO \"card\" " +
"(number, pin) VALUES (?, ?)";
try (Connection connection = this.connect();) {
// Disable auto-commit mode
connection.setAutoCommit(false);
try (PreparedStatement insertAccount = connection.prepareStatement(insertCardSQL)) {
// Insert the account
insertAccount.setString(1, account.getAccountNumber());
insertAccount.setString(2, account.getPinNumber());
insertAccount.executeUpdate();
connection.commit();
} catch (SQLException exception) {
if (connection != null) {
try {
connection.rollback();
} catch (SQLException excep) {
excep.printStackTrace();
}
}
}
} catch (SQLException exception) {
exception.printStackTrace();
}
}
public void setFileName(String databaseFileName) {
this.databaseName = databaseFileName;
}
public void addIncome(Account account, long income) {
String updateBalanceSQL = "UPDATE card SET balance = balance + ? WHERE number = ? AND pin = ?";
try (Connection connection = this.connect();) {
// Disable auto-commit mode
connection.setAutoCommit(false);
try (PreparedStatement updateBalance = connection.prepareStatement(updateBalanceSQL)) {
// Insert the account
updateBalance.setLong(1, income);
updateBalance.setString(2, account.getAccountNumber());
updateBalance.setString(3, account.getPinNumber());
updateBalance.executeUpdate();
connection.commit();
} catch (SQLException exception) {
if (connection != null) {
try {
connection.rollback();
} catch (SQLException excep) {
excep.printStackTrace();
}
}
}
} catch (SQLException exception) {
exception.printStackTrace();
}
account.setBalance(account.getBalance() + income);
}
public void closeAccount(Account account) {
String closeAccountSQL = "DELETE FROM card WHERE number = ? AND pin = ?";
try (Connection connection = this.connect();) {
// Disable auto-commit mode
connection.setAutoCommit(false);
try (PreparedStatement deleteAccount = connection.prepareStatement(closeAccountSQL)) {
// Insert the account
deleteAccount.setString(1, account.getAccountNumber());
deleteAccount.setString(2, account.getPinNumber());
deleteAccount.executeUpdate();
connection.commit();
} catch (SQLException exception) {
if (connection != null) {
try {
connection.rollback();
} catch (SQLException excep) {
excep.printStackTrace();
}
}
}
} catch (SQLException exception) {
exception.printStackTrace();
}
}
public boolean checkCardExistent(String destinationCard) {
String loginSQL = "SELECT number FROM card WHERE number = ?";
try (Connection connection = this.connect();) {
try (PreparedStatement getAccount = connection.prepareStatement(loginSQL)) {
getAccount.setString(1, destinationCard);
try (ResultSet cards = getAccount.executeQuery()) {
if (cards.next()) {
return true;
}
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
} catch (SQLException exception) {
exception.printStackTrace();
}
return false;
}
public void transferMoney(String destinationCard, long moneyToTransfer) {
String moneyTransferSQL = "UPDATE card SET balance = balance + ? WHERE number = ?";
try (Connection connection = this.connect();) {
// Disable auto-commit mode
connection.setAutoCommit(false);
try (PreparedStatement updateBalance = connection.prepareStatement(moneyTransferSQL)) {
// Insert the account
updateBalance.setLong(1, moneyToTransfer);
updateBalance.setString(2, destinationCard);
updateBalance.executeUpdate();
connection.commit();
} catch (SQLException exception) {
if (connection != null) {
try {
connection.rollback();
} catch (SQLException excep) {
excep.printStackTrace();
}
}
}
} catch (SQLException exception) {
exception.printStackTrace();
}
}
} | [
"pierluigi.montinaro76+github@gmail.com"
] | pierluigi.montinaro76+github@gmail.com |
49f32220921c94390a6d5d34870f56135aa407bf | 773f04593d1258501f4b8d87012ed47801c4c56d | /src/main/java/co/ims/soa/ejbs/UsuarioEJB.java | e77fa3a5e173ec5f78af76140334c5857f5800d2 | [] | no_license | luis9499/RBAC_ControlAccesoBasadoRoles | 3fb68292492c0ec19f200b736db19e73febe667c | 7179a1ff00e0f56f4a479bc77fa8de064c9f4344 | refs/heads/master | 2021-01-20T07:15:33.704120 | 2017-06-04T22:41:44 | 2017-06-04T22:41:44 | 89,172,490 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,543 | java | /*
* Copyright (C) 2017 Luis Hernan Hurtado Montenegro <lhh9499@gmail.com>
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 1.0):
* <lhh9499@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return
* ----------------------------------------------------------------------------
*/
package co.ims.soa.ejbs;
import co.ims.soa.modelo.Usuario;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
/**
*
* @author Luis Hernan Hurtado Montenegro <lhh9499@gmail.com>
* @date 30/04/2017
*/
@Stateless
@Path("/usuario")
public class UsuarioEJB {
@PersistenceContext(unitName="co.ims.soa_rbac_war_1.0-SNAPSHOTPU")
protected EntityManager em;
private Object Renponse;
@GET
@Path("{idUsuario}")
@Produces("application/json")
public Usuario buscar(@PathParam("idUsuario") Integer usIdUsuario){
return em.find(Usuario.class, usIdUsuario);
}
@PUT
@Consumes("application/json")
@Produces("application/json")
public Usuario agregar(Usuario u){
em.persist(u);
em.flush();
return u;
}
@DELETE
@Path("idUsuario")
@Produces("application/json")
public Response eliminarUsuario(@PathParam("idUsuario")Integer uIdUsuario){
Usuario us = em.find(Usuario.class, uIdUsuario);
if(us!=null){
em.remove(us);
}
return Response.noContent().build();
}
@POST
@Produces("application/json")
@Consumes("application/json")
public Usuario actualizarUsuario(Usuario u){
em.merge(u);
return u;
}
@GET
@Produces("application/json")
public List<Usuario> buscarUsuarios(){
String jpql = "SELECT usua FROM Usuario usua";
TypedQuery<Usuario> q = em.createQuery(jpql, Usuario.class);
List<Usuario> resultado = q.getResultList();
return resultado;
}
}
| [
"lhh9499@gmail.com"
] | lhh9499@gmail.com |
b426b19bc3eb821e482b8a7788543fc8837b3bbe | 8248fa68afefaa3c2b0dac7e47a3b0f43c9d3a52 | /gateway-zuul/src/main/java/com/example/gatewayzuul/util/CorsHelper.java | aab8a1bd4a1a1d06a684bdc9044a40f764526483 | [] | no_license | wdcunha/microservices-rabbitmq | 7ff43a102c8ad4ce2212307b2d3c0248b55fca30 | 232ea0d1f743e99aa6b41bcbc54d2d109df7a7e8 | refs/heads/master | 2020-12-01T19:52:25.498834 | 2019-12-29T12:54:49 | 2019-12-29T12:54:49 | 230,745,209 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 769 | java | package com.example.gatewayzuul.util;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;
public class CorsHelper {
public static HttpServletResponse addResponseHeaders(ServletResponse res) {
HttpServletResponse httpResponse = (HttpServletResponse) res;
httpResponse.setHeader("Access-Control-Allow-Origin", "*");
httpResponse.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE");
httpResponse.setHeader("Access-Control-Max-Age", "3600");
httpResponse.setHeader("Access-Control-Allow-Credentials", "true");
httpResponse.setHeader("Access-Control-Allow-Headers", "content-type,Authorization");
return httpResponse;
}
}
| [
"ctw00558@criticaltechworks.com"
] | ctw00558@criticaltechworks.com |
ca81f0b205fe52aae4aebcfe8db0d4848de595d9 | 6abeb3eb4ec1dd3d0de72c762fe47f4d30e0d0b5 | /core/src/main/java/net/fabricmc/discord/bot/command/mod/ActionRole.java | 50c5ea239d89cec4807548754f453d2a78d8cae4 | [
"Apache-2.0"
] | permissive | FabricMC/discord-bot | 7e7fd13729c218bb8696c387ed256cbd71ea8af0 | ef50c65275670f230f5b569f033e1db87e902822 | refs/heads/master | 2023-09-02T16:19:40.102152 | 2023-04-16T14:25:30 | 2023-04-16T21:39:53 | 357,149,778 | 8 | 9 | Apache-2.0 | 2023-04-22T16:34:54 | 2021-04-12T10:24:06 | Java | UTF-8 | Java | false | false | 1,856 | java | /*
* Copyright (c) 2021 FabricMC
*
* 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 net.fabricmc.discord.bot.command.mod;
import org.javacord.api.entity.permission.Role;
import org.javacord.api.entity.server.Server;
import net.fabricmc.discord.bot.DiscordBot;
import net.fabricmc.discord.bot.config.ConfigKey;
import net.fabricmc.discord.bot.config.ValueSerializers;
enum ActionRole {
META_MUTE, MUTE, REACTION_MUTE, REQUESTS_MUTE, SUPPORT_MUTE;
ActionRole() {
configKey = new ConfigKey<>("action.%sRole".formatted(toJavaCase(name())), ValueSerializers.LONG);
}
public Role resolve(Server server, DiscordBot bot) {
long roleId = bot.getConfigEntry(configKey);
if (roleId < 0) return null;
return server.getRoleById(roleId).orElse(null);
}
static void registerConfig(DiscordBot bot) {
for (ActionRole role : values()) {
bot.registerConfigEntry(role.configKey, () -> -1L);
}
}
private static CharSequence toJavaCase(String s) {
StringBuilder ret = new StringBuilder(s.length());
boolean capital = false;
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if (c == '_') {
capital = true;
} else if (capital) {
ret.append(c);
capital = false;
} else {
ret.append(Character.toLowerCase(c));
}
}
return ret;
}
private final ConfigKey<Long> configKey;
}
| [
"player@player.to"
] | player@player.to |
422bb0d89068bb4290ca0f784dce86c04f2ad5c1 | a4e30c0d1be25ef085806a7921154a15e2554a2a | /src/Ch14_Lambda_Expressions_Method_References/LambdaDemo3.java | a92107f0143fd49c22ddbbbd47e5c9bbf897594c | [] | no_license | akapne01/Java-A-Beginner-s-Guide | ba82220c052006ffd3225341eaafb1e92beea11f | d661e066ca99f4ae5a8986a0da70d1593ac301cb | refs/heads/master | 2022-02-20T12:45:16.345966 | 2019-08-24T10:26:51 | 2019-08-24T10:26:51 | 186,996,853 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,115 | java | package Ch14_Lambda_Expressions_Method_References;
/**
* p. 498
* Lambda expressions can be used with functional interface not only with primitive data types,
* but also with Object data types.
* <p>
* Below functional interface that tests 2 strings.
*/
interface StringTest {
boolean test(String aStr, String bStr);
}
public class LambdaDemo3 {
public static void main(String[] args) {
/**
* This lambda expression determines if one string is a part of another.
*
* a.indexOf(b) => Returns the index within this string of the first
* occurrence of the specified substring. If not found returns -1.
*/
StringTest isIn = (a, b) -> a.indexOf(b) != -1;
String str = "This is a test";
System.out.println("Testing string: " + str);
if (isIn.test(str, "is a")) {
System.out.println("'is a' found");
} else {
System.out.println("is a' not found");
}
if (isIn.test(str, "xyz")) {
System.out.println("'xyz' found");
} else {
System.out.println("'xyz' not found");
}
}
}
| [
"agnese.kapnere@ig.com"
] | agnese.kapnere@ig.com |
5de59b81376da8b7ac8c7f06610deabaa4c991d8 | 5633551e053e913b7e24c879bae06119a723adea | /src/main/java/com/tz/online/book/IndexSelectAction.java | 0172f4d97bd87d75f15a90da9bbfaa3f586a0601 | [] | no_license | yasd/Movie | 1fdf3ca73405e75786e23c2eb284e6535357d9bf | bd16af81d2fe2b8fc4e798422aa09a667c51838e | refs/heads/master | 2021-01-01T06:37:01.654177 | 2017-07-20T09:58:53 | 2017-07-20T09:58:53 | 97,470,335 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,757 | java | package com.tz.online.book;
import java.io.IOException;
import java.util.List;
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.tz.online.entity.Book;
import com.tz.online.entity.Category;
import com.tz.online.service.IBookService;
import com.tz.online.util.BeanFactory;
@WebServlet(urlPatterns="/book/select")
public class IndexSelectAction extends HttpServlet{
private static final long serialVersionUID = 6876792693458651009L;
private IBookService bookService =(IBookService) BeanFactory.getBean("bookService");
@Override
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
Category category = null;
String bookName = req.getParameter("bookName");
String category1=req.getParameter("category");
if (null!=category1) {
category=Category.valueOf(category1);
}
List<Category> categories =bookService.findAll();
String pageNow =req.getParameter("pageNow");
if(pageNow==null){
pageNow="1";//默认从第一页开始
}
String pageSize =req.getParameter("pageSize");
if(null==pageSize){
pageSize="4";
}
List<Book> book =bookService.findAll(bookName, category, Long.valueOf(pageNow), Long.valueOf(pageSize));
System.out.println("++++++++++"+book);
System.out.println("++++++++++"+bookName);
req.setAttribute("categories",categories);
req.setAttribute("book",book);
req.setAttribute("category", category==null?"":category);
req.setAttribute("bookName",bookName==null?"":bookName);
req.getRequestDispatcher("/jsp/book/books_list.jsp").forward(req, resp);
}
}
| [
"1256199465@qq.com"
] | 1256199465@qq.com |
6f7fcb18817c99e8b77ea53d824d6396f1158e49 | 99e8efe66c7220d68552e98b4e697447fdf89177 | /app/src/main/java/ir/tapsell/sample/type/ListItemType.java | 612eaaf63be87f378c1b76f97b69b147d4f21dbe | [
"Apache-2.0"
] | permissive | Dimarik0706/TapsellSDK-AndroidSample | dc06a8e1f2a468f286779b2cfe9a280224c69140 | a2139d520c500133508a7627f79cc999aa4eab4d | refs/heads/master | 2020-06-02T05:48:56.826376 | 2019-05-11T09:40:22 | 2019-05-11T09:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 79 | java | package ir.tapsell.sample.type;
public enum ListItemType {
ITEM,
AD
}
| [
"behdad.222@gmail.com"
] | behdad.222@gmail.com |
83ab1695210cc2c2e51c83cb4f8703c79e0cc273 | 65db7b3e95b2bbf76be24a52870d9110b54ca556 | /app/src/main/java/com/eomsbd/cutprice/tabLayoutFragment/Tab10Fragment.java | 52d969b036adda174fd5029ea6438401c4fa27a4 | [] | no_license | ashrafulrobin2/CutPrice-bd-App | 6bd8ffa6dea543f37c04654c3e02c6268e7f7e09 | b42171b0e246f5ed7a5b90330edbfd069a234365 | refs/heads/master | 2020-05-20T12:24:36.799515 | 2019-06-15T20:04:08 | 2019-06-15T20:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 697 | java | package com.eomsbd.cutprice.tabLayoutFragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.eomsbd.cutprice.R;
/**
* A simple {@link Fragment} subclass.
*/
public class Tab10Fragment extends Fragment {
public Tab10Fragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_tab10, container, false);
}
}
| [
"robinashraful72@gmail.com"
] | robinashraful72@gmail.com |
f46ba76cf7c32356833a1b73892f627789b977f6 | 475a41231c1853cdd7210f5884dd03517cbbf6c6 | /1162-地图分析/src/main/java/Solution.java | 8c0681278f552ea7b4a62818245df38ec9f6fb41 | [] | no_license | ColdPepsi/Leetcode | dd349c1ddf3187ecbc32c0ddee9fff59e405ed89 | 1adac49f864bf57b0db41dbd6616d3b4cc5ebf19 | refs/heads/master | 2021-02-24T22:29:58.713247 | 2020-12-16T08:44:12 | 2020-12-16T08:44:12 | 245,442,512 | 9 | 6 | null | null | null | null | UTF-8 | Java | false | false | 2,294 | java | import java.util.LinkedList;
import java.util.Queue;
/**
* @author WuBiao
* @date 2020/7/5 21:51
*/
public class Solution {
private static int ROW;
private static int COL;
private static final int[][] DIRECTIONS = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}};
/**
* @param grid 二维数组
* @return int
* @description 多源BFS
* @author WuBiao
* @date 2020/7/5 21:51
*/
public int maxDistance(int[][] grid) {
ROW = grid.length;
COL = grid[0].length;
Queue<Pos> queue = new LinkedList<>();
for (int i = 0; i < ROW; i++) {
for (int j = 0; j < COL; j++) {
if (grid[i][j] == 1) {
queue.add(new Pos(i, j));//把1入队,从陆地开始BFS
}
}
}
if (queue.isEmpty() || queue.size() == ROW * COL) {//全0或者全1
return -1;
}
int step = 0;
while (!queue.isEmpty()) {
int size = queue.size();
for (int i = 0; i < size; i++) {//一层一层来
Pos front = queue.poll();
for (int[] direction : DIRECTIONS) {//遍历上下左右4个方向
int nextRow = front.row + direction[0];
int nextCol = front.col + direction[1];
if (!inArea(nextRow, nextCol) || grid[nextRow][nextCol] == 1) {
continue;
}
grid[nextRow][nextCol] = 1;//标记为已经访问
queue.add(new Pos(nextRow, nextCol));//加入队列
}
}
step++;
}
return step - 1;//因为最后一层,没有继续扩张,减1
}
/**
* @param row 横坐标
* @param col 纵坐标
* @return boolean
* @description 判断一个点是否在界内
* @author WuBiao
* @date 2020/7/5 21:53
*/
private boolean inArea(int row, int col) {
return row >= 0 && row < ROW && col >= 0 && col < COL;
}
}
/**
* @author WuBiao
* @description 坐标类
* @return
* @date 2020/7/5 21:54
*/
class Pos {
int row;//横坐标
int col;//纵坐标
public Pos(int row, int col) {
this.row = row;
this.col = col;
}
}
| [
"wubiao@mail.ustc.edu.cn"
] | wubiao@mail.ustc.edu.cn |
89b1d48804855ae185780ce2cefad697b23979e5 | c11c132b0a81cb900418ef8da5a2ff5d5ceaa8dd | /service/src/main/java/com/zwl/service/OrderService.java | 4a2e3cc03877204baf51b178cf8160087c0a88ba | [] | no_license | weiliangzhou/mall-boot | fbe2da33106c7fafe8024d8f26bc5e4130ae5ee5 | 24a0ad057857479d21fa3d17b065200941d544d0 | refs/heads/master | 2020-04-18T21:24:55.498828 | 2019-01-27T03:21:49 | 2019-01-27T03:21:49 | 167,764,203 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 817 | java | package com.zwl.service;
import com.zwl.model.po.Order;
import java.util.List;
/**
* @author 二师兄超级帅
* @Title: OrderService
* @ProjectName parent
* @Description: TODO
* @date 2018/7/920:51
*/
public interface OrderService {
List<Order> getOrderList(Order order);
int updateOrder(Order order);
Order findOrderByOrderNo(String OrderNo);
/**
* 作废超时订单
*/
void updateOrderSetOverTime();
/**
* 获取已支付的订单数
*
* @param userId
* @param productId
*/
int getAlreadyBuyCount(String userId, Long productId);
/**
* 根据手机号查询消费金额
*
* @param registerMobile
* @param mid
* @return
*/
Integer getConsumeAmountByPhoneAndMid(String registerMobile, String mid);
}
| [
"382308664@qq.com"
] | 382308664@qq.com |
cb23174169d2cd85144483c4db2109608708d83e | 66bf47ea24b2ec228f5f8148a5226048e6ef7987 | /app/src/main/java/com/jianhui_zhu/openuseragent/view/dialogs/NewBookmarkDialog.java | 4be3d57e41f6ba4ddba54c295e04b738376f4bea | [] | no_license | JianhuiZhu/OpenUserAgent | 3ec35b8039e40f427d7b9179ec7fa977c251db25 | 6141273789b341999efbfac7d7c61b5911778b1c | refs/heads/master | 2021-01-17T04:47:52.395947 | 2016-05-19T15:41:06 | 2016-05-19T15:41:06 | 50,534,804 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,163 | java | package com.jianhui_zhu.openuseragent.view.dialogs;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.Snackbar;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.EditText;
import com.jianhui_zhu.openuseragent.R;
import com.jianhui_zhu.openuseragent.model.BookmarkManager;
import com.jianhui_zhu.openuseragent.model.beans.Bookmark;
import com.jianhui_zhu.openuseragent.util.activity.MainActivity;
import com.jianhui_zhu.openuseragent.view.adapter.BookmarkAdapter;
import com.jianhui_zhu.openuseragent.viewmodel.BookmarkViewModel;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
* Created by jianhuizhu on 2016-04-05.
*/
public class NewBookmarkDialog extends DialogFragment {
BookmarkAdapter adapter;
CoordinatorLayout container;
BookmarkManager manager = new BookmarkManager();
BookmarkViewModel viewModel = new BookmarkViewModel();
@Bind(R.id.name)
EditText name;
@Bind(R.id.url)
EditText url;
@OnClick({R.id.done_bookmark,R.id.cancel_bookmark})
public void onClick(View view){
if(view.getId()==R.id.done_bookmark){
boolean setFocus = false;
if(name.getText().length()==0){
name.setError(getString(R.string.new_bookmark_name_error_msg));
name.requestFocus();
setFocus = true;
}
if(url.getText().length()==0){
url.setError(getString(R.string.new_bookmark_url_error_msg));
if(!setFocus){
url.requestFocus();
setFocus = true;
}
}
if(setFocus){
return;
}
Bookmark bookmark = new Bookmark();
bookmark.setName(name.getText().toString());
bookmark.setUrl(url.getText().toString());
viewModel.addBookmark(manager.addBookmark(bookmark),bookmark,container,adapter);
this.dismiss();
}else{
this.dismiss();
}
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
View view = inflater.inflate(R.layout.dialog_add_new_bookmark,container,false);
ButterKnife.bind(this,view);
return view;
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
container = ((MainActivity)getActivity()).getContainer();
}
public static NewBookmarkDialog newInstance(BookmarkAdapter adapter){
NewBookmarkDialog dialog = new NewBookmarkDialog();
dialog.adapter = adapter;
return dialog;
}
@Override
public void onDestroyView() {
super.onDestroyView();
ButterKnife.unbind(this);
}
}
| [
"jianhuizhu1987@gmail.com"
] | jianhuizhu1987@gmail.com |
197a0146009fce3a5253b7da9b309c938ccc8d7e | 60ae09105cb71912afb00390427f8f8291aec5c2 | /app/src/main/java/com/example/musicapp_mvvm/data/model/DataHelper.java | 11c44f45180937e7d86f8eb4838c83c3b5f0bd80 | [] | no_license | trieuthan92pro/MVVM_Example | 21158376f0ab50ddb7ff226d77eba808afd1451a | cd41c5f28705d0474b99aedd569e72d5904a8ded | refs/heads/master | 2020-04-27T12:05:52.814807 | 2019-03-07T10:14:17 | 2019-03-07T10:14:17 | 174,320,818 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,097 | java | package com.example.musicapp_mvvm.data.model;
public class DataHelper {
public class SoundCloud {
public static final String BASE_URL = "https://api-v2.soundcloud.com/";
public static final String PARAM_KIND = "charts?kind=top";
public static final String PARAM_GENRE = "&genre=soundcloud";
public static final String PARAM_CLIENT_ID = "&client_id=";
public static final String PARAM_TYPE = "%3Agenres%3A";
public static final String PARAM_LIMIT = "&limit=";
public static final String LIMIT = "20";
public static final String METHOD_GET = "GET";
public static final String SEARCH = "search";
public static final String QUERY_SEARCH = "/tracks?q=";
public static final int READ_TIMEOUT = 5000;
public static final int CONNECTION_TIMEOUT = 5000;
}
public class Stream {
public static final String STREAM_URL = "http://api.soundcloud.com/tracks/";
public static final String STREAM = "/stream";
public static final String STREAM_CLIENT_ID = "?client_id=";
}
}
| [
"trieu.van.than@framgia.com"
] | trieu.van.than@framgia.com |
5c3fb527853ee9a7152b8cc377216fd1b1b92941 | 2aaaf214f44513dc4f20d7673c67ce2c3fed3efc | /hw_sol/Fa18HW5/src/test/java/edu/berkeley/cs186/database/databox/TestFloatDataBox.java | 9901f95a1aab3da41c1cf69c147613fa67494b1c | [] | no_license | ultrox/cs186_19 | fb97b06fb36cf41c1231efcb711440bd82e61ed4 | 9f835e58e012a5fa3341f81e35feb52f660a324e | refs/heads/master | 2021-07-10T23:38:52.827014 | 2019-07-15T20:05:50 | 2019-07-15T20:05:50 | 196,753,524 | 5 | 2 | null | 2020-10-13T14:36:05 | 2019-07-13T18:25:18 | Java | UTF-8 | Java | false | false | 1,813 | java | package edu.berkeley.cs186.database.databox;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import edu.berkeley.cs186.database.common.ByteBuffer;
import org.junit.Test;
public class TestFloatDataBox {
@Test
public void testType() {
assertEquals(Type.floatType(), new FloatDataBox(0f).type());
}
@Test(expected = DataBoxException.class)
public void testGetBool() {
new FloatDataBox(0f).getBool();
}
@Test(expected = DataBoxException.class)
public void testGetInt() {
new FloatDataBox(0f).getInt();
}
@Test
public void testGetFloat() {
assertEquals(0f, new FloatDataBox(0f).getFloat(), 0.0001);
}
@Test(expected = DataBoxException.class)
public void testGetString() {
new FloatDataBox(0f).getString();
}
@Test
public void testToAndFromBytes() {
for (int i = -10; i < 10; ++i) {
FloatDataBox d = new FloatDataBox((float) i);
byte[] bytes = d.toBytes();
assertEquals(d, DataBox.fromBytes(ByteBuffer.wrap(bytes), Type.floatType()));
}
}
@Test
public void testEquals() {
FloatDataBox zero = new FloatDataBox(0f);
FloatDataBox one = new FloatDataBox(1f);
assertEquals(zero, zero);
assertEquals(one, one);
assertNotEquals(zero, one);
assertNotEquals(one, zero);
}
@Test
public void testCompareTo() {
FloatDataBox zero = new FloatDataBox(0f);
FloatDataBox one = new FloatDataBox(1f);
assertTrue(zero.compareTo(zero) == 0);
assertTrue(zero.compareTo(one) < 0);
assertTrue(one.compareTo(one) == 0);
assertTrue(one.compareTo(zero) > 0);
}
}
| [
"crashxx@gmail.com"
] | crashxx@gmail.com |
d09dd520c32d2494017a4962db09bf8880867bbd | 98ec8424f3bb8af10cc0c13f001f4294d9caaf3f | /Week4/Code/2-Tuesday/Organizing-Information-Lab/Starter/src/MainTest.java | d843465f5be466838e48757ee471ca884ab77856 | [] | no_license | le-christine/SEI | a2e5f0f661a3ce43a9ddff7e1c5a896e7cdc4f11 | 991ffdff23258453bc1c14dcbbe29ddef144b0e3 | refs/heads/master | 2022-12-23T02:12:47.670883 | 2019-10-30T02:13:26 | 2019-10-30T02:13:26 | 299,365,122 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,832 | java | import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Arrays;
class MainTest {
@Test
void findLargestAndSmallest() {
Assertions.assertArrayEquals(new int[]{1,7},Main.findLargestAndSmallest(new int[]{1,5,7,2,3}));
Assertions.assertArrayEquals(new int[]{3,3},Main.findLargestAndSmallest(new int[]{3,3}));
Assertions.assertArrayEquals(new int[]{1,5},Main.findLargestAndSmallest(new int[]{1,2,3,4,5}));
Assertions.assertArrayEquals(new int[]{7,7},Main.findLargestAndSmallest(new int[]{7,7,7,7,7,7}));
Assertions.assertArrayEquals(new int[]{3,5},Main.findLargestAndSmallest(new int[]{5,4,3}));
Assertions.assertArrayEquals(new int[]{-5,5},Main.findLargestAndSmallest(new int[]{5,4,-5,3}));
}
@Test
void removeDuplicatesFromArray() {
Object[] arr1 = Main.removeDuplicatesFromArray(new int[]{1,4,3,2,1});
Arrays.sort(arr1);
Assertions.assertArrayEquals(new Object[]{1,2,3,4},arr1);
Object[] arr2 = Main.removeDuplicatesFromArray(new int[]{4,3,2,1});
Arrays.sort(arr2);
Assertions.assertArrayEquals(new Object[]{1,2,3,4},arr2);
Object[] arr3 = Main.removeDuplicatesFromArray(new int[]{1,1,1,1});
Arrays.sort(arr3);
Assertions.assertArrayEquals(new Object[]{1},arr3);
}
@Test
void sumOfTwoLargest() {
Assertions.assertEquals(0,Main.sumOfTwoLargest(new int[]{}));
Assertions.assertEquals(5,Main.sumOfTwoLargest(new int[]{5}));
Assertions.assertEquals(9,Main.sumOfTwoLargest(new int[]{5,4}));
Assertions.assertEquals(15,Main.sumOfTwoLargest(new int[]{1,7,5,2,-1,8}));
Assertions.assertEquals(-2,Main.sumOfTwoLargest(new int[]{-1,-7,-5,-2,-1,-8}));
}
} | [
"sureshmelvinsigera@users.noreply.github.com"
] | sureshmelvinsigera@users.noreply.github.com |
b7febfbe7ab7ea5346077bce81752893d107cf28 | 440dcd9db1480467b9c84ed05841857207d8b48d | /Task2_Golodushko/eq/src/by/tc/eq/bean/Order.java | 85df941900903c36f553aaededd8efa285157a39 | [] | no_license | GolDen27/Java11_16_Golodushko | 8bcd947c8571390de70e2800535c19155c73109f | ad79c8677a2d40a5f7643b2309a3c9f5eda3c518 | refs/heads/master | 2021-01-11T20:48:45.763034 | 2017-02-06T00:22:06 | 2017-02-06T00:22:06 | 79,189,789 | 0 | 2 | null | 2017-01-30T12:57:04 | 2017-01-17T04:53:50 | Java | UTF-8 | Java | false | false | 1,349 | java | package by.tc.eq.bean;
import java.util.Date;
public class Order {
private Contract contract;
private Goods goods;
private Date startTime;
private Date endTime;
private Date returnTime;
private double discount;
private boolean isAtRent;
public Order() {
}
public Contract getContract() {
return contract;
}
public void setContract(Contract contract) {
this.contract = contract;
}
public Goods getGoods() {
return goods;
}
public void setGoods(Goods goods) {
this.goods = goods;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Date getReturnTime() {
return returnTime;
}
public void setReturnTime(Date returnTime) {
this.returnTime = returnTime;
}
public double getDiscount() {
return discount;
}
public void setDiscount(double discount) {
this.discount = discount;
}
public boolean isAtRent() {
return isAtRent;
}
public void setAtRent(boolean atRent) {
isAtRent = atRent;
}
}
| [
"denis375445382598@gmail.com"
] | denis375445382598@gmail.com |
25a7a9e1ac90cbbdc1f7e01826838f01d257ed69 | a0d1931348d577b45ccae454f9b014f06f4e9051 | /JavaVersion/src/main/java/com/github/gasrios/xmp/XMPPathFactory.java | 86627fa92a8891af11948999ef4ae849e7a04504 | [
"MIT"
] | permissive | jjesue01/machine | 2fd1d7d435fbc1f34f370deeac9346c6051fe573 | b55fda33e3d7c2a2e2b1b390469053840bbfde5d | refs/heads/master | 2021-06-24T16:08:39.629196 | 2018-12-02T10:14:17 | 2018-12-02T10:14:17 | 155,590,232 | 1 | 0 | null | 2020-10-13T11:06:08 | 2018-10-31T16:33:56 | Java | UTF-8 | Java | false | false | 3,225 | java | // =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2006 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.
// =================================================================================================
package com.github.gasrios.xmp;
import com.github.gasrios.xmp.impl.Utils;
import com.github.gasrios.xmp.impl.xpath.XMPPath;
import com.github.gasrios.xmp.impl.xpath.XMPPathParser;
public final class XMPPathFactory {
private XMPPathFactory() {}
public static String composeArrayItemPath(String arrayName, int itemIndex) throws XMPException {
if (itemIndex > 0) return arrayName + '[' + itemIndex + ']';
else if (itemIndex == XMPConst.ARRAY_LAST_ITEM) return arrayName + "[last()]";
else throw new XMPException("Array index must be larger than zero", XMPError.BADINDEX);
}
public static String composeStructFieldPath(String fieldNS, String fieldName) throws XMPException {
assertFieldNS(fieldNS);
assertFieldName(fieldName);
XMPPath fieldPath = XMPPathParser.expandXPath(fieldNS, fieldName);
if (fieldPath.size() != 2) throw new XMPException("The field name must be simple", XMPError.BADXPATH);
return "/" + fieldPath.getSegment(XMPPath.STEP_ROOT_PROP).getName();
}
public static String composeQualifierPath(String qualNS, String qualName) throws XMPException {
assertQualNS(qualNS);
assertQualName(qualName);
XMPPath qualPath = XMPPathParser.expandXPath(qualNS, qualName);
if (qualPath.size() != 2) throw new XMPException("The qualifier name must be simple", XMPError.BADXPATH);
return "/?" + qualPath.getSegment(XMPPath.STEP_ROOT_PROP).getName();
}
public static String composeLangSelector(String arrayName, String langName) {
return arrayName + "[?xml:lang=\"" + Utils.normalizeLangValue(langName) + "\"]";
}
public static String composeFieldSelector(String arrayName, String fieldNS, String fieldName, String fieldValue) throws XMPException {
XMPPath fieldPath = XMPPathParser.expandXPath(fieldNS, fieldName);
if (fieldPath.size() != 2) throw new XMPException("The fieldName name must be simple", XMPError.BADXPATH);
return arrayName + '[' + fieldPath.getSegment(XMPPath.STEP_ROOT_PROP).getName() + "=\"" + fieldValue + "\"]";
}
private static void assertQualNS(String qualNS) throws XMPException {
if (qualNS == null || qualNS.length() == 0) throw new XMPException("Empty qualifier namespace URI", XMPError.BADSCHEMA);
}
private static void assertQualName(String qualName) throws XMPException {
if (qualName == null || qualName.length() == 0) throw new XMPException("Empty qualifier name", XMPError.BADXPATH);
}
private static void assertFieldNS(String fieldNS) throws XMPException {
if (fieldNS == null || fieldNS.length() == 0) throw new XMPException("Empty field namespace URI", XMPError.BADSCHEMA);
}
private static void assertFieldName(String fieldName) throws XMPException {
if (fieldName == null || fieldName.length() == 0) throw new XMPException("Empty f name", XMPError.BADXPATH);
}
} | [
"business.ek@yahoo.com"
] | business.ek@yahoo.com |
6be105c85b87fcfde313cbcc540cb70b2009ee2c | f647cb7434f859076c740ae4b0934987eb978220 | /src/com/pluspow/controller/client/account/AddSpotStep1EntryController.java | 60cc3767e7c305564c196afdab4b7f587ff4e00b | [] | no_license | PluCial/pluspow | c7687c5ca777c9993ff8b3b90bacbefd6ec663bd | 225051059a59a03ad3ec41375947c71b7960f6c6 | refs/heads/master | 2020-06-04T05:39:06.402410 | 2015-11-03T17:06:27 | 2015-11-05T19:53:18 | 41,649,938 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,450 | java | package com.pluspow.controller.client.account;
import org.slim3.controller.Navigation;
import org.slim3.controller.validator.Validators;
import com.pluspow.enums.Country;
import com.pluspow.exception.GeocoderLocationTypeException;
import com.pluspow.exception.ObjectNotExistException;
import com.pluspow.model.Client;
import com.pluspow.model.GeoModel;
import com.pluspow.model.Spot;
import com.pluspow.service.GeoService;
import com.pluspow.service.SpotService;
import com.pluspow.validator.NGValidator;
public class AddSpotStep1EntryController extends BaseController {
@Override
protected Navigation execute(Client client) throws Exception {
// 入力チェック
if (!isPost() || !validate()) {
return forward("/client/account/addSpotStep1.jsp");
}
// ------------------------------------------
// リクエストパラメーターの取得
// ------------------------------------------
String spotId = asString("spotId");
String address = asString("address");
int floor = asInteger("floor");
// ------------------------------------------
// spotId重複チェック
// ------------------------------------------
Spot spot = null;
try {
spot = SpotService.getModelOnly(spotId);
// Spot Id 重複エラー
Validators v = new Validators(request);
v.add("spotId", new NGValidator("このスポットIDは既に利用されています。"));
v.validate();
return forward("/client/account/addSpotStep1.jsp");
} catch (ObjectNotExistException e) {}
// ------------------------------------------
// 住所の整合性チェック
// ------------------------------------------
GeoModel geoModel = null;
try {
geoModel = GeoService.getGeoModel(address, client.getLang());
} catch (Exception e) {
Validators v = new Validators(request);
if(e instanceof GeocoderLocationTypeException) {
v.add("address",
new NGValidator("入力した住所が正しくないか、もしくは完全な住所ではありません。"));
}else {
v.add("address",
new NGValidator("住所の確認に失敗しました。しばらく立ってから再度実行してください。"));
}
v.validate();
return forward("/client/account/addSpotStep1.jsp");
}
// ------------------------------------------
// 国の取得
// ------------------------------------------
Country country = Country.valueOf(geoModel.getCountryShortName());
// ------------------------------------------
// スポットエントリーの設定
// ------------------------------------------
spot = SpotService.setStep1(
client,
spotId,
country,
address,
floor,
geoModel);
// セッションへ保存
sessionScope("spotEntryInfo", spot);
return redirect("/client/account/addSpotStep2");
}
/**
* バリデーション
* @return
*/
private boolean validate() {
Validators v = new Validators(request);
// spotId
v.add("spotId",
v.required("スポットIDを入力してください。"),
v.minlength(5, "IDは5文字以上必要です。"),
v.regexp("^[a-z0-9_-]+$", "スポットIDで使用できる文字は半角英語(小文字)、0〜9の数字、[-]、[_]のみです。"));
// 住所
v.add("address",
v.required("住所を入力してください。")
);
// フロアー
v.add("floor",
v.required("フロアーを入力してください。"),
v.integerType("半角数字を入力してください。")
);
// オーナー
v.add("owner",
v.required("スポットの所有者以外は登録できません。")
);
return v.validate();
}
}
| [
"it.trick.cos@gmail.com"
] | it.trick.cos@gmail.com |
daac839205fce59dac678125965bc6889081d8d0 | e33fd0df52a9f8b20c19bb267f23354ded9bd9d1 | /UPES/modules/JobApplicationRecordService/JobApplicationRecordService-api/src/main/java/JobApplicationRecordService/service/Job_Application_RecordsService.java | 879b4943ae22917a2bdfb58c6332bc87c3e368d5 | [] | no_license | mbkunal/Upes | 9106cc4d3d4170a587560c793d22bfaf45054499 | 380509bd103df8610889624fdf267a11fc22c281 | refs/heads/master | 2022-04-11T23:09:22.712499 | 2020-01-22T13:34:53 | 2020-01-22T13:34:53 | 199,495,823 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,633 | java | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package JobApplicationRecordService.service;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
import com.liferay.portal.kernel.security.access.control.AccessControlled;
import com.liferay.portal.kernel.service.BaseService;
import com.liferay.portal.kernel.spring.osgi.OSGiBeanProperties;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Transactional;
/**
* Provides the remote service interface for Job_Application_Records. Methods of this
* service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely.
*
* @author Brian Wing Shun Chan
* @see Job_Application_RecordsServiceUtil
* @see JobApplicationRecordService.service.base.Job_Application_RecordsServiceBaseImpl
* @see JobApplicationRecordService.service.impl.Job_Application_RecordsServiceImpl
* @generated
*/
@AccessControlled
@JSONWebService
@OSGiBeanProperties(property = {
"json.web.service.context.name=kmb", "json.web.service.context.path=Job_Application_Records"}, service = Job_Application_RecordsService.class)
@ProviderType
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {
PortalException.class, SystemException.class})
public interface Job_Application_RecordsService extends BaseService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link Job_Application_RecordsServiceUtil} to access the job_ application_ records remote service. Add custom service methods to {@link JobApplicationRecordService.service.impl.Job_Application_RecordsServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public java.lang.String getOSGiServiceIdentifier();
} | [
"mb.kunal@gmail.com"
] | mb.kunal@gmail.com |
b132df0669bebc0f52bcb3691397b6cdf315110c | 2e1ee47f191bccf167d2d846f863bff63d0b89e5 | /src/com/net/bean/EndChargeBean.java | a36fb73a0001eeeab2d0f4c9c52591c797f94692 | [] | no_license | mideastudygit/SinexcelServer | 407f3396b2ef509e3c8b63a5dd3b20800384de1b | f4404d52034b98424471f29d2ff5bc9feafd45f8 | refs/heads/master | 2020-12-03T00:26:35.182858 | 2017-07-04T14:50:02 | 2017-07-04T14:50:02 | 96,030,623 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,152 | java | package com.net.bean;
import com.base.http.HttpManager;
import com.base.web.AppConfig;
import com.net.util.LogUtils;
import com.net.util.NetUtils;
import io.netty.channel.Channel;
/**
* 停止充电/取消预约充电 (CMD=6)充电桩控制命令
*/
public class EndChargeBean extends BaseBean {
private int[] chargeSlogan = { 1, 0 }; // 充电口号
private int[] configureStartAddress = { 4, 2 }; // 参始地数起址
private int[] count = { 1, 1 }; // 命令个数
private int[] configureBytes = { 2, 4 }; // 命令参数字节数
private int[] endCharge = { 4, 0 }; // 停止充电(0x55有效)
private int[] chargeControlMode = { 4, 0 }; // 充电控制方式(0:BMS控制充电,1:盲充)
private int[] chargeVoltage = { 4, 0 }; // 充电电压(盲充充电电压)
private int[] chargeCurrent = { 4, 0 }; // 充电电流(盲充充电电流)
private int[] chargeMode = { 4, 0 }; // 充电模式(0-恒流,1-恒压)
private int[] endBookCharge = { 4, 0 }; // 取消预约充电(0x55有效)
private int[] restart = { 4, 0 }; // 设备重启(0x55有效)
private int[] enterUpdateMode = { 4, 0 }; // 进入升级模式(0x55有效)
private int[] enterUseMode = { 4, 0 }; // 进入正常应用模式(0x55有效)
private int[] reportLoginNow = { 4, 0 }; // 立即上报一次签到106报文
private int[] reportPileStatusNow = { 4, 0 }; // 立即上报一次桩状态信息104报文
private int[] paymentSuccess = { 4, 0 }; // 扫描支付成功(0x55有效)
private int[] result = { 1, 0 }; // 命令执行结果
private int paramType = 1; // 设置参数类型:2-停止充电;10-取消预约充电
private int period = 0x55; // 参数值:停止充电、取消预约充电-0x55有效
String information = "停止充电";
public void init() {
super.init();
byteTo(userid);
byteTo(cmdseq);
byteToAscii(pileCode);
byteTo(chargeSlogan);
byteTo(configureStartAddress);
byteTo(count);
byteTo(result);
}
public void handle(Channel channel) throws Exception {
String uri = AppConfig.getStringPro("sp-url");
uri += "/direct-module=net_service=Sinexcel_method=endCharge";
uri += "_gsn=" + getPileCode(); // 网关编号
uri += "_csn=" + getPileCode(); // 充电桩编码
uri += "_gunno=" + getChargeSlogan(); // 充电口号
uri += "_csadd=" + getConfigureStartAddress(); // 命令起始标志
uri += "_count=" + getCount(); // 命令个数
uri += "_result=" + getResult(); // 命令执行结果
information = getInformation(getConfigureStartAddress());
LogUtils.send.info(information + "请求url:" + uri);
try {
String res = HttpManager.getData(uri, "");
LogUtils.send.info(information + "请求返回:" + res);
} catch (Exception e) {
LogUtils.send.info(information + "请求异常,", e);
}
}
public void send(Channel channel) {
setCmd(CMD.END_CHARGE);
tobyte(userid);
tobyte(cmdseq);
tobyte(chargeSlogan);
setConfigureStartAddress(getParamType());
tobyte(configureStartAddress);
tobyte(count);
tobyte(configureBytes);
period = getPeriod();
switch (getParamType()) {
case 2: setEndCharge(period); tobyte(endCharge); break; // 停止充电
case 4: setChargeControlMode(period); tobyte(chargeControlMode); break; // 充电控制方式
case 7: setChargeVoltage(period); tobyte(chargeVoltage); break; // 充电电压
case 8: setChargeCurrent(period); tobyte(chargeCurrent); break; // 充电电流
case 9: setChargeMode(period); tobyte(chargeMode); break; // 充电模式
case 10: setEndBookCharge(period); tobyte(endBookCharge); break; // 取消预约充电
case 11: setRestart(period); tobyte(restart); break; // 设备重启
case 12: setEnterUpdateMode(period); tobyte(enterUpdateMode); break; // 进入升级模式
case 13: setEnterUseMode(period); tobyte(enterUseMode); break; // 进入正常应用模式
case 14: setReportLoginNow(period); tobyte(reportLoginNow); break; // 立即上报一次签到106报文
case 15: setReportPileStatusNow(period); tobyte(reportPileStatusNow); break; // 立即上报一次桩状态信息104报文
case 16: setPaymentSuccess(period); tobyte(paymentSuccess); break; // 扫描支付成功
default: break;
}
channel = NetUtils.getChannelByKey(getPileCode());
information = getInformation(getParamType());
LogUtils.send.info(information + "," + channel + this);
super.send(channel);
}
public int getChargeSlogan() {
return chargeSlogan[1];
}
public void setChargeSlogan(int chargeSlogan) {
this.chargeSlogan[1] = chargeSlogan;
}
public int getConfigureStartAddress() {
return configureStartAddress[1];
}
public void setConfigureStartAddress(int configureStartAddress) {
this.configureStartAddress[1] = configureStartAddress;
}
public int getCount() {
return count[1];
}
public void setCount(int count) {
this.count[1] = count;
}
public int getEndCharge() {
return endCharge[1];
}
public void setEndCharge(int endCharge) {
this.endCharge[1] = endCharge;
}
public int getChargeControlMode() {
return chargeControlMode[1];
}
public void setChargeControlMode(int chargeControlMode) {
this.chargeControlMode[1] = chargeControlMode;
}
public int getChargeVoltage() {
return chargeVoltage[1];
}
public void setChargeVoltage(int chargeVoltage) {
this.chargeVoltage[1] = chargeVoltage;
}
public int getChargeCurrent() {
return chargeCurrent[1];
}
public void setChargeCurrent(int chargeCurrent) {
this.chargeCurrent[1] = chargeCurrent;
}
public int getChargeMode() {
return chargeMode[1];
}
public void setChargeMode(int chargeMode) {
this.chargeMode[1] = chargeMode;
}
public int getEndBookCharge() {
return endBookCharge[1];
}
public void setEndBookCharge(int endBookCharge) {
this.endBookCharge[1] = endBookCharge;
}
public int getRestart() {
return restart[1];
}
public void setRestart(int restart) {
this.restart[1] = restart;
}
public int getEnterUpdateMode() {
return enterUpdateMode[1];
}
public void setEnterUpdateMode(int enterUpdateMode) {
this.enterUpdateMode[1] = enterUpdateMode;
}
public int getEnterUseMode() {
return enterUseMode[1];
}
public void setEnterUseMode(int enterUseMode) {
this.enterUseMode[1] = enterUseMode;
}
public int getReportLoginNow() {
return reportLoginNow[1];
}
public void setReportLoginNow(int reportLoginNow) {
this.reportLoginNow[1] = reportLoginNow;
}
public int getReportPileStatusNow() {
return reportPileStatusNow[1];
}
public void setReportPileStatusNow(int reportPileStatusNow) {
this.reportPileStatusNow[1] = reportPileStatusNow;
}
public int getPaymentSuccess() {
return paymentSuccess[1];
}
public void setPaymentSuccess(int paymentSuccess) {
this.paymentSuccess[1] = paymentSuccess;
}
public int getResult() {
return result[1];
}
public void setResult(int result) {
this.result[1] = result;
}
public int getParamType() {
return paramType;
}
public void setParamType(int paramType) {
this.paramType = paramType;
}
public int getPeriod() {
return period;
}
public void setPeriod(int period) {
this.period = period;
}
public String getInformation(int type) {
switch (type) {
case 2: information = "停止充电"; break;
case 4: information = "设置充电控制方式"; break;
case 7: information = "设置充电电压"; break;
case 8: information = "设置充电电流"; break;
case 9: information = "设置充电模式"; break;
case 10: information = "取消预约充电"; break;
case 11: information = "设备重启"; break;
case 12: information = "进入升级模式"; break;
case 13: information = "进入正常应用模式"; break;
case 14: information = "立即上报106报文"; break;
case 15: information = "立即上报104报文"; break;
case 16: information = "设置扫描支付成功"; break;
}
return information;
}
}
| [
"w971801268@163.com"
] | w971801268@163.com |
bdcb69244257efb18d8b6c89028d1a23079a8ef1 | da7326afb74883d41d47c51481c556b73f166d3d | /app/src/main/java/com/usemenu/MenuAndroidApplication/dialogs/AlertDialogEditTextFragment.java | f4c62e36b46274ef49165ca92b0efeddc80225f8 | [] | no_license | s7droid/MenuProject | 9c4cfcb67731f87122be8ed1c298bf9eb030fd6d | 68bb8730f12e80a192a7a443e0ed561b7736fb07 | refs/heads/master | 2016-09-16T10:03:22.541067 | 2015-08-14T10:47:27 | 2015-08-14T10:47:27 | 40,347,246 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,903 | java | package com.usemenu.MenuAndroidApplication.dialogs;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.usemenu.MenuAndroidApplication.R;
public class AlertDialogEditTextFragment extends DialogFragment {
private static final String TAG = AlertDialogFragment.class.getSimpleName();
private FragmentManager fm;
private String tag = "alert_dialog";
private AlertDialog.Builder builder;
private String title;
private OnClickListener onClickListener;
private TextView textViewTitle;
private EditText textViewBody;
private TextView characatersLeft;
private Button buttonOk;
private boolean isVisible = false;
public AlertDialogEditTextFragment() {
}
public void setFragmentManager(FragmentManager fm, Context context) {
this.fm = fm;
}
@Override
public Dialog onCreateDialog(final Bundle savedInstanceState) {
isVisible = true;
LayoutInflater inflater = getActivity().getLayoutInflater();
View view = inflater.inflate(R.layout.dialog_edit_text, null);
textViewTitle = (TextView) view.findViewById(R.id.textViewTitleAlertEditTextDialog);
textViewBody = (EditText) view.findViewById(R.id.editetextBodyAlertEditTextDialog);
characatersLeft = (TextView) view.findViewById(R.id.textviewCharactersLeft);
buttonOk = (Button) view.findViewById(R.id.buttonEditTextDialogOk);
textViewTitle.setText(title);
buttonOk.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (onClickListener != null)
onClickListener.onClick(v);
dismiss();
}
});
characatersLeft.setText(textViewBody.length() + "/100");
textViewBody.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
characatersLeft.setText(textViewBody.length() + "/100");
System.out.println("ON TEXT CHANGED");
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void afterTextChanged(Editable s) {
}
});
builder = new AlertDialog.Builder(getActivity());
builder.setView(view);
setCancelable(true);
return builder.create();
}
public void showDialog(String title, OnClickListener listener) {
if (isVisible() || isVisible)
return;
this.onClickListener = listener;
this.title = title;
show(fm, tag);
}
@Override
public void onDismiss(DialogInterface dialog) {
super.onDismiss(dialog);
isVisible = false;
}
}
| [
"Ivan@users-iMac.local"
] | Ivan@users-iMac.local |
93ecd578779da9ae619615bd53f185b672bca118 | d1ce4ad0f5c0ff1b20c232e04b5eb2b7d2968f3d | /src/main/java/pl/anzasolutions/product/api/repository/ProductRepository.java | 30844afa49846f6db64beb0835fd2476ab4cfad9 | [] | no_license | andrzej-zalewski/product-api | fdfdb22ec976497a272431e4a1a1cf8563b41259 | 7bbb584d4a91ed109fc1a614bd2b04fd2b9bf486 | refs/heads/master | 2021-03-24T16:49:02.977639 | 2020-03-16T19:15:49 | 2020-03-16T19:15:49 | 247,549,716 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 243 | java | package pl.anzasolutions.product.api.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import pl.anzasolutions.product.api.domain.Product;
public interface ProductRepository extends JpaRepository<Product, Long> {
}
| [
"andrzej.zalewski@gmail.com"
] | andrzej.zalewski@gmail.com |
8be0254951990f916ffbd2076fc6ec9643aa6758 | 8d523edc76a9a1b3a6c860a2cb6525775e70247c | /user-service-demo/src/main/java/com/shop/userservice/controller/UserController.java | e616374e9d73100cd309fb17fdd57547eb067988 | [
"MIT"
] | permissive | dhpyyy820/springcloud-demo | 12f5a5923e743e86e50294191d88bb3aa9866880 | 168084733cd02e2cf7000d1d2c53c94ae156f907 | refs/heads/master | 2020-04-06T14:41:44.413827 | 2018-11-16T05:50:40 | 2018-11-16T05:50:40 | 157,551,009 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 724 | java | package com.shop.userservice.controller;
import com.shop.userservice.pojo.User;
import com.shop.userservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("user")
public class UserController {
@Autowired
private UserService userService;
@GetMapping("/{id}")
public User queryById(@PathVariable("id") Long id) throws InterruptedException {
return userService.queryById(id);
}
}
| [
"930171495@qq.com"
] | 930171495@qq.com |
f747054e93a6a742c48a81c586ed703675f6a51b | d828e100ea64b97473164d803828cfa4b5c65431 | /src/br/com/autopecas/validadores/ValidadorIllegalArgumentException.java | 9667618e72befd388f5dfd3e1e804f645c00d7b9 | [] | no_license | murilocoleone/autopecas | 1bd42cdd0b73b900a8dc44572773822bc97f10af | 60966eb5d03e6f3867e88760c3634b83af8f2c4b | refs/heads/master | 2021-01-10T06:49:06.461582 | 2013-02-28T05:40:43 | 2013-02-28T05:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 325 | java | package br.com.autopecas.validadores;
public class ValidadorIllegalArgumentException extends IllegalArgumentException {
private static final long serialVersionUID = 1L;
public ValidadorIllegalArgumentException(String msg){
super(msg);
}
public ValidadorIllegalArgumentException(){
super();
}
}
| [
"murilo.coleone.reis@gmail.com"
] | murilo.coleone.reis@gmail.com |
acbf276477568c0bd16f7ac1f1fd4bde5248243e | 42b74058a4722eb605eaa8210dd0f5e0196440d3 | /TrafficPolice/WEB-INF/src/com/web/service/.svn/text-base/PermissionServiceImpl.java.svn-base | 264ad338ea66b15c38f6c3f51d56c31131384f84 | [] | no_license | chensiguang/traffic | 85fe79e134abf157aa31b1c805aaaae1c161b7ce | 30bdb1020d7704da6a33f25eee47090f9f3ce816 | refs/heads/master | 2021-01-01T19:29:09.434604 | 2015-07-11T17:29:15 | 2015-07-11T17:29:15 | 38,924,585 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,657 | /**
*
*
*
*
*
*/
package com.web.service;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.web.dao.PermissionDao;
import com.web.pojo.Permission;
import com.web.service.interfaces.PermissionService;
/**
* 权限管理
*
* @author wqg
*
* 2013-9-25下午3:30:12
*/
@Service
public class PermissionServiceImpl implements PermissionService
{
@Autowired
private PermissionDao perssionDao;
/*
* (non-Javadoc)
*
* @see com.web.service.BaseService#getCountByAll(java.util.HashMap)
*/
@Override
public int getCountByAll(HashMap<String, Object> query)
{
// TODO Auto-generated method stub
return perssionDao.getCountByAll(query);
}
/*
* (non-Javadoc)
*
* @see com.web.service.BaseService#selectPage(java.util.HashMap)
*/
@Override
public List<Permission> selectPage(HashMap<String, Object> query)
{
// TODO Auto-generated method stub
return perssionDao.selectPage(query);
}
/*
* (non-Javadoc)
*
* @see com.web.service.interfaces.PermissionService#queryAll()
*/
@Override
public List<Permission> queryAll()
{
// TODO Auto-generated method stub
return perssionDao.queryAll();
}
/*
* (non-Javadoc)
*
* @see
* com.web.service.interfaces.PermissionService#insertPermission(com.web
* .pojo.Permission)
*/
@Override
public int insertPermission(Permission per)
{
// TODO Auto-generated method stub
return perssionDao.insertPermission(per);
}
/*
* (non-Javadoc)
*
* @see
* com.web.service.interfaces.PermissionService#queryDataById(java.lang.
* String)
*/
@Override
public Permission queryDataById(String id)
{
// TODO Auto-generated method stub
return perssionDao.queryDataById(Integer.parseInt(id));
}
/*
* (non-Javadoc)
*
* @see
* com.web.service.interfaces.PermissionService#deleteDataById(java.lang
* .String)
*/
@Override
public int deleteDataById(String id)
{
// TODO Auto-generated method stub
return perssionDao.deleteDataById(Integer.parseInt(id));
}
/*
* (non-Javadoc)
*
* @see
* com.web.service.interfaces.PermissionService#deleteDataByIds(java.lang
* .String)
*/
@Override
public void deleteDataByIds(String ids)
{
// TODO Auto-generated method stub
if (ids.endsWith("#"))
{
ids = ids.substring(0, ids.length() - 1);
}
String[] idsVal = ids.split("#");
for (int i = 0; i < idsVal.length; i++)
{
perssionDao.deleteDataById(Integer.parseInt(idsVal[i]));
}
}
/*
* (non-Javadoc)
*
* @see
* com.web.service.interfaces.PermissionService#updatePermission(com.web
* .pojo.Permission)
*/
@Override
public int updatePermission(Permission per)
{
// TODO Auto-generated method stub
return perssionDao.updatePermission(per);
}
/* (non-Javadoc)
* @see com.web.service.interfaces.PermissionService#findPermissionByRoleno(long)
*/
@Override
public Permission findPermissionByPerno(long perno)
{
// TODO Auto-generated method stub
return perssionDao.findPermissionByPerno(perno);
}
/* (non-Javadoc)
* @see com.web.service.interfaces.PermissionService#selectUsernameById(java.lang.String)
*/
@Override
public List<Permission> selectUsernameById(String id)
{
// TODO Auto-generated method stub
return perssionDao.selectUsernameById(Integer.parseInt(id));
}
/* (non-Javadoc)
* @see com.web.service.interfaces.PermissionService#newOrUpdate(com.web.pojo.Permission)
*/
@Override
public int newOrUpdate(Permission per)
{
// TODO Auto-generated method stub
return perssionDao.newOrUpdate(per);
}
}
| [
"chensiguang86@126.com"
] | chensiguang86@126.com | |
340c9c8ad90b46462c352becbaeade21bf3a0516 | 8af3ff1cab9d7d092e8bb7957666c17e5c0473bb | /src/org/vikastaneja/coderust/Main.java | a3dd6111ba47d5492394d050222ff4158a881ec5 | [] | no_license | vikkastaneja/AlgoProject | c6629cdda19e365b03842edd57e2a036b3ccc524 | b477457f100c392fdae160c6c680c1af437ddfce | refs/heads/master | 2021-06-21T21:51:54.964258 | 2017-08-22T00:59:49 | 2017-08-22T00:59:49 | 12,638,111 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,209 | java | package org.vikastaneja.coderust;
import org.vikastaneja.crackingcodinginterviews.Node;
import org.vikastaneja.examples.Arr;
/**
* Created by vikastaneja on 4/8/14.
*/
public class Main {
public static void main(String[] args) {
int []a111 = { 1, 3, 5, 7, 9};
int []b111 = { 2, 6, 8, 20, 34};
System.out.println("Kth largest element is: " + Arrays.returnKthInSortedArrays(a111, b111, 4));
System.out.println(Arrays.returnKthInSortedArrays(a111, b111, 7));
Arrays.rotate(a111, 3);
int[]array123 = {1,2,2,4,4,4,4,4,5,6,7};
System.out.println(Arrays.count(array123,4));
System.out.println(Arrays.count(array123,2));
System.out.println(Arrays.count(array123,3));
array123 = new int[0];
System.out.println(Arrays.count(array123, 3));
try {
Arrays.count(null, 4);
} catch(NullPointerException ex) {
if (!ex.getMessage().equals("Array passed is null"))
throw ex;
}
Node tree1 = new Node();
tree1.value = 10;
tree1.left = new Node();
tree1.left.value = 5;
tree1.right = new Node();
tree1.right.value = 6;
tree1.left.left = new Node();
tree1.left.left.value = -3;
tree1.left.right = new Node();
tree1.left.right.value = -2;
tree1.right.left = new Node();
tree1.right.right = new Node();
tree1.right.left.value = -4;
tree1.right.right.value = -2;
Trees.deleteSubtree(tree1, 0);
tree1 = null;
tree1 = new Node();
tree1.value = 0;
tree1.left = new Node();
tree1.left.value = 4;
tree1.right = new Node();
tree1.right.value = 6;
tree1.left.left = new Node();
tree1.left.left.value = 1;
tree1.left.right = new Node();
tree1.left.right.value = -5;
tree1.right.left = new Node();
tree1.right.right = new Node();
tree1.right.left.value = -4;
tree1.right.right.value = -2;
Trees.deleteSubtree(tree1, 0);
try {
Trees.deleteSubtree(null, 0);
} catch (NullPointerException ex) {
if (!ex.getMessage().equals("Root is null")) {
throw ex;
}
}
MyStack<Integer> st = new MyStack<Integer>();
st.push(1);
System.out.println(st.pop());
st.push(2);
st.push(3);
System.out.println(st.pop());
Node tree = new Node();
tree.value = 20;
tree.left = new Node();
tree.left.value = 10;
tree.right = new Node();
tree.right.value = 35;
tree.left.left = new Node();
tree.left.left.value = 5;
tree.left.right = new Node();
tree.left.right.value = 15;
// tree.left.right.left = new Node();
// tree.left.right.left.value = 25;
// tree.left.right.right = new Node();
// tree.left.right.right.value = 40;
Trees.printPerimeter(tree);
Trees.levelOrderTraversal(tree);
Trees.swapLeftRight(tree);
Trees.printNth(tree, 5);
Trees.deleteZeroSum(tree);
}
}
| [
"vikas.vtaneja@gmail.com"
] | vikas.vtaneja@gmail.com |
2b9bc3cf573e761f9467ed5f3d0ae86dda9097f9 | f41f1b2f60227f57063f5223630f5b877ffab941 | /src/main/java/com/ksyzt/gwt/client/ui/richeditor/ColorPopup.java | bf9d0bcf8351ad1f68e6ae1ca59307fb0dfef0fa | [
"Apache-2.0"
] | permissive | mapway/mapway-ui-frame | 139b0505fdfc01011bb07df4e83feb90b91a4bd1 | c15b9db0fb5dd40c494733f7cc8f6cc1da036170 | refs/heads/master | 2021-01-18T03:40:56.781081 | 2017-08-27T08:44:01 | 2017-08-27T08:44:01 | 85,798,830 | 0 | 1 | null | 2017-08-29T03:48:37 | 2017-03-22T07:38:24 | Java | UTF-8 | Java | false | false | 6,138 | java | package com.ksyzt.gwt.client.ui.richeditor;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.MouseMoveHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseUpEvent;
import com.google.gwt.event.dom.client.MouseUpHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
import com.ksyzt.gwt.client.common.SysResource;
import com.ksyzt.gwt.client.event.HasMessageHandlers;
import com.ksyzt.gwt.client.event.MessageEvent;
import com.ksyzt.gwt.client.event.MessageHandler;
// TODO: Auto-generated Javadoc
/**
* The Class ColorPopup.
*/
public class ColorPopup extends PopupPanel implements HasMessageHandlers {
/** The panel. */
private FlowPanel panel;
/** The hue saturation. */
private Image hueSaturation;
/** The lightness. */
private Image lightness;
/** The preview. */
private Label preview;
/** The down. */
private boolean down = false;
/** The h. */
float h = 200;
/** The s. */
float s = 2 / 3f;
/** The l. */
float l = 1 / 3f;
/**
* Instantiates a new color popup.
*/
ColorPopup() {
super(true);
this.panel = new FlowPanel();
this.hueSaturation = new Image(SysResource.INSTANCE.hueSaturation());
this.lightness = new Image(SysResource.INSTANCE.lightness());
this.preview = new Label();
panel.setSize("220px", "100px");
preview.setSize("20px", "100px");
panel.add(hueSaturation);
panel.add(lightness);
panel.add(preview);
setWidget(panel);
addStyleName("fp-cp");
DOM.setStyleAttribute(hueSaturation.getElement(), "cursor", "crosshair");
DOM.setStyleAttribute(lightness.getElement(), "cursor", "ns-resize");
DOM.setStyleAttribute(preview.getElement(), "float", "right");
DOM.setStyleAttribute(preview.getElement(), "cssFloat", "right");
DOM.setStyleAttribute(preview.getElement(), "styleFloat", "right");
setColor();
hueSaturation.addMouseDownHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
event.preventDefault();
setHueSaturation(event.getNativeEvent());
down = true;
}
});
hueSaturation.addMouseUpHandler(new MouseUpHandler() {
@Override
public void onMouseUp(MouseUpEvent event) {
setHueSaturation(event.getNativeEvent());
down = false;
}
});
hueSaturation.addMouseMoveHandler(new MouseMoveHandler() {
@Override
public void onMouseMove(MouseMoveEvent event) {
if (down)
setHueSaturation(event.getNativeEvent());
}
});
hueSaturation.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
down = false;
}
});
/* --- */
lightness.addMouseDownHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
event.preventDefault();
setLightness(event.getNativeEvent());
down = true;
}
});
lightness.addMouseUpHandler(new MouseUpHandler() {
@Override
public void onMouseUp(MouseUpEvent event) {
setLightness(event.getNativeEvent());
down = false;
}
});
lightness.addMouseMoveHandler(new MouseMoveHandler() {
@Override
public void onMouseMove(MouseMoveEvent event) {
if (down)
setLightness(event.getNativeEvent());
}
});
lightness.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
down = false;
}
});
/* --- */
preview.addMouseDownHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
String c = getHex();
String[] colors = new String[2];
colors[0] = c;
colors[1] = getTextColor();
MessageEvent ev = new MessageEvent(MessageEvent.COLORS, colors);
fireEvent(ev);
hide();
}
});
}
/**
* Gets the hex.
*
* @return the hex
*/
public String getHex() {
return new Color(h, s, l).toString();
}
/**
* Sets the hex.
*
* @param colorString the new hex
*/
public void setHex(String colorString) {
if (colorString.startsWith("#") && colorString.length() == 7) {
Color rgb = new Color(colorString);
h = rgb.getHue();
s = rgb.getSaturation();
l = rgb.getLightness();
setColor();
}
}
/**
* Gets the text color.
*
* @return the text color
*/
public String getTextColor() {
if (this.l < 0.5) {
return "#ffffff";
} else {
return "#000000";
}
}
/**
* Sets the color.
*/
private void setColor() {
Color p = new Color(h, s, l);
DOM.setStyleAttribute(preview.getElement(), "backgroundColor",
p.toString());
Color l = new Color(h, s, 0.5f);
DOM.setStyleAttribute(lightness.getElement(), "backgroundColor",
l.toString());
}
/**
* Sets the hue saturation.
*
* @param event the new hue saturation
*/
private void setHueSaturation(NativeEvent event) {
int x = event.getClientX() - hueSaturation.getAbsoluteLeft();
int y = event.getClientY() - hueSaturation.getAbsoluteTop();
if (x > -1 && x < 181 && y > -1 && y < 101) {
h = x * 2;
s = (float) (100 - y) / 100f;
setColor();
} else {
down = false;
}
}
/**
* Sets the lightness.
*
* @param event the new lightness
*/
private void setLightness(NativeEvent event) {
int y = event.getClientY() - lightness.getAbsoluteTop();
if (y > -1 && y < 101) {
l = (float) (100 - y) / 100f;
setColor();
} else {
down = false;
}
}
/* (non-Javadoc)
* @see com.ksyzt.gwt.client.event.HasMessageHandlers#addMessageHandler(com.ksyzt.gwt.client.event.MessageHandler)
*/
@Override
public HandlerRegistration addMessageHandler(MessageHandler handler) {
return addHandler(handler, MessageEvent.TYPE);
}
} | [
"zhangjsf@enn.cn"
] | zhangjsf@enn.cn |
ccdc286bbfb43e538c34eaa758178a9e83999f0d | 767da855e38dd059126bb000d73c02024fac1c9e | /src/com/pratice/array/singleArray/leet/FindSmallestLetterGreaterThanTarget.java | 747d1815ff66db8985928974b85843fa30dfcdc6 | [] | no_license | HarshMota99/algoprj | 45257fcb8a8f02073b9630ccf51d361d358fa284 | c376ebfced459057d0d8753ef1565a1707e7f6a9 | refs/heads/master | 2020-05-18T20:49:37.173549 | 2019-08-03T20:05:45 | 2019-08-03T20:05:45 | 184,644,007 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,821 | java | package com.pratice.array.singleArray.leet;
import java.util.Arrays;
/**
* Problem: Find the smallest letter greater than the target
*
*
* Linear solution:
* - Loop array to check which is greater than target
* - Once found greater than target, now do one more loop over to check if (its greater than target && smaller than others)
*
* fs.checkLinear(new char[] { 'c', 'd', 'h', 'x','y','e', 'f' }, 'd');
* Result = e
*
*
* Binary solution:
* - Find the mid
* - Check if mid is smaller or equal to target. If yes go the right side of it futher.
* - else go the left side of mid
*
* fs.checkBinary(new char[] {'c', 'd', 'h', 'x','y','e', 'f','z' }, 'y');
Result = z
*
*
*/
public class FindSmallestLetterGreaterThanTarget {
public void checkLinear(char[] input, char target) {
char tempResult = target;
for (int i = 0; i <= input.length - 1; i++) {
if (input[i] > target) {
tempResult = input[i];
for (int j = i + 1; j <= input.length - 1; j++) {
if (input[j] > target && input[j] < tempResult) {
tempResult = input[j];
}
}
break;
}
}
System.out.println(tempResult);
}
public void checkBinary(char[] input, char target) {
Arrays.sort(input);
int x = 0, y = input.length;
while (x < y) {
int mid = x + ((y - x) / 2);
if (input[mid] == target) {
System.out.println(input[mid + 1]);
return;
} else if (input[mid] < target) {
x = mid+1;
} else {
y = mid-1;
}
}
//System.out.println(input[x]);
return;
}
public static void main(String args[]) {
FindSmallestLetterGreaterThanTarget fs = new FindSmallestLetterGreaterThanTarget();
//fs.checkBinary(new char[] { 'c', 'd', 'h', 'x', 'y', 'e', 'f', 'z' }, 'z');
fs.checkLinear(new char[] { 'c', 'd', 'h', 'x', 'y', 'e', 'f' }, 'd');
}
}
| [
"h_mota@apple.com"
] | h_mota@apple.com |
0c34583d2e8b2b4bb5500f581fc76c96d234afea | 5cf7767cd2fdbca581cbcb9fd2ae69ab4118b57e | /src/AlgoGlouton.java | eb8a879d290d21ca48908eed6d92ffefa6afc4a9 | [] | no_license | nkerkhof/AlgoRLMMO | 19abe22c6d4a5328e940cafc37bf74d79a56b850 | bbb5488d03e6fd66872b08911524cb8ac7df633b | refs/heads/master | 2020-03-09T12:03:35.010300 | 2018-05-09T15:33:29 | 2018-05-09T15:33:29 | 128,776,426 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 355 | java |
public class AlgoGlouton extends InterfaceAlgoRLMMO {
@Override
public int[] execute(int prix) {
for(int a=0;a<typePiece.length;a++) {
nbCoupPiece[a] = 0;
}
int somCour = 0;
for(int i=typePiece.length-1;i>=0;i--) {
while(somCour<=prix-typePiece[i]) {
nbCoupPiece[i]++;
somCour+=typePiece[i];
}
}
return nbCoupPiece;
}
}
| [
"marescaux.louis@gmail.com"
] | marescaux.louis@gmail.com |
367a49ae41e52debdc3770841eda0c3ba4ec4aec | 266a358c453791d2df380e76b8cc35e9b146a341 | /src/imagemodel/CheckerBoard.java | 6e4d0b5723417608ca3be9a92cb4077cc6eab38d | [] | no_license | IanMagnusson/Image-Editor | c694b6fd3cb5b9a749a0912f7f7e5d681c500a3f | 279f9f278d0ccd2cbadeba45ae4f41bd74f19f90 | refs/heads/master | 2023-02-18T21:55:50.962427 | 2019-12-20T02:54:57 | 2019-12-20T02:54:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 821 | java | package imagemodel;
/**
* A CheckerBoard class representing an Image of a checker board.
* A CheckerBoard class utilizes RGBArray as its default constructor.
*/
public class CheckerBoard extends RGBArray {
/**
* The size of this CheckerBoard.
*/
private static final int tilesPerSide = 8;
/**
* Generates a CheckerBoard of 8x8 tiles. The tile size is specified by args.
*
* @param size width and height of a tile in pixels
*/
public CheckerBoard(int size) {
super(new int[size * tilesPerSide][size * tilesPerSide][3]);
for (int y = 0; y < this.getHeight(); ++y) {
for (int x = 0; x < this.getWidth(); ++x) {
for (int channel = 0; channel < 3; ++channel) {
this.data[y][x][channel] = ((x / size + y / size) % 2 == 1) ? 0 : 255;
}
}
}
}
}
| [
"ianmagnusson@Ians-MacBook-Pro.local"
] | ianmagnusson@Ians-MacBook-Pro.local |
a31e0ada364dffb94f6f447529b59dc8edcba603 | c11000853905bc9ef61ca27ae916ffac8d82b8ec | /pub/assignment_testcases/a1/Je_1_IntRange_MinusTooBigInt.java | 88130c8da0d1d627b5bc390871410381832f3e97 | [] | no_license | keriwarr/orangejoos | 0244d381d691fd667bb58e49f6a9d6643b597176 | de278321e8b72a92ea6b2ddb55e885caec71aaa5 | refs/heads/master | 2022-12-10T03:37:07.940721 | 2022-11-17T00:36:10 | 2022-11-17T00:36:10 | 116,432,363 | 0 | 1 | null | 2019-11-23T04:46:41 | 2018-01-05T22:18:39 | Java | UTF-8 | Java | false | false | 384 | java | // JOOS1:PARSER_WEEDER,INVALID_INTEGER
// JOOS2:PARSER_WEEDER,INVALID_INTEGER
// JAVAC:UNKNOWN
//
/**
* Parser/weeder:
* - Check that all integer constant values are within the legal range
* for the int type.
*/
public class Je_1_IntRange_MinusTooBigInt {
public Je_1_IntRange_MinusTooBigInt(){}
public static int test() {
return 2147483000 - 2147483648 + 771;
}
}
| [
"joey@pereira.io"
] | joey@pereira.io |
817fa8babb1a536dbe6d80168e9cea701f2ffaa0 | 5f9c3cdf7ec1406d541ebe154d6e9f801679dc9d | /android/trinea-android-common/src/main/java/cn/trinea/android/common/util/StringUtils.java | aa7d66ce40e6e8c63aad7334977ab67f68a1640a | [] | no_license | emohil/osimple | 2b31af022b750884ca833444450e519cee71a4ec | 657b04b56c3054adde41026f8b3ceb37a6d1124a | refs/heads/master | 2020-03-23T14:16:57.598481 | 2015-01-29T06:53:24 | 2015-01-29T06:53:24 | 141,666,768 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,956 | java | package cn.trinea.android.common.util;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* String Utils
*
* @author <a href="http://www.trinea.cn" target="_blank">Trinea</a> 2011-7-22
*/
public class StringUtils {
/**
* is null or its length is 0 or it is made by space
*
* <pre>
* isBlank(null) = true;
* isBlank("") = true;
* isBlank(" ") = true;
* isBlank("a") = false;
* isBlank("a ") = false;
* isBlank(" a") = false;
* isBlank("a b") = false;
* </pre>
*
* @param str
* @return if string is null or its size is 0 or it is made by space, return true, else return false.
*/
public static boolean isBlank(String str) {
return (str == null || str.trim().length() == 0);
}
/**
* is null or its length is 0
*
* <pre>
* isEmpty(null) = true;
* isEmpty("") = true;
* isEmpty(" ") = false;
* </pre>
*
* @param str
* @return if string is null or its size is 0, return true, else return false.
*/
public static boolean isEmpty(String str) {
return (str == null || str.length() == 0);
}
/**
* compare two string
*
* @param actual
* @param expected
* @return
* @see ObjectUtils#isEquals(Object, Object)
*/
public static boolean isEquals(String actual, String expected) {
return ObjectUtils.isEquals(actual, expected);
}
/**
* null string to empty string
*
* <pre>
* nullStrToEmpty(null) = "";
* nullStrToEmpty("") = "";
* nullStrToEmpty("aa") = "aa";
* </pre>
*
* @param str
* @return
*/
public static String nullStrToEmpty(String str) {
return (str == null ? "" : str);
}
/**
* capitalize first letter
*
* <pre>
* capitalizeFirstLetter(null) = null;
* capitalizeFirstLetter("") = "";
* capitalizeFirstLetter("2ab") = "2ab"
* capitalizeFirstLetter("a") = "A"
* capitalizeFirstLetter("ab") = "Ab"
* capitalizeFirstLetter("Abc") = "Abc"
* </pre>
*
* @param str
* @return
*/
public static String capitalizeFirstLetter(String str) {
if (isEmpty(str)) {
return str;
}
char c = str.charAt(0);
return (!Character.isLetter(c) || Character.isUpperCase(c)) ? str : new StringBuilder(str.length())
.append(Character.toUpperCase(c)).append(str.substring(1)).toString();
}
/**
* encoded in utf-8
*
* <pre>
* utf8Encode(null) = null
* utf8Encode("") = "";
* utf8Encode("aa") = "aa";
* utf8Encode("啊啊啊啊") = "%E5%95%8A%E5%95%8A%E5%95%8A%E5%95%8A";
* </pre>
*
* @param str
* @return
* @throws UnsupportedEncodingException if an error occurs
*/
public static String utf8Encode(String str) {
if (!isEmpty(str) && str.getBytes().length != str.length()) {
try {
return URLEncoder.encode(str, "UTF-8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("UnsupportedEncodingException occurred. ", e);
}
}
return str;
}
/**
* encoded in utf-8, if exception, return defultReturn
*
* @param str
* @param defultReturn
* @return
*/
public static String utf8Encode(String str, String defultReturn) {
if (!isEmpty(str) && str.getBytes().length != str.length()) {
try {
return URLEncoder.encode(str, "UTF-8");
} catch (UnsupportedEncodingException e) {
return defultReturn;
}
}
return str;
}
/**
* get innerHtml from href
*
* <pre>
* getHrefInnerHtml(null) = ""
* getHrefInnerHtml("") = ""
* getHrefInnerHtml("mp3") = "mp3";
* getHrefInnerHtml("<a innerHtml</a>") = "<a innerHtml</a>";
* getHrefInnerHtml("<a>innerHtml</a>") = "innerHtml";
* getHrefInnerHtml("<a<a>innerHtml</a>") = "innerHtml";
* getHrefInnerHtml("<a href="baidu.com">innerHtml</a>") = "innerHtml";
* getHrefInnerHtml("<a href="baidu.com" title="baidu">innerHtml</a>") = "innerHtml";
* getHrefInnerHtml(" <a>innerHtml</a> ") = "innerHtml";
* getHrefInnerHtml("<a>innerHtml</a></a>") = "innerHtml";
* getHrefInnerHtml("jack<a>innerHtml</a></a>") = "innerHtml";
* getHrefInnerHtml("<a>innerHtml1</a><a>innerHtml2</a>") = "innerHtml2";
* </pre>
*
* @param href
* @return <ul>
* <li>if href is null, return ""</li>
* <li>if not match regx, return source</li>
* <li>return the last string that match regx</li>
* </ul>
*/
public static String getHrefInnerHtml(String href) {
if (isEmpty(href)) {
return "";
}
String hrefReg = ".*<[\\s]*a[\\s]*.*>(.+?)<[\\s]*/a[\\s]*>.*";
Pattern hrefPattern = Pattern.compile(hrefReg, Pattern.CASE_INSENSITIVE);
Matcher hrefMatcher = hrefPattern.matcher(href);
if (hrefMatcher.matches()) {
return hrefMatcher.group(1);
}
return href;
}
/**
* process special char in html
*
* <pre>
* htmlEscapeCharsToString(null) = null;
* htmlEscapeCharsToString("") = "";
* htmlEscapeCharsToString("mp3") = "mp3";
* htmlEscapeCharsToString("mp3<") = "mp3<";
* htmlEscapeCharsToString("mp3>") = "mp3\>";
* htmlEscapeCharsToString("mp3&mp4") = "mp3&mp4";
* htmlEscapeCharsToString("mp3"mp4") = "mp3\"mp4";
* htmlEscapeCharsToString("mp3<>&"mp4") = "mp3\<\>&\"mp4";
* </pre>
*
* @param source
* @return
*/
public static String htmlEscapeCharsToString(String source) {
return StringUtils.isEmpty(source) ? source : source.replaceAll("<", "<").replaceAll(">", ">")
.replaceAll("&", "&").replaceAll(""", "\"");
}
/**
* transform half width char to full width char
*
* <pre>
* fullWidthToHalfWidth(null) = null;
* fullWidthToHalfWidth("") = "";
* fullWidthToHalfWidth(new String(new char[] {12288})) = " ";
* fullWidthToHalfWidth("!"#$%&) = "!\"#$%&";
* </pre>
*
* @param s
* @return
*/
public static String fullWidthToHalfWidth(String s) {
if (isEmpty(s)) {
return s;
}
char[] source = s.toCharArray();
for (int i = 0; i < source.length; i++) {
if (source[i] == 12288) {
source[i] = ' ';
// } else if (source[i] == 12290) {
// source[i] = '.';
} else if (source[i] >= 65281 && source[i] <= 65374) {
source[i] = (char)(source[i] - 65248);
} else {
source[i] = source[i];
}
}
return new String(source);
}
/**
* transform full width char to half width char
*
* <pre>
* halfWidthToFullWidth(null) = null;
* halfWidthToFullWidth("") = "";
* halfWidthToFullWidth(" ") = new String(new char[] {12288});
* halfWidthToFullWidth("!\"#$%&) = "!"#$%&";
* </pre>
*
* @param s
* @return
*/
public static String halfWidthToFullWidth(String s) {
if (isEmpty(s)) {
return s;
}
char[] source = s.toCharArray();
for (int i = 0; i < source.length; i++) {
if (source[i] == ' ') {
source[i] = (char)12288;
// } else if (source[i] == '.') {
// source[i] = (char)12290;
} else if (source[i] >= 33 && source[i] <= 126) {
source[i] = (char)(source[i] + 65248);
} else {
source[i] = source[i];
}
}
return new String(source);
}
}
| [
"lh.jia0801@gmail.com"
] | lh.jia0801@gmail.com |
886fc42cb41174ef738bc23e6029a713d0f398e4 | 96299d156ad7df21e8e84bdc5ac39e07610fdad5 | /src/main/java/com/qsense/transfer/FoodSubTypeTO.java | 894bd214dca2a0b6b4352c38fcf0e185142961c3 | [] | no_license | qcri/icanQatarsense-ios-server | 4a36e41d8d9f319727fd36d6d0be05ad74ee02c1 | bafb7340d0c34a086c81b4ed78047fe47fe43879 | refs/heads/master | 2020-12-02T10:02:53.220723 | 2017-07-12T11:16:29 | 2017-07-12T11:16:29 | 96,681,708 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,174 | java | package com.qsense.transfer;
public class FoodSubTypeTO extends CommonTO {
/**
*
*/
private static final long serialVersionUID = 8491863053870908301L;
private String name;
private String displayName;
private FoodTypeTO foodTypeTO;
private Long id;
private ObservationUnitTO observationUnit;
private String iconSource;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIconSource() {
return iconSource;
}
public void setIconSource(String iconSource) {
this.iconSource = iconSource;
}
public ObservationUnitTO getObservationUnit() {
return observationUnit;
}
public void setObservationUnit(ObservationUnitTO observationUnit) {
this.observationUnit = observationUnit;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public FoodTypeTO getFoodTypeTO() {
return foodTypeTO;
}
public void setFoodTypeTO(FoodTypeTO foodTypeTO) {
this.foodTypeTO = foodTypeTO;
}
}
| [
"kader.lattab@gmail.com"
] | kader.lattab@gmail.com |
e9fd4e86d60a68cefb2fa7a92ba4544b9980105c | 734529a43a844a29abbb1c218d4dbb6b818ef41b | /app/src/main/java/kr/ac/konkuk/alldaytimer/LeftActivity.java | ba0962f18e0cf174ec3b1be7300877470b7fb415 | [] | no_license | choong-won-Baek/AllDayTimer | 7ab260333d7ae5f352303534382df8597e362be5 | 101f34a27e2cf77b790fb4653333a934e1cddcd4 | refs/heads/master | 2023-01-21T17:39:27.228160 | 2020-11-27T14:01:12 | 2020-11-27T14:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,697 | java | package kr.ac.konkuk.alldaytimer;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
public class LeftActivity extends AppCompatActivity implements OnClickListener{
Button word1;
Button word2;
Button play;
Button stop;
Button play2;
Button stop2;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_left);
word1=(Button)findViewById(R.id.button7);
word2=(Button)findViewById(R.id.button6);
Button prev = (Button)findViewById(R.id.prev);
play = (Button)findViewById(R.id.button2);
stop = (Button)findViewById(R.id.button3);
play2 = (Button)findViewById(R.id.button4);
stop2 = (Button)findViewById(R.id.button5);
play.setOnClickListener(this);
stop.setOnClickListener(this);
play2.setOnClickListener(this);
stop2.setOnClickListener(this);
prev.setOnClickListener(new OnClickListener() {//prev 버튼을 누르면 현재 activity를 종료하고 이전 activity로 돌아갑니다.
@Override
public void onClick(View view) {
finish();
}
});
}
public void wpImage(View view) {//이미지를 랜덤으로 보여주는 activity화면으로 넘어갑니다.
Intent intent = new Intent(LeftActivity.this, Image.class);
startActivity(intent);
}
public void prImage(View view) {//이미지를 랜덤으로 보여주는 activity화면으로 넘어갑니다.
Intent intent = new Intent(LeftActivity.this, Image2.class);
startActivity(intent);
}
public void onClick(View src){//onClick을 호출한 버튼 중에
switch(src.getId()){
case R.id.button2:// 버튼2가 선택 되었다면
startService(new Intent(this, MusicService.class));//MusicService activity service 실행
break;
case R.id.button3:// 버튼3가 선택 되었다면
stopService(new Intent(this, MusicService.class));//MusicService activity service 종료
break;
case R.id.button4:// 버튼4가 선택 되었다면
startService(new Intent(this, MusicService2.class));//MusicService2 activity service 실행
break;
case R.id.button5:// 버튼5가 선택 되었다면
stopService(new Intent(this, MusicService2.class));//MusicService2 activity service 종료
break;
}
}
}
| [
"wonone0902@gmail.com"
] | wonone0902@gmail.com |
3c7f7f350be6c33c6bb0f26812b3044e2cd32fff | e787637f6287b120830617f2f55bf2c800b05e98 | /amq-core/src/main/java/com/artlongs/amq/thinking/NioServer.java | 78ac5d923e40e8afdf4ba29c464e6c873f6e2eb8 | [] | no_license | apple006/amq-1 | 2f5c9a77eb098f94447bc23785c239f022f7e79f | 0217834b29c6701293214c2ee6c4e3b55b9b0c0c | refs/heads/master | 2020-07-31T14:27:45.058461 | 2019-05-31T08:43:12 | 2019-05-31T08:43:12 | 210,634,803 | 1 | 0 | null | 2019-09-24T15:19:36 | 2019-09-24T15:19:34 | null | UTF-8 | Java | false | false | 3,621 | java | package com.artlongs.amq.thinking;
import com.artlongs.amq.core.MqConfig;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
/**
* Func :
* Created by leeton on 2018/12/25.
*/
public class NioServer {
//通道管理器
private Selector selector;
//获取一个ServerSocket通道,并初始化通道
public NioServer init(int port) throws IOException {
//获取一个ServerSocket通道
ServerSocketChannel serverChannel = ServerSocketChannel.open();
serverChannel.configureBlocking(false);
serverChannel.socket().bind(new InetSocketAddress(port));
//获取通道管理器
selector=Selector.open();
//将通道管理器与通道绑定,并为该通道注册SelectionKey.OP_ACCEPT事件,
//只有当该事件到达时,Selector.select()会返回,否则一直阻塞。
serverChannel.register(selector, SelectionKey.OP_ACCEPT);
return this;
}
public void listen() throws IOException{
System.out.println("服务器端启动成功");
//使用轮询访问selector
while(true){
//当有注册的事件到达时,方法返回,否则阻塞。
selector.select();
//获取selector中的迭代器,选中项为注册的事件
Iterator<SelectionKey> ite=selector.selectedKeys().iterator();
while(ite.hasNext()){
SelectionKey key = ite.next();
//删除已选key,防止重复处理
ite.remove();
//客户端请求连接事件
if(key.isAcceptable()){
ServerSocketChannel server = (ServerSocketChannel)key.channel();
//获得客户端连接通道
SocketChannel channel = server.accept();
channel.configureBlocking(false);
//向客户端发消息
// channel.write(ByteBuffer.wrap(new String("send message to client").getBytes()));
ByteBuffer buffer = ByteBuffer.allocate(1);
buffer.position(0);
buffer.limit(0);
channel.write(buffer);
//在与客户端连接成功后,为客户端通道注册SelectionKey.OP_READ事件。
channel.register(selector, SelectionKey.OP_READ);
System.out.println("客户端请求连接事件");
}else if(key.isReadable()){//有可读数据事件
//获取客户端传输数据可读取消息通道。
SocketChannel channel = (SocketChannel)key.channel();
//创建读取数据缓冲器
ByteBuffer buffer = ByteBuffer.allocate(10);
int read = channel.read(buffer);
byte[] data = buffer.array();
String message = new String(data);
System.out.println("receive message from client, size:" + buffer.position() + " msg: " + message);
// ByteBuffer outbuffer = ByteBuffer.wrap(("server.".concat(msg)).getBytes());
// channel.write(outbuffer);
}
}
}
}
public static void main(String[] args) throws IOException {
new NioServer().init(MqConfig.inst.port).listen();
}
}
| [
"liqf@pvc123.com"
] | liqf@pvc123.com |
075de66df8b9a242a72d3925f8804a3823e8c5a9 | 45b9fdb42eafe5badd58ec344c74c06e18689361 | /server-oauth/src/main/java/com/lmm/cn/OAuthApplication.java | 6c860e5202a40857bd04bd3226ca2e7b6ceb4f14 | [] | no_license | loj896/lmm | c81b650164c758ff8b94b393252a1a6b6fd61bf0 | 22da1f54cdad2207e23e77ed8f7fb5f3c07a6d98 | refs/heads/master | 2020-11-24T14:50:22.402245 | 2019-12-15T15:00:36 | 2019-12-15T15:01:42 | 228,200,796 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,270 | java | package com.lmm.cn;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/***
* .::::.
* .::::::::.
* ::::::::::: @author liuhai
* ..:::::::::::' @date 2019-12-15 22:31
* '::::::::::::' @description
* .::::::::::
* '::::::::::::::..
* ..::::::::::::.
* ``::::::::::::::::
* ::::``:::::::::' .:::.
* ::::' ':::::' .::::::::.
* .::::' :::: .:::::::'::::.
* .:::' ::::: .:::::::::' ':::::.
* .::' :::::.:::::::::' ':::::.
* .::' ::::::::::::::' ``::::.
* ...::: ::::::::::::' ``::.
* ```` ':. ':::::::::' ::::..
* '.:::::' ':'````..
*/
@EnableDiscoveryClient
@SpringBootApplication
public class OAuthApplication {
public static void main(String[] args) {
SpringApplication.run(OAuthApplication.class, args);
}
}
| [
"loj897637)("
] | loj897637)( |
b484a5083d59411e0ce8a030c9a5389b2c3359bf | 68e1f6bb2fe1e2077258b8cf657f0d86143bb1dd | /user-server-dal/src/main/java/com/notes/user/base/UpdateMapper.java | f22c094d5b0aaa6e096677757e3056127ffe26e3 | [] | no_license | lsunggary/notes-manager-user | 9dae6da3e714b8b9a375385ad1effc0e48dac29f | 81164a354dd17c7ba9bbbc7f1a5a9436e1e7f4d6 | refs/heads/master | 2022-07-05T10:45:14.708393 | 2019-11-22T08:23:53 | 2019-11-22T08:23:53 | 222,383,711 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 694 | java | package com.notes.user.base;
import tk.mybatis.mapper.common.Marker;
import tk.mybatis.mapper.common.base.update.UpdateByPrimaryKeyMapper;
import tk.mybatis.mapper.common.base.update.UpdateByPrimaryKeySelectiveMapper;
import tk.mybatis.mapper.common.condition.UpdateByConditionMapper;
import tk.mybatis.mapper.common.condition.UpdateByConditionSelectiveMapper;
import tk.mybatis.mapper.common.example.UpdateByExampleSelectiveMapper;
public interface UpdateMapper<T> extends Marker,
UpdateByPrimaryKeyMapper<T>,
UpdateByPrimaryKeySelectiveMapper<T>,
UpdateByConditionMapper<T>,
UpdateByConditionSelectiveMapper<T>,
UpdateByExampleSelectiveMapper<T> {
}
| [
"liuyh@iotsh.com.cn"
] | liuyh@iotsh.com.cn |
7be7d83adbd74a179c4b2d993f52184412efe438 | c8eab2092016e580aebd6fc35ae8fbd1ba057f6f | /app/src/main/java/com/example/gao/mobilebike/utils/ToastUtils.java | 60e71259d8ac87aa4ff51a7c309dd1309c7acc0d | [] | no_license | changhexuefei/MobileBike | dfa6b2327c4fc40a9d63e96a5df7eac69621fcf1 | e9d715d337a4c1515f6295ce09b621bbaba13296 | refs/heads/master | 2021-01-22T02:59:06.790102 | 2017-02-08T14:35:10 | 2017-02-08T14:35:10 | 81,090,175 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,731 | java | package com.example.gao.mobilebike.utils;
import android.content.Context;
import android.widget.Toast;
/**
* Toast统一管理类
*/
public class ToastUtils {
private ToastUtils() {
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
public static boolean isShow = true;
/**
* 短时间显示Toast
*
* @param context
* @param message
*/
public static void showShort(Context context, CharSequence message) {
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
/**
* 短时间显示Toast
*
* @param context
* @param message
*/
public static void showShort(Context context, int message) {
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
/**
* 长时间显示Toast
*
* @param context
* @param message
*/
public static void showLong(Context context, CharSequence message) {
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
}
/**
* 长时间显示Toast
*
* @param context
* @param message
*/
public static void showLong(Context context, int message) {
if (isShow)
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
}
/**
* 自定义显示Toast时间
*
* @param context
* @param message
* @param duration
*/
public static void show(Context context, CharSequence message, int duration) {
if (isShow)
Toast.makeText(context, message, duration).show();
}
/**
* 自定义显示Toast时间
*
* @param context
* @param message
* @param duration
*/
public static void show(Context context, int message, int duration) {
if (isShow)
Toast.makeText(context, message, duration).show();
}
} | [
"changhexuefei@163.com"
] | changhexuefei@163.com |
22f3b63a27b0fe81e29892e42fb4f2c32bcae1d7 | 5b643dde05123ff2b3a8c2bc914c173b19a22bc3 | /src/main/java/chenqx/springaop/HelloInterface.java | 1d3e13c3df704a42dbb71d9878980f39337ca52a | [] | no_license | chenqx33/myStudy | 4bd48af4d9ecd1fbb91d2e93a1fa0839cfea5687 | ef9e167dee1eb00bf756516139ec174b420e3e59 | refs/heads/master | 2022-12-21T11:59:02.686448 | 2021-01-07T11:44:26 | 2021-01-07T11:45:42 | 159,602,865 | 0 | 0 | null | 2022-12-16T04:37:27 | 2018-11-29T03:36:52 | Java | UTF-8 | Java | false | false | 140 | java | package chenqx.springaop;
/**
* @author chenqx 2019-11-25
* @instruction
*/
public interface HelloInterface {
String sayHello();
}
| [
"chenqx"
] | chenqx |
f8d7030040f04dc9233674136fd401b99721b7c8 | ebacb9b54c3d0244c57d595cb10b800b419b2932 | /src/main/java/valorank/security/SecurityConfig.java | b798246501cb40f2a02492d689f588069b903f4a | [] | no_license | vmartinez26/neiu-cs-321 | 3e113d316b33785880e7d2dd74ef4d4230a9e12c | 77e7b19f284e356d45b655154e19e5dc502f4efe | refs/heads/master | 2023-01-28T19:13:41.905257 | 2020-12-06T02:03:15 | 2020-12-06T02:03:15 | 291,179,922 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,080 | java | package valorank.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import static org.hibernate.criterion.Restrictions.and;
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Qualifier("userRepositoryUserDetailsService")
@Autowired
private UserDetailsService userDetailsService;
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(userDetailsService)
.passwordEncoder(encoder());
}
@Bean
public PasswordEncoder encoder(){
return new BCryptPasswordEncoder();
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/interiorrank", "/modify/**", "/rank/current","/showrankname")
.hasRole("USER")
.and()
.authorizeRequests()
.antMatchers("/h2-console/**")
.permitAll()
.and()
.formLogin().loginPage("/login").defaultSuccessUrl("/interiorrank")
.and()
.logout().logoutSuccessUrl("/")
;
http.csrf().disable();
http.headers().frameOptions().disable();
}
}
| [
"45808188+vladthedrummer@users.noreply.github.com"
] | 45808188+vladthedrummer@users.noreply.github.com |
66555a2f399a5d45e41ab4a2b209b442c224f3c8 | 6f0027d205d58140fae053fc5a637c535521276d | /java-opensaml/opensaml-core/src/main/java/org/opensaml/xml/schema/impl/XSStringMarshaller.java | a935b25861ddc2f68b8a85ab099d14cb6cf538e7 | [] | no_license | murkhog/SAML-2.0 | b8f5fbf91f68bc3d9cef05cda16d0121304c8e16 | 96363df652cff76cd7a04f200a7f58b988b7bfe7 | refs/heads/master | 2020-05-07T18:44:23.200028 | 2011-05-31T21:32:14 | 2011-05-31T21:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,569 | java | /*
* Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensaml.xml.schema.impl;
import org.opensaml.xml.XMLObject;
import org.opensaml.xml.io.AbstractXMLObjectMarshaller;
import org.opensaml.xml.io.MarshallingException;
import org.opensaml.xml.schema.XSString;
import org.opensaml.xml.util.XMLHelper;
import org.w3c.dom.Element;
/**
* Thread-safe marshaller of {@link org.opensaml.xml.schema.XSString} objects.
*/
public class XSStringMarshaller extends AbstractXMLObjectMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
// no attributes
}
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
XSString xsiString = (XSString) xmlObject;
XMLHelper.appendTextContent(domElement, xsiString.getValue());
}
} | [
"alex.objelean@gmail.com"
] | alex.objelean@gmail.com |
144e910bb926ba1e16de13f1985a8e8558d6fe85 | 59863b427ac2c7a3d785abb4e37a93c4b3b2ab26 | /src/GameConstructor/GamePhysicsBody.java | 30ac655e04b831191362b06eb3a673349bc32d56 | [] | no_license | Apozzi/BulletEngineDanmaku | 54f4a57e9078d2fd58d850c2ead6a520b96c7b0f | ec234958da56546fad765a987413fd5d417424a5 | refs/heads/master | 2022-11-19T12:41:42.112441 | 2020-07-09T15:57:32 | 2020-07-09T15:57:32 | 89,986,863 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,899 | java | package GameConstructor;
import java.util.ArrayList;
import Geometry.Line;
import Utils.ObjectShape;
public abstract class GamePhysicsBody extends GameObject{
private static ArrayList<GamePhysicsBody> allPhysicalBody = new ArrayList<>();
private boolean isVariableAcceleration = false;
private float accelerationX;
private float accelerationY;
private float friction = 20;
private boolean active = true;
private double angle;
private boolean checkCollision = true;
private boolean angularMovement = false;
public GamePhysicsBody(float x, float y, float height, float width) {
super(x, y, height, width);
allPhysicalBody.add(this);
}
public GamePhysicsBody(float x, float y, float height, float width, float rotation) {
super(x, y, height, width, rotation);
allPhysicalBody.add(this);
}
public GamePhysicsBody(ObjectShape shape, float x, float y, float height, float width) {
super(shape, x, y, height, width);
allPhysicalBody.add(this);
}
@Override
public void MoveRight() {
x += getMovement();
areaTranslate(getMovement(), 0);
if (this.isCollided()) {
x -= getMovement();
areaTranslate(-getMovement(), 0);
accelerationX = -friction;
if (isVariableAcceleration) {
cineticForceMovement();
}
} else {
if (isVariableAcceleration) {
accelerationX++;
cineticForceMovement();
}
}
this.angle = 0;
}
@Override
public void MoveLeft() {
x -= getMovement();
areaTranslate(-getMovement(), 0);
if (this.isCollided()) {
x += getMovement();
areaTranslate(getMovement(), 0);
accelerationX = -friction;
if (isVariableAcceleration) {
cineticForceMovement();
}
} else {
if (isVariableAcceleration) {
accelerationX--;
cineticForceMovement();
}
}
this.angle = Math.PI;
}
@Override
public void MoveDown() {
y -= getMovement();
areaTranslate(0 , -getMovement());
if (this.isCollided()) {
y += getMovement();
areaTranslate(0, getMovement());
accelerationY = friction;
if (isVariableAcceleration) {
cineticForceMovement();
}
} else {
if (isVariableAcceleration) {
accelerationY--;
cineticForceMovement();
}
}
this.angle = (3*Math.PI)/2;
}
@Override
public void MoveUp() {
y += getMovement();
areaTranslate(0 , getMovement());
if (this.isCollided()) {
y -= getMovement();
areaTranslate(0, -getMovement());
accelerationY = -friction;
if (isVariableAcceleration) {
cineticForceMovement();
}
} else {
if (isVariableAcceleration) {
accelerationY++;
cineticForceMovement();
}
}
this.angle = Math.PI/2;
}
public void Move(double movx,double movy) {
if (isActive()) {
double oldX = x;
double oldY = y;
if (angularMovement) {
movx = movx*Math.cos(angle);
movy = movy*Math.sin(angle);
}
y += movy;
x += movx;
areaTranslate(movx , movy);
if (this.isCollided()) {
y -= movy;
x -= movx;
areaTranslate(-movx, -movy);
}
if (!angularMovement) {
this.angle = Line.getAngleFromXY(oldX, oldY, x, y);
}
render();
}
}
public void doNothing() {
if (isVariableAcceleration) {
cineticForceMovement();
accelerationY = accelerationY/(1+(0.005f * friction));
accelerationX = accelerationX/(1+(0.005f * friction));
}
render();
}
public void angularAceleration(double acceleration) {
if (isVariableAcceleration) {
accelerationX += Math.cos(angle)*acceleration;
accelerationY += Math.sin(angle)*acceleration;
cineticForceMovement();
}
}
private void cineticForceMovement() {
y += accelerationY/friction;
x += accelerationX/friction;
areaTranslate(accelerationX/friction, accelerationY/friction);
}
public boolean isVariableAcceleration() {
return isVariableAcceleration;
}
public void setVariableAcceleration(boolean isVariableAcceleration) {
this.isVariableAcceleration = isVariableAcceleration;
}
public float getFriction() {
return friction;
}
public void setFriction(float friction) {
this.friction = friction;
}
public boolean isCheckCollision() {
return checkCollision;
}
public void setCheckCollision(boolean checkCollision) {
this.checkCollision = checkCollision;
}
public void setAngle(double angle) {
this.angle = angle;
}
public double getAngle() {
return angle;
}
public void setZeroAcceleration() {
accelerationX = 0;
accelerationY = 0;
}
public void setAngularMovement(boolean angularMovement) {
this.angularMovement = angularMovement;
}
private boolean isCollided() {
if (!checkCollision) {
return false;
}
for (GamePhysicsBody gamePhysicsBody : allPhysicalBody) {
if ((!this.equals(gamePhysicsBody)) && this.collide(gamePhysicsBody)) {
return true;
}
}
return false;
}
public boolean isActive() {
return active;
}
public void setActive(boolean active) {
this.active = active;
}
}
| [
"eanderea1@gmail.com"
] | eanderea1@gmail.com |
67467fd78e0c5e6e0c70642dba7e60afdd49fc0e | 634e3328d7373df19443d5bfa3ed4d1460e40184 | /back-end/src/main/java/com/syouketu/modules/system/api/BsTemplateController.java | 3995712cf3aef36f199fce671360014374d10d55 | [
"Apache-2.0"
] | permissive | syouketu/code-generator | c4ba0a7f64a3edf4ba53295464a2a702bba53412 | fabe0da50aedff607602f215ee009a487e3a62ca | refs/heads/main | 2023-07-15T07:03:24.798104 | 2021-08-27T02:30:23 | 2021-08-27T02:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,421 | java | package com.syouketu.modules.system.api;
import com.baomidou.mybatisplus.plugins.Page;
import com.syouketu.modules.common.dto.output.ApiResult;
import com.syouketu.modules.system.dto.input.BsTemplateQueryPara;
import com.syouketu.modules.system.entity.BsTemplate;
import com.syouketu.modules.system.service.IBsTemplateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 项目代码模板表 接口
* </p>
*
* @author: JXI
* @description:
* @date: Created on 2019-07-08
*/
@RestController
@RequestMapping("/api/system/bsTemplate")
@Api(description = "项目代码模板表接口")
public class BsTemplateController {
@Autowired
IBsTemplateService bsTemplateService;
@RequestMapping(value = "/listPage", method = RequestMethod.POST, produces = "application/json;charset=utf-8")
@ResponseBody
@ApiOperation(value = "获取项目代码模板表列表分页", httpMethod = "POST", response = BsTemplate.class, notes = "获取项目代码模板表列表分页")
public ApiResult listPage(@RequestBody BsTemplateQueryPara filter) {
Page<BsTemplate> page = new Page<>(filter.getPage(), filter.getLimit());
bsTemplateService.listPage(page, filter);
return ApiResult.ok("获取项目代码模板表列表分页成功", page);
}
@RequestMapping(value = "/list", method = RequestMethod.POST, produces = "application/json;charset=utf-8")
@ResponseBody
@ApiOperation(value = "获取项目代码模板表列表", httpMethod = "POST", response = BsTemplate.class, notes = "获取项目代码模板表列表")
public ApiResult list(@RequestBody BsTemplateQueryPara filter) {
List result = bsTemplateService.list(filter);
return ApiResult.ok("获取项目代码模板表列表成功", result);
}
@RequestMapping(value = "/save", method = RequestMethod.POST, produces = "application/json;charset=utf-8")
@ResponseBody
@ApiOperation(value = "保存项目代码模板表", httpMethod = "POST", response = ApiResult.class, notes = "保存项目代码模板表")
public ApiResult save(@RequestBody BsTemplate input) {
Integer id = bsTemplateService.save(input);
return ApiResult.ok("保存项目代码模板表成功", id);
}
@RequestMapping(value = "/delete", method = RequestMethod.POST, produces = "application/json;charset=utf-8")
@ResponseBody
@ApiOperation(value = "删除项目代码模板表", httpMethod = "POST", response = ApiResult.class, notes = "删除项目代码模板表")
public ApiResult delete(@RequestBody BsTemplateQueryPara input) {
bsTemplateService.deleteById(input.getId());
return ApiResult.ok("删除项目代码模板表成功");
}
@RequestMapping(value = "/getById", method = RequestMethod.POST, produces = "application/json;charset=utf-8")
@ResponseBody
@ApiOperation(value = "获取项目代码模板表信息", httpMethod = "POST", response = BsTemplate.class, notes = "获取项目代码模板表信息")
public ApiResult getById(@RequestBody BsTemplateQueryPara input) {
BsTemplate entity = bsTemplateService.selectById(input.getId());
return ApiResult.ok("获取项目代码模板表信息成功", entity);
}
} | [
"xiaojie@coicplat.com"
] | xiaojie@coicplat.com |
97c1702dd163bbc183fbcdbf639d43b870ca7085 | 7352e39689268f2cd757893699b83d2e0f948043 | /20201110/RandomDice2.java | ef69fcfc2d695dde704800799fa654c0db7c81d3 | [] | no_license | karakazeviewview/Training | 7ad0bce7133dc4d567c59cd49fab61041bf3488b | ec132d8c1e66a84095a40b7faf7579573a79d358 | refs/heads/master | 2023-02-03T11:02:40.452063 | 2020-12-24T00:19:00 | 2020-12-24T00:19:00 | 311,192,401 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 127 | java | public class RandomDice2{
public static void main(String[] args){
int[] dice=new int[10];
for(int i=0;i<dice.length)
}
}
| [
"mitsuru.matsuo.great@gmail.com"
] | mitsuru.matsuo.great@gmail.com |
ffc2785c934c83581e2a39cb4c8759854b866160 | eeffeee56eb99ac2140cf58b2093ecf1f9d9f2fb | /src/main/java/com/hxat/anxin/nettyserver/bean/RpcResponse.java | ad805f1161bd290e660e67cb7f49ab694d7767c5 | [] | no_license | liuyankun/nettyserver | f70d40379a6497944d32e3c72109606289c677c2 | 4e973bf3954df3687c3b0cf783cd5d35c0d8ecd2 | refs/heads/master | 2021-01-12T13:32:49.967200 | 2016-10-16T10:54:27 | 2016-10-16T10:54:27 | 69,846,033 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 776 | java | package com.hxat.anxin.nettyserver.bean;
/**
* 封装 RPC 响应
*
* @author huangyong
* @since 1.0.0
*/
public class RpcResponse {
private String requestId;
private Exception exception;
private Object result;
public boolean hasException() {
return exception != null;
}
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Throwable getException() {
return exception;
}
public void setException(Exception exception) {
this.exception = exception;
}
public Object getResult() {
return result;
}
public void setResult(Object result) {
this.result = result;
}
}
| [
"lyankun1988@126.com"
] | lyankun1988@126.com |
bb2f133f89a13f62e43323a929d41d6a16026970 | a14a6831446381d1eecf920c14502f0fcb637703 | /hi.java | 170edd9003b13595e029a28b64851ba0b72ac138 | [] | no_license | charles201311/1801e | 47a4fdb8d611a8dc9b572967e50b486b608633ba | 42c675c9b0a6a33df88eebc49773fb8aa6a7f986 | refs/heads/master | 2022-04-21T22:45:47.799617 | 2020-04-22T01:39:38 | 2020-04-22T01:39:38 | 257,527,764 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 74 | java | 11111111
222222
ddd
33333333 2018 -提交 sss
33333333的 2018 -提交
| [
"348828809@qq.com"
] | 348828809@qq.com |
1fecaa1828b25bad1442651900ce7660ae2d57cd | 7e31de80bc65f7e922f4b2cc336346c58071479f | /labs/src/main/java/org/nmu/sau/lab/zero/Main.java | 400542563bb3db454cf2677f13efae7d505e7cd9 | [] | no_license | fnt4tic/air-carnival | 80dda199d8157a59a753b377c7522198af23b04d | 454a5c0a6e6faec8969996b50b34848e5b078332 | refs/heads/master | 2020-04-07T14:15:58.428452 | 2018-11-20T19:25:44 | 2018-11-20T19:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 155 | java | package org.nmu.sau.lab.zero;
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
| [
"noreply@github.com"
] | noreply@github.com |
6a4ee3db2adcd052fd982e21e9adf71836f51819 | 15eb7c705a16711339ba2d364721c5300c885830 | /portal-cms/src/main/java/com/swinginwind/portal/cms/dao/ColumnInfoDaoCustom.java | a8160cf6f36e0cd20abf23dd486e997f919ae168 | [
"Apache-2.0"
] | permissive | xiaozhudezhu/portal-master | 97cd06c9f5ac77462db3c34097be054cb488fc3e | f74083f3f297e02585f41eb05e0925196060bf3c | refs/heads/master | 2023-05-31T14:10:54.274544 | 2021-06-17T12:25:12 | 2021-06-24T10:55:42 | 371,368,747 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 533 | java | package com.swinginwind.portal.cms.dao;
import com.swinginwind.portal.cms.dto.ColumnInfoQueryDTO;
import com.swinginwind.portal.cms.entity.ColumnInfo;
import com.swinginwind.portal.common.entity.PageModel;
import java.util.List;
/**
* @author xujianfang
* @desc ColumnInfoDaoCustom接口
* @date 2017-03-16
*/
public interface ColumnInfoDaoCustom {
PageModel<ColumnInfo> queryColumnInfoPage(ColumnInfoQueryDTO columnInfoQueryDTO);
List<ColumnInfo> queryColumnInfoList(ColumnInfoQueryDTO columnInfoQueryDTO);
} | [
"hadoop@GENERTECH0836"
] | hadoop@GENERTECH0836 |
26bf80b0107cfaaa7b979b55c40b57a27744b67a | f62a29b0f818102a42f40fadd44f3550245cbee3 | /UTP_Aplicacion/2. Construccion/2.3. Codigo fuente/transportes_gepp/src/java/pe/modelo/dto/ParametroDto.java | 9ec60161b94a80bb102c5777b07b6d09117a6c6d | [] | no_license | arnaldo4511/Sistema-WEB-de-Facturacion-Electronica | 4a9d15d0078624af91ae8052011c4998b2671a4c | c6e18ce5c5592579c80aa9147ebbfec9176c28bf | refs/heads/master | 2021-01-02T22:36:33.874620 | 2017-10-16T19:40:37 | 2017-10-16T19:40:37 | 99,351,971 | 0 | 1 | null | 2017-10-16T19:40:38 | 2017-08-04T14:40:51 | Java | UTF-8 | Java | false | false | 876 | 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 pe.modelo.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
* @author octavio
*/
public class ParametroDto {
@JsonProperty("nombre")
private String nombre;
@JsonProperty("valor")
private String valor;
public ParametroDto() {
}
public ParametroDto(String nombre, String valor) {
this.nombre = nombre;
this.valor = valor;
}
public String getNombre() {
return this.nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getValor() {
return this.valor;
}
public void setValor(String valor) {
this.valor = valor;
}
}
| [
"arnaldo_45rv@hotmail.com"
] | arnaldo_45rv@hotmail.com |
bb53f3b48d35e112c61012ec76542d303cdd4892 | 791c9fb4d02e1202ffa3bdd4b97d1d6fd1f19cd0 | /smartHome/src/main/java/org/raj/smartHomeDeviceManager/domain/UserLogin.java | 271a3886c077af1d44445affd628634444485778 | [] | no_license | ASHHFLY/SmartHomeDeviceManager | 6b2c398e53319761d564864077aab8f25444950f | a513336b79a992ef05dd0328895278af3434f4eb | refs/heads/master | 2022-12-29T04:42:39.728762 | 2020-10-20T07:40:56 | 2020-10-20T07:40:56 | 305,648,940 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 517 | java | package org.raj.smartHomeDeviceManager.domain;
public class UserLogin {
private String username;
private String password;
public UserLogin(String username,String password) {
this.username=username;
this.password=password;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public void setUsername(String username) {
this.username=username;
}
public void setPassword(String password) {
this.password=password;
}
}
| [
"rajaseker05@gmail.com"
] | rajaseker05@gmail.com |
f5d24e6977c4de898bef11de16b2f5057e8c450c | c0667096de8c00d7623f9209eab0195d26945e7d | /src/returnBook.java | f3ef56e34e4b0a4c61891923aca3d7b761703496 | [] | no_license | VineetVemula/Library-Management-DBMS | 0a3105cefb9fce6775ecd2b0bd6ed0c306264dd7 | 3e0c7c638ff8679ff30fbec5ba981a8e9e9513fd | refs/heads/master | 2021-04-06T19:45:28.160825 | 2018-03-15T19:03:01 | 2018-03-15T19:03:01 | 125,413,249 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,440 | java | import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.awt.event.ActionEvent;
public class returnBook extends JFrame {
private JPanel contentPane;
private JTextField textSID;
private JTextField textBID;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
returnBook frame = new returnBook();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
Connection connection = null;
/**
* Create the frame.
*/
public returnBook() {
connection=sqliteConnection.dbConnector();
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 506, 465);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel lblReturnBook = new JLabel("RETURN BOOK");
lblReturnBook.setFont(new Font("Tahoma", Font.PLAIN, 30));
lblReturnBook.setBounds(67, 16, 359, 40);
contentPane.add(lblReturnBook);
lblReturnBook.setHorizontalAlignment(SwingConstants.CENTER);
JButton button = new JButton("<-");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
issueAndReturn iar = new issueAndReturn();
iar.setVisible(true);
setVisible(false);
dispose();
}
});
button.setBounds(15, 16, 51, 40);
contentPane.add(button);
JLabel lblEnterStudentId = new JLabel("Enter Student ID");
lblEnterStudentId.setFont(new Font("Tahoma", Font.PLAIN, 20));
lblEnterStudentId.setBounds(15, 139, 152, 37);
contentPane.add(lblEnterStudentId);
textSID = new JTextField();
textSID.setBounds(182, 136, 192, 40);
contentPane.add(textSID);
textSID.setColumns(10);
JLabel lblEnterBookId = new JLabel("Enter Book ID");
lblEnterBookId.setFont(new Font("Tahoma", Font.PLAIN, 20));
lblEnterBookId.setBounds(15, 228, 152, 34);
contentPane.add(lblEnterBookId);
textBID = new JTextField();
textBID.setBounds(182, 227, 192, 40);
contentPane.add(textBID);
textBID.setColumns(10);
JButton btnReturnBook = new JButton("Return Book");
btnReturnBook.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try{
String query = "update booklist set quantity=quantity+1 where bid=? and quantity >= 0";
PreparedStatement pst = connection.prepareStatement(query);
pst.setString(1, textBID.getText());
pst.execute();
pst.close();
query = "update student set bid=NULL where sid = ?";
pst = connection.prepareStatement(query);
pst.setString(1, textSID.getText());
pst.execute();
JOptionPane.showMessageDialog(null, "Book Returned");
pst.close();
textSID.setText("");
textBID.setText("");
}
catch(Exception e1){
e1.printStackTrace();
}
}
});
btnReturnBook.setFont(new Font("Tahoma", Font.PLAIN, 20));
btnReturnBook.setBounds(158, 324, 148, 50);
contentPane.add(btnReturnBook);
}
}
| [
"vindare@gmail.com"
] | vindare@gmail.com |
762810471427c394414748854c1cd9cf40c7e77e | 6c12b0a497d7daef753a26b4ca101de2db4b4a32 | /06_02/start/test/Form.java | 2fcf9f3355585f4e442393ea3c1de7624102a881 | [] | no_license | Alexius337/formy-automation-project | 5cf8d1102b8047f60c71c261c935233340185741 | 61cad5df88fee8141c5b1a235ff57f473c21ae15 | refs/heads/master | 2023-06-04T17:30:48.529131 | 2021-06-19T23:02:35 | 2021-06-19T23:02:35 | 378,518,573 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,595 | java | import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import static org.junit.Assert.assertEquals;
public class Form {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\almyr\\Downloads\\chromedriver_win32\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://formy-project.herokuapp.com/form");
driver.findElement(By.id("first-name")).sendKeys("John");
driver.findElement(By.id("last-name")).sendKeys("Doe");
driver.findElement(By.id("job-title")).sendKeys("QA Engineer");
driver.findElement(By.id("radio-button-2")).click();
driver.findElement(By.id("checkbox-2")).click();
driver.findElement(By.cssSelector("option[value='1']")).click();
driver.findElement(By.id("datepicker")).sendKeys("05/28/2019");
driver.findElement(By.id("datepicker")).sendKeys(Keys.RETURN);
driver.findElement(By.cssSelector(".btn.btn-lg.btn-primary")).click();
WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement alert = wait.until((ExpectedConditions.visibilityOfElementLocated(By.className("alert"))));
String alertText = alert.getText();
assertEquals("The form was successfully submitted!", alertText);
driver.quit();
}
}
| [
"almyro@gmail.com"
] | almyro@gmail.com |
d2f663a8926e94565c98a834103fca8a8905166d | cf306ed3d61e53b4021d32195ed8591a08ee14ce | /Java/Easy/Count and Say.java | 43261ff76c216fae147e3fe174031e0a612a90b0 | [] | no_license | peizhe/LintCode-1 | c987c2f852181058944ecad117b67a917ba8a182 | 13ebe35eba790907628fd275a73497a5dd70c5fc | refs/heads/master | 2020-12-24T21:21:35.548813 | 2015-08-02T06:11:17 | 2015-08-02T06:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 680 | java | public class Solution {
/**
* @param n the nth
* @return the nth sequence
*/
public String countAndSay(int n) {
// Write your code here
String old = "1";
int count;
while(--n >0) {
StringBuilder sb = new StringBuilder();
for(int i=0; i<old.length(); i++) {
count = 1;
while((i+1)<old.length() && old.charAt(i)==old.charAt(i+1)) {
count++;
i++;
}
sb.append(String.valueOf(count)+old.charAt(i));
}
old = sb.toString();
}
return old;
}
}
| [
"wrzhu@buaa.edu.cn"
] | wrzhu@buaa.edu.cn |
d1a464d705c21dd16d801057311f9dd515771dc1 | 234a7d93dd1f05e068814b5da12c028988cb0b9b | /Autovermietung_Test/src/de/autovermietung/onlinesystem/GetAA.java | 98508829f3c0955f2b6850b6ff1c057ff9d8c83e | [] | no_license | SEProjects/project | b1c1b4899d1fe3c269a008fb822ddfb12ebe6826 | 927597f4eacc051b6a8b04eb445e84756dfcca40 | refs/heads/master | 2020-04-14T23:42:01.184806 | 2015-06-25T05:13:50 | 2015-06-25T05:13:50 | 33,113,661 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,655 | java |
package de.autovermietung.onlinesystem;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für getAA complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType name="getAA">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Sessionid" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="AAid" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getAA", propOrder = {
"sessionid",
"aAid"
})
public class GetAA {
@XmlElement(name = "Sessionid")
protected int sessionid;
@XmlElement(name = "AAid")
protected int aAid;
/**
* Ruft den Wert der sessionid-Eigenschaft ab.
*
*/
public int getSessionid() {
return sessionid;
}
/**
* Legt den Wert der sessionid-Eigenschaft fest.
*
*/
public void setSessionid(int value) {
this.sessionid = value;
}
/**
* Ruft den Wert der aAid-Eigenschaft ab.
*
*/
public int getAAid() {
return aAid;
}
/**
* Legt den Wert der aAid-Eigenschaft fest.
*
*/
public void setAAid(int value) {
this.aAid = value;
}
}
| [
"Kevin.haase.kh@googlemail.com"
] | Kevin.haase.kh@googlemail.com |
dca7796dfb8ade4c8eb2072e6241fb6951bc8912 | 873cce85f4089a69e5dfbf51dda10339d9521be7 | /app/src/main/java/com/example/mayur/pdm/Stat.java | 25a60207472ec31000993e4e2df9d50d0fe5bd4f | [] | no_license | dulie1/PDMnew | a82485ce220270a5008c6a0c6332f6123618c484 | 250c8d65ac1204420c9e29c1546f032d8929db41 | refs/heads/master | 2020-03-18T01:19:38.510104 | 2018-05-20T08:36:18 | 2018-05-20T08:36:18 | 134,137,635 | 0 | 0 | null | 2018-05-20T09:38:26 | 2018-05-20T09:38:26 | null | UTF-8 | Java | false | false | 16,201 | java | package com.example.mayur.pdm;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
import com.github.mikephil.charting.charts.BarChart;
import com.github.mikephil.charting.data.BarData;
import com.github.mikephil.charting.data.BarDataSet;
import com.github.mikephil.charting.data.BarEntry;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import java.util.ArrayList;
import java.util.Map;
public class Stat extends AppCompatActivity {
private BarChart barChart;
private BarData barData;
private TextView mdis;
private TextView mcs;
private TextView fu;
private TextView m;
private TextView gene;
private EditText yr;
private DatabaseReference mdata;
String t1,t2,t3,t4;
float moodarr[] = {5.0f, 25.0f, 6.7f,5.3f};
float f1 = 0f;
float f2 = 0f;
float f3 = 0f;
float f4 = 0f;
String record="";
ArrayAdapter<String> adapter;
String months[] = {"Month","January","February","March","April","May","June","July","Augest","September","October","November","December"};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_stat);
mdis = findViewById(R.id.id_emil);
mcs = findViewById(R.id.id_ecs);
fu = findViewById(R.id.id_efu);
m = findViewById(R.id.id_eemi);
gene = findViewById(R.id.gen);
yr = findViewById(R.id.id_eyear);
t1 = mdis.getText().toString();
t2 = mcs.getText().toString();
t3 = fu.getText().toString();
t4 = m.getText().toString();
gene.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mdata = FirebaseDatabase.getInstance().getReference().child("Fuel");
mdata.addValueEventListener(new ValueEventListener() {
@Override
//database su
public void onDataChange(DataSnapshot dataSnapshot) {
float sum = 0.0f;
float sum1 = 0.0f;
float sum2 = 0.0f;
float sum3 = 0.0f;
for (DataSnapshot ds : dataSnapshot.getChildren()) {
Map<String, Object> map = (Map<String, Object>) ds.getValue();
Object mil = map.get("Date");
String pmil = String.valueOf(mil);
String part1[] = pmil.split("/");
String year = yr.getText().toString();
if (part1[0].equals(record) && part1[2].equals(year)) {
Object mileage = map.get("Mileage");
String s1 = String.valueOf(mileage);
float ff = new Float(s1).floatValue();
// Double pmileage = Double.parseDouble(String.valueOf(mileage));
sum += ff;
Log.d("Sum", String.valueOf(sum));
mdis.setText(String.valueOf(sum));
}
}
for (DataSnapshot ds : dataSnapshot.getChildren()) {
Map<String, Object> map = (Map<String, Object>) ds.getValue();
Object mil1 = map.get("Date");
String pmil1 = String.valueOf(mil1);
String part1[] = pmil1.split("/");
String year = yr.getText().toString();
if (part1[0].equals(record) && part1[2].equals(year)) {
Object mileage1 = map.get("Quantity");
String s2 = String.valueOf(mileage1);
float ff1 = new Float(s2).floatValue();
// Double pmileage1 = Double.parseDouble(String.valueOf(mileage1));
sum1 += ff1;
Log.d("Sum", String.valueOf(sum1));
fu.setText(String.valueOf(sum1));
}
}
for (DataSnapshot ds : dataSnapshot.getChildren()) {
Map<String, Object> map = (Map<String, Object>) ds.getValue();
Object mil2 = map.get("Date");
String pmil2 = String.valueOf(mil2);
String part1[] = pmil2.split("/");
String year = yr.getText().toString();
if (part1[0].equals(record) && part1[2].equals(year)) {
Object mileage2 = map.get("Cost");
String s3 = String.valueOf(mileage2);
float ff2 = new Float(s3).floatValue();
// Double pmileage2= Double.parseDouble(String.valueOf(mileage2));
sum2 += ff2;
Log.d("Sum", String.valueOf(sum2));
mcs.setText(String.valueOf(sum2));
}
}
for (DataSnapshot ds : dataSnapshot.getChildren()) {
Map<String, Object> map = (Map<String, Object>) ds.getValue();
Object mil3 = map.get("Date");
String pmil3 = String.valueOf(mil3);
String part1[] = pmil3.split("/");
String year = yr.getText().toString();
if (part1[0].equals(record) && part1[2].equals(year)) {
Object mileage3 = map.get("CO2(Emited)");
String s3 = String.valueOf(mileage3);
float ff2 = new Float(s3).floatValue();
//Double pmileage3 = Double.parseDouble(String.valueOf(mileage3));
sum3 += ff2;
Log.d("Sum", String.valueOf(sum3));
m.setText(String.valueOf(sum3));
}
}
}
/* private ArrayList<BarDataSet> getBarvalues() {
ArrayList<BarDataSet> barDataSets;
ArrayList<BarEntry> barEntries = new ArrayList<>();
*/
/* Double val1 = Double.parseDouble(mdis.getText().toString());
Double val2 = Double.parseDouble(mcs.getText().toString());
Double val3 = Double.parseDouble(fu.getText().toString());
Double val4 = Double.parseDouble(m.getText().toString());
float g =val1.floatValue();
float g1 =val2.floatValue();
float g2 =val3.floatValue();
float g3 =val4.floatValue();
*/
/* String t1 = mdis.getText().toString();
String t2 = mcs.getText().toString();
String t3 = fu.getText().toString();
String t4 = m.getText().toString();
float f1 = new Float(t1).floatValue();
float f2 = new Float(t2).floatValue();
float f3 = new Float(t3).floatValue();
float f4 = new Float(t4).floatValue();
BarEntry barEntry1 = new BarEntry(f1, 0);
BarEntry barEntry2 = new BarEntry(f2, 1);
BarEntry barEntry3 = new BarEntry(f3, 2);
BarEntry barEntry4 = new BarEntry(f4, 3);
barEntries.add(barEntry1);
barEntries.add(barEntry2);
barEntries.add(barEntry3);
barEntries.add(barEntry4);
//instead
for (int i=0;i<moodarr.length; i++)
{
barEntries.add(new BarEntry(moodarr[i],i));
}
BarDataSet barDataSet = new BarDataSet(barEntries, "Monthly Rates");
barDataSets = new ArrayList<>();
barDataSets.add(barDataSet);
barDataSet.setColor(Color.YELLOW);
return barDataSets;
}
private ArrayList<String> getXvalues() {
ArrayList<String> xvalues = new ArrayList<>();
xvalues.add("Milage");
xvalues.add("Fuel Consumption");
xvalues.add("Cost");
xvalues.add("CO2 Emission");
return xvalues;
}
*/
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
});
//barChart
barChart = (BarChart) findViewById(R.id.barc);
barData = new BarData(getXvalues(), getBarvalues());
barData.setValueTextColor(Color.rgb(25, 103, 97));
barChart.setData(barData);
barChart.setBackgroundColor(Color.rgb(18, 49, 46));
barChart.getXAxis().setTextColor(Color.rgb(25, 103, 97));
barChart.setGridBackgroundColor(Color.rgb(18, 63, 60));
barChart.animateXY(3000, 3000);
barChart.invalidate();
Spinner spinner = (Spinner) findViewById(R.id.spin);
adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item, months);
// Create an ArrayAdapter using the string array and a default spinner layout
// ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,R.array.month_array, android.R.layout.simple_spinner_item);
// Specify the layout to use when the list of choices appears
// adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
// Apply the adapter to the spinner
spinner.setAdapter(adapter);
spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {
switch (position) {
case 1:
record = "1";
break;
case 2:
record = "2";
break;
case 3:
record = "3";
break;
case 4:
record = "4";
break;
case 5:
record = "5";
break;
case 6:
record = "6";
break;
case 7:
record = "7";
break;
case 8:
record = "8";
break;
case 9:
record = "9";
break;
case 10:
record = "10";
break;
case 11:
record = "11";
break;
case 12:
record = "12";
break;
}
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
});
}
/*
float f1=1000.6f;
float f2=1054.6f;
float f3=2006.0f;
float f4=1504.5f;
*/
/* Double val1 = Double.parseDouble(mdis.getText().toString());
Double val2 = Double.parseDouble(mcs.getText().toString());
Double val3 = Double.parseDouble(fu.getText().toString());
Double val4 = Double.parseDouble(m.getText().toString());
float g =val1.floatValue();
float g1 =val2.floatValue();
float g2 =val3.floatValue();
float g3 =val4.floatValue();
*/
/* String t1 = String.valueOf(mdis.getText().toString());
String t2 = String.valueOf(mcs.getText().toString());
String t3 = String.valueOf(fu.getText().toString());
String t4 = String.valueOf(m.getText().toString());
*/
/*
float p1 = new Float(t1).floatValue();
f1=Float.valueOf(p1);
float fi = new Float(t2).floatValue();
f2 = Float.valueOf(fi);
float p3 = new Float(t3).floatValue();
f3 = Float.valueOf(p3);
float p4 = new Float(t4).floatValue();
f4 = Float.valueOf(p4);
BarEntry barEntry1 = new BarEntry(f1, 0);
BarEntry barEntry2 = new BarEntry(f2, 1);
BarEntry barEntry3 = new BarEntry(f3, 2);
BarEntry barEntry4 = new BarEntry(f4, 3);
barEntries.add(barEntry1);
barEntries.add(barEntry2);
barEntries.add(barEntry3);
barEntries.add(barEntry4);
*/
//instead
private ArrayList<BarDataSet> getBarvalues() {
ArrayList<BarDataSet> barDataSets;
ArrayList<BarEntry> barEntries = new ArrayList<>();
/* Double val1 = Double.parseDouble(mdis.getText().toString());
Double val2 = Double.parseDouble(mcs.getText().toString());
Double val3 = Double.parseDouble(fu.getText().toString());
Double val4 = Double.parseDouble(m.getText().toString());
float g =val1.floatValue();
float g1 =val2.floatValue();
float g2 =val3.floatValue();
float g3 =val4.floatValue(); */
/*
String t1 = mdis.getText().toString();
String t2 = mcs.getText().toString();
String t3 = fu.getText().toString();
String t4 = m.getText().toString();
float f1 = new Float(t1).floatValue();
float f2 = new Float(t2).floatValue();
float f3 = new Float(t3).floatValue();
float f4 = new Float(t4).floatValue();
BarEntry barEntry1 = new BarEntry(f1, 0);
BarEntry barEntry2 = new BarEntry(f2, 1);
BarEntry barEntry3 = new BarEntry(f3, 2);
BarEntry barEntry4 = new BarEntry(f4, 3);
barEntries.add(barEntry1);
barEntries.add(barEntry2);
barEntries.add(barEntry3);
barEntries.add(barEntry4);
*/
//instead
for (int i=0;i<moodarr.length; i++)
{
barEntries.add(new BarEntry(moodarr[i],i));
}
BarDataSet barDataSet = new BarDataSet(barEntries, "Monthly Rates");
barDataSets = new ArrayList<>();
barDataSets.add(barDataSet);
barDataSet.setColor(Color.rgb(25,103,97));
return barDataSets;
}
private ArrayList<String> getXvalues() {
ArrayList<String> xvalues = new ArrayList<>();
xvalues.add("Milage");
xvalues.add("Fuel Consumption");
xvalues.add("Cost");
xvalues.add("CO2 Emission");
return xvalues;
}
}
| [
"mayurauthpala@gmail.com"
] | mayurauthpala@gmail.com |
edaf742536e28341e26394d627a8257144cc53b8 | 541c2d6c2f5f4338147ae78802232171785898a6 | /src/main/java/org/docksidestage/dbflute/cbean/cq/PurchasePaymentCQ.java | ca50c795ad98fe1050276c1bc9d401340fb84385 | [
"Apache-2.0"
] | permissive | lastaflute/lastaflute-example-paradeplaza | 10082eebd8bcbccf64be12f777e31ba84492f010 | 05b8b0c79376a51b58b50cc8106f9c40708db3f3 | refs/heads/master | 2020-04-02T05:03:54.568333 | 2018-11-29T21:20:53 | 2018-11-29T21:20:53 | 154,050,759 | 0 | 1 | Apache-2.0 | 2018-10-28T15:45:00 | 2018-10-21T20:47:14 | Java | UTF-8 | Java | false | false | 2,360 | java | /*
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.docksidestage.dbflute.cbean.cq;
import org.dbflute.cbean.ConditionQuery;
import org.dbflute.cbean.sqlclause.SqlClause;
import org.docksidestage.dbflute.cbean.cq.bs.BsPurchasePaymentCQ;
/**
* The condition-query of purchase_payment.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class PurchasePaymentCQ extends BsPurchasePaymentCQ {
// ===================================================================================
// Constructor
// ===========
// You should NOT touch with this constructor.
/**
* Auto-generated constructor to create query instance, basically called in DBFlute.
* @param referrerQuery The instance of referrer query. (NullAllowed: if null, this is base query)
* @param sqlClause The instance of SQL clause. (NotNull)
* @param aliasName The alias name for this query. (NotNull)
* @param nestLevel The nest level of this query. (if zero, this is base query)
*/
public PurchasePaymentCQ(ConditionQuery referrerQuery, SqlClause sqlClause, String aliasName, int nestLevel) {
super(referrerQuery, sqlClause, aliasName, nestLevel);
}
// ===================================================================================
// Arrange Query
// =============
// You can make your arranged query methods here. e.g. public void arrangeXxx()
}
| [
"dbflute@gmail.com"
] | dbflute@gmail.com |
8b5498fc324fbcb7900c7d8c38822488c8462e6e | 8d7864c199e88608ef4912429547e062c5e101b4 | /app/src/main/java/com/rplgdc/hotelseeker/RegionViewAdapter.java | 51385c24b51d4b1e268013a46fe60d357346e97f | [] | no_license | AekaShiraki/HotelSeeker | 541e19b2dbae16d1cc12480d95cdb6f8882ca590 | bb57c00b8ed635e06f05c22f6c9e241c2f660548 | refs/heads/master | 2022-12-06T16:16:27.503091 | 2020-08-27T14:42:57 | 2020-08-27T14:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,876 | java | package com.rplgdc.hotelseeker;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
public class RegionViewAdapter extends RecyclerView.Adapter<RegionViewAdapter.ViewHolder>{
private ArrayList<RegionData> listRegion;
private Context context;
public RegionViewAdapter(ArrayList<RegionData> listRegion, Context context) {
this.listRegion = listRegion;
this.context = context;
}
class ViewHolder extends RecyclerView.ViewHolder{
private TextView nameRegion;
private LinearLayout ListRegionItem;
ViewHolder(View itemView) {
super(itemView);
nameRegion = itemView.findViewById(R.id.nameRegion);
ListRegionItem = itemView.findViewById(R.id.list_item);
}
}
@Override
public RegionViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View V = LayoutInflater.from(parent.getContext()).inflate(R.layout.content_list_region, parent, false);
return new RegionViewAdapter.ViewHolder(V);
}
@SuppressLint("SetTextI18n")
@Override
public void onBindViewHolder(RegionViewAdapter.ViewHolder holder, final int position) {
final String nameRegion = listRegion.get(position).getView();
holder.nameRegion.setText(""+nameRegion);
holder.ListRegionItem.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
return false;
}
});
}
@Override
public int getItemCount() {
return listRegion.size();
}
}
| [
"ardityoc@gmail.com"
] | ardityoc@gmail.com |
34cbb127b4e9f041a6f7009ae3822118c702c150 | ffb343a5dc0551f71491eb1a4b0ae508d796b94c | /src/vn/edu/vnu/uet/quannk_56/lotterysimulator/CLottery.java | e55c243194d1bfee66aa8bd86326369eb71eebba | [] | no_license | llkhacquan/lottery-simulator | aa8bcfd88e1e5b73e623dd70768f9513d0ea78df | 29fbe3c3e48efca3f4ee28849d72c69eaedfa7b2 | refs/heads/master | 2021-05-28T08:21:33.288230 | 2015-01-08T02:38:15 | 2015-01-08T02:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 350 | java | package vn.edu.vnu.uet.quannk_56.lotterysimulator;
public class CLottery {
public final int lottery;
public final int value;
public CLottery(int _lottery, int _value) {
lottery = _lottery;
value = _value;
assert(value>=0);
assert(lottery >= ILotteryCompany.MINIMUM_LOTTERY);
assert(lottery <= ILotteryCompany.MAXIMUM_LOTTERY);
}
}
| [
"ll.khac.quan@gmail.com"
] | ll.khac.quan@gmail.com |
16d289ba1f79f3252fee6ab398928bc5b542ea13 | 58792116f0675bfc2820e2e3c84ac064bad9ab3f | /src/main/java/ecommerce/tutorial/controllers/ProductService.java | 778a2468af4b7ec5e94e208bd50ca24b437431b5 | [] | no_license | devziem/ecommerce | ef38bdc6587611d37db108c79fb58cde5278584a | af36e5adb2ac086ebbce1be703d75c551571455e | refs/heads/main | 2023-04-26T07:04:05.241064 | 2021-05-26T18:43:07 | 2021-05-26T18:43:07 | 371,133,597 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,160 | java | package ecommerce.tutorial.controllers;
import com.mongodb.MongoClient;
import com.mongodb.client.result.UpdateResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashSet;
import java.util.List;
import java.util.stream.Collectors;
import javax.persistence.EntityNotFoundException;
import javax.validation.Valid;
import ecommerce.tutorial.jpa.entities.CategoryEntity;
import ecommerce.tutorial.jpa.entities.ProductEntity;
import ecommerce.tutorial.jpa.entities.SellerEntity;
import ecommerce.tutorial.jpa.repositories.CategoryJpaRepository;
import ecommerce.tutorial.jpa.repositories.ProductJpaRepository;
import ecommerce.tutorial.jpa.repositories.SellerJpaRepository;
import ecommerce.tutorial.mongodb.models.Category;
import ecommerce.tutorial.mongodb.models.EmbeddedCategory;
import ecommerce.tutorial.mongodb.models.Product;
import ecommerce.tutorial.mongodb.models.Seller;
import ecommerce.tutorial.mongodb.repositories.CategoryRepository;
import ecommerce.tutorial.mongodb.repositories.ProductRepository;
import ecommerce.tutorial.mongodb.repositories.SellerRepository;
@RestController
@RequestMapping(path = "/product")
public class ProductService
{
private MongoOperations mongoOperations = new MongoTemplate(new MongoClient(), "local");
@Autowired
private ProductRepository _productMongoRepository;
@Autowired
private SellerRepository _sellerMongoRepository;
@Autowired
private CategoryRepository _categoryMongoRepository;
@Autowired
private ProductJpaRepository _productJpaRepository;
@Autowired
private SellerJpaRepository _sellerJpaRepository;
@Autowired
private CategoryJpaRepository _categoryJpaRepository;
//----------Retrieve Products----------------
@GetMapping(path = "/mongo")
public ResponseEntity<Product> getProductFromMongoDB(@RequestParam(value = "name") String name)
{
Product productMongo = _productMongoRepository.findByName(name);
if (productMongo != null)
{
return new ResponseEntity<>(productMongo, HttpStatus.OK);
}
System.out.println("There isn't any Product in Mongodb database with name: " + name);
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
}
@GetMapping(path = "/mysql")
public ResponseEntity<ProductEntity> getProductFromMysql(@RequestParam(value = "name") String name)
{
ProductEntity product = _productJpaRepository.findByName(name);
if (product != null)
{
return new ResponseEntity<>(product, HttpStatus.OK);
}
System.out.println("There isn't any Product in MySQL database with name: " + name);
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
}
@GetMapping(path = "/all/mongo")
public List<Product> getAllProductsFromMongoDB()
{
return _productMongoRepository.findAll();
}
@GetMapping(path = "/all/mysql")
public List<ProductEntity> getAllProductsFromMysql()
{
return _productJpaRepository.findAll();
}
//----------Create a Product-----------------
@PostMapping(path = "/mongo")
public ResponseEntity<?> addNewProductInMongoDB(@Valid @RequestBody Product product)
{
Seller seller;
HashSet<EmbeddedCategory> categories = new HashSet<>();
try
{
for (EmbeddedCategory embCat : product.getFallIntoCategories())
{
Category category = _categoryMongoRepository.findById(embCat.getId()).orElseThrow(EntityNotFoundException::new);
categories.add(new EmbeddedCategory(category.getId(), category.getName()));
}
}
catch (EntityNotFoundException e)
{
return new ResponseEntity<>("One of the categories which the product falls into, doesn't exists!", HttpStatus.BAD_REQUEST);
}
if (categories.isEmpty())
{
return new ResponseEntity<>("The product must belongs to at least one category!", HttpStatus.BAD_REQUEST);
}
try
{
seller = _sellerMongoRepository.findById(product.getSeller().getId()).orElseThrow(EntityNotFoundException::new);
}
catch (EntityNotFoundException e)
{
return new ResponseEntity<>("The seller of this product doesn't exists in MongoDB!", HttpStatus.BAD_REQUEST);
}
Product productMongoDB = new Product(product.getName(), product.getDescription(), product.getPrice(), seller, categories);
productMongoDB = _productMongoRepository.save(productMongoDB);
//add a reference to this product in appropriate categories
Update update = new Update();
update.addToSet("productsOfCategory", productMongoDB.getId());
List<String> catIds = productMongoDB.getFallIntoCategories().stream().map(EmbeddedCategory::getId).collect(Collectors.toList());
Query query = new Query().addCriteria(Criteria.where("_id").in(catIds));
UpdateResult updateResult = mongoOperations.updateMulti(query, update, Category.class);
System.out.println("The new product added and " + updateResult.getModifiedCount() + " categories updated.");
return new ResponseEntity<>(productMongoDB, HttpStatus.OK);
}
@PostMapping(path = "/mysql")
public Object addNewProductInMysql(@RequestBody ProductEntity product)
{
//Check the constraints
if (product.getName() == null || product.getName().trim().isEmpty())
{
return HttpStatus.BAD_REQUEST;
}
if (product.getImages() == null || product.getImages().size() == 0)
{
return HttpStatus.BAD_REQUEST;
}
SellerEntity seller;
try
{
seller = _sellerJpaRepository.findById(product.getSeller().getId()).orElseThrow(EntityNotFoundException::new);
}
catch (EntityNotFoundException e)
{
return HttpStatus.BAD_REQUEST;
}
HashSet<CategoryEntity> categories = new HashSet<>();
try
{
for (CategoryEntity categoryEntity : product.getFallIntoCategories())
{
categories.add(_categoryJpaRepository.findById(categoryEntity.getId()).orElseThrow(EntityNotFoundException::new));
}
}
catch (EntityNotFoundException e)
{
return HttpStatus.BAD_REQUEST;
}
if (!categories.isEmpty())
{
ProductEntity createdProductEntity = new ProductEntity(product.getName(),
product.getDescription(),
product.getPrice(),
product.getImages(),
seller,
categories);
createdProductEntity = _productJpaRepository.save(createdProductEntity);
System.out.println("A new Product created in MySQL database with id: " + createdProductEntity.getId() + " and name: " + createdProductEntity.getName());
return createdProductEntity;
}
else
{
return HttpStatus.BAD_REQUEST;
}
}
//----------Update a Product-----------------
@PutMapping(path = "/mongo")
public ResponseEntity<String> updateProductInMongoDB(@Valid @RequestBody Product product)
{
Product productInDatabase = _productMongoRepository.findById(product.getId()).orElse(null);
if (productInDatabase == null)
{
return new ResponseEntity<>("This product doesn't exists in MongoDB.", HttpStatus.NOT_FOUND);
}
HashSet<EmbeddedCategory> categories = new HashSet<>();
try
{
for (EmbeddedCategory embCat : product.getFallIntoCategories())
{
Category category = _categoryMongoRepository.findById(embCat.getId()).orElseThrow(EntityNotFoundException::new);
categories.add(new EmbeddedCategory(category.getId(), category.getName()));
}
}
catch (EntityNotFoundException e)
{
return new ResponseEntity<>("One of the categories which the product falls into, doesn't exists!", HttpStatus.BAD_REQUEST);
}
if (categories.isEmpty())
{
return new ResponseEntity<>("The product must belongs to at least one category!", HttpStatus.BAD_REQUEST);
}
//Update the product by setting each property of this product in a update query.
Update update = new Update();
update.set("name", product.getName());
update.set("description", product.getDescription());
update.set("price", product.getPrice());
update.set("image_URLs", product.getImage_URLs());
update.set("fallIntoCategories", categories);
Query query = new Query(Criteria.where("_id").is(product.getId()));
UpdateResult updateResult = mongoOperations.updateFirst(query, update, Product.class);
if (updateResult.getModifiedCount() == 1)
{
productInDatabase = _productMongoRepository.findById(product.getId()).get();
System.out.println("The \"" + productInDatabase.getName() + "\" product updated!");
return new ResponseEntity<>("The product updated", HttpStatus.OK);
}
else
{
return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
}
}
@PutMapping(path = "/mysql")
public ResponseEntity<String> updateProductInMysql(@Valid @RequestBody ProductEntity product)
{
ProductEntity productEntity;
SellerEntity sellerEntity;
try
{
productEntity = _productJpaRepository.getOne(product.getId());
System.out.println("The product " + productEntity.getName() + " with id " + productEntity.getId() + " is updating...");
}
catch (EntityNotFoundException e)
{
return new ResponseEntity<>("This product does not exists in MySQL database.", HttpStatus.NOT_FOUND);
}
try
{
sellerEntity = _sellerJpaRepository.getOne(product.getSeller().getId());
System.out.println("The seller of this product is: " + sellerEntity.toString());
}
catch (EntityNotFoundException e)
{
return new ResponseEntity<>("The seller does not exists", HttpStatus.NOT_FOUND);
}
HashSet<CategoryEntity> categories = new HashSet<>();
for (CategoryEntity categoryEntity : product.getFallIntoCategories())
{
_categoryJpaRepository.findById(categoryEntity.getId()).ifPresent(categories::add);
}
if (!categories.isEmpty())
{
productEntity.setName(product.getName());
productEntity.setDescription(product.getDescription());
productEntity.setPrice(product.getPrice());
productEntity.setImages(product.getImages());
productEntity.setSeller(sellerEntity);
productEntity.setFallIntoCategories(categories);
_productJpaRepository.save(productEntity);
return new ResponseEntity<>("The product updated", HttpStatus.OK);
}
else
{
return new ResponseEntity<>("The product must belongs to at least one category!", HttpStatus.BAD_REQUEST);
}
}
}
| [
"devziem"
] | devziem |
96c2252f2a593525d22788e47f4d8d76b6a504c3 | 700bf3ea5a5c7bcb247da0e595198606d7f9a39e | /sample/HelloWorld/Helloworld.java | 28522f78d670e6520dc461546fc70fae731cc82c | [] | no_license | egoingsb/java-practice-for-online-tutorial | 00a7c31ea2989160841fe17a128b7b2e3dca3066 | be7ba833f70588002c94f8cb4488e09b8bac8fff | refs/heads/master | 2020-07-09T23:38:00.131555 | 2019-08-24T10:01:13 | 2019-08-24T10:01:13 | 204,110,381 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 119 | java | public class Helloworld{
public static void main(String[] args){
System.out.println("Hello world");
}
} | [
"egoing@gmail.com"
] | egoing@gmail.com |
fa5f1a2c668fe05f195af813ebd70b6900c62ea9 | 0be3a351352cb7c9fa0cf0d03ac7c5cf1c36402f | /src/entry/TestAppEmpJob.java | b1eec57bc5fe16d42556dbe4e052a9da09213cdf | [] | no_license | rahul1802/PojectPCSApplication | 3929e0e7b7b1079e9b2e818b99b7bc847e5f93ea | 5cd25d66f0a14eb517263e47ba385619fc6990dc | refs/heads/master | 2023-03-06T07:39:30.146216 | 2021-02-20T05:56:22 | 2021-02-20T05:56:22 | 319,961,908 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,739 | java | package entry;
import java.sql.SQLException;
import java.util.Scanner;
import config.JDBCConnection;
import excDao.EmpJobExec;
public class TestAppEmpJob {
public void TestConnection()
{
try
{
if(JDBCConnection.getDBConnection().isClosed())
{
System.out.println("Connection is closed");
}
else
{
System.out.println("Connection is opened");
}
}
catch(SQLException e)
{
e.printStackTrace();
}
}
public void processMenu() {
EmpJobExec obj=new EmpJobExec();
Scanner sc=new Scanner(System.in);
int option=0;
char ch='y';
do {
System.out.println("----------CRUD Operation-----------");
System.out.println("1. View all EmpJob Details");
System.out.println("2. View single EmpJobDetails");
System.out.println("3. Add EmpJob");
System.out.println("4. Update EmpJob");
System.out.println("5. Delete EmpJob");
System.out.println("6. Quit");
System.out.println("___________________");
System.out.println("Enter your choice:");
option=sc.nextInt();
switch(option) {
case 1:
obj.getAllEmpJob();
break;
case 2:
obj.getEmpJobById();
break;
case 3:
obj.addEmpJob();
break;
case 4:
obj.updateEmpJob();;
break;
case 5:
obj.deleteEmpJob();
break;
case 6:
System.exit(0);
break;
default:
System.out.println("Wrong input!");
break;
}
System.out.println("Do you want to continue(y/n)?");
ch=sc.next().charAt(0);
}while(ch=='y' || ch=='Y');
}
public static void main(String[] args) {
TestAppEmpJob test=new TestAppEmpJob();
test.TestConnection();
test.processMenu();
}
}
| [
"32890721+rahul1802@users.noreply.github.com"
] | 32890721+rahul1802@users.noreply.github.com |
8fd557bb6fa91bf7d54afba98d0be4fdc7c99afd | 7fe906aa8eebb9fb61a7bdc9ca1edf9989d28dc5 | /egg-facade/src/main/java/com/egg/manager/persistence/em/user/pojo/dto/EmRolePermissionDto.java | 4b546a3366d26110f9b2d3dcbf862403311e41b7 | [
"Apache-2.0"
] | permissive | lanlandetiankong/egg_manager | aad0f304233665ed87cb47c2c86945000d0b4997 | 868b3d74f1a94d303ef39ea1bd8171ab405c96b9 | refs/heads/master | 2022-09-11T05:06:40.576855 | 2021-02-03T13:48:48 | 2021-02-03T13:48:48 | 208,092,096 | 0 | 1 | Apache-2.0 | 2022-09-01T23:13:00 | 2019-09-12T16:10:14 | Java | UTF-8 | Java | false | false | 624 | java | package com.egg.manager.persistence.em.user.pojo.dto;
import com.egg.manager.persistence.exchange.pojo.mysql.dto.MyBaseMysqlDto;
import lombok.*;
/**
* @author zhoucj
* @description
* @date 2020/10/20
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class EmRolePermissionDto extends MyBaseMysqlDto {
private static final long serialVersionUID = 811710331121780294L;
/**
* 角色id
*/
private String defineRoleId;
/**
* 权限id
*/
private String definePermissionId;
/**
* 类型
*/
private Integer type;
}
| [
"695605813@qq.com"
] | 695605813@qq.com |
11a6a9c53cad94169df7fa1a9326b596a56d0062 | 60afdf132e04219214a29320c25816136b0c06bc | /src/main/java/in/ecgc/smile/erp/hrd/empfe/dto/Employee.java | 1e40890318e18416a5d1ccd0887fcdf5e8c81aa8 | [] | no_license | ahire007/hrd-emp-fe | f489c896c8236162532feca3e3a60b07767bd2d2 | 1299585a6c497428eb0bdbaff9a8c2d57b20a43b | refs/heads/master | 2022-12-02T01:39:28.766154 | 2020-08-19T04:10:27 | 2020-08-19T04:10:27 | 288,255,530 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,493 | java | package in.ecgc.smile.erp.hrd.empfe.dto;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
/**
*Employee Input DTO class
*
*@version 1.2 15-May-20
*@Author Architecture Team C-DAC Mumbai
*
**/
public class Employee {
/* Employee Id which is used for Employee reference */
private int empId;
/* Employee First Name*/
@NotBlank(message = "{firstName.required}")
private String firstName;
/* Employee Middle Name*/
@NotBlank(message = "{midName.required}")
private String midName;
/* Employee Last Name*/
@NotBlank(message = "{lastName.required}")
private String lastName;
/* Employee DOB*/
// @NotBlank(message = "{dob.required}")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date dob;
/* Employee Date of joining*/
// @NotBlank(message = "{doj.required}")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date doj;
/* Employee Type*/
@NotBlank(message = "{empType.required}")
private String empType;
/* Employee designation*/
@NotBlank(message = "{designation.required}")
private String designation;
public int getEmpId() {
return empId;
}
public void setEmpId(int empId) {
this.empId = empId;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getMidName() {
return midName;
}
public void setMidName(String midName) {
this.midName = midName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Date getDob() {
return dob;
}
public void setDob(Date dob) {
this.dob = dob;
}
public Date getDoj() {
return doj;
}
public void setDoj(Date doj) {
this.doj = doj;
}
public String getEmpType() {
return empType;
}
public void setEmpType(String empType) {
this.empType = empType;
}
public String getDesignation() {
return designation;
}
public void setDesignation(String designation) {
this.designation = designation;
}
@Override
public String toString() {
return "Employee [empId=" + empId + ", firstName=" + firstName + ", midName=" + midName + ", lastName="
+ lastName + ", dob=" + dob + ", doj=" + doj + ", empType=" + empType + ", designation=" + designation
+ "]";
}
}
| [
"shubham.ahire222@gmail.com"
] | shubham.ahire222@gmail.com |
55af908c2632d4c2c5efff5cc834c600e1cc0056 | 8bd9613f843afc097d7b4277ae5527f7e56a6de2 | /time-base/src/main/java/ch/thp/proto/time/user/UserAccessBean.java | 91b98f511e6488cb8fa72898d2d72626234769f0 | [] | no_license | thpeng/time | dd85ab9014601d231487ce5475cf10da10b48563 | 416f6b0c8bf3bfbd2fecbcc98bec63b53af0d784 | refs/heads/master | 2021-03-12T23:14:24.752325 | 2014-04-04T05:48:15 | 2014-04-04T05:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,168 | java | /*
* Copyright 2014 Thierry.
*
* 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 ch.thp.proto.time.user;
import ch.thp.proto.time.user.domain.User;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author Thierry
*/
@Stateless
@LocalBean
public class UserAccessBean {
@PersistenceContext
private EntityManager em;
public User getUserByUserName(String username) {
return em.createNamedQuery("user.getByUsername", User.class).setParameter("uname", username).getSingleResult();
}
}
| [
"thierry.peng@gmail.com"
] | thierry.peng@gmail.com |
371f0f6f3dbbf68a5db4f4bc64e70c65135798df | a36fb177a29f3c27d6d79ddacf3b6fdc2ee9e079 | /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/tour/org/apache/jsp/tag/web/util/newToday_tag.java | ccc85b28bf2379bdb79b68969a692f8c4aa48e45 | [] | no_license | sonminho/spring-project | f521d3b434a985374e6b71b4aa4e76ccae180316 | 55125c92e768fb8073ffde7d161825a66a4317be | refs/heads/master | 2022-12-22T07:55:27.415228 | 2019-06-25T07:27:58 | 2019-06-25T07:27:58 | 181,992,486 | 0 | 0 | null | 2022-12-15T23:24:40 | 2019-04-18T01:10:30 | Java | UTF-8 | Java | false | false | 13,161 | java | /*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/8.5.38
* Generated at: 2019-04-15 00:47:22 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.apache.jsp.tag.web.util;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class newToday_tag
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements org.apache.jasper.runtime.JspSourceDependent,
org.apache.jasper.runtime.JspSourceImports {
private static final javax.servlet.jsp.JspFactory _jspxFactory =
javax.servlet.jsp.JspFactory.getDefaultFactory();
private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;
static {
_jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(3);
_jspx_dependants.put("jar:file:/C:/Users/student/web-server/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/tour/WEB-INF/lib/jstl-1.2.jar!/META-INF/fmt.tld", Long.valueOf(1153352682000L));
_jspx_dependants.put("/WEB-INF/lib/jstl-1.2.jar", Long.valueOf(1552270070766L));
_jspx_dependants.put("jar:file:/C:/Users/student/web-server/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/tour/WEB-INF/lib/jstl-1.2.jar!/META-INF/c.tld", Long.valueOf(1153352682000L));
}
private static final java.util.Set<java.lang.String> _jspx_imports_packages;
private static final java.util.Set<java.lang.String> _jspx_imports_classes;
static {
_jspx_imports_packages = new java.util.HashSet<>();
_jspx_imports_packages.add("javax.servlet");
_jspx_imports_packages.add("javax.servlet.http");
_jspx_imports_packages.add("javax.servlet.jsp");
_jspx_imports_classes = null;
}
private javax.servlet.jsp.JspContext jspContext;
private java.io.Writer _jspx_sout;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest;
private volatile javax.el.ExpressionFactory _el_expressionfactory;
private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;
public void setJspContext(javax.servlet.jsp.JspContext ctx) {
super.setJspContext(ctx);
java.util.ArrayList _jspx_nested = null;
java.util.ArrayList _jspx_at_begin = null;
java.util.ArrayList _jspx_at_end = null;
this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(this, ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
}
public javax.servlet.jsp.JspContext getJspContext() {
return this.jspContext;
}
private java.util.Date test;
public java.util.Date getTest() {
return this.test;
}
public void setTest(java.util.Date test) {
this.test = test;
jspContext.setAttribute("test", test);
}
public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
return _jspx_dependants;
}
public java.util.Set<java.lang.String> getPackageImports() {
return _jspx_imports_packages;
}
public java.util.Set<java.lang.String> getClassImports() {
return _jspx_imports_classes;
}
public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
return _el_expressionfactory;
}
public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
return _jsp_instancemanager;
}
private void _jspInit(javax.servlet.ServletConfig config) {
_005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(config);
_005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(config);
_el_expressionfactory = _jspxFactory.getJspApplicationContext(config.getServletContext()).getExpressionFactory();
_jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(config);
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody.release();
_005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
}
public void doTag() throws javax.servlet.jsp.JspException, java.io.IOException {
javax.servlet.jsp.PageContext _jspx_page_context = (javax.servlet.jsp.PageContext)jspContext;
javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest) _jspx_page_context.getRequest();
javax.servlet.http.HttpServletResponse response = (javax.servlet.http.HttpServletResponse) _jspx_page_context.getResponse();
javax.servlet.http.HttpSession session = _jspx_page_context.getSession();
javax.servlet.ServletContext application = _jspx_page_context.getServletContext();
javax.servlet.ServletConfig config = _jspx_page_context.getServletConfig();
javax.servlet.jsp.JspWriter out = jspContext.getOut();
_jspInit(config);
jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,jspContext);
if( getTest() != null )
_jspx_page_context.setAttribute("test", getTest());
try {
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
// fmt:formatDate
org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag _jspx_th_fmt_005fformatDate_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag) _005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag.class);
boolean _jspx_th_fmt_005fformatDate_005f0_reused = false;
try {
_jspx_th_fmt_005fformatDate_005f0.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fformatDate_005f0.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/util/newToday.tag(7,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f0.setVar("today");
// /WEB-INF/tags/util/newToday.tag(7,0) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f0.setValue(new java.util.Date() );
// /WEB-INF/tags/util/newToday.tag(7,0) name = pattern type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f0.setPattern("yyyy-MM-dd");
int _jspx_eval_fmt_005fformatDate_005f0 = _jspx_th_fmt_005fformatDate_005f0.doStartTag();
if (_jspx_th_fmt_005fformatDate_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
throw new javax.servlet.jsp.SkipPageException();
}
_005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody.reuse(_jspx_th_fmt_005fformatDate_005f0);
_jspx_th_fmt_005fformatDate_005f0_reused = true;
} finally {
org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_fmt_005fformatDate_005f0, _jsp_getInstanceManager(), _jspx_th_fmt_005fformatDate_005f0_reused);
}
out.write('\r');
out.write('\n');
if (_jspx_meth_fmt_005fformatDate_005f1(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
return;
} catch( java.lang.Throwable t ) {
if( t instanceof javax.servlet.jsp.SkipPageException )
throw (javax.servlet.jsp.SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof java.lang.IllegalStateException )
throw (java.lang.IllegalStateException) t;
if( t instanceof javax.servlet.jsp.JspException )
throw (javax.servlet.jsp.JspException) t;
throw new javax.servlet.jsp.JspException(t);
} finally {
jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,super.getJspContext());
((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
_jspDestroy();
}
}
private boolean _jspx_meth_fmt_005fformatDate_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:formatDate
org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag _jspx_th_fmt_005fformatDate_005f1 = (org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag) _005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag.class);
boolean _jspx_th_fmt_005fformatDate_005f1_reused = false;
try {
_jspx_th_fmt_005fformatDate_005f1.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fformatDate_005f1.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/util/newToday.tag(8,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f1.setVar("testday");
// /WEB-INF/tags/util/newToday.tag(8,0) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f1.setValue((java.util.Date) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${test}", java.util.Date.class, (javax.servlet.jsp.PageContext)this.getJspContext(), null));
// /WEB-INF/tags/util/newToday.tag(8,0) name = pattern type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f1.setPattern("yyyy-MM-dd");
int _jspx_eval_fmt_005fformatDate_005f1 = _jspx_th_fmt_005fformatDate_005f1.doStartTag();
if (_jspx_th_fmt_005fformatDate_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
throw new javax.servlet.jsp.SkipPageException();
}
_005fjspx_005ftagPool_005ffmt_005fformatDate_0026_005fvar_005fvalue_005fpattern_005fnobody.reuse(_jspx_th_fmt_005fformatDate_005f1);
_jspx_th_fmt_005fformatDate_005f1_reused = true;
} finally {
org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_fmt_005fformatDate_005f1, _jsp_getInstanceManager(), _jspx_th_fmt_005fformatDate_005f1_reused);
}
return false;
}
private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
boolean _jspx_th_c_005fif_005f0_reused = false;
try {
_jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fif_005f0.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/util/newToday.tag(9,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${today == testday }", boolean.class, (javax.servlet.jsp.PageContext)this.getJspContext(), null)).booleanValue());
int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t<span class=\"badge badge-danger\"><i class=\"fas fa-tag\"></i>NEW</span>\r\n");
int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
throw new javax.servlet.jsp.SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
_jspx_th_c_005fif_005f0_reused = true;
} finally {
org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_c_005fif_005f0, _jsp_getInstanceManager(), _jspx_th_c_005fif_005f0_reused);
}
return false;
}
}
| [
"smin2846@gmail.com"
] | smin2846@gmail.com |
a00089d60e91c4b7f8af4a285c1d3c555a5c2766 | 8dd9bc300f03641579657f5e8111b2298079ae1f | /src/main/com/sa/model/workshop/EtapaRepCliente.java | 5f481385b643ec393c38c15f515a3668d7276a2e | [] | no_license | yosael/Audiosoft | ba1fe9be1993ef4714c2e55e95f00a794eaeae34 | 719aa30dd5977e69688721a24b1a211c946f9ffa | refs/heads/master | 2020-05-21T08:01:35.004532 | 2018-12-07T02:51:50 | 2018-12-07T02:51:50 | 84,598,973 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,068 | java | package com.sa.model.workshop;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.hibernate.annotations.ForeignKey;
import com.sa.model.security.Usuario;
@Entity
@Table(name = "etapa_rep_cliente")
public class EtapaRepCliente implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
private EtapaReparacion etapaRep;
private ReparacionCliente reparacionCli;
private Date fechaInicio;
private Date fechaEstFin;
private Date fechaRealFin;
private Usuario usuario;
private String descripcion;
private String estado;
private Integer numDias;
private List<RequisicionEtapaRep> requisicionesEtapa = new ArrayList<RequisicionEtapaRep>();
private String historico;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "etarepcli_id", nullable = false)
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "etarep_id", nullable = false)
@ForeignKey(name = "fk_etarep_cli")
public EtapaReparacion getEtapaRep() {
return etapaRep;
}
public void setEtapaRep(EtapaReparacion etapaRep) {
this.etapaRep = etapaRep;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "repcli_id", nullable = false)
@ForeignKey(name = "fk_repcli_eta")
public ReparacionCliente getReparacionCli() {
return reparacionCli;
}
public void setReparacionCli(ReparacionCliente reparacionCli) {
this.reparacionCli = reparacionCli;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "fecha_est_fin", nullable = false)
public Date getFechaEstFin() {
return fechaEstFin;
}
public void setFechaEstFin(Date fechaEstFin) {
this.fechaEstFin = fechaEstFin;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "fecha_real_fin", nullable = true)
public Date getFechaRealFin() {
return fechaRealFin;
}
public void setFechaRealFin(Date fechaRealFin) {
this.fechaRealFin = fechaRealFin;
}
@Column(name = "descripcion", nullable = true, length = 500)
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "etapaRepCli", cascade = CascadeType.REMOVE)
public List<RequisicionEtapaRep> getRequisicionesEtapa() {
return requisicionesEtapa;
}
public void setRequisicionesEtapa(List<RequisicionEtapaRep> requisicionesEtapa) {
this.requisicionesEtapa = requisicionesEtapa;
}
@Column(name = "estado", nullable = true, length = 3)
public String getEstado() {
return estado;
}
public void setEstado(String estado) {
this.estado = estado;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "usuario_id", nullable = true)
@ForeignKey(name = "fk_repcli_usu")
public Usuario getUsuario() {
return usuario;
}
public void setUsuario(Usuario usuario) {
this.usuario = usuario;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "fecha_inicio", nullable = true)
public Date getFechaInicio() {
return fechaInicio;
}
public void setFechaInicio(Date fechaInicio) {
this.fechaInicio = fechaInicio;
}
@Transient
public Integer getNumDias() {
return numDias;
}
public void setNumDias(Integer numDias) {
this.numDias = numDias;
}
@Column(name = "historico", nullable = true,length=10)
public String getHistorico() {
return historico;
}
public void setHistorico(String historico) {
this.historico = historico;
}
}
| [
"yosael.gutierrez@gmail.com"
] | yosael.gutierrez@gmail.com |
263f4ed78a89dbbf762f0e7ccf65adcde0d47b6b | 4b57200a7a142228ae098f5be2b0aef90bf15fc7 | /Serpiente/src/es/studium/main/Snake.java | f9e218c5281493f0547fd81b0bef5d4e88310c6a | [] | no_license | israelbecort/snake | 9dc15884fd073b9188d2c409af27173ec6752af9 | a2f7d781ec49fc5bcb7f7fcff4e31373f34e0868 | refs/heads/master | 2020-05-29T15:57:15.297662 | 2019-06-17T16:07:27 | 2019-06-17T16:07:27 | 189,236,055 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 9,846 | java | package es.studium.main;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
import javax.swing.Timer;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
public class Snake extends JPanel implements KeyListener, ActionListener
{
private static final long serialVersionUID = 1L;
private int[] serpienteXLongitud=new int[750];
private int[] serpienteYLongitud=new int[750];
//CONECTAR CON BASE DE DATOS----------------------para utilizar por otra base de datos sustituir empresa
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/snake?autoReconnect=true&useSSL=false";
String login = "root";
String password = "Studium2018;";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
private boolean izquierda = false;
private boolean derecha = false;
private boolean arriba = false;
private boolean abajo = false;
private ImageIcon bocaDerecha;
private ImageIcon bocaIzquierda;
private ImageIcon bocaArriba;
private ImageIcon bocaAbajo;
private int cuerpoSerpiente=3;
private Timer tiempo;
private int retraso=100;
private ImageIcon imagenSerpiente;
private int[] posicionXPunto= {25,50,75,100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500,525,550,575,600,
625,650,675,700,725,750,775,800,825,850};
private int[] posicionYPunto={75,100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500,525,550,575,600,625};
private ImageIcon imagenPunto;
private Random random=new Random();
private int posX=random.nextInt(34);
private int posY=random.nextInt(23);
private int puntuacion=0;
private int mover=0;
private ImageIcon imagenTitulo;
public Snake() {
addKeyListener(this);
setFocusable(true);
setFocusTraversalKeysEnabled(false);
tiempo = new Timer(retraso, this);
tiempo.start();
}
public void paint(Graphics g) {
if(mover==0) {
serpienteXLongitud[2]=50;
serpienteXLongitud[1]=75;
serpienteXLongitud[0]=100;
serpienteYLongitud[2]=100;
serpienteYLongitud[1]=100;
serpienteYLongitud[0]=100;
}
//Título borde imagen
g.setColor(Color.white);
g.drawRect(24, 10, 851, 55);
//dibujo imagen titulo
imagenTitulo=new ImageIcon("snaketitle.jpg");
imagenTitulo.paintIcon(this, g, 25, 11);
//borde juego
g.setColor(Color.WHITE);
g.drawRect(24, 74, 851, 577);
//fondo juego
g.setColor(Color.black);
g.fillRect(25, 75, 850, 575);
//Puntuacion
g.setColor(Color.white);
g.setFont(new Font("arial",Font.PLAIN,14));
g.drawString("Puntuación: "+puntuacion,765,30);
//puntos longitud de la serpiente
g.setColor(Color.white);
g.setFont(new Font("arial",Font.PLAIN,14));
g.drawString("Longitud: "+cuerpoSerpiente,780,50);
bocaDerecha =new ImageIcon("bocaDerecha.png");
bocaDerecha.paintIcon(this, g, serpienteXLongitud[0], serpienteYLongitud[0]);
for(int i=0;i<cuerpoSerpiente; i++) {
if(i==0&&derecha) {
bocaDerecha =new ImageIcon("bocaDerecha.png");
bocaDerecha.paintIcon(this, g, serpienteXLongitud[i], serpienteYLongitud[i]);
}
if(i==0&&izquierda) {
bocaIzquierda =new ImageIcon("bocaIzquierda.png");
bocaIzquierda.paintIcon(this, g, serpienteXLongitud[i], serpienteYLongitud[i]);
}
if(i==0&&abajo) {
bocaAbajo =new ImageIcon("bocaAbajo.png");
bocaAbajo.paintIcon(this, g, serpienteXLongitud[i], serpienteYLongitud[i]);
}
if(i==0&&arriba) {
bocaArriba =new ImageIcon("bocaArriba.png");
bocaArriba.paintIcon(this, g, serpienteXLongitud[i], serpienteYLongitud[i]);
}
if(i!=0) {
imagenSerpiente =new ImageIcon("cuerpo.png");
imagenSerpiente.paintIcon(this, g, serpienteXLongitud[i], serpienteYLongitud[i]);
}
}
imagenPunto=new ImageIcon("punto.png");
if((posicionXPunto[posX]==serpienteXLongitud[0]&&posicionYPunto[posY]==serpienteYLongitud[0])) {
puntuacion+=25;
cuerpoSerpiente++;
posX=random.nextInt(34);
posY=random.nextInt(23);
}
imagenPunto.paintIcon(this, g, posicionXPunto[posX], posicionYPunto[posY]);
for(int b=1;b<cuerpoSerpiente;b++) {
if(serpienteXLongitud[b]==serpienteXLongitud[0] && serpienteYLongitud[b]==serpienteYLongitud[0]) {
derecha=false;
izquierda=false;
arriba=false;
abajo=false;
g.setColor(Color.white);
g.setFont(new Font("arial", Font.BOLD,50));
g.drawString("Game Over", 300, 300);
g.setFont(new Font("arial", Font.BOLD,20));
g.drawString("Espacio para reiniciar", 335, 340);
//ESTABLECER CONEXION CON BASE DE DATOS
try
{
connection = DriverManager.getConnection(url, login, password);
}
catch(SQLException arg0)
{
System.out.println("Se produjo un error al conectar a la Base de Datos");
}
//PREPARAR EL STATEMENT
try
{
statement=connection.createStatement();
rs=statement.executeQuery("SELECT * FROM puntos;");
}
catch(SQLException arg0)
{
System.out.println("Error en la sentencia SQL 1");
}
String cadena= ("INSERT INTO puntos (nombre, puntos) VALUES ('"+Inicio.nombre+"',"+puntuacion+");");
//CARGAR EL DRIVER
try
{
Class.forName(driver);
}
catch(ClassNotFoundException arg0)
{
System.out.println("Se ha producido un error al cargar el Driver");
}
//PREPARAR EL STATEMENT
try
{
statement=connection.createStatement();
statement.executeUpdate(cadena);
if (rs.next())
{
System.out.println("Puntos Correctos");
}
else
{
JOptionPane.showMessageDialog(null, "Error: Datos no validos ","Alta Incorrecta",JOptionPane.WARNING_MESSAGE);
System.out.println("Puntos Incorrectos");
}
}
catch(SQLException arg0)
{
System.out.println("Error en la sentencia SQL 2");
}
try
{
String cadena1="SELECT * FROM puntos order by puntos DESC LIMIT 10;";
statement=connection.createStatement();
rs= statement.executeQuery(cadena1);
InicioTop10.lista.removeAll();
while (rs.next()) {
InicioTop10.lista.add(rs.getString("nombre")+" "+rs.getString("puntos")+" Puntos");
}
System.out.println("Consulta Correcta");
}
catch(SQLException arg0)
{
System.out.println("Error en la sentencia SQL 3");
}
}
}
g.dispose();
}
@Override
public void actionPerformed(ActionEvent arg0)
{
tiempo.start();
if(derecha) {
for(int d=cuerpoSerpiente-1;d>=0;d--) {
serpienteYLongitud[d+1]=serpienteYLongitud[d];
}
for(int d=cuerpoSerpiente;d>=0;d--) {
if(d==0) {
serpienteXLongitud[d]=serpienteXLongitud[d]+25;
}else {
serpienteXLongitud[d]=serpienteXLongitud[d-1];
}
if(serpienteXLongitud[d]>850) {
serpienteXLongitud[d]=25;
}
}
repaint();
}
if(izquierda) {
for(int d=cuerpoSerpiente-1;d>=0;d--) {
serpienteYLongitud[d+1]=serpienteYLongitud[d];
}
for(int d=cuerpoSerpiente;d>=0;d--) {
if(d==0) {
serpienteXLongitud[d]=serpienteXLongitud[d]-25;
}else {
serpienteXLongitud[d]=serpienteXLongitud[d-1];
}
if(serpienteXLongitud[d]<25) {
serpienteXLongitud[d]=850;
}
}
repaint();
}
if(arriba) {
for(int d=cuerpoSerpiente-1;d>=0;d--) {
serpienteXLongitud[d+1]=serpienteXLongitud[d];
}
for(int d=cuerpoSerpiente;d>=0;d--) {
if(d==0) {
serpienteYLongitud[d]=serpienteYLongitud[d]-25;
}else {
serpienteYLongitud[d]=serpienteYLongitud[d-1];
}
if(serpienteYLongitud[d]<75) {
serpienteYLongitud[d]=625;
}
}
repaint();
}
if(abajo) {
for(int d=cuerpoSerpiente-1;d>=0;d--) {
serpienteXLongitud[d+1]=serpienteXLongitud[d];
}
for(int d=cuerpoSerpiente;d>=0;d--) {
if(d==0) {
serpienteYLongitud[d]=serpienteYLongitud[d]+25;
}else {
serpienteYLongitud[d]=serpienteYLongitud[d-1];
}
if(serpienteYLongitud[d]>625) {
serpienteYLongitud[d]=75;
}
}
repaint();
}
}
@Override
public void keyPressed(KeyEvent e)
{
if(e.getKeyCode()==KeyEvent.VK_SPACE) {
mover=0;
puntuacion=0;
cuerpoSerpiente=3;
repaint();
}
if(e.getKeyCode()==KeyEvent.VK_RIGHT) {
mover++;
derecha=true;
if(!izquierda) {
derecha=true;
}else {
derecha=false;
izquierda=true;
}
arriba=false;
abajo=false;
}
if(e.getKeyCode()==KeyEvent.VK_LEFT) {
mover++;
izquierda=true;
if(!derecha) {
izquierda=true;
}else {
izquierda=false;
derecha=true;
}
arriba=false;
abajo=false;
}
if(e.getKeyCode()==KeyEvent.VK_UP) {
mover++;
arriba=true;
if(!abajo) {
arriba=true;
}else {
arriba=false;
abajo=true;
}
izquierda=false;
derecha=false;
}
if(e.getKeyCode()==KeyEvent.VK_DOWN) {
mover++;
abajo=true;
if(!arriba) {
abajo=true;
}else {
abajo=false;
arriba=true;
}
izquierda=false;
derecha=false;
}
}
@Override
public void keyReleased(KeyEvent arg0)
{
// TODO Auto-generated method stub
}
@Override
public void keyTyped(KeyEvent arg0)
{
// TODO Auto-generated method stub
}
}
| [
"Israel@DESKTOP-AM2T499"
] | Israel@DESKTOP-AM2T499 |
f5f8f7472a0ac9b72cfa08dc6844ae3af449ab7c | 9513c2d2672ad1c61551097f7cfc3302ee9aa946 | /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/SSM_BS/org/apache/jsp/manager/managerAdd_jsp.java | e3774f5cb0755d896e8cc554167bce4e205283ba | [] | no_license | liqiangbin/BSProject | bd8842a2954bb84a7cce65b99e5493ae48ba8923 | 154de0ac129ec617cc0ddc6f394f3b99f3b7e7e6 | refs/heads/master | 2021-01-14T10:39:53.475903 | 2017-04-17T01:51:08 | 2017-04-17T01:51:08 | 54,764,115 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 156,310 | java | /*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.42
* Generated at: 2016-05-30 06:42:49 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.apache.jsp.manager;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.lang.Long;
import java.util.List;
import java.util.ArrayList;
public final class managerAdd_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final javax.servlet.jsp.JspFactory _jspxFactory =
javax.servlet.jsp.JspFactory.getDefaultFactory();
private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;
static {
_jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(6);
_jspx_dependants.put("/commons/foot.jsp", Long.valueOf(1458966020837L));
_jspx_dependants.put("/commons/head.jsp", Long.valueOf(1464017888136L));
_jspx_dependants.put("/commons/alert_modal.jsp", Long.valueOf(1459822021956L));
_jspx_dependants.put("/commons/taglibs.jsp", Long.valueOf(1458966020987L));
_jspx_dependants.put("/commons/top.jsp", Long.valueOf(1460126172911L));
_jspx_dependants.put("/commons/left.jsp", Long.valueOf(1462349062897L));
}
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.tomcat.InstanceManager _jsp_instancemanager;
public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.release();
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.release();
}
public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException {
final javax.servlet.jsp.PageContext pageContext;
javax.servlet.http.HttpSession session = null;
final javax.servlet.ServletContext application;
final javax.servlet.ServletConfig config;
javax.servlet.jsp.JspWriter out = null;
final java.lang.Object page = this;
javax.servlet.jsp.JspWriter _jspx_out = null;
javax.servlet.jsp.PageContext _jspx_page_context = null;
try {
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write('\r');
out.write('\n');
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
if (_jspx_meth_c_005fset_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!-- Bootstrap core CSS -->\r\n");
out.write("\t<meta charset=\"utf-8\" />\r\n");
out.write("\t\t<title>IBooK-商家服务平台</title>\r\n");
out.write("\t\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n");
out.write("\t\t<meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\" />\r\n");
out.write("\t\t<meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\">\r\n");
out.write("\t\t<meta content=\"\" name=\"description\">\r\n");
out.write("\t\t<meta content=\"bin--开发\" name=\"author\">\r\n");
out.write("<!-- BEGIN PACE PLUGIN FILES -->\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f0(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f1(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("\t<link rel=\"shortcut icon\" href='");
if (_jspx_meth_c_005furl_005f2(_jspx_page_context))
return;
out.write("' />\r\n");
out.write("<!-- END PACE PLUGIN FILES -->\r\n");
out.write("<!-- BEGIN GLOBAL MANDATORY STYLES -->\r\n");
out.write("<!-- <link href=\"http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("-->\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f3(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f4(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f5(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f6(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<!-- END GLOBAL MANDATORY STYLES -->\r\n");
out.write("<!-- BEGIN PAGE LEVEL PLUGINS -->\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f7(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f8(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f9(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f10(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f11(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<!-- END PAGE LEVEL PLUGINS -->\r\n");
out.write("<!-- BEGIN THEME STYLES -->\r\n");
out.write("<link href='");
if (_jspx_meth_c_005furl_005f12(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\tid=\"style_components\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link href='");
if (_jspx_meth_c_005furl_005f13(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f14(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link id=\"style_color\"\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f15(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f16(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f17(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write(" ");
out.write("\r\n");
out.write("\r\n");
out.write("<!--[if lt IE 9]>\r\n");
out.write("<script src='");
if (_jspx_meth_c_005furl_005f18(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<script src='");
if (_jspx_meth_c_005furl_005f19(_jspx_page_context))
return;
out.write("'></script> \r\n");
out.write("<![endif]-->\r\n");
out.write("\r\n");
out.write("<script>\r\n");
out.write("\tvar appName = \"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\";\r\n");
out.write("</script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f20(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f21(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f22(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f23(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f24(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f25(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f26(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f27(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<!-- fileUpload -->\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f28(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f29(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f30(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("\r\n");
out.write("<!-- END CORE PLUGINS -->\r\n");
out.write("<!-- BEGIN PAGE LEVEL PLUGINS -->\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f31(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype='text/javascript'></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f32(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype='text/javascript'></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f33(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype='text/javascript'></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f34(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype='text/javascript'></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f35(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f36(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f37(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f38(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f39(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("\r\n");
out.write("<!-- END PAGE LEVEL PLUGINS -->\r\n");
out.write("<!-- BEGIN PAGE LEVEL SCRIPTS -->\r\n");
out.write("<script src='");
if (_jspx_meth_c_005furl_005f40(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f41(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f42(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f43(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f44(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f45(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f46(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f47(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f48(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f49(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\ttype=\"text/javascript\"></script>\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f50(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f51(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f52(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("\r\n");
out.write("<!-- END PAGE LEVEL SCRIPTS -->\r\n");
out.write(" <!-- color picker and css for pagetpl&coupon customize -->\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\"\r\n");
out.write("\thref='");
if (_jspx_meth_c_005furl_005f53(_jspx_page_context))
return;
out.write("' />\r\n");
out.write("<script type=\"text/javascript\"\r\n");
out.write("\tsrc='");
if (_jspx_meth_c_005furl_005f54(_jspx_page_context))
return;
out.write("'></script>\r\n");
out.write("<link href='");
if (_jspx_meth_c_005furl_005f55(_jspx_page_context))
return;
out.write("'\r\n");
out.write("\trel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<!-- color picker --> \r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<script type=\"text/javascript\">\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("function showAlertModel(title,content, confirmAction){\r\n");
out.write("\t$(\"#alert-modal-content\").empty();\r\n");
out.write("\t$(\"#alertModalLabel\").text(title);\r\n");
out.write("\t$(\"#alert-modal-content\").text(content);\r\n");
out.write("\tif(confirmAction !=null && confirmAction!=\"\"){\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").on(\"click\", function(e){\r\n");
out.write("\t\t\tconsole.log(confirmAction);\r\n");
out.write("\t\t\te.preventDefault();\r\n");
out.write("\t\t\t/* $.ajax({ \r\n");
out.write("\t\t\t\ttype: \"POST\", \r\n");
out.write("\t\t\t\turl:confirmAction, \r\n");
out.write("\t\t\t\tdata:$('#createUserForm').serialize(), \r\n");
out.write("\t\t\t\tasync: true, \r\n");
out.write("\t\t\t\terror: function(request) { \r\n");
out.write("\t\t\t\t\talert(\"Connection error\"); \r\n");
out.write("\t\t\t\t}, \r\n");
out.write("\t\t\t\tsuccess: function(data) { \r\n");
out.write("\t\t\t\t\t $(\"#pageContent\").html(data);\r\n");
out.write("\r\n");
out.write("\t\t\t\t} \r\n");
out.write("\t\t\t}); */\r\n");
out.write("\t\t\twindow.location.href= confirmAction;\r\n");
out.write("\t\t});\r\n");
out.write("\r\n");
out.write("\t\t$(\"#alert-model-cancel\").show();\r\n");
out.write("\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").removeAttr(\"data-dismiss\");\t\r\n");
out.write("\t}else{\r\n");
out.write("\t\t\r\n");
out.write("\t\t$(\"#alert-model-cancel\").hide();\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").attr(\"data-dismiss\",\"modal\");\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").removeAttr(\"href\");\r\n");
out.write("\t}\r\n");
out.write("\t$(\"#alertModal\").modal('toggle');\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("function showInfo(content, returnUrl){\r\n");
out.write("\t$(\"#alert-modal-content\").empty();\r\n");
out.write("\t$(\"#alertModalLabel\").text(\"信息\");\r\n");
out.write("\t$(\"#alert-modal-content\").text(content);\r\n");
out.write("\t$(\"#alert-model-cancel\").hide();\r\n");
out.write("\tif(returnUrl != null && returnUrl !=\"\"){\r\n");
out.write("\t\twindow.location.href = returnUrl;\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").attr(\"data-dismiss\",\"modal\");\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").attr(\"href\", returnUrl);\r\n");
out.write("\t}else{\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").attr(\"data-dismiss\",\"modal\");\r\n");
out.write("\t\t$(\"#alert-modal-comfirm\").removeAttr(\"href\");\r\n");
out.write("\t}\r\n");
out.write("\t$(\"#alertModal\").modal('toggle');\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("</script>\r\n");
out.write("\r\n");
out.write("<div class=\"modal fade\" id=\"alertModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"alertModalLabel\" aria-hidden=\"true\">\r\n");
out.write("\t<div class=\"modal-dialog\">\r\n");
out.write("\t\t<div class=\"modal-content\">\r\n");
out.write("\t\t \r\n");
out.write("\t\t\t<div class=\"modal-header\">\r\n");
out.write("\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\r\n");
out.write("\t\t\t\t<h4 class=\"modal-title\" id=\"alertModalLabel\"></h4>\r\n");
out.write("\t\t\t</div>\r\n");
out.write("\t\t\t\r\n");
out.write("\t\t\t<div class=\"modal-body\">\r\n");
out.write("\t\t\t\t<p id=\"alert-modal-content\"></p>\r\n");
out.write("\t\t\t</div>\r\n");
out.write("\t\t\t<div class=\"modal-footer\">\r\n");
out.write("\t\t\t\t<a href=\"javascript:void(0);\" id= \"alert-model-cancel\" class=\"btn btn-default\" data-dismiss=\"modal\">取消</a>\r\n");
out.write("\t\t\t\t<a href=\"javascript:void(0);\" id=\"alert-modal-comfirm\" class=\"btn btn-primary\">确定</a>\r\n");
out.write("\t\t\t</div>\r\n");
out.write("\t\t</div>\r\n");
out.write("\t\t<!-- /.modal-content -->\r\n");
out.write("\t</div>\r\n");
out.write("\t<!-- /.modal-dialog -->\r\n");
out.write("</div>\r\n");
out.write("<!-- /.modal -->");
out.write(" \r\n");
out.write("\r\n");
out.write("<script>\r\n");
out.write("\tjQuery(document).ready(function() {\r\n");
out.write("\t\tMetronic.init(); // init metronic core components\r\n");
out.write("\t\tLayout.init(); // init current layout\t\r\n");
out.write("\t});\r\n");
out.write("</script>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<!-- BEGIN BODY -->\r\n");
out.write("<body\r\n");
out.write("\tclass=\"page-container-bg-solid page-sidebar-closed-hide-logo page-header-fixed \">\r\n");
out.write("\t<!-- BEGIN TOP -->\r\n");
out.write("\t");
out.write("\r\n");
out.write("\r\n");
out.write("\t\t<!-- BEGIN HEADER -->\r\n");
out.write("\t\t<div class=\"page-header navbar navbar-fixed-top\">\r\n");
out.write("\t\t\t<!-- BEGIN HEADER INNER -->\r\n");
out.write("\t\t\t<div class=\"page-header-inner\">\r\n");
out.write("\t\t\t\t<!-- BEGIN LOGO -->\r\n");
out.write("\t\t\t\t<div class=\"page-logo\">\r\n");
out.write("\t\t\t\t\t<a href=\"index.html\">\r\n");
out.write("\t\t\t\t\t<img src='");
if (_jspx_meth_c_005furl_005f56(_jspx_page_context))
return;
out.write("' alt=\"logo\" class=\"logo-default\" />\r\n");
out.write("\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t<div class=\"menu-toggler sidebar-toggler\"></div>\r\n");
out.write("\t\t\t\t</div>\r\n");
out.write("\t\t\t\t<!-- END LOGO -->\r\n");
out.write("\t\t\t\t<!-- BEGIN RESPONSIVE MENU TOGGLER -->\r\n");
out.write("\t\t\t\t<a href=\"javascript:;\" class=\"menu-toggler responsive-toggler\" data-toggle=\"collapse\" data-target=\".navbar-collapse\"></a>\r\n");
out.write("\t\t\t\t<!-- END RESPONSIVE MENU TOGGLER -->\r\n");
out.write("\t\t\t\t<!-- BEGIN PAGE ACTIONS -->\r\n");
out.write("\t\t\t\t<div class=\"page-actions page-actions-cn\"></div>\r\n");
out.write("\t\t\t\t<!-- END PAGE ACTIONS -->\r\n");
out.write("\t\t\t\t<!-- BEGIN PAGE TOP -->\r\n");
out.write("\t\t\t\t<div class=\"page-top\">\r\n");
out.write("\t\t\t\t\t<!-- BEGIN TOP NAVIGATION MENU -->\r\n");
out.write("\t\t\t\t\t<div class=\"top-menu\">\r\n");
out.write("\t\t\t\t\t\t<ul class=\"nav navbar-nav pull-right\">\r\n");
out.write("\r\n");
out.write("\t\t\t\t\t\t\t<!-- BEGIN NOTIFICATION DROPDOWN -->\r\n");
out.write("\t\t\t\t\t\t\t<li class=\"dropdown dropdown-extended dropdown-notification\" id=\"header_notification_bar\">\r\n");
out.write("\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" data-hover=\"dropdown\" data-close-others=\"true\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t<i class=\"icon-bell\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<span class=\"badge badge-danger\"> 3 </span>\r\n");
out.write("\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t<li class=\"external\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<h3>你有<span class=\"bold\">12</span>条未处理订单</h3>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu-list scroller\" style=\"height: 250px;\" data-handle-color=\"#637283\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"time\">just now</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"details\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"label label-sm label-icon label-success\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-plus\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</span> New user registered. </span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"time\">3 mins</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"details\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"label label-sm label-icon label-danger\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-bolt\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</span> Server #12 overloaded. </span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"time\">10 mins</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"details\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"label label-sm label-icon label-warning\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-bell-o\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</span> Server #2 not responding. </span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"time\">14 hrs</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"details\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"label label-sm label-icon label-info\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-bullhorn\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</span> Application error. </span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"time\">2 days</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"details\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"label label-sm label-icon label-danger\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-bolt\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</span> Database overloaded 68%. </span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"time\">9 days</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"details\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"label label-sm label-icon label-danger\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-bolt\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</span> Storage server failed. </span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t<!-- END NOTIFICATION DROPDOWN -->\r\n");
out.write("\t\t\t\t\t\t\t<!-- BEGIN USER LOGIN DROPDOWN -->\r\n");
out.write("\t\t\t\t\t\t\t<li class=\"dropdown dropdown-user\">\r\n");
out.write("\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" data-hover=\"dropdown\" data-close-others=\"true\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t<img alt=\"\" class=\"img-circle\" src='");
if (_jspx_meth_c_005furl_005f57(_jspx_page_context))
return;
out.write("' />\r\n");
out.write("\t\t\t\t\t\t\t\t\t<span class=\"username username-hide-on-mobile\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${managerLoginname}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<i class=\"fa fa-angle-down\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu dropdown-menu-default\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f58(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<i class=\"icon-user\"></i> 个人信息</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<li class=\"divider\"></li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f59(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<i class=\"icon-lock\"></i> 密码修改</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f60(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<i class=\"icon-key\"></i> 退出</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t<!-- END USER LOGIN DROPDOWN -->\r\n");
out.write("\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t<!-- END TOP NAVIGATION MENU -->\r\n");
out.write("\t\t\t\t</div>\r\n");
out.write("\t\t\t\t<!-- END PAGE TOP -->\r\n");
out.write("\t\t\t</div>\r\n");
out.write("\t\t\t<!-- END HEADER INNER -->\r\n");
out.write("\t\t</div>\r\n");
out.write("\t\t<!-- END HEADER -->");
out.write("\r\n");
out.write("\t<div class=\"page-container\">\r\n");
out.write("\t\t<!-- BEGIN SIDEBAR -->\r\n");
out.write("\t\t");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
if (_jspx_meth_c_005fset_005f1(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\t\t\t<!-- BEGIN SIDEBAR -->\r\n");
out.write("\t\t\t<div class=\"page-sidebar-wrapper\">\r\n");
out.write("\t\t\t\t<div class=\"page-sidebar navbar-collapse collapse\">\r\n");
out.write("\t\t\t\t\t<!-- BEGIN SIDEBAR MENU -->\r\n");
out.write("\t\t\t\t\t<ul class=\"page-sidebar-menu page-sidebar-menu-hover-submenu \" data-keep-expanded=\"false\" data-auto-scroll=\"true\" data-slide-speed=\"200\">\r\n");
out.write("\t\t\t\t\t\t<li class=\"start active \">\r\n");
out.write("\t\t\t\t\t\t\t<a href=\"index.html\">\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"icon-home\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">IBooK首页</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"selected\"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f61(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"fa fa-list-ul\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">订单管理</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"arrow\"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t<a href=\"#\">\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"fa fa-book\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">图书管理</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"arrow \"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t<ul class=\"sub-menu\">\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f62(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-user\"></i> 图书分类管理\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f63(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-users\"></i> 图书列表\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f64(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"fa fa-line-chart\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">销量统计</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"arrow \"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f65(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"fa fa-credit-card\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">智能推荐管理</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"arrow \"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"fa fa-shirtsinbulk\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">公告管理</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"arrow \"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t<ul class=\"sub-menu\">\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f66(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-user\"></i> 发布公告\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f67(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-users\"></i> 公告管理\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t<a href=\"javascript:;\">\r\n");
out.write("\t\t\t\t\t\t\t\t<i class=\"fa fa-jsfiddle\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"title\">系统管理</span>\r\n");
out.write("\t\t\t\t\t\t\t\t<span class=\"arrow \"></span>\r\n");
out.write("\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t<ul class=\"sub-menu\">\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f68(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-stumbleupon-circle\"></i> 账号管理\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa\"></i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href=\"#\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-gift\"></i> IBooK信息\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<a href='");
if (_jspx_meth_c_005furl_005f69(_jspx_page_context))
return;
out.write("'>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"icon-lock\"></i> 密码修改\r\n");
out.write("\t\t\t\t\t\t\t\t\t</a>\r\n");
out.write("\t\t\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\r\n");
out.write("\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t\t<!-- END SIDEBAR MENU -->\r\n");
out.write("\t\t\t\t</div>\r\n");
out.write("\t\t\t</div>\r\n");
out.write("\t\t\t<!-- END SIDEBAR -->");
out.write("\r\n");
out.write("\t\t<!-- END SIDEBAR -->\r\n");
out.write("\t\t<!-- 下面是正文部分 -->\r\n");
out.write("\t\t<!-- BEGIN CONTENT -->\r\n");
out.write("\t\t<div class=\"page-content-wrapper\">\r\n");
out.write("\t\t\t<div class=\"page-content\">\r\n");
out.write("\t\t\t\t<!-- BEGIN PAGE HEADER-->\r\n");
out.write("\t\t\t\t<h3 class=\"page-title\">用户管理</h3>\r\n");
out.write("\t\t\t\t<div class=\"page-bar\">\r\n");
out.write("\t\t\t\t\t<ul class=\"page-breadcrumb\">\r\n");
out.write("\t\t\t\t\t\t<li class=\"active\"><i class=\"fa fa-home\"></i> <a\r\n");
out.write("\t\t\t\t\t\t\thref=\"index.html\">MSC首页</a> <i class=\"fa fa-angle-right\"></i></li>\r\n");
out.write("\t\t\t\t\t\t<li><a href=\"javascript:void(0)\">系统管理</a> <i\r\n");
out.write("\t\t\t\t\t\t\tclass=\"fa fa-angle-right\"></i></li>\r\n");
out.write("\t\t\t\t\t\t<li class=\"active\"><a\r\n");
out.write("\t\t\t\t\t\t\thref='");
if (_jspx_meth_c_005furl_005f70(_jspx_page_context))
return;
out.write("'>用户管理</a> <i\r\n");
out.write("\t\t\t\t\t\t\tclass=\"fa fa-angle-right\"></i></li>\r\n");
out.write("\t\t\t\t\t\t<li><a href='");
if (_jspx_meth_c_005furl_005f71(_jspx_page_context))
return;
out.write("'>新增用户</a>\r\n");
out.write("\t\t\t\t\t\t</li>\r\n");
out.write("\t\t\t\t\t</ul>\r\n");
out.write("\t\t\t\t</div>\r\n");
out.write("\t\t\t\t<!-- END PAGE HEADER-->\r\n");
out.write("\t\t\t\t<!-- BEGIN PAGE CONTENT-->\r\n");
out.write("\t\t\t\t<div class=\"row\">\r\n");
out.write("\t\t\t\t\t<div class=\"col-md-12\">\r\n");
out.write("\t\t\t\t\t\t<form class=\"form-horizontal form-row-seperated\"\r\n");
out.write("\t\t\t\t\t\t\tid=\"managerAddForm\"\r\n");
out.write("\t\t\t\t\t\t\taction=");
if (_jspx_meth_c_005furl_005f72(_jspx_page_context))
return;
out.write(" method=\"post\">\r\n");
out.write("\t\t\t\t\t\t\t<div class=\"portlet light\">\r\n");
out.write("\t\t\t\t\t\t\t\t<div class=\"portlet-title\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t<div class=\"caption\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-user font-green-sharp\"></i> <span\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\tclass=\"caption-subject font-green-sharp bold\">新增用户</span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<div class=\"actions btn-set\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-default btn-circle\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\thref=\"javascript:history.go(-1)\"><i\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\tclass=\"fa fa-angle-left\"></i> 返回</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t\t\t\t<div class=\"portlet-body\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t<div class=\"table-responsive\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table_sxcondition\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th width=\"25%\">登录名:</th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td width=\"75%\"><input type=\"text\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control input-large\" id=\"loginname\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"loginname\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${manager.loginname}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\" autofocus></td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th width=\"25%\">密码:</th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td width=\"75%\"><div class=\"form-inline\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input class=\"form-control input-large\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"width: 180px;\" type=\"password\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"password\" id=\"password\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${manager.password}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\" />\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-info btn-sm\" data-toggle=\"modal\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tid=\"setPassword\" type=\"button\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-hand-o-left\">设为默认 </i>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</div></td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th width=\"25%\">再次输入密码:</th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td width=\"75%\"><input type=\"password\" id=\"repassword\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"repassword\" class=\"form-control input-large\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${manager.password}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th width=\"25%\">用户姓名:</th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td width=\"75%\"><input type=\"text\" id=\"name\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"name\" class=\"form-control input-large\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${manager.name}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\"></td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th width=\"25%\">状态:</th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td width=\"75%\"><select\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"bs-select form-control input-large\" id=\"status\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"status\" data-placeholder=\"正常\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${manager.status}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"0\">正常</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"1\">停用</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</select></td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th width=\"25%\">后台角色:</th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td width=\"75%\"><select\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"bs-select form-control input-large\" id=\"role\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"role\" data-placeholder=\"主管\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${manager.role}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"0\" selected>管理员</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"1\">操作员</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</select></td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<th> </th>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td><a href=\"javascript:history.go(-1)\"\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"btn default\"><i class=\"fa fa-angle-left\"></i> 返回</a>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"reset\" class=\"btn default\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-reply\"></i> 重置\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa fa-check\"></i> 提交\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<label style=\"color:red;\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${success}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("</label>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t</table>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t\t\t</form>\r\n");
out.write("\t\t\t\t\t</div>\r\n");
out.write("\t\t\t\t</div>\r\n");
out.write("\t\t\t\t<!-- END PAGE CONTENT-->\r\n");
out.write("\r\n");
out.write("\t\t\t</div>\r\n");
out.write("\t\t</div>\r\n");
out.write("\t\t<!-- END CONTAINER -->\r\n");
out.write("\t\t<!-- 正文部分结束 -->\r\n");
out.write("\t</div>\r\n");
out.write("\t");
out.write("\r\n");
out.write("\t<!-- BEGIN FOOTER -->\r\n");
out.write("\t\t<div class=\"page-footer\">Copyright <sup>©</sup> BS_2016 |上海电力学院 | 软件工程 2012221| Bin 20123094</div>\r\n");
out.write("\t\t<!-- END FOOTER -->\r\n");
out.write("\t\t<!-- BEGIN SCROLL-TO -->\r\n");
out.write("\t\t<div class=\"scroll-to-top\">\r\n");
out.write("\t\t\t<i class=\"icon-arrow-up\"></i>\r\n");
out.write("\t\t</div>");
out.write("\r\n");
out.write("\t<script type=\"text/javascript\">\r\n");
out.write("\t$(\"#setPassword\").click(function(){\r\n");
out.write("\t\t$(\"#repassword\").val(\"111111\");\r\n");
out.write("\t\t$(\"#password\").val(\"111111\");\r\n");
out.write("\t});\r\n");
out.write("\t\t$(\"#managerAddForm\").validate({\r\n");
out.write("\t\t\terrorClass : \"notice\",\r\n");
out.write("\t\t\trules : {\r\n");
out.write("\t\t\t\tloginname : {\r\n");
out.write("\t\t\t\t\trequired : true\r\n");
out.write("\t\t\t\t},\r\n");
out.write("\t\t\t\tpassword : {\r\n");
out.write("\t\t\t\t\trequired : true,\r\n");
out.write("\t\t\t\t\trangelength : [ 6, 20 ],\r\n");
out.write("\t\t\t\t\tpattern : /^[a-zA-Z0-9_]*$/\r\n");
out.write("\t\t\t\t},\r\n");
out.write("\t\t\t\trepassword : {\r\n");
out.write("\t\t\t\t\tequalTo : \"#password\"\r\n");
out.write("\t\t\t\t},\r\n");
out.write("\t\t\t\tname : {\r\n");
out.write("\t\t\t\t\trequired : true\r\n");
out.write("\t\t\t\t}\r\n");
out.write("\t\t\t},\r\n");
out.write("\t\t\tmessages : {\r\n");
out.write("\t\t\t\tloginname : {\r\n");
out.write("\t\t\t\t\trequired : \"登录名不能为空\"\r\n");
out.write("\t\t\t\t},\r\n");
out.write("\t\t\t\tpassword : {\r\n");
out.write("\t\t\t\t\trequired : \"密码不能为空\",\r\n");
out.write("\t\t\t\t\trangelength : \"密码长度必须为6-20之间\",\r\n");
out.write("\t\t\t\t\tpattern : \"密码不能包含特殊字符\"\r\n");
out.write("\t\t\t\t},\r\n");
out.write("\t\t\t\trepassword : {\r\n");
out.write("\t\t\t\t\tequalTo : \"两次密码输入不一致\"\r\n");
out.write("\t\t\t\t},\r\n");
out.write("\t\t\t\tname : {\r\n");
out.write("\t\t\t\t\trequired : \"用户姓名不能为空\"\r\n");
out.write("\t\t\t\t}\r\n");
out.write("\t\t\t},\r\n");
out.write("\t\t\tfocusInvalid : true,\r\n");
out.write("\t\t});\r\n");
out.write("\t</script>\r\n");
out.write("</body>\r\n");
out.write("\r\n");
out.write("</html>");
} catch (java.lang.Throwable t) {
if (!(t instanceof javax.servlet.jsp.SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005fset_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f0.setParent(null);
// /commons/taglibs.jsp(5,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f0.setVar("ctx");
// /commons/taglibs.jsp(5,0) name = value type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f0.setValue(new org.apache.jasper.el.JspValueExpression("/commons/taglibs.jsp(5,0) '${pageContext.request.contextPath}'",_el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(),"${pageContext.request.contextPath}",java.lang.Object.class)).getValue(_jspx_page_context.getELContext()));
int _jspx_eval_c_005fset_005f0 = _jspx_th_c_005fset_005f0.doStartTag();
if (_jspx_th_c_005fset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f0);
return true;
}
_005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f0);
return false;
}
private boolean _jspx_meth_c_005furl_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f0 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f0.setParent(null);
// /commons/head.jsp(16,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setValue("/assets/global/plugins/pace/pace.min.js");
int _jspx_eval_c_005furl_005f0 = _jspx_th_c_005furl_005f0.doStartTag();
if (_jspx_th_c_005furl_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return false;
}
private boolean _jspx_meth_c_005furl_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f1 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f1.setParent(null);
// /commons/head.jsp(19,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setValue("/assets/global/plugins/pace/themes/pace-theme-flash.css");
int _jspx_eval_c_005furl_005f1 = _jspx_th_c_005furl_005f1.doStartTag();
if (_jspx_th_c_005furl_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return false;
}
private boolean _jspx_meth_c_005furl_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f2 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f2.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f2.setParent(null);
// /commons/head.jsp(21,33) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setValue("/scripts/images/book1.jpg");
int _jspx_eval_c_005furl_005f2 = _jspx_th_c_005furl_005f2.doStartTag();
if (_jspx_th_c_005furl_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return false;
}
private boolean _jspx_meth_c_005furl_005f3(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f3 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f3.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f3.setParent(null);
// /commons/head.jsp(27,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setValue("/assets/global/plugins/font-awesome/css/font-awesome.min.css");
int _jspx_eval_c_005furl_005f3 = _jspx_th_c_005furl_005f3.doStartTag();
if (_jspx_th_c_005furl_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return false;
}
private boolean _jspx_meth_c_005furl_005f4(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f4 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f4.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f4.setParent(null);
// /commons/head.jsp(30,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f4.setValue("/assets/global/plugins/simple-line-icons/simple-line-icons.min.css");
int _jspx_eval_c_005furl_005f4 = _jspx_th_c_005furl_005f4.doStartTag();
if (_jspx_th_c_005furl_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f4);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f4);
return false;
}
private boolean _jspx_meth_c_005furl_005f5(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f5 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f5.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f5.setParent(null);
// /commons/head.jsp(33,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f5.setValue("/assets/global/plugins/bootstrap/css/bootstrap.min.css");
int _jspx_eval_c_005furl_005f5 = _jspx_th_c_005furl_005f5.doStartTag();
if (_jspx_th_c_005furl_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f5);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f5);
return false;
}
private boolean _jspx_meth_c_005furl_005f6(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f6 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f6.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f6.setParent(null);
// /commons/head.jsp(36,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f6.setValue("/assets/global/plugins/uniform/css/uniform.default.css");
int _jspx_eval_c_005furl_005f6 = _jspx_th_c_005furl_005f6.doStartTag();
if (_jspx_th_c_005furl_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f6);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f6);
return false;
}
private boolean _jspx_meth_c_005furl_005f7(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f7 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f7.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f7.setParent(null);
// /commons/head.jsp(41,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f7.setValue("/assets/global/plugins/vendors/css/style.css");
int _jspx_eval_c_005furl_005f7 = _jspx_th_c_005furl_005f7.doStartTag();
if (_jspx_th_c_005furl_005f7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f7);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f7);
return false;
}
private boolean _jspx_meth_c_005furl_005f8(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f8 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f8.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f8.setParent(null);
// /commons/head.jsp(44,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f8.setValue("/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css");
int _jspx_eval_c_005furl_005f8 = _jspx_th_c_005furl_005f8.doStartTag();
if (_jspx_th_c_005furl_005f8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f8);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f8);
return false;
}
private boolean _jspx_meth_c_005furl_005f9(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f9 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f9.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f9.setParent(null);
// /commons/head.jsp(47,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f9.setValue("/assets/global/plugins/bootstrap-datepicker/css/datepicker.css");
int _jspx_eval_c_005furl_005f9 = _jspx_th_c_005furl_005f9.doStartTag();
if (_jspx_th_c_005furl_005f9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f9);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f9);
return false;
}
private boolean _jspx_meth_c_005furl_005f10(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f10 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f10.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f10.setParent(null);
// /commons/head.jsp(50,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f10.setValue("/assets/global/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css");
int _jspx_eval_c_005furl_005f10 = _jspx_th_c_005furl_005f10.doStartTag();
if (_jspx_th_c_005furl_005f10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f10);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f10);
return false;
}
private boolean _jspx_meth_c_005furl_005f11(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f11 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f11.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f11.setParent(null);
// /commons/head.jsp(53,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f11.setValue("/assets/global/plugins/bootstrap-datetimepicker/css/bootstrap-weektimepicker.css");
int _jspx_eval_c_005furl_005f11 = _jspx_th_c_005furl_005f11.doStartTag();
if (_jspx_th_c_005furl_005f11.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f11);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f11);
return false;
}
private boolean _jspx_meth_c_005furl_005f12(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f12 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f12.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f12.setParent(null);
// /commons/head.jsp(57,12) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f12.setValue("/assets/global/css/components.css");
int _jspx_eval_c_005furl_005f12 = _jspx_th_c_005furl_005f12.doStartTag();
if (_jspx_th_c_005furl_005f12.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f12);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f12);
return false;
}
private boolean _jspx_meth_c_005furl_005f13(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f13 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f13.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f13.setParent(null);
// /commons/head.jsp(59,12) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f13.setValue("/assets/global/css/plugins.css");
int _jspx_eval_c_005furl_005f13 = _jspx_th_c_005furl_005f13.doStartTag();
if (_jspx_th_c_005furl_005f13.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f13);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f13);
return false;
}
private boolean _jspx_meth_c_005furl_005f14(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f14 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f14.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f14.setParent(null);
// /commons/head.jsp(62,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f14.setValue("/assets/admin/layout2/css/layout.css");
int _jspx_eval_c_005furl_005f14 = _jspx_th_c_005furl_005f14.doStartTag();
if (_jspx_th_c_005furl_005f14.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f14);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f14);
return false;
}
private boolean _jspx_meth_c_005furl_005f15(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f15 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f15.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f15.setParent(null);
// /commons/head.jsp(65,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f15.setValue("/assets/admin/layout2/css/themes/grey.css");
int _jspx_eval_c_005furl_005f15 = _jspx_th_c_005furl_005f15.doStartTag();
if (_jspx_th_c_005furl_005f15.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f15);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f15);
return false;
}
private boolean _jspx_meth_c_005furl_005f16(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f16 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f16.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f16.setParent(null);
// /commons/head.jsp(68,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f16.setValue("/assets/admin/layout2/css/custom.css");
int _jspx_eval_c_005furl_005f16 = _jspx_th_c_005furl_005f16.doStartTag();
if (_jspx_th_c_005furl_005f16.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f16);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f16);
return false;
}
private boolean _jspx_meth_c_005furl_005f17(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f17 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f17.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f17.setParent(null);
// /commons/head.jsp(71,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f17.setValue("/assets/global/plugins/jquery-multi-select/css/multi-select.css");
int _jspx_eval_c_005furl_005f17 = _jspx_th_c_005furl_005f17.doStartTag();
if (_jspx_th_c_005furl_005f17.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f17);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f17);
return false;
}
private boolean _jspx_meth_c_005furl_005f18(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f18 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f18.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f18.setParent(null);
// /commons/head.jsp(78,13) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f18.setValue("/assets/global/plugins/respond.min.js");
int _jspx_eval_c_005furl_005f18 = _jspx_th_c_005furl_005f18.doStartTag();
if (_jspx_th_c_005furl_005f18.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f18);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f18);
return false;
}
private boolean _jspx_meth_c_005furl_005f19(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f19 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f19.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f19.setParent(null);
// /commons/head.jsp(79,13) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f19.setValue("/assets/global/plugins/excanvas.min.js");
int _jspx_eval_c_005furl_005f19 = _jspx_th_c_005furl_005f19.doStartTag();
if (_jspx_th_c_005furl_005f19.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f19);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f19);
return false;
}
private boolean _jspx_meth_c_005furl_005f20(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f20 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f20.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f20.setParent(null);
// /commons/head.jsp(86,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f20.setValue("/assets/global/plugins/jquery.min.js");
int _jspx_eval_c_005furl_005f20 = _jspx_th_c_005furl_005f20.doStartTag();
if (_jspx_th_c_005furl_005f20.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f20);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f20);
return false;
}
private boolean _jspx_meth_c_005furl_005f21(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f21 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f21.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f21.setParent(null);
// /commons/head.jsp(90,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f21.setValue("/assets/global/plugins/jquery-migrate.min.js");
int _jspx_eval_c_005furl_005f21 = _jspx_th_c_005furl_005f21.doStartTag();
if (_jspx_th_c_005furl_005f21.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f21);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f21);
return false;
}
private boolean _jspx_meth_c_005furl_005f22(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f22 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f22.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f22.setParent(null);
// /commons/head.jsp(93,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f22.setValue("/assets/global/plugins/jquery-ui/jquery-ui.min.js");
int _jspx_eval_c_005furl_005f22 = _jspx_th_c_005furl_005f22.doStartTag();
if (_jspx_th_c_005furl_005f22.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f22);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f22);
return false;
}
private boolean _jspx_meth_c_005furl_005f23(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f23 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f23.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f23.setParent(null);
// /commons/head.jsp(96,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f23.setValue("/assets/global/plugins/bootstrap/js/bootstrap.min.js");
int _jspx_eval_c_005furl_005f23 = _jspx_th_c_005furl_005f23.doStartTag();
if (_jspx_th_c_005furl_005f23.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f23);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f23);
return false;
}
private boolean _jspx_meth_c_005furl_005f24(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f24 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f24.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f24.setParent(null);
// /commons/head.jsp(99,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f24.setValue("/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js");
int _jspx_eval_c_005furl_005f24 = _jspx_th_c_005furl_005f24.doStartTag();
if (_jspx_th_c_005furl_005f24.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f24);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f24);
return false;
}
private boolean _jspx_meth_c_005furl_005f25(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f25 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f25.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f25.setParent(null);
// /commons/head.jsp(102,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f25.setValue("/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js");
int _jspx_eval_c_005furl_005f25 = _jspx_th_c_005furl_005f25.doStartTag();
if (_jspx_th_c_005furl_005f25.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f25);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f25);
return false;
}
private boolean _jspx_meth_c_005furl_005f26(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f26 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f26.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f26.setParent(null);
// /commons/head.jsp(105,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f26.setValue("/assets/global/plugins/jquery.blockui.min.js");
int _jspx_eval_c_005furl_005f26 = _jspx_th_c_005furl_005f26.doStartTag();
if (_jspx_th_c_005furl_005f26.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f26);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f26);
return false;
}
private boolean _jspx_meth_c_005furl_005f27(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f27 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f27.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f27.setParent(null);
// /commons/head.jsp(108,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f27.setValue("/assets/global/plugins/uniform/jquery.uniform.min.js");
int _jspx_eval_c_005furl_005f27 = _jspx_th_c_005furl_005f27.doStartTag();
if (_jspx_th_c_005furl_005f27.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f27);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f27);
return false;
}
private boolean _jspx_meth_c_005furl_005f28(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f28 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f28.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f28.setParent(null);
// /commons/head.jsp(112,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f28.setValue("/scripts/fileUpload/jquery.ui.widget.js");
int _jspx_eval_c_005furl_005f28 = _jspx_th_c_005furl_005f28.doStartTag();
if (_jspx_th_c_005furl_005f28.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f28);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f28);
return false;
}
private boolean _jspx_meth_c_005furl_005f29(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f29 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f29.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f29.setParent(null);
// /commons/head.jsp(114,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f29.setValue("/scripts/fileUpload/jquery.iframe-transport.js");
int _jspx_eval_c_005furl_005f29 = _jspx_th_c_005furl_005f29.doStartTag();
if (_jspx_th_c_005furl_005f29.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f29);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f29);
return false;
}
private boolean _jspx_meth_c_005furl_005f30(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f30 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f30.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f30.setParent(null);
// /commons/head.jsp(116,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f30.setValue("/scripts/fileUpload/jquery.fileupload.js");
int _jspx_eval_c_005furl_005f30 = _jspx_th_c_005furl_005f30.doStartTag();
if (_jspx_th_c_005furl_005f30.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f30);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f30);
return false;
}
private boolean _jspx_meth_c_005furl_005f31(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f31 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f31.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f31.setParent(null);
// /commons/head.jsp(121,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f31.setValue("/assets/global/plugins/datatables/media/js/jquery.dataTables.min.js");
int _jspx_eval_c_005furl_005f31 = _jspx_th_c_005furl_005f31.doStartTag();
if (_jspx_th_c_005furl_005f31.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f31);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f31);
return false;
}
private boolean _jspx_meth_c_005furl_005f32(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f32 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f32.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f32.setParent(null);
// /commons/head.jsp(124,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f32.setValue("/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js");
int _jspx_eval_c_005furl_005f32 = _jspx_th_c_005furl_005f32.doStartTag();
if (_jspx_th_c_005furl_005f32.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f32);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f32);
return false;
}
private boolean _jspx_meth_c_005furl_005f33(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f33 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f33.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f33.setParent(null);
// /commons/head.jsp(127,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f33.setValue("/assets/global/plugins/vendors/echart/echarts.js");
int _jspx_eval_c_005furl_005f33 = _jspx_th_c_005furl_005f33.doStartTag();
if (_jspx_th_c_005furl_005f33.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f33);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f33);
return false;
}
private boolean _jspx_meth_c_005furl_005f34(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f34 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f34.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f34.setParent(null);
// /commons/head.jsp(130,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f34.setValue("/assets/admin/pages/scripts/index.js");
int _jspx_eval_c_005furl_005f34 = _jspx_th_c_005furl_005f34.doStartTag();
if (_jspx_th_c_005furl_005f34.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f34);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f34);
return false;
}
private boolean _jspx_meth_c_005furl_005f35(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f35 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f35.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f35.setParent(null);
// /commons/head.jsp(133,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f35.setValue("/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js");
int _jspx_eval_c_005furl_005f35 = _jspx_th_c_005furl_005f35.doStartTag();
if (_jspx_th_c_005furl_005f35.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f35);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f35);
return false;
}
private boolean _jspx_meth_c_005furl_005f36(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f36 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f36.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f36.setParent(null);
// /commons/head.jsp(136,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f36.setValue("/assets/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js");
int _jspx_eval_c_005furl_005f36 = _jspx_th_c_005furl_005f36.doStartTag();
if (_jspx_th_c_005furl_005f36.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f36);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f36);
return false;
}
private boolean _jspx_meth_c_005furl_005f37(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f37 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f37.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f37.setParent(null);
// /commons/head.jsp(140,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f37.setValue("/assets/global/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js");
int _jspx_eval_c_005furl_005f37 = _jspx_th_c_005furl_005f37.doStartTag();
if (_jspx_th_c_005furl_005f37.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f37);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f37);
return false;
}
private boolean _jspx_meth_c_005furl_005f38(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f38 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f38.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f38.setParent(null);
// /commons/head.jsp(142,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f38.setValue("/assets/admin/pages/scripts/ui-blockui.js");
int _jspx_eval_c_005furl_005f38 = _jspx_th_c_005furl_005f38.doStartTag();
if (_jspx_th_c_005furl_005f38.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f38);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f38);
return false;
}
private boolean _jspx_meth_c_005furl_005f39(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f39 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f39.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f39.setParent(null);
// /commons/head.jsp(145,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f39.setValue("/assets/admin/pages/scripts/ecommerce-products.js");
int _jspx_eval_c_005furl_005f39 = _jspx_th_c_005furl_005f39.doStartTag();
if (_jspx_th_c_005furl_005f39.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f39);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f39);
return false;
}
private boolean _jspx_meth_c_005furl_005f40(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f40 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f40.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f40.setParent(null);
// /commons/head.jsp(150,13) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f40.setValue("/assets/global/scripts/metronic.js");
int _jspx_eval_c_005furl_005f40 = _jspx_th_c_005furl_005f40.doStartTag();
if (_jspx_th_c_005furl_005f40.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f40);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f40);
return false;
}
private boolean _jspx_meth_c_005furl_005f41(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f41 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f41.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f41.setParent(null);
// /commons/head.jsp(153,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f41.setValue("/assets/admin/layout2/scripts/layout.js");
int _jspx_eval_c_005furl_005f41 = _jspx_th_c_005furl_005f41.doStartTag();
if (_jspx_th_c_005furl_005f41.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f41);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f41);
return false;
}
private boolean _jspx_meth_c_005furl_005f42(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f42 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f42.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f42.setParent(null);
// /commons/head.jsp(156,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f42.setValue("/assets/admin/pages/scripts/lanswitch.js");
int _jspx_eval_c_005furl_005f42 = _jspx_th_c_005furl_005f42.doStartTag();
if (_jspx_th_c_005furl_005f42.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f42);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f42);
return false;
}
private boolean _jspx_meth_c_005furl_005f43(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f43 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f43.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f43.setParent(null);
// /commons/head.jsp(159,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f43.setValue("/assets/global/scripts/datatable.js");
int _jspx_eval_c_005furl_005f43 = _jspx_th_c_005furl_005f43.doStartTag();
if (_jspx_th_c_005furl_005f43.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f43);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f43);
return false;
}
private boolean _jspx_meth_c_005furl_005f44(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f44 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f44.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f44.setParent(null);
// /commons/head.jsp(162,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f44.setValue("/assets/admin/pages/scripts/chart-helper.js");
int _jspx_eval_c_005furl_005f44 = _jspx_th_c_005furl_005f44.doStartTag();
if (_jspx_th_c_005furl_005f44.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f44);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f44);
return false;
}
private boolean _jspx_meth_c_005furl_005f45(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f45 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f45.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f45.setParent(null);
// /commons/head.jsp(165,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f45.setValue("/assets/global/plugins/amcharts/amcharts/amcharts.js");
int _jspx_eval_c_005furl_005f45 = _jspx_th_c_005furl_005f45.doStartTag();
if (_jspx_th_c_005furl_005f45.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f45);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f45);
return false;
}
private boolean _jspx_meth_c_005furl_005f46(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f46 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f46.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f46.setParent(null);
// /commons/head.jsp(168,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f46.setValue("/assets/global/plugins/amcharts/amcharts/serial.js");
int _jspx_eval_c_005furl_005f46 = _jspx_th_c_005furl_005f46.doStartTag();
if (_jspx_th_c_005furl_005f46.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f46);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f46);
return false;
}
private boolean _jspx_meth_c_005furl_005f47(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f47 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f47.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f47.setParent(null);
// /commons/head.jsp(172,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f47.setValue("/assets/admin/pages/scripts/components-pickers.js");
int _jspx_eval_c_005furl_005f47 = _jspx_th_c_005furl_005f47.doStartTag();
if (_jspx_th_c_005furl_005f47.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f47);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f47);
return false;
}
private boolean _jspx_meth_c_005furl_005f48(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f48 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f48.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f48.setParent(null);
// /commons/head.jsp(176,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f48.setValue("/assets/admin/pages/scripts/form-icheck.js");
int _jspx_eval_c_005furl_005f48 = _jspx_th_c_005furl_005f48.doStartTag();
if (_jspx_th_c_005furl_005f48.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f48);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f48);
return false;
}
private boolean _jspx_meth_c_005furl_005f49(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f49 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f49.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f49.setParent(null);
// /commons/head.jsp(179,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f49.setValue("/assets/admin/pages/scripts/charts-amcharts.js");
int _jspx_eval_c_005furl_005f49 = _jspx_th_c_005furl_005f49.doStartTag();
if (_jspx_th_c_005furl_005f49.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f49);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f49);
return false;
}
private boolean _jspx_meth_c_005furl_005f50(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f50 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f50.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f50.setParent(null);
// /commons/head.jsp(182,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f50.setValue("/scripts/jquery-validate/jquery.validate.min.js");
int _jspx_eval_c_005furl_005f50 = _jspx_th_c_005furl_005f50.doStartTag();
if (_jspx_th_c_005furl_005f50.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f50);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f50);
return false;
}
private boolean _jspx_meth_c_005furl_005f51(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f51 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f51.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f51.setParent(null);
// /commons/head.jsp(184,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f51.setValue("/scripts/jquery-validate/additional-methods.min.js");
int _jspx_eval_c_005furl_005f51 = _jspx_th_c_005furl_005f51.doStartTag();
if (_jspx_th_c_005furl_005f51.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f51);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f51);
return false;
}
private boolean _jspx_meth_c_005furl_005f52(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f52 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f52.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f52.setParent(null);
// /commons/head.jsp(186,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f52.setValue("/scripts/map.js");
int _jspx_eval_c_005furl_005f52 = _jspx_th_c_005furl_005f52.doStartTag();
if (_jspx_th_c_005furl_005f52.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f52);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f52);
return false;
}
private boolean _jspx_meth_c_005furl_005f53(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f53 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f53.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f53.setParent(null);
// /commons/head.jsp(191,7) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f53.setValue("/scripts/bootstrap-colorpicker/css/colorpicker.css");
int _jspx_eval_c_005furl_005f53 = _jspx_th_c_005furl_005f53.doStartTag();
if (_jspx_th_c_005furl_005f53.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f53);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f53);
return false;
}
private boolean _jspx_meth_c_005furl_005f54(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f54 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f54.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f54.setParent(null);
// /commons/head.jsp(193,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f54.setValue("/scripts/bootstrap-colorpicker/js/bootstrap-colorpicker.js");
int _jspx_eval_c_005furl_005f54 = _jspx_th_c_005furl_005f54.doStartTag();
if (_jspx_th_c_005furl_005f54.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f54);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f54);
return false;
}
private boolean _jspx_meth_c_005furl_005f55(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f55 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f55.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f55.setParent(null);
// /commons/head.jsp(194,12) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f55.setValue("/assets/admin/pages/css/profile.css");
int _jspx_eval_c_005furl_005f55 = _jspx_th_c_005furl_005f55.doStartTag();
if (_jspx_th_c_005furl_005f55.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f55);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f55);
return false;
}
private boolean _jspx_meth_c_005furl_005f56(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f56 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f56.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f56.setParent(null);
// /commons/top.jsp(11,15) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f56.setValue("/assets/admin/layout2/img/logo.png");
int _jspx_eval_c_005furl_005f56 = _jspx_th_c_005furl_005f56.doStartTag();
if (_jspx_th_c_005furl_005f56.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f56);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f56);
return false;
}
private boolean _jspx_meth_c_005furl_005f57(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f57 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f57.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f57.setParent(null);
// /commons/top.jsp(102,45) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f57.setValue("/assets/admin/layout2/img/avatar.png");
int _jspx_eval_c_005furl_005f57 = _jspx_th_c_005furl_005f57.doStartTag();
if (_jspx_th_c_005furl_005f57.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f57);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f57);
return false;
}
private boolean _jspx_meth_c_005furl_005f58(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f58 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f58.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f58.setParent(null);
// /commons/top.jsp(108,19) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f58.setValue("/manager/getManagerByPage");
int _jspx_eval_c_005furl_005f58 = _jspx_th_c_005furl_005f58.doStartTag();
if (_jspx_th_c_005furl_005f58.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f58);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f58);
return false;
}
private boolean _jspx_meth_c_005furl_005f59(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f59 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f59.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f59.setParent(null);
// /commons/top.jsp(113,19) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f59.setValue("/manager/passwordEdit.jsp");
int _jspx_eval_c_005furl_005f59 = _jspx_th_c_005furl_005f59.doStartTag();
if (_jspx_th_c_005furl_005f59.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f59);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f59);
return false;
}
private boolean _jspx_meth_c_005furl_005f60(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f60 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f60.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f60.setParent(null);
// /commons/top.jsp(117,19) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f60.setValue("/login.jsp");
int _jspx_eval_c_005furl_005f60 = _jspx_th_c_005furl_005f60.doStartTag();
if (_jspx_th_c_005furl_005f60.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f60);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f60);
return false;
}
private boolean _jspx_meth_c_005fset_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f1 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f1.setParent(null);
// /commons/taglibs.jsp(5,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f1.setVar("ctx");
// /commons/taglibs.jsp(5,0) name = value type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f1.setValue(new org.apache.jasper.el.JspValueExpression("/commons/taglibs.jsp(5,0) '${pageContext.request.contextPath}'",_el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(),"${pageContext.request.contextPath}",java.lang.Object.class)).getValue(_jspx_page_context.getELContext()));
int _jspx_eval_c_005fset_005f1 = _jspx_th_c_005fset_005f1.doStartTag();
if (_jspx_th_c_005fset_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f1);
return true;
}
_005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f1);
return false;
}
private boolean _jspx_meth_c_005furl_005f61(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f61 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f61.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f61.setParent(null);
// /commons/left.jsp(21,16) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f61.setValue("/order/getOrderByPage");
int _jspx_eval_c_005furl_005f61 = _jspx_th_c_005furl_005f61.doStartTag();
if (_jspx_th_c_005furl_005f61.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f61);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f61);
return false;
}
private boolean _jspx_meth_c_005furl_005f62(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f62 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f62.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f62.setParent(null);
// /commons/left.jsp(36,18) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f62.setValue("/subType/SellectByParams");
int _jspx_eval_c_005furl_005f62 = _jspx_th_c_005furl_005f62.doStartTag();
if (_jspx_th_c_005furl_005f62.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f62);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f62);
return false;
}
private boolean _jspx_meth_c_005furl_005f63(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f63 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f63.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f63.setParent(null);
// /commons/left.jsp(41,18) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f63.setValue("/book/getBookByPage");
int _jspx_eval_c_005furl_005f63 = _jspx_th_c_005furl_005f63.doStartTag();
if (_jspx_th_c_005furl_005f63.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f63);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f63);
return false;
}
private boolean _jspx_meth_c_005furl_005f64(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f64 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f64.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f64.setParent(null);
// /commons/left.jsp(48,16) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f64.setValue("/main/count");
int _jspx_eval_c_005furl_005f64 = _jspx_th_c_005furl_005f64.doStartTag();
if (_jspx_th_c_005furl_005f64.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f64);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f64);
return false;
}
private boolean _jspx_meth_c_005furl_005f65(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f65 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f65.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f65.setParent(null);
// /commons/left.jsp(55,16) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f65.setValue("/suggest/editSuggest");
int _jspx_eval_c_005furl_005f65 = _jspx_th_c_005furl_005f65.doStartTag();
if (_jspx_th_c_005furl_005f65.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f65);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f65);
return false;
}
private boolean _jspx_meth_c_005furl_005f66(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f66 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f66.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f66.setParent(null);
// /commons/left.jsp(69,18) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f66.setValue("/manager/noticeAdd.jsp");
int _jspx_eval_c_005furl_005f66 = _jspx_th_c_005furl_005f66.doStartTag();
if (_jspx_th_c_005furl_005f66.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f66);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f66);
return false;
}
private boolean _jspx_meth_c_005furl_005f67(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f67 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f67.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f67.setParent(null);
// /commons/left.jsp(74,18) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f67.setValue("/notice/getNoticeByPage");
int _jspx_eval_c_005furl_005f67 = _jspx_th_c_005furl_005f67.doStartTag();
if (_jspx_th_c_005furl_005f67.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f67);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f67);
return false;
}
private boolean _jspx_meth_c_005furl_005f68(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f68 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f68.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f68.setParent(null);
// /commons/left.jsp(88,18) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f68.setValue("/manager/getManagerByPage");
int _jspx_eval_c_005furl_005f68 = _jspx_th_c_005furl_005f68.doStartTag();
if (_jspx_th_c_005furl_005f68.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f68);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f68);
return false;
}
private boolean _jspx_meth_c_005furl_005f69(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f69 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f69.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f69.setParent(null);
// /commons/left.jsp(99,18) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f69.setValue("/manager/passwordEdit.jsp");
int _jspx_eval_c_005furl_005f69 = _jspx_th_c_005furl_005f69.doStartTag();
if (_jspx_th_c_005furl_005f69.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f69);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f69);
return false;
}
private boolean _jspx_meth_c_005furl_005f70(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f70 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f70.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f70.setParent(null);
// /manager/managerAdd.jsp(31,13) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f70.setValue("/manager/manager.jsp");
int _jspx_eval_c_005furl_005f70 = _jspx_th_c_005furl_005f70.doStartTag();
if (_jspx_th_c_005furl_005f70.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f70);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f70);
return false;
}
private boolean _jspx_meth_c_005furl_005f71(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f71 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f71.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f71.setParent(null);
// /manager/managerAdd.jsp(33,19) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f71.setValue("/manager/managerAdd.jsp");
int _jspx_eval_c_005furl_005f71 = _jspx_th_c_005furl_005f71.doStartTag();
if (_jspx_th_c_005furl_005f71.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f71);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f71);
return false;
}
private boolean _jspx_meth_c_005furl_005f72(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f72 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f72.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f72.setParent(null);
// /manager/managerAdd.jsp(43,14) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f72.setValue("/manager/addManager");
int _jspx_eval_c_005furl_005f72 = _jspx_th_c_005furl_005f72.doStartTag();
if (_jspx_th_c_005furl_005f72.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f72);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f72);
return false;
}
}
| [
"1374477098@qq.com"
] | 1374477098@qq.com |
2a4ea0af7ff14b05746894a0f9b83ae7dac81ede | 0ea271177f5c42920ac53cd7f01f053dba5c14e4 | /5.4.2/sources/android/support/v7/app/C0778k.java | 6384371aed62df515460030aa89f620ed6b26d65 | [] | no_license | alireza-ebrahimi/telegram-talaeii | 367a81a77f9bc447e729b2ca339f9512a4c2860e | 68a67e6f104ab8a0888e63c605e8bbad12c4a20e | refs/heads/master | 2020-03-21T13:44:29.008002 | 2018-12-09T10:30:29 | 2018-12-09T10:30:29 | 138,622,926 | 12 | 1 | null | null | null | null | UTF-8 | Java | false | false | 59,275 | java | package android.support.v7.app;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources.Theme;
import android.content.res.TypedArray;
import android.graphics.Rect;
import android.media.AudioManager;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.support.v4.app.ag;
import android.support.v4.view.C0081z;
import android.support.v4.view.C0365n;
import android.support.v4.view.C0636j;
import android.support.v4.view.ah;
import android.support.v4.view.as;
import android.support.v4.view.ax;
import android.support.v4.view.bc;
import android.support.v4.view.be;
import android.support.v4.widget.C0724s;
import android.support.v7.p025a.C0748a.C0738a;
import android.support.v7.p025a.C0748a.C0740c;
import android.support.v7.p025a.C0748a.C0743f;
import android.support.v7.p025a.C0748a.C0744g;
import android.support.v7.p025a.C0748a.C0746i;
import android.support.v7.p025a.C0748a.C0747j;
import android.support.v7.p027c.p028a.C0825b;
import android.support.v7.view.C0814b;
import android.support.v7.view.C0814b.C0797a;
import android.support.v7.view.C0844d;
import android.support.v7.view.C0845e;
import android.support.v7.view.menu.C0079p;
import android.support.v7.view.menu.C0859o.C0794a;
import android.support.v7.view.menu.C0871f;
import android.support.v7.view.menu.C0873h;
import android.support.v7.view.menu.C0873h.C0777a;
import android.support.v7.widget.ActionBarContextView;
import android.support.v7.widget.C1069l;
import android.support.v7.widget.ContentFrameLayout;
import android.support.v7.widget.ContentFrameLayout.C0789a;
import android.support.v7.widget.ViewStubCompat;
import android.support.v7.widget.af;
import android.support.v7.widget.ak;
import android.support.v7.widget.ak.C0787a;
import android.support.v7.widget.bm;
import android.support.v7.widget.bp;
import android.text.TextUtils;
import android.util.AndroidRuntimeException;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.LayoutInflater.Factory;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewGroup.MarginLayoutParams;
import android.view.ViewParent;
import android.view.Window;
import android.view.Window.Callback;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.PopupWindow;
import android.widget.TextView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import org.telegram.messenger.exoplayer2.util.MimeTypes;
import org.xmlpull.v1.XmlPullParser;
@TargetApi(9)
/* renamed from: android.support.v7.app.k */
class C0778k extends C0773f implements C0365n, C0777a {
/* renamed from: t */
private static final boolean f1773t = (VERSION.SDK_INT < 21);
/* renamed from: A */
private View f1774A;
/* renamed from: B */
private boolean f1775B;
/* renamed from: C */
private boolean f1776C;
/* renamed from: D */
private boolean f1777D;
/* renamed from: E */
private C0800d[] f1778E;
/* renamed from: F */
private C0800d f1779F;
/* renamed from: G */
private boolean f1780G;
/* renamed from: H */
private final Runnable f1781H = new C07851(this);
/* renamed from: I */
private boolean f1782I;
/* renamed from: J */
private Rect f1783J;
/* renamed from: K */
private Rect f1784K;
/* renamed from: L */
private C0803m f1785L;
/* renamed from: m */
C0814b f1786m;
/* renamed from: n */
ActionBarContextView f1787n;
/* renamed from: o */
PopupWindow f1788o;
/* renamed from: p */
Runnable f1789p;
/* renamed from: q */
ax f1790q = null;
/* renamed from: r */
boolean f1791r;
/* renamed from: s */
int f1792s;
/* renamed from: u */
private af f1793u;
/* renamed from: v */
private C0795a f1794v;
/* renamed from: w */
private C0801e f1795w;
/* renamed from: x */
private boolean f1796x;
/* renamed from: y */
private ViewGroup f1797y;
/* renamed from: z */
private TextView f1798z;
/* renamed from: android.support.v7.app.k$1 */
class C07851 implements Runnable {
/* renamed from: a */
final /* synthetic */ C0778k f1810a;
C07851(C0778k c0778k) {
this.f1810a = c0778k;
}
public void run() {
if ((this.f1810a.f1792s & 1) != 0) {
this.f1810a.m3756f(0);
}
if ((this.f1810a.f1792s & 4096) != 0) {
this.f1810a.m3756f(108);
}
this.f1810a.f1791r = false;
this.f1810a.f1792s = 0;
}
}
/* renamed from: android.support.v7.app.k$2 */
class C07862 implements C0081z {
/* renamed from: a */
final /* synthetic */ C0778k f1811a;
C07862(C0778k c0778k) {
this.f1811a = c0778k;
}
/* renamed from: a */
public be mo57a(View view, be beVar) {
int b = beVar.m3078b();
int g = this.f1811a.m3757g(b);
if (b != g) {
beVar = beVar.m3077a(beVar.m3076a(), g, beVar.m3079c(), beVar.m3080d());
}
return ah.m2774a(view, beVar);
}
}
/* renamed from: android.support.v7.app.k$3 */
class C07883 implements C0787a {
/* renamed from: a */
final /* synthetic */ C0778k f1812a;
C07883(C0778k c0778k) {
this.f1812a = c0778k;
}
/* renamed from: a */
public void mo654a(Rect rect) {
rect.top = this.f1812a.m3757g(rect.top);
}
}
/* renamed from: android.support.v7.app.k$4 */
class C07904 implements C0789a {
/* renamed from: a */
final /* synthetic */ C0778k f1813a;
C07904(C0778k c0778k) {
this.f1813a = c0778k;
}
/* renamed from: a */
public void mo655a() {
}
/* renamed from: b */
public void mo656b() {
this.f1813a.m3764v();
}
}
/* renamed from: android.support.v7.app.k$5 */
class C07925 implements Runnable {
/* renamed from: a */
final /* synthetic */ C0778k f1815a;
/* renamed from: android.support.v7.app.k$5$1 */
class C07911 extends bc {
/* renamed from: a */
final /* synthetic */ C07925 f1814a;
C07911(C07925 c07925) {
this.f1814a = c07925;
}
public void onAnimationEnd(View view) {
ah.m2800c(this.f1814a.f1815a.f1787n, 1.0f);
this.f1814a.f1815a.f1790q.m3022a(null);
this.f1814a.f1815a.f1790q = null;
}
public void onAnimationStart(View view) {
this.f1814a.f1815a.f1787n.setVisibility(0);
}
}
C07925(C0778k c0778k) {
this.f1815a = c0778k;
}
public void run() {
this.f1815a.f1788o.showAtLocation(this.f1815a.f1787n, 55, 0, 0);
this.f1815a.m3762t();
if (this.f1815a.m3761s()) {
ah.m2800c(this.f1815a.f1787n, (float) BitmapDescriptorFactory.HUE_RED);
this.f1815a.f1790q = ah.m2827q(this.f1815a.f1787n).m3020a(1.0f);
this.f1815a.f1790q.m3022a(new C07911(this));
return;
}
ah.m2800c(this.f1815a.f1787n, 1.0f);
this.f1815a.f1787n.setVisibility(0);
}
}
/* renamed from: android.support.v7.app.k$6 */
class C07936 extends bc {
/* renamed from: a */
final /* synthetic */ C0778k f1816a;
C07936(C0778k c0778k) {
this.f1816a = c0778k;
}
public void onAnimationEnd(View view) {
ah.m2800c(this.f1816a.f1787n, 1.0f);
this.f1816a.f1790q.m3022a(null);
this.f1816a.f1790q = null;
}
public void onAnimationStart(View view) {
this.f1816a.f1787n.setVisibility(0);
this.f1816a.f1787n.sendAccessibilityEvent(32);
if (this.f1816a.f1787n.getParent() instanceof View) {
ah.m2834x((View) this.f1816a.f1787n.getParent());
}
}
}
/* renamed from: android.support.v7.app.k$a */
private final class C0795a implements C0794a {
/* renamed from: a */
final /* synthetic */ C0778k f1817a;
C0795a(C0778k c0778k) {
this.f1817a = c0778k;
}
/* renamed from: a */
public void mo657a(C0873h c0873h, boolean z) {
this.f1817a.m3744b(c0873h);
}
/* renamed from: a */
public boolean mo658a(C0873h c0873h) {
Callback q = this.f1817a.m3702q();
if (q != null) {
q.onMenuOpened(108, c0873h);
}
return true;
}
}
/* renamed from: android.support.v7.app.k$b */
class C0798b implements C0797a {
/* renamed from: a */
final /* synthetic */ C0778k f1819a;
/* renamed from: b */
private C0797a f1820b;
/* renamed from: android.support.v7.app.k$b$1 */
class C07961 extends bc {
/* renamed from: a */
final /* synthetic */ C0798b f1818a;
C07961(C0798b c0798b) {
this.f1818a = c0798b;
}
public void onAnimationEnd(View view) {
this.f1818a.f1819a.f1787n.setVisibility(8);
if (this.f1818a.f1819a.f1788o != null) {
this.f1818a.f1819a.f1788o.dismiss();
} else if (this.f1818a.f1819a.f1787n.getParent() instanceof View) {
ah.m2834x((View) this.f1818a.f1819a.f1787n.getParent());
}
this.f1818a.f1819a.f1787n.removeAllViews();
this.f1818a.f1819a.f1790q.m3022a(null);
this.f1818a.f1819a.f1790q = null;
}
}
public C0798b(C0778k c0778k, C0797a c0797a) {
this.f1819a = c0778k;
this.f1820b = c0797a;
}
/* renamed from: a */
public void mo659a(C0814b c0814b) {
this.f1820b.mo659a(c0814b);
if (this.f1819a.f1788o != null) {
this.f1819a.b.getDecorView().removeCallbacks(this.f1819a.f1789p);
}
if (this.f1819a.f1787n != null) {
this.f1819a.m3762t();
this.f1819a.f1790q = ah.m2827q(this.f1819a.f1787n).m3020a((float) BitmapDescriptorFactory.HUE_RED);
this.f1819a.f1790q.m3022a(new C07961(this));
}
if (this.f1819a.e != null) {
this.f1819a.e.mo135b(this.f1819a.f1786m);
}
this.f1819a.f1786m = null;
}
/* renamed from: a */
public boolean mo660a(C0814b c0814b, Menu menu) {
return this.f1820b.mo660a(c0814b, menu);
}
/* renamed from: a */
public boolean mo661a(C0814b c0814b, MenuItem menuItem) {
return this.f1820b.mo661a(c0814b, menuItem);
}
/* renamed from: b */
public boolean mo662b(C0814b c0814b, Menu menu) {
return this.f1820b.mo662b(c0814b, menu);
}
}
/* renamed from: android.support.v7.app.k$c */
private class C0799c extends ContentFrameLayout {
/* renamed from: a */
final /* synthetic */ C0778k f1829a;
public C0799c(C0778k c0778k, Context context) {
this.f1829a = c0778k;
super(context);
}
/* renamed from: a */
private boolean m3807a(int i, int i2) {
return i < -5 || i2 < -5 || i > getWidth() + 5 || i2 > getHeight() + 5;
}
public boolean dispatchKeyEvent(KeyEvent keyEvent) {
return this.f1829a.mo639a(keyEvent) || super.dispatchKeyEvent(keyEvent);
}
public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
if (motionEvent.getAction() != 0 || !m3807a((int) motionEvent.getX(), (int) motionEvent.getY())) {
return super.onInterceptTouchEvent(motionEvent);
}
this.f1829a.m3754e(0);
return true;
}
public void setBackgroundResource(int i) {
setBackgroundDrawable(C0825b.m3939b(getContext(), i));
}
}
/* renamed from: android.support.v7.app.k$d */
protected static final class C0800d {
/* renamed from: a */
int f1830a;
/* renamed from: b */
int f1831b;
/* renamed from: c */
int f1832c;
/* renamed from: d */
int f1833d;
/* renamed from: e */
int f1834e;
/* renamed from: f */
int f1835f;
/* renamed from: g */
ViewGroup f1836g;
/* renamed from: h */
View f1837h;
/* renamed from: i */
View f1838i;
/* renamed from: j */
C0873h f1839j;
/* renamed from: k */
C0871f f1840k;
/* renamed from: l */
Context f1841l;
/* renamed from: m */
boolean f1842m;
/* renamed from: n */
boolean f1843n;
/* renamed from: o */
boolean f1844o;
/* renamed from: p */
public boolean f1845p;
/* renamed from: q */
boolean f1846q = false;
/* renamed from: r */
boolean f1847r;
/* renamed from: s */
Bundle f1848s;
C0800d(int i) {
this.f1830a = i;
}
/* renamed from: a */
C0079p m3808a(C0794a c0794a) {
if (this.f1839j == null) {
return null;
}
if (this.f1840k == null) {
this.f1840k = new C0871f(this.f1841l, C0744g.abc_list_menu_item_layout);
this.f1840k.mo721a(c0794a);
this.f1839j.m4226a(this.f1840k);
}
return this.f1840k.m4193a(this.f1836g);
}
/* renamed from: a */
void m3809a(Context context) {
TypedValue typedValue = new TypedValue();
Theme newTheme = context.getResources().newTheme();
newTheme.setTo(context.getTheme());
newTheme.resolveAttribute(C0738a.actionBarPopupTheme, typedValue, true);
if (typedValue.resourceId != 0) {
newTheme.applyStyle(typedValue.resourceId, true);
}
newTheme.resolveAttribute(C0738a.panelMenuListTheme, typedValue, true);
if (typedValue.resourceId != 0) {
newTheme.applyStyle(typedValue.resourceId, true);
} else {
newTheme.applyStyle(C0746i.Theme_AppCompat_CompactMenu, true);
}
Context c0844d = new C0844d(context, 0);
c0844d.getTheme().setTo(newTheme);
this.f1841l = c0844d;
TypedArray obtainStyledAttributes = c0844d.obtainStyledAttributes(C0747j.AppCompatTheme);
this.f1831b = obtainStyledAttributes.getResourceId(C0747j.AppCompatTheme_panelBackground, 0);
this.f1835f = obtainStyledAttributes.getResourceId(C0747j.AppCompatTheme_android_windowAnimationStyle, 0);
obtainStyledAttributes.recycle();
}
/* renamed from: a */
void m3810a(C0873h c0873h) {
if (c0873h != this.f1839j) {
if (this.f1839j != null) {
this.f1839j.m4237b(this.f1840k);
}
this.f1839j = c0873h;
if (c0873h != null && this.f1840k != null) {
c0873h.m4226a(this.f1840k);
}
}
}
/* renamed from: a */
public boolean m3811a() {
return this.f1837h == null ? false : this.f1838i != null || this.f1840k.m4194a().getCount() > 0;
}
}
/* renamed from: android.support.v7.app.k$e */
private final class C0801e implements C0794a {
/* renamed from: a */
final /* synthetic */ C0778k f1849a;
C0801e(C0778k c0778k) {
this.f1849a = c0778k;
}
/* renamed from: a */
public void mo657a(C0873h c0873h, boolean z) {
Menu menu;
Menu p = c0873h.mo763p();
boolean z2 = p != c0873h;
C0778k c0778k = this.f1849a;
if (z2) {
menu = p;
}
C0800d a = c0778k.m3724a(menu);
if (a == null) {
return;
}
if (z2) {
this.f1849a.m3728a(a.f1830a, a, p);
this.f1849a.m3732a(a, true);
return;
}
this.f1849a.m3732a(a, z);
}
/* renamed from: a */
public boolean mo658a(C0873h c0873h) {
if (c0873h == null && this.f1849a.h) {
Callback q = this.f1849a.m3702q();
if (!(q == null || this.f1849a.m3701p())) {
q.onMenuOpened(108, c0873h);
}
}
return true;
}
}
C0778k(Context context, Window window, C0145d c0145d) {
super(context, window, c0145d);
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
/* renamed from: a */
private void m3707a(android.support.v7.app.C0778k.C0800d r11, android.view.KeyEvent r12) {
/*
r10 = this;
r1 = -1;
r3 = 0;
r9 = 1;
r2 = -2;
r0 = r11.f1844o;
if (r0 != 0) goto L_0x000e;
L_0x0008:
r0 = r10.m3701p();
if (r0 == 0) goto L_0x000f;
L_0x000e:
return;
L_0x000f:
r0 = r11.f1830a;
if (r0 != 0) goto L_0x0034;
L_0x0013:
r4 = r10.a;
r0 = r4.getResources();
r0 = r0.getConfiguration();
r0 = r0.screenLayout;
r0 = r0 & 15;
r5 = 4;
if (r0 != r5) goto L_0x0048;
L_0x0024:
r0 = r9;
L_0x0025:
r4 = r4.getApplicationInfo();
r4 = r4.targetSdkVersion;
r5 = 11;
if (r4 < r5) goto L_0x004a;
L_0x002f:
r4 = r9;
L_0x0030:
if (r0 == 0) goto L_0x0034;
L_0x0032:
if (r4 != 0) goto L_0x000e;
L_0x0034:
r0 = r10.m3702q();
if (r0 == 0) goto L_0x004c;
L_0x003a:
r4 = r11.f1830a;
r5 = r11.f1839j;
r0 = r0.onMenuOpened(r4, r5);
if (r0 != 0) goto L_0x004c;
L_0x0044:
r10.m3732a(r11, r9);
goto L_0x000e;
L_0x0048:
r0 = r3;
goto L_0x0025;
L_0x004a:
r4 = r3;
goto L_0x0030;
L_0x004c:
r0 = r10.a;
r4 = "window";
r0 = r0.getSystemService(r4);
r8 = r0;
r8 = (android.view.WindowManager) r8;
if (r8 == 0) goto L_0x000e;
L_0x005a:
r0 = r10.m3713b(r11, r12);
if (r0 == 0) goto L_0x000e;
L_0x0060:
r0 = r11.f1836g;
if (r0 == 0) goto L_0x0068;
L_0x0064:
r0 = r11.f1846q;
if (r0 == 0) goto L_0x00f2;
L_0x0068:
r0 = r11.f1836g;
if (r0 != 0) goto L_0x00e0;
L_0x006c:
r0 = r10.m3709a(r11);
if (r0 == 0) goto L_0x000e;
L_0x0072:
r0 = r11.f1836g;
if (r0 == 0) goto L_0x000e;
L_0x0076:
r0 = r10.m3714c(r11);
if (r0 == 0) goto L_0x000e;
L_0x007c:
r0 = r11.m3811a();
if (r0 == 0) goto L_0x000e;
L_0x0082:
r0 = r11.f1837h;
r0 = r0.getLayoutParams();
if (r0 != 0) goto L_0x0104;
L_0x008a:
r0 = new android.view.ViewGroup$LayoutParams;
r0.<init>(r2, r2);
r1 = r0;
L_0x0090:
r0 = r11.f1831b;
r4 = r11.f1836g;
r4.setBackgroundResource(r0);
r0 = r11.f1837h;
r0 = r0.getParent();
if (r0 == 0) goto L_0x00aa;
L_0x009f:
r4 = r0 instanceof android.view.ViewGroup;
if (r4 == 0) goto L_0x00aa;
L_0x00a3:
r0 = (android.view.ViewGroup) r0;
r4 = r11.f1837h;
r0.removeView(r4);
L_0x00aa:
r0 = r11.f1836g;
r4 = r11.f1837h;
r0.addView(r4, r1);
r0 = r11.f1837h;
r0 = r0.hasFocus();
if (r0 != 0) goto L_0x00be;
L_0x00b9:
r0 = r11.f1837h;
r0.requestFocus();
L_0x00be:
r1 = r2;
L_0x00bf:
r11.f1843n = r3;
r0 = new android.view.WindowManager$LayoutParams;
r3 = r11.f1833d;
r4 = r11.f1834e;
r5 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;
r6 = 8519680; // 0x820000 float:1.1938615E-38 double:4.209281E-317;
r7 = -3;
r0.<init>(r1, r2, r3, r4, r5, r6, r7);
r1 = r11.f1832c;
r0.gravity = r1;
r1 = r11.f1835f;
r0.windowAnimations = r1;
r1 = r11.f1836g;
r8.addView(r1, r0);
r11.f1844o = r9;
goto L_0x000e;
L_0x00e0:
r0 = r11.f1846q;
if (r0 == 0) goto L_0x0076;
L_0x00e4:
r0 = r11.f1836g;
r0 = r0.getChildCount();
if (r0 <= 0) goto L_0x0076;
L_0x00ec:
r0 = r11.f1836g;
r0.removeAllViews();
goto L_0x0076;
L_0x00f2:
r0 = r11.f1838i;
if (r0 == 0) goto L_0x0102;
L_0x00f6:
r0 = r11.f1838i;
r0 = r0.getLayoutParams();
if (r0 == 0) goto L_0x0102;
L_0x00fe:
r0 = r0.width;
if (r0 == r1) goto L_0x00bf;
L_0x0102:
r1 = r2;
goto L_0x00bf;
L_0x0104:
r1 = r0;
goto L_0x0090;
*/
throw new UnsupportedOperationException("Method not decompiled: android.support.v7.app.k.a(android.support.v7.app.k$d, android.view.KeyEvent):void");
}
/* renamed from: a */
private void m3708a(C0873h c0873h, boolean z) {
if (this.f1793u == null || !this.f1793u.mo775e() || (as.m2934a(ViewConfiguration.get(this.a)) && !this.f1793u.mo777g())) {
C0800d a = m3723a(0, true);
a.f1846q = true;
m3732a(a, false);
m3707a(a, null);
return;
}
Callback q = m3702q();
if (this.f1793u.mo776f() && z) {
this.f1793u.mo779i();
if (!m3701p()) {
q.onPanelClosed(108, m3723a(0, true).f1839j);
}
} else if (q != null && !m3701p()) {
if (this.f1791r && (this.f1792s & 1) != 0) {
this.b.getDecorView().removeCallbacks(this.f1781H);
this.f1781H.run();
}
C0800d a2 = m3723a(0, true);
if (a2.f1839j != null && !a2.f1847r && q.onPreparePanel(0, a2.f1838i, a2.f1839j)) {
q.onMenuOpened(108, a2.f1839j);
this.f1793u.mo778h();
}
}
}
/* renamed from: a */
private boolean m3709a(C0800d c0800d) {
c0800d.m3809a(m3699n());
c0800d.f1836g = new C0799c(this, c0800d.f1841l);
c0800d.f1832c = 81;
return true;
}
/* renamed from: a */
private boolean m3710a(C0800d c0800d, int i, KeyEvent keyEvent, int i2) {
boolean z = false;
if (!keyEvent.isSystem()) {
if ((c0800d.f1842m || m3713b(c0800d, keyEvent)) && c0800d.f1839j != null) {
z = c0800d.f1839j.performShortcut(i, keyEvent, i2);
}
if (z && (i2 & 1) == 0 && this.f1793u == null) {
m3732a(c0800d, true);
}
}
return z;
}
/* renamed from: a */
private boolean m3711a(ViewParent viewParent) {
if (viewParent == null) {
return false;
}
ViewParent decorView = this.b.getDecorView();
ViewParent viewParent2 = viewParent;
while (viewParent2 != null) {
if (viewParent2 == decorView || !(viewParent2 instanceof View) || ah.m2769I((View) viewParent2)) {
return false;
}
viewParent2 = viewParent2.getParent();
}
return true;
}
/* renamed from: b */
private boolean m3712b(C0800d c0800d) {
Context c0844d;
C0873h c0873h;
Context context = this.a;
if ((c0800d.f1830a == 0 || c0800d.f1830a == 108) && this.f1793u != null) {
TypedValue typedValue = new TypedValue();
Theme theme = context.getTheme();
theme.resolveAttribute(C0738a.actionBarTheme, typedValue, true);
Theme theme2 = null;
if (typedValue.resourceId != 0) {
theme2 = context.getResources().newTheme();
theme2.setTo(theme);
theme2.applyStyle(typedValue.resourceId, true);
theme2.resolveAttribute(C0738a.actionBarWidgetTheme, typedValue, true);
} else {
theme.resolveAttribute(C0738a.actionBarWidgetTheme, typedValue, true);
}
if (typedValue.resourceId != 0) {
if (theme2 == null) {
theme2 = context.getResources().newTheme();
theme2.setTo(theme);
}
theme2.applyStyle(typedValue.resourceId, true);
}
Theme theme3 = theme2;
if (theme3 != null) {
c0844d = new C0844d(context, 0);
c0844d.getTheme().setTo(theme3);
c0873h = new C0873h(c0844d);
c0873h.mo757a((C0777a) this);
c0800d.m3810a(c0873h);
return true;
}
}
c0844d = context;
c0873h = new C0873h(c0844d);
c0873h.mo757a((C0777a) this);
c0800d.m3810a(c0873h);
return true;
}
/* renamed from: b */
private boolean m3713b(C0800d c0800d, KeyEvent keyEvent) {
if (m3701p()) {
return false;
}
if (c0800d.f1842m) {
return true;
}
if (!(this.f1779F == null || this.f1779F == c0800d)) {
m3732a(this.f1779F, false);
}
Callback q = m3702q();
if (q != null) {
c0800d.f1838i = q.onCreatePanelView(c0800d.f1830a);
}
boolean z = c0800d.f1830a == 0 || c0800d.f1830a == 108;
if (z && this.f1793u != null) {
this.f1793u.mo780j();
}
if (c0800d.f1838i == null && !(z && (m3698m() instanceof C0807o))) {
if (c0800d.f1839j == null || c0800d.f1847r) {
if (c0800d.f1839j == null && (!m3712b(c0800d) || c0800d.f1839j == null)) {
return false;
}
if (z && this.f1793u != null) {
if (this.f1794v == null) {
this.f1794v = new C0795a(this);
}
this.f1793u.mo774a(c0800d.f1839j, this.f1794v);
}
c0800d.f1839j.m4250g();
if (q.onCreatePanelMenu(c0800d.f1830a, c0800d.f1839j)) {
c0800d.f1847r = false;
} else {
c0800d.m3810a(null);
if (!z || this.f1793u == null) {
return false;
}
this.f1793u.mo774a(null, this.f1794v);
return false;
}
}
c0800d.f1839j.m4250g();
if (c0800d.f1848s != null) {
c0800d.f1839j.m4235b(c0800d.f1848s);
c0800d.f1848s = null;
}
if (q.onPreparePanel(0, c0800d.f1838i, c0800d.f1839j)) {
c0800d.f1845p = KeyCharacterMap.load(keyEvent != null ? keyEvent.getDeviceId() : -1).getKeyboardType() != 1;
c0800d.f1839j.setQwertyMode(c0800d.f1845p);
c0800d.f1839j.m4251h();
} else {
if (z && this.f1793u != null) {
this.f1793u.mo774a(null, this.f1794v);
}
c0800d.f1839j.m4251h();
return false;
}
}
c0800d.f1842m = true;
c0800d.f1843n = false;
this.f1779F = c0800d;
return true;
}
/* renamed from: c */
private boolean m3714c(C0800d c0800d) {
if (c0800d.f1838i != null) {
c0800d.f1837h = c0800d.f1838i;
return true;
} else if (c0800d.f1839j == null) {
return false;
} else {
if (this.f1795w == null) {
this.f1795w = new C0801e(this);
}
c0800d.f1837h = (View) c0800d.m3808a(this.f1795w);
return c0800d.f1837h != null;
}
}
/* renamed from: d */
private void mo652d(int i) {
this.f1792s |= 1 << i;
if (!this.f1791r) {
ah.m2787a(this.b.getDecorView(), this.f1781H);
this.f1791r = true;
}
}
/* renamed from: d */
private boolean m3716d(int i, KeyEvent keyEvent) {
if (keyEvent.getRepeatCount() == 0) {
C0800d a = m3723a(i, true);
if (!a.f1844o) {
return m3713b(a, keyEvent);
}
}
return false;
}
/* renamed from: e */
private boolean m3717e(int i, KeyEvent keyEvent) {
boolean z = true;
if (this.f1786m != null) {
return false;
}
C0800d a = m3723a(i, true);
if (i != 0 || this.f1793u == null || !this.f1793u.mo775e() || as.m2934a(ViewConfiguration.get(this.a))) {
boolean z2;
if (a.f1844o || a.f1843n) {
z2 = a.f1844o;
m3732a(a, true);
z = z2;
} else {
if (a.f1842m) {
if (a.f1847r) {
a.f1842m = false;
z2 = m3713b(a, keyEvent);
} else {
z2 = true;
}
if (z2) {
m3707a(a, keyEvent);
}
}
z = false;
}
} else if (this.f1793u.mo776f()) {
z = this.f1793u.mo779i();
} else {
if (!m3701p() && m3713b(a, keyEvent)) {
z = this.f1793u.mo778h();
}
z = false;
}
if (z) {
AudioManager audioManager = (AudioManager) this.a.getSystemService(MimeTypes.BASE_TYPE_AUDIO);
if (audioManager != null) {
audioManager.playSoundEffect(0);
} else {
Log.w("AppCompatDelegate", "Couldn't get audio manager");
}
}
return z;
}
/* renamed from: h */
private int m3718h(int i) {
if (i == 8) {
Log.i("AppCompatDelegate", "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR id when requesting this feature.");
return 108;
} else if (i != 9) {
return i;
} else {
Log.i("AppCompatDelegate", "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY id when requesting this feature.");
return 109;
}
}
/* renamed from: w */
private void m3719w() {
if (!this.f1796x) {
this.f1797y = m3720x();
CharSequence r = m3703r();
if (!TextUtils.isEmpty(r)) {
mo643b(r);
}
m3721y();
m3736a(this.f1797y);
this.f1796x = true;
C0800d a = m3723a(0, false);
if (!m3701p()) {
if (a == null || a.f1839j == null) {
mo652d(108);
}
}
}
}
/* renamed from: x */
private ViewGroup m3720x() {
TypedArray obtainStyledAttributes = this.a.obtainStyledAttributes(C0747j.AppCompatTheme);
if (obtainStyledAttributes.hasValue(C0747j.AppCompatTheme_windowActionBar)) {
View view;
if (obtainStyledAttributes.getBoolean(C0747j.AppCompatTheme_windowNoTitle, false)) {
mo645c(1);
} else if (obtainStyledAttributes.getBoolean(C0747j.AppCompatTheme_windowActionBar, false)) {
mo645c(108);
}
if (obtainStyledAttributes.getBoolean(C0747j.AppCompatTheme_windowActionBarOverlay, false)) {
mo645c(109);
}
if (obtainStyledAttributes.getBoolean(C0747j.AppCompatTheme_windowActionModeOverlay, false)) {
mo645c(10);
}
this.k = obtainStyledAttributes.getBoolean(C0747j.AppCompatTheme_android_windowIsFloating, false);
obtainStyledAttributes.recycle();
this.b.getDecorView();
LayoutInflater from = LayoutInflater.from(this.a);
if (this.l) {
View view2 = this.j ? (ViewGroup) from.inflate(C0744g.abc_screen_simple_overlay_action_mode, null) : (ViewGroup) from.inflate(C0744g.abc_screen_simple, null);
if (VERSION.SDK_INT >= 21) {
ah.m2785a(view2, new C07862(this));
view = view2;
} else {
((ak) view2).setOnFitSystemWindowsListener(new C07883(this));
view = view2;
}
} else if (this.k) {
r0 = (ViewGroup) from.inflate(C0744g.abc_dialog_title_material, null);
this.i = false;
this.h = false;
view = r0;
} else if (this.h) {
TypedValue typedValue = new TypedValue();
this.a.getTheme().resolveAttribute(C0738a.actionBarTheme, typedValue, true);
r0 = (ViewGroup) LayoutInflater.from(typedValue.resourceId != 0 ? new C0844d(this.a, typedValue.resourceId) : this.a).inflate(C0744g.abc_screen_toolbar, null);
this.f1793u = (af) r0.findViewById(C0743f.decor_content_parent);
this.f1793u.setWindowCallback(m3702q());
if (this.i) {
this.f1793u.mo773a(109);
}
if (this.f1775B) {
this.f1793u.mo773a(2);
}
if (this.f1776C) {
this.f1793u.mo773a(5);
}
view = r0;
} else {
view = null;
}
if (view == null) {
throw new IllegalArgumentException("AppCompat does not support the current theme features: { windowActionBar: " + this.h + ", windowActionBarOverlay: " + this.i + ", android:windowIsFloating: " + this.k + ", windowActionModeOverlay: " + this.j + ", windowNoTitle: " + this.l + " }");
}
if (this.f1793u == null) {
this.f1798z = (TextView) view.findViewById(C0743f.title);
}
bp.m5748b(view);
ContentFrameLayout contentFrameLayout = (ContentFrameLayout) view.findViewById(C0743f.action_bar_activity_content);
ViewGroup viewGroup = (ViewGroup) this.b.findViewById(16908290);
if (viewGroup != null) {
while (viewGroup.getChildCount() > 0) {
View childAt = viewGroup.getChildAt(0);
viewGroup.removeViewAt(0);
contentFrameLayout.addView(childAt);
}
viewGroup.setId(-1);
contentFrameLayout.setId(16908290);
if (viewGroup instanceof FrameLayout) {
((FrameLayout) viewGroup).setForeground(null);
}
}
this.b.setContentView(view);
contentFrameLayout.setAttachListener(new C07904(this));
return view;
}
obtainStyledAttributes.recycle();
throw new IllegalStateException("You need to use a Theme.AppCompat theme (or descendant) with this activity.");
}
/* renamed from: y */
private void m3721y() {
ContentFrameLayout contentFrameLayout = (ContentFrameLayout) this.f1797y.findViewById(16908290);
View decorView = this.b.getDecorView();
contentFrameLayout.m3805a(decorView.getPaddingLeft(), decorView.getPaddingTop(), decorView.getPaddingRight(), decorView.getPaddingBottom());
TypedArray obtainStyledAttributes = this.a.obtainStyledAttributes(C0747j.AppCompatTheme);
obtainStyledAttributes.getValue(C0747j.AppCompatTheme_windowMinWidthMajor, contentFrameLayout.getMinWidthMajor());
obtainStyledAttributes.getValue(C0747j.AppCompatTheme_windowMinWidthMinor, contentFrameLayout.getMinWidthMinor());
if (obtainStyledAttributes.hasValue(C0747j.AppCompatTheme_windowFixedWidthMajor)) {
obtainStyledAttributes.getValue(C0747j.AppCompatTheme_windowFixedWidthMajor, contentFrameLayout.getFixedWidthMajor());
}
if (obtainStyledAttributes.hasValue(C0747j.AppCompatTheme_windowFixedWidthMinor)) {
obtainStyledAttributes.getValue(C0747j.AppCompatTheme_windowFixedWidthMinor, contentFrameLayout.getFixedWidthMinor());
}
if (obtainStyledAttributes.hasValue(C0747j.AppCompatTheme_windowFixedHeightMajor)) {
obtainStyledAttributes.getValue(C0747j.AppCompatTheme_windowFixedHeightMajor, contentFrameLayout.getFixedHeightMajor());
}
if (obtainStyledAttributes.hasValue(C0747j.AppCompatTheme_windowFixedHeightMinor)) {
obtainStyledAttributes.getValue(C0747j.AppCompatTheme_windowFixedHeightMinor, contentFrameLayout.getFixedHeightMinor());
}
obtainStyledAttributes.recycle();
contentFrameLayout.requestLayout();
}
/* renamed from: z */
private void m3722z() {
if (this.f1796x) {
throw new AndroidRuntimeException("Window feature must be requested before adding content");
}
}
/* renamed from: a */
protected C0800d m3723a(int i, boolean z) {
Object obj = this.f1778E;
if (obj == null || obj.length <= i) {
Object obj2 = new C0800d[(i + 1)];
if (obj != null) {
System.arraycopy(obj, 0, obj2, 0, obj.length);
}
this.f1778E = obj2;
obj = obj2;
}
C0800d c0800d = obj[i];
if (c0800d != null) {
return c0800d;
}
c0800d = new C0800d(i);
obj[i] = c0800d;
return c0800d;
}
/* renamed from: a */
C0800d m3724a(Menu menu) {
C0800d[] c0800dArr = this.f1778E;
int length = c0800dArr != null ? c0800dArr.length : 0;
for (int i = 0; i < length; i++) {
C0800d c0800d = c0800dArr[i];
if (c0800d != null && c0800d.f1839j == menu) {
return c0800d;
}
}
return null;
}
/* renamed from: a */
C0814b mo629a(C0797a c0797a) {
C0814b c0814b;
m3762t();
if (this.f1786m != null) {
this.f1786m.mo687c();
}
if (!(c0797a instanceof C0798b)) {
c0797a = new C0798b(this, c0797a);
}
if (this.e == null || m3701p()) {
c0814b = null;
} else {
try {
c0814b = this.e.mo133a(c0797a);
} catch (AbstractMethodError e) {
c0814b = null;
}
}
if (c0814b != null) {
this.f1786m = c0814b;
} else {
if (this.f1787n == null) {
if (this.k) {
Context c0844d;
TypedValue typedValue = new TypedValue();
Theme theme = this.a.getTheme();
theme.resolveAttribute(C0738a.actionBarTheme, typedValue, true);
if (typedValue.resourceId != 0) {
Theme newTheme = this.a.getResources().newTheme();
newTheme.setTo(theme);
newTheme.applyStyle(typedValue.resourceId, true);
c0844d = new C0844d(this.a, 0);
c0844d.getTheme().setTo(newTheme);
} else {
c0844d = this.a;
}
this.f1787n = new ActionBarContextView(c0844d);
this.f1788o = new PopupWindow(c0844d, null, C0738a.actionModePopupWindowStyle);
C0724s.m3532a(this.f1788o, 2);
this.f1788o.setContentView(this.f1787n);
this.f1788o.setWidth(-1);
c0844d.getTheme().resolveAttribute(C0738a.actionBarSize, typedValue, true);
this.f1787n.setContentHeight(TypedValue.complexToDimensionPixelSize(typedValue.data, c0844d.getResources().getDisplayMetrics()));
this.f1788o.setHeight(-2);
this.f1789p = new C07925(this);
} else {
ViewStubCompat viewStubCompat = (ViewStubCompat) this.f1797y.findViewById(C0743f.action_mode_bar_stub);
if (viewStubCompat != null) {
viewStubCompat.setLayoutInflater(LayoutInflater.from(m3699n()));
this.f1787n = (ActionBarContextView) viewStubCompat.m5206a();
}
}
}
if (this.f1787n != null) {
m3762t();
this.f1787n.m4369c();
C0814b c0845e = new C0845e(this.f1787n.getContext(), this.f1787n, c0797a, this.f1788o == null);
if (c0797a.mo660a(c0845e, c0845e.mo684b())) {
c0845e.mo688d();
this.f1787n.m4366a(c0845e);
this.f1786m = c0845e;
if (m3761s()) {
ah.m2800c(this.f1787n, (float) BitmapDescriptorFactory.HUE_RED);
this.f1790q = ah.m2827q(this.f1787n).m3020a(1.0f);
this.f1790q.m3022a(new C07936(this));
} else {
ah.m2800c(this.f1787n, 1.0f);
this.f1787n.setVisibility(0);
this.f1787n.sendAccessibilityEvent(32);
if (this.f1787n.getParent() instanceof View) {
ah.m2834x((View) this.f1787n.getParent());
}
}
if (this.f1788o != null) {
this.b.getDecorView().post(this.f1789p);
}
} else {
this.f1786m = null;
}
}
}
if (!(this.f1786m == null || this.e == null)) {
this.e.mo134a(this.f1786m);
}
return this.f1786m;
}
/* renamed from: a */
public View mo630a(int i) {
m3719w();
return this.b.findViewById(i);
}
/* renamed from: a */
public final View mo285a(View view, String str, Context context, AttributeSet attributeSet) {
View b = mo650b(view, str, context, attributeSet);
return b != null ? b : m3749c(view, str, context, attributeSet);
}
/* renamed from: a */
void m3728a(int i, C0800d c0800d, Menu menu) {
if (menu == null) {
if (c0800d == null && i >= 0 && i < this.f1778E.length) {
c0800d = this.f1778E[i];
}
if (c0800d != null) {
menu = c0800d.f1839j;
}
}
if ((c0800d == null || c0800d.f1844o) && !m3701p()) {
this.c.onPanelClosed(i, menu);
}
}
/* renamed from: a */
void mo631a(int i, Menu menu) {
if (i == 108) {
C0765a a = mo618a();
if (a != null) {
a.mo673e(false);
}
} else if (i == 0) {
C0800d a2 = m3723a(i, true);
if (a2.f1844o) {
m3732a(a2, false);
}
}
}
/* renamed from: a */
public void mo632a(Configuration configuration) {
if (this.h && this.f1796x) {
C0765a a = mo618a();
if (a != null) {
a.mo665a(configuration);
}
}
C1069l.m5865a().m5886a(this.a);
mo625i();
}
/* renamed from: a */
public void mo633a(Bundle bundle) {
if ((this.c instanceof Activity) && ag.m1191b((Activity) this.c) != null) {
C0765a m = m3698m();
if (m == null) {
this.f1782I = true;
} else {
m.mo671c(true);
}
}
}
/* renamed from: a */
void m3732a(C0800d c0800d, boolean z) {
if (z && c0800d.f1830a == 0 && this.f1793u != null && this.f1793u.mo776f()) {
m3744b(c0800d.f1839j);
return;
}
WindowManager windowManager = (WindowManager) this.a.getSystemService("window");
if (!(windowManager == null || !c0800d.f1844o || c0800d.f1836g == null)) {
windowManager.removeView(c0800d.f1836g);
if (z) {
m3728a(c0800d.f1830a, c0800d, null);
}
}
c0800d.f1842m = false;
c0800d.f1843n = false;
c0800d.f1844o = false;
c0800d.f1837h = null;
c0800d.f1846q = true;
if (this.f1779F == c0800d) {
this.f1779F = null;
}
}
/* renamed from: a */
public void mo634a(C0873h c0873h) {
m3708a(c0873h, true);
}
/* renamed from: a */
public void mo635a(View view) {
m3719w();
ViewGroup viewGroup = (ViewGroup) this.f1797y.findViewById(16908290);
viewGroup.removeAllViews();
viewGroup.addView(view);
this.c.onContentChanged();
}
/* renamed from: a */
public void mo636a(View view, LayoutParams layoutParams) {
m3719w();
ViewGroup viewGroup = (ViewGroup) this.f1797y.findViewById(16908290);
viewGroup.removeAllViews();
viewGroup.addView(view, layoutParams);
this.c.onContentChanged();
}
/* renamed from: a */
void m3736a(ViewGroup viewGroup) {
}
/* renamed from: a */
boolean mo637a(int i, KeyEvent keyEvent) {
C0765a a = mo618a();
if (a != null && a.mo668a(i, keyEvent)) {
return true;
}
if (this.f1779F == null || !m3710a(this.f1779F, keyEvent.getKeyCode(), keyEvent, 1)) {
if (this.f1779F == null) {
C0800d a2 = m3723a(0, true);
m3713b(a2, keyEvent);
boolean a3 = m3710a(a2, keyEvent.getKeyCode(), keyEvent, 1);
a2.f1842m = false;
if (a3) {
return true;
}
}
return false;
} else if (this.f1779F == null) {
return true;
} else {
this.f1779F.f1843n = true;
return true;
}
}
/* renamed from: a */
public boolean mo638a(C0873h c0873h, MenuItem menuItem) {
Callback q = m3702q();
if (!(q == null || m3701p())) {
C0800d a = m3724a(c0873h.mo763p());
if (a != null) {
return q.onMenuItemSelected(a.f1830a, menuItem);
}
}
return false;
}
/* renamed from: a */
boolean mo639a(KeyEvent keyEvent) {
boolean z = true;
if (keyEvent.getKeyCode() == 82 && this.c.dispatchKeyEvent(keyEvent)) {
return true;
}
int keyCode = keyEvent.getKeyCode();
if (keyEvent.getAction() != 0) {
z = false;
}
return z ? m3751c(keyCode, keyEvent) : m3747b(keyCode, keyEvent);
}
/* renamed from: b */
public C0814b m3740b(C0797a c0797a) {
if (c0797a == null) {
throw new IllegalArgumentException("ActionMode callback can not be null.");
}
if (this.f1786m != null) {
this.f1786m.mo687c();
}
C0797a c0798b = new C0798b(this, c0797a);
C0765a a = mo618a();
if (a != null) {
this.f1786m = a.mo693a(c0798b);
if (!(this.f1786m == null || this.e == null)) {
this.e.mo134a(this.f1786m);
}
}
if (this.f1786m == null) {
this.f1786m = mo629a(c0798b);
}
return this.f1786m;
}
/* renamed from: b */
View mo650b(View view, String str, Context context, AttributeSet attributeSet) {
if (this.c instanceof Factory) {
View onCreateView = ((Factory) this.c).onCreateView(str, context, attributeSet);
if (onCreateView != null) {
return onCreateView;
}
}
return null;
}
/* renamed from: b */
public void mo640b(int i) {
m3719w();
ViewGroup viewGroup = (ViewGroup) this.f1797y.findViewById(16908290);
viewGroup.removeAllViews();
LayoutInflater.from(this.a).inflate(i, viewGroup);
this.c.onContentChanged();
}
/* renamed from: b */
public void mo641b(Bundle bundle) {
m3719w();
}
/* renamed from: b */
void m3744b(C0873h c0873h) {
if (!this.f1777D) {
this.f1777D = true;
this.f1793u.mo781k();
Callback q = m3702q();
if (!(q == null || m3701p())) {
q.onPanelClosed(108, c0873h);
}
this.f1777D = false;
}
}
/* renamed from: b */
public void mo642b(View view, LayoutParams layoutParams) {
m3719w();
((ViewGroup) this.f1797y.findViewById(16908290)).addView(view, layoutParams);
this.c.onContentChanged();
}
/* renamed from: b */
void mo643b(CharSequence charSequence) {
if (this.f1793u != null) {
this.f1793u.setWindowTitle(charSequence);
} else if (m3698m() != null) {
m3698m().mo666a(charSequence);
} else if (this.f1798z != null) {
this.f1798z.setText(charSequence);
}
}
/* renamed from: b */
boolean m3747b(int i, KeyEvent keyEvent) {
switch (i) {
case 4:
boolean z = this.f1780G;
this.f1780G = false;
C0800d a = m3723a(0, false);
if (a == null || !a.f1844o) {
if (m3763u()) {
return true;
}
} else if (z) {
return true;
} else {
m3732a(a, true);
return true;
}
break;
case 82:
m3717e(0, keyEvent);
return true;
}
return false;
}
/* renamed from: b */
boolean mo644b(int i, Menu menu) {
if (i != 108) {
return false;
}
C0765a a = mo618a();
if (a == null) {
return true;
}
a.mo673e(true);
return true;
}
/* renamed from: c */
public View m3749c(View view, String str, Context context, AttributeSet attributeSet) {
boolean z;
if (this.f1785L == null) {
this.f1785L = new C0803m();
}
if (f1773t) {
boolean a = attributeSet instanceof XmlPullParser ? ((XmlPullParser) attributeSet).getDepth() > 1 : m3711a((ViewParent) view);
z = a;
} else {
z = false;
}
return this.f1785L.m3819a(view, str, context, attributeSet, z, f1773t, true, bm.m5716a());
}
/* renamed from: c */
public boolean mo645c(int i) {
int h = m3718h(i);
if (this.l && h == 108) {
return false;
}
if (this.h && h == 1) {
this.h = false;
}
switch (h) {
case 1:
m3722z();
this.l = true;
return true;
case 2:
m3722z();
this.f1775B = true;
return true;
case 5:
m3722z();
this.f1776C = true;
return true;
case 10:
m3722z();
this.j = true;
return true;
case 108:
m3722z();
this.h = true;
return true;
case 109:
m3722z();
this.i = true;
return true;
default:
return this.b.requestFeature(h);
}
}
/* renamed from: c */
boolean m3751c(int i, KeyEvent keyEvent) {
boolean z = true;
switch (i) {
case 4:
if ((keyEvent.getFlags() & 128) == 0) {
z = false;
}
this.f1780G = z;
break;
case 82:
m3716d(0, keyEvent);
return true;
}
if (VERSION.SDK_INT < 11) {
mo637a(i, keyEvent);
}
return false;
}
/* renamed from: d */
public void mo623d() {
C0765a a = mo618a();
if (a != null) {
a.mo672d(false);
}
}
/* renamed from: e */
public void mo646e() {
C0765a a = mo618a();
if (a != null) {
a.mo672d(true);
}
}
/* renamed from: e */
void m3754e(int i) {
m3732a(m3723a(i, true), true);
}
/* renamed from: f */
public void mo647f() {
C0765a a = mo618a();
if (a == null || !a.mo674e()) {
mo652d(0);
}
}
/* renamed from: f */
void m3756f(int i) {
C0800d a = m3723a(i, true);
if (a.f1839j != null) {
Bundle bundle = new Bundle();
a.f1839j.m4223a(bundle);
if (bundle.size() > 0) {
a.f1848s = bundle;
}
a.f1839j.m4250g();
a.f1839j.clear();
}
a.f1847r = true;
a.f1846q = true;
if ((i == 108 || i == 0) && this.f1793u != null) {
a = m3723a(0, false);
if (a != null) {
a.f1842m = false;
m3713b(a, null);
}
}
}
/* renamed from: g */
int m3757g(int i) {
int i2;
int i3 = 1;
int i4 = 0;
if (this.f1787n == null || !(this.f1787n.getLayoutParams() instanceof MarginLayoutParams)) {
i2 = 0;
} else {
int i5;
MarginLayoutParams marginLayoutParams = (MarginLayoutParams) this.f1787n.getLayoutParams();
if (this.f1787n.isShown()) {
if (this.f1783J == null) {
this.f1783J = new Rect();
this.f1784K = new Rect();
}
Rect rect = this.f1783J;
Rect rect2 = this.f1784K;
rect.set(0, i, 0, 0);
bp.m5746a(this.f1797y, rect, rect2);
if (marginLayoutParams.topMargin != (rect2.top == 0 ? i : 0)) {
marginLayoutParams.topMargin = i;
if (this.f1774A == null) {
this.f1774A = new View(this.a);
this.f1774A.setBackgroundColor(this.a.getResources().getColor(C0740c.abc_input_method_navigation_guard));
this.f1797y.addView(this.f1774A, -1, new LayoutParams(-1, i));
i5 = 1;
} else {
LayoutParams layoutParams = this.f1774A.getLayoutParams();
if (layoutParams.height != i) {
layoutParams.height = i;
this.f1774A.setLayoutParams(layoutParams);
}
i5 = 1;
}
} else {
i5 = 0;
}
if (this.f1774A == null) {
i3 = 0;
}
if (!(this.j || i3 == 0)) {
i = 0;
}
int i6 = i5;
i5 = i3;
i3 = i6;
} else if (marginLayoutParams.topMargin != 0) {
marginLayoutParams.topMargin = 0;
i5 = 0;
} else {
i3 = 0;
i5 = 0;
}
if (i3 != 0) {
this.f1787n.setLayoutParams(marginLayoutParams);
}
i2 = i5;
}
if (this.f1774A != null) {
View view = this.f1774A;
if (i2 == 0) {
i4 = 8;
}
view.setVisibility(i4);
}
return i;
}
/* renamed from: g */
public void mo624g() {
if (this.f1791r) {
this.b.getDecorView().removeCallbacks(this.f1781H);
}
super.mo624g();
if (this.f != null) {
this.f.mo677h();
}
}
/* renamed from: h */
public void mo648h() {
LayoutInflater from = LayoutInflater.from(this.a);
if (from.getFactory() == null) {
C0636j.m3150a(from, this);
} else if (!(C0636j.m3149a(from) instanceof C0778k)) {
Log.i("AppCompatDelegate", "The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's");
}
}
/* renamed from: l */
public void mo649l() {
m3719w();
if (this.h && this.f == null) {
if (this.c instanceof Activity) {
this.f = new C0817r((Activity) this.c, this.i);
} else if (this.c instanceof Dialog) {
this.f = new C0817r((Dialog) this.c);
}
if (this.f != null) {
this.f.mo671c(this.f1782I);
}
}
}
/* renamed from: s */
final boolean m3761s() {
return this.f1796x && this.f1797y != null && ah.m2767G(this.f1797y);
}
/* renamed from: t */
void m3762t() {
if (this.f1790q != null) {
this.f1790q.m3027b();
}
}
/* renamed from: u */
boolean m3763u() {
if (this.f1786m != null) {
this.f1786m.mo687c();
return true;
}
C0765a a = mo618a();
return a != null && a.mo675f();
}
/* renamed from: v */
void m3764v() {
if (this.f1793u != null) {
this.f1793u.mo781k();
}
if (this.f1788o != null) {
this.b.getDecorView().removeCallbacks(this.f1789p);
if (this.f1788o.isShowing()) {
try {
this.f1788o.dismiss();
} catch (IllegalArgumentException e) {
}
}
this.f1788o = null;
}
m3762t();
C0800d a = m3723a(0, false);
if (a != null && a.f1839j != null) {
a.f1839j.close();
}
}
}
| [
"alireza.ebrahimi2006@gmail.com"
] | alireza.ebrahimi2006@gmail.com |
78f94affbbc7b8445562aa17afad71d182f16546 | 9efd585a498757f1ffb6b382a0cb6892875839a7 | /src.richousrick.cpmerge/merge/MergeGroup.java | b708fb865eb733a6df7b1796e1aea8c8be5c3aba | [] | no_license | richousrick/CPMerge | 637ea33d9f832035104bb4747a40709afb9e1947 | 158f8c2a8db04df8c43159f72faba37f008c4df8 | refs/heads/master | 2021-03-30T17:10:43.159158 | 2018-10-05T16:23:13 | 2018-10-05T16:23:13 | 110,391,548 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,745 | java | package merge;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import dif.ASTNode;
import parse.PluginInterface;
/**
* Handles the merging of multiple nodes in a group of related functions into a single AST representing the merged function
* @author Rikkey Paal
*/
@SuppressWarnings("rawtypes")
public class MergeGroup {
private final ArrayList<List<int[]>> functionMapping;
final ArrayList<ASTNode<?>> functions;
private final PluginInterface<?> plugin;
private final int ID;
/**s
* Initializes the MergeGroup class
* TODO Annotate constructor
* @param sharedTree
* @param mergeCandidates
*/
public MergeGroup(ArrayList<ASTNode<?>> functions, ArrayList<List<int[]>> functionMapping,
PluginInterface<?> plugin, int ID) {
this.functionMapping =functionMapping;
this.functions = functions;
this.plugin = plugin;
this.ID = ID;
}
public ArrayList<ASTNode<?>> getFunctions() {
return functions;
}
/**
* Retrieves the root nodes of subtrees that are unique to each function.
* function 1 is also converted into a tree containing the shared nodes.
*
* @param function1
* the smaller function to get the merge candidates out of. Also
* all unique nodes will be removed.
* @param function2
* the larger function to get the merge candidates from.
* @param Mapping
* between the two
* @return an array containing the roots of the unique subtrees.
*/
// private ArrayList<ClassNode>[] getMergeCandidates(ArrayList<ClassNode>
// functions) {
//
//
//
// }
private List<int[]> getRelationship(int f1Pos, int f2Pos) {
if (f1Pos == f2Pos)
throw new IllegalArgumentException("Cannot reference mapping to self");
int pos = 0;
int len = functions.size();
if (f1Pos > f2Pos) {
for (int i = 0; i < f2Pos; i++) {
pos += len;
len--;
}
} else {
for (int i = 0; i < f1Pos; i++) {
pos += len;
len--;
}
}
return functionMapping.get(pos);
}
public String printSharedCode() {
return "";// s;
}
public MergedFunction buildMergeFunction() {
HashMap<List<Integer>, UniqueSet> uniqueSets = getMinimalUniqueSets();
ClassNodeSkeleton root = null;
ArrayList<Integer> sharedId = new ArrayList<>();
for (int i = 0; i < functions.size(); i++) {
sharedId.add(i);
}
// order root nodes children
for (ClassNodeSkeleton n : uniqueSets.get(sharedId).setMembers) {
if (n.getParent() == null) {
if(root!=null){
System.err.println("root twice");
System.exit(-1);
}
root = n;
}
}
root.orderChildren();
// go up on each set to blockstatemetn ancestor
plugin.preMerge(root);
//
// // Debug info
// for (List<Integer> li : uniqueSets.keySet()) {
// System.out.println("\tU"+Arrays.toString(li.toArray()));
// for (ClassNodeSkeleton n : uniqueSets.get(li).setMembers) {
// System.out.println("\t\t" + n.toString().replaceAll("\n", "\n\t\t"));
// }
// }
// remove the shared nodes
UniqueSet complete = uniqueSets.remove(sharedId);
HashMap<IntermdiateAST, ArrayList<ClassNodeSkeleton>> sisterNodes = groupByParent(uniqueSets);
// group nodes sharing the same position
// [parentID][groupID][groupMemberID]
ArrayList<ArrayList<ArrayList<ClassNodeSkeleton>>> shareSisterList = new ArrayList<>();
for (ArrayList<ClassNodeSkeleton> sisterList : sisterNodes.values()) {
Collections.sort(sisterList);
shareSisterList.add(groupByPosition(sisterList));
}
// [groupID][memberSetID][memberPos]
ArrayList<ArrayList<ArrayList<ClassNodeSkeleton>>> shareSisterGroups = new ArrayList<>();
// optimise result by reducing number of merge groups
// i.e. example group b2 and n
// TODO add at end of above section
for (ArrayList<ArrayList<ClassNodeSkeleton>> sisterGroup : shareSisterList) {
shareSisterGroups.addAll(joinAdjacentGroups(sisterGroup));
}
// iterate over all groups converting them to mergeGroups
for(ArrayList<ArrayList<ClassNodeSkeleton>> currMergeGroup: shareSisterGroups){
HashMap<UniqueSet, ArrayList<ClassNodeSkeleton>> mergeOptions = new HashMap<>();
for(ArrayList<ClassNodeSkeleton> groupOption : currMergeGroup){
mergeOptions.put(groupOption.get(0).set, groupOption);
}
new MergePoint(mergeOptions, MergeGroup.this);
}
root.setUniqueSetR(complete);
return new MergedFunction(functions, root, ID);
}
/**
* Joins neighbouring groups that are subsets of each other.<br>
* Two groups x, y are combined if their unique sets follow x ⊆ y or x
* ⊃ y.<br>
* This is done to stop cases of conditionals checking for the same
* functions following each other.
* e.g.
*
* <pre>
* ...
* if(fID == 4){
* statement 1
* }
* if (fID == 4{
* statement 2
* }
* ...
* </pre>
*
* changes to
*
* <pre>
* ...
* if(fID == 4){
* statement 1
* statement 2
* }
* ...
* </pre>
*
* creates a 3D list [groupPos][uniqueSetID][statementPos].<br>
* groupPos : relative position of the group.<br>
* uniqueSetID : position of unique set in that group.<br>
* statementPos : position of the statement in the unique set.
*
* @param sisterGroup
* group of sister nodes {@link #groupByPosition(ArrayList)
* grouped by position}
* @return 3D list of {@link ClassNodeSkeleton}'s referenced
* [groupPos][uniqueSetID][statementPos]
*/
private ArrayList<ArrayList<ArrayList<ClassNodeSkeleton>>> joinAdjacentGroups(
ArrayList<ArrayList<ClassNodeSkeleton>> sisterGroup) {
// completed list of adjacent groups
ArrayList<ArrayList<ArrayList<ClassNodeSkeleton>>> shareSisterGroups = new ArrayList<>();
// current list of adjacent groups
ArrayList<ArrayList<ClassNodeSkeleton>> adjacentGroup = new ArrayList<>();
for (ClassNodeSkeleton cns : sisterGroup.get(0)) {
adjacentGroup.add(new ArrayList<>(Arrays.asList(cns)));
}
// unique sets of each group in adjacent set
ArrayList<UniqueSet> adjacentGroupSet = getSets(sisterGroup.get(0));
for (int sisterGroupIterator = 1; sisterGroupIterator < sisterGroup.size(); sisterGroupIterator++) {
//
ArrayList<ClassNodeSkeleton> currentGroup = sisterGroup.get(sisterGroupIterator);
// Unique sets of the current group to check
ArrayList<UniqueSet> currSisterGroupSet = getSets(currentGroup);
// Compare sets
switch (compareGroups(adjacentGroupSet, currSisterGroupSet)) {
case -1:
// Adjacent subset of current
// copy current int adjacent, inserting new unique sets
// go over every element in adjacentgroup
// for (int adjacentMemberIterator = 0;
// adjacentMemberIterator < adjacentGroup
// .size(); adjacentMemberIterator++) {
// int currMemberPos = currSisterGroupSet
// .indexOf(adjacentGroupSet.get(adjacentMemberIterator));
// if (currMemberPos > -1) {
// adjacentGroup.get(adjacentMemberIterator)
// .add(sisterGroup.get(sisterGroupIterator).get(currMemberPos));
// }else {
// ArrayList<ClassNodeSkeleton> newList = new ArrayList<>();
// newList.add(sisterGroup.get(sisterGroupIterator).get(currMemberPos));
// adjacentGroup.add(newList);
// adjacentGroupSet.add(currSisterGroupSet.get(index))
// }
// }
// iterate through sets in current group
for (int currentMemberIterator = 0; currentMemberIterator < currentGroup
.size(); currentMemberIterator++) {
// index of current set in adjacent group
int adjacentIndex = adjacentGroupSet.indexOf(currSisterGroupSet.get(currentMemberIterator));
if (adjacentIndex != -1) {
// append current element to correct set in adjacent
// set
adjacentGroup.get(adjacentIndex).add(currentGroup.get(currentMemberIterator));
} else {
// create a new entry in adjacent group and set to
// correspond with the new element
ArrayList<ClassNodeSkeleton> newList = new ArrayList<>();
newList.add(sisterGroup.get(sisterGroupIterator).get(currentMemberIterator));
adjacentGroup.add(newList);
adjacentGroupSet.add(currSisterGroupSet.get(currentMemberIterator));
}
}
break;
case 0:
// Adjacent equals current
// copy current int adjacent
// for (int adjacentMemberIterator = 0;
// adjacentMemberIterator < adjacentGroup
// .size(); adjacentMemberIterator++) {
// int currMemberPos = currSisterGroupSet
// .indexOf(adjacentGroupSet.get(adjacentMemberIterator));
// adjacentGroup.get(adjacentMemberIterator)
// .add(sisterGroup.get(sisterGroupIterator).get(currMemberPos));
// }
case 1:
// Current subset of adjacent
// copy current int adjacent
/*
* for (int adjacentMemberIterator = 0;
* adjacentMemberIterator < adjacentGroup
* .size(); adjacentMemberIterator++) {
* int currMemberPos = currSisterGroupSet
* .indexOf(adjacentGroupSet.get(adjacentMemberIterator));
* if (currMemberPos > -1) {
* adjacentGroup.get(adjacentMemberIterator)
* .add(sisterGroup.get(sisterGroupIterator).get(
* currMemberPos));
* }else {
* throw new
* UnexpectedException("node should be contained in adjacent group"
* );
* }
* }
*/
// iterate through sets in current group
for (int currentMemberIterator = 0; currentMemberIterator < currentGroup
.size(); currentMemberIterator++) {
// index of current set in adjacent group
int adjacentIndex = adjacentGroupSet.indexOf(currSisterGroupSet.get(currentMemberIterator));
// append current element to correct set in adjacent set
adjacentGroup.get(adjacentIndex).add(currentGroup.get(currentMemberIterator));
}
break;
case 2:
// save last group
// set lastGroup to currGroup
shareSisterGroups.add(adjacentGroup);
adjacentGroup = new ArrayList<>();
for (ClassNodeSkeleton cns : sisterGroup.get(sisterGroupIterator)) {
adjacentGroup.add(new ArrayList<>(Arrays.asList(cns)));
}
break;
}
// if same, merge groups
}
shareSisterGroups.add(adjacentGroup);
return shareSisterGroups;
}
/**
* Groups nodes by their relative position.
* The nodes are grouped [position][candidates].
* They are ordered, such that the nodes (candidates) in position n should
* appear before nodes in position n+1, and after those in position n-1.
* Note, not all nodes in group n must appear before the nodes in the
* adjacent groups. However at least one node x in group n but appear before
* a node in group n+1, And node y (which may be the same node as x) must
* appear after a node in group n-1.
*
* @param sisterList
* list of nodes that share the same parent.
* @return A 2d list of {@link ClassNodeSkeleton ClassNodeSkeleton's}
* representing the positioning of the nodes.
*/
private ArrayList<ArrayList<ClassNodeSkeleton>> groupByPosition(ArrayList<ClassNodeSkeleton> sisterList) {
ArrayList<ArrayList<ClassNodeSkeleton>> sisterGroups = new ArrayList<>();
ArrayList<ClassNodeSkeleton> shareSisterNodes = new ArrayList<>();
shareSisterNodes.add(sisterList.get(0));
for (int i = 1; i < sisterList.size(); i++) {
boolean equal = true;
int comp = 0;
ClassNodeSkeleton n = sisterList.get(i);
// Compare node n with all nodes in the group
while (equal && comp < shareSisterNodes.size()) {
if (n.compareTo(shareSisterNodes.get(comp)) != 0) {
equal = false;
}
comp++;
}
// if the node shares the same position as all nodes in the group
// append the node to the group
// otherwise, save the current group, set the current group to
// contain only the node
if (equal) {
shareSisterNodes.add(n);
} else {
sisterGroups.add(shareSisterNodes);
shareSisterNodes = new ArrayList<>();
shareSisterNodes.add(n);
}
}
sisterGroups.add(shareSisterNodes);
return sisterGroups;
}
/**
* Group nodes sharing the same parent
*
* @param uniqueSets
* to group by parent
* @return A HashMap storing the nodes in the Unique set indexed by their
* parent
*/
private HashMap<IntermdiateAST, ArrayList<ClassNodeSkeleton>> groupByParent(
HashMap<List<Integer>, UniqueSet> uniqueSets) {
HashMap<IntermdiateAST, ArrayList<ClassNodeSkeleton>> sisterNodes = new HashMap<>();
for (List<Integer> li : uniqueSets.keySet()) {
for (ClassNodeSkeleton n : uniqueSets.get(li).setMembers) {
if (!sisterNodes.containsKey(n.getParent())) {
sisterNodes.put(n.getParent(), new ArrayList<>());
}
sisterNodes.get(n.getParent()).add(n);
}
}
return sisterNodes;
}
private ArrayList<UniqueSet> getSets(ArrayList<ClassNodeSkeleton> cnsList) {
ArrayList<UniqueSet> retList = new ArrayList<>();
for (ClassNodeSkeleton cns : cnsList) {
retList.add(cns.set);
}
return retList;
}
/**
* -1: g2 contains g1<br>
* 0: g1 and g2 share same sets <br>
* 1: g1 contains g2 <br>
* 2: otherwise <br>
* TODO Annotate method
* @param g1
* @param g2
* @return
*/
private int compareGroups(ArrayList<UniqueSet> g1, ArrayList<UniqueSet> g2) {
if(g1.size()==g2.size()) {
for (UniqueSet u : g2) {
if (!g1.contains(u))
return 2;
}
return 0;
}else if(g1.size()>g2.size()) {
for (UniqueSet u : g2) {
if (!g1.contains(u))
return 2;
}
return 1;
}else {
for (UniqueSet u : g1) {
if (!g2.contains(u))
return 2;
}
return -1;
}
}
/**
* Gets the minimal unique sets.<br>
* Each entry maps the Function id's of the unique set and the nodes that
* are part of it.
* The nodes mapped are the roots of all subtrees in the unique set.
*
* @return the minimal unique sets
*/
private HashMap<List<Integer>, UniqueSet> getMinimalUniqueSets() {
// for each node in each mapping
// generate list of nodes that are shared
/*
* i.e.
* [[3, 3], [0, 2], [2, 0], [4, 4], [1, 1], [5, 5], [6, 6]]
* [[2, 2], [0, 3], [3, 0], [4, 4], [1, 1], [5, 5], [6, 6]]
* [[0, 2], [0, 3], [2, 0], [3, 0], [4, 4], [1, 1], [5, 5], [6, 6]]
* A : 1[3] = 2[3] = 3[3]
* B: 2[2]
* c: 1[2] = 3[2]
* D: 1[4] = 2[4] = 3[4]
* E: 1[1] = 2[1] = 3[1]
* F: 1[5] = 2[5] = 3[5]
* G: 1[6] = 2[6] = 3[6]
* H: 3[3]
* U(1,2,3) = A,D,E,F,G
* U(1) =
* U(2) = B
* U(3) = H
* U(1,2) =
* U(1,3) = C
* U(2,3) =
* where A, B,C, etc. are pointers to a single node
* then
* remove empty lists
* possibly: remove child elements from lists
*/
// Convert mappings list to adjacency list
MultiMapping m = new MultiMapping(functions.size());
int a = 0;
int b = 1;
for (List<int[]> mapping : functionMapping) {
for (int[] map : mapping) {
if (map[0] == 0) {
m.addMapping(b, map[1]);
} else if (map[1] == 0) {
m.addMapping(a, map[0]);
} else {
m.addMapping(a, b, map[0], map[1]);
}
}
b++;
if (b == functions.size()) {
a++;
b = a + 1;
}
}
//
HashMap<List<Integer>, UniqueSet> retMap = new HashMap<>();
// Gen tree
m.buildMappingSkeliton();
// Get only root nodes of unique sets
for (Entry<List<Integer>, ArrayList<Mapping>> e : m.getUniqueSets().entrySet()) {
// generate list of functions in group
ArrayList<ClassNodeSkeleton> nodes = new ArrayList<>();
for (Mapping mtmp : e.getValue()) {
nodes.add(mtmp.getNode());
}
// select only root node of subtrees
ArrayList<ClassNodeSkeleton> minimalMapping = new ArrayList<>();
for (ClassNodeSkeleton c : nodes) {
if (!nodes.contains(c.getParent())) {
minimalMapping.add(c.getMapping().getNode());
}
}
retMap.put(e.getKey(),
new UniqueSet(e.getKey(), minimalMapping.toArray(new ClassNodeSkeleton[minimalMapping.size()])));
}
return retMap;
}
/**
*TODO annotate class
* @author Rikkey Paal
*/
class MultiMapping {
ASTNode<?> c;
ArrayList<Mapping> mappingList = new ArrayList<>();
/**
* mappings.get(x).get(y) returns mapping for node of function x post
* order position y
*/
ArrayList<HashMap<Integer, Mapping>> mappings = new ArrayList<>();
Mapping root;
/**
* Initializes the MergeGroup.MultiMaping class
* @param size number of functions that will be in the
*/
public MultiMapping(int size) {
for (int i = 0; i < size; i++) {
mappings.add(new HashMap<>());
}
}
/**
*
* TODO Annotate method
* Note must be added in order of functions.
* i.e.
* mappings (f1,a),(f2,b),(f3,c),(fn,x)
* must be added in order
* (f1,a),(f2,b)
* (f2,b),(f3,c)
* (f3,c),(f4,d)
* ...
* (fn-1,x-1),(fn,x)
* @param fid1
* @param fid2
* @param npos1
* @param npos2
*/
public void addMapping(int fid1, int fid2, int npos1, int npos2) {
Mapping ref1 = null, ref2 = null;
// try to get the mapping associated with the first reference
try {
ref1 = mappings.get(fid1).get(npos1);
} catch (IndexOutOfBoundsException e) {
}
try {
ref2 = mappings.get(fid2).get(npos2);
} catch (IndexOutOfBoundsException e) {
}
if (ref1 == null && ref2 == null) {
// create both
ref1 = new Mapping(fid1, fid2, npos1, npos2);
mappings.get(fid1).put(npos1, ref1);
mappingList.add(ref1);
mappings.get(fid2).put(npos2, ref1);
} else if (ref1 == null) {
// create ref1
ref2.addMapping(fid1, npos1);
mappings.get(fid1).put(npos1, ref2);
} else if (ref2 == null) {
// create ref2
ref1.addMapping(fid2, npos2);
mappings.get(fid2).put(npos2, ref1);
} else {
if (ref1 != ref2) {
Mapping small, large;
if (ref1.getMappings().size() > ref2.getMappings().size()) {
large = ref1;
small = ref2;
} else {
large = ref2;
small = ref1;
}
// copy all mappings from smaller set into larger set
for (Entry<Integer, Integer> e : small.getMappings().entrySet()) {
large.addMapping(e.getKey(), e.getValue());
mappings.get(e.getKey()).put(e.getValue(), large);
}
mappingList.remove(small);
}
}
}
/**
* Adds the specified mapping if it does not exist
*
* @param fid
* id of the function
* @param npos
* position of the node in the function
*/
public void addMapping(int fid, int npos){
Mapping ref = null;
try {
ref = mappings.get(fid).get(npos);
} catch (IndexOutOfBoundsException e) {
}
if (ref == null) {
ref = new Mapping(fid,npos);
mappings.get(fid).put(npos, ref);
mappingList.add(ref);
}
}
/**
* TODO remove child elements
*
* @return a collection of unique nodes
*/
public HashMap<List<Integer>, ArrayList<Mapping>> getUniqueSets() {
HashMap<List<Integer>, ArrayList<Mapping>> sets = new HashMap<>();
for(Mapping m: mappingList) {
// get sets funcions
List<Integer> funcIds = m.getSet();
// insert to sets
if(!sets.containsKey(funcIds)) {
sets.put(funcIds, new ArrayList<>());
}
sets.get(funcIds).add(m);
}
return sets;
}
/**
* Fills all mappings with a {@link ClassNodeSkeleton} representing the
* node
* This is used as the start of the AST of the merged function
*/
public void buildMappingSkeliton() {
// mapping of <fID1, <nodePos, Mapping>>
HashMap<Integer, HashMap<Integer, Mapping>> mappingMap = new HashMap<>();
ArrayList<Mapping> mappings = new ArrayList<>();
// generate skelitonNodes storing them by thier first position in
// the mapping
for (Mapping m : mappingList) {
// Create the classNodeSkeleton
m.buildNode();
// for each fID fill mappingMap with map of fID, <nodePos,
// Mapping between two>
for(Entry<Integer, Integer> mapping: m.getMappings().entrySet()){
if (!mappingMap.containsKey(mapping.getKey())) {
mappingMap.put(mapping.getKey(), new HashMap<>());
}
mappingMap.get(mapping.getKey()).put(mapping.getValue(), m);
}
mappings.add(m);
}
root = null;
// Update nodes with their parentsw
for (Mapping m : mappings) {
int[] parentPos = m.getFirstParentPos();
if(parentPos[1] == 0){
root = m;
}else{
m.setSkelitonParent(mappingMap.get(parentPos[0]).get(parentPos[1]).getNode());
}
}
}
}
/**
* A class Used to store all references to an identical node in the
* tree.
*
* @author Rikkey Paal
*/
class Mapping {
/**
* <a,b> refers to node b in function a
*/
private final HashMap<Integer, Integer> mappings = new HashMap<Integer, Integer>();
/**
* Used in {@link MergeGroup#getMinimalUniqueSets()}
*/
private ClassNodeSkeleton node;
private ArrayList<int[]> parentPos;
/**
* Initializes the mapping class
*
* @param fId
* id of the function to map
* @param fPos
* position of node in function
*/
public Mapping(int fid, int fpos) {
addMapping(fid, fpos);
}
/**
* @return
*/
public HashMap<Integer, Integer> getMappings() {
return mappings;
}
/**
* @return
*/
public List<Integer> getSet() {
return new ArrayList<>(mappings.keySet());
}
/**
* Initializes the mapping class
*
* @param fId1
* id of the first function to map
* @param fId2
* id of the second function to map
* @param fPos1
* position of node in the first function
* @param fPos2
* position of node in the second function
*/
public Mapping(int fid1, int fid2, int fpos1, int fpos2) {
addMapping(fid1, fpos1);
addMapping(fid2, fpos2);
}
/**
* Adds a new reference to the node.
*
* @param fId
* id of the function to map
* @param fPos
* position of node in function
*/
public void addMapping(int fid, int fpos) {
mappings.put(fid, fpos);
}
/**
* Generates a {@link ClassNodeSkeleton} to be stored in this class
* @return
*/
@SuppressWarnings("unchecked")
public void buildNode() {
int pos = Collections.min(mappings.keySet());
ASTNode<?> n = functions.get(pos);
ASTNode<?> mappingNode = n.getPostOrderDecendant(mappings.get(pos));
if (mappingNode.getChildren().size() > 0) {
node = new ClassNodeSkeleton(plugin.copyNode(mappingNode, false), this, MergeGroup.this,
plugin.copyNode(mappingNode.getChildrenAsASTNode().get(0), true));
} else {
node = new ClassNodeSkeleton(plugin.copyNode(mappingNode, false), this, MergeGroup.this, null);
}
}
/**
* Gets a list of positions of parent nodes.
* A list is required as there may be examples of two nodes matching which are not in the same containing structure.
*
* This may be used in an extension to allow multiple parents
*
* @return a list of positions of parent nodes
*/
public ArrayList<int[]> getAllParentPos() {
if (parentPos == null) {
parentPos = new ArrayList<>();
// for each entry in the mapping add the position of the parent
for (Entry<Integer, Integer> e : mappings.entrySet()) {
int[] parentI = new int[2];
parentI[0] = e.getKey();
parentI[1] = functions.get(e.getKey()).getPostOrderDecendant(e.getValue()).getParent()
.getPostOrderPos();
parentPos.add(parentI);
}
}
return parentPos;
}
/**
* Gets the position of the parent node.
* @return a list of positions of parent nodes
*/
public int[] getFirstParentPos() {
if (parentPos == null) {
parentPos = new ArrayList<>();
int[] parentI = new int[2];
int fIDPos = Collections.min(mappings.keySet());
Integer pos2 = mappings.get(fIDPos);
parentI[0] = fIDPos;
parentI[1] = functions.get(fIDPos).getPostOrderDecendant(pos2).getParent()
.getPostOrderPos();
parentPos.add(parentI);
}
return parentPos.get(0);
}
/**
* Sets the parent of this node.
* The parent is only set if it is null.
* Then returns the comparison between this parent and the parent
*
* @param parent for the node
* @return false if there is already a parent that is not the one provided, true otherwise
*/
public boolean setSkelitonParent(ClassNodeSkeleton parent) {
if (node.parent == null) {
node.setParent(parent);
return true;
} else
return node.parent.equals(parent);
}
public ClassNodeSkeleton getNode() {
return node;
}
@Override
public String toString() {
String str = "(";
for (Entry<Integer, Integer> entry : mappings.entrySet()) {
str += "[" + entry.getKey() + "," + entry.getValue() + "],";
}
return str.substring(0, str.length() - 1) + ")";
}
}
} | [
"rikkeypaal@gmail.com"
] | rikkeypaal@gmail.com |
91601ae78985258767487761301610f3c97d025b | 3d44befd757a197db3957fb2bf82e4598eb442b1 | /demo/src/main/java/com/example/demo/service/ValidateService.java | 6aa050cd8908f37f683490485a7b70acd6c90c2b | [] | no_license | hao-projects/device-registration-platform | ea886c0742bff4e661e160b8c67e3332621780fd | c9021b364bfa17e825591068244a7f478c4e5024 | refs/heads/master | 2021-01-01T04:41:36.292786 | 2017-08-16T08:51:41 | 2017-08-16T08:51:41 | 97,224,907 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 261 | java | package com.example.demo.service;
import java.util.List;
/**
* Created by yang on 2017/7/27.
*/
public interface ValidateService {
public boolean isIdEqual(Long id);
public boolean isDuplicateLogin(Long id);
public boolean validateForm ();
}
| [
"yang@qq.com"
] | yang@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.