blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
132 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
28 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
352
513a284bcc524ee2d8fe5ff0c02469d60bbca982
c422829aed08bb3263299f66359f4c5e234f3014
/javasrc/edu/brown/cs/ivy/jcomp/JcompFile.java
8b3e243b3918ebf284832986b15cb2ef71ca13fc
[]
no_license
StevenReiss/ivy
2029946cbf7d5a2383f5fd5b0a77e613115cf24c
1a19377e91f0c14151da4c409609725acceefdbd
refs/heads/master
2023-08-31T22:02:05.835396
2023-08-16T15:21:43
2023-08-16T15:21:43
63,251,664
0
0
null
null
null
null
UTF-8
Java
false
false
12,874
java
/********************************************************************************/ /* */ /* JcompFile.java */ /* */ /* Representation of a Java file for semantic resolution */ /* */ /********************************************************************************/ /* Copyright 2007 Brown University -- Steven P. Reiss */ /********************************************************************************* * Copyright 2007, Brown University, Providence, RI. * * * * All Rights Reserved * * * * Permission to use, copy, modify, and distribute this software and its * * documentation for any purpose other than its incorporation into a * * commercial product is hereby granted without fee, provided that the * * above copyright notice appear in all copies and that both that * * copyright notice and this permission notice appear in supporting * * documentation, and that the name of Brown University not be used in * * advertising or publicity pertaining to distribution of the software * * without specific, written prior permission. * * * * BROWN UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS * * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND * * FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL BROWN UNIVERSITY * * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS * * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * * OF THIS SOFTWARE. * * * ********************************************************************************/ package edu.brown.cs.ivy.jcomp; import org.eclipse.jdt.core.compiler.IProblem; import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.ASTVisitor; import org.eclipse.jdt.core.dom.AbstractTypeDeclaration; import org.eclipse.jdt.core.dom.Block; import org.eclipse.jdt.core.dom.CompilationUnit; import org.eclipse.jdt.core.dom.Expression; import org.eclipse.jdt.core.dom.ImportDeclaration; import org.eclipse.jdt.core.dom.LabeledStatement; import org.eclipse.jdt.core.dom.LambdaExpression; import org.eclipse.jdt.core.dom.MethodDeclaration; import org.eclipse.jdt.core.dom.MethodInvocation; import org.eclipse.jdt.core.dom.PackageDeclaration; import org.eclipse.jdt.core.dom.ReturnStatement; import org.eclipse.jdt.core.dom.SimpleName; import org.eclipse.jdt.core.dom.Statement; import org.eclipse.jdt.core.dom.SwitchCase; import edu.brown.cs.ivy.file.IvyLog; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.Stack; class JcompFile implements JcompSemantics, JcompConstants { /********************************************************************************/ /* */ /* Private Storage */ /* */ /********************************************************************************/ private JcompSource for_file; private ASTNode ast_root; private JcompProjectImpl for_project; /********************************************************************************/ /* */ /* Constructors */ /* */ /********************************************************************************/ JcompFile(JcompSource rf) { for_file = rf; ast_root = null; for_project = null; } /********************************************************************************/ /* */ /* Access methods */ /* */ /********************************************************************************/ @Override public ASTNode getAstNode() { if (ast_root == null) { IvyLog.logD("JCOMP","Start AST for " + getFile().getFileName()); if (for_file instanceof JcompExtendedSource1 && for_project != null) { JcompExtendedSource1 efile = (JcompExtendedSource1) for_file; ast_root = efile.getAstRootNode(for_project.getProjectKey()); if (ast_root != null) return ast_root; } if (for_file instanceof JcompExtendedSource) { JcompExtendedSource efile = (JcompExtendedSource) for_file; ast_root = efile.getAstRootNode(); if (ast_root != null) return ast_root; } String txt = for_file.getFileContents(); if (txt != null) { ast_root = JcompAst.parseSourceFile(txt.toCharArray()); if (for_file instanceof JcompAstCleaner) { JcompAstCleaner updr = (JcompAstCleaner) for_file; ast_root = updr.cleanupAst(ast_root); } JcompAst.setSource(ast_root,for_file); } } return ast_root; } @Override public CompilationUnit getRootNode() { ASTNode node = getAstNode(); if (node == null) return null; if (node instanceof CompilationUnit) { return (CompilationUnit) node; } return null; } @Override public JcompSource getFile() { return for_file; } @Override public List<JcompMessage> getMessages() { List<JcompMessage> rslt = new ArrayList<JcompMessage>(); ASTNode root = getAstNode(); if (root != null && root instanceof CompilationUnit) { CompilationUnit cu = (CompilationUnit) root; for (IProblem p : cu.getProblems()) { JcompMessageSeverity sev = JcompMessageSeverity.NOTICE; if (p.isError()) sev = JcompMessageSeverity.ERROR; else if (p.isWarning()) sev = JcompMessageSeverity.WARNING; JcompMessage rm = new JcompMessage(getFile(),sev, p.getID(),p.getMessage(), p.getSourceLineNumber(), p.getSourceStart(),p.getSourceEnd()); rslt.add(rm); } } ErrorVisitor ev = new ErrorVisitor(rslt); try { if (root != null) root.accept(ev); } catch (Throwable t) { } return rslt; } private class ErrorVisitor extends ASTVisitor { private List<JcompMessage> message_list; private boolean have_error; private Stack<Boolean> error_stack; ErrorVisitor(List<JcompMessage> msgs) { message_list = msgs; have_error = false; error_stack = new Stack<>(); } @Override public void preVisit(ASTNode n) { error_stack.push(have_error); have_error = false; } @Override public void postVisit(ASTNode n) { boolean fg = error_stack.pop(); have_error |= fg; if (!have_error) { JcompType jt = JcompAst.getExprType(n); if (jt != null && jt.isErrorType()) { if (n instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation) n; String mnm = ""; if (mi.getExpression() != null) { mnm = JcompAst.getExprType(mi.getExpression()).getName() + "."; } mnm += mi.getName().getIdentifier(); addError("Undefined method " + mnm,IProblem.UndefinedMethod,n); } else { addError("Expression error",IProblem.InvalidOperator,n); } have_error = true; } } } @Override public boolean visit(SimpleName n) { JcompType jt = JcompAst.getExprType(n); if (jt != null && jt.isErrorType()) { addError("Undefined name: " + n.getIdentifier(),IProblem.UndefinedName,n); have_error = true; } return true; } @Override public void endVisit(ReturnStatement n) { checkNextReachable(n); if (have_error) return; ASTNode mthd = null; for (ASTNode n1 = n; n1 != null; n1 = n1.getParent()) { if (n1 instanceof MethodDeclaration) { mthd = (MethodDeclaration) n1; break; } else if (n1 instanceof LambdaExpression) { break; } } if (mthd == null) return; JcompSymbol msym = JcompAst.getDefinition(mthd); if (msym == null) return; JcompType mtyp = msym.getType(); if (mtyp == null) return; JcompType rtyp = mtyp.getBaseType(); Expression ex = n.getExpression(); if (ex == null) { if (rtyp != null && !rtyp.isVoidType()) { IvyLog.logD("JCOMP","NOTE RETURN ERROR"); addError("Must return value for method",IProblem.ReturnTypeMismatch,n); } return; } JcompType rt = JcompAst.getExprType(ex); if (rt.isErrorType()) return; if (rtyp == null || rtyp.isVoidType()) { IvyLog.logD("JCOMP","NOTE RETURN ERROR"); addError("Can't return value for void method/constructor", IProblem.ReturnTypeMismatch,n); } // second clause is probably all that is needed else if (!rtyp.isAssignCompatibleWith(rt) && !rt.isAssignCompatibleWith(rtyp)) { IvyLog.logD("JCOMP","NOTE RETURN ERROR"); addError("Return type mismatch",IProblem.ReturnTypeMismatch,n); } } private void checkNextReachable(ASTNode n) { ASTNode par = n.getParent(); if (par instanceof Block) { Block blk = (Block) par; int idx = blk.statements().indexOf(n); if (idx >= 0 && idx+1 < blk.statements().size()) { ASTNode next = (ASTNode) blk.statements().get(idx+1); if (next instanceof SwitchCase) return; else if (next instanceof LabeledStatement) return; else if (next instanceof Statement) { IvyLog.logD("JCOMP","NOTE REACHABLE ERROR"); addError("Unreachable statement",IProblem.UnreachableCatch,next); } } } return; } private void addError(String msg,int id,ASTNode n) { int start = n.getStartPosition(); int end = start + n.getLength(); int line = 0; if (ast_root instanceof CompilationUnit) { CompilationUnit cu = (CompilationUnit) ast_root; line = cu.getLineNumber(start); } JcompMessage rm = new JcompMessage(getFile(),JcompMessageSeverity.ERROR, id,msg,line,start,end); message_list.add(rm); } } // end of inner class ErrorVisitor void setRoot(JcompProjectImpl root) { for_project = root; } @Override public JcompProject getProject() { return for_project; } @Override public void reparse() { IvyLog.logD("JCOMP","Reparse " + getFile().getFileName()); ast_root = null; for_project.setResolved(false,null); } private AbstractTypeDeclaration findTypeDecl(String cls,List<?> typs) { AbstractTypeDeclaration atd = null; for (int i = 0; atd == null && i < typs.size(); ++i) { if (!(typs.get(i) instanceof AbstractTypeDeclaration)) continue; AbstractTypeDeclaration d = (AbstractTypeDeclaration) typs.get(i); if (cls != null) { JcompType jt = JcompAst.getJavaType(d); if (jt != null && !jt.getName().equals(cls)) { if (cls.startsWith(jt.getName() + ".")) { atd = findTypeDecl(cls,d.bodyDeclarations()); } continue; } } atd = d; } return atd; } /********************************************************************************/ /* */ /* Determine if a class is defined in this file */ /* */ /********************************************************************************/ @Override public boolean definesClass(String cls) { ASTNode root = getAstNode(); if (root == null || root.getNodeType() != ASTNode.COMPILATION_UNIT) return false; CompilationUnit cu = (CompilationUnit) root; List<?> typs = cu.types(); AbstractTypeDeclaration atd = findTypeDecl(cls,typs); return atd != null; } /********************************************************************************/ /* */ /* Handle Finding related packages */ /* */ /********************************************************************************/ @Override public Set<String> getRelatedPackages() { Set<String> rslt = new HashSet<>(); CompilationUnit cu = getRootNode(); if (cu == null) return rslt; PackageDeclaration pd = cu.getPackage(); if (pd != null) { String nm = pd.getName().getFullyQualifiedName(); rslt.add(nm); } for (Object o : cu.imports()) { ImportDeclaration id = (ImportDeclaration) o; if (id.isStatic()) continue; String inm = id.getName().getFullyQualifiedName(); if (!id.isOnDemand()) { int idx = inm.lastIndexOf("."); if (idx < 0) continue; inm = inm.substring(0,idx); } rslt.add(inm); } return rslt; } /********************************************************************************/ /* */ /* Debugging methods */ /* */ /********************************************************************************/ @Override public String toString() { return "FILE:" + for_file.getFileName(); } } // end of class JcompFile /* end of JcompFile.java */
[ "spr@cs.brown.edu" ]
spr@cs.brown.edu
7c9d062cacf4fab419a24ee1c437fff550c9fad9
a154a83dfcfc339a3ca023a9833d87df8924b1de
/src/main/java/com/fruitson/react/SimpleReactAppApplication.java
5d538f7631510a970ce6e78afc23287192c731d6
[]
no_license
fruitson-gowid/spring-boot-with-react
561bab5e3368efd7b42a3c090c71ef6ca5bb63af
fa1442f8eb8d297911b112ecfbd473f35bcead64
refs/heads/master
2023-05-01T22:24:04.019439
2021-05-18T06:55:22
2021-05-18T06:55:22
368,426,710
0
0
null
null
null
null
UTF-8
Java
false
false
339
java
package com.fruitson.react; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SimpleReactAppApplication { public static void main(String[] args) { SpringApplication.run(SimpleReactAppApplication.class, args); } }
[ "fruitson@gowid.com" ]
fruitson@gowid.com
225a0e3c7993377ebaf213c515aeb17ba000347f
1cc621f0cf10473b96f10fcb5b7827c710331689
/Ex6/Procyon/edu/cg/models/Car/Center.java
8abfbf70fdc9e1ee9ea7c0807c07efca35366447
[]
no_license
nitaiaharoni1/Introduction-to-Computer-Graphics
eaaa16bd2dba5a51f0f7442ee202a04897cbaa1f
4467d9f092c7e393d9549df9e10769a4b07cdad4
refs/heads/master
2020-04-28T22:56:29.061748
2019-06-06T18:55:51
2019-06-06T18:55:51
175,635,562
0
0
null
null
null
null
UTF-8
Java
false
false
1,981
java
// // Decompiled by Procyon v0.5.30 // package edu.cg.models.Car; import com.jogamp.opengl.GL2; import edu.cg.models.IRenderable; import edu.cg.models.SkewedBox; public class Center implements IRenderable { private SkewedBox bodyBase; private SkewedBox backBox; private SkewedBox frontBox; private SkewedBox sideBox; public Center() { this.bodyBase = new SkewedBox(0.25, 0.013125000000000001, 0.013125000000000001, 0.4, 0.4); this.backBox = new SkewedBox(0.09375, 0.13125, 0.22968750000000002, 0.1, 0.1); this.frontBox = new SkewedBox(0.046875, 0.13125, 0.11812500000000001, 0.1, 0.4); this.sideBox = new SkewedBox(0.15000000000000002, 0.11812500000000001, 0.13125, 0.25, 0.15625); } @Override public void render(final GL2 gl) { gl.glPushMatrix(); Materials.SetBlackMetalMaterial(gl); this.bodyBase.render(gl); Materials.SetRedMetalMaterial(gl); gl.glTranslated(0.1015625, 0.013125000000000001, 0.0); this.frontBox.render(gl); gl.glPopMatrix(); gl.glPushMatrix(); gl.glTranslated(-0.1015625, 0.013125000000000001, 0.0); gl.glRotated(180.0, 0.0, 1.0, 0.0); this.frontBox.render(gl); gl.glPopMatrix(); gl.glPushMatrix(); gl.glTranslated(0.0, 0.013125000000000001, 0.125); gl.glRotated(90.0, 0.0, 1.0, 0.0); this.sideBox.render(gl); gl.glPopMatrix(); gl.glPushMatrix(); gl.glTranslated(0.0, 0.013125000000000001, -0.125); gl.glRotated(-90.0, 0.0, 1.0, 0.0); this.sideBox.render(gl); gl.glPopMatrix(); Materials.SetBlackMetalMaterial(gl); gl.glPushMatrix(); gl.glTranslated(-0.03125, 0.013125000000000001, 0.0); this.backBox.render(gl); gl.glPopMatrix(); } @Override public void init(final GL2 gl) { } @Override public void destroy(final GL2 gl) { } }
[ "nitaiaharoni1@gmail.com" ]
nitaiaharoni1@gmail.com
e6ba4177f5e2d6038a4c3daeb188df543e32d14b
69e9bfa754cd5efb58d140b7a69b27756068dd8a
/experiments/src/main/java/twitter/DataStructures/UserData.java
aa9f0103e4df4fab84cf654d15bc5461de70f273
[]
no_license
efikarra/text-models-twitter
056c06403c07b9015e5607126c3ef7fe97eb9a0e
d939f0e81ea18581c6b7ffc86de1f359d192f2d0
refs/heads/master
2021-01-13T12:28:52.841379
2016-11-02T08:18:07
2016-11-02T08:18:07
72,595,589
1
0
null
null
null
null
UTF-8
Java
false
false
1,083
java
package twitter.DataStructures; import java.io.Serializable; import java.util.List; public class UserData implements Serializable{ private List<TweetEvent> trainTweets; private List<TweetEvent> testTweets; private String userName; public UserData() { this(null,null,null); } public UserData(String userName) { this(userName,null,null); } public UserData(List<TweetEvent> documents) { this.trainTweets = documents; } public UserData(String userName,List<TweetEvent> trainTweets,List<TweetEvent> testTweets) { this.trainTweets = trainTweets; this.testTweets = testTweets; this.userName=userName; } public List<TweetEvent> getTrainTweets() { return trainTweets; } public void setTrainTweets(List<TweetEvent> trainTweets) { this.trainTweets = trainTweets; } public List<TweetEvent> getTestTweets() { return testTweets; } public void setTestTweets(List<TweetEvent> testTweets) { this.testTweets = testTweets; } public String getUserName() { return userName; } public void setUserName(String screenName) { this.userName = screenName; } }
[ "efi.karrat@gmail.com" ]
efi.karrat@gmail.com
bca9059bb8405f1abeac61e1ba6a4fc03ef6c7cf
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/16/02/1.java
181219a4c064c7843b86e831dbb75d89b2115e68
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Java
false
false
1,730
java
import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.concurrent.*; public class B { static BufferedReader br; static StringTokenizer st; static PrintWriter pw; public static void main(String[] args) throws Exception { br = new BufferedReader(new InputStreamReader(System.in)); pw = new PrintWriter(new BufferedWriter(new FileWriter("b.out"))); final int MAX_CASES = readInt(); for(int casenum = 1; casenum <= MAX_CASES; casenum++) { pw.printf("Case #%d: ", casenum); String s = nextToken(); boolean[] good = new boolean[s.length()]; int ret = 0; boolean last = true; for(int i = 0; i < good.length; i++) { good[i] = s.charAt(i) == '+'; if(i > 0 && last != good[i]) { ret++; } last = good[i]; } if(!last) ret++; pw.println(ret); } pw.close(); } public static int readInt() { return Integer.parseInt(nextToken()); } public static long readLong() { return Long.parseLong(nextToken()); } public static double readDouble() { return Double.parseDouble(nextToken()); } public static String nextToken() { while(st == null || !st.hasMoreTokens()) { try { if(!br.ready()) { pw.close(); System.exit(0); } st = new StringTokenizer(br.readLine()); } catch(IOException e) { System.err.println(e); System.exit(1); } } return st.nextToken(); } public static String readLine() { st = null; try { return br.readLine(); } catch(IOException e) { System.err.println(e); System.exit(1); return null; } } }
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
c61e7814c5060487637aa62fcc04bc3e7d4b0a45
357a38dd8382027477a554ca5c5fda455d7214bd
/src/main/java/br/com/acsp/curso/web/AgendaController.java
269bf09b82c7ddab76bc4db449c80e457d21431b
[]
no_license
fabiopedrosa1980/acsp
db32cf97750a6b053dd9de95a0b8f04123da9126
a6d00340ca0e8e194a5ded1f2266149dfa9828c4
refs/heads/master
2020-12-25T16:02:48.721432
2013-08-18T20:01:21
2013-08-18T20:01:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,180
java
/** * */ package br.com.acsp.curso.web; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import br.com.acsp.curso.domain.Agenda; import br.com.acsp.curso.service.AeronaveService; import br.com.acsp.curso.service.AgendaService; import br.com.acsp.curso.service.AlunoService; import br.com.acsp.curso.service.AulaService; import br.com.acsp.curso.service.InstrutorService; /** * @author pedrosa */ @Controller public class AgendaController extends AbstractController { @Autowired private AlunoService alunoService; @Autowired private AgendaService agendaService; @Autowired private AeronaveService aeronaveService; @Autowired private InstrutorService instrutorService; @Autowired private AulaService aulaService; /** * Este metodo adiciona a agenda ao (form) request, basta usar o form com o nome de "agenda" * @return */ @ModelAttribute("agenda") public Agenda getAgenda() { return new Agenda(); } @RequestMapping(value = "/agenda", method = RequestMethod.POST) public String criaAgendamento(@ModelAttribute("agenda") Agenda agenda) { agendaService.salvar(agenda); return "redirect:/agendas"; } @RequestMapping(value = "/agenda", method = RequestMethod.GET) public String preparaForm(ModelMap map) { map.put("listaDeAlunos", alunoService.listarOrdenado()); map.put("listaDeAeronaves", aeronaveService.listarOrdenadoPorModelo()); map.put("listaDeInstrutores", instrutorService.listarOrdenado()); map.put("listaDeAulas", aulaService.listarOrdenado()); return "agenda/formulario"; } @RequestMapping(value = "/agenda/{id}", method = RequestMethod.GET) public String buscaPorId(@PathVariable("id") Long id, ModelMap modelMap) { modelMap.put("agenda", agendaService.obtemPorId(id)); modelMap.put("listaDeAlunos", alunoService.listarOrdenado()); modelMap.put("listaDeAeronaves", aeronaveService.listarOrdenadoPorModelo()); modelMap.put("listaDeInstrutores", instrutorService.listarOrdenado()); modelMap.put("listaDeAulas", aulaService.listarOrdenado()); return "agenda/formulario"; } @RequestMapping(value = "/agenda/{id}", method = RequestMethod.POST) public String atualiza(@PathVariable("id") Long id, @ModelAttribute("agenda") Agenda agenda) { agenda.setId(id); agendaService.alterar(agenda); return "redirect:/agendas"; } @RequestMapping(value = "/agendas", method = RequestMethod.GET) public String lista(ModelMap map) { map.put("listaDeAgendas", agendaService.pesquisarTodos()); return "agenda/lista"; } @RequestMapping(value = "/agenda/{id}/apaga", method = RequestMethod.GET) public String exclui(@PathVariable("id") Long id) { agendaService.excluirPorId(id); return "redirect:/agendas"; } }
[ "bito.pedrosa@gmail.com" ]
bito.pedrosa@gmail.com
2587debc7c72d7d07f817a6cde309013aea7090a
9c04f7087ee689ec0d21ccad1210acda85f310be
/20170522/TomcatServer/src/top/yunp/ts/models/AbstractModel.java
a67fcf10f67de42d16a62942e28ba8990e127791
[]
no_license
plter/AndroidLesson20170425
69b167dc4c38e4f9cc3cf256859f439be8150ceb
aec195511d36a5d971743301be88f5a35dd29bb3
refs/heads/master
2021-01-20T01:38:01.909702
2017-07-27T01:01:48
2017-07-27T01:01:48
89,308,412
1
4
null
null
null
null
UTF-8
Java
false
false
514
java
package top.yunp.ts.models; import org.json.JSONObject; /** * Created by plter on 5/22/17. */ public abstract class AbstractModel { private JSONObject jsonObject; public AbstractModel() { jsonObject = new JSONObject(); } public AbstractModel(String json) { this.jsonObject = new JSONObject(json); } public JSONObject getJsonObject() { return jsonObject; } @Override public String toString() { return getJsonObject().toString(); } }
[ "xtiqin@163.com" ]
xtiqin@163.com
0390ce91d91a7ab18258d0ae66c1e5814e65bfa4
5d9128606e288f4a8ede1f39bf0909a97247dbb8
/jOOQ-test/examples/org/jooq/examples/sqlserver/adventureworks/dbo/routines/ufnGetContactInformation.java
73ed7ba8adf33751b47e653e300e3e3cfc29813b
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
Arbonaut/jOOQ
ec62a03a6541444b251ed7f3cdefc22eadf2a03d
21fbf50ca6129f1bc20cc6c553d99ba92865d192
refs/heads/master
2021-01-16T20:32:00.437982
2012-11-26T13:28:19
2012-11-26T13:28:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,831
java
/** * This class is generated by jOOQ */ package org.jooq.examples.sqlserver.adventureworks.dbo.routines; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings("all") public class ufnGetContactInformation extends org.jooq.impl.AbstractRoutine<java.lang.Object> { private static final long serialVersionUID = -1066240214; /** * The procedure parameter <code>dbo.ufnGetContactInformation.RETURN_VALUE</code> * <p> * The SQL type of this item (TABLE) could not be mapped.<br/> * Deserialising this field might not work! */ public static final org.jooq.Parameter<java.lang.Object> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.util.sqlserver.SQLServerDataType.getDefaultDataType("TABLE")); /** * The procedure parameter <code>dbo.ufnGetContactInformation.ContactID</code> */ public static final org.jooq.Parameter<java.lang.Integer> ContactID = createParameter("ContactID", org.jooq.impl.SQLDataType.INTEGER); /** * Create a new routine call instance */ public ufnGetContactInformation() { super("ufnGetContactInformation", org.jooq.examples.sqlserver.adventureworks.dbo.dbo.dbo, org.jooq.util.sqlserver.SQLServerDataType.getDefaultDataType("TABLE")); setReturnParameter(RETURN_VALUE); addInParameter(ContactID); } /** * Set the <code>ContactID</code> parameter IN value to the routine */ public void setContactID(java.lang.Integer value) { setValue(org.jooq.examples.sqlserver.adventureworks.dbo.routines.ufnGetContactInformation.ContactID, value); } /** * Set the <code>ContactID</code> parameter to the function * <p> * Use this method only, if the function is called as a {@link org.jooq.Field} in a {@link org.jooq.Select} statement! */ public void setContactID(org.jooq.Field<java.lang.Integer> field) { setField(ContactID, field); } }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
8b230551b67eafd9d5c1a006990938ecb205534b
126931d324d24efc86ea88e50ab3a35d626c6d95
/src/main/java/cn/yyljlyy/netty/ChatClientInitiolizer.java
91d4d6f6d8c381ace79b586f9b65346f8655d9aa
[]
no_license
yyljlyy/NettyTest
f96d0a0b22bc0d7afe24d24472410d121e2a0eb9
b40fb2a9158f83b35947aa5e1698d340849bb5fb
refs/heads/master
2021-01-10T01:40:37.314825
2015-06-03T05:27:09
2015-06-03T05:27:09
36,781,941
0
0
null
null
null
null
UTF-8
Java
false
false
901
java
package cn.yyljlyy.netty; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.socket.SocketChannel; import io.netty.handler.codec.DelimiterBasedFrameDecoder; import io.netty.handler.codec.Delimiters; import io.netty.handler.codec.string.StringDecoder; import io.netty.handler.codec.string.StringEncoder; /** * Created by lee on 2015/6/2. */ public class ChatClientInitiolizer extends ChannelInitializer<SocketChannel> { @Override protected void initChannel(SocketChannel arg0) throws Exception { ChannelPipeline pipeline = arg0.pipeline(); pipeline.addLast("framer",new DelimiterBasedFrameDecoder(8192, Delimiters.lineDelimiter())); pipeline.addLast("decoder",new StringDecoder()); pipeline.addLast("encoder",new StringEncoder()); pipeline.addLast("handler",new ChatClientHandler()); } }
[ "fkhacker@vip.qq.com" ]
fkhacker@vip.qq.com
02c99aaf9717ec15d4ae33d6ee38832d9a94e903
316640666d38446bbb9672fd934a66b0ab0ddffb
/app/src/main/java/com/example/razvan/fitness/WorkoutListAdapter.java
e20e074c18dad161b107ba135081087fc054daae
[]
no_license
razvancrisan1996/mobile
436569671e1b8722b8332830c9d34e00b9e1b688
1bd9fbabeea4e1e5b959cac0b17b3808df59780c
refs/heads/master
2021-09-04T03:22:41.758694
2018-01-15T08:19:30
2018-01-15T08:19:30
107,082,856
0
0
null
null
null
null
UTF-8
Java
false
false
1,908
java
package com.example.razvan.fitness; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.util.ArrayList; import java.util.List; /** * Created by Razvan on 11/9/2017. */ public class WorkoutListAdapter extends ArrayAdapter<Workout> { private static final String TAG = "WorkoutListAdapter"; private Context mContext; int mResource; public WorkoutListAdapter(@NonNull Context context, int resource, @NonNull ArrayList<Workout> objects) { super(context, resource, objects); mContext = context; mResource = resource; } @NonNull @Override public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { View row = null; if(convertView==null){ LayoutInflater inflater = LayoutInflater.from(mContext); convertView = inflater.inflate(mResource, parent, false); } String description = getItem(position).getDescription(); int duration = getItem(position).getDuration(); Workout.Level difficulty = getItem(position).getDifficulty(); Workout workout = new Workout(description,duration,difficulty); TextView tvDescription = (TextView) convertView.findViewById(R.id.textView1); TextView tvDuration = (TextView) convertView.findViewById(R.id.textView2); TextView tvDifficulty = (TextView) convertView.findViewById(R.id.textView3); tvDescription.setText(description); tvDifficulty.setText(difficulty.toString()); tvDuration.setText(String.valueOf(duration)); return convertView; } }
[ "razvan@gmail.com" ]
razvan@gmail.com
7d55a8114ebeec10df0f7d17305d9e5f7e814c6e
4146e1a8a81e213d8b5af9724285b108be32bf76
/springboot-kafka-consumer/src/main/java/org/spring/springboot/consumer/MsgConsumer.java
a512915bb575d843ae919c7a301bf0a62f7adfd9
[ "Apache-2.0" ]
permissive
Zephery/springboot-learning-example
a1fc31031cad46beaad6146bf2124c5c7c79d087
3d3c61f7b88bee4fed2b24f430743d3c28d1e022
refs/heads/master
2021-05-12T12:29:50.160869
2018-01-14T09:11:57
2018-01-14T09:11:57
117,415,306
1
0
null
2018-01-14T08:46:49
2018-01-14T08:46:49
null
UTF-8
Java
false
false
539
java
package org.spring.springboot.consumer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.kafka.annotation.KafkaListener; import org.springframework.stereotype.Component; /** * @author Zephery * @since 2018/1/5 10:40 */ @Component public class MsgConsumer { //logger private static final Logger logger = LoggerFactory.getLogger(MsgConsumer.class); @KafkaListener(topics = {"nginx-access-log"}) public void processMessage(String content) { System.out.println(content); } }
[ "1570631036@qq.com" ]
1570631036@qq.com
05c584f4b059f3a829b22946aaf22e24e641b5c1
bedbe26b3ddd8ec8fa9b8e551279c3587db52ab0
/src/main/java/com/example/NotepadDemo/controller/HomeController.java
62e6c76a745470ab2d05ec1478217ab2574092c0
[]
no_license
murilonerdx/spring-mvc-notepad
360a79b963788af38f75d740a853cfafe18abad2
e93edc6cdebeaee31336929ab7fbd4ee74b985c9
refs/heads/master
2023-03-18T15:31:00.168439
2021-03-23T14:36:32
2021-03-23T14:36:32
350,536,045
0
0
null
null
null
null
UTF-8
Java
false
false
944
java
package com.example.NotepadDemo.controller; import com.example.NotepadDemo.domain.nota.entity.Nota; import com.example.NotepadDemo.domain.nota.service.NotaService; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.sql.SQLException; import java.util.List; @WebServlet(name = "HomeController", value = "/Home") public class HomeController extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { if (request.getSession().getAttribute("usuarioLogado") != null) { request.getSession().setMaxInactiveInterval(10); response.sendRedirect(request.getContextPath() + "/home.jsp"); } else { response.sendRedirect(request.getContextPath() + "/"); } } }
[ "mu-silva@outlook.com" ]
mu-silva@outlook.com
0473a926933a86f62cb6f4804d063dc0634143f2
4f6c381a861ea0d051f8e837630f1e1e6660ae3d
/luna-commons-message/src/main/java/com/luna/message/api/dao/TemplateDAO.java
c4383929520a8a60abc2eaa7a98b357efa780c10
[ "MIT", "Apache-2.0" ]
permissive
DAQ121/luna-commons
5872b088505c173c5d6a9787c68a2134a373d85a
889110e845a5df3f481a180a405ebde425a7de06
refs/heads/master
2022-11-23T20:16:52.677559
2020-07-27T12:13:03
2020-07-27T12:13:03
282,892,728
1
0
Apache-2.0
2020-07-27T12:32:29
2020-07-27T12:32:29
null
UTF-8
Java
false
false
1,512
java
package com.luna.message.api.dao; import org.apache.ibatis.annotations.*; import com.luna.message.api.entity.TemplateDO; /** * @Description templateDO Mapper * @author MrZhang-YUBO * @date 2020年1月20日 17:22:27 */ @Mapper public interface TemplateDAO { /** * 插入 * * @param templateDO */ @Insert("INSERT INTO tb_template (create_time, modified_time, subject, content) VALUES(now(), now(), #{subject}, #{content})") @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id") void insert(TemplateDO templateDO); /** * 删除 * * @param id * @return */ @Delete("DELETE FROM tb_template WHERE id=#{id}") int delete(@Param("id") long id); /** * 更新内容 * * @param templateDO * @return */ @Update("UPDATE tb_template SET modified_time=now(), subject=#{subject} content=#{content} WHERE id=#{id}") int update(TemplateDO templateDO); /** * 查找 * * @param id * @return */ @Select("SELECT id, create_time, modified_time, subject, content FROM tb_template WHERE id=#{id}") @Results({ @Result(property = "id", column = "id"), @Result(property = "createTime", column = "create_time"), @Result(property = "modifiedTime", column = "modified_time"), @Result(property = "subject", column = "subject"), @Result(property = "content", column = "content") }) TemplateDO get(@Param("id") long id); }
[ "iszychen@gmail.com" ]
iszychen@gmail.com
5bcc5475e818cf7925acf8c14fb177d34f6a4a5e
8ca1f2621c5698dce34d2786fa886dbe64173b69
/app/src/main/java/com/mylowcarbon/app/my/order/MyOrdersPresenter.java
82a43e629f9029277c3ff5c9c51132ee7732e384
[ "Apache-2.0" ]
permissive
sengeiou/LowCarbon
a4cc3b046540b9d4004bafeeee3ecf48f77fe0da
b8f12781e3aeac7231b2b2a52783f1ef06b5d378
refs/heads/master
2022-02-02T07:52:21.208454
2018-07-24T07:13:09
2018-07-24T07:13:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
586
java
package com.mylowcarbon.app.my.order; import android.support.annotation.NonNull; /** * WalkSubFragment的Presenter */ class MyOrdersPresenter implements MyOrdersContract.Presenter { private static final String TAG = "MainPresenter"; private MyOrdersContract.Model mData; private MyOrdersContract.View mView; MyOrdersPresenter(@NonNull MyOrdersContract.View view) { view.setPresenter(this); mView = view; mData = new MyOrdersModel(); } @Override public void destroy() { mView = null; mData = null; } }
[ "addskya@163.com" ]
addskya@163.com
dfb22cbc7df6f41f107b81701d2aae4e64a3e493
b0d6a928082620d3260706c0456194a11d2d529e
/src/main/java/kata09/checkout/rule/SpecialPrice.java
651bde86499427ae8a0ff3ee8b756dd0c283a720
[]
no_license
sergej-samsonow/kata09-checkout-java
00bd55e73e8f3b05e0d5c98bf79d6ec783d4320c
21d0818b06d351ac27ea07020f41e28f4fd546f3
refs/heads/master
2021-09-04T00:52:35.557538
2018-01-13T16:22:17
2018-01-13T16:22:17
117,327,964
0
0
null
null
null
null
UTF-8
Java
false
false
2,972
java
package kata09.checkout.rule; import static java.lang.Math.subtractExact; import static java.util.Collections.emptyMap; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.NavigableSet; import java.util.Set; import java.util.TreeMap; public class SpecialPrice { private Map<String, Map<Integer, Integer>> prices = new HashMap<>(); public void add(String product, Integer amount, Integer price) { prices.computeIfAbsent(product, v -> new TreeMap<>()).put(amount, price); } private Collection<Integer> splitAmount(Integer incoming, Set<Integer> possible) { int amount = incoming; ArrayList<Integer> result = new ArrayList<>(); for (Integer current : possible) { if (amount == current) { result.add(amount); amount = 0; } else if (amount > current) { int mod = amount % current; int count = (subtractExact(amount, mod)) / current; amount = mod; for (int i = 0; i < count; i++) { result.add(current); } } // stop iteration no other groups is possible if (amount == 0) { return result; } } result.add(amount); return result; } public List<Map<String, Integer>> groupProducts(Collection<String> products) { List<Map<String, Integer>> result = new ArrayList<>(); Map<String, Integer> byAmount = new HashMap<>(); for (String product : products) { int amount = byAmount.computeIfAbsent(product, v -> 0); byAmount.put(product, amount + 1); } for (Entry<String, Integer> entry : byAmount.entrySet()) { String product = entry.getKey(); Integer amount = entry.getValue(); Map<Integer, Integer> special = prices.computeIfAbsent(product, v -> emptyMap()); // we have no special prices for product if (special.isEmpty()) { Map<String, Integer> current = new HashMap<>(); current.put(product, amount); result.add(current); } else { // group by amount descending order (higher amount first) for (Integer splited : splitAmount(amount, ((NavigableSet<Integer>) special.keySet()).descendingSet())) { Map<String, Integer> current = new HashMap<>(); current.put(product, splited); result.add(current); } } } return result; } public int forProduct(String product, Integer amount, Integer regularPrice) { return prices.getOrDefault(product, emptyMap()).getOrDefault(amount, amount * regularPrice); } }
[ "sergej.samsonow.public@googlemail.com" ]
sergej.samsonow.public@googlemail.com
b9b70724374d4a53affdeca92c222a7c0783ae09
26183990a4c6b9f6104e6404ee212239da2d9f62
/components/distribution_tool/src/java/tests/com/topcoder/util/distribution/accuracytests/commands/ConvertToPDFCommandTest.java
e03bfb0ef596fc0b30ad37d040ca133df59fed44
[]
no_license
topcoder-platform/tc-java-components
34c5798ece342a9f1804daeb5acc3ea4b0e0765b
51b204566eb0df3902624c15f4fb69b5f99dc61b
refs/heads/dev
2023-08-08T22:09:32.765506
2022-02-25T06:23:56
2022-02-25T06:23:56
138,811,944
0
8
null
2022-02-23T21:06:12
2018-06-27T01:10:36
Rich Text Format
UTF-8
Java
false
false
3,094
java
/* * Copyright (C) 2010 TopCoder Inc., All Rights Reserved. */ package com.topcoder.util.distribution.accuracytests.commands; import com.topcoder.util.distribution.DistributionScriptCommand; import com.topcoder.util.distribution.DistributionScriptExecutionContext; import com.topcoder.util.distribution.accuracytests.TestHelper; import com.topcoder.util.distribution.commands.CommandExecutionCondition; import com.topcoder.util.distribution.commands.ConvertToPDFCommand; import junit.extensions.TestSetup; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import java.io.File; import java.util.ArrayList; /** * Tests ConvertToPDFCommand class. * * @author orange_cloud * @version 1.0 */ public class ConvertToPDFCommandTest extends TestCase { /** * Instance to test. */ private DistributionScriptCommand target; /** * <p>Returns the test suite of this class.</p> * * @return the test suite of this class. */ public static Test suite() { return new TestSetup(new TestSuite(ConvertToPDFCommandTest.class)) { /** * <p>Sets up test environment.</p> * * @throws Exception to junit */ public void setUp() throws Exception { TestHelper.clearTemp("test_files/accuracy/pdf"); } }; } /** * <p>Sets up test environment.</p> * * @throws Exception to junit */ public void setUp() throws Exception { super.setUp(); } /** * <p>Tears down test environment.</p> * * @throws Exception to junit */ public void tearDown() throws Exception { super.tearDown(); } /** * Tests execute method. * * @throws Exception when it occurs deeper */ public void testExecute1() throws Exception { String from = "test_files/accuracy/to_convert.html"; // String to = "test_files/accuracy/pdf/dir/dir/html.pdf"; String to = "test_files/accuracy/pdf/html.pdf"; target = new ConvertToPDFCommand(null, new ArrayList<CommandExecutionCondition>(), from, to); DistributionScriptExecutionContext context = new DistributionScriptExecutionContext(); target.execute(context); assertTrue("check that file exists", new File(to).isFile()); // it has to be visually verified after tests completed also } /** * Tests execute method when file is only copied. * * @throws Exception when it occurs deeper */ public void testExecute2() throws Exception { String from = "test_files/accuracy/to_convert.pdf"; String to = "test_files/accuracy/pdf/pdf.pdf"; target = new ConvertToPDFCommand(null, new ArrayList<CommandExecutionCondition>(), from, to); DistributionScriptExecutionContext context = new DistributionScriptExecutionContext(); target.execute(context); // check result assertEquals("contents", "not a pdf, actually", TestHelper.readLine(to)); } }
[ "pvmagacho@gmail.com" ]
pvmagacho@gmail.com
fb98439320f39e37580f372477ccde941d174253
9d963ad68724ea334d3e904d8a69cb02b376be6c
/jochre_search/src/main/java/com/joliciel/jochre/search/JochreSearchConstants.java
46e94f8cd9cb70d2735f6109c38e06cb864adf2d
[]
no_license
hamza1010/jochre
a761cca64c413a1966722929b79d7da63723fbac
88b9b99e7979e9433d531dd3fecb13f58dcd9b43
refs/heads/master
2020-12-24T11:06:07.519968
2016-11-04T14:10:47
2016-11-04T14:10:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,103
java
/////////////////////////////////////////////////////////////////////////////// //Copyright (C) 2016 Assaf Urieli // //This file is part of Jochre. // //Jochre is free software: you can redistribute it and/or modify //it under the terms of the GNU Affero General Public License as published by //the Free Software Foundation, either version 3 of the License, or //(at your option) any later version. // //Jochre is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //GNU Affero General Public License for more details. // //You should have received a copy of the GNU Affero General Public License //along with Jochre. If not, see <http://www.gnu.org/licenses/>. ////////////////////////////////////////////////////////////////////////////// package com.joliciel.jochre.search; public class JochreSearchConstants { public static final String INDEX_PARAGRAPH = "֎"; public static final String INDEX_NEWLINE = "֏"; public static final String INDEX_PUNCT_PREFIX = "※"; }
[ "assaf.urieli@gmail.com" ]
assaf.urieli@gmail.com
f330ab1484a22c36f1be1976dc421650015be4f7
818170fe4562e3f1357c0b65783df71d6d8ebe35
/app/src/main/java/com/artf/bb84/IntegerAdapter.java
eec121913c4d2f039fdf105eb26c8293c28c50c8
[]
no_license
QArtur99/BB84-Quantum-Key
c141f261290a707773090ac450467f535404ebda
533b544412382bdb46684bca0c9094778592fb9f
refs/heads/master
2021-08-28T09:14:32.943088
2017-12-11T20:14:03
2017-12-11T20:14:03
113,903,656
0
0
null
null
null
null
UTF-8
Java
false
false
2,227
java
package com.artf.bb84; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; public class IntegerAdapter extends RecyclerView.Adapter<IntegerAdapter.MyViewHolder> { private static final String DOT = "\u2022"; private List<Integer> data; private int id; public IntegerAdapter(List<Integer> myDataset, int id) { data = myDataset; this.id = id; } @Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { LayoutInflater inflater = LayoutInflater.from(parent.getContext()); View view = inflater.inflate(R.layout.row, parent, false); return new MyViewHolder(view); } @Override public void onBindViewHolder(MyViewHolder holder, int position) { holder.bind(position); } public Object getDataAtPosition(int position) { return data.get(position); } @Override public int getItemCount() { return data.size(); } public void clearMovies() { this.data.clear(); notifyDataSetChanged(); } public void setMovies(List<Integer> data) { this.data.addAll(data); notifyDataSetChanged(); } public List<Integer> getData() { return data; } public class MyViewHolder extends RecyclerView.ViewHolder { @BindView(R.id.description) TextView description; public MyViewHolder(View itemView) { super(itemView); ButterKnife.bind(this, itemView); } public void bind(int position) { Integer integer = (Integer) getDataAtPosition(position); if(integer != null) { if(id == 0) { String string = String.valueOf(integer); description.setText(string); }else if(id == 1){ String string = integer == 0 ? "-" : "+"; description.setText(string); } } } } }
[ "artur2113@o2.pl" ]
artur2113@o2.pl
15b74d79fa5a9ea374e94b56de676617b755e786
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
/src/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__byte_console_readLine_multiply_14.java
80c3e88ae5a967b512929a9617204673856b59f1
[]
no_license
bqcuong/Juliet-Test-Case
31e9c89c27bf54a07b7ba547eddd029287b2e191
e770f1c3969be76fdba5d7760e036f9ba060957d
refs/heads/master
2020-07-17T14:51:49.610703
2019-09-03T16:22:58
2019-09-03T16:22:58
206,039,578
1
2
null
null
null
null
UTF-8
Java
false
false
12,423
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__byte_console_readLine_multiply_14.java Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-14.tmpl.java */ /* * @description * CWE: 190 Integer Overflow * BadSource: console_readLine Read data from the console using readLine * GoodSource: A hardcoded non-zero, non-min, non-max, even number * Sinks: multiply * GoodSink: Ensure there will not be an overflow before multiplying data by 2 * BadSink : If data is positive, multiply by 2, which can cause an overflow * Flow Variant: 14 Control flow: if(IO.staticFive==5) and if(IO.staticFive!=5) * * */ package testcases.CWE190_Integer_Overflow.s01; import testcasesupport.*; import javax.servlet.http.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.logging.Level; public class CWE190_Integer_Overflow__byte_console_readLine_multiply_14 extends AbstractTestCase { public void bad() throws Throwable { byte data; if (IO.staticFive==5) { /* init data */ data = -1; /* POTENTIAL FLAW: Read data from console with readLine*/ BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { readerInputStream = new InputStreamReader(System.in, "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); String stringNumber = readerBuffered.readLine(); if (stringNumber != null) { data = Byte.parseByte(stringNumber.trim()); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } catch (NumberFormatException exceptNumberFormat) { IO.logger.log(Level.WARNING, "Error with number parsing", exceptNumberFormat); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } finally { try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } } } } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.staticFive==5) { if(data > 0) /* ensure we won't have an underflow */ { /* POTENTIAL FLAW: if (data*2) > Byte.MAX_VALUE, this will overflow */ byte result = (byte)(data * 2); IO.writeLine("result: " + result); } } } /* goodG2B1() - use goodsource and badsink by changing first IO.staticFive==5 to IO.staticFive!=5 */ private void goodG2B1() throws Throwable { byte data; if (IO.staticFive!=5) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } else { /* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */ data = 2; } if (IO.staticFive==5) { if(data > 0) /* ensure we won't have an underflow */ { /* POTENTIAL FLAW: if (data*2) > Byte.MAX_VALUE, this will overflow */ byte result = (byte)(data * 2); IO.writeLine("result: " + result); } } } /* goodG2B2() - use goodsource and badsink by reversing statements in first if */ private void goodG2B2() throws Throwable { byte data; if (IO.staticFive==5) { /* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */ data = 2; } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.staticFive==5) { if(data > 0) /* ensure we won't have an underflow */ { /* POTENTIAL FLAW: if (data*2) > Byte.MAX_VALUE, this will overflow */ byte result = (byte)(data * 2); IO.writeLine("result: " + result); } } } /* goodB2G1() - use badsource and goodsink by changing second IO.staticFive==5 to IO.staticFive!=5 */ private void goodB2G1() throws Throwable { byte data; if (IO.staticFive==5) { /* init data */ data = -1; /* POTENTIAL FLAW: Read data from console with readLine*/ BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { readerInputStream = new InputStreamReader(System.in, "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); String stringNumber = readerBuffered.readLine(); if (stringNumber != null) { data = Byte.parseByte(stringNumber.trim()); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } catch (NumberFormatException exceptNumberFormat) { IO.logger.log(Level.WARNING, "Error with number parsing", exceptNumberFormat); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } finally { try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } } } } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.staticFive!=5) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ IO.writeLine("Benign, fixed string"); } else { if(data > 0) /* ensure we won't have an underflow */ { /* FIX: Add a check to prevent an overflow from occurring */ if (data < (Byte.MAX_VALUE/2)) { byte result = (byte)(data * 2); IO.writeLine("result: " + result); } else { IO.writeLine("data value is too large to perform multiplication."); } } } } /* goodB2G2() - use badsource and goodsink by reversing statements in second if */ private void goodB2G2() throws Throwable { byte data; if (IO.staticFive==5) { /* init data */ data = -1; /* POTENTIAL FLAW: Read data from console with readLine*/ BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { readerInputStream = new InputStreamReader(System.in, "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); String stringNumber = readerBuffered.readLine(); if (stringNumber != null) { data = Byte.parseByte(stringNumber.trim()); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } catch (NumberFormatException exceptNumberFormat) { IO.logger.log(Level.WARNING, "Error with number parsing", exceptNumberFormat); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } finally { try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } } } } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0; } if (IO.staticFive==5) { if(data > 0) /* ensure we won't have an underflow */ { /* FIX: Add a check to prevent an overflow from occurring */ if (data < (Byte.MAX_VALUE/2)) { byte result = (byte)(data * 2); IO.writeLine("result: " + result); } else { IO.writeLine("data value is too large to perform multiplication."); } } } } public void good() throws Throwable { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
[ "bqcuong2212@gmail.com" ]
bqcuong2212@gmail.com
6145bf77f80112f1c3e464b41a6bf5b947a00860
7bc0f63fb6cd1cb9bf91062523bc44c3bbe82c79
/app/src/main/java/com/z/xwclient/base/BaseFragment.java
b0d8a9e00fa20a2672d6633e2b5dd5dd8d2dad3d
[]
no_license
OOOOOldZhu/zapp
16c827f4ecfb7150017ae6b933b99b30c87aa4d4
07a68aefe0bcb4498dbd793d9685831e5e70217c
refs/heads/master
2021-09-17T01:52:35.949541
2018-06-26T11:28:45
2018-06-26T11:28:45
105,043,259
0
0
null
null
null
null
UTF-8
Java
false
false
1,981
java
package com.z.xwclient.base; import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu; import com.z.xwclient.HomeActivity; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * 菜单页和内容页的父类 * */ public abstract class BaseFragment extends Fragment { public Activity activity; public View view; public SlidingMenu slidingMenu; // 初始化数据 @Override public void onCreate(Bundle savedInstanceState) { //getActivity() : 获取fragment所在的Activity activity = getActivity(); //因为SlidingMenu是添加在HomeActivity中,而Fragment中也是添加HomeActivity中的,在BaseFragment中已经通过getActivity获取到了HomeActivity slidingMenu = ((HomeActivity)activity).getSlidingMenu(); super.onCreate(savedInstanceState); } // 加载布局 @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //因为fragment加载界面和加载数据的操作,是在onCreateView和onActivityCreated方法中执行的,并不是在initView和initData方法中执行 //所以onCreateView和onActivityCreated方法要调用initview和initdata方法,实现让fragment显示界面和加载数据 view = initView(); return view; } // 加载数据 @Override public void onActivityCreated(Bundle savedInstanceState) { initData(); super.onActivityCreated(savedInstanceState); } //2.因为父类,抽取到了显示界面和加载数据操作,但是父类并不知道子类要显示什么界面,加载什么数据,所以父类可以创建抽象方法,子类实现抽象方法,根据自己的特性进行相应的操作 /** * 显示界面 */ public abstract View initView(); /** * 加载数据 * */ public abstract void initData(); }
[ "1032671220@qq.com" ]
1032671220@qq.com
0a55794bc2d8dd738ee46b66745668a46f259bb8
f58caac00de4349e25843dee9a17e5d6a49846b0
/src/interfaceGraphique/fenetre/EdtSalle.java
b15703258e610322c80759c1bcaffdb2074cd348
[ "Apache-2.0" ]
permissive
NextGES/Desktop
6d7240d8aa96f2c78b14d51df12b9225646225cb
f76623841eb04cc2445d0634c9cfc8261c77bb50
refs/heads/master
2021-01-18T14:07:25.051314
2014-07-10T23:49:40
2014-07-10T23:49:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,041
java
package interfaceGraphique.fenetre; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.ListSelectionModel; import metier.AppelObjectAdapter; import metier.SalleObjectAdapter; import metier.ScheduleObjectAdapter; import bdd.DatabaseAccess; public class EdtSalle extends JFrame{ private SalleObjectAdapter adapter; private JButton valider; private JPanel panel; private JTable tableau; private DatabaseAccess data = new DatabaseAccess(); private int selection, selectedSchedule, idSchedule; private ScheduleObjectAdapter adapter2; public EdtSalle(int idSalle) { setTitle("Emploi du temps de la salle"); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); setSize(d.width / 2, d.height / 2); setLocationRelativeTo(null); data = new DatabaseAccess(); valider = new JButton("Ok"); valider.addMouseListener(new MouseListener() { @Override public void mouseReleased(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mousePressed(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mouseExited(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mouseEntered(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mouseClicked(MouseEvent e) { setVisible(false); } }); panel = new JPanel(); panel.add(valider); tableau = new JTable(new ScheduleObjectAdapter(idSalle)); tableau.setAutoCreateRowSorter(true); tableau.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); this.add(new JScrollPane(tableau)); this.add(panel, BorderLayout.SOUTH); setVisible(true); } }
[ "damienbelard@gmail.com" ]
damienbelard@gmail.com
a5033a47cee24d347e3c621de8b49fb97f0f998e
dfd7e70936b123ee98e8a2d34ef41e4260ec3ade
/analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/com/facebook/GraphRequest.java
a869fd3f0edcb022f1c96c0fdd5cd1f2a6ff1aa2
[ "Apache-2.0" ]
permissive
skkuse-adv/2019Fall_team2
2d4f75bc793368faac4ca8a2916b081ad49b7283
3ea84c6be39855f54634a7f9b1093e80893886eb
refs/heads/master
2020-08-07T03:41:11.447376
2019-12-21T04:06:34
2019-12-21T04:06:34
213,271,174
5
5
Apache-2.0
2019-12-12T09:15:32
2019-10-07T01:18:59
Java
UTF-8
Java
false
false
64,740
java
package com.facebook; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.location.Location; import android.net.Uri; import android.net.Uri.Builder; import android.os.Bundle; import android.os.Handler; import android.os.Parcel; import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor.AutoCloseInputStream; import android.os.Parcelable; import android.os.Parcelable.Creator; import android.text.TextUtils; import android.util.Pair; import com.facebook.internal.AttributionIdentifiers; import com.facebook.internal.InternalSettings; import com.facebook.internal.Logger; import com.facebook.internal.NativeProtocol; import com.facebook.internal.ServerProtocol; import com.facebook.internal.Utility; import com.facebook.internal.Validate; import com.facebook.share.internal.ShareInternalUtility; import com.google.firebase.perf.network.FirebasePerfUrlConnection; import com.kakao.message.template.MessageTemplateProtocol; import io.fabric.sdk.android.services.network.HttpRequest; import io.fabric.sdk.android.services.settings.SettingsJsonConstants; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; import java.security.SecureRandom; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class GraphRequest { public static final String ACCESS_TOKEN_PARAM = "access_token"; public static final String FIELDS_PARAM = "fields"; public static final int MAXIMUM_BATCH_SIZE = 50; /* access modifiers changed from: private */ public static final String MIME_BOUNDARY; public static final String TAG = "GraphRequest"; private static String defaultBatchApplicationId; private static volatile String userAgent; private static Pattern versionPattern = Pattern.compile("^/?v\\d+\\.\\d+/(.*)"); private AccessToken accessToken; private String batchEntryDependsOn; private String batchEntryName; private boolean batchEntryOmitResultOnSuccess; private Callback callback; private JSONObject graphObject; private String graphPath; private HttpMethod httpMethod; private String overriddenURL; private Bundle parameters; private boolean skipClientToken; private Object tag; private String version; private static class Attachment { private final GraphRequest request; private final Object value; public Attachment(GraphRequest graphRequest, Object obj) { this.request = graphRequest; this.value = obj; } public GraphRequest getRequest() { return this.request; } public Object getValue() { return this.value; } } public interface Callback { void onCompleted(GraphResponse graphResponse); } public interface GraphJSONArrayCallback { void onCompleted(JSONArray jSONArray, GraphResponse graphResponse); } public interface GraphJSONObjectCallback { void onCompleted(JSONObject jSONObject, GraphResponse graphResponse); } private interface KeyValueSerializer { void writeString(String str, String str2) throws IOException; } public interface OnProgressCallback extends Callback { void onProgress(long j, long j2); } public static class ParcelableResourceWithMimeType<RESOURCE extends Parcelable> implements Parcelable { public static final Creator<ParcelableResourceWithMimeType> CREATOR = new Creator<ParcelableResourceWithMimeType>() { public ParcelableResourceWithMimeType createFromParcel(Parcel parcel) { return new ParcelableResourceWithMimeType(parcel); } public ParcelableResourceWithMimeType[] newArray(int i) { return new ParcelableResourceWithMimeType[i]; } }; private final String mimeType; private final RESOURCE resource; public int describeContents() { return 1; } public String getMimeType() { return this.mimeType; } public RESOURCE getResource() { return this.resource; } public void writeToParcel(Parcel parcel, int i) { parcel.writeString(this.mimeType); parcel.writeParcelable(this.resource, i); } public ParcelableResourceWithMimeType(RESOURCE resource2, String str) { this.mimeType = str; this.resource = resource2; } private ParcelableResourceWithMimeType(Parcel parcel) { this.mimeType = parcel.readString(); this.resource = parcel.readParcelable(FacebookSdk.getApplicationContext().getClassLoader()); } } private static class Serializer implements KeyValueSerializer { private boolean firstWrite = true; private final Logger logger; private final OutputStream outputStream; private boolean useUrlEncode = false; public Serializer(OutputStream outputStream2, Logger logger2, boolean z) { this.outputStream = outputStream2; this.logger = logger2; this.useUrlEncode = z; } public void writeObject(String str, Object obj, GraphRequest graphRequest) throws IOException { OutputStream outputStream2 = this.outputStream; if (outputStream2 instanceof RequestOutputStream) { ((RequestOutputStream) outputStream2).setCurrentRequest(graphRequest); } if (GraphRequest.isSupportedParameterType(obj)) { writeString(str, GraphRequest.parameterToString(obj)); } else if (obj instanceof Bitmap) { writeBitmap(str, (Bitmap) obj); } else if (obj instanceof byte[]) { writeBytes(str, (byte[]) obj); } else if (obj instanceof Uri) { writeContentUri(str, (Uri) obj, null); } else if (obj instanceof ParcelFileDescriptor) { writeFile(str, (ParcelFileDescriptor) obj, null); } else if (obj instanceof ParcelableResourceWithMimeType) { ParcelableResourceWithMimeType parcelableResourceWithMimeType = (ParcelableResourceWithMimeType) obj; Parcelable resource = parcelableResourceWithMimeType.getResource(); String mimeType = parcelableResourceWithMimeType.getMimeType(); if (resource instanceof ParcelFileDescriptor) { writeFile(str, (ParcelFileDescriptor) resource, mimeType); } else if (resource instanceof Uri) { writeContentUri(str, (Uri) resource, mimeType); } else { throw getInvalidTypeError(); } } else { throw getInvalidTypeError(); } } private RuntimeException getInvalidTypeError() { return new IllegalArgumentException("value is not a supported type."); } public void writeRequestsAsJson(String str, JSONArray jSONArray, Collection<GraphRequest> collection) throws IOException, JSONException { OutputStream outputStream2 = this.outputStream; if (!(outputStream2 instanceof RequestOutputStream)) { writeString(str, jSONArray.toString()); return; } RequestOutputStream requestOutputStream = (RequestOutputStream) outputStream2; writeContentDisposition(str, null, null); write("[", new Object[0]); int i = 0; for (GraphRequest graphRequest : collection) { JSONObject jSONObject = jSONArray.getJSONObject(i); requestOutputStream.setCurrentRequest(graphRequest); if (i > 0) { write(",%s", jSONObject.toString()); } else { write("%s", jSONObject.toString()); } i++; } write("]", new Object[0]); Logger logger2 = this.logger; if (logger2 != null) { StringBuilder sb = new StringBuilder(); sb.append(" "); sb.append(str); logger2.appendKeyValue(sb.toString(), jSONArray.toString()); } } public void writeString(String str, String str2) throws IOException { writeContentDisposition(str, null, null); writeLine("%s", str2); writeRecordBoundary(); Logger logger2 = this.logger; if (logger2 != null) { StringBuilder sb = new StringBuilder(); sb.append(" "); sb.append(str); logger2.appendKeyValue(sb.toString(), str2); } } public void writeBitmap(String str, Bitmap bitmap) throws IOException { writeContentDisposition(str, str, "image/png"); bitmap.compress(CompressFormat.PNG, 100, this.outputStream); writeLine("", new Object[0]); writeRecordBoundary(); Logger logger2 = this.logger; if (logger2 != null) { StringBuilder sb = new StringBuilder(); sb.append(" "); sb.append(str); logger2.appendKeyValue(sb.toString(), "<Image>"); } } public void writeBytes(String str, byte[] bArr) throws IOException { writeContentDisposition(str, str, "content/unknown"); this.outputStream.write(bArr); writeLine("", new Object[0]); writeRecordBoundary(); Logger logger2 = this.logger; if (logger2 != null) { StringBuilder sb = new StringBuilder(); sb.append(" "); sb.append(str); logger2.appendKeyValue(sb.toString(), String.format(Locale.ROOT, "<Data: %d>", new Object[]{Integer.valueOf(bArr.length)})); } } public void writeContentUri(String str, Uri uri, String str2) throws IOException { int i; if (str2 == null) { str2 = "content/unknown"; } writeContentDisposition(str, str, str2); if (this.outputStream instanceof ProgressNoopOutputStream) { ((ProgressNoopOutputStream) this.outputStream).addProgress(Utility.getContentSize(uri)); i = 0; } else { i = Utility.copyAndCloseInputStream(FacebookSdk.getApplicationContext().getContentResolver().openInputStream(uri), this.outputStream) + 0; } writeLine("", new Object[0]); writeRecordBoundary(); Logger logger2 = this.logger; if (logger2 != null) { StringBuilder sb = new StringBuilder(); sb.append(" "); sb.append(str); logger2.appendKeyValue(sb.toString(), String.format(Locale.ROOT, "<Data: %d>", new Object[]{Integer.valueOf(i)})); } } public void writeFile(String str, ParcelFileDescriptor parcelFileDescriptor, String str2) throws IOException { int i; if (str2 == null) { str2 = "content/unknown"; } writeContentDisposition(str, str, str2); OutputStream outputStream2 = this.outputStream; if (outputStream2 instanceof ProgressNoopOutputStream) { ((ProgressNoopOutputStream) outputStream2).addProgress(parcelFileDescriptor.getStatSize()); i = 0; } else { i = Utility.copyAndCloseInputStream(new AutoCloseInputStream(parcelFileDescriptor), this.outputStream) + 0; } writeLine("", new Object[0]); writeRecordBoundary(); Logger logger2 = this.logger; if (logger2 != null) { StringBuilder sb = new StringBuilder(); sb.append(" "); sb.append(str); logger2.appendKeyValue(sb.toString(), String.format(Locale.ROOT, "<Data: %d>", new Object[]{Integer.valueOf(i)})); } } public void writeRecordBoundary() throws IOException { if (!this.useUrlEncode) { writeLine("--%s", GraphRequest.MIME_BOUNDARY); return; } this.outputStream.write("&".getBytes()); } public void writeContentDisposition(String str, String str2, String str3) throws IOException { if (!this.useUrlEncode) { write("Content-Disposition: form-data; name=\"%s\"", str); if (str2 != null) { write("; filename=\"%s\"", str2); } String str4 = ""; writeLine(str4, new Object[0]); if (str3 != null) { writeLine("%s: %s", HttpRequest.HEADER_CONTENT_TYPE, str3); } writeLine(str4, new Object[0]); return; } this.outputStream.write(String.format("%s=", new Object[]{str}).getBytes()); } public void write(String str, Object... objArr) throws IOException { if (!this.useUrlEncode) { if (this.firstWrite) { this.outputStream.write("--".getBytes()); this.outputStream.write(GraphRequest.MIME_BOUNDARY.getBytes()); this.outputStream.write("\r\n".getBytes()); this.firstWrite = false; } this.outputStream.write(String.format(str, objArr).getBytes()); return; } this.outputStream.write(URLEncoder.encode(String.format(Locale.US, str, objArr), "UTF-8").getBytes()); } public void writeLine(String str, Object... objArr) throws IOException { write(str, objArr); if (!this.useUrlEncode) { write("\r\n", new Object[0]); } } } private static String getDefaultPhotoPathIfNull(String str) { return str == null ? ShareInternalUtility.MY_PHOTOS : str; } static { char[] charArray = "-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray(); StringBuilder sb = new StringBuilder(); SecureRandom secureRandom = new SecureRandom(); int nextInt = secureRandom.nextInt(11) + 30; for (int i = 0; i < nextInt; i++) { sb.append(charArray[secureRandom.nextInt(charArray.length)]); } MIME_BOUNDARY = sb.toString(); } public GraphRequest() { this(null, null, null, null, null); } public GraphRequest(AccessToken accessToken2, String str) { this(accessToken2, str, null, null, null); } public GraphRequest(AccessToken accessToken2, String str, Bundle bundle, HttpMethod httpMethod2) { this(accessToken2, str, bundle, httpMethod2, null); } public GraphRequest(AccessToken accessToken2, String str, Bundle bundle, HttpMethod httpMethod2, Callback callback2) { this(accessToken2, str, bundle, httpMethod2, callback2, null); } public GraphRequest(AccessToken accessToken2, String str, Bundle bundle, HttpMethod httpMethod2, Callback callback2, String str2) { this.batchEntryOmitResultOnSuccess = true; this.skipClientToken = false; this.accessToken = accessToken2; this.graphPath = str; this.version = str2; setCallback(callback2); setHttpMethod(httpMethod2); if (bundle != null) { this.parameters = new Bundle(bundle); } else { this.parameters = new Bundle(); } if (this.version == null) { this.version = FacebookSdk.getGraphApiVersion(); } } GraphRequest(AccessToken accessToken2, URL url) { this.batchEntryOmitResultOnSuccess = true; this.skipClientToken = false; this.accessToken = accessToken2; this.overriddenURL = url.toString(); setHttpMethod(HttpMethod.GET); this.parameters = new Bundle(); } public static GraphRequest newDeleteObjectRequest(AccessToken accessToken2, String str, Callback callback2) { GraphRequest graphRequest = new GraphRequest(accessToken2, str, null, HttpMethod.DELETE, callback2); return graphRequest; } public static GraphRequest newMeRequest(AccessToken accessToken2, final GraphJSONObjectCallback graphJSONObjectCallback) { AccessToken accessToken3 = accessToken2; GraphRequest graphRequest = new GraphRequest(accessToken3, "me", null, null, new Callback() { public void onCompleted(GraphResponse graphResponse) { GraphJSONObjectCallback graphJSONObjectCallback = graphJSONObjectCallback; if (graphJSONObjectCallback != null) { graphJSONObjectCallback.onCompleted(graphResponse.getJSONObject(), graphResponse); } } }); return graphRequest; } public static GraphRequest newPostRequest(AccessToken accessToken2, String str, JSONObject jSONObject, Callback callback2) { GraphRequest graphRequest = new GraphRequest(accessToken2, str, null, HttpMethod.POST, callback2); graphRequest.setGraphObject(jSONObject); return graphRequest; } public static GraphRequest newMyFriendsRequest(AccessToken accessToken2, final GraphJSONArrayCallback graphJSONArrayCallback) { AccessToken accessToken3 = accessToken2; GraphRequest graphRequest = new GraphRequest(accessToken3, "me/friends", null, null, new Callback() { public void onCompleted(GraphResponse graphResponse) { if (graphJSONArrayCallback != null) { JSONObject jSONObject = graphResponse.getJSONObject(); graphJSONArrayCallback.onCompleted(jSONObject != null ? jSONObject.optJSONArray("data") : null, graphResponse); } } }); return graphRequest; } public static GraphRequest newGraphPathRequest(AccessToken accessToken2, String str, Callback callback2) { GraphRequest graphRequest = new GraphRequest(accessToken2, str, null, null, callback2); return graphRequest; } public static GraphRequest newPlacesSearchRequest(AccessToken accessToken2, Location location, int i, int i2, String str, final GraphJSONArrayCallback graphJSONArrayCallback) { if (location != null || !Utility.isNullOrEmpty(str)) { Bundle bundle = new Bundle(5); bundle.putString("type", "place"); bundle.putInt("limit", i2); if (location != null) { bundle.putString("center", String.format(Locale.US, "%f,%f", new Object[]{Double.valueOf(location.getLatitude()), Double.valueOf(location.getLongitude())})); bundle.putInt("distance", i); } if (!Utility.isNullOrEmpty(str)) { bundle.putString("q", str); } String str2 = "search"; AccessToken accessToken3 = accessToken2; GraphRequest graphRequest = new GraphRequest(accessToken3, str2, bundle, HttpMethod.GET, new Callback() { public void onCompleted(GraphResponse graphResponse) { if (graphJSONArrayCallback != null) { JSONObject jSONObject = graphResponse.getJSONObject(); graphJSONArrayCallback.onCompleted(jSONObject != null ? jSONObject.optJSONArray("data") : null, graphResponse); } } }); return graphRequest; } throw new FacebookException("Either location or searchText must be specified."); } public static GraphRequest newUploadPhotoRequest(AccessToken accessToken2, String str, Bitmap bitmap, String str2, Bundle bundle, Callback callback2) { String defaultPhotoPathIfNull = getDefaultPhotoPathIfNull(str); Bundle bundle2 = new Bundle(); if (bundle != null) { bundle2.putAll(bundle); } bundle2.putParcelable("picture", bitmap); if (str2 != null && !str2.isEmpty()) { bundle2.putString("caption", str2); } GraphRequest graphRequest = new GraphRequest(accessToken2, defaultPhotoPathIfNull, bundle2, HttpMethod.POST, callback2); return graphRequest; } public static GraphRequest newUploadPhotoRequest(AccessToken accessToken2, String str, File file, String str2, Bundle bundle, Callback callback2) throws FileNotFoundException { String defaultPhotoPathIfNull = getDefaultPhotoPathIfNull(str); ParcelFileDescriptor open = ParcelFileDescriptor.open(file, 268435456); Bundle bundle2 = new Bundle(); if (bundle != null) { bundle2.putAll(bundle); } bundle2.putParcelable("picture", open); if (str2 != null && !str2.isEmpty()) { bundle2.putString("caption", str2); } GraphRequest graphRequest = new GraphRequest(accessToken2, defaultPhotoPathIfNull, bundle2, HttpMethod.POST, callback2); return graphRequest; } public static GraphRequest newUploadPhotoRequest(AccessToken accessToken2, String str, Uri uri, String str2, Bundle bundle, Callback callback2) throws FileNotFoundException { String defaultPhotoPathIfNull = getDefaultPhotoPathIfNull(str); if (Utility.isFileUri(uri)) { return newUploadPhotoRequest(accessToken2, defaultPhotoPathIfNull, new File(uri.getPath()), str2, bundle, callback2); } if (Utility.isContentUri(uri)) { Bundle bundle2 = new Bundle(); if (bundle != null) { bundle2.putAll(bundle); } bundle2.putParcelable("picture", uri); if (str2 != null && !str2.isEmpty()) { bundle2.putString("caption", str2); } GraphRequest graphRequest = new GraphRequest(accessToken2, defaultPhotoPathIfNull, bundle2, HttpMethod.POST, callback2); return graphRequest; } throw new FacebookException("The photo Uri must be either a file:// or content:// Uri"); } public static GraphRequest newCustomAudienceThirdPartyIdRequest(AccessToken accessToken2, Context context, String str, Callback callback2) { String str2; if (str == null && accessToken2 != null) { str = accessToken2.getApplicationId(); } if (str == null) { str = Utility.getMetadataApplicationId(context); } if (str != null) { StringBuilder sb = new StringBuilder(); sb.append(str); sb.append("/custom_audience_third_party_id"); String sb2 = sb.toString(); AttributionIdentifiers attributionIdentifiers = AttributionIdentifiers.getAttributionIdentifiers(context); Bundle bundle = new Bundle(); if (accessToken2 == null) { if (attributionIdentifiers != null) { if (attributionIdentifiers.getAttributionId() != null) { str2 = attributionIdentifiers.getAttributionId(); } else { str2 = attributionIdentifiers.getAndroidAdvertiserId(); } if (attributionIdentifiers.getAttributionId() != null) { bundle.putString("udid", str2); } } else { throw new FacebookException("There is no access token and attribution identifiers could not be retrieved"); } } if (FacebookSdk.getLimitEventAndDataUsage(context) || (attributionIdentifiers != null && attributionIdentifiers.isTrackingLimited())) { bundle.putString("limit_event_usage", "1"); } GraphRequest graphRequest = new GraphRequest(accessToken2, sb2, bundle, HttpMethod.GET, callback2); return graphRequest; } throw new FacebookException("Facebook App ID cannot be determined"); } public static GraphRequest newCustomAudienceThirdPartyIdRequest(AccessToken accessToken2, Context context, Callback callback2) { return newCustomAudienceThirdPartyIdRequest(accessToken2, context, null, callback2); } public final JSONObject getGraphObject() { return this.graphObject; } public final void setGraphObject(JSONObject jSONObject) { this.graphObject = jSONObject; } public final String getGraphPath() { return this.graphPath; } public final void setGraphPath(String str) { this.graphPath = str; } public final HttpMethod getHttpMethod() { return this.httpMethod; } public final void setHttpMethod(HttpMethod httpMethod2) { if (this.overriddenURL == null || httpMethod2 == HttpMethod.GET) { if (httpMethod2 == null) { httpMethod2 = HttpMethod.GET; } this.httpMethod = httpMethod2; return; } throw new FacebookException("Can't change HTTP method on request with overridden URL."); } public final String getVersion() { return this.version; } public final void setVersion(String str) { this.version = str; } public final void setSkipClientToken(boolean z) { this.skipClientToken = z; } public final Bundle getParameters() { return this.parameters; } public final void setParameters(Bundle bundle) { this.parameters = bundle; } public final AccessToken getAccessToken() { return this.accessToken; } public final void setAccessToken(AccessToken accessToken2) { this.accessToken = accessToken2; } public final String getBatchEntryName() { return this.batchEntryName; } public final void setBatchEntryName(String str) { this.batchEntryName = str; } public final String getBatchEntryDependsOn() { return this.batchEntryDependsOn; } public final void setBatchEntryDependsOn(String str) { this.batchEntryDependsOn = str; } public final boolean getBatchEntryOmitResultOnSuccess() { return this.batchEntryOmitResultOnSuccess; } public final void setBatchEntryOmitResultOnSuccess(boolean z) { this.batchEntryOmitResultOnSuccess = z; } public static final String getDefaultBatchApplicationId() { return defaultBatchApplicationId; } public static final void setDefaultBatchApplicationId(String str) { defaultBatchApplicationId = str; } public final Callback getCallback() { return this.callback; } public final void setCallback(final Callback callback2) { if (FacebookSdk.isLoggingBehaviorEnabled(LoggingBehavior.GRAPH_API_DEBUG_INFO) || FacebookSdk.isLoggingBehaviorEnabled(LoggingBehavior.GRAPH_API_DEBUG_WARNING)) { this.callback = new Callback(this) { public void onCompleted(GraphResponse graphResponse) { JSONObject jSONObject = graphResponse.getJSONObject(); JSONObject optJSONObject = jSONObject != null ? jSONObject.optJSONObject("__debug__") : null; JSONArray optJSONArray = optJSONObject != null ? optJSONObject.optJSONArray("messages") : null; if (optJSONArray != null) { for (int i = 0; i < optJSONArray.length(); i++) { JSONObject optJSONObject2 = optJSONArray.optJSONObject(i); String optString = optJSONObject2 != null ? optJSONObject2.optString(SettingsJsonConstants.PROMPT_MESSAGE_KEY) : null; String optString2 = optJSONObject2 != null ? optJSONObject2.optString("type") : null; String optString3 = optJSONObject2 != null ? optJSONObject2.optString(MessageTemplateProtocol.LINK) : null; if (!(optString == null || optString2 == null)) { LoggingBehavior loggingBehavior = LoggingBehavior.GRAPH_API_DEBUG_INFO; if (optString2.equals("warning")) { loggingBehavior = LoggingBehavior.GRAPH_API_DEBUG_WARNING; } if (!Utility.isNullOrEmpty(optString3)) { StringBuilder sb = new StringBuilder(); sb.append(optString); sb.append(" Link: "); sb.append(optString3); optString = sb.toString(); } Logger.log(loggingBehavior, GraphRequest.TAG, optString); } } } Callback callback = callback2; if (callback != null) { callback.onCompleted(graphResponse); } } }; } else { this.callback = callback2; } } public final void setTag(Object obj) { this.tag = obj; } public final Object getTag() { return this.tag; } public final GraphResponse executeAndWait() { return executeAndWait(this); } public final GraphRequestAsyncTask executeAsync() { return executeBatchAsync(this); } public static HttpURLConnection toHttpConnection(GraphRequest... graphRequestArr) { return toHttpConnection((Collection<GraphRequest>) Arrays.asList(graphRequestArr)); } public static HttpURLConnection toHttpConnection(Collection<GraphRequest> collection) { Validate.notEmptyAndContainsNoNulls(collection, "requests"); return toHttpConnection(new GraphRequestBatch(collection)); } public static HttpURLConnection toHttpConnection(GraphRequestBatch graphRequestBatch) { URL url; validateFieldsParamForGetRequests(graphRequestBatch); try { if (graphRequestBatch.size() == 1) { url = new URL(graphRequestBatch.get(0).getUrlForSingleRequest()); } else { url = new URL(ServerProtocol.getGraphUrlBase()); } HttpURLConnection httpURLConnection = null; try { httpURLConnection = createConnection(url); serializeToUrlConnection(graphRequestBatch, httpURLConnection); return httpURLConnection; } catch (IOException | JSONException e) { Utility.disconnectQuietly(httpURLConnection); throw new FacebookException("could not construct request body", e); } } catch (MalformedURLException e2) { throw new FacebookException("could not construct URL for request", (Throwable) e2); } } public static GraphResponse executeAndWait(GraphRequest graphRequest) { List executeBatchAndWait = executeBatchAndWait(graphRequest); if (executeBatchAndWait != null && executeBatchAndWait.size() == 1) { return (GraphResponse) executeBatchAndWait.get(0); } throw new FacebookException("invalid state: expected a single response"); } public static List<GraphResponse> executeBatchAndWait(GraphRequest... graphRequestArr) { Validate.notNull(graphRequestArr, "requests"); return executeBatchAndWait((Collection<GraphRequest>) Arrays.asList(graphRequestArr)); } public static List<GraphResponse> executeBatchAndWait(Collection<GraphRequest> collection) { return executeBatchAndWait(new GraphRequestBatch(collection)); } public static List<GraphResponse> executeBatchAndWait(GraphRequestBatch graphRequestBatch) { Validate.notEmptyAndContainsNoNulls(graphRequestBatch, "requests"); HttpURLConnection httpURLConnection = null; try { httpURLConnection = toHttpConnection(graphRequestBatch); return executeConnectionAndWait(httpURLConnection, graphRequestBatch); } catch (Exception e) { List<GraphResponse> constructErrorResponses = GraphResponse.constructErrorResponses(graphRequestBatch.getRequests(), httpURLConnection, new FacebookException((Throwable) e)); runCallbacks(graphRequestBatch, constructErrorResponses); return constructErrorResponses; } finally { Utility.disconnectQuietly(httpURLConnection); } } public static GraphRequestAsyncTask executeBatchAsync(GraphRequest... graphRequestArr) { Validate.notNull(graphRequestArr, "requests"); return executeBatchAsync((Collection<GraphRequest>) Arrays.asList(graphRequestArr)); } public static GraphRequestAsyncTask executeBatchAsync(Collection<GraphRequest> collection) { return executeBatchAsync(new GraphRequestBatch(collection)); } public static GraphRequestAsyncTask executeBatchAsync(GraphRequestBatch graphRequestBatch) { Validate.notEmptyAndContainsNoNulls(graphRequestBatch, "requests"); GraphRequestAsyncTask graphRequestAsyncTask = new GraphRequestAsyncTask(graphRequestBatch); graphRequestAsyncTask.executeOnExecutor(FacebookSdk.getExecutor(), new Void[0]); return graphRequestAsyncTask; } public static List<GraphResponse> executeConnectionAndWait(HttpURLConnection httpURLConnection, Collection<GraphRequest> collection) { return executeConnectionAndWait(httpURLConnection, new GraphRequestBatch(collection)); } public static List<GraphResponse> executeConnectionAndWait(HttpURLConnection httpURLConnection, GraphRequestBatch graphRequestBatch) { List<GraphResponse> fromHttpConnection = GraphResponse.fromHttpConnection(httpURLConnection, graphRequestBatch); Utility.disconnectQuietly(httpURLConnection); int size = graphRequestBatch.size(); if (size == fromHttpConnection.size()) { runCallbacks(graphRequestBatch, fromHttpConnection); AccessTokenManager.getInstance().extendAccessTokenIfNeeded(); return fromHttpConnection; } throw new FacebookException(String.format(Locale.US, "Received %d responses while expecting %d", new Object[]{Integer.valueOf(fromHttpConnection.size()), Integer.valueOf(size)})); } public static GraphRequestAsyncTask executeConnectionAsync(HttpURLConnection httpURLConnection, GraphRequestBatch graphRequestBatch) { return executeConnectionAsync(null, httpURLConnection, graphRequestBatch); } public static GraphRequestAsyncTask executeConnectionAsync(Handler handler, HttpURLConnection httpURLConnection, GraphRequestBatch graphRequestBatch) { Validate.notNull(httpURLConnection, "connection"); GraphRequestAsyncTask graphRequestAsyncTask = new GraphRequestAsyncTask(httpURLConnection, graphRequestBatch); graphRequestBatch.setCallbackHandler(handler); graphRequestAsyncTask.executeOnExecutor(FacebookSdk.getExecutor(), new Void[0]); return graphRequestAsyncTask; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{Request: "); sb.append(" accessToken: "); Object obj = this.accessToken; if (obj == null) { obj = "null"; } sb.append(obj); sb.append(", graphPath: "); sb.append(this.graphPath); sb.append(", graphObject: "); sb.append(this.graphObject); sb.append(", httpMethod: "); sb.append(this.httpMethod); sb.append(", parameters: "); sb.append(this.parameters); sb.append("}"); return sb.toString(); } static void runCallbacks(final GraphRequestBatch graphRequestBatch, List<GraphResponse> list) { int size = graphRequestBatch.size(); final ArrayList arrayList = new ArrayList(); for (int i = 0; i < size; i++) { Callback callback2 = graphRequestBatch.get(i).callback; if (callback2 != null) { arrayList.add(new Pair(callback2, list.get(i))); } } if (arrayList.size() > 0) { AnonymousClass5 r7 = new Runnable() { public void run() { Iterator it = arrayList.iterator(); while (it.hasNext()) { Pair pair = (Pair) it.next(); ((Callback) pair.first).onCompleted((GraphResponse) pair.second); } for (com.facebook.GraphRequestBatch.Callback onBatchCompleted : graphRequestBatch.getCallbacks()) { onBatchCompleted.onBatchCompleted(graphRequestBatch); } } }; Handler callbackHandler = graphRequestBatch.getCallbackHandler(); if (callbackHandler == null) { r7.run(); } else { callbackHandler.post(r7); } } } private static HttpURLConnection createConnection(URL url) throws IOException { HttpURLConnection httpURLConnection = (HttpURLConnection) FirebasePerfUrlConnection.instrument(url.openConnection()); httpURLConnection.setRequestProperty("User-Agent", getUserAgent()); httpURLConnection.setRequestProperty("Accept-Language", Locale.getDefault().toString()); httpURLConnection.setChunkedStreamingMode(0); return httpURLConnection; } private void addCommonParameters() { String str = "access_token"; if (this.accessToken != null) { if (!this.parameters.containsKey(str)) { String token = this.accessToken.getToken(); Logger.registerAccessToken(token); this.parameters.putString(str, token); } } else if (!this.skipClientToken && !this.parameters.containsKey(str)) { String applicationId = FacebookSdk.getApplicationId(); String clientToken = FacebookSdk.getClientToken(); if (Utility.isNullOrEmpty(applicationId) || Utility.isNullOrEmpty(clientToken)) { Utility.logd(TAG, "Warning: Request without access token missing application ID or client token."); } else { StringBuilder sb = new StringBuilder(); sb.append(applicationId); sb.append("|"); sb.append(clientToken); this.parameters.putString(str, sb.toString()); } } this.parameters.putString("sdk", "android"); this.parameters.putString("format", "json"); String str2 = "debug"; if (FacebookSdk.isLoggingBehaviorEnabled(LoggingBehavior.GRAPH_API_DEBUG_INFO)) { this.parameters.putString(str2, "info"); } else if (FacebookSdk.isLoggingBehaviorEnabled(LoggingBehavior.GRAPH_API_DEBUG_WARNING)) { this.parameters.putString(str2, "warning"); } } private String appendParametersToBaseUrl(String str, Boolean bool) { if (!bool.booleanValue() && this.httpMethod == HttpMethod.POST) { return str; } Builder buildUpon = Uri.parse(str).buildUpon(); for (String str2 : this.parameters.keySet()) { Object obj = this.parameters.get(str2); if (obj == null) { obj = ""; } if (isSupportedParameterType(obj)) { buildUpon.appendQueryParameter(str2, parameterToString(obj).toString()); } else if (this.httpMethod == HttpMethod.GET) { throw new IllegalArgumentException(String.format(Locale.US, "Unsupported parameter type for GET request: %s", new Object[]{obj.getClass().getSimpleName()})); } } return buildUpon.toString(); } /* access modifiers changed from: 0000 */ public final String getRelativeUrlForBatchedRequest() { if (this.overriddenURL == null) { String format = String.format("%s/%s", new Object[]{ServerProtocol.getGraphUrlBase(), getGraphPathWithVersion()}); addCommonParameters(); Uri parse = Uri.parse(appendParametersToBaseUrl(format, Boolean.valueOf(true))); return String.format("%s?%s", new Object[]{parse.getPath(), parse.getQuery()}); } throw new FacebookException("Can't override URL for a batch request"); } /* access modifiers changed from: 0000 */ public final String getUrlForSingleRequest() { String str; String str2 = this.overriddenURL; if (str2 != null) { return str2.toString(); } if (getHttpMethod() == HttpMethod.POST) { String str3 = this.graphPath; if (str3 != null && str3.endsWith("/videos")) { str = ServerProtocol.getGraphVideoUrlBase(); String format = String.format("%s/%s", new Object[]{str, getGraphPathWithVersion()}); addCommonParameters(); return appendParametersToBaseUrl(format, Boolean.valueOf(false)); } } str = ServerProtocol.getGraphUrlBase(); String format2 = String.format("%s/%s", new Object[]{str, getGraphPathWithVersion()}); addCommonParameters(); return appendParametersToBaseUrl(format2, Boolean.valueOf(false)); } private String getGraphPathWithVersion() { if (versionPattern.matcher(this.graphPath).matches()) { return this.graphPath; } return String.format("%s/%s", new Object[]{this.version, this.graphPath}); } private void serializeToBatch(JSONArray jSONArray, Map<String, Attachment> map) throws JSONException, IOException { JSONObject jSONObject = new JSONObject(); String str = this.batchEntryName; if (str != null) { jSONObject.put("name", str); jSONObject.put("omit_response_on_success", this.batchEntryOmitResultOnSuccess); } String str2 = this.batchEntryDependsOn; if (str2 != null) { jSONObject.put("depends_on", str2); } String relativeUrlForBatchedRequest = getRelativeUrlForBatchedRequest(); jSONObject.put("relative_url", relativeUrlForBatchedRequest); jSONObject.put("method", this.httpMethod); AccessToken accessToken2 = this.accessToken; if (accessToken2 != null) { Logger.registerAccessToken(accessToken2.getToken()); } ArrayList arrayList = new ArrayList(); for (String str3 : this.parameters.keySet()) { Object obj = this.parameters.get(str3); if (isSupportedAttachmentType(obj)) { String format = String.format(Locale.ROOT, "%s%d", new Object[]{"file", Integer.valueOf(map.size())}); arrayList.add(format); map.put(format, new Attachment(this, obj)); } } if (!arrayList.isEmpty()) { jSONObject.put("attached_files", TextUtils.join(",", arrayList)); } if (this.graphObject != null) { final ArrayList arrayList2 = new ArrayList(); processGraphObject(this.graphObject, relativeUrlForBatchedRequest, new KeyValueSerializer(this) { public void writeString(String str, String str2) throws IOException { arrayList2.add(String.format(Locale.US, "%s=%s", new Object[]{str, URLEncoder.encode(str2, "UTF-8")})); } }); jSONObject.put("body", TextUtils.join("&", arrayList2)); } jSONArray.put(jSONObject); } private static boolean hasOnProgressCallbacks(GraphRequestBatch graphRequestBatch) { for (com.facebook.GraphRequestBatch.Callback callback2 : graphRequestBatch.getCallbacks()) { if (callback2 instanceof com.facebook.GraphRequestBatch.OnProgressCallback) { return true; } } Iterator it = graphRequestBatch.iterator(); while (it.hasNext()) { if (((GraphRequest) it.next()).getCallback() instanceof OnProgressCallback) { return true; } } return false; } private static void setConnectionContentType(HttpURLConnection httpURLConnection, boolean z) { String str = HttpRequest.HEADER_CONTENT_TYPE; if (z) { httpURLConnection.setRequestProperty(str, HttpRequest.CONTENT_TYPE_FORM); httpURLConnection.setRequestProperty(HttpRequest.HEADER_CONTENT_ENCODING, HttpRequest.ENCODING_GZIP); return; } httpURLConnection.setRequestProperty(str, getMimeContentType()); } private static boolean isGzipCompressible(GraphRequestBatch graphRequestBatch) { Iterator it = graphRequestBatch.iterator(); while (it.hasNext()) { GraphRequest graphRequest = (GraphRequest) it.next(); Iterator it2 = graphRequest.parameters.keySet().iterator(); while (true) { if (it2.hasNext()) { if (isSupportedAttachmentType(graphRequest.parameters.get((String) it2.next()))) { return false; } } } } return true; } static final boolean shouldWarnOnMissingFieldsParam(GraphRequest graphRequest) { String version2 = graphRequest.getVersion(); boolean z = true; if (Utility.isNullOrEmpty(version2)) { return true; } if (version2.startsWith("v")) { version2 = version2.substring(1); } String[] split = version2.split("\\."); if ((split.length < 2 || Integer.parseInt(split[0]) <= 2) && (Integer.parseInt(split[0]) < 2 || Integer.parseInt(split[1]) < 4)) { z = false; } return z; } static final void validateFieldsParamForGetRequests(GraphRequestBatch graphRequestBatch) { Iterator it = graphRequestBatch.iterator(); while (it.hasNext()) { GraphRequest graphRequest = (GraphRequest) it.next(); if (HttpMethod.GET.equals(graphRequest.getHttpMethod()) && shouldWarnOnMissingFieldsParam(graphRequest)) { Bundle parameters2 = graphRequest.getParameters(); String str = FIELDS_PARAM; if (!parameters2.containsKey(str) || Utility.isNullOrEmpty(parameters2.getString(str))) { Logger.log(LoggingBehavior.DEVELOPER_ERRORS, 5, "Request", "starting with Graph API v2.4, GET requests for /%s should contain an explicit \"fields\" parameter.", graphRequest.getGraphPath()); } } } } /* JADX WARNING: type inference failed for: r14v1, types: [java.io.OutputStream] */ /* JADX WARNING: type inference failed for: r14v2 */ /* JADX WARNING: type inference failed for: r1v2, types: [java.io.OutputStream, java.io.BufferedOutputStream] */ /* JADX WARNING: type inference failed for: r14v4 */ /* JADX WARNING: type inference failed for: r14v5, types: [java.io.OutputStream] */ /* JADX WARNING: type inference failed for: r4v2, types: [java.io.OutputStream] */ /* JADX WARNING: type inference failed for: r8v5, types: [java.io.OutputStream] */ /* JADX WARNING: type inference failed for: r14v6 */ /* JADX WARNING: type inference failed for: r14v7 */ /* JADX WARNING: type inference failed for: r14v8 */ /* JADX WARNING: type inference failed for: r14v9, types: [java.util.zip.GZIPOutputStream] */ /* JADX WARNING: type inference failed for: r14v10 */ /* JADX WARNING: type inference failed for: r14v11 */ /* JADX WARNING: Multi-variable type inference failed */ /* JADX WARNING: Removed duplicated region for block: B:30:0x00ca */ /* JADX WARNING: Unknown variable types count: 6 */ /* Code decompiled incorrectly, please refer to instructions dump. */ static final void serializeToUrlConnection(com.facebook.GraphRequestBatch r13, java.net.HttpURLConnection r14) throws java.io.IOException, org.json.JSONException { /* com.facebook.internal.Logger r6 = new com.facebook.internal.Logger com.facebook.LoggingBehavior r0 = com.facebook.LoggingBehavior.REQUESTS java.lang.String r1 = "Request" r6.<init>(r0, r1) int r2 = r13.size() boolean r5 = isGzipCompressible(r13) r0 = 0 r1 = 1 if (r2 != r1) goto L_0x001c com.facebook.GraphRequest r3 = r13.get(r0) com.facebook.HttpMethod r3 = r3.httpMethod goto L_0x001e L_0x001c: com.facebook.HttpMethod r3 = com.facebook.HttpMethod.POST L_0x001e: java.lang.String r4 = r3.name() r14.setRequestMethod(r4) setConnectionContentType(r14, r5) java.net.URL r4 = r14.getURL() java.lang.String r7 = "Request:\n" r6.append(r7) java.lang.String r7 = r13.getId() java.lang.String r8 = "Id" r6.appendKeyValue(r8, r7) java.lang.String r7 = "URL" r6.appendKeyValue(r7, r4) java.lang.String r7 = r14.getRequestMethod() java.lang.String r8 = "Method" r6.appendKeyValue(r8, r7) java.lang.String r7 = "User-Agent" java.lang.String r8 = r14.getRequestProperty(r7) r6.appendKeyValue(r7, r8) java.lang.String r7 = "Content-Type" java.lang.String r8 = r14.getRequestProperty(r7) r6.appendKeyValue(r7, r8) int r7 = r13.getTimeout() r14.setConnectTimeout(r7) int r7 = r13.getTimeout() r14.setReadTimeout(r7) com.facebook.HttpMethod r7 = com.facebook.HttpMethod.POST if (r3 != r7) goto L_0x006d r0 = 1 L_0x006d: if (r0 != 0) goto L_0x0073 r6.log() return L_0x0073: r14.setDoOutput(r1) r0 = 0 java.io.BufferedOutputStream r1 = new java.io.BufferedOutputStream // Catch:{ all -> 0x00c6 } java.io.OutputStream r14 = r14.getOutputStream() // Catch:{ all -> 0x00c6 } r1.<init>(r14) // Catch:{ all -> 0x00c6 } if (r5 == 0) goto L_0x008b java.util.zip.GZIPOutputStream r14 = new java.util.zip.GZIPOutputStream // Catch:{ all -> 0x0088 } r14.<init>(r1) // Catch:{ all -> 0x0088 } goto L_0x008c L_0x0088: r13 = move-exception r14 = r1 goto L_0x00c8 L_0x008b: r14 = r1 L_0x008c: boolean r0 = hasOnProgressCallbacks(r13) // Catch:{ all -> 0x00c4 } if (r0 == 0) goto L_0x00b6 com.facebook.ProgressNoopOutputStream r0 = new com.facebook.ProgressNoopOutputStream // Catch:{ all -> 0x00c4 } android.os.Handler r1 = r13.getCallbackHandler() // Catch:{ all -> 0x00c4 } r0.<init>(r1) // Catch:{ all -> 0x00c4 } r8 = 0 r7 = r13 r9 = r2 r10 = r4 r11 = r0 r12 = r5 processRequest(r7, r8, r9, r10, r11, r12) // Catch:{ all -> 0x00c4 } int r1 = r0.getMaxProgress() // Catch:{ all -> 0x00c4 } java.util.Map r10 = r0.getProgressMap() // Catch:{ all -> 0x00c4 } com.facebook.ProgressOutputStream r0 = new com.facebook.ProgressOutputStream // Catch:{ all -> 0x00c4 } long r11 = (long) r1 // Catch:{ all -> 0x00c4 } r7 = r0 r8 = r14 r9 = r13 r7.<init>(r8, r9, r10, r11) // Catch:{ all -> 0x00c4 } r14 = r0 L_0x00b6: r0 = r13 r1 = r6 r3 = r4 r4 = r14 processRequest(r0, r1, r2, r3, r4, r5) // Catch:{ all -> 0x00c4 } r14.close() r6.log() return L_0x00c4: r13 = move-exception goto L_0x00c8 L_0x00c6: r13 = move-exception r14 = r0 L_0x00c8: if (r14 == 0) goto L_0x00cd r14.close() L_0x00cd: throw r13 */ throw new UnsupportedOperationException("Method not decompiled: com.facebook.GraphRequest.serializeToUrlConnection(com.facebook.GraphRequestBatch, java.net.HttpURLConnection):void"); } private static void processRequest(GraphRequestBatch graphRequestBatch, Logger logger, int i, URL url, OutputStream outputStream, boolean z) throws IOException, JSONException { Serializer serializer = new Serializer(outputStream, logger, z); String str = " Attachments:\n"; if (i == 1) { GraphRequest graphRequest = graphRequestBatch.get(0); HashMap hashMap = new HashMap(); for (String str2 : graphRequest.parameters.keySet()) { Object obj = graphRequest.parameters.get(str2); if (isSupportedAttachmentType(obj)) { hashMap.put(str2, new Attachment(graphRequest, obj)); } } if (logger != null) { logger.append(" Parameters:\n"); } serializeParameters(graphRequest.parameters, serializer, graphRequest); if (logger != null) { logger.append(str); } serializeAttachments(hashMap, serializer); JSONObject jSONObject = graphRequest.graphObject; if (jSONObject != null) { processGraphObject(jSONObject, url.getPath(), serializer); return; } return; } String batchAppId = getBatchAppId(graphRequestBatch); if (!Utility.isNullOrEmpty(batchAppId)) { serializer.writeString("batch_app_id", batchAppId); HashMap hashMap2 = new HashMap(); serializeRequestsAsJSON(serializer, graphRequestBatch, hashMap2); if (logger != null) { logger.append(str); } serializeAttachments(hashMap2, serializer); return; } throw new FacebookException("App ID was not specified at the request or Settings."); } private static boolean isMeRequest(String str) { Matcher matcher = versionPattern.matcher(str); if (matcher.matches()) { str = matcher.group(1); } if (str.startsWith("me/") || str.startsWith("/me/")) { return true; } return false; } /* JADX WARNING: Removed duplicated region for block: B:12:0x0029 */ /* Code decompiled incorrectly, please refer to instructions dump. */ private static void processGraphObject(org.json.JSONObject r6, java.lang.String r7, com.facebook.GraphRequest.KeyValueSerializer r8) throws java.io.IOException { /* boolean r0 = isMeRequest(r7) r1 = 1 r2 = 0 if (r0 == 0) goto L_0x001e java.lang.String r0 = ":" int r0 = r7.indexOf(r0) java.lang.String r3 = "?" int r7 = r7.indexOf(r3) r3 = 3 if (r0 <= r3) goto L_0x001e r3 = -1 if (r7 == r3) goto L_0x001c if (r0 >= r7) goto L_0x001e L_0x001c: r7 = 1 goto L_0x001f L_0x001e: r7 = 0 L_0x001f: java.util.Iterator r0 = r6.keys() L_0x0023: boolean r3 = r0.hasNext() if (r3 == 0) goto L_0x0044 java.lang.Object r3 = r0.next() java.lang.String r3 = (java.lang.String) r3 java.lang.Object r4 = r6.opt(r3) if (r7 == 0) goto L_0x003f java.lang.String r5 = "image" boolean r5 = r3.equalsIgnoreCase(r5) if (r5 == 0) goto L_0x003f r5 = 1 goto L_0x0040 L_0x003f: r5 = 0 L_0x0040: processGraphObjectProperty(r3, r4, r8, r5) goto L_0x0023 L_0x0044: return */ throw new UnsupportedOperationException("Method not decompiled: com.facebook.GraphRequest.processGraphObject(org.json.JSONObject, java.lang.String, com.facebook.GraphRequest$KeyValueSerializer):void"); } private static void processGraphObjectProperty(String str, Object obj, KeyValueSerializer keyValueSerializer, boolean z) throws IOException { Class cls = obj.getClass(); if (JSONObject.class.isAssignableFrom(cls)) { JSONObject jSONObject = (JSONObject) obj; if (z) { Iterator keys = jSONObject.keys(); while (keys.hasNext()) { String str2 = (String) keys.next(); processGraphObjectProperty(String.format("%s[%s]", new Object[]{str, str2}), jSONObject.opt(str2), keyValueSerializer, z); } return; } String str3 = "id"; if (jSONObject.has(str3)) { processGraphObjectProperty(str, jSONObject.optString(str3), keyValueSerializer, z); return; } String str4 = "url"; if (jSONObject.has(str4)) { processGraphObjectProperty(str, jSONObject.optString(str4), keyValueSerializer, z); } else if (jSONObject.has(NativeProtocol.OPEN_GRAPH_CREATE_OBJECT_KEY)) { processGraphObjectProperty(str, jSONObject.toString(), keyValueSerializer, z); } } else if (JSONArray.class.isAssignableFrom(cls)) { JSONArray jSONArray = (JSONArray) obj; int length = jSONArray.length(); for (int i = 0; i < length; i++) { processGraphObjectProperty(String.format(Locale.ROOT, "%s[%d]", new Object[]{str, Integer.valueOf(i)}), jSONArray.opt(i), keyValueSerializer, z); } } else if (String.class.isAssignableFrom(cls) || Number.class.isAssignableFrom(cls) || Boolean.class.isAssignableFrom(cls)) { keyValueSerializer.writeString(str, obj.toString()); } else if (Date.class.isAssignableFrom(cls)) { keyValueSerializer.writeString(str, new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.US).format((Date) obj)); } } private static void serializeParameters(Bundle bundle, Serializer serializer, GraphRequest graphRequest) throws IOException { for (String str : bundle.keySet()) { Object obj = bundle.get(str); if (isSupportedParameterType(obj)) { serializer.writeObject(str, obj, graphRequest); } } } private static void serializeAttachments(Map<String, Attachment> map, Serializer serializer) throws IOException { for (String str : map.keySet()) { Attachment attachment = (Attachment) map.get(str); if (isSupportedAttachmentType(attachment.getValue())) { serializer.writeObject(str, attachment.getValue(), attachment.getRequest()); } } } private static void serializeRequestsAsJSON(Serializer serializer, Collection<GraphRequest> collection, Map<String, Attachment> map) throws JSONException, IOException { JSONArray jSONArray = new JSONArray(); for (GraphRequest serializeToBatch : collection) { serializeToBatch.serializeToBatch(jSONArray, map); } serializer.writeRequestsAsJson("batch", jSONArray, collection); } private static String getMimeContentType() { return String.format("multipart/form-data; boundary=%s", new Object[]{MIME_BOUNDARY}); } private static String getUserAgent() { if (userAgent == null) { userAgent = String.format("%s.%s", new Object[]{"FBAndroidSDK", "4.41.0"}); String customUserAgent = InternalSettings.getCustomUserAgent(); if (!Utility.isNullOrEmpty(customUserAgent)) { userAgent = String.format(Locale.ROOT, "%s/%s", new Object[]{userAgent, customUserAgent}); } } return userAgent; } private static String getBatchAppId(GraphRequestBatch graphRequestBatch) { if (!Utility.isNullOrEmpty(graphRequestBatch.getBatchApplicationId())) { return graphRequestBatch.getBatchApplicationId(); } Iterator it = graphRequestBatch.iterator(); while (it.hasNext()) { AccessToken accessToken2 = ((GraphRequest) it.next()).accessToken; if (accessToken2 != null) { String applicationId = accessToken2.getApplicationId(); if (applicationId != null) { return applicationId; } } } if (!Utility.isNullOrEmpty(defaultBatchApplicationId)) { return defaultBatchApplicationId; } return FacebookSdk.getApplicationId(); } private static boolean isSupportedAttachmentType(Object obj) { return (obj instanceof Bitmap) || (obj instanceof byte[]) || (obj instanceof Uri) || (obj instanceof ParcelFileDescriptor) || (obj instanceof ParcelableResourceWithMimeType); } /* access modifiers changed from: private */ public static boolean isSupportedParameterType(Object obj) { return (obj instanceof String) || (obj instanceof Boolean) || (obj instanceof Number) || (obj instanceof Date); } /* access modifiers changed from: private */ public static String parameterToString(Object obj) { if (obj instanceof String) { return (String) obj; } if ((obj instanceof Boolean) || (obj instanceof Number)) { return obj.toString(); } if (obj instanceof Date) { return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.US).format(obj); } throw new IllegalArgumentException("Unsupported parameter type."); } }
[ "33246398+ajid951125@users.noreply.github.com" ]
33246398+ajid951125@users.noreply.github.com
14a411daa00e5c0a74806606d984678cf17adf3e
2f3058edac082744263caace1d01aa42e9b48512
/patterns/src/observer/Observable.java
0f15c6ee13b1c17b5f1fb6fd26e464bb3937b720
[ "MIT" ]
permissive
Petretooo/design-patterns
8af18a3a902f8b5b14c7c54c5c5ea4ea611b8518
191e14ba88fdba5c055bc192179e11138e4497f8
refs/heads/main
2023-04-16T20:49:40.229475
2021-05-04T21:18:39
2021-05-04T21:18:39
357,781,750
1
0
null
null
null
null
UTF-8
Java
false
false
203
java
package observer; public interface Observable { public void subscribe(Observer observer); public void unsubscribe(Observer observer); public void notifySubscribers(); public Movie getMovie(); }
[ "P37arAn93l0bv!" ]
P37arAn93l0bv!
824b92e457ebed153dd1d27b2095a89439fa6b04
75593b14f408a7cf625557c85895fe0f1397c260
/src/main/java/ru/ricksanchez/ConsoleEventLogger.java
3208545c86a1704c72a7ef6ced6a07235358cbf0
[]
no_license
MRCoolZero/SpringFramework
3ef885842fbbc3b18f917d50751e7fbbad5ff0ae
ba75af64876cea95522275fc1c7b4cb630bbcf5e
refs/heads/master
2022-01-24T10:02:25.627690
2019-05-12T12:48:29
2019-05-12T12:48:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
138
java
package ru.ricksanchez; public class ConsoleEventLogger { public void logEvent(String msg){ System.out.println(msg); } }
[ "andersen.e@bk.ru" ]
andersen.e@bk.ru
874fc66a9f98731aa35c17820c12a45f52019c35
0dcc740858943bbf6a262a55e215666d091d6c15
/sources/server/src/main/java/net/minecraft/block/BlockShulkerBox.java
0b1158b457925a934bdd8897f3dee41ce48f34fc
[]
no_license
Akarin-project/AkarinForge
270a68769431c819d999ac178517d931205c77d7
2804aa89e3c058d7db196424811beeac5622f6fd
refs/heads/1.12.2.1
2021-06-03T10:06:07.461702
2020-04-01T19:21:51
2020-04-01T19:21:51
178,516,032
33
7
null
2020-04-01T19:50:52
2019-03-30T05:31:31
Java
UTF-8
Java
false
false
14,850
java
package net.minecraft.block; import java.util.List; import javax.annotation.Nullable; import net.minecraft.block.material.EnumPushReaction; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.properties.PropertyEnum; import net.minecraft.block.state.BlockFaceShape; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.client.util.ITooltipFlag; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.ItemStackHelper; import net.minecraft.item.EnumDyeColor; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.stats.StatList; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntityShulkerBox; import net.minecraft.util.EnumBlockRenderType; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.Mirror; import net.minecraft.util.NonNullList; import net.minecraft.util.Rotation; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.translation.I18n; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BlockShulkerBox extends BlockContainer { public static final PropertyEnum<EnumFacing> FACING = PropertyDirection.create("facing"); public final EnumDyeColor color; public BlockShulkerBox(EnumDyeColor colorIn) { super(Material.ROCK, MapColor.AIR); this.color = colorIn; this.setCreativeTab(CreativeTabs.DECORATIONS); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.UP)); } public TileEntity createNewTileEntity(World worldIn, int meta) { return new TileEntityShulkerBox(this.color); } public boolean isOpaqueCube(IBlockState state) { return false; } public boolean causesSuffocation(IBlockState state) { return true; } public boolean isFullCube(IBlockState state) { return false; } @SideOnly(Side.CLIENT) public boolean hasCustomBreakingProgress(IBlockState state) { return true; } public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.ENTITYBLOCK_ANIMATED; } public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if (worldIn.isRemote) { return true; } else if (playerIn.isSpectator()) { return true; } else { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof TileEntityShulkerBox) { EnumFacing enumfacing = (EnumFacing)state.getValue(FACING); boolean flag; if (((TileEntityShulkerBox)tileentity).getAnimationStatus() == TileEntityShulkerBox.AnimationStatus.CLOSED) { AxisAlignedBB axisalignedbb = FULL_BLOCK_AABB.expand((double)(0.5F * (float)enumfacing.getFrontOffsetX()), (double)(0.5F * (float)enumfacing.getFrontOffsetY()), (double)(0.5F * (float)enumfacing.getFrontOffsetZ())).contract((double)enumfacing.getFrontOffsetX(), (double)enumfacing.getFrontOffsetY(), (double)enumfacing.getFrontOffsetZ()); flag = !worldIn.collidesWithAnyBlock(axisalignedbb.offset(pos.offset(enumfacing))); } else { flag = true; } if (flag) { playerIn.addStat(StatList.OPEN_SHULKER_BOX); playerIn.displayGUIChest((IInventory)tileentity); } return true; } else { return false; } } } public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, facing); } protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); } public int getMetaFromState(IBlockState state) { return ((EnumFacing)state.getValue(FACING)).getIndex(); } public IBlockState getStateFromMeta(int meta) { EnumFacing enumfacing = EnumFacing.getFront(meta); return this.getDefaultState().withProperty(FACING, enumfacing); } public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player) { if (worldIn.getTileEntity(pos) instanceof TileEntityShulkerBox) { TileEntityShulkerBox tileentityshulkerbox = (TileEntityShulkerBox)worldIn.getTileEntity(pos); tileentityshulkerbox.setDestroyedByCreativePlayer(player.capabilities.isCreativeMode); tileentityshulkerbox.fillWithLoot(player); } } // CraftBukkit start - override to prevent duplication when dropping public void dropBlockAsItemWithChance(World world, BlockPos blockposition, IBlockState iblockdata, float f, int i) { TileEntity tileentity = world.getTileEntity(blockposition); if (tileentity instanceof TileEntityShulkerBox) { TileEntityShulkerBox tileentityshulkerbox = (TileEntityShulkerBox) tileentity; if (!tileentityshulkerbox.isCleared() && tileentityshulkerbox.shouldDrop()) { ItemStack itemstack = new ItemStack(Item.getItemFromBlock(this)); NBTTagCompound nbttagcompound = new NBTTagCompound(); NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound.setTag("BlockEntityTag", ((TileEntityShulkerBox) tileentity).saveToNbt(nbttagcompound1)); itemstack.setTagCompound(nbttagcompound); if (tileentityshulkerbox.hasCustomName()) { itemstack.setStackDisplayName(tileentityshulkerbox.getName()); tileentityshulkerbox.setCustomName(""); } spawnAsEntity(world, blockposition, itemstack); tileentityshulkerbox.clear(); // Paper - This was intended to be called in Vanilla (is checked in the if statement above if has been called) - Fixes dupe issues } world.updateComparatorOutputLevel(blockposition, iblockdata.getBlock()); } } // CraftBukkit end public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { if (stack.hasDisplayName()) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof TileEntityShulkerBox) { ((TileEntityShulkerBox)tileentity).setCustomName(stack.getDisplayName()); } } } public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { TileEntity tileentity = worldIn.getTileEntity(pos); if (false && tileentity instanceof TileEntityShulkerBox) // CraftBukkit - moved up { TileEntityShulkerBox tileentityshulkerbox = (TileEntityShulkerBox)tileentity; if (!tileentityshulkerbox.isCleared() && tileentityshulkerbox.shouldDrop()) { ItemStack itemstack = new ItemStack(Item.getItemFromBlock(this)); NBTTagCompound nbttagcompound = new NBTTagCompound(); NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound.setTag("BlockEntityTag", ((TileEntityShulkerBox)tileentity).saveToNbt(nbttagcompound1)); itemstack.setTagCompound(nbttagcompound); if (tileentityshulkerbox.hasCustomName()) { itemstack.setStackDisplayName(tileentityshulkerbox.getName()); tileentityshulkerbox.setCustomName(""); } spawnAsEntity(worldIn, pos, itemstack); } worldIn.updateComparatorOutputLevel(pos, state.getBlock()); } worldIn.updateComparatorOutputLevel(pos, state.getBlock()); // CraftBukkit - moved down super.breakBlock(worldIn, pos, state); } @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World player, List<String> tooltip, ITooltipFlag advanced) { super.addInformation(stack, player, tooltip, advanced); NBTTagCompound nbttagcompound = stack.getTagCompound(); if (nbttagcompound != null && nbttagcompound.hasKey("BlockEntityTag", 10)) { NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag("BlockEntityTag"); if (nbttagcompound1.hasKey("LootTable", 8)) { tooltip.add("???????"); } if (nbttagcompound1.hasKey("Items", 9)) { NonNullList<ItemStack> nonnulllist = NonNullList.<ItemStack>withSize(27, ItemStack.EMPTY); ItemStackHelper.loadAllItems(nbttagcompound1, nonnulllist); int i = 0; int j = 0; for (ItemStack itemstack : nonnulllist) { if (!itemstack.isEmpty()) { ++j; if (i <= 4) { ++i; tooltip.add(String.format("%s x%d", itemstack.getDisplayName(), itemstack.getCount())); } } } if (j - i > 0) { tooltip.add(String.format(TextFormatting.ITALIC + I18n.translateToLocal("container.shulkerBox.more"), j - i)); } } } } public EnumPushReaction getMobilityFlag(IBlockState state) { return EnumPushReaction.DESTROY; } public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { TileEntity tileentity = source.getTileEntity(pos); return tileentity instanceof TileEntityShulkerBox ? ((TileEntityShulkerBox)tileentity).getBoundingBox(state) : FULL_BLOCK_AABB; } public boolean hasComparatorInputOverride(IBlockState state) { return true; } public int getComparatorInputOverride(IBlockState blockState, World worldIn, BlockPos pos) { return Container.calcRedstoneFromInventory((IInventory)worldIn.getTileEntity(pos)); } public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state) { ItemStack itemstack = super.getItem(worldIn, pos, state); TileEntityShulkerBox tileentityshulkerbox = (TileEntityShulkerBox)worldIn.getTileEntity(pos); NBTTagCompound nbttagcompound = tileentityshulkerbox.saveToNbt(new NBTTagCompound()); if (!nbttagcompound.hasNoTags()) { itemstack.setTagInfo("BlockEntityTag", nbttagcompound); } return itemstack; } public static Block getBlockByColor(EnumDyeColor colorIn) { switch (colorIn) { case WHITE: return Blocks.WHITE_SHULKER_BOX; case ORANGE: return Blocks.ORANGE_SHULKER_BOX; case MAGENTA: return Blocks.MAGENTA_SHULKER_BOX; case LIGHT_BLUE: return Blocks.LIGHT_BLUE_SHULKER_BOX; case YELLOW: return Blocks.YELLOW_SHULKER_BOX; case LIME: return Blocks.LIME_SHULKER_BOX; case PINK: return Blocks.PINK_SHULKER_BOX; case GRAY: return Blocks.GRAY_SHULKER_BOX; case SILVER: return Blocks.SILVER_SHULKER_BOX; case CYAN: return Blocks.CYAN_SHULKER_BOX; case PURPLE: default: return Blocks.PURPLE_SHULKER_BOX; case BLUE: return Blocks.BLUE_SHULKER_BOX; case BROWN: return Blocks.BROWN_SHULKER_BOX; case GREEN: return Blocks.GREEN_SHULKER_BOX; case RED: return Blocks.RED_SHULKER_BOX; case BLACK: return Blocks.BLACK_SHULKER_BOX; } } @SideOnly(Side.CLIENT) public static EnumDyeColor getColorFromItem(Item itemIn) { return getColorFromBlock(Block.getBlockFromItem(itemIn)); } public static ItemStack getColoredItemStack(EnumDyeColor colorIn) { return new ItemStack(getBlockByColor(colorIn)); } @SideOnly(Side.CLIENT) public static EnumDyeColor getColorFromBlock(Block blockIn) { return blockIn instanceof BlockShulkerBox ? ((BlockShulkerBox)blockIn).getColor() : EnumDyeColor.PURPLE; } public IBlockState withRotation(IBlockState state, Rotation rot) { return state.withProperty(FACING, rot.rotate((EnumFacing)state.getValue(FACING))); } public IBlockState withMirror(IBlockState state, Mirror mirrorIn) { return state.withRotation(mirrorIn.toRotation((EnumFacing)state.getValue(FACING))); } public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) { state = this.getActualState(state, worldIn, pos); EnumFacing enumfacing = (EnumFacing)state.getValue(FACING); TileEntityShulkerBox.AnimationStatus tileentityshulkerbox$animationstatus = ((TileEntityShulkerBox)worldIn.getTileEntity(pos)).getAnimationStatus(); return tileentityshulkerbox$animationstatus != TileEntityShulkerBox.AnimationStatus.CLOSED && (tileentityshulkerbox$animationstatus != TileEntityShulkerBox.AnimationStatus.OPENED || enumfacing != face.getOpposite() && enumfacing != face) ? BlockFaceShape.UNDEFINED : BlockFaceShape.SOLID; } @SideOnly(Side.CLIENT) public EnumDyeColor getColor() { return this.color; } }
[ "i@omc.hk" ]
i@omc.hk
b4fb94a2d928ab150a8372382b4cff85e2874e6b
818ddf3578e7a22ee7d823f1c16602c9212b26ad
/pet-clinic-data/src/main/java/software/jsj/petclinic/services/PetTypeService.java
41bc806407b1fa69f84f69a6a9014698c3ef142d
[]
no_license
jsj26364/jj-pet-clinic
eb7cfae3c0e7ac7b297faa3934b28f2215da8f46
9aa71d5421f80908a824ca35f33e734d10bf12a6
refs/heads/master
2020-06-19T23:51:33.118001
2019-08-23T04:12:34
2019-08-23T04:12:34
196,917,951
0
0
null
2019-08-20T15:22:21
2019-07-15T03:33:39
Java
UTF-8
Java
false
false
204
java
/** * */ package software.jsj.petclinic.services; import software.jsj.petclinic.model.PetType; /** * @author jsjackson * */ public interface PetTypeService extends CrudService<PetType, Long> { }
[ "jsj26364@gmail.com" ]
jsj26364@gmail.com
9fd11ff60c593e1bc779967b9455734b14b9f4dc
064d73a17a553efeda26bc9aa7ff7833ff371d48
/CommonClient/src/main/java/ru/nsu/ccfit/radeev/commonclient/clientdescription/tables/buildingobject/Show.java
33d47d941d364fb551e4bdcb3379a5f4c811a868
[]
no_license
ALYAMBR/BD_building_organization
6a56002f81c53000961f5dcfe1fc8d16c865aad9
475eee9cb25896e0e219c604e6f323e0be02be1e
refs/heads/master
2022-07-27T23:14:17.371571
2020-05-13T10:04:07
2020-05-13T10:04:07
263,591,283
0
0
null
null
null
null
UTF-8
Java
false
false
611
java
package ru.nsu.ccfit.radeev.commonclient.clientdescription.tables.buildingobject; import ru.nsu.ccfit.radeev.commonclient.database.framework.core.visual.TableVisual; import ru.nsu.ccfit.radeev.commonclient.view.mainform.MainShow; import javax.swing.*; import java.sql.SQLException; public class Show implements MainShow { private final Table table; private final JComponent representation; public Show() throws SQLException { table = new Table(); representation = new TableVisual(table); } public JComponent getRepresentation() { return representation; } }
[ "rdvnkt@yandex.ru" ]
rdvnkt@yandex.ru
9d52af21c545c736721ca227644d179756c1e6b2
b69d0258ff1e280720dbaa22948a525057657638
/src/nbs/Analysis.java
8fb31672768ace7f52d5c7a06b977fcd7b64ac92
[]
no_license
aghontpi/NBS-Entry
a8ae1849f8bebf1c1458dacba335125bd343930b
ddc63095e1a2232d50e28405c25934483d8d58bc
refs/heads/master
2021-09-12T22:09:33.994646
2018-04-21T13:13:12
2018-04-21T13:13:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
13,733
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 nbs; import java.io.File; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Level; import java.util.logging.Logger; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartFrame; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; /** * * @author Zero */ public class Analysis extends javax.swing.JFrame { /** * Creates new form Analysis */ public Analysis() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); sdd = new org.jdesktop.swingx.JXDatePicker(); edd = new org.jdesktop.swingx.JXDatePicker(); an = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); vn = new javax.swing.JComboBox<>(); jLabel2 = new javax.swing.JLabel(); s = new javax.swing.JCheckBox(); m = new javax.swing.JLabel(); d = new javax.swing.JLabel(); ma = new javax.swing.JLabel(); e = new javax.swing.JLabel(); ef = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setMinimumSize(new java.awt.Dimension(500, 500)); setPreferredSize(new java.awt.Dimension(900, 900)); getContentPane().setLayout(null); jLabel1.setFont(new java.awt.Font("Myriad Pro", 3, 14)); // NOI18N jLabel1.setText("Range"); getContentPane().add(jLabel1); jLabel1.setBounds(31, 47, 76, 15); getContentPane().add(sdd); sdd.setBounds(166, 43, 110, 22); getContentPane().add(edd); edd.setBounds(166, 91, 110, 22); an.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N an.setText("Submit"); an.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { anActionPerformed(evt); } }); getContentPane().add(an); an.setBounds(280, 360, 89, 38); jButton1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jButton1.setText("Back"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1); jButton1.setBounds(445, 360, 80, 38); vn.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "V1", "V2", "V3", "V4" })); getContentPane().add(vn); vn.setBounds(166, 217, 114, 20); jLabel2.setFont(new java.awt.Font("Myriad Pro", 3, 14)); // NOI18N jLabel2.setText("Single report"); getContentPane().add(jLabel2); jLabel2.setBounds(31, 178, 76, 20); s.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N s.setText("one vheical"); getContentPane().add(s); s.setBounds(166, 177, 120, 23); m.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N getContentPane().add(m); m.setBounds(358, 44, 179, 24); d.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N getContentPane().add(d); d.setBounds(358, 86, 179, 27); ma.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N getContentPane().add(ma); ma.setBounds(358, 131, 179, 26); e.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N getContentPane().add(e); e.setBounds(358, 202, 179, 29); ef.setFont(new java.awt.Font("Myriad Pro", 1, 14)); // NOI18N getContentPane().add(ef); ef.setBounds(350, 250, 179, 28); pack(); }// </editor-fold>//GEN-END:initComponents private void anActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_anActionPerformed try { // TODO add your handling code here: //starting date Date oDate = sdd.getDate(); DateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); String sd = sdf.format(oDate); //ending date Date ioDate = edd.getDate(); DateFormat sdf1 = new SimpleDateFormat("dd-MM-yyyy"); String ed = sdf1.format(ioDate); String vname = (String) vn.getSelectedItem(); /*int thour=Integer.parseInt(th.getText()); //thour is total hour ruunned int tdieselrate=Integer.parseInt(tdr.getText()); //tdr is total diesel rate int dquantity=Integer.parseInt(dq.getText());*/ int v1r = 0, v2r = 0, v3r = 0, v4r = 0, v1d = 0, v2d = 0, v3d = 0, v4d = 0, v1e = 0, v2e = 0, v3e = 0, v4e = 0, v1m = 0, v2m = 0, v4m = 0, v3m = 0; //tq is diesel quantity final String v1 = "V1"; final String v2 = "V2"; final String v3 = "V3"; final String v4 = "V4"; final String rh = "Running Hour"; final String er = "Earning"; final String dq = "Diesel Quantity"; final String mi = "Maintance"; //database connection Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost/test", "root", ""); if (s.isSelected()) { PreparedStatement pst = con.prepareStatement("SELECT * FROM hit WHERE (Date BETWEEN ? AND ?) AND vn=?"); pst.setString(1, sd); pst.setString(2, ed); pst.setString(3, vname); ResultSet r = pst.executeQuery(); float z=0;int c=0; while (r.next()) { v1r = v1r + r.getInt(7); //desel z=z+r.getInt(9); //hr c=c+r.getInt(7); v1d = v1d + (r.getInt(8) * r.getInt(9)); v1e = v1e + r.getInt(10); v1m = v1m + r.getInt(12); } c=c*60; System.out.println(z+"--"+c); z=z/c; z=z*60; m.setText("Total Running Hours : \t" + v1r); d.setText("Total Diesel : \t" + v1d); ma.setText("Total Maintance : \t" + v1m); e.setText("Total Earning Amount: \t" + v1e); ef.setText("Avg fuel per Hr: \t" + z); } else { PreparedStatement pst = con.prepareStatement("SELECT * FROM hit WHERE Date BETWEEN ? AND ?"); pst.setString(1, sd); pst.setString(2, ed); ResultSet r = pst.executeQuery(); while (r.next()) { if ("v1".equals(r.getString(2))) { v1r = v1r + r.getInt(7) * 1000; v1d = v1d + (r.getInt(8) * r.getInt(9)); v1e = v1e + r.getInt(10); v1m = v1m + r.getInt(12) * 10; } if ("v2".equals(r.getString(2))) { v2r = v2r + r.getInt(7) * 1000; v2d = v2d + (r.getInt(8) * r.getInt(9)); v2e = v2e + r.getInt(10); v2m = v2m + r.getInt(12) * 10; } if ("v3".equals(r.getString(2))) { v3r = v3r + r.getInt(7) * 1000; v3d = v3d + (r.getInt(8) * r.getInt(9)); v3e = v3e + r.getInt(10); v3m = v3m + r.getInt(12) * 10; } if ("v4".equals(r.getString(2))) { v4r = v4r + r.getInt(7) * 1000; v4d = v4d + (r.getInt(8) * r.getInt(9)); v4e = v4e + r.getInt(10); v4m = v4m + r.getInt(12) * 10; } } final DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(v1r, v1, rh); dataset.addValue(v1m, v1, mi); dataset.addValue(v1e, v1, er); dataset.addValue(v1d, v1, dq); dataset.addValue(v2r, v2, rh); dataset.addValue(v2m, v2, mi); dataset.addValue(v2e, v2, er); dataset.addValue(v2d, v2, dq); dataset.addValue(v3r, v3, rh); dataset.addValue(v3m, v3, mi); dataset.addValue(v3e, v3, er); dataset.addValue(v3d, v3, dq); dataset.addValue(v4r, v4, rh); dataset.addValue(v4m, v4, mi); dataset.addValue(v4e, v4, er); dataset.addValue(v4d, v4, dq); System.out.print(v4d + "--" + v1d); JFreeChart barChart = ChartFactory.createBarChart( "Excavators USAGE STATISTICS", "Vehicle Names", "Amount", dataset, PlotOrientation.VERTICAL, true, true, false); try { CategoryPlot p = (CategoryPlot) barChart.getPlot(); ChartFrame f = new ChartFrame("Excavators USAGE STATISTICS", barChart); f.setVisible(true); f.setSize(600, 700); } catch (Exception e) { System.err.println("Got an exception!"); System.err.println(e.getMessage()); } int width = 640; /* Width of the image */ int height = 480; /* Height of the image */ File BarChart = new File("F:/Bill/" + sd + "to" + ed + ".jpeg"); ChartUtilities.saveChartAsJPEG(BarChart, barChart, width, height); } } catch (IOException ex) { Logger.getLogger(Analysis.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(Analysis.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(Analysis.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_anActionPerformed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed // TODO add your handling code here: Start main = new Start(); main.setVisible(true); setVisible(false); }//GEN-LAST:event_jButton1ActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(Analysis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Analysis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Analysis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Analysis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new Analysis().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton an; private javax.swing.JLabel d; private javax.swing.JLabel e; private org.jdesktop.swingx.JXDatePicker edd; private javax.swing.JLabel ef; private javax.swing.JButton jButton1; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel m; private javax.swing.JLabel ma; private javax.swing.JCheckBox s; private org.jdesktop.swingx.JXDatePicker sdd; private javax.swing.JComboBox<String> vn; // End of variables declaration//GEN-END:variables }
[ "anandrms4u@gmail.com" ]
anandrms4u@gmail.com
07d191833a0b92fe6a69a969f9791f13b08e0c2b
50662b0c19783116ced4149c102d57b117ee6da9
/src/main/java/softuni/fundexamprep/service/impl/ItemServiceImpl.java
a9199e4c71521b7d7ec5e0f13fd0629f64fe6886
[]
no_license
StilyanKirilov/MVC-simple-web-app
80494752ad5cea8929b45ad15703840759bef494
63032982781476602d0d0bcad69a574a2424048b
refs/heads/master
2022-12-16T18:34:40.559507
2020-09-13T13:47:44
2020-09-13T13:47:44
295,158,919
1
0
null
null
null
null
UTF-8
Java
false
false
2,897
java
package softuni.fundexamprep.service.impl; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import softuni.fundexamprep.model.entity.Category; import softuni.fundexamprep.model.entity.Item; import softuni.fundexamprep.model.service.CategoryServiceModel; import softuni.fundexamprep.model.service.ItemServiceModel; import softuni.fundexamprep.model.view.ItemViewModel; import softuni.fundexamprep.repository.ItemRepository; import softuni.fundexamprep.service.CategoryService; import softuni.fundexamprep.service.ItemService; import java.util.List; import java.util.stream.Collectors; @Service public class ItemServiceImpl implements ItemService { private final ItemRepository itemRepository; private final ModelMapper modelMapper; private final CategoryService categoryService; @Autowired public ItemServiceImpl(ItemRepository itemRepository, ModelMapper modelMapper, CategoryService categoryService) { this.itemRepository = itemRepository; this.modelMapper = modelMapper; this.categoryService = categoryService; } @Override public ItemServiceModel addItem(ItemServiceModel itemServiceModel) { CategoryServiceModel category = this.categoryService .getCategoryByCategoryName(itemServiceModel.getCategory().getCategoryName()); itemServiceModel.setCategory(category); Item item = this.modelMapper.map(itemServiceModel, Item.class); return this.modelMapper.map(this.itemRepository.saveAndFlush(item), ItemServiceModel.class); } @Override public List<ItemViewModel> findAllItems() { return this.itemRepository .findAll() .stream() .map(item -> { ItemViewModel itemViewModel = this.modelMapper .map(item, ItemViewModel.class); itemViewModel.setImgUrl(String .format("/img/%s-%s.jpg", item.getGender(), item.getCategory().getCategoryName().name())); return itemViewModel; }) .collect(Collectors.toList()); } @Override public ItemViewModel findById(String id) { return this.itemRepository.findById(id) .map(item -> { ItemViewModel itemViewModel = this.modelMapper .map(item, ItemViewModel.class); itemViewModel.setImgUrl(String.format("/img/%s-%s.jpg", item.getGender(), item.getCategory().getCategoryName().name())); return itemViewModel; }).orElse(null); } @Override public void deleteItemById(String id) { this.itemRepository.deleteById(id); } }
[ "60314753+StilyanKirilov@users.noreply.github.com" ]
60314753+StilyanKirilov@users.noreply.github.com
9ad28fe0b04b311ed63ce40c00215939735f8419
8a13fae5f71f1a3acc782fa84df896db654237d5
/src/main/java/sk/styk/martin/bakalarka/utils/data/DifferencePair.java
7643328e109d827b8198bdbd9104fa69aac3d8bf
[]
no_license
simonliyu/ApkAnalyzer
e20be0260f831346cd9606cd47ac52c00e2f96c1
810c27850a5070d68848cb27b96dbe8ce5719d88
refs/heads/master
2021-05-16T03:22:48.222361
2016-03-10T03:33:38
2016-03-10T03:33:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,539
java
package sk.styk.martin.bakalarka.utils.data; /** * Created by Martin Styk on 27.01.2016. */ public class DifferencePair<A, B> { private A valueA; private B valueB; public DifferencePair(A valueA, B valueB) { this.valueA = valueA; this.valueB = valueB; } public int hashCode() { int hashFirst = valueA != null ? valueA.hashCode() : 0; int hashSecond = valueB != null ? valueB.hashCode() : 0; return (hashFirst + hashSecond) * hashSecond + hashFirst; } public boolean equals(Object other) { if (other instanceof DifferencePair) { DifferencePair otherPair = (DifferencePair) other; return ((this.valueA == otherPair.valueA || (this.valueA != null && otherPair.valueA != null && this.valueA.equals(otherPair.valueA))) && (this.valueB == otherPair.valueB || (this.valueB != null && otherPair.valueB != null && this.valueB.equals(otherPair.valueB)))); } return false; } public A getValueA() { return valueA; } public void setValueA(A valueA) { this.valueA = valueA; } public B getValueB() { return valueB; } public void setValueB(B valueB) { this.valueB = valueB; } public String toString() { return "(" + valueA + ", " + valueB + ")"; } }
[ "martin.styk@gmail.com" ]
martin.styk@gmail.com
1d056207dd2b8cadc029a67725e04184df1e9670
f3c2f48aca6b1c100b89114c676f68a0cd615e83
/diary-eureka-service-history/src/main/java/com/example/demo/history/HService.java
156c38f8f50006c8b7c5241a043341a3f346c996
[]
no_license
ghostxsl/spring-cloud-diary
d416a777b6ba8c5513ca4603b8925ac998b8740e
90f474dc79f1af09868ec505555af8b05d587649
refs/heads/master
2021-01-21T14:40:38.591987
2017-06-26T11:48:57
2017-06-26T11:48:57
95,414,106
0
0
null
null
null
null
UTF-8
Java
false
false
2,296
java
package com.example.demo.history; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springframework.stereotype.Service; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; @Service public class HService { @Autowired private JdbcTemplate jdbcTemplate; public List<Hhistory> getlist(String account) { String sql = "SELECT * FROM history WHERE useraccount = '" + account + "'"; return (List<Hhistory>) jdbcTemplate.query(sql, new RowMapper<Hhistory>() { @Override public Hhistory mapRow(ResultSet rs, int rowNum) throws SQLException { Hhistory hi = new Hhistory(); hi.setHistoryid(rs.getInt("historyid")); hi.setFilename(rs.getString("filename")); hi.setDate(rs.getString("date")); hi.setUseraccount(rs.getString("useraccount")); hi.setUsertext(rs.getString("usertext")); return hi; } }); } public String getsave(String filename, String date, String account, String usertext) { String sql = "INSERT INTO history(filename,date,useraccount,usertext) values('" + filename + "','" + date + "','" + account + "','" + usertext + "')"; try { jdbcTemplate.update(sql); } catch (Exception e) { return "f"; } return "t"; } public List<Hhistory> lookup(String account, String filename) { String sql = "SELECT * FROM history WHERE useraccount = '" + account + "' AND filename = '"+filename+"'"; return (List<Hhistory>) jdbcTemplate.query(sql, new RowMapper<Hhistory>() { @Override public Hhistory mapRow(ResultSet rs, int rowNum) throws SQLException { Hhistory hi = new Hhistory(); hi.setHistoryid(rs.getInt("historyid")); hi.setFilename(rs.getString("filename")); hi.setDate(rs.getString("date")); hi.setUseraccount(rs.getString("useraccount")); hi.setUsertext(rs.getString("usertext")); return hi; } }); } }
[ "451323469@qq.com" ]
451323469@qq.com
46f5ceb503bf9f1a117d5f0148b51c6bf47c7f75
79478995973cc469ba1e231d6cf0f62bc39e744f
/src/com/bala/inventory/dao/DaoOperationsImpl.java
75497bdf7416a67c4563c555c055bb7deb4242a7
[]
no_license
balasai306/inventory
df7adeebd8edd240fcf2052460deeb942e838f56
3d9ce99d5468104406ced62f14973f74c3a74f44
refs/heads/master
2023-04-26T04:12:18.532482
2021-05-16T10:54:47
2021-05-16T10:54:47
367,853,935
0
0
null
null
null
null
UTF-8
Java
false
false
3,834
java
package com.bala.inventory.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import com.bala.inventory.exceptions.CustomException; import com.bala.inventory.model.Product; import com.bala.inventory.utility.Closing; import com.bala.inventory.utility.Connector; public class DaoOperationsImpl implements DaoOperations { Connector connection = new Connector(); Closing close = new Closing(); @Override public int addProduct(String name, int quantity, int price) throws CustomException { // TODO Auto-generated method stub PreparedStatement psmt = null; Connection con = null; String sql = "insert into products (pname,quantity,price) values(?,?,?)"; int count = 0; try { con = connection.getConnection(); psmt = con.prepareStatement(sql); psmt.setString(1, name); psmt.setInt(2, quantity); psmt.setInt(3, price); count = psmt.executeUpdate(); } catch (SQLException e) { throw new CustomException("SQL exception occured in addProduct "); } catch (CustomException e) { throw new CustomException("exception occured in addProduct"); } finally { close.closeConnection(psmt); close.closeConnection(con); } return count; } @Override public int updateProduct(int quantity, int id) throws CustomException { String sql = "update products set quantity=? where id=?"; int count = 0; Connector connection = new Connector(); Connection con = null; PreparedStatement psmt = null; try { con = connection.getConnection(); psmt = con.prepareStatement(sql); psmt.setInt(1, quantity); psmt.setInt(2, id); count = psmt.executeUpdate(); } catch (SQLException e) { throw new CustomException("SQL exception occured during updation"); } catch (CustomException e) { throw new CustomException("exception occured in updation Product"); } finally { close.closeConnection(psmt); close.closeConnection(con); } return count; } @Override public List<Product> displayProducts() throws CustomException { String sql = "select * from products"; Connector connection = new Connector(); Connection con = null; Statement stmt = null; ResultSet rs = null; List<Product> products = new ArrayList<Product>(); try { con = connection.getConnection(); stmt = con.createStatement(); rs = stmt.executeQuery(sql); while (rs.next()) { Product product = new Product(); int id = rs.getInt(1); product.setId(id); String name = rs.getString(2); product.setName(name); int quantity = rs.getInt(3); product.setQuantity(quantity); int price = rs.getInt(4); product.setPrice(price); products.add(product); } } catch (SQLException e) { throw new CustomException("SQL exception occured during fetching to display"); } catch (CustomException e) { throw new CustomException("exception occured in Product fetching"); } finally { close.closeConnection(rs); close.closeConnection(stmt); close.closeConnection(con); } return products; } @Override public int deleteProduct(int id) throws CustomException { Connector connection= new Connector(); String sql="delete from products where id=?"; Connection con=null; PreparedStatement psmt= null; int count=0; try { con =connection.getConnection(); psmt=con.prepareStatement(sql); psmt.setInt(1, id); count =psmt.executeUpdate(); } catch (SQLException e) { throw new CustomException("SQL exception occured during deletion of data"); } catch (CustomException e) { throw new CustomException("exception occured in Product fetching"); } finally { close.closeConnection(psmt); close.closeConnection(con); } return count; } }
[ "m1064615@mindtree.com" ]
m1064615@mindtree.com
f3b4fd998fa5717962ff9e6cdea99d0aeeba1378
c474b03758be154e43758220e47b3403eb7fc1fc
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/ads/BrandedProfileCardTrackingUrlsAdAggregatorListener.java
1255a23ee68a680c5a88862fbfab48ae0f11244d
[]
no_license
EstebanDalelR/tinderAnalysis
f80fe1f43b3b9dba283b5db1781189a0dd592c24
941e2c634c40e5dbf5585c6876ef33f2a578b65c
refs/heads/master
2020-04-04T09:03:32.659099
2018-11-23T20:41:28
2018-11-23T20:41:28
155,805,042
0
0
null
2018-11-18T16:02:45
2018-11-02T02:44:34
null
UTF-8
Java
false
false
2,848
java
package com.tinder.ads; import com.tinder.addy.Ad; import com.tinder.addy.AdAggregator.Listener; import com.tinder.addy.AdLoader; import com.tinder.addy.tracker.AdUrlTracker; import com.tinder.recsads.C16457d; import com.tinder.recsads.model.C16469h; import com.tinder.recsads.model.RecsAdType; import javax.inject.Inject; import kotlin.Metadata; import kotlin.jvm.internal.C2668g; import org.jetbrains.annotations.NotNull; @Metadata(bv = {1, 0, 2}, d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0017\b\u0007\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0010\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\nH\u0016J\u0018\u0010\u000b\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0016J\u0010\u0010\u0010\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\rH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X‚\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X‚\u0004¢\u0006\u0002\n\u0000¨\u0006\u0011"}, d2 = {"Lcom/tinder/ads/BrandedProfileCardTrackingUrlsAdAggregatorListener;", "Lcom/tinder/addy/AdAggregator$Listener;", "adUrlTracker", "Lcom/tinder/addy/tracker/AdUrlTracker;", "trackingUrlParser", "Lcom/tinder/recsads/BrandedProfileCardTrackingUrlParser;", "(Lcom/tinder/addy/tracker/AdUrlTracker;Lcom/tinder/recsads/BrandedProfileCardTrackingUrlParser;)V", "onAdAdded", "", "ad", "Lcom/tinder/addy/Ad;", "onAdRequestFailed", "adLoader", "Lcom/tinder/addy/AdLoader;", "exception", "", "onAdRequestSent", "Tinder_release"}, k = 1, mv = {1, 1, 10}) public final class BrandedProfileCardTrackingUrlsAdAggregatorListener implements Listener { private final AdUrlTracker adUrlTracker; private final C16457d trackingUrlParser; public void onAdRequestFailed(@NotNull AdLoader adLoader, @NotNull Throwable th) { C2668g.b(adLoader, "adLoader"); C2668g.b(th, "exception"); } public void onAdRequestSent(@NotNull AdLoader adLoader) { C2668g.b(adLoader, "adLoader"); } @Inject public BrandedProfileCardTrackingUrlsAdAggregatorListener(@NotNull AdUrlTracker adUrlTracker, @NotNull C16457d c16457d) { C2668g.b(adUrlTracker, "adUrlTracker"); C2668g.b(c16457d, "trackingUrlParser"); this.adUrlTracker = adUrlTracker; this.trackingUrlParser = c16457d; } public void onAdAdded(@NotNull Ad ad) { C2668g.b(ad, "ad"); if (ad.adType() == RecsAdType.BRANDED_PROFILE_CARD) { this.adUrlTracker.m26827a(this.trackingUrlParser.parseTrackingUrls((C16469h) ad)); } } }
[ "jdguzmans@hotmail.com" ]
jdguzmans@hotmail.com
0a0c47a66ae63328433c19a3fdca171a51f91512
3618d13f8167334d50fd844cc71937e49ebd9dde
/app/src/main/java/com/example/docapp/app/MakeAppointment.java
8bc1e249147d439961f6f6f001badc1da37f06e0
[]
no_license
coder46/DOCAPP
bac013a80cd09d0c9208012059d4f794df7f6a3a
bee308c89baed1ed72f7fc9b841f2ccec9583cfe
refs/heads/master
2021-01-22T03:05:07.493546
2014-06-20T19:42:43
2014-06-20T19:42:43
21,050,079
32
45
null
null
null
null
UTF-8
Java
false
false
2,395
java
package com.example.docapp.app; import android.content.Context; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.parse.ParseObject; public class MakeAppointment extends ActionBarActivity { public String docId; public String curId; EditText t1,t2,t3; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_make_appointment); Intent intent = getIntent(); docId = intent.getStringExtra(DisplayDoc.EXTRA_docId); curId = intent.getStringExtra(DisplayDoc.EXTRA_curId); t1 = (EditText) findViewById(R.id.editText); t2 = (EditText) findViewById(R.id.editText2); t3 = (EditText) findViewById(R.id.editText3); } public void confirmAppointment(View view) { ParseObject appointment = new ParseObject("Appointments"); appointment.put("docId", docId); appointment.put("patientId", curId); appointment.put("reason",t1.getText().toString()); appointment.put("date", t2.getText().toString()); appointment.put("time", t3.getText().toString()); appointment.saveEventually(); Context context = getApplicationContext(); int duration = Toast.LENGTH_LONG; Toast toast2 = Toast.makeText(context, "BOOKED!!", duration); toast2.show(); Intent intent = new Intent(this, PatientHome.class); startActivity(intent); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.make_appointment, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } }
[ "faisal.iiit@gmail.com" ]
faisal.iiit@gmail.com
8d5c79cfc2017c7d9fd6cee0648fb8f9b164a36a
399434d4476978d2cb9d0074eb4c799d0310078b
/src/main/java/com/ncu/qianhu/ChatOnlineSystem/Socket/MySocketConfig.java
91b13ec0866141870804224693d0f416a6f95e20
[]
no_license
DirtyWine/ChatOnlineSystem
78f09210acea0c7c16424a543c93304b1efa396d
8078d25feed4ba8cfa04fcba28b54dc0a80d3600
refs/heads/master
2021-07-03T15:18:14.472065
2020-08-11T21:50:20
2020-08-11T21:50:20
134,566,464
1
4
null
2018-06-20T03:31:20
2018-05-23T12:29:45
Vue
UTF-8
Java
false
false
1,931
java
package com.ncu.qianhu.ChatOnlineSystem.Socket; import com.ncu.qianhu.ChatOnlineSystem.Interceptor.ClientInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.StompEndpointRegistry; import org.springframework.web.socket.server.standard.ServerEndpointExporter; /** * @Author: Cross * @Description: * @Date: 2018/6/7 * @Modified by */ @Configuration @EnableWebSocketMessageBroker public class MySocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) { // 允许使用socketJs方式访问,访问点为webSocketServer,允许跨域 // 在网页上我们就可以通过这个链接 // http://localhost:8080/webSocketServer // 来和服务器的WebSocket连接 stompEndpointRegistry.addEndpoint("/server").setAllowedOrigins("*").withSockJS(); } @Override public void configureMessageBroker(MessageBrokerRegistry registry) { registry.enableSimpleBroker("/topic","/queue"); // 全局使用的消息前缀(客户端订阅路径上会体现出来) registry.setApplicationDestinationPrefixes("/app"); } @Override public void configureClientInboundChannel(ChannelRegistration registration) { registration.interceptors(createClientInterceptor()); } @Bean public ClientInterceptor createClientInterceptor() { return new ClientInterceptor(); } }
[ "769182173@qq.com" ]
769182173@qq.com
3db60508f7af964256c5d2fc16078cd7ff53cfca
4e2ece72fa054a7c6c96e2c2a25b47a6e413dab1
/ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/UserController.java
c8f10e9700acedbfc66278eb2a018ba25291968c
[ "Apache-2.0" ]
permissive
noseparte/hero-kill-web
d6099f72eb101b8922a543bc26ac68d78a0cc541
b1fac9dbbdc44c87521fe0a24159476853dd9749
refs/heads/master
2022-06-30T05:55:14.235010
2020-03-09T09:08:45
2020-03-09T09:08:45
245,960,532
1
2
Apache-2.0
2022-06-21T02:57:00
2020-03-09T06:30:58
Java
UTF-8
Java
false
false
2,021
java
package com.github.wxiaoqi.security.admin.rest; import com.github.wxiaoqi.security.admin.biz.MenuBiz; import com.github.wxiaoqi.security.admin.biz.UserBiz; import com.github.wxiaoqi.security.admin.entity.Menu; import com.github.wxiaoqi.security.admin.entity.User; import com.github.wxiaoqi.security.admin.rpc.service.PermissionService; import com.github.wxiaoqi.security.admin.vo.FrontUser; import com.github.wxiaoqi.security.admin.vo.MenuTree; import com.github.wxiaoqi.security.common.rest.BaseController; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * ${DESCRIPTION} * * @author wanghaobin * @create 2017-06-08 11:51 */ @RestController @RequestMapping("user") public class UserController extends BaseController<UserBiz,User> { @Autowired private PermissionService permissionService; @Autowired private MenuBiz menuBiz; @RequestMapping(value = "/front/info", method = RequestMethod.GET) @ResponseBody public ResponseEntity<?> getUserInfo(String token) throws Exception { FrontUser userInfo = permissionService.getUserInfo(token); if(userInfo==null) { return ResponseEntity.status(401).body(false); } else { return ResponseEntity.ok(userInfo); } } @RequestMapping(value = "/front/menus", method = RequestMethod.GET) public @ResponseBody List<MenuTree> getMenusByUsername(String token) throws Exception { return permissionService.getMenusByUsername(token); } @RequestMapping(value = "/front/menu/all", method = RequestMethod.GET) public @ResponseBody List<Menu> getAllMenus() throws Exception { return menuBiz.selectListAll(); } }
[ "noseparte@aliyun.com" ]
noseparte@aliyun.com
b9145df954e004ffc5d26ddc1d95042fcf196e5c
092c76fcc6c411ee77deef508e725c1b8277a2fe
/hybris/bin/ext-accelerator/savedorderforms/src/de/hybris/platform/savedorderforms/constants/SavedorderformsConstants.java
8c1ce095d42bde65d9163f2f8e45b62a5779a7d9
[ "MIT" ]
permissive
BaggaShivanshu2/hybris-bookstore-tutorial
4de5d667bae82851fe4743025d9cf0a4f03c5e65
699ab7fd8514ac56792cb911ee9c1578d58fc0e3
refs/heads/master
2022-11-28T12:15:32.049256
2020-08-05T11:29:14
2020-08-05T11:29:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
859
java
/* * [y] hybris Platform * * Copyright (c) 2000-2016 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("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 hybris. * * */ package de.hybris.platform.savedorderforms.constants; /** * Global class for all Savedorderforms constants. You can add global constants for your extension into this class. */ public final class SavedorderformsConstants extends GeneratedSavedorderformsConstants { public static final String EXTENSIONNAME = "savedorderforms"; private SavedorderformsConstants() { //empty to avoid instantiating this constant class } // implement here constants used by this extension }
[ "xelilim@hotmail.com" ]
xelilim@hotmail.com
102a6303c9940eb3b5b3718c4b3a3eaf30522911
745b525c360a2b15b8d73841b36c1e8d6cdc9b03
/jun_java_plugins/jun_httpclient/src/main/java/com/jun/plugin/okhttp/interceptor/DownloadFileProgressListener.java
468b7ef8e618101cc6e3029478d7b92ef8b0b56a
[]
no_license
wujun728/jun_java_plugin
1f3025204ef5da5ad74f8892adead7ee03f3fe4c
e031bc451c817c6d665707852308fc3b31f47cb2
refs/heads/master
2023-09-04T08:23:52.095971
2023-08-18T06:54:29
2023-08-18T06:54:29
62,047,478
117
42
null
2023-08-21T16:02:15
2016-06-27T10:23:58
Java
UTF-8
Java
false
false
199
java
package com.jun.plugin.okhttp.interceptor; /** * * @author Wujun * */ public interface DownloadFileProgressListener { void updateProgress(long downloadLenth, long totalLength, boolean done); }
[ "wujun728@163.com" ]
wujun728@163.com
75df03ce7a26118f0f20dd7839beb688a17f952c
81b3984cce8eab7e04a5b0b6bcef593bc0181e5a
/android/CarLife/app/src/main/java/com/baidu/location/p195g/C3379a.java
ac0d57085182bf370294be1dc5ccf14917b60671
[]
no_license
ausdruck/Demo
20ee124734d3a56b99b8a8e38466f2adc28024d6
e11f8844f4852cec901ba784ce93fcbb4200edc6
refs/heads/master
2020-04-10T03:49:24.198527
2018-07-27T10:14:56
2018-07-27T10:14:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
13,086
java
package com.baidu.location.p195g; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.Messenger; import android.os.Process; import android.text.TextUtils; import android.util.Log; import com.baidu.baidunavis.BaiduNaviParams.VoiceKey; import com.baidu.location.C3377f; import com.baidu.location.LLSInterface; import com.baidu.location.indoor.C3439d; import com.baidu.location.indoor.p196a.C3398a; import com.baidu.location.p187a.C3181a; import com.baidu.location.p187a.C3182b; import com.baidu.location.p187a.C3192e; import com.baidu.location.p187a.C3196g; import com.baidu.location.p187a.C3200h; import com.baidu.location.p187a.C3207j; import com.baidu.location.p187a.C3209l; import com.baidu.location.p187a.C3211m; import com.baidu.location.p188h.C3381b; import com.baidu.location.p189b.C3213a; import com.baidu.location.p189b.C3216b; import com.baidu.location.p189b.C3218c; import com.baidu.location.p189b.C3220d; import com.baidu.location.p189b.C3221e; import com.baidu.location.p189b.C3225f; import com.baidu.location.p189b.C3229g; import com.baidu.location.p190c.C3232a; import com.baidu.location.p190c.C3243b; import com.baidu.location.p191d.C3286c; import com.baidu.location.p191d.C3294d; import com.baidu.location.p191d.C3299f; import com.baidu.location.p191d.C3303h; import com.baidu.location.p191d.C3314j; import com.baidu.location.p191d.C3319l; import com.baidu.location.p191d.C3330n; import com.baidu.location.p191d.p192a.C3256a; import com.baidu.location.p191d.p192a.C3268e; import com.baidu.location.p191d.p192a.C3274f; import com.baidu.location.p193e.C3335a; import com.baidu.location.p193e.C3349d; import com.baidu.location.p194f.C3364b; import com.baidu.location.p194f.C3371d; import com.baidu.location.p194f.C3376f; import com.baidu.location.wifihistory.SClient; import com.baidu.navisdk.ui.ugc.model.BNRCEventDetailsModel; import org.json.JSONObject; /* renamed from: com.baidu.location.g.a */ public class C3379a extends Service implements LLSInterface { /* renamed from: a */ static C3378a f18296a = null; /* renamed from: f */ private static long f18297f = 0; /* renamed from: b */ Messenger f18298b = null; /* renamed from: c */ private Looper f18299c; /* renamed from: d */ private HandlerThread f18300d; /* renamed from: e */ private boolean f18301e = false; /* renamed from: com.baidu.location.g.a$a */ public class C3378a extends Handler { /* renamed from: a */ final /* synthetic */ C3379a f18295a; public C3378a(C3379a c3379a, Looper looper) { this.f18295a = c3379a; super(looper); } public void handleMessage(Message message) { boolean z = false; if (C3377f.isServing) { Bundle data; switch (message.what) { case 11: this.f18295a.m14387a(message); break; case 12: this.f18295a.m14391b(message); break; case 15: this.f18295a.m14395c(message); break; case 22: C3200h.m13362c().m13381b(message); break; case 28: C3200h.m13362c().m13380a(true, true); break; case 41: C3200h.m13362c().m13391j(); break; case 110: C3439d.m14680a().m14741c(); break; case 111: C3439d.m14680a().m14742d(); break; case 112: C3439d.m14680a().m14740b(); break; case 302: C3439d.m14680a().m14743e(); break; case 401: try { Bundle data2 = message.getData(); try { JSONObject jSONObject = new JSONObject(data2.getString("ugcInfo", "")); Message obtainMessage; if (!jSONObject.has(VoiceKey.ACTION) || !jSONObject.has("status")) { z = true; if (z) { obtainMessage = C3294d.m13799a().m13835e().obtainMessage(2); obtainMessage.setData(data2); obtainMessage.sendToTarget(); break; } } if (jSONObject.getInt("status") == 1) { C3286c.m13744a().m13794a(false); } else if (jSONObject.getInt("status") == 0) { C3286c.m13744a().m13794a(true); } if (z) { obtainMessage = C3294d.m13799a().m13835e().obtainMessage(2); obtainMessage.setData(data2); obtainMessage.sendToTarget(); } } catch (Exception e) { z = true; } } catch (Exception e2) { break; } break; case 402: try { data = message.getData(); if (data != null) { Message obtainMessage2 = C3294d.m13799a().m13835e().obtainMessage(3); obtainMessage2.setData(data); obtainMessage2.sendToTarget(); break; } } catch (Exception e3) { break; } break; case 403: try { data = message.getData(); int i = data.getInt("status", 0); int i2 = data.getInt("source", 0); if (i != 1) { if (i == 2) { C3303h.m13894a().m13903c(); break; } } C3303h.m13894a().m13901a(i2); break; } catch (Exception e4) { break; } break; case 405: byte[] byteArray = message.getData().getByteArray("errorid"); String str = null; if (byteArray != null && byteArray.length > 0) { str = new String(byteArray); } if (!TextUtils.isEmpty(str)) { C3299f.m13848a().m13868a("receive errorreportid = " + str); C3299f.m13848a().m13872c(str); break; } break; case 406: C3192e.m13329a().m13342e(); break; case 407: try { C3192e.m13329a().m13338a(message.getData().getBoolean(BNRCEventDetailsModel.BN_RC_KEY_USER)); break; } catch (Exception e5) { break; } } } if (message.what == 1) { this.f18295a.m14397d(); } if (message.what == 0) { this.f18295a.m14394c(); } super.handleMessage(message); } } /* renamed from: a */ public static Handler m14386a() { return f18296a; } /* renamed from: a */ private void m14387a(Message message) { Log.d("baidu_location_service", "baidu location service register ..."); C3299f.m13848a().m13868a("service register!"); C3181a.m13265a().m13271a(message); C3349d.m14171a(); C3220d.m13499a().m13517d(); C3207j.m13417b().mo2499c(); } /* renamed from: b */ public static long m14390b() { return f18297f; } /* renamed from: b */ private void m14391b(Message message) { C3181a.m13265a().m13275b(message); } /* renamed from: c */ private void m14394c() { C3196g.m13350a().m13351a(C3377f.getServiceContext()); C3319l.m13952a().m13957a(this.f18299c); SClient.getInstance().start(); C3274f.m13695a(); C3256a.m13618a().m13635b(); C3268e.m13681a(); C3314j.m13917b().m13940e(); C3330n.m14008a().m14033b(); C3398a.m14465b().m14478e(); C3243b.m13581a().m13590a(604800); C3232a.m13554b(); C3192e.m13329a().m13339b(); C3371d.m14289a().m14314b(); C3364b.m14262a().m14276b(); C3381b.m14398a(); C3200h.m13362c().m13384d(); C3335a.m14038a().m14058b(); C3218c.m13487a().m13491b(); C3220d.m13499a().m13515b(); C3221e.m13518a().m13522b(); C3213a.m13466a().m13472b(); C3225f.m13526a().m13533b(); C3376f.m14355a().m14368c(); } /* renamed from: c */ private void m14395c(Message message) { C3181a.m13265a().m13279c(message); } /* renamed from: d */ private void m14397d() { C3376f.m14355a().m14370e(); C3349d.m14171a().m14197o(); C3371d.m14289a().m14318f(); C3229g.m13535a().m13544c(); C3220d.m13499a().m13516c(); C3218c.m13487a().m13492c(); C3216b.m13475a().m13483c(); C3213a.m13466a().m13473c(); C3182b.m13285a().m13287b(); C3364b.m14262a().m14277c(); C3200h.m13362c().m13386e(); C3439d.m14680a().m14742d(); C3314j.m13917b().m13941f(); C3330n.m14008a().m14034c(); C3192e.m13329a().m13340c(); C3211m.m13457g(); C3181a.m13265a().m13274b(); C3299f.m13848a().m13871c(); Log.d("baidu_location_service", "baidu location service has stoped ..."); Process.killProcess(Process.myPid()); } public double getVersion() { return 7.320000171661377d; } public IBinder onBind(Intent intent) { Bundle extras = intent.getExtras(); boolean z = false; if (extras != null) { C3381b.f18314g = extras.getString("key"); C3381b.f18313f = extras.getString("sign"); this.f18301e = extras.getBoolean("kill_process"); z = extras.getBoolean("cache_exception"); } if (z) { } return this.f18298b.getBinder(); } public void onCreate(Context context) { f18297f = System.currentTimeMillis(); this.f18300d = C3209l.m13436a(); this.f18299c = this.f18300d.getLooper(); if (this.f18299c == null) { f18296a = new C3378a(this, Looper.getMainLooper()); } else { f18296a = new C3378a(this, this.f18299c); } this.f18298b = new Messenger(f18296a); f18296a.sendEmptyMessage(0); C3299f.m13848a().m13869b(); C3299f.m13848a().m13868a("service creat!"); Log.d("baidu_location_service", "baidu location service start1 ..." + Process.myPid()); } public void onDestroy() { C3181a.m13265a().m13270a(new Bundle(), 502); C3299f.m13848a().m13868a("service destroy!"); C3299f.m13848a().m13873d(); try { f18296a.sendEmptyMessage(1); } catch (Exception e) { Log.d("baidu_location_service", "baidu location service stop exception..."); m14397d(); Process.killProcess(Process.myPid()); } Log.d("baidu_location_service", "baidu location service stop ..."); } public int onStartCommand(Intent intent, int i, int i2) { return 1; } public void onTaskRemoved(Intent intent) { Log.d("baidu_location_service", "baidu location service remove task..."); } public boolean onUnBind(Intent intent) { return false; } }
[ "objectyan@gmail.com" ]
objectyan@gmail.com
1d9f9552e4e473aa19c219954b1e99fcafc6317f
af52d055db2543141f60d412169511846bd60109
/src/main/java/org/qortal/network/message/BlockMessage.java
b07dc8b1207cbd73a63f48173faab99058c534c5
[]
no_license
xyz-sylwia/qortal
1f068ebf54c8470664e0f3b3f85d189d312a366e
9502444bbca982fbe89100003a4f7d1c3981cda7
refs/heads/master
2023-09-03T23:19:11.602892
2021-11-05T16:31:54
2021-11-05T16:31:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,715
java
package org.qortal.network.message; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.qortal.block.Block; import org.qortal.data.at.ATStateData; import org.qortal.data.block.BlockData; import org.qortal.data.transaction.TransactionData; import org.qortal.transform.TransformationException; import org.qortal.transform.block.BlockTransformer; import org.qortal.utils.Triple; import com.google.common.primitives.Ints; public class BlockMessage extends Message { private static final Logger LOGGER = LogManager.getLogger(BlockMessage.class); private Block block = null; private BlockData blockData = null; private List<TransactionData> transactions = null; private List<ATStateData> atStates = null; private int height; public BlockMessage(Block block) { super(MessageType.BLOCK); this.block = block; this.blockData = block.getBlockData(); this.height = block.getBlockData().getHeight(); } private BlockMessage(int id, BlockData blockData, List<TransactionData> transactions, List<ATStateData> atStates) { super(id, MessageType.BLOCK); this.blockData = blockData; this.transactions = transactions; this.atStates = atStates; this.height = blockData.getHeight(); } public BlockData getBlockData() { return this.blockData; } public List<TransactionData> getTransactions() { return this.transactions; } public List<ATStateData> getAtStates() { return this.atStates; } public static Message fromByteBuffer(int id, ByteBuffer byteBuffer) throws UnsupportedEncodingException { try { int height = byteBuffer.getInt(); Triple<BlockData, List<TransactionData>, List<ATStateData>> blockInfo = BlockTransformer.fromByteBuffer(byteBuffer); BlockData blockData = blockInfo.getA(); blockData.setHeight(height); return new BlockMessage(id, blockData, blockInfo.getB(), blockInfo.getC()); } catch (TransformationException e) { LOGGER.info(String.format("Received garbled BLOCK message: %s", e.getMessage())); return null; } } @Override protected byte[] toData() { if (this.block == null) return null; try { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); bytes.write(Ints.toByteArray(this.height)); bytes.write(BlockTransformer.toBytes(this.block)); return bytes.toByteArray(); } catch (TransformationException | IOException e) { return null; } } public BlockMessage cloneWithNewId(int newId) { BlockMessage clone = new BlockMessage(this.block); clone.setId(newId); return clone; } }
[ "misc-github@talk2dom.com" ]
misc-github@talk2dom.com
5416c15647d93eeab68fb5244a5d5da2142d964e
24ce408a83bcf0dd235cb71f097490b66d259d3c
/src/main/java/com/algaworks/brewer/thymeleaf/processor/PaginationElementTagProcessor.java
691cf0ce420c3b75c67be319ad2f76bf47e1e31b
[]
no_license
jmferreiratech/brewer
0a056e0626a45c41fb7d38dbbe42cc7490be5e35
a85bffef9ec68bd41d47215eae5fd5cfb06d9067
refs/heads/master
2021-06-23T10:53:33.316511
2017-08-29T20:52:35
2017-08-29T20:53:45
76,206,096
1
0
null
null
null
null
UTF-8
Java
false
false
1,280
java
package com.algaworks.brewer.thymeleaf.processor; import org.thymeleaf.context.ITemplateContext; import org.thymeleaf.model.IAttribute; import org.thymeleaf.model.IModel; import org.thymeleaf.model.IModelFactory; import org.thymeleaf.model.IProcessableElementTag; import org.thymeleaf.processor.element.AbstractElementTagProcessor; import org.thymeleaf.processor.element.IElementTagStructureHandler; import org.thymeleaf.templatemode.TemplateMode; public class PaginationElementTagProcessor extends AbstractElementTagProcessor { private static final String NOME_TAG = "pagination"; private static final int PRECEDENCIA = 1000; public PaginationElementTagProcessor(String dialectPrefix) { super(TemplateMode.HTML, dialectPrefix, NOME_TAG, true, null, false, PRECEDENCIA); } @Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler) { IModelFactory modelFactory = context.getModelFactory(); IAttribute page = tag.getAttribute("page"); IModel model = modelFactory.createModel(); model.add(modelFactory.createStandaloneElementTag("th:block", "th:replace", String.format("fragments/Paginacao :: pager (%s)", page.getValue()))); structureHandler.replaceWith(model, true); } }
[ "joamarcelo@gmail.com" ]
joamarcelo@gmail.com
c28925d2d5652f1dc5fa3f976f32f609e19612e4
473a8c7433c082d8922a663dc98a143b6372f0e3
/src/main/java/com/example/training/domain/OrderForm.java
0518416b0ef802d399f964417a1b50542302fda3
[]
no_license
tierline/EC-WEB-training2020
ee0145ffa7ac18f8f242ac1cb19aa38732ca21b6
d5401b5ee411d0159a08894255a463c89e78b03e
refs/heads/main
2023-03-03T18:58:53.694127
2021-01-07T04:20:00
2021-01-07T04:20:00
317,759,119
0
0
null
null
null
null
UTF-8
Java
false
false
1,515
java
package com.example.training.domain; import java.text.SimpleDateFormat; import java.util.Date; import javax.validation.constraints.Email; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import lombok.Data; @Data public class OrderForm { @NotEmpty @Size(min = 1, max = 6, message = "1文字以上、6文字以内で入力して下さい。") private String lastName; @NotEmpty @Size(min = 1, max = 6, message = "1文字以上、6文字以内で入力して下さい。") private String firstName; @NotEmpty @Email private String email; @Size(min = 10, max = 11, message = "正しく入力してください。") @Pattern(regexp = "[0-9]*", message = "半角数字のみで入力してください。(ハイフンなし)") private String phone; @NotEmpty @Size(max = 100, message = "長すぎます。") private String address1;// 都道府県 @NotEmpty @Size(max = 100, message = "長すぎます。") private String address2;// 番地 private Date dateNow = new Date(); public String getDateNow() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日HH時mm分ss秒"); return dateFormat.format(this.dateNow); } public String getFullName() { return this.lastName + this.firstName; } public String getFullAddress() { return this.address1 + this.address2; } public Order createOrder() { return new Order(this); } }
[ "tsukamoto@tierline.com" ]
tsukamoto@tierline.com
1d6065bd176ff06b5805dc9add19672798f56620
6dcab17c7dc25b5ab046b73da412b423d1185b58
/modules/siddhi-query-api/src/main/java/org/wso2/siddhi/query/api/execution/query/input/stream/InputStream.java
85cec1b3bb535b5fd4bd1238a9c5b79c9f4cd27e
[ "Apache-2.0" ]
permissive
doubaokun/siddhi
bdafcbc48e4e68ead80f7d4c400376c8306da826
d9a4cde9d19e2f7644d0844398c2b48919e1db61
refs/heads/master
2021-01-18T11:57:10.815213
2015-05-07T09:44:26
2015-05-07T09:44:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,162
java
/* * Copyright (c) 2005 - 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://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.wso2.siddhi.query.api.execution.query.input.stream; import org.wso2.siddhi.query.api.execution.query.Query; import org.wso2.siddhi.query.api.execution.query.input.state.StateElement; import org.wso2.siddhi.query.api.expression.Expression; import org.wso2.siddhi.query.api.expression.constant.Constant; import java.util.List; public abstract class InputStream { public abstract List<String> getAllStreamIds(); public abstract List<String> getUniqueStreamIds(); public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, Expression onCompare, Constant within) { return new JoinInputStream(leftStream, type, rightStream, onCompare, within, JoinInputStream.EventTrigger.ALL); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, Expression onCompare, Constant within, JoinInputStream.EventTrigger trigger) { return new JoinInputStream(leftStream, type, rightStream, onCompare, within, trigger); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, Constant within, JoinInputStream.EventTrigger trigger) { return new JoinInputStream(leftStream, type, rightStream, null, within, trigger); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, Expression onCompare, JoinInputStream.EventTrigger trigger) { return new JoinInputStream(leftStream, type, rightStream, onCompare, null, trigger); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, JoinInputStream.EventTrigger trigger) { return new JoinInputStream(leftStream, type, rightStream, null, null, trigger); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, Constant within) { return new JoinInputStream(leftStream, type, rightStream, null, within, JoinInputStream.EventTrigger.ALL); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream, Expression onCompare) { return new JoinInputStream(leftStream, type, rightStream, onCompare, null, JoinInputStream.EventTrigger.ALL); } public static InputStream joinStream(SingleInputStream leftStream, JoinInputStream.Type type, SingleInputStream rightStream) { return new JoinInputStream(leftStream, type, rightStream, null, null, JoinInputStream.EventTrigger.ALL); } public static StateInputStream patternStream(StateElement patternElement) { return new StateInputStream(StateInputStream.Type.PATTERN, patternElement); } public static StateInputStream sequenceStream(StateElement sequenceElement) { return new StateInputStream(StateInputStream.Type.SEQUENCE, sequenceElement); } public static BasicSingleInputStream innerStream(String streamId) { return new BasicSingleInputStream(null, streamId, true); } public static BasicSingleInputStream innerStream(String streamReferenceId, String streamId) { return new BasicSingleInputStream(streamReferenceId, streamId, true); } public static BasicSingleInputStream stream(String streamId) { return new BasicSingleInputStream(null, streamId); } public static BasicSingleInputStream stream(String streamReferenceId, String streamId) { return new BasicSingleInputStream(streamReferenceId, streamId); } public static SingleInputStream stream(Query query) { return new AnonymousInputStream(query); } }
[ "suhothayan@gmail.com" ]
suhothayan@gmail.com
45157d7ba9aab97262dc0dda5605545cf5044d98
66cc61464fbdeecb884b11182b4d5202da8a53c5
/org/apache/batik/svggen/DefaultCachedImageHandler.java
d0fe4e0c02cf1eb97c76ab08df6aff71adb6cc76
[ "Apache-2.0" ]
permissive
zenjiro/map
d8f23b9a05c1e25e807113a3e4aa036dac74220a
fcda17a5374eef8a032d873a58cc66684583cc04
refs/heads/master
2021-05-15T01:42:34.723501
2013-10-26T07:40:09
2013-10-26T07:40:09
13,879,319
1
1
null
null
null
null
UTF-8
Java
false
false
17,010
java
/* Copyright 2001,2003 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.batik.svggen; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.awt.image.RenderedImage; import java.awt.image.renderable.RenderableImage; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.lang.reflect.Method; import org.w3c.dom.Element; /** * This class is a default implementation of the GenericImageHandler * for handlers implementing a caching strategy. * * @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a> * @version $Id: DefaultCachedImageHandler.java,v 1.8 2004/08/18 07:14:59 vhardy Exp $ * @see org.apache.batik.svggen.SVGGraphics2D */ public abstract class DefaultCachedImageHandler implements CachedImageHandler, SVGSyntax, ErrorConstants { // duplicate the string here to remove dependencies on // org.apache.batik.dom.util.XLinkSupport static final String XLINK_NAMESPACE_URI = "http://www.w3.org/1999/xlink"; static final AffineTransform IDENTITY = new AffineTransform(); // for createGraphics method. private static Method createGraphics = null; private static boolean initDone = false; private final static Class[] paramc = new Class[] {BufferedImage.class}; private static Object[] paramo = null; protected ImageCacher imageCacher; /** * The image cache can be used by subclasses for efficient image storage */ public ImageCacher getImageCacher() { return this.imageCacher; } void setImageCacher(final ImageCacher imageCacher) { if (imageCacher == null){ throw new IllegalArgumentException(); } // Save current DOMTreeManager if any DOMTreeManager dtm = null; if (this.imageCacher != null){ dtm = this.imageCacher.getDOMTreeManager(); } this.imageCacher = imageCacher; if (dtm != null){ this.imageCacher.setDOMTreeManager(dtm); } } /** * This <tt>GenericImageHandler</tt> implementation does not * need to interact with the DOMTreeManager. */ public void setDOMTreeManager(final DOMTreeManager domTreeManager){ this.imageCacher.setDOMTreeManager(domTreeManager); } /** * This method creates a <code>Graphics2D</code> from a * <code>BufferedImage</code>. If Batik extensions to AWT are * in the CLASSPATH it uses them, otherwise, it uses the regular * AWT method. */ private static Graphics2D createGraphics(final BufferedImage buf) { if (!initDone) { try { final Class clazz = Class.forName("org.apache.batik.ext.awt.image.GraphicsUtil"); createGraphics = clazz.getMethod("createGraphics", paramc); paramo = new Object[1]; } catch (final Throwable t) { // happen only if Batik extensions are not their } finally { initDone = true; } } if (createGraphics == null) return buf.createGraphics(); else { paramo[0] = buf; Graphics2D g2d = null; try { g2d = (Graphics2D)createGraphics.invoke(null, paramo); } catch (final Exception e) { // should not happened } return g2d; } } /** * Creates an Element which can refer to an image. * Note that no assumptions should be made by the caller about the * corresponding SVG tag. By default, an &lt;image&gt; tag is * used, but the {@link CachedImageHandlerBase64Encoder}, for * example, overrides this method to use a different tag. */ public Element createElement(final SVGGeneratorContext generatorContext) { // Create a DOM Element in SVG namespace to refer to an image final Element imageElement = generatorContext.getDOMFactory().createElementNS (SVG_NAMESPACE_URI, SVG_IMAGE_TAG); return imageElement; } /** * The handler sets the xlink:href tag and returns a transform */ public AffineTransform handleImage(final Image image, final Element imageElement, final int x, final int y, final int width, final int height, final SVGGeneratorContext generatorContext) { final int imageWidth = image.getWidth(null); final int imageHeight = image.getHeight(null); AffineTransform af = null; if(imageWidth == 0 || imageHeight == 0 || width == 0 || height == 0) { // Forget about it this.handleEmptyImage(imageElement); } else { // First set the href try { this.handleHREF(image, imageElement, generatorContext); } catch (final SVGGraphics2DIOException e) { try { generatorContext.errorHandler.handleError(e); } catch (final SVGGraphics2DIOException io) { // we need a runtime exception because // java.awt.Graphics2D method doesn't throw exceptions.. throw new SVGGraphics2DRuntimeException(io); } } // Then create the transformation: // Because we cache image data, the stored image may // need to be scaled. af = this.handleTransform(imageElement, x, y, imageWidth, imageHeight, width, height, generatorContext); } return af; } /** * The handler sets the xlink:href tag and returns a transform */ public AffineTransform handleImage(final RenderedImage image, final Element imageElement, final int x, final int y, final int width, final int height, final SVGGeneratorContext generatorContext) { final int imageWidth = image.getWidth(); final int imageHeight = image.getHeight(); AffineTransform af = null; if(imageWidth == 0 || imageHeight == 0 || width == 0 || height == 0) { // Forget about it this.handleEmptyImage(imageElement); } else { // First set the href try { this.handleHREF(image, imageElement, generatorContext); } catch (final SVGGraphics2DIOException e) { try { generatorContext.errorHandler.handleError(e); } catch (final SVGGraphics2DIOException io) { // we need a runtime exception because // java.awt.Graphics2D method doesn't throw exceptions.. throw new SVGGraphics2DRuntimeException(io); } } // Then create the transformation: // Because we cache image data, the stored image may // need to be scaled. af = this.handleTransform(imageElement, x, y, imageWidth, imageHeight, width, height, generatorContext); } return af; } /** * The handler sets the xlink:href tag and returns a transform */ public AffineTransform handleImage(final RenderableImage image, final Element imageElement, final double x, final double y, final double width, final double height, final SVGGeneratorContext generatorContext) { final double imageWidth = image.getWidth(); final double imageHeight = image.getHeight(); AffineTransform af = null; if(imageWidth == 0 || imageHeight == 0 || width == 0 || height == 0) { // Forget about it this.handleEmptyImage(imageElement); } else { // First set the href try { this.handleHREF(image, imageElement, generatorContext); } catch (final SVGGraphics2DIOException e) { try { generatorContext.errorHandler.handleError(e); } catch (final SVGGraphics2DIOException io) { // we need a runtime exception because // java.awt.Graphics2D method doesn't throw exceptions.. throw new SVGGraphics2DRuntimeException(io); } } // Then create the transformation: // Because we cache image data, the stored image may // need to be scaled. af = this.handleTransform(imageElement, x,y, imageWidth, imageHeight, width, height, generatorContext); } return af; } /** * Determines the transformation needed to get the cached image to * scale & position properly. Sets x and y attributes on the element * accordingly. */ protected AffineTransform handleTransform(final Element imageElement, final double x, final double y, final double srcWidth, final double srcHeight, final double dstWidth, final double dstHeight, final SVGGeneratorContext generatorContext) { // In this the default case, <image> element, we just // set x, y, width and height attributes. // No additional transform is necessary. imageElement.setAttributeNS(null, SVG_X_ATTRIBUTE, generatorContext.doubleString(x)); imageElement.setAttributeNS(null, SVG_Y_ATTRIBUTE, generatorContext.doubleString(y)); imageElement.setAttributeNS(null, SVG_WIDTH_ATTRIBUTE, generatorContext.doubleString(dstWidth)); imageElement.setAttributeNS(null, SVG_HEIGHT_ATTRIBUTE, generatorContext.doubleString(dstHeight)); return null; } protected void handleEmptyImage(final Element imageElement) { imageElement.setAttributeNS(XLINK_NAMESPACE_URI, ATTR_XLINK_HREF, ""); imageElement.setAttributeNS(null, SVG_WIDTH_ATTRIBUTE, "0"); imageElement.setAttributeNS(null, SVG_HEIGHT_ATTRIBUTE, "0"); } /** * The handler should set the xlink:href tag and the width and * height attributes. */ public void handleHREF(final Image image, final Element imageElement, final SVGGeneratorContext generatorContext) throws SVGGraphics2DIOException { if (image == null) throw new SVGGraphics2DRuntimeException(ERR_IMAGE_NULL); final int width = image.getWidth(null); final int height = image.getHeight(null); if (width==0 || height==0) { this.handleEmptyImage(imageElement); } else { if (image instanceof RenderedImage) { this.handleHREF((RenderedImage)image, imageElement, generatorContext); } else { final BufferedImage buf = this.buildBufferedImage(new Dimension(width, height)); final Graphics2D g = createGraphics(buf); g.drawImage(image, 0, 0, null); g.dispose(); this.handleHREF((RenderedImage)buf, imageElement, generatorContext); } } } /** * This method creates a BufferedImage of the right size and type * for the derived class. */ public BufferedImage buildBufferedImage(final Dimension size){ return new BufferedImage(size.width, size.height, this.getBufferedImageType()); } /** * This template method should set the xlink:href attribute on the input * Element parameter */ protected void handleHREF(final RenderedImage image, final Element imageElement, final SVGGeneratorContext generatorContext) throws SVGGraphics2DIOException { // // Create an buffered image if necessary // BufferedImage buf = null; if (image instanceof BufferedImage && ((BufferedImage)image).getType() == this.getBufferedImageType()){ buf = (BufferedImage)image; } else { final Dimension size = new Dimension(image.getWidth(), image.getHeight()); buf = this.buildBufferedImage(size); final Graphics2D g = createGraphics(buf); g.drawRenderedImage(image, IDENTITY); g.dispose(); } // // Cache image and set xlink:href // this.cacheBufferedImage(imageElement, buf, generatorContext); } /** * This method will delegate to the <tt>handleHREF</tt> which * uses a <tt>RenderedImage</tt> */ protected void handleHREF(final RenderableImage image, final Element imageElement, final SVGGeneratorContext generatorContext) throws SVGGraphics2DIOException { // Create an buffered image where the image will be drawn final Dimension size = new Dimension((int)Math.ceil(image.getWidth()), (int)Math.ceil(image.getHeight())); final BufferedImage buf = this.buildBufferedImage(size); final Graphics2D g = createGraphics(buf); g.drawRenderableImage(image, IDENTITY); g.dispose(); this.handleHREF((RenderedImage)buf, imageElement, generatorContext); } protected void cacheBufferedImage(final Element imageElement, final BufferedImage buf, final SVGGeneratorContext generatorContext) throws SVGGraphics2DIOException { ByteArrayOutputStream os; if (generatorContext == null) throw new SVGGraphics2DRuntimeException(ERR_CONTEXT_NULL); try { os = new ByteArrayOutputStream(); // encode the image in memory this.encodeImage(buf, os); os.flush(); os.close(); } catch (final IOException e) { // should not happen since we do in-memory processing throw new SVGGraphics2DIOException(ERR_UNEXPECTED, e); } // ask the cacher for a reference final String ref = this.imageCacher.lookup(os, buf.getWidth(), buf.getHeight(), generatorContext); // set the URL imageElement.setAttributeNS(XLINK_NAMESPACE_URI, ATTR_XLINK_HREF, this.getRefPrefix() + ref); } /** * Should return the prefix with wich the image reference * should be pre-concatenated. */ public abstract String getRefPrefix(); /** * Derived classes should implement this method and encode the input * BufferedImage as needed */ public abstract void encodeImage(BufferedImage buf, OutputStream os) throws IOException; /** * This template method should be overridden by derived classes to * declare the image type they need for saving to file. */ public abstract int getBufferedImageType(); }
[ "zenjiro0123@gmail.com" ]
zenjiro0123@gmail.com
651e77bfaa2e9212b86215fd1c7f455e1f8991a1
1c61a4d45f67b5ee6f4a2025d8a0809b0fdccae0
/app/src/main/java/de/alternadev/georenting/data/models/Fence.java
486fa0fd5316e7d6f44ae416acc320dea6b68655
[]
no_license
alternaDev/georenting-android
21514a1aa9b617117cf3151619e581edb4ad90bd
efe94bc1d1b31f70edb66ec61538b2fc13f8d42b
refs/heads/master
2020-04-03T20:14:10.598189
2017-04-02T08:34:09
2017-04-02T08:34:09
39,828,953
0
0
null
null
null
null
UTF-8
Java
false
false
1,849
java
package de.alternadev.georenting.data.models; import android.database.Cursor; import com.google.auto.value.AutoValue; import com.squareup.sqlbrite.BriteDatabase; import com.squareup.sqldelight.RowMapper; import java.util.ArrayList; import java.util.List; @AutoValue public abstract class Fence implements FenceModel { public static final Factory<Fence> FACTORY = new Factory<>((_id, name, owner, geofenceId, latitude, longitude, radius) -> builder()._id(_id).name(name).owner(owner).geofenceId(geofenceId).latitude(latitude).longitude(longitude).radius(radius).build()); public static final RowMapper<Fence> MAPPER = FACTORY.select_allMapper(); public static Builder builder() { return new AutoValue_Fence.Builder(); } public abstract Builder toBuilder(); @AutoValue.Builder public abstract static class Builder { public abstract Builder name(String value); public abstract Builder owner(long value); public abstract Builder geofenceId(String value); public abstract Builder _id(Long value); public abstract Builder latitude(double value); public abstract Builder longitude(double value); public abstract Builder radius(double value); public abstract Fence build(); } public static void insert(BriteDatabase db, Fence fence) { db.insert(Fence.TABLE_NAME, Fence.FACTORY.marshal(fence).asContentValues()); } public static List<Fence> getAll(BriteDatabase db) { List<Fence> result = new ArrayList<>(); try (Cursor cursor = db.query(Fence.SELECT_ALL)) { while (cursor.moveToNext()) { result.add(Fence.MAPPER.map(cursor)); } } return result; } public static void deleteAll(BriteDatabase db) { db.execute(Fence.DELETE_ALL); } }
[ "jh.bruhn@me.com" ]
jh.bruhn@me.com
4bcd0b9b7ebc87b2737656985cd868220c352e7f
c46304a8d962b6bea66bc6e4ef04b908bdb0dc97
/src/main/java/net/finmath/marketdata/model/volatilities/SwaptionMarketData.java
581edea141c7aa344749694bf1cc9cdd87a56d80
[ "Apache-2.0", "LicenseRef-scancode-mit-old-style", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.0-or-later" ]
permissive
finmath/finmath-lib
93f0f67e7914e76bbdc4e32c6dddce9eba4f50a4
b80aba56bdf6b93551d966503d5b399409c36bff
refs/heads/master
2023-08-04T09:28:21.146535
2023-07-26T17:18:45
2023-07-26T17:18:45
8,832,601
459
211
Apache-2.0
2023-07-21T13:28:03
2013-03-17T10:00:22
Java
UTF-8
Java
false
false
1,386
java
/* * (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de. * * Created on 20.05.2005 */ package net.finmath.marketdata.model.volatilities; import net.finmath.time.TimeDiscretization; /** * Basic interface to be implemented by classes * providing swaption market data. * * @author Christian Fries * @version 1.0 */ public interface SwaptionMarketData { TimeDiscretization getOptionMaturities(); TimeDiscretization getTenor(); double getSwapPeriodLength(); /** * Returns the option price of a swaption for a given option maturity and tenor length. * @param optionMaturity The option maturity. * @param tenorLength The tenor length. * @param periodLength The period length of the floating rate period. * @param strike The strike (swap) rate. * @return The option price. */ double getValue(double optionMaturity, double tenorLength, double periodLength, double strike); /** * Returns the option implied volatility of a swaption for a given option maturity and tenor length. * * @param optionMaturity The option maturity. * @param tenorLength The tenor length. * @param periodLength The period length of the floating rate period. * @param strike The strike (swap) rate. * @return The implied volatility. */ double getVolatility(double optionMaturity, double tenorLength, double periodLength, double strike); }
[ "email@christian-fries.de" ]
email@christian-fries.de
c83dd54d757ff87445abf3f662585e3d98492e83
07dee25fef6b3a34b828606a3825ea46c0beab47
/MentoringTaskPart1Array&Matix/src/com/company/arrays/SecondByLengthStringInArray.java
5910c15afcffb45cf24f7e7880e9cf72f04188de
[]
no_license
sona-sargsyan/epamTasks
1edf369b6a461514dd99bc1fcfe786256847d83c
32fa1995e4d016931d5519860830b53b75854d55
refs/heads/master
2022-06-22T12:19:44.322415
2020-02-23T22:56:19
2020-02-23T22:56:19
242,149,649
0
0
null
2022-05-20T21:27:04
2020-02-21T13:50:15
Java
UTF-8
Java
false
false
899
java
package com.company.arrays; /** * Created by sonasargsyan on 2/20/20. */ public class SecondByLengthStringInArray { public String[] list; public SecondByLengthStringInArray(String[] list){ this.list =list; } public int getMaxElementIndex(String[] cucak) { String temp = ""; int index = 0; for (int i = 0; i < cucak.length; i++) { if (cucak[i].length() > temp.length()) { temp = cucak[i]; index = i; } } return index; } public String[] removeTheElement(String[] arr, int index) { int k = 0; String[] anotherArray = new String[arr.length - 1]; for (int i = 0; i < arr.length; i++) { if (i != index) { anotherArray[k] = arr[i]; k++; } } return anotherArray; } }
[ "sona.sargsyan@binomial.xyz" ]
sona.sargsyan@binomial.xyz
69ed712581e3fc46b33aa0566668b42e2fca192a
c390aaa69f39d00f992bbce2649ce34df3a95242
/src/main/java/com/khwilo/movieapi/payload/ApiResponse.java
799e1abbdcf9cf875ecac7a9c9f5b3f49a21f3d5
[]
no_license
khwilo/movie-api
0d8da7f57919536d5f8462e422075af8664992e1
4650e9f9b47d740c3bc525259fae5655249f037d
refs/heads/master
2022-06-02T03:08:21.096307
2019-05-16T20:43:52
2019-05-16T20:43:52
185,747,560
1
0
null
2022-05-20T20:57:38
2019-05-09T07:22:17
Java
UTF-8
Java
false
false
551
java
package com.khwilo.movieapi.payload; public class ApiResponse { private Boolean success; private String message; public ApiResponse(Boolean success, String message) { this.success = success; this.message = message; } public Boolean getSuccess() { return success; } public void setSuccess(Boolean success) { this.success = success; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
[ "khwilowatai@gmail.com" ]
khwilowatai@gmail.com
e2c1b2c3e957b8d09b3f6054040ea465bfba4e0c
b83664076bd2e6aa032058cd108608b9fcc99bab
/javasrc/com/bingley/learning/desiner/chain/demo2/GroupLeader.java
0f059821cdc86777e5c1f557f84c91ac4ae4b632
[]
no_license
bingely/JavaLearningProject
40c0d1b40fc60d66dec548af26d3173c757c421e
ea08fdea4b95fbea02d50e43f4d74d1606670808
refs/heads/master
2021-06-26T11:39:36.157987
2020-09-21T07:07:36
2020-09-21T07:07:36
90,386,488
0
0
null
null
null
null
UTF-8
Java
false
false
334
java
package com.bingley.learning.desiner.chain.demo2; /** * @author bingley * @date 2019/3/26. */ public class GroupLeader extends Leader { @Override protected void handler(int money) { System.out.println(money+"由GroupLeader批准"); } @Override protected int getLimit() { return 5000; } }
[ "linmingbing.123" ]
linmingbing.123
c2872130b1946384dc733b06cfc2b815160eb264
395b5043e382c9c9265ac21da6b68e0ba97a1259
/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/com/mapbox/mapboxsdk/plugins/annotation/R.java
fc55e92bd612a9467bd0e5b9bff6c2e498a01a29
[]
no_license
RahilGupta148/Navigation-app
9d303ec62c0d60299b36b508dd8a714ea58f0e51
6e6f908873d8836274979e34717e33180475d005
refs/heads/master
2020-05-30T23:16:04.574230
2019-06-03T13:46:36
2019-06-03T13:46:36
190,012,599
0
1
null
2020-01-22T21:34:00
2019-06-03T13:38:05
Java
UTF-8
Java
false
false
139,811
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.mapbox.mapboxsdk.plugins.annotation; public final class R { private R() {} public static final class anim { private anim() {} public static final int abc_fade_in = 0x7f010000; public static final int abc_fade_out = 0x7f010001; public static final int abc_grow_fade_in_from_bottom = 0x7f010002; public static final int abc_popup_enter = 0x7f010003; public static final int abc_popup_exit = 0x7f010004; public static final int abc_shrink_fade_out_from_bottom = 0x7f010005; public static final int abc_slide_in_bottom = 0x7f010006; public static final int abc_slide_in_top = 0x7f010007; public static final int abc_slide_out_bottom = 0x7f010008; public static final int abc_slide_out_top = 0x7f010009; public static final int abc_tooltip_enter = 0x7f01000a; public static final int abc_tooltip_exit = 0x7f01000b; } public static final class attr { private attr() {} public static final int actionBarDivider = 0x7f030000; public static final int actionBarItemBackground = 0x7f030001; public static final int actionBarPopupTheme = 0x7f030002; public static final int actionBarSize = 0x7f030003; public static final int actionBarSplitStyle = 0x7f030004; public static final int actionBarStyle = 0x7f030005; public static final int actionBarTabBarStyle = 0x7f030006; public static final int actionBarTabStyle = 0x7f030007; public static final int actionBarTabTextStyle = 0x7f030008; public static final int actionBarTheme = 0x7f030009; public static final int actionBarWidgetTheme = 0x7f03000a; public static final int actionButtonStyle = 0x7f03000b; public static final int actionDropDownStyle = 0x7f03000c; public static final int actionLayout = 0x7f03000d; public static final int actionMenuTextAppearance = 0x7f03000e; public static final int actionMenuTextColor = 0x7f03000f; public static final int actionModeBackground = 0x7f030010; public static final int actionModeCloseButtonStyle = 0x7f030011; public static final int actionModeCloseDrawable = 0x7f030012; public static final int actionModeCopyDrawable = 0x7f030013; public static final int actionModeCutDrawable = 0x7f030014; public static final int actionModeFindDrawable = 0x7f030015; public static final int actionModePasteDrawable = 0x7f030016; public static final int actionModePopupWindowStyle = 0x7f030017; public static final int actionModeSelectAllDrawable = 0x7f030018; public static final int actionModeShareDrawable = 0x7f030019; public static final int actionModeSplitBackground = 0x7f03001a; public static final int actionModeStyle = 0x7f03001b; public static final int actionModeWebSearchDrawable = 0x7f03001c; public static final int actionOverflowButtonStyle = 0x7f03001d; public static final int actionOverflowMenuStyle = 0x7f03001e; public static final int actionProviderClass = 0x7f03001f; public static final int actionViewClass = 0x7f030020; public static final int activityChooserViewStyle = 0x7f030021; public static final int alertDialogButtonGroupStyle = 0x7f030022; public static final int alertDialogCenterButtons = 0x7f030023; public static final int alertDialogStyle = 0x7f030024; public static final int alertDialogTheme = 0x7f030025; public static final int allowStacking = 0x7f030026; public static final int alpha = 0x7f030027; public static final int alphabeticModifiers = 0x7f030028; public static final int arrowHeadLength = 0x7f03002e; public static final int arrowShaftLength = 0x7f03002f; public static final int autoCompleteTextViewStyle = 0x7f030030; public static final int autoSizeMaxTextSize = 0x7f030031; public static final int autoSizeMinTextSize = 0x7f030032; public static final int autoSizePresetSizes = 0x7f030033; public static final int autoSizeStepGranularity = 0x7f030034; public static final int autoSizeTextType = 0x7f030035; public static final int background = 0x7f030036; public static final int backgroundSplit = 0x7f030037; public static final int backgroundStacked = 0x7f030038; public static final int backgroundTint = 0x7f030039; public static final int backgroundTintMode = 0x7f03003a; public static final int barLength = 0x7f03003b; public static final int borderlessButtonStyle = 0x7f030045; public static final int buttonBarButtonStyle = 0x7f030053; public static final int buttonBarNegativeButtonStyle = 0x7f030054; public static final int buttonBarNeutralButtonStyle = 0x7f030055; public static final int buttonBarPositiveButtonStyle = 0x7f030056; public static final int buttonBarStyle = 0x7f030057; public static final int buttonGravity = 0x7f030058; public static final int buttonIconDimen = 0x7f030059; public static final int buttonPanelSideLayout = 0x7f03005a; public static final int buttonStyle = 0x7f03005b; public static final int buttonStyleSmall = 0x7f03005c; public static final int buttonTint = 0x7f03005d; public static final int buttonTintMode = 0x7f03005e; public static final int checkboxStyle = 0x7f030067; public static final int checkedTextViewStyle = 0x7f03006c; public static final int closeIcon = 0x7f03007f; public static final int closeItemLayout = 0x7f030086; public static final int collapseContentDescription = 0x7f030087; public static final int collapseIcon = 0x7f030088; public static final int color = 0x7f03008b; public static final int colorAccent = 0x7f03008c; public static final int colorBackgroundFloating = 0x7f03008d; public static final int colorButtonNormal = 0x7f03008e; public static final int colorControlActivated = 0x7f03008f; public static final int colorControlHighlight = 0x7f030090; public static final int colorControlNormal = 0x7f030091; public static final int colorError = 0x7f030092; public static final int colorPrimary = 0x7f030093; public static final int colorPrimaryDark = 0x7f030094; public static final int colorSwitchThumbNormal = 0x7f030096; public static final int commitIcon = 0x7f030097; public static final int contentDescription = 0x7f03009b; public static final int contentInsetEnd = 0x7f03009c; public static final int contentInsetEndWithActions = 0x7f03009d; public static final int contentInsetLeft = 0x7f03009e; public static final int contentInsetRight = 0x7f03009f; public static final int contentInsetStart = 0x7f0300a0; public static final int contentInsetStartWithNavigation = 0x7f0300a1; public static final int controlBackground = 0x7f0300a8; public static final int coordinatorLayoutStyle = 0x7f0300a9; public static final int customNavigationLayout = 0x7f0300af; public static final int defaultQueryHint = 0x7f0300b0; public static final int dialogCornerRadius = 0x7f0300b2; public static final int dialogPreferredPadding = 0x7f0300b3; public static final int dialogTheme = 0x7f0300b4; public static final int displayOptions = 0x7f0300b5; public static final int divider = 0x7f0300b6; public static final int dividerHorizontal = 0x7f0300b7; public static final int dividerPadding = 0x7f0300b8; public static final int dividerVertical = 0x7f0300b9; public static final int drawableSize = 0x7f0300ba; public static final int drawerArrowStyle = 0x7f0300bb; public static final int dropDownListViewStyle = 0x7f0300bc; public static final int dropdownListPreferredItemHeight = 0x7f0300bd; public static final int editTextBackground = 0x7f0300be; public static final int editTextColor = 0x7f0300bf; public static final int editTextStyle = 0x7f0300c0; public static final int elevation = 0x7f0300c1; public static final int expandActivityOverflowButtonDrawable = 0x7f0300c7; public static final int firstBaselineToTopHeight = 0x7f0300db; public static final int font = 0x7f0300dd; public static final int fontFamily = 0x7f0300de; public static final int fontProviderAuthority = 0x7f0300df; public static final int fontProviderCerts = 0x7f0300e0; public static final int fontProviderFetchStrategy = 0x7f0300e1; public static final int fontProviderFetchTimeout = 0x7f0300e2; public static final int fontProviderPackage = 0x7f0300e3; public static final int fontProviderQuery = 0x7f0300e4; public static final int fontStyle = 0x7f0300e5; public static final int fontVariationSettings = 0x7f0300e6; public static final int fontWeight = 0x7f0300e7; public static final int gapBetweenBars = 0x7f0300e9; public static final int goIcon = 0x7f0300ea; public static final int height = 0x7f0300ec; public static final int hideOnContentScroll = 0x7f0300f1; public static final int homeAsUpIndicator = 0x7f0300f6; public static final int homeLayout = 0x7f0300f7; public static final int icon = 0x7f0300f9; public static final int iconTint = 0x7f0300ff; public static final int iconTintMode = 0x7f030100; public static final int iconifiedByDefault = 0x7f030101; public static final int imageButtonStyle = 0x7f030102; public static final int indeterminateProgressStyle = 0x7f030103; public static final int initialActivityCount = 0x7f030104; public static final int isLightTheme = 0x7f030106; public static final int itemPadding = 0x7f03010d; public static final int keylines = 0x7f030113; public static final int lastBaselineToBottomHeight = 0x7f030115; public static final int layout = 0x7f030116; public static final int layout_anchor = 0x7f030118; public static final int layout_anchorGravity = 0x7f030119; public static final int layout_behavior = 0x7f03011a; public static final int layout_dodgeInsetEdges = 0x7f030146; public static final int layout_insetEdge = 0x7f03014f; public static final int layout_keyline = 0x7f030150; public static final int lineHeight = 0x7f030155; public static final int listChoiceBackgroundIndicator = 0x7f030157; public static final int listDividerAlertDialog = 0x7f030158; public static final int listItemLayout = 0x7f030159; public static final int listLayout = 0x7f03015a; public static final int listMenuViewStyle = 0x7f03015b; public static final int listPopupWindowStyle = 0x7f03015c; public static final int listPreferredItemHeight = 0x7f03015d; public static final int listPreferredItemHeightLarge = 0x7f03015e; public static final int listPreferredItemHeightSmall = 0x7f03015f; public static final int listPreferredItemPaddingLeft = 0x7f030160; public static final int listPreferredItemPaddingRight = 0x7f030161; public static final int logo = 0x7f030162; public static final int logoDescription = 0x7f030163; public static final int mapbox_accuracyAlpha = 0x7f030166; public static final int mapbox_accuracyAnimationEnabled = 0x7f030167; public static final int mapbox_accuracyColor = 0x7f030168; public static final int mapbox_apiBaseUrl = 0x7f030169; public static final int mapbox_backgroundDrawable = 0x7f03016a; public static final int mapbox_backgroundDrawableStale = 0x7f03016b; public static final int mapbox_backgroundStaleTintColor = 0x7f03016c; public static final int mapbox_backgroundTintColor = 0x7f03016d; public static final int mapbox_bearingDrawable = 0x7f03016e; public static final int mapbox_bearingTintColor = 0x7f03016f; public static final int mapbox_bl_arrowDirection = 0x7f030170; public static final int mapbox_bl_arrowHeight = 0x7f030171; public static final int mapbox_bl_arrowPosition = 0x7f030172; public static final int mapbox_bl_arrowWidth = 0x7f030173; public static final int mapbox_bl_bubbleColor = 0x7f030174; public static final int mapbox_bl_cornersRadius = 0x7f030175; public static final int mapbox_bl_strokeColor = 0x7f030176; public static final int mapbox_bl_strokeWidth = 0x7f030177; public static final int mapbox_cameraBearing = 0x7f030178; public static final int mapbox_cameraTargetLat = 0x7f030179; public static final int mapbox_cameraTargetLng = 0x7f03017a; public static final int mapbox_cameraTilt = 0x7f03017b; public static final int mapbox_cameraZoom = 0x7f03017c; public static final int mapbox_cameraZoomMax = 0x7f03017d; public static final int mapbox_cameraZoomMin = 0x7f03017e; public static final int mapbox_compassAnimationEnabled = 0x7f03017f; public static final int mapbox_cross_source_collisions = 0x7f030180; public static final int mapbox_elevation = 0x7f030181; public static final int mapbox_enableStaleState = 0x7f030182; public static final int mapbox_enableTilePrefetch = 0x7f030183; public static final int mapbox_enableZMediaOverlay = 0x7f030184; public static final int mapbox_foregroundDrawable = 0x7f030185; public static final int mapbox_foregroundDrawableStale = 0x7f030186; public static final int mapbox_foregroundLoadColor = 0x7f030187; public static final int mapbox_foregroundStaleTintColor = 0x7f030188; public static final int mapbox_foregroundTintColor = 0x7f030189; public static final int mapbox_gpsDrawable = 0x7f03018a; public static final int mapbox_iconPaddingBottom = 0x7f03018b; public static final int mapbox_iconPaddingLeft = 0x7f03018c; public static final int mapbox_iconPaddingRight = 0x7f03018d; public static final int mapbox_iconPaddingTop = 0x7f03018e; public static final int mapbox_layer_below = 0x7f030190; public static final int mapbox_localIdeographFontFamily = 0x7f030191; public static final int mapbox_maxZoomIconScale = 0x7f030192; public static final int mapbox_minZoomIconScale = 0x7f030193; public static final int mapbox_pixelRatio = 0x7f030194; public static final int mapbox_renderTextureMode = 0x7f030195; public static final int mapbox_renderTextureTranslucentSurface = 0x7f030196; public static final int mapbox_staleStateTimeout = 0x7f030197; public static final int mapbox_trackingAnimationDurationMultiplier = 0x7f030198; public static final int mapbox_trackingGesturesManagement = 0x7f030199; public static final int mapbox_trackingInitialMoveThreshold = 0x7f03019a; public static final int mapbox_trackingMultiFingerMoveThreshold = 0x7f03019b; public static final int mapbox_uiAttribution = 0x7f03019c; public static final int mapbox_uiAttributionGravity = 0x7f03019d; public static final int mapbox_uiAttributionMarginBottom = 0x7f03019e; public static final int mapbox_uiAttributionMarginLeft = 0x7f03019f; public static final int mapbox_uiAttributionMarginRight = 0x7f0301a0; public static final int mapbox_uiAttributionMarginTop = 0x7f0301a1; public static final int mapbox_uiAttributionTintColor = 0x7f0301a2; public static final int mapbox_uiCompass = 0x7f0301a3; public static final int mapbox_uiCompassDrawable = 0x7f0301a4; public static final int mapbox_uiCompassFadeFacingNorth = 0x7f0301a5; public static final int mapbox_uiCompassGravity = 0x7f0301a6; public static final int mapbox_uiCompassMarginBottom = 0x7f0301a7; public static final int mapbox_uiCompassMarginLeft = 0x7f0301a8; public static final int mapbox_uiCompassMarginRight = 0x7f0301a9; public static final int mapbox_uiCompassMarginTop = 0x7f0301aa; public static final int mapbox_uiDoubleTapGestures = 0x7f0301ab; public static final int mapbox_uiLogo = 0x7f0301ac; public static final int mapbox_uiLogoGravity = 0x7f0301ad; public static final int mapbox_uiLogoMarginBottom = 0x7f0301ae; public static final int mapbox_uiLogoMarginLeft = 0x7f0301af; public static final int mapbox_uiLogoMarginRight = 0x7f0301b0; public static final int mapbox_uiLogoMarginTop = 0x7f0301b1; public static final int mapbox_uiQuickZoomGestures = 0x7f0301b2; public static final int mapbox_uiRotateGestures = 0x7f0301b3; public static final int mapbox_uiScrollGestures = 0x7f0301b4; public static final int mapbox_uiTiltGestures = 0x7f0301b5; public static final int mapbox_uiZoomGestures = 0x7f0301b6; public static final int maxButtonHeight = 0x7f0301ba; public static final int measureWithLargestChild = 0x7f0301bc; public static final int multiChoiceItemLayout = 0x7f0301be; public static final int navigationContentDescription = 0x7f0301bf; public static final int navigationIcon = 0x7f0301c1; public static final int navigationMode = 0x7f0301c3; public static final int numericModifiers = 0x7f0301d8; public static final int overlapAnchor = 0x7f0301da; public static final int paddingBottomNoButtons = 0x7f0301db; public static final int paddingEnd = 0x7f0301dc; public static final int paddingStart = 0x7f0301dd; public static final int paddingTopNoTitle = 0x7f0301de; public static final int panelBackground = 0x7f0301df; public static final int panelMenuListTheme = 0x7f0301e0; public static final int panelMenuListWidth = 0x7f0301e1; public static final int popupMenuStyle = 0x7f0301e7; public static final int popupTheme = 0x7f0301e8; public static final int popupWindowStyle = 0x7f0301e9; public static final int preserveIconSpacing = 0x7f0301ea; public static final int progressBarPadding = 0x7f0301ec; public static final int progressBarStyle = 0x7f0301ed; public static final int queryBackground = 0x7f0301ee; public static final int queryHint = 0x7f0301ef; public static final int radioButtonStyle = 0x7f0301f0; public static final int ratingBarStyle = 0x7f0301f1; public static final int ratingBarStyleIndicator = 0x7f0301f2; public static final int ratingBarStyleSmall = 0x7f0301f3; public static final int searchHintIcon = 0x7f0301ff; public static final int searchIcon = 0x7f030200; public static final int searchViewStyle = 0x7f030201; public static final int seekBarStyle = 0x7f030202; public static final int selectableItemBackground = 0x7f030203; public static final int selectableItemBackgroundBorderless = 0x7f030204; public static final int showAsAction = 0x7f030205; public static final int showDividers = 0x7f030206; public static final int showText = 0x7f030208; public static final int showTitle = 0x7f030209; public static final int singleChoiceItemLayout = 0x7f03020a; public static final int spinBars = 0x7f030210; public static final int spinnerDropDownItemStyle = 0x7f030211; public static final int spinnerStyle = 0x7f030212; public static final int splitTrack = 0x7f030213; public static final int srcCompat = 0x7f030214; public static final int state_above_anchor = 0x7f030216; public static final int statusBarBackground = 0x7f03021b; public static final int subMenuArrow = 0x7f03021f; public static final int submitBackground = 0x7f030220; public static final int subtitle = 0x7f030221; public static final int subtitleTextAppearance = 0x7f030222; public static final int subtitleTextColor = 0x7f030223; public static final int subtitleTextStyle = 0x7f030224; public static final int suggestionRowLayout = 0x7f030225; public static final int switchMinWidth = 0x7f030226; public static final int switchPadding = 0x7f030227; public static final int switchStyle = 0x7f030228; public static final int switchTextAppearance = 0x7f030229; public static final int textAllCaps = 0x7f030244; public static final int textAppearanceLargePopupMenu = 0x7f03024f; public static final int textAppearanceListItem = 0x7f030250; public static final int textAppearanceListItemSecondary = 0x7f030251; public static final int textAppearanceListItemSmall = 0x7f030252; public static final int textAppearancePopupMenuHeader = 0x7f030254; public static final int textAppearanceSearchResultSubtitle = 0x7f030255; public static final int textAppearanceSearchResultTitle = 0x7f030256; public static final int textAppearanceSmallPopupMenu = 0x7f030257; public static final int textColorAlertDialogListItem = 0x7f03025a; public static final int textColorSearchUrl = 0x7f03025b; public static final int theme = 0x7f03025f; public static final int thickness = 0x7f030260; public static final int thumbTextPadding = 0x7f030261; public static final int thumbTint = 0x7f030262; public static final int thumbTintMode = 0x7f030263; public static final int tickMark = 0x7f030264; public static final int tickMarkTint = 0x7f030265; public static final int tickMarkTintMode = 0x7f030266; public static final int tint = 0x7f030267; public static final int tintMode = 0x7f030268; public static final int title = 0x7f030269; public static final int titleMargin = 0x7f03026b; public static final int titleMarginBottom = 0x7f03026c; public static final int titleMarginEnd = 0x7f03026d; public static final int titleMarginStart = 0x7f03026e; public static final int titleMarginTop = 0x7f03026f; public static final int titleMargins = 0x7f030270; public static final int titleTextAppearance = 0x7f030271; public static final int titleTextColor = 0x7f030272; public static final int titleTextStyle = 0x7f030273; public static final int toolbarNavigationButtonStyle = 0x7f030275; public static final int toolbarStyle = 0x7f030276; public static final int tooltipForegroundColor = 0x7f030277; public static final int tooltipFrameBackground = 0x7f030278; public static final int tooltipText = 0x7f030279; public static final int track = 0x7f03027a; public static final int trackTint = 0x7f03027b; public static final int trackTintMode = 0x7f03027c; public static final int ttcIndex = 0x7f03027d; public static final int viewInflaterClass = 0x7f030281; public static final int voiceIcon = 0x7f030282; public static final int windowActionBar = 0x7f030283; public static final int windowActionBarOverlay = 0x7f030284; public static final int windowActionModeOverlay = 0x7f030285; public static final int windowFixedHeightMajor = 0x7f030286; public static final int windowFixedHeightMinor = 0x7f030287; public static final int windowFixedWidthMajor = 0x7f030288; public static final int windowFixedWidthMinor = 0x7f030289; public static final int windowMinWidthMajor = 0x7f03028a; public static final int windowMinWidthMinor = 0x7f03028b; public static final int windowNoTitle = 0x7f03028c; } public static final class bool { private bool() {} public static final int abc_action_bar_embed_tabs = 0x7f040000; public static final int abc_allow_stacked_button_bar = 0x7f040001; public static final int abc_config_actionMenuItemAllCaps = 0x7f040002; } public static final class color { private color() {} public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000; public static final int abc_background_cache_hint_selector_material_light = 0x7f050001; public static final int abc_btn_colored_borderless_text_material = 0x7f050002; public static final int abc_btn_colored_text_material = 0x7f050003; public static final int abc_color_highlight_material = 0x7f050004; public static final int abc_hint_foreground_material_dark = 0x7f050005; public static final int abc_hint_foreground_material_light = 0x7f050006; public static final int abc_input_method_navigation_guard = 0x7f050007; public static final int abc_primary_text_disable_only_material_dark = 0x7f050008; public static final int abc_primary_text_disable_only_material_light = 0x7f050009; public static final int abc_primary_text_material_dark = 0x7f05000a; public static final int abc_primary_text_material_light = 0x7f05000b; public static final int abc_search_url_text = 0x7f05000c; public static final int abc_search_url_text_normal = 0x7f05000d; public static final int abc_search_url_text_pressed = 0x7f05000e; public static final int abc_search_url_text_selected = 0x7f05000f; public static final int abc_secondary_text_material_dark = 0x7f050010; public static final int abc_secondary_text_material_light = 0x7f050011; public static final int abc_tint_btn_checkable = 0x7f050012; public static final int abc_tint_default = 0x7f050013; public static final int abc_tint_edittext = 0x7f050014; public static final int abc_tint_seek_thumb = 0x7f050015; public static final int abc_tint_spinner = 0x7f050016; public static final int abc_tint_switch_track = 0x7f050017; public static final int accent_material_dark = 0x7f050018; public static final int accent_material_light = 0x7f050019; public static final int background_floating_material_dark = 0x7f05001a; public static final int background_floating_material_light = 0x7f05001b; public static final int background_material_dark = 0x7f05001c; public static final int background_material_light = 0x7f05001d; public static final int bright_foreground_disabled_material_dark = 0x7f05001f; public static final int bright_foreground_disabled_material_light = 0x7f050020; public static final int bright_foreground_inverse_material_dark = 0x7f050021; public static final int bright_foreground_inverse_material_light = 0x7f050022; public static final int bright_foreground_material_dark = 0x7f050023; public static final int bright_foreground_material_light = 0x7f050024; public static final int button_material_dark = 0x7f050025; public static final int button_material_light = 0x7f050026; public static final int dim_foreground_disabled_material_dark = 0x7f05004d; public static final int dim_foreground_disabled_material_light = 0x7f05004e; public static final int dim_foreground_material_dark = 0x7f05004f; public static final int dim_foreground_material_light = 0x7f050050; public static final int error_color_material_dark = 0x7f050051; public static final int error_color_material_light = 0x7f050052; public static final int foreground_material_dark = 0x7f050053; public static final int foreground_material_light = 0x7f050054; public static final int highlighted_text_material_dark = 0x7f050055; public static final int highlighted_text_material_light = 0x7f050056; public static final int mapbox_blue = 0x7f050059; public static final int mapbox_gray = 0x7f05005a; public static final int mapbox_gray_dark = 0x7f05005b; public static final int mapbox_location_layer_blue = 0x7f05005c; public static final int mapbox_location_layer_gray = 0x7f05005d; public static final int material_blue_grey_800 = 0x7f050084; public static final int material_blue_grey_900 = 0x7f050085; public static final int material_blue_grey_950 = 0x7f050086; public static final int material_deep_teal_200 = 0x7f050087; public static final int material_deep_teal_500 = 0x7f050088; public static final int material_grey_100 = 0x7f050089; public static final int material_grey_300 = 0x7f05008a; public static final int material_grey_50 = 0x7f05008b; public static final int material_grey_600 = 0x7f05008c; public static final int material_grey_800 = 0x7f05008d; public static final int material_grey_850 = 0x7f05008e; public static final int material_grey_900 = 0x7f05008f; public static final int notification_action_color_filter = 0x7f0500b5; public static final int notification_icon_bg_color = 0x7f0500b6; public static final int primary_dark_material_dark = 0x7f0500b7; public static final int primary_dark_material_light = 0x7f0500b8; public static final int primary_material_dark = 0x7f0500b9; public static final int primary_material_light = 0x7f0500ba; public static final int primary_text_default_material_dark = 0x7f0500bb; public static final int primary_text_default_material_light = 0x7f0500bc; public static final int primary_text_disabled_material_dark = 0x7f0500bd; public static final int primary_text_disabled_material_light = 0x7f0500be; public static final int ripple_material_dark = 0x7f0500bf; public static final int ripple_material_light = 0x7f0500c0; public static final int secondary_text_default_material_dark = 0x7f0500c1; public static final int secondary_text_default_material_light = 0x7f0500c2; public static final int secondary_text_disabled_material_dark = 0x7f0500c3; public static final int secondary_text_disabled_material_light = 0x7f0500c4; public static final int switch_thumb_disabled_material_dark = 0x7f0500c5; public static final int switch_thumb_disabled_material_light = 0x7f0500c6; public static final int switch_thumb_material_dark = 0x7f0500c7; public static final int switch_thumb_material_light = 0x7f0500c8; public static final int switch_thumb_normal_material_dark = 0x7f0500c9; public static final int switch_thumb_normal_material_light = 0x7f0500ca; public static final int tooltip_background_dark = 0x7f0500cb; public static final int tooltip_background_light = 0x7f0500cc; } public static final class dimen { private dimen() {} public static final int abc_action_bar_content_inset_material = 0x7f060000; public static final int abc_action_bar_content_inset_with_nav = 0x7f060001; public static final int abc_action_bar_default_height_material = 0x7f060002; public static final int abc_action_bar_default_padding_end_material = 0x7f060003; public static final int abc_action_bar_default_padding_start_material = 0x7f060004; public static final int abc_action_bar_elevation_material = 0x7f060005; public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060006; public static final int abc_action_bar_overflow_padding_end_material = 0x7f060007; public static final int abc_action_bar_overflow_padding_start_material = 0x7f060008; public static final int abc_action_bar_stacked_max_height = 0x7f060009; public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000a; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000b; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000c; public static final int abc_action_button_min_height_material = 0x7f06000d; public static final int abc_action_button_min_width_material = 0x7f06000e; public static final int abc_action_button_min_width_overflow_material = 0x7f06000f; public static final int abc_alert_dialog_button_bar_height = 0x7f060010; public static final int abc_alert_dialog_button_dimen = 0x7f060011; public static final int abc_button_inset_horizontal_material = 0x7f060012; public static final int abc_button_inset_vertical_material = 0x7f060013; public static final int abc_button_padding_horizontal_material = 0x7f060014; public static final int abc_button_padding_vertical_material = 0x7f060015; public static final int abc_cascading_menus_min_smallest_width = 0x7f060016; public static final int abc_config_prefDialogWidth = 0x7f060017; public static final int abc_control_corner_material = 0x7f060018; public static final int abc_control_inset_material = 0x7f060019; public static final int abc_control_padding_material = 0x7f06001a; public static final int abc_dialog_corner_radius_material = 0x7f06001b; public static final int abc_dialog_fixed_height_major = 0x7f06001c; public static final int abc_dialog_fixed_height_minor = 0x7f06001d; public static final int abc_dialog_fixed_width_major = 0x7f06001e; public static final int abc_dialog_fixed_width_minor = 0x7f06001f; public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f060020; public static final int abc_dialog_list_padding_top_no_title = 0x7f060021; public static final int abc_dialog_min_width_major = 0x7f060022; public static final int abc_dialog_min_width_minor = 0x7f060023; public static final int abc_dialog_padding_material = 0x7f060024; public static final int abc_dialog_padding_top_material = 0x7f060025; public static final int abc_dialog_title_divider_material = 0x7f060026; public static final int abc_disabled_alpha_material_dark = 0x7f060027; public static final int abc_disabled_alpha_material_light = 0x7f060028; public static final int abc_dropdownitem_icon_width = 0x7f060029; public static final int abc_dropdownitem_text_padding_left = 0x7f06002a; public static final int abc_dropdownitem_text_padding_right = 0x7f06002b; public static final int abc_edit_text_inset_bottom_material = 0x7f06002c; public static final int abc_edit_text_inset_horizontal_material = 0x7f06002d; public static final int abc_edit_text_inset_top_material = 0x7f06002e; public static final int abc_floating_window_z = 0x7f06002f; public static final int abc_list_item_padding_horizontal_material = 0x7f060030; public static final int abc_panel_menu_list_width = 0x7f060031; public static final int abc_progress_bar_height_material = 0x7f060032; public static final int abc_search_view_preferred_height = 0x7f060033; public static final int abc_search_view_preferred_width = 0x7f060034; public static final int abc_seekbar_track_background_height_material = 0x7f060035; public static final int abc_seekbar_track_progress_height_material = 0x7f060036; public static final int abc_select_dialog_padding_start_material = 0x7f060037; public static final int abc_switch_padding = 0x7f060038; public static final int abc_text_size_body_1_material = 0x7f060039; public static final int abc_text_size_body_2_material = 0x7f06003a; public static final int abc_text_size_button_material = 0x7f06003b; public static final int abc_text_size_caption_material = 0x7f06003c; public static final int abc_text_size_display_1_material = 0x7f06003d; public static final int abc_text_size_display_2_material = 0x7f06003e; public static final int abc_text_size_display_3_material = 0x7f06003f; public static final int abc_text_size_display_4_material = 0x7f060040; public static final int abc_text_size_headline_material = 0x7f060041; public static final int abc_text_size_large_material = 0x7f060042; public static final int abc_text_size_medium_material = 0x7f060043; public static final int abc_text_size_menu_header_material = 0x7f060044; public static final int abc_text_size_menu_material = 0x7f060045; public static final int abc_text_size_small_material = 0x7f060046; public static final int abc_text_size_subhead_material = 0x7f060047; public static final int abc_text_size_subtitle_material_toolbar = 0x7f060048; public static final int abc_text_size_title_material = 0x7f060049; public static final int abc_text_size_title_material_toolbar = 0x7f06004a; public static final int compat_button_inset_horizontal_material = 0x7f06004f; public static final int compat_button_inset_vertical_material = 0x7f060050; public static final int compat_button_padding_horizontal_material = 0x7f060051; public static final int compat_button_padding_vertical_material = 0x7f060052; public static final int compat_control_corner_material = 0x7f060053; public static final int compat_notification_large_icon_max_height = 0x7f060054; public static final int compat_notification_large_icon_max_width = 0x7f060055; public static final int disabled_alpha_material_dark = 0x7f060082; public static final int disabled_alpha_material_light = 0x7f060083; public static final int highlight_alpha_material_colored = 0x7f060089; public static final int highlight_alpha_material_dark = 0x7f06008a; public static final int highlight_alpha_material_light = 0x7f06008b; public static final int hint_alpha_material_dark = 0x7f06008c; public static final int hint_alpha_material_light = 0x7f06008d; public static final int hint_pressed_alpha_material_dark = 0x7f06008e; public static final int hint_pressed_alpha_material_light = 0x7f06008f; public static final int mapbox_defaultMultiTapMovementThreshold = 0x7f060094; public static final int mapbox_defaultMutliFingerSpanThreshold = 0x7f060095; public static final int mapbox_defaultScaleSpanSinceStartThreshold = 0x7f060096; public static final int mapbox_defaultShovePixelThreshold = 0x7f060097; public static final int mapbox_eight_dp = 0x7f060098; public static final int mapbox_four_dp = 0x7f060099; public static final int mapbox_infowindow_margin = 0x7f06009a; public static final int mapbox_infowindow_tipview_width = 0x7f06009b; public static final int mapbox_internalScaleMinSpan23 = 0x7f06009c; public static final int mapbox_internalScaleMinSpan24 = 0x7f06009d; public static final int mapbox_locationComponentTrackingInitialMoveThreshold = 0x7f06009e; public static final int mapbox_locationComponentTrackingMultiFingerMoveThreshold = 0x7f06009f; public static final int mapbox_minimum_angular_velocity = 0x7f0600a0; public static final int mapbox_minimum_scale_span_when_rotating = 0x7f0600a1; public static final int mapbox_minimum_scale_velocity = 0x7f0600a2; public static final int mapbox_my_locationview_outer_circle = 0x7f0600a3; public static final int mapbox_ninety_two_dp = 0x7f0600a4; public static final int notification_action_icon_size = 0x7f0600d5; public static final int notification_action_text_size = 0x7f0600d6; public static final int notification_big_circle_margin = 0x7f0600d7; public static final int notification_content_margin_start = 0x7f0600d8; public static final int notification_large_icon_height = 0x7f0600d9; public static final int notification_large_icon_width = 0x7f0600da; public static final int notification_main_column_padding_top = 0x7f0600db; public static final int notification_media_narrow_margin = 0x7f0600dc; public static final int notification_right_icon_size = 0x7f0600dd; public static final int notification_right_side_padding_top = 0x7f0600de; public static final int notification_small_icon_background_padding = 0x7f0600df; public static final int notification_small_icon_size_as_large = 0x7f0600e0; public static final int notification_subtext_size = 0x7f0600e1; public static final int notification_top_pad = 0x7f0600e2; public static final int notification_top_pad_large_text = 0x7f0600e3; public static final int tooltip_corner_radius = 0x7f0600e8; public static final int tooltip_horizontal_padding = 0x7f0600e9; public static final int tooltip_margin = 0x7f0600ea; public static final int tooltip_precise_anchor_extra_offset = 0x7f0600eb; public static final int tooltip_precise_anchor_threshold = 0x7f0600ec; public static final int tooltip_vertical_padding = 0x7f0600ed; public static final int tooltip_y_offset_non_touch = 0x7f0600ee; public static final int tooltip_y_offset_touch = 0x7f0600ef; } public static final class drawable { private drawable() {} public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070006; public static final int abc_action_bar_item_background_material = 0x7f070007; public static final int abc_btn_borderless_material = 0x7f070008; public static final int abc_btn_check_material = 0x7f070009; public static final int abc_btn_check_to_on_mtrl_000 = 0x7f07000a; public static final int abc_btn_check_to_on_mtrl_015 = 0x7f07000b; public static final int abc_btn_colored_material = 0x7f07000c; public static final int abc_btn_default_mtrl_shape = 0x7f07000d; public static final int abc_btn_radio_material = 0x7f07000e; public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f07000f; public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f070010; public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f070011; public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f070012; public static final int abc_cab_background_internal_bg = 0x7f070013; public static final int abc_cab_background_top_material = 0x7f070014; public static final int abc_cab_background_top_mtrl_alpha = 0x7f070015; public static final int abc_control_background_material = 0x7f070016; public static final int abc_dialog_material_background = 0x7f070017; public static final int abc_edit_text_material = 0x7f070018; public static final int abc_ic_ab_back_material = 0x7f070019; public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f07001a; public static final int abc_ic_clear_material = 0x7f07001b; public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f07001c; public static final int abc_ic_go_search_api_material = 0x7f07001d; public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f07001e; public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f07001f; public static final int abc_ic_menu_overflow_material = 0x7f070020; public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f070021; public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f070022; public static final int abc_ic_menu_share_mtrl_alpha = 0x7f070023; public static final int abc_ic_search_api_material = 0x7f070024; public static final int abc_ic_star_black_16dp = 0x7f070025; public static final int abc_ic_star_black_36dp = 0x7f070026; public static final int abc_ic_star_black_48dp = 0x7f070027; public static final int abc_ic_star_half_black_16dp = 0x7f070028; public static final int abc_ic_star_half_black_36dp = 0x7f070029; public static final int abc_ic_star_half_black_48dp = 0x7f07002a; public static final int abc_ic_voice_search_api_material = 0x7f07002b; public static final int abc_item_background_holo_dark = 0x7f07002c; public static final int abc_item_background_holo_light = 0x7f07002d; public static final int abc_list_divider_material = 0x7f07002e; public static final int abc_list_divider_mtrl_alpha = 0x7f07002f; public static final int abc_list_focused_holo = 0x7f070030; public static final int abc_list_longpressed_holo = 0x7f070031; public static final int abc_list_pressed_holo_dark = 0x7f070032; public static final int abc_list_pressed_holo_light = 0x7f070033; public static final int abc_list_selector_background_transition_holo_dark = 0x7f070034; public static final int abc_list_selector_background_transition_holo_light = 0x7f070035; public static final int abc_list_selector_disabled_holo_dark = 0x7f070036; public static final int abc_list_selector_disabled_holo_light = 0x7f070037; public static final int abc_list_selector_holo_dark = 0x7f070038; public static final int abc_list_selector_holo_light = 0x7f070039; public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f07003a; public static final int abc_popup_background_mtrl_mult = 0x7f07003b; public static final int abc_ratingbar_indicator_material = 0x7f07003c; public static final int abc_ratingbar_material = 0x7f07003d; public static final int abc_ratingbar_small_material = 0x7f07003e; public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f07003f; public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070040; public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f070041; public static final int abc_scrubber_primary_mtrl_alpha = 0x7f070042; public static final int abc_scrubber_track_mtrl_alpha = 0x7f070043; public static final int abc_seekbar_thumb_material = 0x7f070044; public static final int abc_seekbar_tick_mark_material = 0x7f070045; public static final int abc_seekbar_track_material = 0x7f070046; public static final int abc_spinner_mtrl_am_alpha = 0x7f070047; public static final int abc_spinner_textfield_background_material = 0x7f070048; public static final int abc_switch_thumb_material = 0x7f070049; public static final int abc_switch_track_mtrl_alpha = 0x7f07004a; public static final int abc_tab_indicator_material = 0x7f07004b; public static final int abc_tab_indicator_mtrl_alpha = 0x7f07004c; public static final int abc_text_cursor_material = 0x7f07004d; public static final int abc_text_select_handle_left_mtrl_dark = 0x7f07004e; public static final int abc_text_select_handle_left_mtrl_light = 0x7f07004f; public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f070050; public static final int abc_text_select_handle_middle_mtrl_light = 0x7f070051; public static final int abc_text_select_handle_right_mtrl_dark = 0x7f070052; public static final int abc_text_select_handle_right_mtrl_light = 0x7f070053; public static final int abc_textfield_activated_mtrl_alpha = 0x7f070054; public static final int abc_textfield_default_mtrl_alpha = 0x7f070055; public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070056; public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070057; public static final int abc_textfield_search_material = 0x7f070058; public static final int abc_vector_test = 0x7f070059; public static final int mapbox_compass_icon = 0x7f0700c7; public static final int mapbox_info_bg_selector = 0x7f0700c8; public static final int mapbox_info_icon_default = 0x7f0700c9; public static final int mapbox_info_icon_selected = 0x7f0700ca; public static final int mapbox_logo_helmet = 0x7f0700cb; public static final int mapbox_logo_icon = 0x7f0700cc; public static final int mapbox_marker_icon_default = 0x7f0700cd; public static final int mapbox_markerview_icon_default = 0x7f0700ce; public static final int mapbox_mylocation_bg_shape = 0x7f0700cf; public static final int mapbox_mylocation_icon_bearing = 0x7f0700d0; public static final int mapbox_mylocation_icon_default = 0x7f0700d1; public static final int mapbox_popup_window_transparent = 0x7f0700d2; public static final int mapbox_rounded_corner = 0x7f0700d3; public static final int mapbox_user_bearing_icon = 0x7f0700d4; public static final int mapbox_user_icon = 0x7f0700d5; public static final int mapbox_user_icon_shadow = 0x7f0700d6; public static final int mapbox_user_icon_stale = 0x7f0700d7; public static final int mapbox_user_puck_icon = 0x7f0700d8; public static final int mapbox_user_stroke_icon = 0x7f0700d9; public static final int notification_action_background = 0x7f0700e0; public static final int notification_bg = 0x7f0700e1; public static final int notification_bg_low = 0x7f0700e2; public static final int notification_bg_low_normal = 0x7f0700e3; public static final int notification_bg_low_pressed = 0x7f0700e4; public static final int notification_bg_normal = 0x7f0700e5; public static final int notification_bg_normal_pressed = 0x7f0700e6; public static final int notification_icon_background = 0x7f0700e7; public static final int notification_template_icon_bg = 0x7f0700e8; public static final int notification_template_icon_low_bg = 0x7f0700e9; public static final int notification_tile_bg = 0x7f0700ea; public static final int notify_panel_notification_icon_bg = 0x7f0700eb; public static final int tooltip_frame_dark = 0x7f0700fc; public static final int tooltip_frame_light = 0x7f0700fd; } public static final class id { private id() {} public static final int action_bar = 0x7f090006; public static final int action_bar_activity_content = 0x7f090007; public static final int action_bar_container = 0x7f090008; public static final int action_bar_root = 0x7f090009; public static final int action_bar_spinner = 0x7f09000a; public static final int action_bar_subtitle = 0x7f09000b; public static final int action_bar_title = 0x7f09000c; public static final int action_container = 0x7f09000d; public static final int action_context_bar = 0x7f09000e; public static final int action_divider = 0x7f09000f; public static final int action_image = 0x7f090010; public static final int action_menu_divider = 0x7f090011; public static final int action_menu_presenter = 0x7f090012; public static final int action_mode_bar = 0x7f090013; public static final int action_mode_bar_stub = 0x7f090014; public static final int action_mode_close_button = 0x7f090015; public static final int action_text = 0x7f090016; public static final int actions = 0x7f090017; public static final int activity_chooser_view_content = 0x7f090018; public static final int add = 0x7f09001a; public static final int alertTitle = 0x7f09001e; public static final int async = 0x7f090023; public static final int attributionView = 0x7f090024; public static final int blocking = 0x7f090029; public static final int bottom = 0x7f09002b; public static final int buttonPanel = 0x7f09002d; public static final int checkbox = 0x7f090033; public static final int chronometer = 0x7f090034; public static final int compassView = 0x7f090038; public static final int content = 0x7f09003b; public static final int contentPanel = 0x7f09003c; public static final int custom = 0x7f09003e; public static final int customPanel = 0x7f09003f; public static final int decor_content_parent = 0x7f090040; public static final int default_activity_button = 0x7f090041; public static final int edit_query = 0x7f09004e; public static final int end = 0x7f090050; public static final int expand_activities_button = 0x7f090055; public static final int expanded_menu = 0x7f090056; public static final int forever = 0x7f090064; public static final int group_divider = 0x7f090069; public static final int home = 0x7f090073; public static final int icon = 0x7f090076; public static final int icon_group = 0x7f090078; public static final int image = 0x7f09007a; public static final int info = 0x7f09007b; public static final int infowindow_description = 0x7f09007c; public static final int infowindow_title = 0x7f09007d; public static final int italic = 0x7f090085; public static final int left = 0x7f090089; public static final int line1 = 0x7f09008a; public static final int line3 = 0x7f09008b; public static final int listMode = 0x7f09008c; public static final int list_item = 0x7f09008d; public static final int logoView = 0x7f090092; public static final int message = 0x7f09009a; public static final int multiply = 0x7f0900a0; public static final int none = 0x7f0900a9; public static final int normal = 0x7f0900aa; public static final int notification_background = 0x7f0900ae; public static final int notification_main_column = 0x7f0900af; public static final int notification_main_column_container = 0x7f0900b0; public static final int parentPanel = 0x7f0900b6; public static final int progress_circular = 0x7f0900bb; public static final int progress_horizontal = 0x7f0900bc; public static final int radio = 0x7f0900be; public static final int right = 0x7f0900c2; public static final int right_icon = 0x7f0900c3; public static final int right_side = 0x7f0900c4; public static final int screen = 0x7f0900cc; public static final int scrollIndicatorDown = 0x7f0900cf; public static final int scrollIndicatorUp = 0x7f0900d0; public static final int scrollView = 0x7f0900d1; public static final int search_badge = 0x7f0900d3; public static final int search_bar = 0x7f0900d4; public static final int search_button = 0x7f0900d5; public static final int search_close_btn = 0x7f0900d6; public static final int search_edit_frame = 0x7f0900d7; public static final int search_go_btn = 0x7f0900d8; public static final int search_mag_icon = 0x7f0900d9; public static final int search_plate = 0x7f0900da; public static final int search_src_text = 0x7f0900db; public static final int search_voice_btn = 0x7f0900dc; public static final int select_dialog_listview = 0x7f0900dd; public static final int shortcut = 0x7f0900e0; public static final int spacer = 0x7f0900ec; public static final int split_action_bar = 0x7f0900ed; public static final int src_atop = 0x7f0900f0; public static final int src_in = 0x7f0900f1; public static final int src_over = 0x7f0900f2; public static final int start = 0x7f0900f4; public static final int submenuarrow = 0x7f0900fd; public static final int submit_area = 0x7f0900fe; public static final int tabMode = 0x7f090103; public static final int tag_transition_group = 0x7f090104; public static final int tag_unhandled_key_event_manager = 0x7f090105; public static final int tag_unhandled_key_listeners = 0x7f090106; public static final int text = 0x7f090107; public static final int text2 = 0x7f090108; public static final int textSpacerNoButtons = 0x7f090109; public static final int textSpacerNoTitle = 0x7f09010a; public static final int time = 0x7f090110; public static final int title = 0x7f090112; public static final int titleDividerNoCustom = 0x7f090113; public static final int title_template = 0x7f090114; public static final int top = 0x7f090115; public static final int topPanel = 0x7f090116; public static final int uniform = 0x7f09011f; public static final int up = 0x7f090121; public static final int wrap_content = 0x7f09012c; } public static final class integer { private integer() {} public static final int abc_config_activityDefaultDur = 0x7f0a0000; public static final int abc_config_activityShortDur = 0x7f0a0001; public static final int cancel_button_image_alpha = 0x7f0a0004; public static final int config_tooltipAnimTime = 0x7f0a0005; public static final int status_bar_notification_info_maxnum = 0x7f0a000e; } public static final class layout { private layout() {} public static final int abc_action_bar_title_item = 0x7f0c0000; public static final int abc_action_bar_up_container = 0x7f0c0001; public static final int abc_action_menu_item_layout = 0x7f0c0002; public static final int abc_action_menu_layout = 0x7f0c0003; public static final int abc_action_mode_bar = 0x7f0c0004; public static final int abc_action_mode_close_item_material = 0x7f0c0005; public static final int abc_activity_chooser_view = 0x7f0c0006; public static final int abc_activity_chooser_view_list_item = 0x7f0c0007; public static final int abc_alert_dialog_button_bar_material = 0x7f0c0008; public static final int abc_alert_dialog_material = 0x7f0c0009; public static final int abc_alert_dialog_title_material = 0x7f0c000a; public static final int abc_cascading_menu_item_layout = 0x7f0c000b; public static final int abc_dialog_title_material = 0x7f0c000c; public static final int abc_expanded_menu_layout = 0x7f0c000d; public static final int abc_list_menu_item_checkbox = 0x7f0c000e; public static final int abc_list_menu_item_icon = 0x7f0c000f; public static final int abc_list_menu_item_layout = 0x7f0c0010; public static final int abc_list_menu_item_radio = 0x7f0c0011; public static final int abc_popup_menu_header_item_layout = 0x7f0c0012; public static final int abc_popup_menu_item_layout = 0x7f0c0013; public static final int abc_screen_content_include = 0x7f0c0014; public static final int abc_screen_simple = 0x7f0c0015; public static final int abc_screen_simple_overlay_action_mode = 0x7f0c0016; public static final int abc_screen_toolbar = 0x7f0c0017; public static final int abc_search_dropdown_item_icons_2line = 0x7f0c0018; public static final int abc_search_view = 0x7f0c0019; public static final int abc_select_dialog_material = 0x7f0c001a; public static final int abc_tooltip = 0x7f0c001b; public static final int mapbox_attribution_list_item = 0x7f0c003b; public static final int mapbox_infowindow_content = 0x7f0c003c; public static final int mapbox_mapview_internal = 0x7f0c003d; public static final int mapbox_view_image_marker = 0x7f0c003e; public static final int notification_action = 0x7f0c0043; public static final int notification_action_tombstone = 0x7f0c0044; public static final int notification_template_custom_big = 0x7f0c0045; public static final int notification_template_icon_group = 0x7f0c0046; public static final int notification_template_part_chronometer = 0x7f0c0047; public static final int notification_template_part_time = 0x7f0c0048; public static final int select_dialog_item_material = 0x7f0c004a; public static final int select_dialog_multichoice_material = 0x7f0c004b; public static final int select_dialog_singlechoice_material = 0x7f0c004c; public static final int support_simple_spinner_dropdown_item = 0x7f0c0054; } public static final class string { private string() {} public static final int abc_action_bar_home_description = 0x7f100002; public static final int abc_action_bar_up_description = 0x7f100003; public static final int abc_action_menu_overflow_description = 0x7f100004; public static final int abc_action_mode_done = 0x7f100005; public static final int abc_activity_chooser_view_see_all = 0x7f100006; public static final int abc_activitychooserview_choose_application = 0x7f100007; public static final int abc_capital_off = 0x7f100008; public static final int abc_capital_on = 0x7f100009; public static final int abc_font_family_body_1_material = 0x7f10000a; public static final int abc_font_family_body_2_material = 0x7f10000b; public static final int abc_font_family_button_material = 0x7f10000c; public static final int abc_font_family_caption_material = 0x7f10000d; public static final int abc_font_family_display_1_material = 0x7f10000e; public static final int abc_font_family_display_2_material = 0x7f10000f; public static final int abc_font_family_display_3_material = 0x7f100010; public static final int abc_font_family_display_4_material = 0x7f100011; public static final int abc_font_family_headline_material = 0x7f100012; public static final int abc_font_family_menu_material = 0x7f100013; public static final int abc_font_family_subhead_material = 0x7f100014; public static final int abc_font_family_title_material = 0x7f100015; public static final int abc_menu_alt_shortcut_label = 0x7f100016; public static final int abc_menu_ctrl_shortcut_label = 0x7f100017; public static final int abc_menu_delete_shortcut_label = 0x7f100018; public static final int abc_menu_enter_shortcut_label = 0x7f100019; public static final int abc_menu_function_shortcut_label = 0x7f10001a; public static final int abc_menu_meta_shortcut_label = 0x7f10001b; public static final int abc_menu_shift_shortcut_label = 0x7f10001c; public static final int abc_menu_space_shortcut_label = 0x7f10001d; public static final int abc_menu_sym_shortcut_label = 0x7f10001e; public static final int abc_prepend_shortcut_label = 0x7f10001f; public static final int abc_search_hint = 0x7f100020; public static final int abc_searchview_description_clear = 0x7f100021; public static final int abc_searchview_description_query = 0x7f100022; public static final int abc_searchview_description_search = 0x7f100023; public static final int abc_searchview_description_submit = 0x7f100024; public static final int abc_searchview_description_voice = 0x7f100025; public static final int abc_shareactionprovider_share_with = 0x7f100026; public static final int abc_shareactionprovider_share_with_application = 0x7f100027; public static final int abc_toolbar_collapse_description = 0x7f100028; public static final int mapbox_attributionErrorNoBrowser = 0x7f10004b; public static final int mapbox_attributionTelemetryMessage = 0x7f10004c; public static final int mapbox_attributionTelemetryNegative = 0x7f10004d; public static final int mapbox_attributionTelemetryNeutral = 0x7f10004e; public static final int mapbox_attributionTelemetryPositive = 0x7f10004f; public static final int mapbox_attributionTelemetryTitle = 0x7f100050; public static final int mapbox_attributionsDialogTitle = 0x7f100051; public static final int mapbox_attributionsIconContentDescription = 0x7f100052; public static final int mapbox_compassContentDescription = 0x7f100053; public static final int mapbox_mapActionDescription = 0x7f100054; public static final int mapbox_myLocationViewContentDescription = 0x7f100055; public static final int mapbox_offline_error_region_definition_invalid = 0x7f100056; public static final int mapbox_style_dark = 0x7f100057; public static final int mapbox_style_light = 0x7f100058; public static final int mapbox_style_mapbox_streets = 0x7f100059; public static final int mapbox_style_outdoors = 0x7f10005a; public static final int mapbox_style_satellite = 0x7f10005b; public static final int mapbox_style_satellite_streets = 0x7f10005c; public static final int mapbox_style_traffic_day = 0x7f10005d; public static final int mapbox_style_traffic_night = 0x7f10005e; public static final int mapbox_telemetryImproveMap = 0x7f10005f; public static final int mapbox_telemetryLink = 0x7f100060; public static final int mapbox_telemetrySettings = 0x7f100061; public static final int search_menu_title = 0x7f100078; public static final int status_bar_notification_info_overflow = 0x7f10007a; } public static final class style { private style() {} public static final int AlertDialog_AppCompat = 0x7f110000; public static final int AlertDialog_AppCompat_Light = 0x7f110001; public static final int Animation_AppCompat_Dialog = 0x7f110002; public static final int Animation_AppCompat_DropDownUp = 0x7f110003; public static final int Animation_AppCompat_Tooltip = 0x7f110004; public static final int Base_AlertDialog_AppCompat = 0x7f11000b; public static final int Base_AlertDialog_AppCompat_Light = 0x7f11000c; public static final int Base_Animation_AppCompat_Dialog = 0x7f11000d; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f11000e; public static final int Base_Animation_AppCompat_Tooltip = 0x7f11000f; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f110012; public static final int Base_DialogWindowTitle_AppCompat = 0x7f110011; public static final int Base_TextAppearance_AppCompat = 0x7f110013; public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f110014; public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f110015; public static final int Base_TextAppearance_AppCompat_Button = 0x7f110016; public static final int Base_TextAppearance_AppCompat_Caption = 0x7f110017; public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f110018; public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f110019; public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f11001a; public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f11001b; public static final int Base_TextAppearance_AppCompat_Headline = 0x7f11001c; public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f11001d; public static final int Base_TextAppearance_AppCompat_Large = 0x7f11001e; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f11001f; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f110020; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f110021; public static final int Base_TextAppearance_AppCompat_Medium = 0x7f110022; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f110023; public static final int Base_TextAppearance_AppCompat_Menu = 0x7f110024; public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f110025; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f110026; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f110027; public static final int Base_TextAppearance_AppCompat_Small = 0x7f110028; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f110029; public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f11002a; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f11002b; public static final int Base_TextAppearance_AppCompat_Title = 0x7f11002c; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f11002d; public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f11002e; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f11002f; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f110030; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f110031; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f110032; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f110033; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f110034; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f110035; public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f110036; public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f110037; public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f110038; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f110039; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f11003a; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f11003b; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f11003c; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f11003d; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f11003e; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f11003f; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f110040; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f110041; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f110042; public static final int Base_ThemeOverlay_AppCompat = 0x7f110062; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f110063; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f110064; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f110065; public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f110066; public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f110067; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f110068; public static final int Base_Theme_AppCompat = 0x7f110043; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f110044; public static final int Base_Theme_AppCompat_Dialog = 0x7f110045; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f110049; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f110046; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f110047; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f110048; public static final int Base_Theme_AppCompat_Light = 0x7f11004a; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f11004b; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f11004c; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f110050; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f11004d; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f11004e; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f11004f; public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f110078; public static final int Base_V21_Theme_AppCompat = 0x7f110074; public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f110075; public static final int Base_V21_Theme_AppCompat_Light = 0x7f110076; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f110077; public static final int Base_V22_Theme_AppCompat = 0x7f110079; public static final int Base_V22_Theme_AppCompat_Light = 0x7f11007a; public static final int Base_V23_Theme_AppCompat = 0x7f11007b; public static final int Base_V23_Theme_AppCompat_Light = 0x7f11007c; public static final int Base_V26_Theme_AppCompat = 0x7f11007d; public static final int Base_V26_Theme_AppCompat_Light = 0x7f11007e; public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f11007f; public static final int Base_V28_Theme_AppCompat = 0x7f110080; public static final int Base_V28_Theme_AppCompat_Light = 0x7f110081; public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f110086; public static final int Base_V7_Theme_AppCompat = 0x7f110082; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f110083; public static final int Base_V7_Theme_AppCompat_Light = 0x7f110084; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f110085; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f110087; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f110088; public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f110089; public static final int Base_Widget_AppCompat_ActionBar = 0x7f11008a; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f11008b; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f11008c; public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f11008d; public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f11008e; public static final int Base_Widget_AppCompat_ActionButton = 0x7f11008f; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f110090; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f110091; public static final int Base_Widget_AppCompat_ActionMode = 0x7f110092; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f110093; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f110094; public static final int Base_Widget_AppCompat_Button = 0x7f110095; public static final int Base_Widget_AppCompat_ButtonBar = 0x7f11009b; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f11009c; public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f110096; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f110097; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f110098; public static final int Base_Widget_AppCompat_Button_Colored = 0x7f110099; public static final int Base_Widget_AppCompat_Button_Small = 0x7f11009a; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f11009d; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f11009e; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f11009f; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f1100a0; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f1100a1; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f1100a2; public static final int Base_Widget_AppCompat_EditText = 0x7f1100a3; public static final int Base_Widget_AppCompat_ImageButton = 0x7f1100a4; public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f1100a5; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f1100a6; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f1100a7; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f1100a8; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f1100a9; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f1100aa; public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f1100ab; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f1100ac; public static final int Base_Widget_AppCompat_ListMenuView = 0x7f1100ad; public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f1100ae; public static final int Base_Widget_AppCompat_ListView = 0x7f1100af; public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f1100b0; public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f1100b1; public static final int Base_Widget_AppCompat_PopupMenu = 0x7f1100b2; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f1100b3; public static final int Base_Widget_AppCompat_PopupWindow = 0x7f1100b4; public static final int Base_Widget_AppCompat_ProgressBar = 0x7f1100b5; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f1100b6; public static final int Base_Widget_AppCompat_RatingBar = 0x7f1100b7; public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f1100b8; public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f1100b9; public static final int Base_Widget_AppCompat_SearchView = 0x7f1100ba; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f1100bb; public static final int Base_Widget_AppCompat_SeekBar = 0x7f1100bc; public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f1100bd; public static final int Base_Widget_AppCompat_Spinner = 0x7f1100be; public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f1100bf; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f1100c0; public static final int Base_Widget_AppCompat_Toolbar = 0x7f1100c1; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f1100c2; public static final int Platform_AppCompat = 0x7f1100d1; public static final int Platform_AppCompat_Light = 0x7f1100d2; public static final int Platform_ThemeOverlay_AppCompat = 0x7f1100d7; public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f1100d8; public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f1100d9; public static final int Platform_V21_AppCompat = 0x7f1100da; public static final int Platform_V21_AppCompat_Light = 0x7f1100db; public static final int Platform_V25_AppCompat = 0x7f1100dc; public static final int Platform_V25_AppCompat_Light = 0x7f1100dd; public static final int Platform_Widget_AppCompat_Spinner = 0x7f1100de; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f1100df; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f1100e0; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f1100e1; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f1100e2; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f1100e3; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 0x7f1100e4; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 0x7f1100e5; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f1100e6; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 0x7f1100e7; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f1100ed; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f1100e8; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f1100e9; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f1100ea; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f1100eb; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f1100ec; public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f1100ee; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f1100ef; public static final int TextAppearance_AppCompat = 0x7f1100f0; public static final int TextAppearance_AppCompat_Body1 = 0x7f1100f1; public static final int TextAppearance_AppCompat_Body2 = 0x7f1100f2; public static final int TextAppearance_AppCompat_Button = 0x7f1100f3; public static final int TextAppearance_AppCompat_Caption = 0x7f1100f4; public static final int TextAppearance_AppCompat_Display1 = 0x7f1100f5; public static final int TextAppearance_AppCompat_Display2 = 0x7f1100f6; public static final int TextAppearance_AppCompat_Display3 = 0x7f1100f7; public static final int TextAppearance_AppCompat_Display4 = 0x7f1100f8; public static final int TextAppearance_AppCompat_Headline = 0x7f1100f9; public static final int TextAppearance_AppCompat_Inverse = 0x7f1100fa; public static final int TextAppearance_AppCompat_Large = 0x7f1100fb; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f1100fc; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f1100fd; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f1100fe; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f1100ff; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f110100; public static final int TextAppearance_AppCompat_Medium = 0x7f110101; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f110102; public static final int TextAppearance_AppCompat_Menu = 0x7f110103; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f110104; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f110105; public static final int TextAppearance_AppCompat_Small = 0x7f110106; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f110107; public static final int TextAppearance_AppCompat_Subhead = 0x7f110108; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f110109; public static final int TextAppearance_AppCompat_Title = 0x7f11010a; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f11010b; public static final int TextAppearance_AppCompat_Tooltip = 0x7f11010c; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f11010d; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f11010e; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f11010f; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f110110; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f110111; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f110112; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f110113; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f110114; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f110115; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f110116; public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f110117; public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f110118; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f110119; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f11011a; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f11011b; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f11011c; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f11011d; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f11011e; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f11011f; public static final int TextAppearance_Compat_Notification = 0x7f110120; public static final int TextAppearance_Compat_Notification_Info = 0x7f110121; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f110122; public static final int TextAppearance_Compat_Notification_Time = 0x7f110123; public static final int TextAppearance_Compat_Notification_Title = 0x7f110124; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f11013c; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f11013d; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f11013e; public static final int ThemeOverlay_AppCompat = 0x7f11016f; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f110170; public static final int ThemeOverlay_AppCompat_Dark = 0x7f110171; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f110172; public static final int ThemeOverlay_AppCompat_Dialog = 0x7f110173; public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f110174; public static final int ThemeOverlay_AppCompat_Light = 0x7f110175; public static final int Theme_AppCompat = 0x7f11013f; public static final int Theme_AppCompat_CompactMenu = 0x7f110140; public static final int Theme_AppCompat_DayNight = 0x7f110141; public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f110142; public static final int Theme_AppCompat_DayNight_Dialog = 0x7f110143; public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f110146; public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f110144; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f110145; public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f110147; public static final int Theme_AppCompat_Dialog = 0x7f110148; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f11014b; public static final int Theme_AppCompat_Dialog_Alert = 0x7f110149; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f11014a; public static final int Theme_AppCompat_Light = 0x7f11014c; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f11014d; public static final int Theme_AppCompat_Light_Dialog = 0x7f11014e; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f110151; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f11014f; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f110150; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f110152; public static final int Theme_AppCompat_NoActionBar = 0x7f110153; public static final int Widget_AppCompat_ActionBar = 0x7f110182; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f110183; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f110184; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f110185; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f110186; public static final int Widget_AppCompat_ActionButton = 0x7f110187; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f110188; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f110189; public static final int Widget_AppCompat_ActionMode = 0x7f11018a; public static final int Widget_AppCompat_ActivityChooserView = 0x7f11018b; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f11018c; public static final int Widget_AppCompat_Button = 0x7f11018d; public static final int Widget_AppCompat_ButtonBar = 0x7f110193; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f110194; public static final int Widget_AppCompat_Button_Borderless = 0x7f11018e; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f11018f; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f110190; public static final int Widget_AppCompat_Button_Colored = 0x7f110191; public static final int Widget_AppCompat_Button_Small = 0x7f110192; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f110195; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f110196; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f110197; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f110198; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f110199; public static final int Widget_AppCompat_EditText = 0x7f11019a; public static final int Widget_AppCompat_ImageButton = 0x7f11019b; public static final int Widget_AppCompat_Light_ActionBar = 0x7f11019c; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f11019d; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f11019e; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f11019f; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f1101a0; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f1101a1; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f1101a2; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f1101a3; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f1101a4; public static final int Widget_AppCompat_Light_ActionButton = 0x7f1101a5; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f1101a6; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f1101a7; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f1101a8; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f1101a9; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f1101aa; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f1101ab; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f1101ac; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f1101ad; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f1101ae; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f1101af; public static final int Widget_AppCompat_Light_SearchView = 0x7f1101b0; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f1101b1; public static final int Widget_AppCompat_ListMenuView = 0x7f1101b2; public static final int Widget_AppCompat_ListPopupWindow = 0x7f1101b3; public static final int Widget_AppCompat_ListView = 0x7f1101b4; public static final int Widget_AppCompat_ListView_DropDown = 0x7f1101b5; public static final int Widget_AppCompat_ListView_Menu = 0x7f1101b6; public static final int Widget_AppCompat_PopupMenu = 0x7f1101b7; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f1101b8; public static final int Widget_AppCompat_PopupWindow = 0x7f1101b9; public static final int Widget_AppCompat_ProgressBar = 0x7f1101ba; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f1101bb; public static final int Widget_AppCompat_RatingBar = 0x7f1101bc; public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f1101bd; public static final int Widget_AppCompat_RatingBar_Small = 0x7f1101be; public static final int Widget_AppCompat_SearchView = 0x7f1101bf; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f1101c0; public static final int Widget_AppCompat_SeekBar = 0x7f1101c1; public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f1101c2; public static final int Widget_AppCompat_Spinner = 0x7f1101c3; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f1101c4; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f1101c5; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f1101c6; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f1101c7; public static final int Widget_AppCompat_Toolbar = 0x7f1101c8; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f1101c9; public static final int Widget_Compat_NotificationActionContainer = 0x7f1101ca; public static final int Widget_Compat_NotificationActionText = 0x7f1101cb; public static final int Widget_Support_CoordinatorLayout = 0x7f1101fa; public static final int mapbox_LocationComponent = 0x7f1101fb; } public static final class styleable { private styleable() {} public static final int[] ActionBar = { 0x7f030036, 0x7f030037, 0x7f030038, 0x7f03009c, 0x7f03009d, 0x7f03009e, 0x7f03009f, 0x7f0300a0, 0x7f0300a1, 0x7f0300af, 0x7f0300b5, 0x7f0300b6, 0x7f0300c1, 0x7f0300ec, 0x7f0300f1, 0x7f0300f6, 0x7f0300f7, 0x7f0300f9, 0x7f030103, 0x7f03010d, 0x7f030162, 0x7f0301c3, 0x7f0301e8, 0x7f0301ec, 0x7f0301ed, 0x7f030221, 0x7f030224, 0x7f030269, 0x7f030273 }; public static final int ActionBar_background = 0; public static final int ActionBar_backgroundSplit = 1; public static final int ActionBar_backgroundStacked = 2; public static final int ActionBar_contentInsetEnd = 3; public static final int ActionBar_contentInsetEndWithActions = 4; public static final int ActionBar_contentInsetLeft = 5; public static final int ActionBar_contentInsetRight = 6; public static final int ActionBar_contentInsetStart = 7; public static final int ActionBar_contentInsetStartWithNavigation = 8; public static final int ActionBar_customNavigationLayout = 9; public static final int ActionBar_displayOptions = 10; public static final int ActionBar_divider = 11; public static final int ActionBar_elevation = 12; public static final int ActionBar_height = 13; public static final int ActionBar_hideOnContentScroll = 14; public static final int ActionBar_homeAsUpIndicator = 15; public static final int ActionBar_homeLayout = 16; public static final int ActionBar_icon = 17; public static final int ActionBar_indeterminateProgressStyle = 18; public static final int ActionBar_itemPadding = 19; public static final int ActionBar_logo = 20; public static final int ActionBar_navigationMode = 21; public static final int ActionBar_popupTheme = 22; public static final int ActionBar_progressBarPadding = 23; public static final int ActionBar_progressBarStyle = 24; public static final int ActionBar_subtitle = 25; public static final int ActionBar_subtitleTextStyle = 26; public static final int ActionBar_title = 27; public static final int ActionBar_titleTextStyle = 28; public static final int[] ActionBarLayout = { 0x10100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int[] ActionMenuItemView = { 0x101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f030036, 0x7f030037, 0x7f030086, 0x7f0300ec, 0x7f030224, 0x7f030273 }; public static final int ActionMode_background = 0; public static final int ActionMode_backgroundSplit = 1; public static final int ActionMode_closeItemLayout = 2; public static final int ActionMode_height = 3; public static final int ActionMode_subtitleTextStyle = 4; public static final int ActionMode_titleTextStyle = 5; public static final int[] ActivityChooserView = { 0x7f0300c7, 0x7f030104 }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; public static final int ActivityChooserView_initialActivityCount = 1; public static final int[] AlertDialog = { 0x10100f2, 0x7f030059, 0x7f03005a, 0x7f030159, 0x7f03015a, 0x7f0301be, 0x7f030209, 0x7f03020a }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonIconDimen = 1; public static final int AlertDialog_buttonPanelSideLayout = 2; public static final int AlertDialog_listItemLayout = 3; public static final int AlertDialog_listLayout = 4; public static final int AlertDialog_multiChoiceItemLayout = 5; public static final int AlertDialog_showTitle = 6; public static final int AlertDialog_singleChoiceItemLayout = 7; public static final int[] AnimatedStateListDrawableCompat = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d }; public static final int AnimatedStateListDrawableCompat_android_dither = 0; public static final int AnimatedStateListDrawableCompat_android_visible = 1; public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2; public static final int AnimatedStateListDrawableCompat_android_constantSize = 3; public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4; public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5; public static final int[] AnimatedStateListDrawableItem = { 0x10100d0, 0x1010199 }; public static final int AnimatedStateListDrawableItem_android_id = 0; public static final int AnimatedStateListDrawableItem_android_drawable = 1; public static final int[] AnimatedStateListDrawableTransition = { 0x1010199, 0x1010449, 0x101044a, 0x101044b }; public static final int AnimatedStateListDrawableTransition_android_drawable = 0; public static final int AnimatedStateListDrawableTransition_android_toId = 1; public static final int AnimatedStateListDrawableTransition_android_fromId = 2; public static final int AnimatedStateListDrawableTransition_android_reversible = 3; public static final int[] AppCompatImageView = { 0x1010119, 0x7f030214, 0x7f030267, 0x7f030268 }; public static final int AppCompatImageView_android_src = 0; public static final int AppCompatImageView_srcCompat = 1; public static final int AppCompatImageView_tint = 2; public static final int AppCompatImageView_tintMode = 3; public static final int[] AppCompatSeekBar = { 0x1010142, 0x7f030264, 0x7f030265, 0x7f030266 }; public static final int AppCompatSeekBar_android_thumb = 0; public static final int AppCompatSeekBar_tickMark = 1; public static final int AppCompatSeekBar_tickMarkTint = 2; public static final int AppCompatSeekBar_tickMarkTintMode = 3; public static final int[] AppCompatTextHelper = { 0x1010034, 0x101016d, 0x101016e, 0x101016f, 0x1010170, 0x1010392, 0x1010393 }; public static final int AppCompatTextHelper_android_textAppearance = 0; public static final int AppCompatTextHelper_android_drawableTop = 1; public static final int AppCompatTextHelper_android_drawableBottom = 2; public static final int AppCompatTextHelper_android_drawableLeft = 3; public static final int AppCompatTextHelper_android_drawableRight = 4; public static final int AppCompatTextHelper_android_drawableStart = 5; public static final int AppCompatTextHelper_android_drawableEnd = 6; public static final int[] AppCompatTextView = { 0x1010034, 0x7f030031, 0x7f030032, 0x7f030033, 0x7f030034, 0x7f030035, 0x7f0300db, 0x7f0300de, 0x7f030115, 0x7f030155, 0x7f030244 }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_autoSizeMaxTextSize = 1; public static final int AppCompatTextView_autoSizeMinTextSize = 2; public static final int AppCompatTextView_autoSizePresetSizes = 3; public static final int AppCompatTextView_autoSizeStepGranularity = 4; public static final int AppCompatTextView_autoSizeTextType = 5; public static final int AppCompatTextView_firstBaselineToTopHeight = 6; public static final int AppCompatTextView_fontFamily = 7; public static final int AppCompatTextView_lastBaselineToBottomHeight = 8; public static final int AppCompatTextView_lineHeight = 9; public static final int AppCompatTextView_textAllCaps = 10; public static final int[] AppCompatTheme = { 0x1010057, 0x10100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030021, 0x7f030022, 0x7f030023, 0x7f030024, 0x7f030025, 0x7f030030, 0x7f030045, 0x7f030053, 0x7f030054, 0x7f030055, 0x7f030056, 0x7f030057, 0x7f03005b, 0x7f03005c, 0x7f030067, 0x7f03006c, 0x7f03008c, 0x7f03008d, 0x7f03008e, 0x7f03008f, 0x7f030090, 0x7f030091, 0x7f030092, 0x7f030093, 0x7f030094, 0x7f030096, 0x7f0300a8, 0x7f0300b2, 0x7f0300b3, 0x7f0300b4, 0x7f0300b7, 0x7f0300b9, 0x7f0300bc, 0x7f0300bd, 0x7f0300be, 0x7f0300bf, 0x7f0300c0, 0x7f0300f6, 0x7f030102, 0x7f030157, 0x7f030158, 0x7f03015b, 0x7f03015c, 0x7f03015d, 0x7f03015e, 0x7f03015f, 0x7f030160, 0x7f030161, 0x7f0301df, 0x7f0301e0, 0x7f0301e1, 0x7f0301e7, 0x7f0301e9, 0x7f0301f0, 0x7f0301f1, 0x7f0301f2, 0x7f0301f3, 0x7f030201, 0x7f030202, 0x7f030203, 0x7f030204, 0x7f030211, 0x7f030212, 0x7f030228, 0x7f03024f, 0x7f030250, 0x7f030251, 0x7f030252, 0x7f030254, 0x7f030255, 0x7f030256, 0x7f030257, 0x7f03025a, 0x7f03025b, 0x7f030275, 0x7f030276, 0x7f030277, 0x7f030278, 0x7f030281, 0x7f030283, 0x7f030284, 0x7f030285, 0x7f030286, 0x7f030287, 0x7f030288, 0x7f030289, 0x7f03028a, 0x7f03028b, 0x7f03028c }; public static final int AppCompatTheme_android_windowIsFloating = 0; public static final int AppCompatTheme_android_windowAnimationStyle = 1; public static final int AppCompatTheme_actionBarDivider = 2; public static final int AppCompatTheme_actionBarItemBackground = 3; public static final int AppCompatTheme_actionBarPopupTheme = 4; public static final int AppCompatTheme_actionBarSize = 5; public static final int AppCompatTheme_actionBarSplitStyle = 6; public static final int AppCompatTheme_actionBarStyle = 7; public static final int AppCompatTheme_actionBarTabBarStyle = 8; public static final int AppCompatTheme_actionBarTabStyle = 9; public static final int AppCompatTheme_actionBarTabTextStyle = 10; public static final int AppCompatTheme_actionBarTheme = 11; public static final int AppCompatTheme_actionBarWidgetTheme = 12; public static final int AppCompatTheme_actionButtonStyle = 13; public static final int AppCompatTheme_actionDropDownStyle = 14; public static final int AppCompatTheme_actionMenuTextAppearance = 15; public static final int AppCompatTheme_actionMenuTextColor = 16; public static final int AppCompatTheme_actionModeBackground = 17; public static final int AppCompatTheme_actionModeCloseButtonStyle = 18; public static final int AppCompatTheme_actionModeCloseDrawable = 19; public static final int AppCompatTheme_actionModeCopyDrawable = 20; public static final int AppCompatTheme_actionModeCutDrawable = 21; public static final int AppCompatTheme_actionModeFindDrawable = 22; public static final int AppCompatTheme_actionModePasteDrawable = 23; public static final int AppCompatTheme_actionModePopupWindowStyle = 24; public static final int AppCompatTheme_actionModeSelectAllDrawable = 25; public static final int AppCompatTheme_actionModeShareDrawable = 26; public static final int AppCompatTheme_actionModeSplitBackground = 27; public static final int AppCompatTheme_actionModeStyle = 28; public static final int AppCompatTheme_actionModeWebSearchDrawable = 29; public static final int AppCompatTheme_actionOverflowButtonStyle = 30; public static final int AppCompatTheme_actionOverflowMenuStyle = 31; public static final int AppCompatTheme_activityChooserViewStyle = 32; public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33; public static final int AppCompatTheme_alertDialogCenterButtons = 34; public static final int AppCompatTheme_alertDialogStyle = 35; public static final int AppCompatTheme_alertDialogTheme = 36; public static final int AppCompatTheme_autoCompleteTextViewStyle = 37; public static final int AppCompatTheme_borderlessButtonStyle = 38; public static final int AppCompatTheme_buttonBarButtonStyle = 39; public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40; public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41; public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42; public static final int AppCompatTheme_buttonBarStyle = 43; public static final int AppCompatTheme_buttonStyle = 44; public static final int AppCompatTheme_buttonStyleSmall = 45; public static final int AppCompatTheme_checkboxStyle = 46; public static final int AppCompatTheme_checkedTextViewStyle = 47; public static final int AppCompatTheme_colorAccent = 48; public static final int AppCompatTheme_colorBackgroundFloating = 49; public static final int AppCompatTheme_colorButtonNormal = 50; public static final int AppCompatTheme_colorControlActivated = 51; public static final int AppCompatTheme_colorControlHighlight = 52; public static final int AppCompatTheme_colorControlNormal = 53; public static final int AppCompatTheme_colorError = 54; public static final int AppCompatTheme_colorPrimary = 55; public static final int AppCompatTheme_colorPrimaryDark = 56; public static final int AppCompatTheme_colorSwitchThumbNormal = 57; public static final int AppCompatTheme_controlBackground = 58; public static final int AppCompatTheme_dialogCornerRadius = 59; public static final int AppCompatTheme_dialogPreferredPadding = 60; public static final int AppCompatTheme_dialogTheme = 61; public static final int AppCompatTheme_dividerHorizontal = 62; public static final int AppCompatTheme_dividerVertical = 63; public static final int AppCompatTheme_dropDownListViewStyle = 64; public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65; public static final int AppCompatTheme_editTextBackground = 66; public static final int AppCompatTheme_editTextColor = 67; public static final int AppCompatTheme_editTextStyle = 68; public static final int AppCompatTheme_homeAsUpIndicator = 69; public static final int AppCompatTheme_imageButtonStyle = 70; public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71; public static final int AppCompatTheme_listDividerAlertDialog = 72; public static final int AppCompatTheme_listMenuViewStyle = 73; public static final int AppCompatTheme_listPopupWindowStyle = 74; public static final int AppCompatTheme_listPreferredItemHeight = 75; public static final int AppCompatTheme_listPreferredItemHeightLarge = 76; public static final int AppCompatTheme_listPreferredItemHeightSmall = 77; public static final int AppCompatTheme_listPreferredItemPaddingLeft = 78; public static final int AppCompatTheme_listPreferredItemPaddingRight = 79; public static final int AppCompatTheme_panelBackground = 80; public static final int AppCompatTheme_panelMenuListTheme = 81; public static final int AppCompatTheme_panelMenuListWidth = 82; public static final int AppCompatTheme_popupMenuStyle = 83; public static final int AppCompatTheme_popupWindowStyle = 84; public static final int AppCompatTheme_radioButtonStyle = 85; public static final int AppCompatTheme_ratingBarStyle = 86; public static final int AppCompatTheme_ratingBarStyleIndicator = 87; public static final int AppCompatTheme_ratingBarStyleSmall = 88; public static final int AppCompatTheme_searchViewStyle = 89; public static final int AppCompatTheme_seekBarStyle = 90; public static final int AppCompatTheme_selectableItemBackground = 91; public static final int AppCompatTheme_selectableItemBackgroundBorderless = 92; public static final int AppCompatTheme_spinnerDropDownItemStyle = 93; public static final int AppCompatTheme_spinnerStyle = 94; public static final int AppCompatTheme_switchStyle = 95; public static final int AppCompatTheme_textAppearanceLargePopupMenu = 96; public static final int AppCompatTheme_textAppearanceListItem = 97; public static final int AppCompatTheme_textAppearanceListItemSecondary = 98; public static final int AppCompatTheme_textAppearanceListItemSmall = 99; public static final int AppCompatTheme_textAppearancePopupMenuHeader = 100; public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 101; public static final int AppCompatTheme_textAppearanceSearchResultTitle = 102; public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 103; public static final int AppCompatTheme_textColorAlertDialogListItem = 104; public static final int AppCompatTheme_textColorSearchUrl = 105; public static final int AppCompatTheme_toolbarNavigationButtonStyle = 106; public static final int AppCompatTheme_toolbarStyle = 107; public static final int AppCompatTheme_tooltipForegroundColor = 108; public static final int AppCompatTheme_tooltipFrameBackground = 109; public static final int AppCompatTheme_viewInflaterClass = 110; public static final int AppCompatTheme_windowActionBar = 111; public static final int AppCompatTheme_windowActionBarOverlay = 112; public static final int AppCompatTheme_windowActionModeOverlay = 113; public static final int AppCompatTheme_windowFixedHeightMajor = 114; public static final int AppCompatTheme_windowFixedHeightMinor = 115; public static final int AppCompatTheme_windowFixedWidthMajor = 116; public static final int AppCompatTheme_windowFixedWidthMinor = 117; public static final int AppCompatTheme_windowMinWidthMajor = 118; public static final int AppCompatTheme_windowMinWidthMinor = 119; public static final int AppCompatTheme_windowNoTitle = 120; public static final int[] ButtonBarLayout = { 0x7f030026 }; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f030027 }; 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[] CompoundButton = { 0x1010107, 0x7f03005d, 0x7f03005e }; public static final int CompoundButton_android_button = 0; public static final int CompoundButton_buttonTint = 1; public static final int CompoundButton_buttonTintMode = 2; public static final int[] CoordinatorLayout = { 0x7f030113, 0x7f03021b }; public static final int CoordinatorLayout_keylines = 0; public static final int CoordinatorLayout_statusBarBackground = 1; public static final int[] CoordinatorLayout_Layout = { 0x10100b3, 0x7f030118, 0x7f030119, 0x7f03011a, 0x7f030146, 0x7f03014f, 0x7f030150 }; public static final int CoordinatorLayout_Layout_android_layout_gravity = 0; public static final int CoordinatorLayout_Layout_layout_anchor = 1; public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2; public static final int CoordinatorLayout_Layout_layout_behavior = 3; public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; public static final int CoordinatorLayout_Layout_layout_insetEdge = 5; public static final int CoordinatorLayout_Layout_layout_keyline = 6; public static final int[] DrawerArrowToggle = { 0x7f03002e, 0x7f03002f, 0x7f03003b, 0x7f03008b, 0x7f0300ba, 0x7f0300e9, 0x7f030210, 0x7f030260 }; public static final int DrawerArrowToggle_arrowHeadLength = 0; public static final int DrawerArrowToggle_arrowShaftLength = 1; public static final int DrawerArrowToggle_barLength = 2; public static final int DrawerArrowToggle_color = 3; public static final int DrawerArrowToggle_drawableSize = 4; public static final int DrawerArrowToggle_gapBetweenBars = 5; public static final int DrawerArrowToggle_spinBars = 6; public static final int DrawerArrowToggle_thickness = 7; public static final int[] FontFamily = { 0x7f0300df, 0x7f0300e0, 0x7f0300e1, 0x7f0300e2, 0x7f0300e3, 0x7f0300e4 }; 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, 0x7f0300dd, 0x7f0300e5, 0x7f0300e6, 0x7f0300e7, 0x7f03027d }; 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[] LinearLayoutCompat = { 0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f0300b6, 0x7f0300b8, 0x7f0301bc, 0x7f030206 }; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 6; public static final int LinearLayoutCompat_measureWithLargestChild = 7; public static final int LinearLayoutCompat_showDividers = 8; public static final int[] LinearLayoutCompat_Layout = { 0x10100b3, 0x10100f4, 0x10100f5, 0x1010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int[] ListPopupWindow = { 0x10102ac, 0x10102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0 }; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_visible = 2; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_checkableBehavior = 5; public static final int[] MenuItem = { 0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3, 0x10101e4, 0x10101e5, 0x101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f030028, 0x7f03009b, 0x7f0300ff, 0x7f030100, 0x7f0301d8, 0x7f030205, 0x7f030279 }; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_visible = 4; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_orderInCategory = 6; public static final int MenuItem_android_title = 7; public static final int MenuItem_android_titleCondensed = 8; public static final int MenuItem_android_alphabeticShortcut = 9; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_onClick = 12; public static final int MenuItem_actionLayout = 13; public static final int MenuItem_actionProviderClass = 14; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_alphabeticModifiers = 16; public static final int MenuItem_contentDescription = 17; public static final int MenuItem_iconTint = 18; public static final int MenuItem_iconTintMode = 19; public static final int MenuItem_numericModifiers = 20; public static final int MenuItem_showAsAction = 21; public static final int MenuItem_tooltipText = 22; public static final int[] MenuView = { 0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f0301ea, 0x7f03021f }; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_preserveIconSpacing = 7; public static final int MenuView_subMenuArrow = 8; public static final int[] PopupWindow = { 0x1010176, 0x10102c9, 0x7f0301da }; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_android_popupAnimationStyle = 1; public static final int PopupWindow_overlapAnchor = 2; public static final int[] PopupWindowBackgroundState = { 0x7f030216 }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int[] RecycleListView = { 0x7f0301db, 0x7f0301de }; public static final int RecycleListView_paddingBottomNoButtons = 0; public static final int RecycleListView_paddingTopNoTitle = 1; public static final int[] SearchView = { 0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f03007f, 0x7f030097, 0x7f0300b0, 0x7f0300ea, 0x7f030101, 0x7f030116, 0x7f0301ee, 0x7f0301ef, 0x7f0301ff, 0x7f030200, 0x7f030220, 0x7f030225, 0x7f030282 }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_closeIcon = 4; public static final int SearchView_commitIcon = 5; public static final int SearchView_defaultQueryHint = 6; public static final int SearchView_goIcon = 7; public static final int SearchView_iconifiedByDefault = 8; public static final int SearchView_layout = 9; public static final int SearchView_queryBackground = 10; public static final int SearchView_queryHint = 11; public static final int SearchView_searchHintIcon = 12; public static final int SearchView_searchIcon = 13; public static final int SearchView_submitBackground = 14; public static final int SearchView_suggestionRowLayout = 15; public static final int SearchView_voiceIcon = 16; public static final int[] Spinner = { 0x10100b2, 0x1010176, 0x101017b, 0x1010262, 0x7f0301e8 }; public static final int Spinner_android_entries = 0; public static final int Spinner_android_popupBackground = 1; public static final int Spinner_android_prompt = 2; public static final int Spinner_android_dropDownWidth = 3; public static final int Spinner_popupTheme = 4; public static final int[] StateListDrawable = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d }; public static final int StateListDrawable_android_dither = 0; public static final int StateListDrawable_android_visible = 1; public static final int StateListDrawable_android_variablePadding = 2; public static final int StateListDrawable_android_constantSize = 3; public static final int StateListDrawable_android_enterFadeDuration = 4; public static final int StateListDrawable_android_exitFadeDuration = 5; public static final int[] StateListDrawableItem = { 0x1010199 }; public static final int StateListDrawableItem_android_drawable = 0; public static final int[] SwitchCompat = { 0x1010124, 0x1010125, 0x1010142, 0x7f030208, 0x7f030213, 0x7f030226, 0x7f030227, 0x7f030229, 0x7f030261, 0x7f030262, 0x7f030263, 0x7f03027a, 0x7f03027b, 0x7f03027c }; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 3; public static final int SwitchCompat_splitTrack = 4; public static final int SwitchCompat_switchMinWidth = 5; public static final int SwitchCompat_switchPadding = 6; public static final int SwitchCompat_switchTextAppearance = 7; public static final int SwitchCompat_thumbTextPadding = 8; public static final int SwitchCompat_thumbTint = 9; public static final int SwitchCompat_thumbTintMode = 10; public static final int SwitchCompat_track = 11; public static final int SwitchCompat_trackTint = 12; public static final int SwitchCompat_trackTintMode = 13; public static final int[] TextAppearance = { 0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x101009a, 0x101009b, 0x1010161, 0x1010162, 0x1010163, 0x1010164, 0x10103ac, 0x7f0300de, 0x7f030244 }; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textColorHint = 4; public static final int TextAppearance_android_textColorLink = 5; public static final int TextAppearance_android_shadowColor = 6; public static final int TextAppearance_android_shadowDx = 7; public static final int TextAppearance_android_shadowDy = 8; public static final int TextAppearance_android_shadowRadius = 9; public static final int TextAppearance_android_fontFamily = 10; public static final int TextAppearance_fontFamily = 11; public static final int TextAppearance_textAllCaps = 12; public static final int[] Toolbar = { 0x10100af, 0x1010140, 0x7f030058, 0x7f030087, 0x7f030088, 0x7f03009c, 0x7f03009d, 0x7f03009e, 0x7f03009f, 0x7f0300a0, 0x7f0300a1, 0x7f030162, 0x7f030163, 0x7f0301ba, 0x7f0301bf, 0x7f0301c1, 0x7f0301e8, 0x7f030221, 0x7f030222, 0x7f030223, 0x7f030269, 0x7f03026b, 0x7f03026c, 0x7f03026d, 0x7f03026e, 0x7f03026f, 0x7f030270, 0x7f030271, 0x7f030272 }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_buttonGravity = 2; public static final int Toolbar_collapseContentDescription = 3; public static final int Toolbar_collapseIcon = 4; public static final int Toolbar_contentInsetEnd = 5; public static final int Toolbar_contentInsetEndWithActions = 6; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 9; public static final int Toolbar_contentInsetStartWithNavigation = 10; public static final int Toolbar_logo = 11; public static final int Toolbar_logoDescription = 12; public static final int Toolbar_maxButtonHeight = 13; public static final int Toolbar_navigationContentDescription = 14; public static final int Toolbar_navigationIcon = 15; public static final int Toolbar_popupTheme = 16; public static final int Toolbar_subtitle = 17; public static final int Toolbar_subtitleTextAppearance = 18; public static final int Toolbar_subtitleTextColor = 19; public static final int Toolbar_title = 20; public static final int Toolbar_titleMargin = 21; public static final int Toolbar_titleMarginBottom = 22; public static final int Toolbar_titleMarginEnd = 23; public static final int Toolbar_titleMarginStart = 24; public static final int Toolbar_titleMarginTop = 25; public static final int Toolbar_titleMargins = 26; public static final int Toolbar_titleTextAppearance = 27; public static final int Toolbar_titleTextColor = 28; public static final int[] View = { 0x1010000, 0x10100da, 0x7f0301dc, 0x7f0301dd, 0x7f03025f }; public static final int View_android_theme = 0; public static final int View_android_focusable = 1; public static final int View_paddingEnd = 2; public static final int View_paddingStart = 3; public static final int View_theme = 4; public static final int[] ViewBackgroundHelper = { 0x10100d4, 0x7f030039, 0x7f03003a }; public static final int ViewBackgroundHelper_android_background = 0; public static final int ViewBackgroundHelper_backgroundTint = 1; public static final int ViewBackgroundHelper_backgroundTintMode = 2; public static final int[] ViewStubCompat = { 0x10100d0, 0x10100f2, 0x10100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_layout = 1; public static final int ViewStubCompat_android_inflatedId = 2; public static final int[] mapbox_BubbleLayout = { 0x7f030170, 0x7f030171, 0x7f030172, 0x7f030173, 0x7f030174, 0x7f030175, 0x7f030176, 0x7f030177 }; public static final int mapbox_BubbleLayout_mapbox_bl_arrowDirection = 0; public static final int mapbox_BubbleLayout_mapbox_bl_arrowHeight = 1; public static final int mapbox_BubbleLayout_mapbox_bl_arrowPosition = 2; public static final int mapbox_BubbleLayout_mapbox_bl_arrowWidth = 3; public static final int mapbox_BubbleLayout_mapbox_bl_bubbleColor = 4; public static final int mapbox_BubbleLayout_mapbox_bl_cornersRadius = 5; public static final int mapbox_BubbleLayout_mapbox_bl_strokeColor = 6; public static final int mapbox_BubbleLayout_mapbox_bl_strokeWidth = 7; public static final int[] mapbox_LocationComponent = { 0x7f030166, 0x7f030167, 0x7f030168, 0x7f03016a, 0x7f03016b, 0x7f03016c, 0x7f03016d, 0x7f03016e, 0x7f03016f, 0x7f03017f, 0x7f030181, 0x7f030182, 0x7f030185, 0x7f030186, 0x7f030188, 0x7f030189, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f030190, 0x7f030192, 0x7f030193, 0x7f030197, 0x7f030198, 0x7f030199, 0x7f03019a, 0x7f03019b }; public static final int mapbox_LocationComponent_mapbox_accuracyAlpha = 0; public static final int mapbox_LocationComponent_mapbox_accuracyAnimationEnabled = 1; public static final int mapbox_LocationComponent_mapbox_accuracyColor = 2; public static final int mapbox_LocationComponent_mapbox_backgroundDrawable = 3; public static final int mapbox_LocationComponent_mapbox_backgroundDrawableStale = 4; public static final int mapbox_LocationComponent_mapbox_backgroundStaleTintColor = 5; public static final int mapbox_LocationComponent_mapbox_backgroundTintColor = 6; public static final int mapbox_LocationComponent_mapbox_bearingDrawable = 7; public static final int mapbox_LocationComponent_mapbox_bearingTintColor = 8; public static final int mapbox_LocationComponent_mapbox_compassAnimationEnabled = 9; public static final int mapbox_LocationComponent_mapbox_elevation = 10; public static final int mapbox_LocationComponent_mapbox_enableStaleState = 11; public static final int mapbox_LocationComponent_mapbox_foregroundDrawable = 12; public static final int mapbox_LocationComponent_mapbox_foregroundDrawableStale = 13; public static final int mapbox_LocationComponent_mapbox_foregroundStaleTintColor = 14; public static final int mapbox_LocationComponent_mapbox_foregroundTintColor = 15; public static final int mapbox_LocationComponent_mapbox_gpsDrawable = 16; public static final int mapbox_LocationComponent_mapbox_iconPaddingBottom = 17; public static final int mapbox_LocationComponent_mapbox_iconPaddingLeft = 18; public static final int mapbox_LocationComponent_mapbox_iconPaddingRight = 19; public static final int mapbox_LocationComponent_mapbox_iconPaddingTop = 20; public static final int mapbox_LocationComponent_mapbox_layer_above = 21; public static final int mapbox_LocationComponent_mapbox_layer_below = 22; public static final int mapbox_LocationComponent_mapbox_maxZoomIconScale = 23; public static final int mapbox_LocationComponent_mapbox_minZoomIconScale = 24; public static final int mapbox_LocationComponent_mapbox_staleStateTimeout = 25; public static final int mapbox_LocationComponent_mapbox_trackingAnimationDurationMultiplier = 26; public static final int mapbox_LocationComponent_mapbox_trackingGesturesManagement = 27; public static final int mapbox_LocationComponent_mapbox_trackingInitialMoveThreshold = 28; public static final int mapbox_LocationComponent_mapbox_trackingMultiFingerMoveThreshold = 29; public static final int[] mapbox_MapView = { 0x7f030169, 0x7f030178, 0x7f030179, 0x7f03017a, 0x7f03017b, 0x7f03017c, 0x7f03017d, 0x7f03017e, 0x7f030180, 0x7f030183, 0x7f030184, 0x7f030187, 0x7f030191, 0x7f030194, 0x7f030195, 0x7f030196, 0x7f03019c, 0x7f03019d, 0x7f03019e, 0x7f03019f, 0x7f0301a0, 0x7f0301a1, 0x7f0301a2, 0x7f0301a3, 0x7f0301a4, 0x7f0301a5, 0x7f0301a6, 0x7f0301a7, 0x7f0301a8, 0x7f0301a9, 0x7f0301aa, 0x7f0301ab, 0x7f0301ac, 0x7f0301ad, 0x7f0301ae, 0x7f0301af, 0x7f0301b0, 0x7f0301b1, 0x7f0301b2, 0x7f0301b3, 0x7f0301b4, 0x7f0301b5, 0x7f0301b6 }; public static final int mapbox_MapView_mapbox_apiBaseUrl = 0; public static final int mapbox_MapView_mapbox_cameraBearing = 1; public static final int mapbox_MapView_mapbox_cameraTargetLat = 2; public static final int mapbox_MapView_mapbox_cameraTargetLng = 3; public static final int mapbox_MapView_mapbox_cameraTilt = 4; public static final int mapbox_MapView_mapbox_cameraZoom = 5; public static final int mapbox_MapView_mapbox_cameraZoomMax = 6; public static final int mapbox_MapView_mapbox_cameraZoomMin = 7; public static final int mapbox_MapView_mapbox_cross_source_collisions = 8; public static final int mapbox_MapView_mapbox_enableTilePrefetch = 9; public static final int mapbox_MapView_mapbox_enableZMediaOverlay = 10; public static final int mapbox_MapView_mapbox_foregroundLoadColor = 11; public static final int mapbox_MapView_mapbox_localIdeographFontFamily = 12; public static final int mapbox_MapView_mapbox_pixelRatio = 13; public static final int mapbox_MapView_mapbox_renderTextureMode = 14; public static final int mapbox_MapView_mapbox_renderTextureTranslucentSurface = 15; public static final int mapbox_MapView_mapbox_uiAttribution = 16; public static final int mapbox_MapView_mapbox_uiAttributionGravity = 17; public static final int mapbox_MapView_mapbox_uiAttributionMarginBottom = 18; public static final int mapbox_MapView_mapbox_uiAttributionMarginLeft = 19; public static final int mapbox_MapView_mapbox_uiAttributionMarginRight = 20; public static final int mapbox_MapView_mapbox_uiAttributionMarginTop = 21; public static final int mapbox_MapView_mapbox_uiAttributionTintColor = 22; public static final int mapbox_MapView_mapbox_uiCompass = 23; public static final int mapbox_MapView_mapbox_uiCompassDrawable = 24; public static final int mapbox_MapView_mapbox_uiCompassFadeFacingNorth = 25; public static final int mapbox_MapView_mapbox_uiCompassGravity = 26; public static final int mapbox_MapView_mapbox_uiCompassMarginBottom = 27; public static final int mapbox_MapView_mapbox_uiCompassMarginLeft = 28; public static final int mapbox_MapView_mapbox_uiCompassMarginRight = 29; public static final int mapbox_MapView_mapbox_uiCompassMarginTop = 30; public static final int mapbox_MapView_mapbox_uiDoubleTapGestures = 31; public static final int mapbox_MapView_mapbox_uiLogo = 32; public static final int mapbox_MapView_mapbox_uiLogoGravity = 33; public static final int mapbox_MapView_mapbox_uiLogoMarginBottom = 34; public static final int mapbox_MapView_mapbox_uiLogoMarginLeft = 35; public static final int mapbox_MapView_mapbox_uiLogoMarginRight = 36; public static final int mapbox_MapView_mapbox_uiLogoMarginTop = 37; public static final int mapbox_MapView_mapbox_uiQuickZoomGestures = 38; public static final int mapbox_MapView_mapbox_uiRotateGestures = 39; public static final int mapbox_MapView_mapbox_uiScrollGestures = 40; public static final int mapbox_MapView_mapbox_uiTiltGestures = 41; public static final int mapbox_MapView_mapbox_uiZoomGestures = 42; } }
[ "rahilgupta148@gmail.com" ]
rahilgupta148@gmail.com
5aef4f2fadcfa5b8fa4ebaf5fcfbe52ff551cba4
83392817e8dce2c18fb87413e5a5a0fc70a91e8e
/Deployment-docs/Eclipse Workspace/SpringBootWithNoSql/src/main/java/com/dudi/mflix/models/MovieTitle.java
a8fa7b930b939d2f228556f10de7b7ef3e73e8bd
[]
no_license
HarenderDudi/Myfiles
283fb5cf8e551aaa9a18653d518b09099eb7a2b4
fe5db2c0394e8bec6d7bd7dff50c707eb5804919
refs/heads/master
2023-01-14T08:36:57.109917
2022-02-17T18:46:00
2022-02-17T18:46:00
51,831,672
0
1
null
2023-01-07T22:34:58
2016-02-16T11:38:12
HTML
UTF-8
Java
false
false
132
java
package com.dudi.mflix.models; public class MovieTitle extends AbstractMovie { public MovieTitle() { super(); } }
[ "hdudi@ptc.com" ]
hdudi@ptc.com
b4f2427a005976433ba87e0947add7e7328d2896
296dc5362d07b906a67378f44813744dfdfb892a
/Server/edu.harvard.i2b2.crc/src/server/edu/harvard/i2b2/crc/dao/setfinder/querybuilder/PanelEntry.java
ff43de12d73830b29ba04978f4bea18f96fb00bc
[]
no_license
tfmorris/i2b2
04c60cf02f36c8d97ca4adb5a547d5b6b02082ff
c863e35b892ef41469aef7ba9b0a284093e32862
refs/heads/master
2021-01-20T13:47:49.191738
2016-01-11T20:26:05
2016-01-11T20:26:05
14,435,817
2
0
null
null
null
null
UTF-8
Java
false
false
1,315
java
/* * Copyright (c) 2006-2007 Massachusetts General Hospital * All rights reserved. This program and the accompanying materials * are made available under the terms of the i2b2 Software License v1.0 * which accompanies this distribution. * * Contributors: * Rajesh Kuttan */ package edu.harvard.i2b2.crc.dao.setfinder.querybuilder; /** * Panel Entry bean class * $Id: PanelEntry.java,v 1.4 2008/07/21 20:04:21 rk903 Exp $ * @author chris */ public class PanelEntry { public Integer Panel = 0; public Integer OldPanel = -1; public int Invert= 0;; public long EstPanelSize = 0; public int Items = 0; public int AllShort = 0; public int ForInsert = 0; public int FirstPanel = 0; public int totalItemOccurrences = 0; public String totalItemOccurrencesOperator = ""; public boolean equals(Object o) { if ((o!=null)&&(o.getClass().equals(this.getClass()))) { PanelEntry p = (PanelEntry) o; if ((this.Panel==p.Panel)&& (this.Invert==p.Invert)&& (this.EstPanelSize==p.EstPanelSize)&& (this.Items==p.Items)&& (this.AllShort==p.AllShort)&& (this.ForInsert==p.ForInsert)&& (this.FirstPanel==p.FirstPanel) && (this.totalItemOccurrences == p.totalItemOccurrences)) return true; else return false; } else return false; } }
[ "tfmorris@gmail.com" ]
tfmorris@gmail.com
26191559165a099a87cd50f7c1b847502a25aece
941356ebacdd74bd1ede956650091b3be1517e70
/src/main/java/com/turlygazhy/dao/impl/UserDao.java
4adf0ec6c32ee3d03f8f4731674c48ccfe8019b2
[]
no_license
BaldOgr/Ardaiym
626548d893d40fdcf57b5a7f4723b64273583ce6
47c5b33d4b6a15b86dac46b137499ea739b787fe
refs/heads/Ardaiym
2020-12-03T01:51:11.240053
2017-07-25T13:30:50
2017-07-25T13:30:50
95,874,627
0
0
null
2017-07-26T04:16:09
2017-06-30T09:51:46
Java
UTF-8
Java
false
false
4,090
java
package com.turlygazhy.dao.impl; import com.turlygazhy.entity.User; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.Objects; /** * Created by user on 12/18/16. */ public class UserDao { private static final String SELECT_ADMIN_CHAT_ID = "SELECT * FROM PUBLIC.USER WHERE ID=?"; private static final int PARAMETER_USER_ID = 1; private static final int CHAT_ID_COLUMN_INDEX = 2; public static final int ADMIN_ID = 1; private Connection connection; public UserDao(Connection connection) { this.connection = connection; } public User getUserByChatId(Long chatId) throws SQLException{ PreparedStatement ps = connection.prepareStatement("SELECT * FROM USER WHERE CHAT_ID = ?"); ps.setLong(1, chatId); ps.execute(); ResultSet rs = ps.getResultSet(); if (rs.next()) { return parseUser(rs); } return null; } public Long getAdminChatId() { try { PreparedStatement ps = connection.prepareStatement(SELECT_ADMIN_CHAT_ID); ps.setLong(PARAMETER_USER_ID, ADMIN_ID); ps.execute(); ResultSet rs = ps.getResultSet(); rs.next(); return rs.getLong(CHAT_ID_COLUMN_INDEX); } catch (SQLException e) { throw new RuntimeException(e); } } User parseUser(ResultSet rs) throws SQLException { User user = new User(); user.setId(rs.getInt("ID")); user.setChatId(rs.getLong("CHAT_ID")); user.setName(rs.getString("NAME")); user.setPhoneNumber(rs.getString("PHONE_NUMBER")); user.setCity(rs.getString("CITY")); user.setSex(rs.getBoolean("SEX")); user.setBirthday(rs.getString("BIRTHDAY")); user.setRules(rs.getInt("RULES")); return user; } public boolean isAdmin(Long chatId) throws SQLException { return getUserByChatId(chatId).getRules() > 1; } public boolean isSuperAdmin(Long chatId) throws SQLException { return Objects.equals(3, getUserByChatId(chatId).getRules()); } public void insertUser(User user) throws SQLException { PreparedStatement ps = connection.prepareStatement("INSERT INTO USER (ID, CHAT_ID, NAME, PHONE_NUMBER, CITY, SEX, BIRTHDAY) VALUES (default, ?, ?, ?, ?, ?, ?)"); ps.setLong(1, user.getChatId()); ps.setString(2, user.getName()); ps.setString(3, user.getPhoneNumber()); ps.setString(4, user.getCity()); ps.setBoolean(5, user.isSex()); ps.setString(6, user.getBirthday()); ps.execute(); } public List<User> getUsers() throws SQLException { List<User> users = new ArrayList<>(); PreparedStatement ps = connection.prepareStatement("SELECT * FROM USER"); ps.execute(); ResultSet rs = ps.getResultSet(); while (rs.next()){ users.add(parseUser(rs)); } return users; } public User getUserById(int userId) throws SQLException { PreparedStatement ps = connection.prepareStatement("SELECT * FROM USER WHERE ID = ?"); ps.setLong(1, userId); ps.execute(); ResultSet rs = ps.getResultSet(); if (rs.next()) { return parseUser(rs); } return null; } public void updateUser(User user) throws SQLException { PreparedStatement ps = connection.prepareStatement("UPDATE USER SET RULES = ? WHERE ID = ?"); ps.setInt(1, user.getRules()); ps.setInt(2, user.getId()); ps.execute(); } public List<User> getAdmins() throws SQLException { List<User> users = new ArrayList<>(); PreparedStatement ps = connection.prepareStatement("SELECT * FROM USER WHERE RULES = 2"); ps.execute(); ResultSet rs = ps.getResultSet(); while (rs.next()){ users.add(parseUser(rs)); } return users; } }
[ "mrtusup@gmail.com" ]
mrtusup@gmail.com
98af33750e4c549afc1905050a20aa040310cc12
67daf3cb450e7b95e05dce2083472f92e8ca1c50
/src/java/com/swiftcorp/portal/dto/sync/CASAlgAnswerDTO.java
11d146b415633fb0c0450a1f20b523d81aabb5ff
[]
no_license
wahid-nwr/base-project
452c8fa8886000b1ef67fe53223b35a15af6a675
a55f1be72c8fd9112d1c9106110b8615b31f02fb
refs/heads/master
2021-01-13T01:35:53.023447
2015-05-13T08:18:11
2015-05-13T08:18:11
35,026,362
0
0
null
null
null
null
UTF-8
Java
false
false
1,322
java
/** * */ package com.swiftcorp.portal.dto.sync; /** * @author asraful.haque * */ public class CASAlgAnswerDTO extends com.swiftcorp.portal.common.dto.PersistentCapableDTO { private String algAnswerId; // question for this answer private String questionId; // answer type private String answerType; // answer 1 and answer 2 is for dual value/ range, if there is single value // only // first answer (ie answer1 ) is considerable private String answer1; // answer 2 private String answer2; public String getQuestionId ( ) { return questionId; } public void setQuestionId ( String questionId ) { this.questionId = questionId; } public String getAnswerType ( ) { return answerType; } public void setAnswerType ( String answerType ) { this.answerType = answerType; } public String getAnswer1 ( ) { return answer1; } public void setAnswer1 ( String answer1 ) { this.answer1 = answer1; } public String getAnswer2 ( ) { return answer2; } public void setAnswer2 ( String answer2 ) { this.answer2 = answer2; } public String getAlgAnswerId ( ) { return algAnswerId; } public void setAlgAnswerId ( String algAnswerId ) { this.algAnswerId = algAnswerId; } }
[ "wahid@wahid-HP.(none)" ]
wahid@wahid-HP.(none)
c624b9a6509f4b04e1b1015652378c798d7595bb
7dc094f133c09cc8d08780f2cf624a1f2f395bb0
/quizBaseLib/src/main/java/fr/infotechnodev/termologia/quiz/utils/game/BaseActivity.java
d331450680e140311d5d5741070aedc288b91805
[ "MIT" ]
permissive
monliev/TermologiaQuiz
fa10fa1c69b9dd2974a7a579c3ee9b7953cfa813
b91997ba546d0b302eaa0dbd632b6cde96965151
refs/heads/master
2020-05-28T08:26:56.835303
2017-06-11T02:51:37
2017-06-11T02:51:37
93,977,652
0
0
null
null
null
null
UTF-8
Java
false
false
5,365
java
/* * Copyright (C) 2013 Google 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 fr.infotechnodev.termologia.quiz.utils.game; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.games.Games; import com.google.android.gms.games.Player; import com.google.android.gms.plus.Plus; import com.google.example.games.basegameutils.BaseGameUtils; import fr.infotechnodev.termologia.quiz.R; public abstract class BaseActivity extends FragmentActivity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { private static final String TAG = BaseActivity.class.getName(); // Client used to interact with Google APIs private GoogleApiClient mGoogleApiClient; // Are we currently resolving a connection failure? private boolean mResolvingConnectionFailure = false; // Has the user clicked the sign-in button? private boolean mSignInClicked = false; // Automatically start the sign-in flow when the Activity starts private boolean mAutoStartSignInFlow = false; // request codes we use when invoking an external activity private static final int RC_RESOLVE = 5000; private static final int RC_UNUSED = 5001; private static final int RC_SIGN_IN = 9001; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Create the Google API Client with access to Plus and Games mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN) .addApi(Games.API).addScope(Games.SCOPE_GAMES) .setViewForPopups(findViewById(android.R.id.content)) .build(); } public boolean isSignedIn() { return (mGoogleApiClient != null && mGoogleApiClient.isConnected()); } @Override protected void onStart() { super.onStart(); mGoogleApiClient.connect(); } @Override protected void onStop() { super.onStop(); if (mGoogleApiClient.isConnected()) { mGoogleApiClient.disconnect(); } } public void showAchievementsRequested() { if (isSignedIn()) { startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient), RC_UNUSED); } } public void showLeaderboardsRequested() { if (isSignedIn()) { startActivityForResult(Games.Leaderboards.getAllLeaderboardsIntent(mGoogleApiClient), RC_UNUSED); } } public void unlockAchievement(String achievement) { Games.Achievements.unlock(mGoogleApiClient, achievement); } public void submitScore(String board, int score) { Games.Leaderboards.submitScore(mGoogleApiClient, board, score); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); if (requestCode == RC_SIGN_IN) { mSignInClicked = false; mResolvingConnectionFailure = false; if (resultCode == RESULT_OK) { mGoogleApiClient.connect(); } } } @Override public void onConnected(Bundle bundle) { showConnexionSucceeded(Games.Players.getCurrentPlayer(mGoogleApiClient)); } @Override public void onConnectionSuspended(int i) { mGoogleApiClient.connect(); } public void onConnectionFailed(ConnectionResult connectionResult) { if (mResolvingConnectionFailure) { return; } if (mSignInClicked || mAutoStartSignInFlow) { mAutoStartSignInFlow = false; mSignInClicked = false; mResolvingConnectionFailure = BaseGameUtils.resolveConnectionFailure(this, mGoogleApiClient, connectionResult, RC_SIGN_IN, getString(R.string.quiz_game_connexionerror)); } showConnexionFailed(); } protected void showConnexionFailed() { } protected void showConnexionSucceeded(Player currentPlayer) { } public void signInButtonClicked() { // start the sign-in flow mSignInClicked = true; mGoogleApiClient.connect(); } public void signOutButtonClicked() { mSignInClicked = false; Games.signOut(mGoogleApiClient); if (mGoogleApiClient.isConnected()) { mGoogleApiClient.disconnect(); } showConnexionFailed(); } }
[ "monliev@Monliev-Mac.local" ]
monliev@Monliev-Mac.local
bf186d96363b50efa199b05c6b48cf4227d527d2
fea73c8c637d4342bdbd8c295512056981123718
/app/src/main/java/com/inihood/funspace/android/me/model/Comments.java
f85b4df5a5ef49b5f4cee2273a44fe559904372a
[]
no_license
Inihood1/Demosocial
cd0d917e02824ad2085d5db9bf394dfce5bc6b12
746e19e2bfaf2b0a20c1a063cb2844c827be9cb3
refs/heads/master
2020-04-20T07:43:50.721651
2019-02-05T06:43:03
2019-02-05T06:43:03
168,718,192
4
0
null
null
null
null
UTF-8
Java
false
false
1,416
java
package com.inihood.funspace.android.me.model; import java.util.Date; public class Comments extends com.inihood.funspace.android.me.helper.BlogPostId{ private String message, user_id, name, image, time; private Date timestamp; public Comments(){ } public Comments(String message, String user_id, Date timestamp, String name, String image, String time) { this.message = message; this.user_id = user_id; this.timestamp = timestamp; this.name = name; this.image = image; this.time = time; } public String getTime() { return time; } public void setTime(String time) { this.time = time; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } }
[ "inihood@gmail.com" ]
inihood@gmail.com
4256f1d73f23f48abe535492fed7e0189d76f8d6
06bcb1bf990efad7b17fa48222db0e9725630bd1
/app/src/main/java/com/example/shopping/app/RegisterActivity.java
93a9d971875860f45ee08ad41072badef18240f1
[]
no_license
sasuke39/shoppingapp
d6ba2128abc2cb909f23c366932175289cb10f87
62d304a10a03d09caf9454329572fc1517787e6d
refs/heads/master
2022-11-06T03:11:05.669075
2020-06-19T09:07:45
2020-06-19T09:07:45
260,170,297
12
1
null
null
null
null
UTF-8
Java
false
false
6,689
java
package com.example.shopping.app; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageButton; import android.widget.Toast; import androidx.annotation.Nullable; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.example.shopping.R; import com.example.shopping.utils.Constants; import com.zhy.http.okhttp.OkHttpUtils; import com.zhy.http.okhttp.callback.StringCallback; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import okhttp3.Call; import static androidx.constraintlayout.widget.Constraints.TAG; public class RegisterActivity extends Activity implements View.OnClickListener { private ImageButton ibLoginBack; private EditText loginName; private EditText loginPwd; private ImageButton ibLoginVisible; private EditText loginPhone; private Button btnRegister; private ImageButton ibWeibo; private ImageButton ibQq; private ImageButton ibWechat; /** * Find the Views in the layout<br /> * <br /> * Auto-created on 2020-05-20 01:04:47 by Android Layout Finder * (http://www.buzzingandroid.com/tools/android-layout-finder) */ private void findViews() { ibLoginBack = (ImageButton)findViewById( R.id.ib_login_back ); loginName = (EditText)findViewById( R.id.login_name ); loginPwd = (EditText)findViewById( R.id.login_pwd ); ibLoginVisible = (ImageButton)findViewById( R.id.ib_login_visible ); loginPhone = (EditText)findViewById( R.id.login_phone ); btnRegister = (Button)findViewById( R.id.btn_register ); ibWeibo = (ImageButton)findViewById( R.id.ib_weibo ); ibQq = (ImageButton)findViewById( R.id.ib_qq ); ibWechat = (ImageButton)findViewById( R.id.ib_wechat ); ibLoginBack.setOnClickListener( this ); ibLoginVisible.setOnClickListener( this ); btnRegister.setOnClickListener( this ); ibWeibo.setOnClickListener( this ); ibQq.setOnClickListener( this ); ibWechat.setOnClickListener( this ); } /** * Handle button click events<br /> * <br /> * Auto-created on 2020-05-20 01:04:47 by Android Layout Finder * (http://www.buzzingandroid.com/tools/android-layout-finder) */ @Override public void onClick(View v) { if ( v == ibLoginBack ) { finish(); // Handle clicks for ibLoginBack } else if ( v == ibLoginVisible ) { // Handle clicks for ibLoginVisible } else if ( v == btnRegister ) { // Handle clicks for btnLogin Register(); } else if ( v == ibWeibo ) { // Handle clicks for ibWeibo } else if ( v == ibQq ) { // Handle clicks for ibQq } else if ( v == ibWechat ) { // Handle clicks for ibWechat } } private void Register() { final String name = loginName.getText().toString(); final String pwd = loginPwd.getText().toString(); final String phone = loginPhone.getText().toString(); if (checkStyle(name,pwd,phone)){ System.out.println(name+"==="+pwd+"==="+phone); String url = Constants.TEST_URL +"medUser/register"; OkHttpUtils .post() .url(url) .addParams("username", name) .addParams("password", pwd) .addParams("phone",phone) .build() .execute(new StringCallback() { /** * 请求失败 回调 * @param call * @param e * @param id */ @Override public void onError(Call call, Exception e, int id) { Log.e(TAG,"登陆请求失败"+e.getMessage()); } /** * 联网成功时 * @param response 请求成功数据 * @param id */ @Override public void onResponse(String response, int id) { Log.e(TAG,"登陆请求成功!"); ifRegister(response); } }); } } private void ifRegister(String response) { JSONObject jsonObject = JSON.parseObject(response); if (jsonObject.get("code")=="200"){ Toast.makeText(this, Objects.requireNonNull(jsonObject.get("msg")).toString(), Toast.LENGTH_SHORT).show(); }else { Toast.makeText(this, Objects.requireNonNull(jsonObject.get("msg")).toString(), Toast.LENGTH_SHORT).show(); } finish(); } private Boolean checkStyle(String name, String pwd, String phone) { if (name.length() > 5) { if (!isSpecialChar(name)){ if (pwd.length()>6&&pwd.length()<20){ if (phone.length()==11){ return true; }else { Toast.makeText(this, "请输入正确的手机号码", Toast.LENGTH_SHORT).show(); } }else { Toast.makeText(this, "密码在6到20之间", Toast.LENGTH_SHORT).show(); } }else { Toast.makeText(this, "姓名不能含有特殊字符", Toast.LENGTH_SHORT).show(); } }else { Toast.makeText(this, "字数请大于5个", Toast.LENGTH_SHORT).show(); } return false; } @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register); findViews(); } /** * 是否含有特殊字符 * @param str * @return */ public static boolean isSpecialChar(String str) { String regEx = "[ _`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。,、?]|\n|\r|\t"; Pattern p = Pattern.compile(regEx); Matcher m = p.matcher(str); return m.find(); } }
[ "1255606156@qq.com" ]
1255606156@qq.com
808003cf2ddaeb78c1d2a9871d727b33a9e6963a
f96efd3b2607d084c378ace94eef4682b3a977d0
/src/presteej/command/RegisterUserProAction.java
b0d03edd0be860ab19ebb0451596313144dea718
[]
no_license
Bik00/presteej
d4f4e7e6ee2408981e10023fa03e20f1d730378b
b5f248d3f0ce00f7d2b37ba1b59c0500e4b3656f
refs/heads/master
2020-06-19T10:14:56.491928
2016-12-25T14:32:52
2016-12-25T14:32:52
74,418,725
0
0
null
null
null
null
UTF-8
Java
false
false
1,189
java
package presteej.command; import java.sql.Timestamp; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import presteej.bean.UserDBBean; import presteej.bean.UserDataBean; public class RegisterUserProAction implements CommandAction { @Override public String requestPro(HttpServletRequest request, HttpServletResponse response) throws Throwable { // TODO Auto-generated method stub request.setCharacterEncoding("utf-8"); UserDataBean member = new UserDataBean(); member.setUserId(request.getParameter("id")); member.setUserPassword(request.getParameter("password")); member.setUserName(request.getParameter("name")); member.setUserCellNo(request.getParameter("phone")); member.setBirthyy(request.getParameter("birthyy")); member.setBirthmm(request.getParameter("birthmm")); member.setBirthdd(request.getParameter("birthdd")); member.setMail1(request.getParameter("mail1")); member.setMail2(request.getParameter("mail2")); member.setUserCreatedDate(new Timestamp(System.currentTimeMillis())); UserDBBean dbPro = UserDBBean.getInstance(); dbPro.insertMember(member); return "registerPro.jsp"; } }
[ "bikoo3002@naver.com" ]
bikoo3002@naver.com
d09f7a674ca5aac265821adcc442a9eecbd487e9
d3c1a63b5009cf5ba81117f884e191d81cdc2bff
/src/main/java/fsnip/powerdog/task/modules/lims2supervise/dao/SuperviseSpdataDao.java
93276a9117fe9afff9566fc2cdb5949a1218b2d4
[]
no_license
Northko/powerdog-task
c36de892dfdcdaceb5b820beca35c76360483585
0e728801a84ae3bd4a4bae7ad291046bd1ec44b3
refs/heads/master
2022-07-07T07:09:24.972167
2019-11-27T01:37:41
2019-11-27T01:37:41
224,318,119
0
0
null
2022-06-21T02:19:46
2019-11-27T01:26:22
Java
UTF-8
Java
false
false
423
java
package fsnip.powerdog.task.modules.lims2supervise.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import fsnip.powerdog.task.modules.lims2supervise.entity.SuperviseSpdata; import org.apache.ibatis.annotations.Mapper; /** * Created with IntelliJ IDEA. * * @description: * @author: kun.tan * @dateTime: 2018-12-19 17:43 */ @Mapper public interface SuperviseSpdataDao extends BaseMapper<SuperviseSpdata> { }
[ "970197199@qq.com" ]
970197199@qq.com
d979557e11393aaed57a69d2798ad1f33b78c703
7a08b53404997774ccfb92d6efecd41a2b3a4e4f
/app/src/main/java/com/example/selim/pokedex/repository/MyRepositoryImpl.java
06431ca0b97650fbb28b3ad85a47620a0b03ded6
[]
no_license
samyemara88/pokedex
0deff8b7cc59ba3ec4ba38dcf79d9beed104ba69
66cbf03d1286d39de78cac298ee206f55d07c48b
refs/heads/master
2021-08-15T10:08:25.569631
2017-11-17T17:38:14
2017-11-17T17:38:14
111,105,001
0
0
null
2017-11-17T17:38:15
2017-11-17T13:12:56
Java
UTF-8
Java
false
false
1,625
java
package com.example.selim.pokedex.repository; import com.example.selim.pokedex.Pokemon; import com.example.selim.pokedex.PokemonService; import com.example.selim.pokedex.exception.PokemonRepositoryException; import java.io.IOException; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; /** * Created by selim on 17/11/2017. */ public class MyRepositoryImpl implements MyRepository { private static final String BASE_URL = "http://pokeapi.co/api/v2/"; @Override public Pokemon getPokemonById(int id) throws PokemonRepositoryException{ Retrofit retrofit = new Retrofit.Builder() .addConverterFactory(GsonConverterFactory.create()) .baseUrl(BASE_URL) .build(); PokemonService service = retrofit.create(PokemonService.class); try { Pokemon pokemon = service.getPokemonById(id).execute().body(); return pokemon; } catch (IOException e) { throw new PokemonRepositoryException(e); } } @Override public Pokemon getAllPokemon() throws PokemonRepositoryException { Retrofit retrofit = new Retrofit.Builder() .addConverterFactory(GsonConverterFactory.create()) .baseUrl(BASE_URL) .build(); PokemonService service = retrofit.create(PokemonService.class); try { Pokemon pokemonList = service.getAllPokemon().execute().body(); return pokemonList; } catch (IOException e) { throw new PokemonRepositoryException(e); } } }
[ "selimkhelfaoui@ymail.com" ]
selimkhelfaoui@ymail.com
a6f2201b48af9546799437007cffc42395f41129
ddd7ade382e4c4c3134d141e13d1297360c37875
/05.Java/1.Core_Java/1.12.内部类.java
dbf80c4ec29642af903cc50e1dd8e8bce7b214aa
[]
no_license
Holemar/notes
25028aac6c2d1339dccc5d73243e4eda101a7db8
96c4552ea606e1f29ede20a486a15f034b5b4dd0
refs/heads/master
2023-08-28T00:43:45.855145
2023-08-25T11:10:05
2023-08-25T11:10:05
150,394,723
19
8
null
null
null
null
UTF-8
Java
false
false
8,573
java
 内部类(nested classes) 1. 定义: 定义在其它类中的类,叫内部类(内置类)。 内部类是一种编译时的语法,编译后生成的两个类是独立的两个类。 内部类配合接口使用,来强制做到弱耦合(局部内部类,或私有成员内部类)。 2. 内部类存在的意义在于可以自由的访问外部类的任何成员(包括私有成员),但外部类不能直接访问内部类的成员。 所有使用内部类的地方都可以不使用内部类; 使用内部类可以使程序更加的简洁(但牺牲可读性),便于命名规范和划分层次结构。 3. 内部类和外部类在编译时是不同的两个类,内部类对外部类没有任何依赖。 4. 内部类可用 static,protected 和 private 修饰。(而外部类只能使用 public 和 default)。 5. 内部类的分类: 成员内部类、局部内部类、静态内部类、匿名内部类。 (注意: 前三种内部类与变量类似,可以对照参考变量) ① 成员内部类(实例内部类): 作为外部类的一个成员存在,与外部类的属性、方法并列。 成员内部类可看作外部类的实例变量。 在内部类中访问实例变量: this.属性 在内部类访问外部类的实例变量: 外部类名.this.属性。 对于一个名为 outer 的外部类和其内部定义的名为 inner 的内部类。 编译完成后出现 outer.class 和 outer$inner.class 两类。 不可以有静态属性和方法(final 的除外),因为 static 在加载类的时候创建,这时内部类还没被创建 如果在外部类的外部访问内部类,使用out.inner.*** 建立内部类对象时应注意: 在创建成员内部类的实例时,外部类的实例必须存在: 在外部类的内部可以直接使用inner s=new inner(); 因为外部类知道 inner 是哪个类。 而在外部类的外部,要生成一个内部类对象,需要通过外部类对象生成。 Outer.Inner in = new Outer().new Inner(); 相当于: Outer out = new Outer(); Outer.Inner in = out.new Inner(); 错误的定义方式: Outer.Inner in=new Outer.Inner()。 ② 局部内部类: 在方法中定义的内部类称为局部内部类。 类似局部变量,不可加修饰符 public、protected 和 private,其范围为定义它的代码块。 可以访问外部类的所有成员,此外,还可以访问所在方法中的 final 类型的参数和变量。 在类外不可直接生成局部内部类(保证局部内部类对外是不可见的)。 要想使用局部内部类时需要生成对象,对象调用方法,在方法中才能调用其局部内部类。 局部内部类不能声明接口和枚举。 ③ 静态内部类: (也叫嵌套类) 静态内部类定义在类中,在任何方法外,用 static 定义。 静态内部类能直接访问外部类的静态成员; 不能直接访问外部类的实例成员,但可通过外部类的实例(new 对象)来访问。 静态内部类里面可以定义静态成员(其它内部类不可以)。 生成(new)一个静态内部类不需要外部类成员,这是静态内部类和成员内部类的区别。 静态内部类的对象可以直接生成: Outer.Inner in=new Outer.Inner(); 对比成员内部类: Outer.Inner in = Outer.new Inner(); 而不需要通过生成外部类对象来生成。这样实际上使静态内部类成为了一个顶级类。 静态内部类不可用 private 来进行定义。例子: 对于两个类,拥有相同的方法: /*************************************************************************/ /*class People{void run();} interface Machine{void run();} 此时有一个robot类: class Robot extends People implement Machine. 此时run()不可直接实现。*/ interface Machine { void run(); } class Person { void run(){System.out.println("run");} } class Robot extends Person { private class MachineHeart implements Machine { public void run(){System.out.println("heart run");} } public void run(){System.out.println("Robot run");} Machine getMachine(){return new MachineHeart();} } class Test{ public static void main(String[] args){ Robot robot=new Robot(); Machine m=robot.getMachine(); m.run(); robot.run(); } } /*************************************************************************/ 注意: 当类与接口(或者是接口与接口)发生方法命名冲突的时候,此时必须使用内部类来实现。 这是唯一一种必须使用内部类的情况。 用接口不能完全地实现多继承,用接口配合内部类才能实现真正的多继承。 ④ 匿名内部类: 【1】匿名内部类是一种特殊的局部内部类,它是通过匿名类实现接口。 【2】不同的是他是用一种隐含的方式实现一个接口或继承一个类,而且他只需要一个对象 【3】在继承这个类时,根本就没有打算添加任何方法。 【4】匿名内部类大部分情况都是为了实现接口的回调。 注: 匿名内部类一定是在 new 的后面 其隐含实现一个接口或实现一个类,没有类名,根据多态,我们使用其父类名。 因其为局部内部类,那么局部内部类的所有限制都对其生效。 匿名内部类是唯一一种无构造方法类。 注: 这是因为构造器的名字必须和类名相同,而匿名内部类没有类名。 匿名内部类在编译的时候由系统自动起名Out$1.class。 因匿名内部类无构造方法,所以其使用范围非常的有限。 结尾需加上分号。 匿名内部类的例子: /*************************************************************************/ public class test{ public static void main(String[] args){ B.print(new A() { public void getConnection(){ System.out.println("Connection....");} }); } } interface A { void getConnection(); } class B { public static void print(A a){ a.getConnection();} } /*************************************************************************/ 枚举和接口可以在类的内部定义,但不能在方法内部定义。 接口里面还可以定义多重接口和类。 类放在什么位置,就相当于什么成员。 内部类的用途: 封装类型: 把标准公开,把标准的实现者作为内部类隐藏起来, 强制要求使用者通过标准访问标准的实现者,从而强制做到弱耦合! 直接访问外部类的成员 配合接口,实现多继承,当父类和接口方法定义发生冲突的时候,就必须借助内部类来区分 模板回调 从内部类继承: 由于直接构造实例内部类时,JVM会自动使内部类实例引用它的外部类实例。 但如果下面Sample类通过以下方式构造对象时: Sample s = new Sample(); JVM无法决定Sample实例引用哪个Outer实例,为了避免这种错误的发生,在编译阶段,java编译器会要求Sample类的构造方法必须通过参数传递一个Outer实例的引用,然后在构造方法中调用super语句来建立Sample实例与Outer实例的关联关系。 /*************************************************************************/ public class Sample extends Outer.Inner{ //public Sample(){} //编译错误 public Sample(Outer o){ o.super(); } public static void main(String args[]){ Outer outer1=new Outer(1); Outer outer2=new Outer(2); Outer.Inner in=outer1.new Inner(); in.print(); Sample s1=new Sample(outer1); Sample s2=new Sample(outer2); s1.print(); //打印a=1 s2.print(); //打印a=2 } } /*************************************************************************/ 内部接口: 在一个类中也可以定义内部接口 在接口中可以定义静态内部类,此时静态内部类位于接口的命名空间中。 在接口中还可以定义接口,这种接口默认也是 public static 的,如Map.Entry就是这种接口
[ "daillow@gmail.com" ]
daillow@gmail.com
21f8b20002b028f6a3ce335067a4ce52f0932cc3
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/boot/svg/a/a/gn.java
4b198ffa5db1ceb9de4764665de8f65e9559ac62
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
3,503
java
package com.tencent.mm.boot.svg.a.a; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Paint.Cap; import android.graphics.Paint.Join; import android.graphics.Paint.Style; import android.graphics.Path; import android.os.Looper; import com.tencent.mm.svg.WeChatSVGRenderC2Java; import com.tencent.mm.svg.c; public final class gn extends c { private final int height = 39; private final int width = 21; public final int a(int paramInt, Object[] paramArrayOfObject) { switch (paramInt) { default: case 0: case 1: case 2: } while (true) { paramInt = 0; while (true) { return paramInt; paramInt = 21; continue; paramInt = 39; } Canvas localCanvas = (Canvas)paramArrayOfObject[0]; paramArrayOfObject = (Looper)paramArrayOfObject[1]; Object localObject1 = c.h(paramArrayOfObject); Object localObject2 = c.g(paramArrayOfObject); Object localObject3 = c.k(paramArrayOfObject); ((Paint)localObject3).setFlags(385); ((Paint)localObject3).setStyle(Paint.Style.FILL); Paint localPaint = c.k(paramArrayOfObject); localPaint.setFlags(385); localPaint.setStyle(Paint.Style.STROKE); ((Paint)localObject3).setColor(-16777216); localPaint.setStrokeWidth(1.0F); localPaint.setStrokeCap(Paint.Cap.BUTT); localPaint.setStrokeJoin(Paint.Join.MITER); localPaint.setStrokeMiter(4.0F); localPaint.setPathEffect(null); c.a(localPaint, paramArrayOfObject).setStrokeWidth(1.0F); localCanvas.saveLayerAlpha(null, 83, 4); localCanvas.save(); localPaint = c.a((Paint)localObject3, paramArrayOfObject); localPaint.setColor(-16777216); localObject3 = c.a((float[])localObject2, -1.0F, 1.224647E-016F, 72.0F, -1.224647E-016F, -1.0F, 72.0F); ((Matrix)localObject1).reset(); ((Matrix)localObject1).setValues((float[])localObject3); localCanvas.concat((Matrix)localObject1); localCanvas.save(); localObject2 = c.a(localPaint, paramArrayOfObject); localObject3 = c.a((float[])localObject3, -1.0F, 0.0F, 123.0F, 0.0F, 1.0F, 0.0F); ((Matrix)localObject1).reset(); ((Matrix)localObject1).setValues((float[])localObject3); localCanvas.concat((Matrix)localObject1); localObject1 = c.l(paramArrayOfObject); ((Path)localObject1).moveTo(72.0F, 68.810799F); ((Path)localObject1).lineTo(68.877548F, 72.0F); ((Path)localObject1).lineTo(51.883453F, 54.64262F); ((Path)localObject1).cubicTo(50.724884F, 53.459286F, 50.71944F, 51.546272F, 51.883453F, 50.35738F); ((Path)localObject1).lineTo(68.877548F, 33.0F); ((Path)localObject1).lineTo(72.0F, 36.189201F); ((Path)localObject1).lineTo(56.030582F, 52.5F); ((Path)localObject1).lineTo(72.0F, 68.810799F); ((Path)localObject1).close(); WeChatSVGRenderC2Java.setFillType((Path)localObject1, 2); localCanvas.drawPath((Path)localObject1, (Paint)localObject2); localCanvas.restore(); localCanvas.restore(); localCanvas.restore(); c.j(paramArrayOfObject); } } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes6-dex2jar.jar * Qualified Name: com.tencent.mm.boot.svg.a.a.gn * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
ac018446263352989b4494955ad85e0b56de1018
2b6fc3380a7ae424320e8994add3f88a3ed03fb4
/org.domino.engine/src/org/domino/engine/utility/sso/josso/JOSSOHelper.java
d9be0a6a07929ca2d58b6907fc48d301949711ad
[]
no_license
iceeer/Domino-Engine
685e97678e1cc3b9ad857df04ff25535e79a5007
1825344c523a9112f7c5339cd4527962d556eae9
refs/heads/master
2016-09-09T17:26:45.287323
2012-09-05T07:21:04
2012-09-05T07:21:04
2,246,664
0
0
null
null
null
null
UTF-8
Java
false
false
4,046
java
/** * */ package org.domino.engine.utility.sso.josso; import org.domino.engine.Engine; import org.domino.engine.Helper; import org.josso.gateway.ws._1_1.protocol.AssertIdentityWithSimpleAuthenticationRequestType; import org.josso.gateway.ws._1_1.protocol.AssertIdentityWithSimpleAuthenticationResponseType; import org.josso.gateway.ws._1_1.protocol.NoSuchSessionErrorType; import org.josso.gateway.ws._1_1.protocol.ResolveAuthenticationAssertionRequestType; import org.josso.gateway.ws._1_1.protocol.ResolveAuthenticationAssertionResponseType; import org.josso.gateway.ws._1_1.protocol.SSOIdentityProviderErrorType; import org.josso.gateway.ws._1_1.protocol.SSOSessionType; import org.josso.gateway.ws._1_1.protocol.SessionRequestType; import org.josso.gateway.ws._1_1.protocol.SessionResponseType; import org.josso.gateway.ws._1_1.wsdl.soapbinding.SSOIdentityProvider; import org.josso.gateway.ws._1_1.wsdl.soapbinding.SSOIdentityProviderWS; import org.josso.gateway.ws._1_1.wsdl.soapbinding.SSOIdentityProviderWSLocator; import org.josso.gateway.ws._1_1.wsdl.soapbinding.SSOSessionManager; import org.josso.gateway.ws._1_1.wsdl.soapbinding.SSOSessionManagerWS; import org.josso.gateway.ws._1_1.wsdl.soapbinding.SSOSessionManagerWSLocator; /** * @author admin * */ public class JOSSOHelper { public static final String JOSSO_ASSERT_NAME = "josso_assertion_id"; public static SSOSessionType getSSOSession(String strJOSSOAsserationID) { try { if (Helper.ValidateNotEmpty(strJOSSOAsserationID)) { if (Engine.isDebug()) { Helper.logMessage(JOSSO_ASSERT_NAME + ":" + strJOSSOAsserationID); } // Get the session id by assert id SSOIdentityProviderWS oSSOIdentityProviderWS = new SSOIdentityProviderWSLocator(); SSOIdentityProvider oSSOIdentityProvider = oSSOIdentityProviderWS .getSSOIdentityProvider(); ResolveAuthenticationAssertionRequestType oResolveAuthenticationAssertionRequestType = new ResolveAuthenticationAssertionRequestType( strJOSSOAsserationID); ResolveAuthenticationAssertionResponseType oResolveAuthenticationAssertionResponseType = oSSOIdentityProvider .resolveAuthenticationAssertion(oResolveAuthenticationAssertionRequestType); String strSSOSessionID = oResolveAuthenticationAssertionResponseType .getSsoSessionId(); if (Engine.isDebug()) { Helper.logMessage("josso session id " + strSSOSessionID); } // get the session by session id SSOSessionManagerWS oSSOSessionManagerWS = new SSOSessionManagerWSLocator(); SSOSessionManager oSSOSessionManager = oSSOSessionManagerWS .getSSOSessionManager(); SessionRequestType oSessionRequestType = new SessionRequestType( strSSOSessionID); SessionResponseType oSessionResponseType = oSSOSessionManager .getSession(oSessionRequestType); return oSessionResponseType.getSSOSession(); } }catch(SSOIdentityProviderErrorType ie){ Helper.logError("SSO验证错误"); }catch (NoSuchSessionErrorType ne) { Helper.logError("SSO Session不存在"); } catch (Exception e) { Helper.logError(e); } return null; } public static String getJOSSOAsserationID(java.lang.String securityDomain, java.lang.String username, java.lang.String password) { try { SSOIdentityProviderWS oSSOIdentityProviderWS = new SSOIdentityProviderWSLocator(); SSOIdentityProvider oSSOIdentityProvider = oSSOIdentityProviderWS .getSSOIdentityProvider(); AssertIdentityWithSimpleAuthenticationRequestType oAssertIdentityWithSimpleAuthenticationRequestType = new AssertIdentityWithSimpleAuthenticationRequestType( securityDomain, username, password); AssertIdentityWithSimpleAuthenticationResponseType oAssertIdentityWithSimpleAuthenticationResponseType = oSSOIdentityProvider .assertIdentityWithSimpleAuthentication(oAssertIdentityWithSimpleAuthenticationRequestType); return oAssertIdentityWithSimpleAuthenticationResponseType .getAssertionId(); } catch (Exception e) { e.printStackTrace(); } return ""; } }
[ "iceeer@gmail.com" ]
iceeer@gmail.com
b45bda36ee5af3f3264b0cb15aaecda85f46782b
2b9aae15899a81930a6cae8c6907a9e3ef6e4c0c
/mall-order/modules/sdk/src/main/java/com/hjh/mall/order/constants/TransactionType.java
d6df8d4cea37230f87c36316de5fd743f55ae453
[]
no_license
meiwulang/nosession
c0c8ba7f5b0f568a8d6c2330f53113c87dbbd990
cbb5624282bb554644f2f4b31dad6c214bb98a8e
refs/heads/master
2021-08-08T12:44:02.628872
2017-11-10T10:04:53
2017-11-10T10:04:53
93,580,211
0
1
null
null
null
null
UTF-8
Java
false
false
690
java
package com.hjh.mall.order.constants; /** * Created by qiuxianxiang on 17/5/11. */ public enum TransactionType { NORMAL(0), // 普通交易,全额付款 DEPOSIT(1) // 预付款交易 ; private int code; private TransactionType(int code) { this.code = code; } public Integer getCode() { return this.code; } public static TransactionType getEnum(int code) { for (TransactionType transactionType: TransactionType.values()) { if (transactionType.code == code) { return transactionType; } } throw new IllegalArgumentException("No matching type enum"); } }
[ "418180062@qq.com" ]
418180062@qq.com
30637a9e70508f5340e5a0892bec5f2b3419b5b1
70d72d36689449d11a41b88a02871d21c8c66b09
/src/main/java/com/naganandakk/snake/domain/Food.java
ec4af59a650b628344095d95c3c3d4966d392ffa
[]
no_license
naganandakk/snakeGame
5398113bf30c3b8dbb6805d9d87172aab24d6982
819802bbfc1def431dd59a49378f6a1bc7e663fe
refs/heads/master
2021-02-05T19:54:05.843869
2020-08-17T17:02:51
2020-08-17T17:02:51
243,825,459
0
0
null
2020-08-17T15:38:50
2020-02-28T18:09:00
Java
UTF-8
Java
false
false
423
java
package com.naganandakk.snake.domain; import com.naganandakk.snake.exceptions.InvalidPositionException; public class Food { private final Position position; public Food(Position position) { if (position == null) { throw new InvalidPositionException(); } this.position = position; } public Position getPosition() { return position; } }
[ "naganandakk@gmail.com" ]
naganandakk@gmail.com
443ac5ce72256a617a70ad6e76df18c6c3cec625
ebfbb4264e1c955143a996fbc7a4d7028ed5c554
/src/test/java/com/schappet/weight/dao/StepCountTest.java
4213384f054154bb9a004659443e00a0039e88fa
[]
no_license
jschappet/automation
01091996e11b1f8d6b2e33889df9404144e58a08
51e15f9c6f823d6da9f6089ccb3dd952f8916d86
refs/heads/master
2020-05-21T23:20:58.917531
2017-02-22T13:54:59
2017-02-22T13:54:59
33,573,597
0
1
null
2016-08-31T21:18:18
2015-04-07T23:27:06
JavaScript
UTF-8
Java
false
false
904
java
package com.schappet.weight.dao; import edu.uiowa.icts.spring.*; import edu.uiowa.icts.spring.AbstractSpringTestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.web.WebAppConfiguration; /** * Unit test Template * Generated by Protogen * @see <a href="https://github.com/ui-icts/protogen">https://github.com/ui-icts/protogen</a> * @since 06/08/2016 09:07:59 CDT */ @WebAppConfiguration public class StepCountTest extends AbstractSpringTestCase { @Autowired private WeightDaoService weightDaoService; @Test public void testServiceName() { assertEquals( true, true ); } @Before public void setUp() throws Exception { super.setUp(); } @After public void tearDown() throws Exception { super.tearDown(); } }
[ "james-schappet@uiowa.edu" ]
james-schappet@uiowa.edu
4c8dbc2f7c3e51753dc207815572cec78df8365c
2e56c4457524d27517a6072cd1ec47208d173a6c
/src/main/java/au/edu/anu/viewer/xml/dc/package-info.java
35653628785f32b8c6a4db64b06025e9a04dfabd
[]
no_license
gturner/Viewer
a8c0b8dfde191df400081f4b7e86d4f3f75b8f1e
533132907b0fb6865e101fa91368d08238d19f5c
refs/heads/master
2021-01-02T09:19:18.531476
2012-03-07T00:51:10
2012-03-07T00:51:10
3,598,913
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
@XmlSchema( xmlns = { @XmlNs(prefix="dc", namespaceURI="http://purl.org/dc/elements/1.1/"), @XmlNs(prefix="oai_dc", namespaceURI="http://www.openarchives.org/OAI/2.0/oai_dc/") } ) package au.edu.anu.viewer.xml.dc; import javax.xml.bind.annotation.XmlSchema; import javax.xml.bind.annotation.XmlNs;
[ "genevieve.turner@anu.edu.au" ]
genevieve.turner@anu.edu.au
c2cc23db84c9d43dbca661aa6ce14980e4d80305
dc25b23f8132469fd95cee14189672cebc06aa56
/frameworks/base/telecomm/java/android/telecom/ParcelableCall.java
42c7a8d03620f8be6282036d96a6de69d22c2cd2
[ "LicenseRef-scancode-unicode", "Apache-2.0" ]
permissive
nofearnohappy/alps_mm
b407d3ab2ea9fa0a36d09333a2af480b42cfe65c
9907611f8c2298fe4a45767df91276ec3118dd27
refs/heads/master
2020-04-23T08:46:58.421689
2019-03-28T21:19:33
2019-03-28T21:19:33
171,048,255
1
5
null
2020-03-08T03:49:37
2019-02-16T20:25:00
Java
UTF-8
Java
false
false
12,950
java
/* * Copyright (C) 2014 MediaTek Inc. * Modification based on code covered by the mentioned copyright * and/or permission notice(s). */ /* * Copyright 2014, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.telecom; import android.net.Uri; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import android.os.RemoteException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.android.internal.telecom.IVideoProvider; /** * Information about a call that is used between InCallService and Telecom. * @hide */ public final class ParcelableCall implements Parcelable { private final String mId; private final int mState; private final DisconnectCause mDisconnectCause; private final List<String> mCannedSmsResponses; private final int mCapabilities; private final int mProperties; private final long mConnectTimeMillis; private final Uri mHandle; private final int mHandlePresentation; private final String mCallerDisplayName; private final int mCallerDisplayNamePresentation; private final GatewayInfo mGatewayInfo; private final PhoneAccountHandle mAccountHandle; private final boolean mIsVideoCallProviderChanged; private final IVideoProvider mVideoCallProvider; private InCallService.VideoCall mVideoCall; private final String mParentCallId; private final List<String> mChildCallIds; private final StatusHints mStatusHints; private final int mVideoState; private final List<String> mConferenceableCallIds; private final Bundle mIntentExtras; private final Bundle mExtras; public ParcelableCall( String id, int state, DisconnectCause disconnectCause, List<String> cannedSmsResponses, int capabilities, int properties, long connectTimeMillis, Uri handle, int handlePresentation, String callerDisplayName, int callerDisplayNamePresentation, GatewayInfo gatewayInfo, PhoneAccountHandle accountHandle, boolean isVideoCallProviderChanged, IVideoProvider videoCallProvider, String parentCallId, List<String> childCallIds, StatusHints statusHints, int videoState, List<String> conferenceableCallIds, Bundle intentExtras, Bundle extras) { mId = id; mState = state; mDisconnectCause = disconnectCause; mCannedSmsResponses = cannedSmsResponses; mCapabilities = capabilities; mProperties = properties; mConnectTimeMillis = connectTimeMillis; mHandle = handle; mHandlePresentation = handlePresentation; mCallerDisplayName = callerDisplayName; mCallerDisplayNamePresentation = callerDisplayNamePresentation; mGatewayInfo = gatewayInfo; mAccountHandle = accountHandle; mIsVideoCallProviderChanged = isVideoCallProviderChanged; mVideoCallProvider = videoCallProvider; mParentCallId = parentCallId; mChildCallIds = childCallIds; mStatusHints = statusHints; mVideoState = videoState; mConferenceableCallIds = Collections.unmodifiableList(conferenceableCallIds); mIntentExtras = intentExtras; mExtras = extras; } /** The unique ID of the call. */ public String getId() { return mId; } /** The current state of the call. */ public int getState() { return mState; } /** * Reason for disconnection, as described by {@link android.telecomm.DisconnectCause}. Valid * when call state is {@link CallState#DISCONNECTED}. */ public DisconnectCause getDisconnectCause() { return mDisconnectCause; } /** * The set of possible text message responses when this call is incoming. */ public List<String> getCannedSmsResponses() { return mCannedSmsResponses; } // Bit mask of actions a call supports, values are defined in {@link CallCapabilities}. public int getCapabilities() { return mCapabilities; } /** Bitmask of properties of the call. */ public int getProperties() { return mProperties; } /** The time that the call switched to the active state. */ public long getConnectTimeMillis() { return mConnectTimeMillis; } /** The endpoint to which the call is connected. */ public Uri getHandle() { return mHandle; } /** * The presentation requirements for the handle. See {@link TelecomManager} for valid values. */ public int getHandlePresentation() { return mHandlePresentation; } /** The endpoint to which the call is connected. */ public String getCallerDisplayName() { return mCallerDisplayName; } /** * The presentation requirements for the caller display name. * See {@link TelecomManager} for valid values. */ public int getCallerDisplayNamePresentation() { return mCallerDisplayNamePresentation; } /** Gateway information for the call. */ public GatewayInfo getGatewayInfo() { return mGatewayInfo; } /** PhoneAccountHandle information for the call. */ public PhoneAccountHandle getAccountHandle() { return mAccountHandle; } /** * Returns an object for remotely communicating through the video call provider's binder. * @return The video call. */ public InCallService.VideoCall getVideoCall(Call call) { if (mVideoCall == null && mVideoCallProvider != null) { try { mVideoCall = new VideoCallImpl(mVideoCallProvider, call); } catch (RemoteException ignored) { // Ignore RemoteException. } } return mVideoCall; } /** * The conference call to which this call is conferenced. Null if not conferenced. */ public String getParentCallId() { return mParentCallId; } /** * The child call-IDs if this call is a conference call. Returns an empty list if this is not * a conference call or if the conference call contains no children. */ public List<String> getChildCallIds() { return mChildCallIds; } public List<String> getConferenceableCallIds() { return mConferenceableCallIds; } /** * The status label and icon. * * @return Status hints. */ public StatusHints getStatusHints() { return mStatusHints; } /** * The video state. * @return The video state of the call. */ public int getVideoState() { return mVideoState; } /** * Any extras associated with this call. * * @return a bundle of extras */ public Bundle getExtras() { return mExtras; } /** * Extras passed in as part of the original call intent. * * @return The intent extras. */ public Bundle getIntentExtras() { return mIntentExtras; } /** * Indicates to the receiver of the {@link ParcelableCall} whether a change has occurred in the * {@link android.telecom.InCallService.VideoCall} associated with this call. Since * {@link #getVideoCall()} creates a new {@link VideoCallImpl}, it is useful to know whether * the provider has changed (which can influence whether it is accessed). * * @return {@code true} if the video call changed, {@code false} otherwise. */ public boolean isVideoCallProviderChanged() { return mIsVideoCallProviderChanged; } /** Responsible for creating ParcelableCall objects for deserialized Parcels. */ public static final Parcelable.Creator<ParcelableCall> CREATOR = new Parcelable.Creator<ParcelableCall> () { @Override public ParcelableCall createFromParcel(Parcel source) { ClassLoader classLoader = ParcelableCall.class.getClassLoader(); String id = source.readString(); int state = source.readInt(); DisconnectCause disconnectCause = source.readParcelable(classLoader); List<String> cannedSmsResponses = new ArrayList<>(); source.readList(cannedSmsResponses, classLoader); int capabilities = source.readInt(); int properties = source.readInt(); long connectTimeMillis = source.readLong(); Uri handle = source.readParcelable(classLoader); int handlePresentation = source.readInt(); String callerDisplayName = source.readString(); int callerDisplayNamePresentation = source.readInt(); GatewayInfo gatewayInfo = source.readParcelable(classLoader); PhoneAccountHandle accountHandle = source.readParcelable(classLoader); boolean isVideoCallProviderChanged = source.readByte() == 1; IVideoProvider videoCallProvider = IVideoProvider.Stub.asInterface(source.readStrongBinder()); String parentCallId = source.readString(); List<String> childCallIds = new ArrayList<>(); source.readList(childCallIds, classLoader); StatusHints statusHints = source.readParcelable(classLoader); int videoState = source.readInt(); List<String> conferenceableCallIds = new ArrayList<>(); source.readList(conferenceableCallIds, classLoader); Bundle intentExtras = source.readBundle(classLoader); Bundle extras = source.readBundle(classLoader); return new ParcelableCall( id, state, disconnectCause, cannedSmsResponses, capabilities, properties, connectTimeMillis, handle, handlePresentation, callerDisplayName, callerDisplayNamePresentation, gatewayInfo, accountHandle, isVideoCallProviderChanged, videoCallProvider, parentCallId, childCallIds, statusHints, videoState, conferenceableCallIds, intentExtras, extras); } @Override public ParcelableCall[] newArray(int size) { return new ParcelableCall[size]; } }; /** {@inheritDoc} */ @Override public int describeContents() { return 0; } /** Writes ParcelableCall object into a Parcel. */ @Override public void writeToParcel(Parcel destination, int flags) { destination.writeString(mId); destination.writeInt(mState); destination.writeParcelable(mDisconnectCause, 0); destination.writeList(mCannedSmsResponses); destination.writeInt(mCapabilities); destination.writeInt(mProperties); destination.writeLong(mConnectTimeMillis); destination.writeParcelable(mHandle, 0); destination.writeInt(mHandlePresentation); destination.writeString(mCallerDisplayName); destination.writeInt(mCallerDisplayNamePresentation); destination.writeParcelable(mGatewayInfo, 0); destination.writeParcelable(mAccountHandle, 0); destination.writeByte((byte) (mIsVideoCallProviderChanged ? 1 : 0)); destination.writeStrongBinder( mVideoCallProvider != null ? mVideoCallProvider.asBinder() : null); destination.writeString(mParentCallId); destination.writeList(mChildCallIds); destination.writeParcelable(mStatusHints, 0); destination.writeInt(mVideoState); destination.writeList(mConferenceableCallIds); destination.writeBundle(mIntentExtras); destination.writeBundle(mExtras); } @Override public String toString() { return String.format("[%s, parent:%s, children:%s, handlePresentation:%s," + "videoCallProvider:%s, videoState:%s]", mId, mParentCallId, mChildCallIds, mHandlePresentation, mVideoCallProvider, mVideoState); } }
[ "fetpoh@mail.ru" ]
fetpoh@mail.ru
fc16026c970f359d0195f56cecfa8bb894747857
ea85e0d9decb4d9402f3f0fe51b9b5f8a1d4f08d
/src/com/tongtech/stringbuffer/Demo2_Array.java
cd66800731b46783f678932075485aa7b17354d2
[]
no_license
mhj199405/java
bdec2346e0ceef14a80600fbefa5419f9bae8f67
8853ecdf0943fcb291dce68033e9417902654c42
refs/heads/master
2023-03-01T05:52:14.711201
2021-02-15T12:42:35
2021-02-15T12:42:35
327,163,666
0
0
null
null
null
null
UTF-8
Java
false
false
1,120
java
package com.tongtech.stringbuffer; /** * @author M.hj * @version 1.0 * @date 2021/1/8 16:16 */ public class Demo2_Array { public static void main(String[] args) { int arr[]={1,2,44,55,66,77,78}; System.out.println(getIndex(arr,44)); System.out.println(getIndex(arr,66)); System.out.println(getIndex(arr,77)); } public static int getIndex(int[] arr,int value){ int min=0; int max=arr.length-1; int mid=(min+max)/2; while (arr[mid]!=value){ //当中间值不等于要找的值,就开始循环查找 if(arr[mid]<value){ // 当中间值小于要查找的值 min=mid+1; // 最小索引改变 }else if(arr[mid]>value){ //当中间值大于要查找的值 max=mid-1; //最大索引改变 } mid=(min+max)/2; // 无论是最大还是最小改变,中间的索引都会改变 if(min>max){ // 如果最小索引大于最大索引,就没有查找的可能性了 return -1; } } return mid; } }
[ "mhj242628@outlook.com" ]
mhj242628@outlook.com
c4aa071f08a2268b515c53314670f69d2575b867
949a889de1e60e3ea44bd9bcc8ff4ba80b761df5
/src/ec_f2m/Key.java
fbe2db8d9d3096b0b55c857fe59ab17e79f173b8
[]
no_license
jmanas/MiniEC
d2b62e4eaa0696940cc2276382601d201241e54c
84c8b3f31e57826ed8c2edb74e3f17af837af79e
refs/heads/master
2021-01-22T11:04:35.470942
2018-10-28T11:58:08
2018-10-28T11:58:08
39,129,327
0
0
null
null
null
null
UTF-8
Java
false
false
670
java
package ec_f2m; /** * @author Jose A. Manas * @version 04-mar-2009 */ public class Key { private final Curve curve; private final Point g; private final int ks; private final Point kp; public Key(Curve curve, Point g, int ks) { this.curve = curve; this.g = g; this.ks = ks; kp = curve.mul(ks, g); } public Curve getCurve() { return curve; } public Point getG() { return g; } public int getKs() { return ks; } public Point getKp() { return kp; } public String toString() { return String.format("kp: %s; ks: %d", kp, ks); } }
[ "jmanas@dit.upm.es" ]
jmanas@dit.upm.es
4502efc79c68e0de23c3f910f47b0b3389a595c0
80f20fd82123997bb44b6bb829878a93df3a54c2
/AirlineReservationSystem/altimet/src/main/java/alti/san/airbooking/repository/ReservationRepository.java
f79a3846b3e0287a8456c5090bac0bd520ff75e1
[]
no_license
sankhars/airreserve
a08ab5940300870ce1d21e5c3a0991f09d201f55
ea9993911dfc208fb2968a344a1737833c678d6a
refs/heads/master
2022-11-26T05:14:39.631450
2020-08-06T12:46:31
2020-08-06T12:46:31
285,569,238
1
0
null
null
null
null
UTF-8
Java
false
false
1,251
java
package alti.san.airbooking.repository; import alti.san.airbooking.model.Reservation; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import javax.transaction.Transactional; import java.util.List; /** * The interface Reservation repository. */ @Transactional(Transactional.TxType.REQUIRED) public interface ReservationRepository extends CrudRepository<Reservation, String> { /** * Search for reservations list. * * @param passengerId the passenger id * @param price the dest from * @param dest_to the dest to * @param flightNumber the flight number * @return the list */ List<Reservation> searchForReservations(@Param("flightNumber") String flightNumber, @Param("price") String price, @Param("airlinename") String airlinename,@Param("departuretime") String departuretime, @Param("arrivaltime") String arrivaltime,@Param("duration") String duration, @Param("no_stops") String no_stops,@Param("totalresults") String totalresults); }
[ "34627333+shankdever@users.noreply.github.com" ]
34627333+shankdever@users.noreply.github.com
05c4b426d788e62d6aeef7eb7269baa38f8ff41e
49e4a0f4f10c4d8f24864dc2a2cbcf0034f76cca
/src/leecode/Array/三角形的最大周长_976.java
ecfb7d2d39c5fdc074b52b3d2cee7aabf6d7186c
[]
no_license
rose-0/leetcode
61842a9a1c50f276566f814f649f9eff1e988f06
6bd7c34a3faf7c339d698236af8fd1626b6d84df
refs/heads/master
2023-03-04T18:12:40.922813
2021-02-20T01:48:33
2021-02-20T01:48:33
285,160,690
0
0
null
null
null
null
UTF-8
Java
false
false
393
java
package leecode.Array; import java.util.Arrays; public class 三角形的最大周长_976 { public int largestPerimeter(int[] A) { Arrays.sort(A); int max=0; for (int i = A.length-1; i >=2 ; i--) { if(A[i]<A[i-1]+A[i-2]){ max=Math.max(max,A[i-1]+A[i-2]+A[i]); break; } } return max; } }
[ "1784510335@qq.com" ]
1784510335@qq.com
bbfc1cfbfa7914b866090cd8536b18b4adfe2749
25e05418124ec6c43f7a3455efd7fcc4227eea3b
/src/main/java/com/std/smartcampus/basic/controller/pc/ClassRoomController.java
449637011e3af14b56b3c177a33942c9f5f87f0c
[]
no_license
xingyundeyangzhen/pc_SmartCampus
9d2adece3feeefb274a5e9b7082a32007fa77912
41ff63eb6ef239b82d4bbc39251465b8591af4ae
refs/heads/master
2021-06-18T11:28:02.605844
2017-06-26T08:48:52
2017-06-26T08:48:52
119,978,317
2
1
null
2018-02-02T12:20:38
2018-02-02T12:20:38
null
UTF-8
Java
false
false
2,882
java
package com.std.smartcampus.basic.controller.pc; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.web.PageableDefault; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import com.std.smartcampus.basic.domain.ClassRoom; import com.std.smartcampus.basic.service.ClassRoomService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; /** * * @ClassName: PCClassRoomController * * @author: Administrator * @date: 2017年3月26日 上午1:40:34 */ @Controller @RequestMapping("/admin") public class ClassRoomController { @Autowired private ClassRoomService classRoomService; @ApiOperation(value="查询所有教室",notes="") @ApiImplicitParam(name="model",value="向HTML传递的消息",required = true,dataType="Model") @GetMapping("/classroom-query") public String queryClassroom(@PageableDefault Pageable pageable, Model model){ Page<ClassRoom> list = classRoomService.findAll(pageable); model.addAttribute("page", list); model.addAttribute("class_room_css", "active"); return "campus/classroom/classroom_query_success"; } @ApiOperation(value="打开添加教室界面",notes="") @GetMapping("/classroom-add") public String addClassroom(){ return "campus/classroom/classroom_add"; } @ApiOperation(value="保存或修改一个教室",notes="") @ApiImplicitParam(name="classRoom",value="课程信息",required = true,dataType="ClassRoom") @PostMapping({"/classroom-save","/classroom-update"}) public String saveClassroom(@Valid ClassRoom classRoom){ classRoomService.save(classRoom); return "redirect:classroom-query?page=0"; } @ApiOperation(value="删除一个教室",notes="") @ApiImplicitParam(name="cid",value="教室编号",required = true,dataType="String") @GetMapping("/classroom-delete") public String deleteClassroom(Integer cid) { classRoomService.delete(cid); return "redirect:classroom-query?page=0"; } @ApiOperation(value="打开修改教室信息界面",notes="") @ApiImplicitParams(value={ @ApiImplicitParam(name="cid",value="教室编号",required = true,dataType="String"), @ApiImplicitParam(name="model",value="向HTML传递的消息",required = true,dataType="Model") }) @GetMapping("/classroom-modify") public String modifyClassroom(Integer cid,Model model) { ClassRoom classRoom = classRoomService.findOne(cid); model.addAttribute("class_room", classRoom); return "campus/classroom/classroom_modify"; } }
[ "1500913306@qq.com" ]
1500913306@qq.com
0b6c6ae82dc33556d172dbcfc4d2b9b1cebf69c9
3fc503bed9e8ba2f8c49ebf7783bcdaa78951ba8
/TRAVACC_R5/ndcwebservices/src/de/hybris/platform/ndcwebservices/validators/impl/NDCBaggageAllowanceRQFormatValidator.java
4b0ebdea5cfec55a6765fefaa5ae4c36f8ef4136
[]
no_license
RabeS/model-T
3e64b2dfcbcf638bc872ae443e2cdfeef4378e29
bee93c489e3a2034b83ba331e874ccf2c5ff10a9
refs/heads/master
2021-07-01T02:13:15.818439
2020-09-05T08:33:43
2020-09-05T08:33:43
147,307,585
0
0
null
null
null
null
UTF-8
Java
false
false
1,016
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 de.hybris.platform.ndcwebservices.validators.impl; import de.hybris.platform.ndcfacades.ndc.BaggageAllowanceRQ; import de.hybris.platform.ndcfacades.ndc.ErrorsType; /** * This class validates the {@link BaggageAllowanceRQ} based on the constraints defined in its xsd * * @deprecated since version 4.0 use {@link NDCRQFormatValidator} */ @Deprecated public class NDCBaggageAllowanceRQFormatValidator extends NDCRQFormatValidator<BaggageAllowanceRQ> { @Override public void validate(final BaggageAllowanceRQ baggageAllowanceRQ, final ErrorsType errorsType) { super.validate(baggageAllowanceRQ, errorsType); } }
[ "sebastian.rulik@gmail.com" ]
sebastian.rulik@gmail.com
06b0fd02b92d52d855b598517283673b68944870
9d7c22bc1f91006fd635f7c1c21c65bb0e9a878f
/src/br/com/thegabrielfalcao/designpatterns/templatemethod/gabrielfalcao/seguro/impl/CalculadoraSeguroAuto.java
eb5fcd837c898429dbf1ef1bf9822d6df12d98e6
[]
no_license
thegabrielfalcao/design-patterns
a2e751af3ccb37b08c9b59dbc79ce6fa32de5a48
71045c19172aacd0b79c8bc1d8885c26faea460a
refs/heads/master
2021-01-03T04:25:18.151057
2020-03-13T18:35:25
2020-03-13T18:35:25
239,921,358
5
2
null
2020-03-02T18:08:13
2020-02-12T03:47:48
Java
UTF-8
Java
false
false
1,033
java
package br.com.thegabrielfalcao.designpatterns.templatemethod.gabrielfalcao.seguro.impl; import br.com.thegabrielfalcao.designpatterns.templatemethod.gabrielfalcao.model.Segurado; import br.com.thegabrielfalcao.designpatterns.templatemethod.gabrielfalcao.seguro.CalculadoraSeguro; import java.util.Random; public class CalculadoraSeguroAuto extends CalculadoraSeguro { public CalculadoraSeguroAuto(Segurado segurado) { this.segurado = segurado; } @Override protected double verificarTamanhoNome() { System.out.println("Calculando peso do tamanho nome para o seguro de automóveis"); return this.segurado.getNome().length() > 5 ? 1.2 : 1.5; } @Override protected double verificarFaixaEtaria() { System.out.println("Calculando peso da idade para o seguro de automóveis"); return (this.segurado.getIdade() > 25 && this.segurado.getIdade() < 40) ? 2 : 1.5; } @Override protected boolean isApto() { return new Random().nextBoolean(); } }
[ "gfalcao@outlook.com" ]
gfalcao@outlook.com
b5c6b1396aa2442c71dbd723d5df1c7db7731cb0
722516e8645ab290c82ddd9b9b20200df0bc8ce5
/mooc/backtracking/leetcode/_46/Solution.java
2c0a1fd29059d86e06ac54d9d85564e9a22a839e
[]
no_license
yudidi/AtOffer
e44e8940c3cae9ad52716841693b26afdfe6ac44
42568000f47774574c72784841b2e356da62299b
refs/heads/master
2021-09-06T04:27:19.292258
2018-02-02T10:15:57
2018-02-02T10:15:57
108,991,610
0
0
null
null
null
null
UTF-8
Java
false
false
1,119
java
package backtracking.leetcode._46; import org.junit.jupiter.api.Test; import java.util.ArrayList; /** * 46. Permutations * Created by didi on 20/01/2018. */ public class Solution { public ArrayList<ArrayList<Integer>> permute(int[] num) { ArrayList<ArrayList<Integer>> r = new ArrayList<>(); core(num,null,r); return r; } /* 把num中可用的数,放到p容器中. p: 作为放东西的容器, 每放满一个就是一种放置方式. */ public void core(int[] num,ArrayList<Integer> p, ArrayList<ArrayList<Integer>> r){ if (p ==null){ p = new ArrayList<>(); } if (p.size() == num.length){ r.add(p); } for (int i = 0; i < num.length ; i++) { ArrayList<Integer> tmp = new ArrayList<Integer>(p);//YC if (!p.contains(num[i])){ //core(num,p.add(num[i]),r); tmp.add(num[i]); core(num,tmp,r); } } } @Test void test(){ int[] num ={1,2,3}; System.out.println(permute(num)); } }
[ "972656027@qq.com" ]
972656027@qq.com
fdca8bf241847b848709fffa845f2863220f7662
8f3d04c783c1b65419dc32f2d2cbee30be0cbcfc
/TwsPluginCore/src/main/java/com/tws/plugin/bridge/TwsPluginBridgeReceiver.java
8614c049d1ac20652ae4bb85b313b3100a514e65
[]
no_license
rickdynasty/TwsPluginFramework
ac338829eabb400b2269bae3e82ba4f107ce20c6
3eb6059af90c4bbf77ac14a5949d3db56b4edf24
refs/heads/master
2021-01-11T05:41:51.127936
2020-08-02T14:36:40
2020-08-02T14:36:40
81,816,592
376
112
null
2017-05-08T09:19:34
2017-02-13T11:12:27
Java
UTF-8
Java
false
false
438
java
package com.tws.plugin.bridge; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class TwsPluginBridgeReceiver extends BroadcastReceiver { private static final String TAG = "TwsPluginBridgeReceiver"; @Override public void onReceive(Context context, Intent initIntent) { Log.e(TAG, "绑定桥接BroadcastReceiver失败了哦!!!"); } }
[ "yongchen@pacewear.cn" ]
yongchen@pacewear.cn
ea3515f803f93008bbc37bdb29a57fa1aa0c1e10
b1ea174ba0c02ddd0385201bcf586b93ee6946ba
/src/main/java/com/pydio/cells/openapi/ApiException.java
a15a52ee28065939f16b2a8351705ba09162e7b7
[ "Apache-2.0" ]
permissive
stjordanis/cells-sdk-java
5c29f3976ea8c03b318b80e0b9b8f83e6a66e830
7d2e298b638042815f9e730f677b3d598ce93cf4
refs/heads/master
2023-07-07T11:57:55.844317
2021-08-11T08:56:48
2021-08-11T08:56:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,657
java
/* * Pydio Cells Rest API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.pydio.cells.openapi; import java.util.Map; import java.util.List; @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-06-01T06:29:01.792+02:00") public class ApiException extends Exception { private int code = 0; private Map<String, List<String>> responseHeaders = null; private String responseBody = null; public ApiException() {} public ApiException(Throwable throwable) { super(throwable); } public ApiException(String message) { super(message); } public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) { super(message, throwable); this.code = code; this.responseHeaders = responseHeaders; this.responseBody = responseBody; } public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) { this(message, (Throwable) null, code, responseHeaders, responseBody); } public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) { this(message, throwable, code, responseHeaders, null); } public ApiException(int code, Map<String, List<String>> responseHeaders, String responseBody) { this((String) null, (Throwable) null, code, responseHeaders, responseBody); } public ApiException(int code, String message) { super(message); this.code = code; } public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) { this(code, message); this.responseHeaders = responseHeaders; this.responseBody = responseBody; } /** * Get the HTTP status code. * * @return HTTP status code */ public int getCode() { return code; } /** * Get the HTTP response headers. * * @return A map of list of string */ public Map<String, List<String>> getResponseHeaders() { return responseHeaders; } /** * Get the HTTP response body. * * @return Response body in the form of string */ public String getResponseBody() { return responseBody; } }
[ "bruno.sinou@posteo.de" ]
bruno.sinou@posteo.de
33ecd2dbbd36b7bbe892db69c62b9c7f7846add4
057bc1a608e25028d047c141ba86fa084f309a61
/src/main/java/com/sixtyfour/elements/systemvars/SystemVariable.java
3f91778ce9d3d3e805c649752873bc7d9d221cff
[ "Unlicense" ]
permissive
nippur72/basicv2
de8e98f15ee6aba271c821a8916949c8b56211c5
e3e2bea5363f2e9bf1016b7334c3929d69665bf3
refs/heads/master
2020-04-28T23:49:00.363814
2019-03-14T15:05:40
2019-03-14T15:05:40
175,670,376
0
0
Unlicense
2019-03-14T17:36:04
2019-03-14T17:36:04
null
UTF-8
Java
false
false
162
java
package com.sixtyfour.elements.systemvars; /** * Flags a Variable as a system variable * * @author EgonOlsen * */ public interface SystemVariable { // }
[ "info@jpct.net" ]
info@jpct.net
791032a6e93a92e4e49afa74c31e791055d6f42f
9bb2c2212ef03f43f0d6a44f72f23ef42b08115c
/wear/src/main/java/net/noratek/smartvoxxwear/activity/ConferenceActivity.java
185e0426af04e38c1e19cbf1c09f7ac840f4bdd5
[]
no_license
Smartvoxx/smartvoxx-wear-devoxx
ff83b1837e916bb501f989fb16287c3434feef39
b1961b11d6d098de7e5ce4eb83c2308815f31a73
refs/heads/master
2021-01-22T13:03:51.791372
2016-06-16T12:57:02
2016-06-16T12:57:02
45,634,472
0
1
null
null
null
null
UTF-8
Java
false
false
12,298
java
package net.noratek.smartvoxxwear.activity; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.wearable.view.WatchViewStub; import android.support.wearable.view.WearableListView; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.TextView; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.common.api.ResultCallback; import com.google.android.gms.wearable.DataApi; import com.google.android.gms.wearable.DataEvent; import com.google.android.gms.wearable.DataEventBuffer; import com.google.android.gms.wearable.DataItemBuffer; import com.google.android.gms.wearable.DataMap; import com.google.android.gms.wearable.Node; import com.google.android.gms.wearable.NodeApi; import com.google.android.gms.wearable.PutDataRequest; import com.google.android.gms.wearable.Wearable; import net.noratek.smartvoxx.common.model.Conference; import net.noratek.smartvoxx.common.utils.Constants; import net.noratek.smartvoxxwear.R; import net.noratek.smartvoxxwear.wrapper.ConferencesListWrapper; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; /** * Created by eloudsa on 12/11/15. */ public class ConferenceActivity extends Activity implements WearableListView.ClickListener, GoogleApiClient.ConnectionCallbacks, DataApi.DataListener { private final static String TAG = ConferenceActivity.class.getCanonicalName(); // Google Play Services private GoogleApiClient mApiClient; // Layout widgets and adapters private WearableListView mListView; private ListViewAdapter mListViewAdapter; // Avoid double tap private Boolean mClicked = false; //create a counter to count the number of instances of this activity public static AtomicInteger mActivitiesLaunched = new AtomicInteger(0); @Override protected void onCreate(Bundle savedInstanceState) { // if launching will create more than one instance of this activity, bail out if (mActivitiesLaunched.incrementAndGet() > 1) { finish(); } super.onCreate(savedInstanceState); setContentView(R.layout.conference_activity); final WatchViewStub stub = (WatchViewStub) findViewById(R.id.watch_view_stub); stub.setOnLayoutInflatedListener(new WatchViewStub.OnLayoutInflatedListener() { @Override public void onLayoutInflated(WatchViewStub stub) { // Listview component mListView = (WearableListView) findViewById(R.id.wearable_list); // Assign the adapter mListViewAdapter = new ListViewAdapter(ConferenceActivity.this, new ArrayList<Conference>()); mListView.setAdapter(mListViewAdapter); // Set the click listener mListView.setClickListener(ConferenceActivity.this); } }); } @Override protected void onResume() { super.onResume(); mClicked = false; // Retrieve and display the list of schedules getConferencesFromCache(Constants.CONFERENCES_PATH); } @Override protected void onDestroy() { //remove this activity from the counter mActivitiesLaunched.getAndDecrement(); super.onDestroy(); } @Override protected void onStart() { super.onStart(); mApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .build(); mApiClient.connect(); } @Override protected void onStop() { if ((mApiClient != null) && (mApiClient.isConnected())) { Wearable.DataApi.removeListener(mApiClient, this); mApiClient.disconnect(); } super.onStop(); } private void sendMessage(final String path, final String message) { new Thread(new Runnable() { @Override public void run() { // broadcast the message to all connected devices final NodeApi.GetConnectedNodesResult nodes = Wearable.NodeApi.getConnectedNodes(mApiClient).await(); for (Node node : nodes.getNodes()) { Wearable.MessageApi.sendMessage(mApiClient, node.getId(), path, message.getBytes()).await(); } } }).start(); } @Override public void onDataChanged(DataEventBuffer dataEventBuffer) { for (DataEvent event : dataEventBuffer) { // Check if we have received our schedules if (event.getType() == DataEvent.TYPE_CHANGED && event.getDataItem().getUri().getPath().startsWith(Constants.CONFERENCES_PATH)) { ConferencesListWrapper conferencesListWrapper = new ConferencesListWrapper(); final List<Conference> conferencesList = conferencesListWrapper.getConferencesList(event); updateUI(conferencesList); return; } } } // Get Conferences from the data items repository (cache). // If not available, we refresh the data from the Mobile device. // private void getConferencesFromCache(final String pathToContent) { Uri uri = new Uri.Builder() .scheme(PutDataRequest.WEAR_URI_SCHEME) .path(pathToContent) .build(); Wearable.DataApi.getDataItems(mApiClient, uri) .setResultCallback( new ResultCallback<DataItemBuffer>() { @Override public void onResult(DataItemBuffer dataItems) { if (dataItems.getCount() == 0) { // refresh the list of conferences from Mobile sendMessage(pathToContent, "get list of conferences"); dataItems.release(); return; } DataMap dataMap = DataMap.fromByteArray(dataItems.get(0).getData()); if (dataMap == null) { // refresh the list of conferences from Mobile sendMessage(pathToContent, "get list of conferences"); dataItems.release(); return; } // retrieve and display the conferences from the cache ConferencesListWrapper conferencesListWrapper = new ConferencesListWrapper(); final List<Conference> conferencesList = conferencesListWrapper.getConferencesList(dataMap); dataItems.release(); updateUI(conferencesList); } } ); } private void updateUI(final List<Conference> conferencesList) { runOnUiThread(new Runnable() { @Override public void run() { findViewById(R.id.progressBar).setVisibility(View.GONE); mListViewAdapter.refresh(conferencesList); } }); } @Override public void onConnected(Bundle bundle) { Wearable.DataApi.addListener(mApiClient, this); } @Override public void onConnectionSuspended(int i) { } @Override public void onClick(WearableListView.ViewHolder viewHolder) { // Avoid double tap if (mClicked) { return; } Conference conference = (Conference) viewHolder.itemView.getTag(); if (conference == null) { return; } mClicked = true; // display schedules for this conference Intent scheduleIntent = new Intent(ConferenceActivity.this, ScheduleActivity.class); Bundle b = new Bundle(); b.putString(Constants.DATAMAP_COUNTRY, conference.getCountryCode()); b.putString(Constants.DATAMAP_SERVER_URL, conference.getServerUrl()); scheduleIntent.putExtras(b); ConferenceActivity.this.startActivity(scheduleIntent); } @Override public void onTopEmptyRegionClick() { } // Inner class providing the WearableListview's adapter public class ListViewAdapter extends WearableListView.Adapter { private List<Conference> mDataset; private final Context mContext; // Provide a suitable constructor (depends on the kind of dataset) public ListViewAdapter(Context context, List<Conference> conferencesList) { mContext = context; this.mDataset = conferencesList; } // Provide a reference to the type of views we're using public class ItemViewHolder extends WearableListView.ViewHolder { private TextView textView; public ItemViewHolder(View itemView) { super(itemView); // find the text view within the custom item's layout textView = (TextView) itemView.findViewById(R.id.description); } } // Create new views for list items // (invoked by the WearableListView's layout manager) @Override public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { // Inflate our custom layout for list items return new ItemViewHolder(new SettingsItemView(mContext)); } // Replace the contents of a list item // Instead of creating new views, the list tries to recycle existing ones // (invoked by the WearableListView's layout manager) @Override public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { // retrieve the text view ItemViewHolder itemHolder = (ItemViewHolder) holder; TextView view = itemHolder.textView; // retrieve, transform and display the conference Conference conference= mDataset.get(position); view.setText(conference.getTitle()); // replace list item's metadata holder.itemView.setTag(conference); } // Return the size of your dataset // (invoked by the WearableListView's layout manager) @Override public int getItemCount() { if (mDataset == null) { return 0; } return mDataset.size(); } public void refresh(List<Conference> conferencesList) { mDataset = conferencesList; Collections.sort(mDataset, new Comparator<Conference>() { @Override public int compare(Conference conferenceA, Conference conferenceB) { return conferenceA.getCountryCode().compareTo(conferenceB.getCountryCode()); } }); // reload the listview notifyDataSetChanged(); } // Static nested class used to animate the listview's item public final class SettingsItemView extends FrameLayout implements WearableListView.OnCenterProximityListener { private TextView description; public SettingsItemView(Context context) { super(context); View.inflate(context, R.layout.schedule_row_activity, this); description = (TextView) findViewById(R.id.description); } @Override public void onCenterPosition(boolean b) { description.animate().scaleX(1f).scaleY(1f).alpha(1); } @Override public void onNonCenterPosition(boolean b) { description.animate().scaleX(0.8f).scaleY(0.8f).alpha(0.6f); } } } }
[ "info@noratek.net" ]
info@noratek.net
310df1dc2aa991cddee9eb799b3c207df78ff0de
1ef5b2543f60db703b304a0e9f2817b7b165ad29
/Bridge/Abstraction.java
1a8a2efbfb33e6ff15f58c742bc5521747c4ad7c
[]
no_license
KentHsu/Design-Pattern
1d0a767cb8640ce478dbecd75bf82b6866d69d47
fff2f26f22aba416fda160701437e0b33d75eee1
refs/heads/main
2023-03-26T18:34:27.226864
2021-03-27T15:11:18
2021-03-27T15:11:18
327,970,605
0
0
null
null
null
null
UTF-8
Java
false
false
223
java
package Bridge; public abstract class Abstraction { protected Implementor implementor; public void SetImplementor(Implementor implementor) { this.implementor = implementor; } public abstract void Operation(); }
[ "luffy1610@gmail.com" ]
luffy1610@gmail.com
291c32ce2963e3e77813fd41441fd1c5196f63fb
7fa17e8213b4a10c30e62636329a7d24e1a8b3f6
/ExamPreparation/Misc/MaxSumOfSubsequence.java
893ed7da4216ef80f50b5fb4001ac85ab754c259
[]
no_license
minnkov/TelerikAcademyAlpha
1271a5ddd11699e7292fe82f052c9957cb7074b3
94844b9215d3f767318bb3e94fedcfa47686a759
refs/heads/master
2020-05-23T04:55:11.261107
2019-05-14T15:03:00
2019-05-14T15:03:00
186,641,197
0
0
null
null
null
null
UTF-8
Java
false
false
780
java
package e_Misc; import java.util.Scanner; public class MaxSumOfSubsequence { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int[] numbers = new int[n]; for (int i = 0; i < numbers.length; i++) { numbers[i] = Integer.parseInt(scanner.nextLine()); } int maxSum = 0; for (int i = 0; i < numbers.length; i++) { int currentSum = numbers[i]; for (int j = i + 1; j < numbers.length; j++) { currentSum += numbers[j]; if (currentSum > maxSum) { maxSum = currentSum; } } } System.out.println(maxSum); } }
[ "minnkov@gmail.com" ]
minnkov@gmail.com
16ed6d54fbc64700a89ec0d31f036bfbe86edddd
76ec7ac142ee6f5afbe8b929023fed2ccec24b23
/baselib/src/main/java/com/example/baselib/utils/CipherUtils.java
2b75a60f7297c760328787591588705812222f9f
[]
no_license
aierlymon/Huodai
9f60b8ec9ec4bccad42ade73c1e0c7eb10300c7c
22e26e19de64f757d3d7c90551f2f5a18db174bd
refs/heads/master
2020-06-21T05:25:01.760265
2019-08-16T07:31:13
2019-08-16T07:31:29
197,354,790
0
0
null
null
null
null
UTF-8
Java
false
false
4,426
java
package com.example.baselib.utils; import android.util.Base64; import android.util.Log; import java.io.File; import java.io.FileInputStream; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.security.KeyFactory; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.PublicKey; import java.security.spec.X509EncodedKeySpec; import java.util.Arrays; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; /** * Created by huanghao on 2017-07-31. */ public class CipherUtils { //和md5校验一样是不可逆的 public static String sha256(String src) { try { MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); messageDigest.update(src.getBytes()); byte[] byteBuffer = messageDigest.digest(); return Utils.byteArrayToHexString(byteBuffer); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return null; } public static String sha1(String src) { try { MessageDigest messageDigest = MessageDigest.getInstance("SHA-1"); messageDigest.update(src.getBytes()); byte[] byteBuffer = messageDigest.digest(); return Utils.byteArrayToHexString(byteBuffer); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return null; } public static byte[] base64Decode(String data) { return Base64.decode(data, Base64.DEFAULT); } public String setEncryption(String oldWord) { return Base64.encodeToString(oldWord.getBytes(), Base64.DEFAULT); } //AES解码,获取扫码时间(对称揭秘) public static String aesDecrypt(byte[] srcData, byte[] key) { try { Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding"); SecretKeySpec key_spec = new SecretKeySpec(key, "AES"); IvParameterSpec iv = new IvParameterSpec(Arrays.copyOfRange(key, 0, 16)); cipher.init(Cipher.DECRYPT_MODE, key_spec, iv); byte[] original = cipher.doFinal(srcData); byte[] bytes = PKCS7UnPadding(original); return new String(bytes); } catch (Exception e) { e.printStackTrace(); } return null; } private static byte[] PKCS7UnPadding(byte[] decrypted) { int pad = (int) decrypted[decrypted.length - 1]; if (pad < 1 || pad > 32) { pad = 0; } return Arrays.copyOfRange(decrypted, 0, decrypted.length - pad); } /** * RSA算法 */ public static final String RSA = "RSA"; /**加密方式,android的*/ // public static final String TRANSFORMATION = "RSA/None/NoPadding"; /** * 加密方式,标准jdk的 */ public static final String TRANSFORMATION = "RSA/None/PKCS1Padding"; //RSA加密 public static byte[] encryptByPublicKey(byte[] data, byte[] publicKey) throws Exception { // 得到公钥对象 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(publicKey); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); PublicKey pubKey = keyFactory.generatePublic(keySpec); // 加密数据 Cipher cp = Cipher.getInstance(TRANSFORMATION); cp.init(Cipher.ENCRYPT_MODE, pubKey); return cp.doFinal(data); } //获取文件的md5 public static String getFileMD5(File file) { if (!file.isFile()) { return null; } MessageDigest digest = null; FileInputStream in = null; byte buffer[] = new byte[1024]; int len; try { digest = MessageDigest.getInstance("MD5"); in = new FileInputStream(file); while ((len = in.read(buffer, 0, 1024)) != -1) { digest.update(buffer, 0, len); } in.close(); } catch (Exception e) { e.printStackTrace(); return null; } BigInteger bigInt = new BigInteger(1, digest.digest()); return bigInt.toString(16); } //判断md5的值是否相等 public static boolean judgeMd5(String md5, File file) { if (md5.equals(getFileMD5(file))) { return true; } return false; } }
[ "1351637684@qq.com" ]
1351637684@qq.com
8288a541302085bd5e85040c22d07f7a635879d7
36f18d4cc05ebabea9ac8a362852b5c4e8521e68
/src/test/java/WeiredAddTest.java
16968f76d5e7a4b2f9aa02e66ec528482efac612
[]
no_license
yechanpark/JUnit-Basic
c9c97fc361436e2bc06051c956006cfd1359bf82
b08e72fc0e1c25434ee3cf5917deeb04f64143e6
refs/heads/master
2021-06-14T18:16:52.469829
2021-02-10T03:03:38
2021-02-10T03:03:38
89,111,116
0
0
null
2021-02-10T03:03:39
2017-04-23T02:02:48
Java
UTF-8
Java
false
false
839
java
import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.Collection; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized.class) public class WeiredAddTest { private int expected; private int value1; private int value2; public WeiredAddTest(int e, int v1, int v2) { expected = e; value1 = v1; value2 = v2; } @Test public void weiredAdd() { SimpleCalculator calc = new SimpleCalculator(); calc.weiredAdd(value1, value2); assertEquals(expected, calc.getResult()); } @Parameters public static Collection getParameters() { return Arrays.asList(new Object[][] { { 30, 10, 20 }, { 0, 0, 0 }, { 100, 5, 7 }, { -10, -5, -5 } }); } }
[ "qkrdpcks0419@naver.com" ]
qkrdpcks0419@naver.com
15db459960470f2f4dbadf1a4f6cbcda82e44245
e042347ddc084595169668f979b41a6791023fd6
/libs/utils-dataunit/src/main/java/cz/cuni/mff/xrg/uv/utils/dataunit/files/FilesDataUnitUtils.java
d206b3afbb0e4da5b87f2144764c345de1d4f0e1
[]
no_license
mff-uk/odcs-dpus-utils
6df02065ef69c68c4cb6202f30f990548b98e58b
047c821168e371deeb3cae68590b8acef37e6d4a
refs/heads/master
2021-05-29T17:50:52.763198
2015-02-13T13:15:15
2015-02-13T13:15:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,358
java
package cz.cuni.mff.xrg.uv.utils.dataunit.files; import java.io.File; import cz.cuni.mff.xrg.uv.utils.dataunit.metadata.MetadataUtils; import eu.unifiedviews.dataunit.DataUnitException; import eu.unifiedviews.dataunit.files.FilesDataUnit; import eu.unifiedviews.dataunit.files.WritableFilesDataUnit; import eu.unifiedviews.helpers.dataunit.virtualpathhelper.VirtualPathHelper; /** * * @author Škoda Petr */ public class FilesDataUnitUtils { /** * InMemory representation of File entry. */ public static class InMemoryEntry implements FilesDataUnit.Entry { private final String fileUri; private final String symbolicName; public InMemoryEntry(String graphUri, String symbolicName) { this.fileUri = graphUri; this.symbolicName = symbolicName; } @Override public String getFileURIString() throws DataUnitException { return fileUri; } @Override public String getSymbolicName() throws DataUnitException { return symbolicName; } } private FilesDataUnitUtils() { } /** * Add file to the DataUnit. OInly file name is used as a path to file. * * @param dataUnit * @param file * @return * @throws DataUnitException */ public static FilesDataUnit.Entry addFile(WritableFilesDataUnit dataUnit, File file) throws DataUnitException { return addFile(dataUnit, file, file.getName()); } /** * Add file to the DataUnit. * * @param dataUnit * @param file File to add, must be under root. * @param path * @return * @throws eu.unifiedviews.dataunit.DataUnitException */ public static FilesDataUnit.Entry addFile(WritableFilesDataUnit dataUnit, File file, String path) throws DataUnitException { final String symbolicName = path; // Add existing file to DataUnit. dataUnit.addExistingFile(symbolicName, file.toURI().toString()); // Set available metadata. MetadataUtils.add(dataUnit, symbolicName, FilesVocabulary.UV_VIRTUAL_PATH, symbolicName); // Return representing instance. return new InMemoryEntry(file.toString(), symbolicName); } /** * * @param entry * @return File representation of given entry. * @throws DataUnitException */ public static File asFile(FilesDataUnit.Entry entry) throws DataUnitException { return new File(java.net.URI.create(entry.getFileURIString())); } /** * Create file of under given path and return {@link File} to it. Also add * {@link VirtualPathHelper#PREDICATE_VIRTUAL_PATH} metadata to the new file. * * As this function create new connection is should not be used for greater number of files. * * @param dataUnit * @param virtualPath * @return * @throws DataUnitException */ public static FilesDataUnit.Entry createFile(WritableFilesDataUnit dataUnit, String virtualPath) throws DataUnitException { final String fileUri = dataUnit.addNewFile(virtualPath); MetadataUtils.add(dataUnit, virtualPath, FilesVocabulary.UV_VIRTUAL_PATH, virtualPath); return new InMemoryEntry(fileUri, virtualPath); } }
[ "p.skoda@centrum.cz" ]
p.skoda@centrum.cz
aad3627e500c656daf2b70db23138be8382ff853
1ddd84d511c24082df21f07ebab08b1af4e05b9d
/src/test/java/tests/Homework/ExcelRev.java
67dddd0ab358adddc3c3a77f00584947201cb504
[]
no_license
MiraViktoria/Summer2019OnlineTestNGSeleniumProject
673df4ce1104b7020a39b4831144d1c9f56e064d
54058c25239d4a6b8175e5740f116d25008f19de
refs/heads/master
2023-05-12T08:03:36.333470
2020-01-07T03:54:35
2020-01-07T03:54:35
227,734,377
0
0
null
2023-05-09T18:17:50
2019-12-13T02:01:38
Java
UTF-8
Java
false
false
3,883
java
package tests.Homework; public class ExcelRev { /* Review: Operations with excel files: To connect java code with excel files we use Apache POI library. It's an open source library, means that it's free. Since we cannot open excel file without special decoding, we have to use library that can do it for us. #To open excel file, we need to do few things: #first of all, open file through FileInputStream FileInputStream instream = new FileInputStream("path/to/the/file.xlsx"); #Then, we have to use workbook, to create object of excel file. Workbook workbook = WorkbookFactory.create(instream); * Creates the appropriate HSSFWorkbook / XSSFWorkbook from the given InputStream. We use WorkbookFactory, because it can open both type of excel files .xls (old) and .xlsx (new). workbook = excel file # Next step is to open spread sheet, because excel file can have multiple spreadsheets. It's like book can have many pages. Sheet workSheet = workbook.getSheet("name_off_sheet"); #Then, since excel file it's a table, and table consists of rows and cells, we need open Row first. Row row = workSheet.getRow(0); #Every row consists of cells, to get data from row, we need to use Cell Cell cell = row.getCell(1); ####################### Because it was my interview question, that's why I started from this. workbook -> worksheet -> row -> cell ####################### In test automation, excel files are very popular for storing test data. If we combine excel file with data provider we can do data driven testing. To do so, we have open some file, and return info as 2D array. We use DataProvider only to execute same test many times with different data sets. DataProvider is not required to use along with apache poi. It was our tests case, that requires to login many times with different credentials. As many rows in excel spreadsheet, as many times same test will be executed. java.lang.IllegalArgumentException: Keys to send should be a not null CharSequence If you are trying to read data from map, and key name is wrong, you will get null. Then, if you are trying to use sendKeys() with null, you will get: java.lang.IllegalArgumentException: Keys to send should be a not null CharSequence ####################################### One of interview questions is: Tell me about your framework? - tools that I use - design patterns (Page Object Model) - packages that I have For TestNG we have video, and for cucumber framework we will have later another story. Since in your resume you will have cucumber or protractor or appium as current project, I don't concentrate on testng framework. ###How to create framework from scratch? IT's all about tools and design patterns that you want to apply. Tools: Java, Maven, Selenium WebDriver (for mobile it's appium, for angular applications people use Protractor) Design Patterns: Page Object Model, Singleton Driver How do you report: as of now, we use extent report What type of framework would you choose: Data Driven + Page Object (Modular) = Hybrid framework. To start: - We create maven project - then we create packages like: pages, tests, utilities, db - add dependencies - add driver class, browser utils, config reader... - add configuration.properties file - create test base and page base classes - create login page class - create smoke test.xml file Everything complex consists of simple things. Don't be scared of big and complex frameworks. Most popular questions: Tell me about yourself Tell me about your project Tell me about your day-to-day activity Tell me about your role and responsibilities Tell me about your framework Tell me about your team Tell me about tools that you use Usually people ask based on your answers If you don't know answer: Sorry but I didn't have a chance to work with this, but I am willing to learn!!! I am super quick learner Positive thinker Team player Cross-functional */ }
[ "Seraphine1226@gmail.com" ]
Seraphine1226@gmail.com
3e5670afde49ef0ff1fac9123f071ba4b4b3ffbd
64cfdbe357d3d2a6ecd1ec8a1f23724b8215a582
/src/main/java/com/zlkj/ssm/shop/front/entity/Comment.java
e33160b1e119deee06c19efdacd7e1a9c8a14661
[]
no_license
MusicXi/jeeShop7
bfac883d22fed8fc4d9f03e867d0b90f8e462e5e
5bcb6432d1d40ac11ec4661f72828123c9131432
refs/heads/master
2020-03-09T16:32:51.598538
2018-10-23T09:45:42
2018-10-23T09:45:42
128,887,670
1
3
null
null
null
null
UTF-8
Java
false
false
261
java
package com.zlkj.ssm.shop.front.entity; import java.io.Serializable; public class Comment extends com.zlkj.ssm.shop.entity.common.Comment implements Serializable { private static final long serialVersionUID = 1L; public void clear() { super.clear(); } }
[ "792331407@qq.com" ]
792331407@qq.com
7777277e06da4e0825f9e5fd5677720fa292bdb5
52ca396ea2169d1e9b6ef71ef58d2bbc68af3c12
/src/main/java/com/siemens/csde/infrastructure/scheduler/handler/GlobalExceptionHandler.java
ee13c5023e39af19b002227417c3c09e4a839483
[]
no_license
jackjetty/cis
6b1141022a8c66eaf357f739a5484ea7e5cc2187
d4cd438b46ee17ad8adf7c757d5a56aeab44edac
refs/heads/master
2020-09-07T23:58:01.576026
2019-11-13T07:32:32
2019-11-13T07:32:32
220,950,363
0
0
null
null
null
null
UTF-8
Java
false
false
1,453
java
package com.siemens.csde.infrastructure.scheduler.handler; import com.siemens.csde.infrastructure.scheduler.enums.ErrorEnum; import com.siemens.csde.infrastructure.scheduler.exception.OperateException; import com.siemens.csde.infrastructure.scheduler.pojo.bean.ErrorBean; import javax.servlet.http.HttpServletResponse; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseStatus; @ControllerAdvice @Slf4j public class GlobalExceptionHandler{ @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ExceptionHandler(value = OperateException.class) @ResponseBody public ErrorBean handleException(OperateException ex, HttpServletResponse response) { log.error("OperateException:", ex); ErrorBean errorBean = new ErrorBean(ErrorEnum.ERROR_OPERATE.getCode(),ex ); return errorBean; } @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ExceptionHandler(value = Exception.class) @ResponseBody public ErrorBean handleUnknown(Exception ex, HttpServletResponse response) { log.error("Exception:", ex); ErrorBean errorBean = new ErrorBean(ErrorEnum.ERROR_UNKNOW.getCode(),ex ); return errorBean; } }
[ "jianfeng.huang.ext@siemens.com" ]
jianfeng.huang.ext@siemens.com
44845d6447bb124f899a9740c8eea74a6a3df56a
298041fb0c7b8adf2b5123fc82f44c3c63953687
/GossipP2P_Server/src/IterativeUDPServerThread.java
2e7ddc2b1ee48f375f67ce713bbb48bf5bc2f20b
[]
no_license
S4NT14G0/Gossip_P2P
bc6fcb6978434442f11aa5c84cb882f016f5bfaa
a5232dd8d8fec795a85da32317abe3737302adf7
refs/heads/master
2021-01-21T10:46:47.916938
2017-04-24T15:27:42
2017-04-24T15:27:42
83,489,222
1
0
null
2017-03-24T19:39:38
2017-02-28T23:20:24
Java
UTF-8
Java
false
false
3,438
java
/* ------------------------------------------------------------------------- */ /* Copyright (C) 2017 Author: sroig2013@my.fit.edu Florida Tech, Computer Science This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either the current version of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* ------------------------------------------------------------------------- */ import java.net.DatagramPacket; import java.net.DatagramSocket; /** * Thread for an iterative UDP Gossip Server. * @author sroig2013@my.fit.edu * */ public class IterativeUDPServerThread extends Thread { int port; /** * Construct a new iterative UDP Gossip Server. * @param _port Port that server will listen on. */ public IterativeUDPServerThread(int _port) { this.port = _port; } /** * Run the thread. */ public void run () { try { DatagramSocket socket = new DatagramSocket(port); for (;;) { // Run forever, receiving and echoing datagrams byte buffer[] = new byte[1000]; DatagramPacket packet = new DatagramPacket(buffer, buffer.length); socket.receive(packet); // Receive packet from client System.out.println("Handling client at " + packet.getAddress().getHostAddress() + " on port " + packet.getPort()); // Get the string message out of the datagram packet String input = new String(packet.getData(), "UTF-8"); // Try to parse the message Message inputMessage = Message.identifyMessage(input); // Check what type of message was sent if (inputMessage instanceof GossipMessage) { // Log we've received a gossip message System.out.println("Received Gossip Message"); MessageHandler.HandleGossipMessage(inputMessage); } else if (inputMessage instanceof PeerMessage) { // Log we received an add peer message System.out.println("Received Peer Message"); MessageHandler.HandlePeerMessage(inputMessage); } else if (inputMessage instanceof PeersListMessage) { System.out.println("Peers List Requested"); buffer = Database.getInstance().getPeersList().toString().getBytes(); packet = new DatagramPacket(buffer, buffer.length, packet.getAddress(), packet.getPort()); socket.send(packet); //MessageHandler.HandlePeersListMessage(packet.getPort(), packet.getAddress().getHostAddress()); } else if (inputMessage instanceof ErrorMessage) { System.out.println("Error"); } //packet.setData("Add Peer Message Received\n".getBytes()); //socket.send(packet); packet.setLength(buffer.length); } } catch (Exception e) { } } }
[ "roigs23@gmail.com" ]
roigs23@gmail.com
ce9ba08c2c7656f3ab31af91c9a9f3d6f762c021
8ec980a4b0e185a90dad0e6f2dc3eddaaf30e2af
/src/GeradorDeNotaFiscal.java
97931dabd5a17a4f9ba48ef500b9b6cfef374d40
[]
no_license
AllanBorgess/NotaFiscal
adb36fbe7197904ac002ff94ad322d792479d9ef
b83a64cac0086f7f0be76f1de5841262233112a3
refs/heads/main
2023-03-12T15:55:07.150961
2021-02-24T22:32:58
2021-02-24T22:32:58
342,054,042
0
0
null
null
null
null
UTF-8
Java
false
false
592
java
import java.util.List; public class GeradorDeNotaFiscal { private List<DepoisDeGerarNota> acoes; public GeradorDeNotaFiscal(List<DepoisDeGerarNota> acoes) { this.acoes = acoes; } public NotaFiscal gera(Fatura fatura) { double valor = fatura.getValorMensal(); NotaFiscal nf = new NotaFiscal(valor, impostoSimplesSobreO(valor)); for (DepoisDeGerarNota acaoAposGerarNota : acoes) { acaoAposGerarNota.executa(nf); } return nf; } private double impostoSimplesSobreO(double valor) { return valor * 0.06; } }
[ "allanborges20000@gmail.com" ]
allanborges20000@gmail.com
9cba51c8a5a0d216e750c1a07f708f4304472cd4
ba5cc6c21bdacdbbe50a6131131af26aedf30c79
/2018-03-22-gates/src/org/elsys/gates/Gate.java
23e23b7e9dc4ca2c570163d779e94c1637e0f9c7
[]
no_license
wencakisa/elsys-oop
4d2dd6a1c0f0f33901813635955a34d7ea3991f9
dfe6ea435fb5cb317444053fd7bde9aa4d5d99ce
refs/heads/master
2021-09-14T18:49:51.523085
2018-05-17T14:25:03
2018-05-17T14:25:03
104,384,486
2
0
null
null
null
null
UTF-8
Java
false
false
151
java
package org.elsys.gates; import java.util.List; public interface Gate { void act(); List<Wire> getInputs(); List<Wire> getOutputs(); }
[ "wencakisa@gmail.com" ]
wencakisa@gmail.com
76410b1418688802504ee4060978e581e4640c4f
82becbf20542633bfbe29dae6e362e295fb97d0d
/BookLibrary/src/main/java/in/co/companyname/controllers/ExceptionHandlerController.java
e6fd16696b780f06e89d53f840822959a0aec36e
[]
no_license
yashkhatri/ReadersParadise
b4ac58c06bff530195839a01fbcf9a3569680c85
c51fe0b54e1b82cfe23c24388ec85ec5af5fd0ea
refs/heads/master
2021-01-01T05:06:02.483128
2016-04-29T18:29:31
2016-04-29T18:29:31
57,403,547
0
0
null
null
null
null
UTF-8
Java
false
false
4,277
java
/* * */ package in.co.companyname.controllers; import in.co.companyname.exceptionhandling.SystemException; import org.hibernate.HibernateException; import org.hibernate.JDBCException; import org.hibernate.SessionException; import org.hibernate.exception.ConstraintViolationException; import org.hibernate.exception.GenericJDBCException; import org.hibernate.exception.SQLGrammarException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.transaction.CannotCreateTransactionException; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.servlet.ModelAndView; import com.mysql.jdbc.exceptions.MySQLSyntaxErrorException; // TODO: Auto-generated Javadoc /** * The Class ExceptionHandlerController. */ @ControllerAdvice public class ExceptionHandlerController { /** The Constant LOGGER. */ private static final Logger LOGGER = LoggerFactory .getLogger(ExceptionHandlerController.class); private static final String ERROR_PAGE = "errorPage"; /** * Sql grammer exception. * * @param e * the e * @return the string */ @ExceptionHandler(SQLGrammarException.class) public String sqlGrammerException(Exception e) { LOGGER.error("SQL Grammar Exception.\nException ::\n" + e); return ERROR_PAGE; } /** * Generic jdbc exception. * * @param e * the e * @return the string */ @ExceptionHandler(GenericJDBCException.class) public String genericJdbcException(Exception e) { LOGGER.error("Generic JDBC Exception.\nException ::\n" + e); return ERROR_PAGE; } /** * SQ lexception. * * @param e * the e * @return the string */ @ExceptionHandler(CannotCreateTransactionException.class) public String sqlException(Exception e) { LOGGER.error("Error connecting Database.\nException ::\n" + e); return ERROR_PAGE; } /** * Session exception. * * @param e * the e * @return the string */ @ExceptionHandler(SessionException.class) public String sessionException(Exception e) { LOGGER.error("Session Exception.\nException ::\n" + e); return ERROR_PAGE; } /** * Null pointer exception. * * @param e * the e * @return the string */ @ExceptionHandler(NullPointerException.class) public String nullPointerException(Exception e) { LOGGER.error("Null Pointer Exception.\nException ::\n" + e); return ERROR_PAGE; } /** * My sql syntax exception. * * @param e * the e * @return the string */ @ExceptionHandler(MySQLSyntaxErrorException.class) public String mySqlSyntaxException(Exception e) { LOGGER.error("(MySQLSyntaxErrorException.\nException ::\n" + e); return ERROR_PAGE; } /** * Constraint violation exception exception. * * @param e the e * @return the string */ @ExceptionHandler(ConstraintViolationException.class) public String constraintViolationException(Exception e) { LOGGER.error("(constraintViolationException.\nException ::\n" + e); return ERROR_PAGE; } /** * Jdbc exception. * * @param e the e * @return the string */ @ExceptionHandler( JDBCException.class) public String jdbcException(Exception e) { LOGGER.error("(jdbcException.\nException ::\n" + e); return ERROR_PAGE; } @ExceptionHandler(HibernateException.class) public String hibernateException(Exception e) { LOGGER.error("(hibernateException.\nException ::\n" + e); return ERROR_PAGE; } @ExceptionHandler(Exception.class) public String exception(Exception e) { LOGGER.error("(Generic Exception .\nException ::\n" + e); return ERROR_PAGE; } @ExceptionHandler(SystemException.class) public String systemException(SystemException e) { LOGGER.error("SYSTEM EXCEPTION CAUGHT:\n" + e); return ERROR_PAGE; } }
[ "yash.khatri@openratio.com" ]
yash.khatri@openratio.com
493432d68ab9d89f99e166e71606e6c21c8cfb3d
61d1c8721820bd9f27214ce62fd548a4472f6380
/core/src/com/packtpub/libgdx/canyonbunny/util/Constants.java
e8651bc284f1e9e4cd58793da7b995034605aa06
[]
no_license
operatium/Test
f6b0621204d9e31e0f7b9b8835a959ddba83738c
6220061a9e36be9976ebcdf7ae36649c67c4a37a
refs/heads/master
2021-01-10T05:59:16.338996
2017-03-26T15:32:50
2017-03-26T15:32:50
48,488,770
0
0
null
null
null
null
UTF-8
Java
false
false
479
java
package com.packtpub.libgdx.canyonbunny.util; /** * Created by Administrator on 2017/3/26. */ public class Constants { // Visible game world is 5 meters wide public static final float VIEWPORT_WIDTH = 5.0f; // Visible game world is 5 meters tall public static final float VIEWPORT_HEIGHT = 5.0f; public static final String TEXTURE_ATLAS_OBJECTS = "canyonbunny.txt";//最新版本里打包之后是使用atlas的文件名:canyonbunny.atlas }
[ "operatium@163.com" ]
operatium@163.com
c754da2fed1c469cc0f7270ae92522a2ceced822
817b83ed324ab670a1e57ba902052cd9a80d90e6
/src/torquedit/preferences/TorquEDITPreferencePage.java
9befecac42cf751fb7bd0aa2e37ac1865707cd9b
[]
no_license
mixxit/TorquEDIT
a92d33d153c66f186da272e9c8146ca61a73f991
be5ff7e7ce0b0ecb6ab1e2e3db08292faeae7480
refs/heads/master
2021-01-20T12:22:45.270223
2013-08-28T11:54:01
2013-08-28T11:54:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,719
java
package torquedit.preferences; import org.eclipse.jface.preference.*; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.IWorkbench; import torquedit.tseditor.TorquEDITPlugin; /** * This class represents a preference page that * is contributed to the Preferences dialog. By * subclassing <samp>FieldEditorPreferencePage</samp>, we * can use the field support built into JFace that allows * us to create a page that is small and knows how to * save, restore and apply itself. * <p> * This page is used to modify preferences only. They * are stored in the preference store that belongs to * the main plug-in class. That way, preferences can * be accessed directly via the preference store. */ public class TorquEDITPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { public TorquEDITPreferencePage() { super(GRID); setPreferenceStore(TorquEDITPlugin.getDefault().getPreferenceStore()); //setDescription("Code completion"); } private Label createLabel(Composite parent, String text) { Label label = new Label(parent, SWT.LEFT); label.setText(text); GridData data = new GridData(); data.horizontalSpan = 2; data.horizontalAlignment = GridData.FILL; label.setLayoutData(data); return label; } /** * Creates the field editors. Field editors are abstractions of * the common GUI blocks needed to manipulate various types * of preferences. Each field editor knows how to save and * restore itself. */ public void createFieldEditors() { // addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, // "&Directory preference:", getFieldEditorParent())); //createLabel(getFieldEditorParent(), "Code Completion Settings"); //createLabel(getFieldEditorParent(), " "); addField( new DirectoryFieldEditor( PreferenceConstants.P_TGB_FOLDER, "TGB Source Folder", getFieldEditorParent())); addField( new DirectoryFieldEditor( PreferenceConstants.P_TGE_FOLDER, "TGE Source Folder", getFieldEditorParent())); addField( new DirectoryFieldEditor( PreferenceConstants.P_TGEA_FOLDER, "TGEA Source Folder", getFieldEditorParent())); addField( new BooleanFieldEditor( PreferenceConstants.P_TGB_CHECK, "Use TGB", getFieldEditorParent())); addField( new BooleanFieldEditor( PreferenceConstants.P_TGE_CHECK, "Use TGE", getFieldEditorParent())); addField( new BooleanFieldEditor( PreferenceConstants.P_TGEA_CHECK, "Use TGEA", getFieldEditorParent())); addField( new IntegerFieldEditor( PreferenceConstants.P_POPUP_DELAY, "Popup delay (milliseconds)", getFieldEditorParent())); addField( new BooleanFieldEditor( PreferenceConstants.P_DELETE_DSOS, "Auto-delete .dso files", getFieldEditorParent())); //createLabel(getFieldEditorParent(), ""); //createLabel(getFieldEditorParent(), "Syntax Coloring Settings"); addField(new ColorFieldEditor(PreferenceConstants.P_COMMENT, "Comments", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_AUTO_COMPLETE_BG, "Code Completion popup background", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_AUTO_COMPLETE_FG, "Code Completion popup foreground", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_CLASSES, "Classes", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_DEFAULT, "Default", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_FUNCTIONS, "Functions", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_GLOBAL, "Global variables", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_KEYWORD, "Keywords", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_LOCAL, "Local variables", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.P_STRING, "Strings", getFieldEditorParent())); // addField(new RadioGroupFieldEditor( // PreferenceConstants.P_CHOICE, // "An example of a multiple-choice preference", // 1, // new String[][] { { "&Choice 1", "choice1" }, { // "C&hoice 2", "choice2" } // }, getFieldEditorParent())); // addField( // new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent())); } /* (non-Javadoc) * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) */ public void init(IWorkbench workbench) { } public boolean performOk() { return super.performOk(); } }
[ "michaelbollanduk@gmail.com" ]
michaelbollanduk@gmail.com
eb01c38eb5bde339c0a1a36d60f938e1076bfcac
2995b7e7f312a4eaaeb14515c985538f99056a2f
/src/com/fenggong/view/ExpandTabView.java
56b0869b41391e17eda53420c7959036155c3df8
[]
no_license
1773208968/clp
19541524fc8ba6515d5e5c257f290c4df1d36ee4
1d8645b6bb0a5e87de66b2a6a5879943daa726fa
refs/heads/master
2021-01-24T11:28:02.251915
2016-10-07T09:50:48
2016-10-07T09:50:48
70,234,560
0
0
null
null
null
null
UTF-8
Java
false
false
5,992
java
package com.fenggong.view; import java.util.ArrayList; import com.fenggogn.car.R; import android.app.Activity; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import android.widget.PopupWindow; import android.widget.PopupWindow.OnDismissListener; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.ToggleButton; /** * 菜单控件头部,封装了下拉动画,动态生成头部按钮个数 * * @author yueyueniao */ public class ExpandTabView extends LinearLayout implements OnDismissListener { private ToggleButton selectedButton; private ArrayList<String> mTextArray = new ArrayList<String>(); private ArrayList<RelativeLayout> mViewArray = new ArrayList<RelativeLayout>(); private ArrayList<ToggleButton> mToggleButton = new ArrayList<ToggleButton>(); private Context mContext; private final int SMALL = 0; private int displayWidth; private int displayHeight; private PopupWindow popupWindow; private int selectPosition; public ExpandTabView(Context context) { super(context); init(context); } public ExpandTabView(Context context, AttributeSet attrs) { super(context, attrs); init(context); } /** * 根据选择的位置设置tabitem显示的值 */ public void setTitle(String valueText, int position) { if (position < mToggleButton.size()) { mToggleButton.get(position).setText(valueText); } } /** * 根据选择的位置获取tabitem显示的值 */ public String getTitle(int position) { if (position < mToggleButton.size() && mToggleButton.get(position).getText() != null) { return mToggleButton.get(position).getText().toString(); } return ""; } /** * 设置tabitem的个数和初始值 */ public void setValue(ArrayList<String> textArray, ArrayList<View> viewArray) { if (mContext == null) { return; } LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mTextArray = textArray; for (int i = 0; i < viewArray.size(); i++) { final RelativeLayout r = new RelativeLayout(mContext); int maxHeight = (int) (displayHeight * 0.7); RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, maxHeight); rl.leftMargin = 10; rl.rightMargin = 10; r.addView(viewArray.get(i), rl); mViewArray.add(r); r.setTag(SMALL); ToggleButton tButton = (ToggleButton) inflater.inflate(R.layout.toggle_button, this, false); addView(tButton); View line = new TextView(mContext); line.setBackgroundResource(R.drawable.choosebar_line); if (i < viewArray.size() - 1) { LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(2, LinearLayout.LayoutParams.FILL_PARENT); addView(line, lp); } mToggleButton.add(tButton); tButton.setTag(i); tButton.setText(mTextArray.get(i)); r.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { onPressBack(); } }); r.setBackgroundColor(mContext.getResources().getColor(R.color.popup_main_background)); tButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { // initPopupWindow(); ToggleButton tButton = (ToggleButton) view; if (selectedButton != null && selectedButton != tButton) { selectedButton.setChecked(false); } selectedButton = tButton; selectPosition = (Integer) selectedButton.getTag(); startAnimation(); if (mOnButtonClickListener != null && tButton.isChecked()) { mOnButtonClickListener.onClick(selectPosition); } } }); } } private void startAnimation() { if (popupWindow == null) { popupWindow = new PopupWindow(mViewArray.get(selectPosition), displayWidth, displayHeight); popupWindow.setAnimationStyle(R.style.PopupWindowAnimation); popupWindow.setFocusable(false); popupWindow.setOutsideTouchable(true); } if (selectedButton.isChecked()) { if (!popupWindow.isShowing()) { showPopup(selectPosition); } else { popupWindow.setOnDismissListener(this); popupWindow.dismiss(); hideView(); } } else { if (popupWindow.isShowing()) { popupWindow.dismiss(); hideView(); } } } private void showPopup(int position) { View tView = mViewArray.get(selectPosition).getChildAt(0); if (tView instanceof ViewBaseAction) { ViewBaseAction f = (ViewBaseAction) tView; f.show(); } if (popupWindow.getContentView() != mViewArray.get(position)) { popupWindow.setContentView(mViewArray.get(position)); } popupWindow.showAsDropDown(this, 0, 0); } /** * 如果菜单成展开状态,则让菜单收回去 */ public boolean onPressBack() { if (popupWindow != null && popupWindow.isShowing()) { popupWindow.dismiss(); hideView(); if (selectedButton != null) { selectedButton.setChecked(false); } return true; } else { return false; } } private void hideView() { View tView = mViewArray.get(selectPosition).getChildAt(0); if (tView instanceof ViewBaseAction) { ViewBaseAction f = (ViewBaseAction) tView; f.hide(); } } private void init(Context context) { mContext = context; displayWidth = ((Activity) mContext).getWindowManager().getDefaultDisplay().getWidth(); displayHeight = ((Activity) mContext).getWindowManager().getDefaultDisplay().getHeight(); setOrientation(LinearLayout.HORIZONTAL); } @Override public void onDismiss() { showPopup(selectPosition); popupWindow.setOnDismissListener(null); } private OnButtonClickListener mOnButtonClickListener; /** * 设置tabitem的点击监听事件 */ public void setOnButtonClickListener(OnButtonClickListener l) { mOnButtonClickListener = l; } /** * 自定义tabitem点击回调接口 */ public interface OnButtonClickListener { public void onClick(int selectPosition); } }
[ "1773208968@qq.com" ]
1773208968@qq.com
7df3f92cacba8eb3b415e3a1a71d07de23e27a3b
242e90dff02d8ae45a5cc11ad2b42b0fb097a4b7
/cdi/src/main/java/com/baeldung/cdi2observers/observers/ExampleEventObserver.java
b3522b2ad06d052f2a35552ea84957de1bd92f75
[ "MIT" ]
permissive
naXa777/tutorials
980e3ab816ad5698fdcf9c7e1b8bc6acf75c12a5
c575ba8d6fc32c6d523bd9d73170b90250756e22
refs/heads/master
2020-03-30T08:06:09.918501
2019-02-27T17:54:22
2019-02-27T17:54:22
150,989,509
2
1
MIT
2018-09-30T17:30:55
2018-09-30T17:30:54
null
UTF-8
Java
false
false
467
java
package com.baeldung.cdi.cdi2observers.observers; import com.baeldung.cdi.cdi2observers.events.ExampleEvent; import com.baeldung.cdi.cdi2observers.services.TextService; import javax.annotation.Priority; import javax.enterprise.event.Observes; public class ExampleEventObserver { public String onEvent(@Observes @Priority(1) ExampleEvent event, TextService textService) { return textService.parseText(event.getEventMessage()); } }
[ "kpg102@gmail.com" ]
kpg102@gmail.com
1e27526d891f261b32b6e4cbb890d2ff84277714
d90bb274b54a26dab4da84174e03b56726cae47d
/app/src/main/java/com/example/submission3/adapter/TVShowAdapter.java
4b340f5e5877b52f60b66e1ff2f8ad1aa1294ddf
[]
no_license
kuroiyuki48/Made---Submission3
ee61e1b497051e8085453db7cea5bbb5f8c6345f
9469d4e3613eac081f78c6c19d228bd799fad7ef
refs/heads/master
2020-08-02T10:10:04.230487
2019-09-29T01:29:22
2019-09-29T01:29:22
211,313,121
0
0
null
null
null
null
UTF-8
Java
false
false
1,901
java
package com.example.submission3.adapter; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import com.example.submission3.R; import com.example.submission3.model.TVShowData; import java.util.ArrayList; public class TVShowAdapter extends RecyclerView.Adapter<TVShowAdapter.CardViewViewHolder> { private final ArrayList<TVShowData> tvShowData = new ArrayList<>(); public void setTVShowData(ArrayList<TVShowData> itemData) { tvShowData.clear(); tvShowData.addAll(itemData); notifyDataSetChanged(); } @NonNull @Override public TVShowAdapter.CardViewViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_tv_show, viewGroup, false); return new CardViewViewHolder(view); } @Override public void onBindViewHolder(@NonNull TVShowAdapter.CardViewViewHolder cardViewViewHolder, int i) { cardViewViewHolder.bind(tvShowData.get(i)); } @Override public int getItemCount() { return tvShowData.size(); } class CardViewViewHolder extends RecyclerView.ViewHolder { final ImageView imageView; final TextView titleTv; CardViewViewHolder(@NonNull View itemView) { super(itemView); imageView = itemView.findViewById(R.id.img_tvairing); titleTv = itemView.findViewById(R.id.tv_item_tvair); } void bind(TVShowData tvShowData) { titleTv.setText(tvShowData.getName()); Glide.with(itemView).load(tvShowData.getBackdropPath()) .into(imageView); } } }
[ "nooralizahar@gmail.com" ]
nooralizahar@gmail.com
4df067924c3105de6d72ef60cd5bd2aa422049ae
f3f68eb185562580e22616850d14b88d7017da44
/app/src/main/java/com/memory_athlete/memoryassistant/main/PrivacyPolicy.java
04ca0c7a973c6e400ef19e164f4f3e26358a0c43
[ "MIT" ]
permissive
khyveasna/Memory-Assistant
3bf63a0beea246c21accb00d16ff4a709cddb8b5
b993091930e21fb80024eb008727ac0c160505a4
refs/heads/master
2020-09-11T23:11:03.239612
2019-11-14T10:12:16
2019-11-14T10:12:16
222,221,021
1
0
MIT
2019-11-17T08:52:24
2019-11-17T08:52:24
null
UTF-8
Java
false
false
1,615
java
package com.memory_athlete.memoryassistant.main; import android.content.res.Resources; import android.os.Bundle; import android.webkit.WebView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import com.google.firebase.analytics.FirebaseAnalytics; import com.memory_athlete.memoryassistant.R; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import timber.log.Timber; public class PrivacyPolicy extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { setContentView(R.layout.activity_privacy_policy); } catch (Resources.NotFoundException e){ Toast.makeText(this, R.string.wait, Toast.LENGTH_SHORT).show(); finish(); } ((WebView) findViewById(R.id.privacy_policy_view)).loadData(readTextFromResource(), "text/html", "utf-8"); setTitle(R.string.privacy_policy); FirebaseAnalytics.getInstance(this).logEvent("checked_privacy_policy", null); } private String readTextFromResource() { InputStream raw = getResources().openRawResource(R.raw.privacy_policy); ByteArrayOutputStream stream = new ByteArrayOutputStream(); int i; try { i = raw.read(); while (i != -1) { stream.write(i); i = raw.read(); } raw.close(); } catch (IOException e) { Timber.e(e); } return stream.toString(); } }
[ "maniksejwal@gmail.com" ]
maniksejwal@gmail.com
538b79da014e07be3c31ab78bf5533caa2aa5d0b
6a546ff046327063ced7161c1865d289f12ca55f
/src/test/testData/intention/intentionIsAvailableOnVariableRight.java
a1c55f8d38d184a154a536b7df3235897ba39954
[]
no_license
davidenkoim/ide-plugin
3c384cd60ff643679b36f69bd3452653da33d9da
e8ea72e0fbad9e6aced633d9122999ca41f1db6f
refs/heads/master
2023-06-17T17:53:59.198283
2021-07-07T16:44:01
2021-07-07T16:44:01
290,770,992
2
0
null
2021-05-17T07:03:06
2020-08-27T12:36:07
Java
UTF-8
Java
false
false
122
java
public class Main { public static void main(String[] args) { int i = 239; i = i<caret> + 239; } }
[ "igor.davidenko@jetbrains.com" ]
igor.davidenko@jetbrains.com
95e0a4d404c49b7e1b9f785d31d061ca36fe5dbb
228562fd9a8bfa4fe428895c92f14b1488a0eadf
/src/main/java/com/diffplug/gradle/pde/PdeAntBuildTask.java
6dec328415463feb2ca663bce5684683dd6eb462
[ "Apache-2.0" ]
permissive
diffplug/goomph
c66ed0e9fefae8e4f2596161c7adc17604f5dfe9
e4643aa88a6bff7fd463883abd76131c203f1611
refs/heads/main
2023-07-20T20:03:12.948823
2023-07-12T18:31:06
2023-07-12T18:31:06
43,491,998
126
41
Apache-2.0
2023-07-12T17:46:44
2015-10-01T11:07:05
Java
UTF-8
Java
false
false
2,398
java
/* * Copyright (C) 2016-2019 DiffPlug * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.diffplug.gradle.pde; import com.diffplug.common.base.Preconditions; import com.diffplug.gradle.FileMisc; import com.diffplug.gradle.eclipserunner.EclipseApp; import java.util.LinkedHashMap; import java.util.Map; import org.gradle.api.DefaultTask; import org.gradle.api.tasks.TaskAction; /** * Runs PDE build on an ant file. * * Your project must have defined `GOOMPH_PDE_VER`, see * {@link PdeInstallation#fromProject(org.gradle.api.Project)} * for details. * * ```groovy * task featureBuild(type: PdeAntBuildTask) { * antFile(FEATURE + '.xml') * define('featuredir', FEATURE) * inputs.dir(FEATURE) * defineToFile('repodir', buildDir) * outputs.dir(buildDir) * } * ``` */ public class PdeAntBuildTask extends DefaultTask { private Object antFile; /** The directory from which plugins will be pulled, besides the delta pack. */ public void antFile(Object antFile) { this.antFile = antFile; } private Map<String, String> buildProperties = new LinkedHashMap<>(); /** Adds a property to the build properties file. */ public void define(String key, String value) { buildProperties.put(key, value); } /** Adds a property to the build properties file. */ public void defineToFile(String key, Object value) { buildProperties.put(key, getProject().file(value).getAbsolutePath()); } @TaskAction public void build() throws Exception { Preconditions.checkNotNull(antFile, "antFile must not be null!"); EclipseApp antRunner = new EclipseApp(EclipseApp.AntRunner.ID); antRunner.addArg("buildfile", getProject().file(antFile).getAbsolutePath()); buildProperties.forEach((key, value) -> { antRunner.addArg("D" + key + "=" + FileMisc.quote(value)); }); antRunner.runUsing(PdeInstallation.fromProject(getProject())); } }
[ "ned.twigg@diffplug.com" ]
ned.twigg@diffplug.com