blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
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
689M
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
131 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
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
8f76e02188fd5dbdd78a68cc0941dca9d9624dda
6607be1e35db578e9d2b6fc02f325a83caa4bd56
/src/main/java/com/application/model/service/SearchBetterBusService.java
1b4909646bcefb4a15704ab36f9469213527fd9e
[]
no_license
MeepoNeGeroi/TestDualLab
d4dd88bdbdd32607c0c81c9dc906648be21c9dfc
2b8f3edde82deb52d46b7ff410c891b058a12942
refs/heads/master
2023-06-30T05:51:36.836880
2021-07-30T10:46:58
2021-07-30T10:46:58
391,029,470
0
0
null
null
null
null
UTF-8
Java
false
false
4,611
java
package com.application.model.service; import com.application.model.StaticFields; import com.application.model.entity.BusSchedule; import java.util.List; import java.util.Scanner; public enum SearchBetterBusService { INSTANCE; public String execute(Scanner sc){ fillSchedules(sc); findBetterBus(); StaticFields.poshes = checkArray(StaticFields.poshes); StaticFields.grottys = checkArray(StaticFields.grottys); return formAnswer(); } private List<BusSchedule> clearNull(List<BusSchedule> busSchedules){ while(busSchedules.contains(null)){ busSchedules.remove(busSchedules.indexOf(null)); } return busSchedules; } private List<BusSchedule> checkArray(List<BusSchedule> busSchedules){ int compareIndex; busSchedules = clearNull(busSchedules); for(int i = 0; i < busSchedules.size(); i++){ for(int j = i; j < busSchedules.size(); j++){ compareIndex = compare(busSchedules.get(i), busSchedules.get(j)); if(compareIndex == 1){ busSchedules.set(j, null); } if(compareIndex == 2){ busSchedules.set(i, null); } } } busSchedules = clearNull(busSchedules); return busSchedules; } private void fillSchedules(Scanner sc){ String[] line; while(sc.hasNext()){ line = sc.nextLine().split(" "); if(line[0].equals("Posh")){ StaticFields.poshes.add( new BusSchedule(line[1], line[2]) ); } else{ StaticFields.grottys.add( new BusSchedule(line[1], line[2]) ); } } } private void findBetterBus(){ // List<BusSchedule> mainBusSchedules; // List<BusSchedule> busSchedules; // // if(StaticFields.grottys.size() > StaticFields.poshes.size()){ // mainBusSchedules = StaticFields.grottys; // busSchedules = StaticFields.poshes; // } // else{ // mainBusSchedules = StaticFields.poshes; // busSchedules = StaticFields.grottys; // } for (int i = 0; i < StaticFields.poshes.size(); i++) { for (int j = 0; j < StaticFields.grottys.size(); j++) { compareBuses(i, j); } } } private void compareBuses(int i, int j){ int compareIndex = compare(StaticFields.poshes.get(i), StaticFields.grottys.get(j)); if(compareIndex == 0 || compareIndex == 1){ StaticFields.grottys.remove(j); } if(compareIndex == 2){ StaticFields.poshes.set(i, null); } } private int compare(BusSchedule firstBusSchedule, BusSchedule secondBusSchedule){ if(firstBusSchedule.equals(secondBusSchedule)){ return 0; } if(firstBusSchedule.getDepartureTime().equals(secondBusSchedule.getDepartureTime())){ if(firstBusSchedule.getArrivalTime().before(secondBusSchedule.getArrivalTime())){ return 1; } else{ return 2; } } if(firstBusSchedule.getArrivalTime().equals(secondBusSchedule.getArrivalTime())){ if(firstBusSchedule.getDepartureTime().before(secondBusSchedule.getDepartureTime())){ return 2; } else{ return 1; } } if(firstBusSchedule.getDepartureTime().after(secondBusSchedule.getDepartureTime()) && firstBusSchedule.getArrivalTime().before(secondBusSchedule.getArrivalTime())){ return 1; } if(secondBusSchedule.getDepartureTime().after(firstBusSchedule.getDepartureTime()) && secondBusSchedule.getArrivalTime().before(firstBusSchedule.getArrivalTime())){ return 1; } return -1; } private String formAnswer(){ String answer = ""; for (BusSchedule b: StaticFields.poshes) { if(b.getDepartureTime() != null) { answer += "Posh " + b + "\n"; } } answer += "\n"; for(int i = 0; i < StaticFields.grottys.size() - 1; i++){ answer += "Grotty " + StaticFields.grottys.get(i) + "\n"; } answer += "Grotty " + StaticFields.grottys.get(StaticFields.grottys.size() - 1); return answer; } }
f493cec43de6a79d6ac1da2430cf2e739a0a474e
7513707c2a1c14ef9f22a1ed317e3d448e7659d3
/src/main/java/com/manoelcampos/server/rest/UserResource.java
d6246fdd78b1e6d886ca62fdda6e27e775ea3158
[]
no_license
manoelcampos/quarkus-profiles-config
bc5a3e2b346e07a1f1838bd9fa5a789a44c9151b
3a7d2a5ea8eed11b1e66e1893d4942d2d4bd0d87
refs/heads/master
2020-06-12T13:12:40.186027
2019-06-30T14:10:59
2019-06-30T14:13:20
194,310,078
1
0
null
null
null
null
UTF-8
Java
false
false
481
java
package com.manoelcampos.server.rest; import com.manoelcampos.server.dao.DAO; import com.manoelcampos.server.model.User; import javax.inject.Inject; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; @Path("/user") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public class UserResource { @Inject DAO<User> dao; @GET @Path("{id}") public User findById(@PathParam("id") long id) { return dao.findById(id); } }
d4e8c3dc9e3a41d3ff251d70781b3f21446a88c7
0809f9319f6d4bcffb8953884185011d308184bc
/chorus/model-impl/src/main/java/com/infoclinika/mssharing/parser/ColumnType.java
0d279ba28ea4bf37cb9a791a547f6b63d83b75fe
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
InfoClinika/chorus-opensource
5bd624796fc6d99b4b5ff1335a56670808108977
d0da23026aeaf3ac5c513b514224d537db98d551
refs/heads/master
2021-06-23T18:50:02.947207
2019-05-08T17:10:17
2019-05-08T17:10:17
115,448,491
1
3
Apache-2.0
2019-05-08T17:10:18
2017-12-26T19:15:15
Java
UTF-8
Java
false
false
204
java
package com.infoclinika.mssharing.parser; /** * Created by Andrey on 7/18/16. */ public enum ColumnType { STRING, INT, FLOAT, DOUBLE, SHORT, BYTE, BOOLEAN, OBJECT; }
316e5f893af2e7b913801dcba3eb4bfa14f9ec3d
06418ffe256664e0633de3cb1088260b7db8a1b7
/source_BubbleShoot_noServer/BubbleShoot_BubbleMonster/src/com/lavagame/bubblemonster/actor/Actor.java
b61b73c7062e573cb1320b969dbcbf5dc18d16c6
[]
no_license
hoangwin/pi-cac-chu-old-version
7472b04cedbfad2465a969e5efa6ff2d4b26100a
0857a97225f99e5d62cda54f75b3dcf13ea1938c
refs/heads/master
2016-09-05T19:09:34.300481
2015-05-27T04:19:39
2015-05-27T04:19:39
33,906,095
0
0
null
null
null
null
UTF-8
Java
false
false
3,339
java
package com.lavagame.bubblemonster.actor; import java.util.Random; import com.lavagame.bubblemonster.GameLayer; import com.lavagame.bubblemonster.GameLib; import com.lavagame.bubblemonster.MainActivity; import com.lavagame.bubblemonster.Sprite; import android.graphics.Color; public class Actor { //type of Actor public static Random random = new Random(); public int m_x = 100; public int m_y = 100; public int m_Width = 12; public int m_Height = 12; public int m_Speed = 6; public static final int DIRECTION_UP = 0; public static final int DIRECTION_RIGHT = 1; public static final int DIRECTION_DOWN = 2; public static final int DIRECTION_LEFT = 3; // state public int mstate = 0; public int mdirection; public int m_Target_x = -1; public int m_Target_y = -1; public int m_Target_Pos_Rows = -1; public int m_Target_Pos_Cols = -1; public int m_pos_rows = -1; public int m_pos_cols = -1; public static Sprite sprite; // int currentFrame; // int currentAnimation; public int angleDegree = 0; public double angleRadian = 0; public int state = -1; public int _currentFrame = -1; public int _waitDelay = -1; public int _currentAnimation = -1; public int _xpos = -1; public int _ypos = -1; public boolean _canLoop = false; public boolean _ShowLastFrame = true; public Actor() { } public Actor(int x, int y, int w, int h, String Name, String Type) { // sprite = new Sprite(pathSprite, true); m_x = x; m_y = y; m_Width = w; m_Height = h; } public void setPostion(int x, int y) { m_x = x; m_y = y; } public void drawRect(int x, int y, int w, int h) { GameLib.mainPaint.setColor(Color.RED); GameLib.mainCanvas.drawRect(x, y, x + w, y + h, GameLib.mainPaint); } public void render() { GameLib.mainCanvas.drawRect((m_x + GameLayer.screenOffsetX), (m_y + GameLayer.screenOffsetY), (m_x + GameLayer.screenOffsetX) + m_Width, (m_y + GameLayer.screenOffsetY) + m_Height, GameLib.mainPaint); MainActivity.mainCanvas.drawText( "Object", (m_x + GameLayer.screenOffsetX), (m_y + GameLayer.screenOffsetY),MainActivity.android_FontSmall); //TapTapZooCrush.fontsmall_White.drawString(GameLib.mainCanvas, "Object", (m_x + GameLayer.screenOffsetX), (m_y + GameLayer.screenOffsetY), 0); //sprite.drawAnim(GameLib.mainCanvas, m_x, m_y); } //ACTOR TYPE public static final int ACTOR_TYPE_MAINMC = 0; public static final int ACTOR_TYPE_DOOR = 1; public static Actor createActor(int x, int y, int w, int h, String Name, String type) { int typeInt = getActorTypeFromString(type); switch (typeInt) { case ACTOR_TYPE_MAINMC: return null; //case ACTOR_TYPE_DOOR: // return new Door(x, y, w, h, Name, type); default: break; } return null; } public static int getActorTypeFromString(String type) { if (type.equals("mainmc")) { return ACTOR_TYPE_MAINMC; } else if (type.equals("door")) { return ACTOR_TYPE_DOOR; } return -1; } public static boolean checkCollision(Actor actor1, Actor actor2) { //true when it have collition return !(actor1.m_x > actor2.m_x + actor2.m_Width || actor1.m_x + actor1.m_Width < actor2.m_x || actor1.m_y > actor2.m_y + actor2.m_Height || actor1.m_y + actor1.m_Height < actor2.m_y); } public void update() { //it will overide in child class // TODO Auto-generated method stub } }
7655dea669869ffdcb6e5506eec7187dd5ed1498
797124ea56e5a143cbe97121ae4b82f15c19a24f
/main/src/java/de/hunsicker/jalopy/parser/Recognizer.java
2bf7249ec8370d2c36bf0c71b41c085f0c2a905e
[]
no_license
orb1t/jalopy-os
b6c3320e83b15daa1bffdbc0cd9ca2b40ebe5662
a0daa39f5e74f6506a8305ba1edf4d237b491db5
refs/heads/main
2020-03-18T13:47:02.329690
2002-09-15T20:42:03
2002-09-15T20:42:03
null
0
0
null
null
null
null
IBM855
Java
false
false
9,409
java
/* * Copyright (c) 2001-2002, Marco Hunsicker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. Neither the name of the Jalopy project nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $Id$ */ package de.hunsicker.jalopy.parser; import de.hunsicker.antlr.RecognitionException; import de.hunsicker.antlr.TokenBuffer; import de.hunsicker.antlr.TokenStreamException; import de.hunsicker.antlr.TokenStreamRecognitionException; import de.hunsicker.antlr.collections.AST; import de.hunsicker.io.FileFormat; import de.hunsicker.util.ChainingRuntimeException; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; /** * Recognizer acts as a helper class to bundle both an ANTLR parser and lexer * for the task of language recognition. * * @author <a href="http://jalopy.sf.net/contact.html">Marco Hunsicker</a> * @version $Revision$ */ public class Recognizer { //~ Static variables/initializers иииииииииииииииииииииииииииииииииииииииии /** Represents an unknown file. */ public static final String UNKNOWN_FILE = "<unknown>"; //~ Instance variables ииииииииииииииииииииииииииииииииииииииииииииииииииии /** The used lexer. */ protected Lexer lexer; /** The used parser. */ protected Parser parser; /** Indicates that formatting finished. */ boolean finished; /** Indicates that formatting currently takes place. */ boolean running; //~ Constructors ииииииииииииииииииииииииииииииииииииииииииииииииииииииииии /** * Creates a new Recognizer object. * * @param parser the parser to use. * @param lexer the lexer to use. */ public Recognizer(Parser parser, Lexer lexer) { this.parser = parser; this.lexer = lexer; } /** * Creates a new Recognizer object. */ protected Recognizer() { } //~ Methods иииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии /** * Returns the AST tree. * * @return resulting AST tree. */ public AST getAST() { return this.parser.getAST(); } /** * Sets the current column of the lexer. * * @param column current column information. */ public void setColumn(int column) { this.lexer.setColumn(column); } /** * Returns the current column of the lexer. * * @return current column offset. */ public int getColumn() { return this.lexer.getColumn(); } /** * Gets the file format of the parsed file as reported by the lexer * * @return The file format. * * @throws IllegalStateException if nothing has been parsed yet. */ public FileFormat getFileFormat() { if (!this.finished) { throw new IllegalStateException("nothing parsed yet"); } return this.lexer.getFileFormat(); } /** * Indicates whether the recognizer is currently running. * * @return <code>true</code> if the recognizer is currently running. */ public boolean isFinished() { return this.finished; } /** * Returns the used lexer. * * @return lexer. */ public Lexer getLexer() { return this.lexer; } /** * Sets the current line of the lexer. * * @param line current line information. */ public void setLine(int line) { this.lexer.setLine(line); } /** * Returns the current line of the lexer. * * @return current line number of the lexer */ public int getLine() { return this.lexer.getLine(); } /** * Returns the used parser. * * @return parser. */ public Parser getParser() { return this.parser; } /** * Indicates whether the recognizer is currently running. * * @return <code>true</code> if the recognizer is currently running. */ public boolean isRunning() { return this.running; } /** * Parses the given stream. * * @param in stream we read from. * @param filename name of the file we parse. * * @throws IllegalStateException if the parser is currently running. * @throws ParseException DOCUMENT ME! */ public void parse(Reader in, String filename) { if (this.running) { throw new IllegalStateException("parser already running"); } this.finished = false; this.running = true; this.lexer.setInputBuffer(in); this.lexer.setFilename(filename); this.parser.setTokenBuffer(new TokenBuffer(this.lexer)); this.parser.setFilename(filename); try { this.parser.parse(); } // the parser/lexer should never throw any checked exception as we // intercept them and print logging messages prior to attempt // further parsing; so simply wrap all checked exceptions for the // case one changes the error handling in the grammar... catch (RecognitionException ex) { throw new ParseException(ex); } catch (TokenStreamRecognitionException ex) { throw new ParseException(ex); } catch (TokenStreamException ex) { throw new ParseException(ex); } finally { this.finished = true; this.running = false; } } /** * Parses the given file. * * @param file file to parse. */ public void parse(File file) { if (file.exists() && file.isFile()) { BufferedReader in = null; try { in = new BufferedReader(new FileReader(file)); parse(in, file.getAbsolutePath()); } catch (FileNotFoundException neverOccurs) { ; } finally { if (in != null) { try { in.close(); } catch (IOException ignored) { ; } } } } } /** * Parses the given string. * * @param str to parse. * @param filename name of the file we parse. * * @throws IOException if an I/O error occured. */ public void parse(String str, String filename) throws IOException { BufferedReader in = new BufferedReader(new StringReader(str)); parse(in, filename); in.close(); } /** * Resets both the parser and lexer. * * @see Parser#reset * @see Lexer#reset */ public void reset() { this.running = false; this.finished = false; this.lexer.reset(); this.parser.reset(); } //~ Inner Classes иииииииииииииииииииииииииииииииииииииииииииииииииииииииии /** * Indicates an error during parsing of an input file or stream. */ public static class ParseException extends ChainingRuntimeException { /** * Creates a new ParseException. * * @param cause throwable which caused the error. */ public ParseException(Throwable cause) { super(cause); } } }
ef2798b5219d6654af85bc76ecf3f2f2251f2515
eef9539a84c5c6817cf11500d8ec63fe3620f8dd
/app/src/main/java/com/example/diceroller/DisplayMessageActivity.java
6586076e98ebf077feedc8db2cde127807dd2e31
[]
no_license
Remi329/GroupProjectFolder
6fa0ce9410f82de83ab8322b24a173121bddbf6d
2efc28341fefdac6462eb68d9ca3b07c9bfd30dd
refs/heads/master
2020-09-10T14:57:28.634425
2019-11-07T15:11:49
2019-11-07T15:11:49
221,729,383
0
1
null
null
null
null
UTF-8
Java
false
false
2,060
java
package com.example.diceroller; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class DisplayMessageActivity extends AppCompatActivity { Editable UserInput; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display_message); // Get the Intent that started this activity and extract the string Intent intent = getIntent(); String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); // Capture the layout's TextView and set the string as its text TextView textView = findViewById(R.id.textView); textView.setText(message); // textView.set } public void sendMessageSave(View view) { EditText NewIcebreakerInput = findViewById(R.id.UserInput); String s = NewIcebreakerInput.getText().toString(); MainActivity.stringArrayList.add(s); // Do something in response to button Intent intent = new Intent(this, MainActivity.class);//Intent takes 2 parameters Context and Class The DisplayMessage is the class that shows the new creen //Context is used because aActivity is a subclass of Context startActivity(intent);//opens the activity The startActivity() method starts an instance of the DisplayMessageActivity that's specified by the Intent } public void sendMessageCancel(View view){ // Do something in response to button Intent intent = new Intent(this, MainActivity.class);//Intent takes 2 parameters Context and Class The DisplayMessage is the class that shows the new creen //Context is used because aActivity is a subclass of Context startActivity(intent);//opens the activity The startActivity() method starts an instance of the DisplayMessageActivity that's specified by the Intent } }
d395f6de18df12626ce77af71983891d969f61ff
0faeff6eff1ab20d88745f795976db15c17e5903
/src/main/java/com/rail/service/graph/StationGraph.java
e659ed2c9a0649d8190e2758f0cd9abfffbcddc2
[]
no_license
sonam23/singapore-rail-system
8b629b9e4ba951d96c55e0ebb7cfabab1e25dd19
992d4a8c13f79ad5b8fad6bd940e17f95c8cc4f3
refs/heads/master
2020-05-23T18:44:01.186458
2019-05-19T18:51:45
2019-05-19T18:51:45
186,894,302
0
0
null
null
null
null
UTF-8
Java
false
false
5,791
java
package com.rail.service.graph; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.jgrapht.Graph; import org.jgrapht.GraphPath; import org.jgrapht.alg.shortestpath.DijkstraShortestPath; import org.jgrapht.graph.AsWeightedGraph; import org.jgrapht.graph.SimpleGraph; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.rail.entity.RouteRequest; import com.rail.entity.RouteResponse; import com.rail.entity.graph.Station; import com.rail.entity.graph.StationEdge; import com.rail.service.graph.util.DateTimeUtil; import com.rail.service.graph.util.GraphUtil; import com.rail.service.graph.util.TimeCategory; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; /** * Primary class for all the graph related operations. * Is responsible for the setup and construction of the graph based on the CSV file input. * Also, uses Shortest path algorithm to find the best route between stations. * @author sagarwal */ @Component public class StationGraph { @Autowired @Setter GraphUtil graphUtil; private StationGraph() { } public static StationGraph getInstance() { return StationGraphSingletonHolder.INSTANCE; } private static class StationGraphSingletonHolder { private static final StationGraph INSTANCE = new StationGraph(); } @AllArgsConstructor public class LineToStationEdge{ @Getter @Setter String line; @Getter @Setter StationEdge edge; } @Getter private HashMap<String, Station> stationHashMap; private ArrayList<String[]> stationList; @Getter private Graph<Station, StationEdge> graph; private ArrayList<LineToStationEdge> lineToStationEdgeList; public void init(HashMap<String, Station> stationHashMap, ArrayList<String[]> stationList) { this.stationHashMap = stationHashMap; this.stationList = stationList; graph = new SimpleGraph<>(StationEdge.class); } /** * Constructs the entire network of Singapore RailWay Line, based on the given input file provided. * Assumptions: * 1. The stations appear in the order provided in the input file * 2. The station lines are unique and when we encounter a different station line, it means that the current line has ended. */ public void constructGraph() { Station prevStation = null; String prevLine = ""; //This is used for graph construction lineToStationEdgeList = new ArrayList<StationGraph.LineToStationEdge>(); for(int i =0; i< stationList.size(); i++) { String[] stationArr = stationList.get(i); String code = stationArr[0]; String name = stationArr[1]; String currentLine = graphUtil.getCurrentLineFromCode(code); Station station = stationHashMap.get(name); //CurrentLine has changed, so this would be the first node of the new line if(!currentLine.equals(prevLine)) { System.out.println(currentLine); prevStation = null; } upsertStation(station, prevStation, currentLine); prevStation = station; prevLine = currentLine; } } /** * Adds a new Station in the graph, if station is not already present * Connects the stations, by adding an edge between them * Stores the edges for each line, this would be useful for assosiating weights as required * @param station * @param prevStation */ private void upsertStation(Station station, Station prevStation, String currentLine) { if(!graph.containsVertex(station)) { graph.addVertex(station); } if(prevStation != null) { StationEdge edge = graph.addEdge(prevStation, station); lineToStationEdgeList.add(new LineToStationEdge(currentLine, edge)); } } /** * Finds the shortest path based on DijkstraShortestPath algorithm * @param routeRequest */ public RouteResponse findShortestPath(RouteRequest routeRequest) { Station startVertex = stationHashMap.get(routeRequest.getSource()); Station endVertex = stationHashMap.get(routeRequest.getDestination()); GraphPath<Station, StationEdge> path = DijkstraShortestPath.findPathBetween(graph, startVertex, endVertex); if(path.getLength() == 0) { //This would imply that no route has been found return null; } RouteResponse response = graphUtil.constructResponse(path); return response; } /** * Finds the shortest path based on DijkstraShortestPath algorithm * This ensures that we have weighted graphs based on PEAK, NON_pEAK and NIGHT Hours * @param routeRequest */ public RouteResponse findShortestPathTime(RouteRequest routeRequest) { Station startVertex = stationHashMap.get(routeRequest.getSource()); Station endVertex = stationHashMap.get(routeRequest.getDestination()); Map<StationEdge, Double> hashMapWeights = null; TimeCategory timeCategory = DateTimeUtil.getTimeCategoryForTravel(routeRequest.getTime()); switch(timeCategory) { case PEAK_HOURS: hashMapWeights = graphUtil.getPeakHourTravelMap(lineToStationEdgeList); break; case NON_PEAK_HOURS: hashMapWeights = graphUtil.getNonPeakHourTravelMap(lineToStationEdgeList); break; case NIGHT_HOURS: hashMapWeights = graphUtil.getNightHourTravelMap(lineToStationEdgeList); } Graph<Station, StationEdge> weightedGraph = new AsWeightedGraph<Station, StationEdge>(graph, hashMapWeights); if(timeCategory.equals(TimeCategory.NIGHT_HOURS)) { weightedGraph = graphUtil.removeEdgesNotOperational(weightedGraph,lineToStationEdgeList); } GraphPath<Station, StationEdge> path = DijkstraShortestPath.findPathBetween(weightedGraph, startVertex, endVertex); Double time = path.getWeight(); if(path.getLength() == 0) { //This would imply that no route has been found return null; } RouteResponse response = graphUtil.constructResponse(path, time, timeCategory); return response; } }
d1216f3fb06492e9fd756668e9657696f28c23cb
56485e760f9f773ae1880e792c653a1d0538061d
/src/leetcode/mathANDnumbers/AddTwoNumbersWithoutusingAddOperator.java
1c625abe352e76aa6926284db1e897af5b3c941a
[]
no_license
salma-abd-elaziz/Leetcode
a8792e141a451d2c8cec196591a25feca70f2600
5151c12110e165848117e994a376e41452d78485
refs/heads/master
2018-12-19T21:42:47.362798
2018-09-16T18:55:58
2018-09-16T18:55:58
108,667,559
0
0
null
null
null
null
UTF-8
Java
false
false
491
java
package leetcode.mathANDnumbers; public class AddTwoNumbersWithoutusingAddOperator { /* * Calculate the sum of two integers a and b, but you are not allowed to use * the operator + and -. * using the XOR and AND operators, XOR is used for the summing * while AND is used to get the carry c << 1, to move the carry * bits to the next place. * * */ public int getSum(int a, int b) { while (b != 0) { int c = a & b; a ^= b; b = c << 1; } return a; } }
985b4c49de874c7b0246238023e8e5a8d179f1e2
fc90426f8c9a11081b6c0f92c9923178d02afb4c
/server/src/main/java/com/namee/api/service/SSOService.java
30e262a162247f29173e833409c82eddd2b1ae5a
[]
no_license
lovedise/Spring-React-token-based-security
4ca74d80d06d5f7d5dc633f0fe1e937307d6648a
c0b7bcd16cea6cce50e24bd46c55500d9ccd26a9
refs/heads/master
2021-04-09T10:18:43.855244
2016-06-27T02:56:30
2016-06-27T02:56:30
62,020,228
0
0
null
null
null
null
UTF-8
Java
false
false
364
java
package com.namee.api.service; import com.namee.api.model.SSO; import com.namee.api.support.exception.DuplicateCompanyCodeException; import java.util.List; /** * Created by namee on 2016. 6. 14.. */ public interface SSOService { SSO findOne(String companyCode); List<SSO> getAllSSO() throws DuplicateCompanyCodeException; SSO create(SSO sso); }
140f26d83bee33715c2ec339e1cad2264ef7888e
cec0d40b54ac403dc7d5905801f3b3db86986c58
/src/main/java/com/digitalcrud/saladereuniao/saladereuniao/SaladereuniaoApplication.java
0b7694b27a80b3e69567b09301965fc8f4f5c7b1
[]
no_license
MarioBezerro/Meeting-room
d35ffef0dbfde9d3188a519d585c0b9292f81aea
28dcd2a2ecb5c36275df9f4ddfade79d86f84c2d
refs/heads/master
2023-07-15T01:40:34.840739
2021-09-01T16:27:19
2021-09-01T16:27:19
402,108,543
0
0
null
null
null
null
UTF-8
Java
false
false
575
java
package com.digitalcrud.saladereuniao.saladereuniao; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @Configuration @EnableAutoConfiguration @ComponentScan public class SaladereuniaoApplication { public static void main(String[] args) { SpringApplication.run(SaladereuniaoApplication.class, args); } }
bfa709b46d2e509476fe5762e18165fa4601fcf0
c2721ac4bd58eb3aa369ddb9944a852691b0ea82
/src/main/java/com/jianyu/aop/advice/GreetingInterceptor.java
01e98354f7e17c6a0e5e9957b3d6e889b51ce0fc
[]
no_license
baijy/architect
51cb77ac55e2fc99eb7acb865a4a56c42cbfa70e
777a08e6e7be5786a06d0a5714482415b2ab20db
refs/heads/master
2021-03-24T11:59:10.371235
2018-03-11T06:26:44
2018-03-11T06:26:44
118,204,436
0
0
null
null
null
null
UTF-8
Java
false
false
710
java
package com.jianyu.aop.advice; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; /** * 环绕增强 * * @author BaiJianyu * */ public class GreetingInterceptor implements MethodInterceptor { // 对方法进行拦截 // 获得方法的参数和返回值 @Override public Object invoke(MethodInvocation invocation) throws Throwable { Object[] args = invocation.getArguments(); String clientName = (String) args[0]; System.out.println("----【环绕】面带笑容,满怀热忱地走向:" + clientName); Object obj = invocation.proceed(); System.out.println("----【环绕】祝您用餐愉快:" + clientName); return obj; } }
b517ad18e1761c39c4e47abb545cea769d696ef7
76509fcace4e241a662283dee0c807871da6c60c
/dsmviewer/src/test/java/mx/uam/dsmviewer/AppTest.java
0905d04efa1c92062eb4fd788cf58f2528c1f3ab
[ "MIT" ]
permissive
otrebmuh/dsmviewer
385a7bbad3f8e594d229d66e4853fb7f986c90c3
f01d6c7af4371f2d402b471f1bc7e9c7eab7de24
refs/heads/master
2022-06-23T18:46:09.253754
2020-08-04T23:33:12
2020-08-04T23:33:12
227,230,043
0
1
null
2022-05-20T21:18:40
2019-12-10T22:46:45
Java
UTF-8
Java
false
false
644
java
package mx.uam.dsmviewer; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
05cdbbb0352695229464c1d05ecc4ff4566fd3b9
b4154031c3d5ed80a25f8c10bd2436ce8958100e
/src/SumOfDigit.java
e53807de5c6e2bbd81fbe1db24d5e93cdc92ed8c
[]
no_license
SomuSinha-Java-Tutorials-ManoranjanaBor/Manoranjana-ICSE-Programs
1b922e27f07719e7361986c3147d9edf1e7a7609
2bbae1f2ab637d8e515b674a3bc6585c1d299c33
refs/heads/master
2021-01-11T19:20:54.461429
2017-04-06T14:14:10
2017-04-06T14:14:10
79,362,484
0
0
null
null
null
null
UTF-8
Java
false
false
462
java
import java.util.*; public class SumOfDigit { public static int sumDigit (int a) { int s=0,d; while(a>0) { d = a % 10 ; s=s+d; a=a/10; } return s; } public static void main(String args[]) { Scanner in = new Scanner(System.in); System.out.print("ENTER A NUMBER : "); int n = in.nextInt(); int sum = sumDigit(n); System.out.println("SUM OF DIGIT : "+sum); } }
cf3f00b396cbad3a04971b0f018165581ebd38f6
24c2d51cf74015bed8ed74918ac4fc58ec2d8567
/src/main/java/com/itsgoodtobebad/qrcode/utils/DateTimeUtils.java
83bafbc706fda4819d48e873e202d78bd70bd3b0
[]
no_license
itsgoodtobebad/qrcode-autotest
2a27702947a5d3770d35da23968bb182207667fa
361f8dfc7c834db434438a251f02cf82f3ed49b4
refs/heads/master
2021-01-24T20:47:47.541119
2018-03-08T09:20:46
2018-03-08T09:20:46
123,260,219
0
0
null
null
null
null
UTF-8
Java
false
false
1,512
java
package com.itsgoodtobebad.qrcode.utils; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; /** * Created by Liliangxi on 2017/6/9. */ public class DateTimeUtils { /** * 得到指定日期UTC时间, 格式为"yyyyMMdd.HHmmss" * @return * String UTCTimestamp */ public static String getUTCTimestamp(Date date, String formatterString) { DateFormat formatter = new SimpleDateFormat(formatterString); formatter.setTimeZone(TimeZone.getTimeZone("GMT-0")); return formatter.format(date); } /** * 得到当前UTC时间, 格式为"yyyyMMdd.HHmmss" * @return * String UTCTimestamp */ public static String getUTCTimestamp(String formatterString) { Calendar c = Calendar.getInstance(); Date d = c.getTime(); return getUTCTimestamp(d, formatterString); } public static String getTimestamp(Date date, String formatterString){ DateFormat formatter = new SimpleDateFormat(formatterString); return formatter.format(date); } public static String getTimestamp(String formatterString){ Calendar c = Calendar.getInstance(); Date d = c.getTime(); return getTimestamp(d, formatterString); } public static void main(String[] args) { System.out.println(getUTCTimestamp("yyyyMMdd.HHmmss")); System.out.println(getTimestamp("yyyyMMddHHmmss")); } }
07a1baa86856b4c7f1b8327e59c706e568c2b242
5dc6567f4f1f7a713a7a682230ea9cb55e8c8a3c
/src/main/java/com/codecool/comic_generator_service/controller/ComicGeneratorAPIController.java
d30861372431a4470b174d77d2b009a7c6e993cc
[]
no_license
makaimark/from-python-to-java-overcomplicated-tic-tac-toe-makaimark
2f2f1783371ebc8b28a8e3129db1f455c99c5b8a
a99462b52ffb1cea17bd19f98edff4e6231e60b8
refs/heads/master
2021-01-09T05:45:56.505480
2017-01-07T14:40:04
2017-01-07T14:40:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
947
java
package com.codecool.comic_generator_service.controller; import com.codecool.comic_generator_service.service.ComicGeneratorAPIService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import spark.Request; import spark.Response; import java.io.IOException; import java.net.URISyntaxException; /** * Created by makaimark on 2016.12.06.. */ public class ComicGeneratorAPIController { private static final Logger logger = LoggerFactory.getLogger(ComicGeneratorAPIController.class); private ComicGeneratorAPIService apiService; public ComicGeneratorAPIController(ComicGeneratorAPIService service) { this.apiService = service; } public String random(Request request, Response response) throws IOException, URISyntaxException { logger.info("generate the random number for the comic api"); int random = (int) (Math.random() * (1500 - 1)) + 1; return apiService.random(random); } }
58c3c52acd4f0e47802afb3a0c2ba5abcc5340ab
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
/Method_Scraping/xml_scraping/NicadOutputFile_t1_beam_new2/Nicad_t1_beam_new22083.java
fc74a5cb29e0841e0f7777b65341c115fd7c1b57
[]
no_license
ryosuke-ku/TestCodeSeacherPlus
cfd03a2858b67a05ecf17194213b7c02c5f2caff
d002a52251f5461598c7af73925b85a05cea85c6
refs/heads/master
2020-05-24T01:25:27.000821
2019-08-17T06:23:42
2019-08-17T06:23:42
187,005,399
0
0
null
null
null
null
UTF-8
Java
false
false
510
java
// clone pairs:10155:70% // 13625:beam/sdks/java/core/src/main/java/org/apache/beam/sdk/values/ValueWithRecordId.java public class Nicad_t1_beam_new22083 { public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof ValueWithRecordId)) { return false; } ValueWithRecordId<?> otherRecord = (ValueWithRecordId<?>) other; return Objects.deepEquals(id, otherRecord.id) && Objects.deepEquals(value, otherRecord.value); } }
f8caa2936f6d3a75e7455fc9eea9f5260129e405
fe8f82c5ee3e135b518abe1e2a021c5c03dafde2
/slofhrm/src/com/tic/hrm/HrRyAction.java
ac2cb39fba607f7dd03afec1273d5c653e493a52
[]
no_license
giftfuture/slof-hrm
27b779554aa48ccda52b82bcc2f5ff404017ec7a
efe67f3201f20dbcaa600e34cde2d7a8cd3475bd
refs/heads/master
2016-09-06T06:51:04.309884
2010-03-17T08:50:33
2010-03-17T08:50:33
34,429,142
0
0
null
null
null
null
UTF-8
Java
false
false
7,394
java
package com.tic.hrm; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import net.sf.json.JSONArray; import com.opensymphony.xwork2.ActionContext; public class HrRyAction { private IHrRyService hrryService; private HrRyjbxx hrryjbxx; private Integer ryid; private Page page; private boolean success; private String errorMsg; public String saveHysySbxx() { // 添加录入时间 hrryjbxx.setLrrq(new Date()); HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(HTTP_REQUEST); HttpSession httpSession = request.getSession(); String danwei_id =(String)httpSession.getAttribute("danweiid"); hrryjbxx.setLrdwId(Integer.parseInt(danwei_id)); if(hrryjbxx.getSbmc()!=null){ hrryjbxx.setSbid(hrryService.getSbid(hrryjbxx.getSbmc())); } if(hrryjbxx.getLbmc()!=null){ hrryjbxx.setLbid(hrryService.getLbid(hrryjbxx.getLbmc())); } hrryjbxx.setSbflag("未完成"); if (hrryService.saveHysySbxx(hrryjbxx)) { this.success = true; } else { this.success = false; this.errorMsg = "保存失败!"; } return SUCCESS; } public String deleteHysySbxx() { String strAryHysySbxxId = getRequest().getParameter("p_id"); JSONArray jsonArray = JSONArray.fromObject(strAryHysySbxxId); List ary_str = (List) JSONArray.toCollection(jsonArray); if (hrryService.deleteHysySbxx(ary_str)) { this.success = true; } else { this.success = false; this.errorMsg = "删除失败!"; } return SUCCESS; } public String getHysySbxxById() { Integer int_id = Integer.parseInt(getRequest().getParameter("id")); HysySbxx hysySbxx = hrryService.getHysySbxxById(int_id); if (hysySbxx != null) { //JsonConfig jsonconf = new JsonConfig(); //String[] excludes = { "HysySbxx", "class" }; //jsonconf.setExcludes(excludes); //JSONArray jsonArray = JSONArray.fromObject(hysySbxx, jsonconf); //String json_sbxx=JsonUtil.getJSONString(hysySbxx, jsonconf); //Integer json_flid= hrryService.getFlidBylbId(hysySbxx.getLbid()); //String json_flmc= hrryService.getFlmcById(json_flid); String json_jyqk= hysySbxx.getJyqk(); //this.jsonString = "{success:true, flid:"+json_flid+", flmc:'"+json_flmc+"', jyqk:"+json_jyqk+"}"; this.jsonString = "{success:true, jyqk:"+json_jyqk+"}"; return SUCCESS; } else { return "ActionError"; } } public String findAdminHysySbxx() { HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(HTTP_REQUEST); HttpSession httpSession = request.getSession(); String danwei_id =(String)httpSession.getAttribute("danweiid"); String cx=getRequest().getParameter("cx"); getCommonPage(); List<String> listflag = new ArrayList<String>(); if (getRequest().getParameter("queryflag") != null && !getRequest().getParameter("queryflag").equals("0")) { listflag.add(getRequest().getParameter("queryflag")); } else { listflag.add("未完成"); listflag.add("等待审核"); listflag.add("审核不通过"); listflag.add("已完成"); } page.setListflag(listflag); page = hrryService.findHysySbxxByPage(page,danwei_id,cx); return SUCCESS; } private void getCommonPage() { page = new Page(); int start = 0; int limit = 20; String queryfields = "", queryvalue = "", querymonth = "0", queryyear = "0", querysbfl="0", querysblb="0", queryyxzt="0", queryflag="0",querylrdwid="0"; if (getRequest().getParameter("start") != null && !getRequest().getParameter("start").equals("")) { start = Integer.valueOf(getRequest().getParameter("start")); } if (getRequest().getParameter("limit") != null && !getRequest().getParameter("limit").equals("")) { limit = Integer.valueOf(getRequest().getParameter("limit")); } if (getRequest().getParameter("fields") != null && !getRequest().getParameter("fields").equals("")) { queryfields = getRequest().getParameter("fields"); } else { queryfields = "[]"; } if (getRequest().getParameter("query") != null && !getRequest().getParameter("query").equals("")) { queryvalue = getRequest().getParameter("query").trim(); } if (getRequest().getParameter("queryyear") != null && !getRequest().getParameter("queryyear").equals("")) { queryyear = getRequest().getParameter("queryyear"); } if (getRequest().getParameter("querymonth") != null && !getRequest().getParameter("querymonth").equals("")) { querymonth = getRequest().getParameter("querymonth"); } if (getRequest().getParameter("querysbfl") != null && !getRequest().getParameter("querysbfl").equals("")) { querysbfl = getRequest().getParameter("querysbfl"); } if (getRequest().getParameter("querysblb") != null && !getRequest().getParameter("querysblb").equals("")) { querysblb = getRequest().getParameter("querysblb"); } if (getRequest().getParameter("queryyxzt") != null && !getRequest().getParameter("queryyxzt").equals("")) { queryyxzt = getRequest().getParameter("queryyxzt"); } if (getRequest().getParameter("queryflag") != null && !getRequest().getParameter("queryflag").equals("")) { queryflag = getRequest().getParameter("queryflag"); } if (getRequest().getParameter("querydw") != null && !getRequest().getParameter("querydw").equals("")) { querylrdwid = getRequest().getParameter("querydw"); } HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(HTTP_REQUEST); HttpSession httpSession = request.getSession(); String danwei_id =(String)httpSession.getAttribute("danweiid"); JSONArray jsonArray = JSONArray.fromObject(queryfields); ArrayList<String> ary_query_fields = (ArrayList<String>) JSONArray.toCollection(jsonArray); String str_sortfield = getRequest().getParameter("sort"); String str_sortdir = getRequest().getParameter("dir"); page.setStart(start); // page.setLimit(limit = limit == 0 ? 20 : limit); page.setLimit(limit); page.setSortfiled(str_sortfield); page.setSortdirection(str_sortdir); page.setQueryfields(ary_query_fields); page.setQueryvalue(queryvalue); page.setQueryyear(queryyear); page.setQuerymonth(querymonth); page.setQuerysbfl(querysbfl); page.setQuerysblb(querysblb); page.setQueryyxzt(queryyxzt); page.setQueryflag(queryflag); page.setQuerylrdwid(new Integer(querylrdwid)); page.setQuerydwid(new Integer(danwei_id)); } public IHrRyService getHrryService() { return hrryService; } public void setHrryService(IHrRyService hrryService) { this.hrryService = hrryService; } public HrRyjbxx getHrryjbxx() { return hrryjbxx; } public void setHrryjbxx(HrRyjbxx hrryjbxx) { this.hrryjbxx = hrryjbxx; } public Integer getRyid() { return ryid; } public void setRyid(Integer ryid) { this.ryid = ryid; } public Page getPage() { return page; } public void setPage(Page page) { this.page = page; } public boolean isSuccess() { return success; } public void setSuccess(boolean success) { this.success = success; } public String getErrorMsg() { return errorMsg; } public void setErrorMsg(String errorMsg) { this.errorMsg = errorMsg; } }
[ "cyberdolphincn@7c6aa918-0828-11df-b3eb-39986f41eb1c" ]
cyberdolphincn@7c6aa918-0828-11df-b3eb-39986f41eb1c
517a619087fcad7b1388c1f2eb83aaea2a410dda
9be8b87053725c342fe876bc0dc86c29503b355d
/app/src/test/java/com/manguitostudios/primeblend/ExampleUnitTest.java
ce8275d4db1978e0b1f24bdd73ca319d56fcf502
[]
no_license
Rafabox001/PrimeBlend
dbc05a9c71c884bee0001c7b5fff149f6f02a66a
0728696cc5e441a33595bf4f8cc9ed0888f6d4d3
refs/heads/master
2021-01-10T16:12:56.168675
2015-10-29T22:04:01
2015-10-29T22:04:01
43,575,115
0
0
null
null
null
null
UTF-8
Java
false
false
323
java
package com.manguitostudios.primeblend; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
f29bafc4318ec99ac6948d3990b5fe4e6d077757
28dff536ddbb2492edbf52da7bfb8604b7d399ed
/src/main/java/io/dimasan/jdk/concurrency/deadlock/SimplestDeadlock.java
f20f9bb260a9c89a460e2c32742a4ac48d059126
[]
no_license
DimaSanKiev/Snippets
88e8552bc23865d488a17b7b8447d0974034db45
f41f373d30c4ddd651097705ee2a18abd0275438
refs/heads/master
2021-01-11T22:20:04.131044
2017-01-17T19:31:29
2017-01-17T19:31:29
78,896,679
0
0
null
null
null
null
UTF-8
Java
false
false
373
java
package io.dimasan.jdk.concurrency.deadlock; public class SimplestDeadlock { /* Thread.currentThread() returns a reference on the current thread (on main thread). And we join() it, but it cannot die because it waits for its death. Deadlock. */ public static void main(String[] args) throws InterruptedException { Thread.currentThread().join(); } }
56d0f73dec570188684efcb185c1e1840d8ecdcf
fc6c869ee0228497e41bf357e2803713cdaed63e
/weixin6519android1140/src/sourcecode/com/tencent/mm/plugin/ipcall/a/d/m.java
244de7564a05ebd8fb29a51bf921bb08cbe306e4
[]
no_license
hyb1234hi/reverse-wechat
cbd26658a667b0c498d2a26a403f93dbeb270b72
75d3fd35a2c8a0469dbb057cd16bca3b26c7e736
refs/heads/master
2020-09-26T10:12:47.484174
2017-11-16T06:54:20
2017-11-16T06:54:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,561
java
package com.tencent.mm.plugin.ipcall.a.d; import com.tencent.gmtrace.GMTrace; import com.tencent.mm.ad.b; import com.tencent.mm.ad.b.a; import com.tencent.mm.ad.b.b; import com.tencent.mm.ad.b.c; import com.tencent.mm.network.q; import com.tencent.mm.protocal.c.bcd; import com.tencent.mm.protocal.c.bce; import com.tencent.mm.protocal.c.bqg; import com.tencent.mm.sdk.platformtools.w; import java.util.LinkedList; public final class m extends com.tencent.mm.ad.k implements com.tencent.mm.network.k { private b fUa; private com.tencent.mm.ad.e fUd; private bcd mlV; public bce mlW; public m(int paramInt1, int paramInt2, LinkedList<bqg> paramLinkedList) { GMTrace.i(11580842442752L, 86284); this.fUa = null; this.mlV = null; this.mlW = null; b.a locala = new b.a(); locala.gtF = new bcd(); locala.gtG = new bce(); locala.gtE = 871; locala.uri = "/cgi-bin/micromsg-bin/sendwcofeedback"; locala.gtH = 0; locala.gtI = 0; this.fUa = locala.DA(); this.mlV = ((bcd)this.fUa.gtC.gtK); this.mlV.uEq = paramInt2; this.mlV.uOU = paramLinkedList; this.mlV.uOT = paramLinkedList.size(); this.mlV.uOV = paramInt1; w.i("MicroMsg.NetSceneIPCallSendFeedback", "NetSceneIPCallSendFeedback roomid=%d, level=%d, feedbackCount=%d", new Object[] { Integer.valueOf(paramInt1), Integer.valueOf(paramInt2), Integer.valueOf(paramLinkedList.size()) }); GMTrace.o(11580842442752L, 86284); } public final int a(com.tencent.mm.network.e parame, com.tencent.mm.ad.e parame1) { GMTrace.i(11581110878208L, 86286); this.fUd = parame1; int i = a(parame, this.fUa, this); GMTrace.o(11581110878208L, 86286); return i; } public final void a(int paramInt1, int paramInt2, int paramInt3, String paramString, q paramq, byte[] paramArrayOfByte) { GMTrace.i(11581245095936L, 86287); w.i("MicroMsg.NetSceneIPCallSendFeedback", "onGYNetEnd, errType: %d, errCode: %d", new Object[] { Integer.valueOf(paramInt2), Integer.valueOf(paramInt3) }); this.mlW = ((bce)((b)paramq).gtD.gtK); if (this.fUd != null) { this.fUd.a(paramInt2, paramInt3, paramString, this); } GMTrace.o(11581245095936L, 86287); } public final int getType() { GMTrace.i(11580976660480L, 86285); GMTrace.o(11580976660480L, 86285); return 871; } } /* Location: D:\tools\apktool\weixin6519android1140\jar\classes3-dex2jar.jar!\com\tencent\mm\plugin\ipcall\a\d\m.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
ce6bf3d5a95a631c3cca5b0be84c5880de57e4fa
55ca79e9f378e7924b9e2dcfdae9b6a738fdf2a4
/source/clientapi/src/main/java/org/devilry/clientapi/AbstractPeriod.java
31f98280e1e912ec4cf934e7d3bc33416cb0abf3
[]
permissive
devilry/devilry-prototype1
d44dc79f6a37bd7a9211b3a26254a74872643bed
8b4889d51fa753e57394449f22e8ee3487329aad
refs/heads/master
2021-07-25T05:48:20.986418
2010-06-02T11:01:59
2010-06-02T11:01:59
220,485
0
0
BSD-3-Clause
2021-06-07T18:07:39
2009-06-06T21:26:27
Java
UTF-8
Java
false
false
2,614
java
package org.devilry.clientapi; import java.util.Date; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import javax.naming.NamingException; import org.devilry.core.InvalidNameException; import org.devilry.core.NoSuchObjectException; import org.devilry.core.NodePath; import org.devilry.core.UnauthorizedException; import org.devilry.core.daointerfaces.PeriodNodeCommon; public abstract class AbstractPeriod<E extends AbstractAssignment<?>> { DevilryConnection connection; PeriodNodeCommon periodNode; long periodId; AbstractPeriod(long periodId, DevilryConnection connection) { this.connection = connection; this.periodId = periodId; } protected PeriodNodeCommon getPeriodBean() throws NamingException { return periodNode == null ? periodNode = connection.getPeriodNode() : periodNode; } abstract class AssignmentIterator implements Iterable<E>, Iterator<E> { Iterator<Long> assignmentIterator; AssignmentIterator(List<Long> ids) { assignmentIterator = ids.iterator(); } public Iterator<E> iterator() { return this; } public boolean hasNext() { return assignmentIterator.hasNext(); } abstract public E next(); /*public StudentAssignment next() { return new StudentAssignment(assignmentIterator.next(), connection); }*/ public void remove() { throw new UnsupportedOperationException(); } } public abstract Iterator<E> assignments() throws NoSuchObjectException, UnauthorizedException, NamingException; public List<E> getAssignments() throws NamingException, NoSuchObjectException, UnauthorizedException { LinkedList<E> assignmentList = new LinkedList<E>(); Iterator<E> iter = assignments(); while (iter.hasNext()) { assignmentList.add(iter.next()); } return assignmentList; } public NodePath getPath() throws NamingException, NoSuchObjectException, InvalidNameException, UnauthorizedException { return getPeriodBean().getPath(periodId); } public String getName() throws NoSuchObjectException, NamingException, UnauthorizedException { return getPeriodBean().getName(periodId); } public String getDisplayName() throws NoSuchObjectException, NamingException, UnauthorizedException { return getPeriodBean().getDisplayName(periodId); } public Date getPeriodStartDate() throws UnauthorizedException, NoSuchObjectException, NamingException { return getPeriodBean().getStartDate(periodId); } public Date getPeriodEndDate() throws UnauthorizedException, NoSuchObjectException, NamingException { return getPeriodBean().getEndDate(periodId); } }
[ "bro@bro-laptop.(none)" ]
bro@bro-laptop.(none)
dcd3c6d1fdd2a9239527921f2ac78724cf8bb957
83dccbb7823583ecfd7943f50fc6dd317c87521a
/src/main/java/org/jenkinsci/plugins/googleplayandroidpublisher/FindFilesTask.java
f39bad07cbf864ef5f40b9bb24ef463112f12965
[]
no_license
bluesliverx/google-play-android-publisher-plugin
5f4f5e5084a7fb3d225824359537fb490d94f1fb
7cce4374fc96f933de218bda7eb03685a3aac851
refs/heads/master
2021-01-20T16:28:51.415801
2016-08-27T17:03:25
2016-09-03T14:00:16
66,722,140
0
0
null
2016-08-27T15:46:27
2016-08-27T15:46:26
null
UTF-8
Java
false
false
822
java
package org.jenkinsci.plugins.googleplayandroidpublisher; import hudson.FilePath; import hudson.remoting.VirtualChannel; import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.List; /** Task which searches for files using an Ant Fileset pattern. */ public class FindFilesTask implements FilePath.FileCallable<List<String>> { private final String includes; FindFilesTask(String includes) { this.includes = includes; } @Override public List<String> invoke(File baseDir, VirtualChannel channel) throws IOException, InterruptedException { String[] files = hudson.Util.createFileSet(baseDir, includes).getDirectoryScanner().getIncludedFiles(); return Collections.unmodifiableList(Arrays.asList(files)); } }
54d99224ef72040f540d0439df22ef9ffebc71c0
9fa91c252471ba37e235407605a963c8c745266f
/rxnetty-http/src/test/java/io/reactivex/netty/client/SslClientTest.java
f402e6a098ad0d48fe4dc772369366c81d69c3db
[ "Apache-2.0" ]
permissive
edwinchoi/RxNetty
56f9b579d2f2519378230585e5c5945306f8e70e
f5388f1b1661cd49cef059c18e579c5bb44d86b8
refs/heads/0.5.x
2021-01-20T17:33:28.723693
2015-12-01T21:54:52
2015-12-01T21:54:52
47,478,146
0
0
null
2015-12-06T00:31:45
2015-12-06T00:31:44
null
UTF-8
Java
false
false
3,803
java
/* * Copyright 2015 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package io.reactivex.netty.client; import io.netty.buffer.ByteBuf; import io.reactivex.netty.client.pool.PoolConfig; import io.reactivex.netty.client.pool.PooledConnectionProvider; import io.reactivex.netty.protocol.http.client.HttpClient; import io.reactivex.netty.protocol.http.client.HttpClientResponse; import io.reactivex.netty.protocol.http.server.HttpServer; import io.reactivex.netty.protocol.http.server.HttpServerRequest; import io.reactivex.netty.protocol.http.server.HttpServerResponse; import io.reactivex.netty.protocol.http.server.RequestHandler; import io.reactivex.netty.test.util.MockPoolLimitDeterminationStrategy; import org.junit.Assert; import org.junit.Test; import rx.Observable; import rx.functions.Func1; import rx.observers.TestSubscriber; import javax.net.ssl.SSLException; import java.net.InetSocketAddress; import java.net.SocketAddress; import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.Matchers.*; public class SslClientTest { @Test(timeout = 60000) public void testReleaseOnSslFailure() throws Exception { HttpServer<ByteBuf, ByteBuf> server = HttpServer.newServer() .start(new RequestHandler<ByteBuf, ByteBuf>() { @Override public Observable<Void> handle(HttpServerRequest<ByteBuf> request, HttpServerResponse<ByteBuf> response) { return Observable.empty(); } }); final SocketAddress serverAddress = new InetSocketAddress("127.0.0.1", server.getServerPort()); MockPoolLimitDeterminationStrategy strategy = new MockPoolLimitDeterminationStrategy(1); // The connect fails because the server does not support SSL. TestSubscriber<ByteBuf> subscriber = new TestSubscriber<>(); final PoolConfig<ByteBuf, ByteBuf> config = new PoolConfig<>(); config.limitDeterminationStrategy(strategy); ConnectionProvider<ByteBuf, ByteBuf> connectionProvider = PooledConnectionProvider.create(config, serverAddress); HttpClient.newClient(connectionProvider) .unsafeSecure() .createGet("/") .flatMap(new Func1<HttpClientResponse<ByteBuf>, Observable<ByteBuf>>() { @Override public Observable<ByteBuf> call(HttpClientResponse<ByteBuf> response) { return response.getContent(); } }) .subscribe(subscriber); subscriber.awaitTerminalEvent(); assertThat("Unexpected error notifications.", subscriber.getOnErrorEvents(), hasSize(1)); assertThat("Unexpected error.", subscriber.getOnErrorEvents().get(0), is(instanceOf(SSLException.class))); Assert.assertEquals("Unexpected acquire counts.", 1, strategy.getAcquireCount()); Assert.assertEquals("Unexpected release counts.", 1, strategy.getReleaseCount()); Assert.assertEquals("Unexpected available permits.", 1, strategy.getAvailablePermits()); } }
a4b0697008746112351dd92603f4e299efd20e2f
c38301f9cb3a6690630d1e1f4dc8e622b6fc3720
/java/com/kaneri/admin/mywhatsapp/chat/ChatRoom.java
a6b34c7422ffd65abfa1a8aaa0d84f579c8790f3
[]
no_license
karanfc/TestChat
54f7a393f3f9934d1b75524c0d8e6bb569c65c69
0019e7fd5013f62a31e211695122b0435d73be50
refs/heads/master
2021-01-22T18:37:37.222821
2017-06-08T03:38:10
2017-06-08T03:38:10
85,095,883
0
0
null
null
null
null
UTF-8
Java
false
false
5,067
java
package com.kaneri.admin.mywhatsapp.chat; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v4.app.NotificationCompat; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.TextView; import com.firebase.client.Firebase; import com.firebase.client.FirebaseError; import com.google.firebase.database.FirebaseDatabase; import com.kaneri.admin.mywhatsapp.R; import com.kaneri.admin.mywhatsapp.finalchatapp.MainActivity; import java.util.HashMap; import java.util.Map; public class ChatRoom extends AppCompatActivity { LinearLayout layout; ImageView sendButton; EditText messageArea; ScrollView scrollView; Firebase reference1, reference2; String test; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_chat_room); String s = getIntent().getStringExtra("CURRENT_CHAT"); setTitle(s); layout = (LinearLayout)findViewById(R.id.layout1); sendButton = (ImageView)findViewById(R.id.sendButton); messageArea = (EditText)findViewById(R.id.messageArea); scrollView = (ScrollView)findViewById(R.id.scrollView); scrollView.postDelayed(new Runnable() { @Override public void run() { scrollView.fullScroll(ScrollView.FOCUS_DOWN); } },1); // FirebaseDatabase.getInstance().setPersistenceEnabled(true); Firebase.setAndroidContext(this); reference1 = new Firebase("https://my-whatsapp-678e8.firebaseio.com/messages/" + UserDetails.name + "/" + UserDetails.name + "_" + UserDetails.chatWith); reference2 = new Firebase("https://my-whatsapp-678e8.firebaseio.com/messages/" + UserDetails.chatWith + "/" + UserDetails.chatWith + "_" + UserDetails.name); sendButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String messageText = messageArea.getText().toString(); if(!messageText.equals("")){ Map<String, String> map = new HashMap<String, String>(); map.put("message", messageText); map.put("user", UserDetails.name); reference1.push().setValue(map); reference2.push().setValue(map); messageArea.setText(""); } } }); reference1.addChildEventListener(new com.firebase.client.ChildEventListener() { @Override public void onChildAdded(com.firebase.client.DataSnapshot dataSnapshot, String s) { Map map = dataSnapshot.getValue(Map.class); String message = map.get("message").toString(); String userName = map.get("user").toString(); if(userName.equals(UserDetails.name)){ addMessageBox("You\n" + message, 1); } else{ addMessageBox(UserDetails.chatWith + "\n" + message, 2); } } @Override public void onChildChanged(com.firebase.client.DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(com.firebase.client.DataSnapshot dataSnapshot) { } @Override public void onChildMoved(com.firebase.client.DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(FirebaseError firebaseError) { } } ); } public void addMessageBox(String message, int type){ LinearLayout layout2 = new LinearLayout(ChatRoom.this); layout2.setOrientation(LinearLayout.HORIZONTAL); TextView textView = new TextView(ChatRoom.this); textView.setText(message); LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT,1.0f); lp.setMargins(0, 0, 0, 10); textView.setLayoutParams(lp); View v = new View(ChatRoom.this); // LinearLayout.LayoutParams Params1 = new LinearLayout.LayoutParams(0,0,1f); v.setLayoutParams(new LinearLayout.LayoutParams(0,0,10)); if(type == 1) { textView.setBackgroundResource(R.drawable.bubble2); layout2.addView(v); layout2.addView(textView); layout.addView(layout2); } else{ textView.setBackgroundResource(R.drawable.bubble1); layout2.addView(textView); layout2.addView(v); layout.addView(layout2); } } }
45599c2b322459940189edbb67378129375fe52a
5830cf6551964924c502982f056376a1aaabfde3
/genericCheckpointing/src/genericCheckpointing/server/SerStrategy.java
538b2d64f0c03c339b0682af689012feba81e5f1
[]
no_license
Codejoy92/Proxy-Prototype-Strategy-Design-Pattern
48bebfa6a1613d4855eafec1668436dab14847f7
5c0f0b43050fb1d697e184c9f64122382e673b1c
refs/heads/master
2020-03-31T01:51:30.000772
2018-05-07T01:18:32
2018-05-07T01:18:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
211
java
package genericCheckpointing.server; import genericCheckpointing.util.SerializableObject; public interface SerStrategy { void processInput(SerializableObject obj); SerializableObject processInputDeser(); }
ceb2e6bbe441723c80daddb6d32914a52bc58670
89966648f99f2959af4933529d15b44a5bfb20a3
/src/com/oj/jxc/controller/.svn/text-base/SProdPropController.java.svn-base
8b9ff00b5346c20661212dca767d4a10a174a406
[]
no_license
carrot1991/oj
256e231847e9dd3869c42235fa213f7968f86c0b
ee0273b4d7fbcb0ecaf5aa9da6a9cac9db3c2781
refs/heads/master
2016-09-16T04:22:11.069318
2014-04-01T07:54:06
2014-04-01T07:54:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,204
/** * */ package com.oj.jxc.controller; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.oj.jxc.commons.dto.Pager; import com.oj.jxc.entity.SProdPropDO; import com.oj.jxc.service.SProdPropService; /**商品属性 * @author zxd * */ @RequestMapping("/prodprop") @Controller public class SProdPropController extends BaseController { /** * */ @Resource private SProdPropService prodPropService; /** * * 查询所有 * @param pager * @return */ @RequestMapping(value = "/findPager", method = RequestMethod.GET) @ResponseBody public Pager findByType(Pager pager) { return this.prodPropService.findPager(pager); } /** * * 保存或者修改 * @param pager * @return */ @RequestMapping(value = "/saveOrUpdate", method = RequestMethod.GET) @ResponseBody public Map<String, String> saveOrUpdate(SProdPropDO prodProp) { this.prodPropService.saveOrUpdate(prodProp); return this.returnSuccess(); } }
774fa0d9f4abfb59916637cd576d21d8df437dcc
e99e4da9ecee673d5b8a245fffcaf582915017ce
/src/main/java/com/payline/payment/bizum/utils/i18n/I18nService.java
29a0997ca21b00d2c3721f83835de01dfb3ba3d3
[]
no_license
thales-apm-team/payment-method-bizum
b1a2925470dceab9c5c0479596c90c529e005c35
80dc977063cf217b4dbd14ffe2284534b491b0d5
refs/heads/master
2020-12-07T18:27:09.788640
2020-01-14T14:01:54
2020-01-14T14:11:33
232,771,523
0
0
null
2020-01-09T09:27:25
2020-01-09T09:27:24
null
UTF-8
Java
false
false
1,789
java
package com.payline.payment.bizum.utils.i18n; import com.payline.payment.bizum.utils.properties.ConfigProperties; import com.payline.pmapi.logger.LogManager; import org.apache.logging.log4j.Logger; import java.util.Locale; import java.util.MissingResourceException; import java.util.ResourceBundle; /** * I18n (for Internationalization) service that provides messages following a given locale. */ public class I18nService { private static final Logger LOGGER = LogManager.getLogger(I18nService.class); private static final String DEFAULT_LOCALE = "en"; private I18nService() { ConfigProperties configProperties = ConfigProperties.getInstance(); String defaultLocale = configProperties.get("i18n.defaultLocale"); Locale.setDefault( new Locale(defaultLocale != null ? defaultLocale : DEFAULT_LOCALE) ); } private static class SingletonHolder { private static final I18nService instance = new I18nService(); } public static I18nService getInstance() { return SingletonHolder.instance; } /** * Retrieve the message identified by the given key in the language of the given locale. * * @param key The identifying key of the message * @param locale The locale * @return The message in the right language */ public String getMessage(final String key, final Locale locale) { ResourceBundle messages = ResourceBundle.getBundle("messages", locale); try { return messages.getString(key); } catch (MissingResourceException e) { LOGGER.error("Trying to get a message with a key that does not exist: " + key + " (language: " + locale.getLanguage() + ")"); return "???" + locale + "." + key + "???"; } } }
278e4deadeb62ddafd95f76d1df9e0e8ca0d9d8f
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/19/19_11ed5659e8057a5df79499a758b376aa213bcdf2/XmlHandler/19_11ed5659e8057a5df79499a758b376aa213bcdf2_XmlHandler_s.java
4ca2b9e7e1362ac3554a40820a904e0d27587060
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
16,711
java
/* * $Id: XmlHandler.java,v 1.24 2005/06/10 20:47:03 andrew_avis Exp $ * Created on Oct 14, 2004 * * This class is the "content handler" for xml input. * Each start and end of an element, document, content, etc. is * captured by the event handlers, and we use them to "build" a * recipe. */ package strangebrew; import org.xml.sax.Attributes; import org.xml.sax.Locator; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import org.xml.sax.helpers.DefaultHandler; import java.text.*; import java.util.*; /** * @author aavis * * This class handles XML import. * Currently it handles StrangeBrew 1.8 and QBrew formats. * TODO: handle misc ingredients * TODO: handle mash info */ public class XmlHandler extends DefaultHandler{ private Recipe r = null; private Fermentable m = null; private Hop h = null; private Misc misc = null; private Note note = new Note(); private Attributes currentAttributes = null; private String currentList = null; //current List name private String currentElement = null; // current element name private String importType = null; // the type of recipe we're importing private String descrBuf = ""; // buffer to hold long descriptions private String buffer = ""; // buffer // mash step stuff: private String type; private String method = "infusion"; private double startTemp; private double endTemp; private int minutes; private int rampMin; public Recipe getRecipe() {return r;} //=========================================================== // SAX DocumentHandler methods //=========================================================== public void setDocumentLocator(Locator l) { // Save this to resolve relative URIs or to give diagnostics. System.out.print("LOCATOR"); System.out.print("\n SYS ID: " + l.getSystemId()); System.out.flush(); } // we don't do anything with the start of a document public void startDocument() throws SAXException { } // this is debug stuff, delete later public void endDocument() throws SAXException { // emit(r.toXML()); // r.testRecipe(); nl(); System.out.flush(); } /** * This method is called every time we encounter a new element * To handle other xml import types, we check for * a "signpost" element that indicates the file type, then * call out to the appropriate element handler for that file type. * */ public void startElement(String namespaceURI, String lName, // local unit String qName, // qualified unit Attributes attrs) throws SAXException { String eName = lName; // element unit if ("".equals(eName)) eName = qName; // namespaceAware = false currentElement = eName; currentAttributes = attrs; if (eName.equalsIgnoreCase("STRANGEBREWRECIPE")) { importType = "STRANGEBREW"; r = new Recipe(); emit("StrangeBrew recipe detected."); } else if (eName.equalsIgnoreCase("RECIPE")) { if (attrs != null) { for (int i = 0; i < attrs.getLength(); i++) { String s = attrs.getLocalName(i); // Attr name if ("".equalsIgnoreCase(s)) s = attrs.getQName(i); if (s.equalsIgnoreCase("generator")&& "qbrew".equalsIgnoreCase(attrs.getValue(i))){ importType = "QBREW"; r = new Recipe(); emit("QBrew recipe detected."); } } } } else if (importType == "STRANGEBREW") { // call SB start element sbStartElement(eName); } else if (importType == "QBREW") { // call SB start element qbStartElement(eName); } } void qbStartElement(String eName){ if (eName.equalsIgnoreCase("HOPS")) { currentList = "HOPS"; } else if (eName.equalsIgnoreCase("GRAINS")) { currentList = "GRAINS"; } else if (eName.equalsIgnoreCase("HOP")) { // new hop h = new Hop(); for (int i = 0; i < currentAttributes.getLength(); i++) { String str = currentAttributes.getLocalName(i); // Attr name if ("".equalsIgnoreCase(str)) str = currentAttributes.getQName(i); if (str.equalsIgnoreCase("quantity")) h.setAmountAndUnits(currentAttributes.getValue(i)); else if (str.equalsIgnoreCase("time")) h.setMinutes(Integer.parseInt(currentAttributes.getValue(i))); else if (str.equalsIgnoreCase("alpha")) h.setAlpha(Double.parseDouble(currentAttributes.getValue(i))); } } else if (eName.equalsIgnoreCase("GRAIN")) { // new malt m = new Fermentable(); for (int i = 0; i < currentAttributes.getLength(); i++) { String str = currentAttributes.getLocalName(i); // Attr name if ("".equalsIgnoreCase(str)) str = currentAttributes.getQName(i); if (str.equalsIgnoreCase("quantity")) m.setAmountAndUnits(currentAttributes.getValue(i)); else if (str.equalsIgnoreCase("color")) m.setLov(Double.parseDouble(currentAttributes.getValue(i))); else if (str.equalsIgnoreCase("extract")) m.setPppg(Double.parseDouble(currentAttributes.getValue(i))); } } // we have to do this here, because <batch> is an empty element else if (eName.equalsIgnoreCase("batch")){ for (int i = 0; i < currentAttributes.getLength(); i++) { String str = currentAttributes.getLocalName(i); // Attr name if ("".equalsIgnoreCase(str)) str = currentAttributes.getQName(i); if (str.equalsIgnoreCase("quantity")) r.setAmountAndUnits(currentAttributes.getValue(i)); } } // TODO: handle new misc ingredient } /** * Start of an element handler when we know this is a StrangeBrew recipe * * @param eName */ void sbStartElement(String eName) { if (eName.equalsIgnoreCase("DETAILS")) { currentList = "DETAILS"; } else if (eName.equalsIgnoreCase("FERMENTABLES")) { currentList = "FERMENTABLES"; } else if (eName.equalsIgnoreCase("HOPS")) { currentList = "HOPS"; } else if (eName.equalsIgnoreCase("MASH") && currentList.equals("")) { currentList = "MASH"; } else if (eName.equalsIgnoreCase("MISC")) { currentList = "MISC"; } else if (eName.equalsIgnoreCase("NOTES")) { currentList = "NOTES"; } else if (eName.equalsIgnoreCase("ITEM")) { // this is an item in a // list if (currentList.equals("FERMENTABLES")) { m = new Fermentable(); } else if (currentList.equals("HOPS")) { h = new Hop(); } else if (currentList.equals("MISC")) { misc = new Misc(); } else if (currentList.equals("NOTES")) { note = new Note(); } } } /** * At the end of each element, we should check if we're looking at a list. * If we are, set the list to null. This way, we can tell if we're looking * at an element that has (stupidly) the same unit as a list... eg <MASH>is * in the recipe (indicating whether it's mashed or not), and the unit of * the mash list! */ public void endElement(String namespaceURI, String sName, // simple name String qName // qualified name ) throws SAXException { if (importType == "STRANGEBREW") { if (qName.equalsIgnoreCase("ITEM") && currentList.equalsIgnoreCase("FERMENTABLES")) { r.addMalt(m); m = null; } else if (qName.equalsIgnoreCase("ITEM") && currentList.equalsIgnoreCase("HOPS")) { h.setDescription(descrBuf); descrBuf = ""; r.addHop(h); h = null; } else if (qName.equalsIgnoreCase("ITEM") && currentList.equalsIgnoreCase("MISC")) { misc.setDescription(descrBuf); descrBuf = ""; r.addMisc(misc); misc = null; } else if (qName.equalsIgnoreCase("ITEM") && currentList.equalsIgnoreCase("NOTES")) { r.addNote(note); note = null; } else if (qName.equalsIgnoreCase("ITEM") && currentList.equalsIgnoreCase("MASH")) { r.mash.addStep(type, startTemp, endTemp, "F", method, minutes, rampMin); } else if (qName.equalsIgnoreCase("FERMENTABLS") || qName.equalsIgnoreCase("HOPS") || qName.equalsIgnoreCase("DETAILS") || qName.equalsIgnoreCase("MISC") || qName.equalsIgnoreCase("NOTES")) { currentList = ""; } } else if (importType == "QBREW"){ if (qName.equalsIgnoreCase("GRAIN")){ r.addMalt(m); m = null; } else if (qName.equalsIgnoreCase("HOP")){ r.addHop(h); h = null; } else if (qName.equalsIgnoreCase("title")){ r.setName(buffer); buffer = ""; } } } /** * This is the "meat" of the handler. We figure out where in the * document we are, based on the current list, and then start puting * the data into the recipe fields. */ public void characters(char buf[], int offset, int len) throws SAXException { String s = new String(buf, offset, len); if (!s.trim().equals("") && importType == "STRANGEBREW") { sbCharacters(s.trim()); } else if (!s.trim().equals("") && importType == "QBREW") { qbCharacters(s.trim()); } } void qbCharacters(String s){ if (currentElement.equalsIgnoreCase("GRAIN")){ m.setName(s); } else if (currentElement.equalsIgnoreCase("HOP")){ h.setName(s); } else if (currentElement.equalsIgnoreCase("miscingredient")){ r.setYeastName(s); // TODO: there is more data in the yeast record, and there may be other misc ingredients // figure out how to get the yeast, and parse the other data. } else if (currentElement.equalsIgnoreCase("title")){ buffer = buffer + s; // r.setName(s); } else if (currentElement.equalsIgnoreCase("brewer")){ r.setBrewer(s); } else if (currentElement.equalsIgnoreCase("style")){ r.setStyle(s); } } void sbCharacters(String s){ if (currentList.equals("FERMENTABLES")) { if (currentElement.equalsIgnoreCase("MALT")) { m.setName(s); } else if (currentElement.equalsIgnoreCase("AMOUNT")) { m.setAmount(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("POINTS")) { m.setPppg(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("COSTLB")) { m.setCost( s ); } else if (currentElement.equalsIgnoreCase("UNITS")) { m.setUnits(s); } else if (currentElement.equalsIgnoreCase("LOV")) { m.setLov(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("DescrLookup")) { m.setDescription(s); } } else if (currentList.equalsIgnoreCase("HOPS")) { if (currentElement.equalsIgnoreCase("HOP")) { h.setName(s); } else if (currentElement.equalsIgnoreCase("AMOUNT")) { h.setAmount(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("ALPHA")) { h.setAlpha(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("UNITS")) { h.setUnits(s); } else if (currentElement.equalsIgnoreCase("FORM")) { h.setType(s); } else if (currentElement.equalsIgnoreCase("COSTOZ")) { h.setCost( s ); } else if (currentElement.equalsIgnoreCase("ADD")) { h.setAdd(s); } else if (currentElement.equalsIgnoreCase("DescrLookup")) { descrBuf = descrBuf + s; } else if (currentElement.equalsIgnoreCase("TIME")) { h.setMinutes(Integer.parseInt(s)); } } else if (currentList.equalsIgnoreCase("MISC")) { if (currentElement.equalsIgnoreCase("NAME")) { misc.setName(s); } else if (currentElement.equalsIgnoreCase("AMOUNT")) { misc.setAmount(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("UNITS")) { misc.setUnits(s); } else if (currentElement.equalsIgnoreCase("COMMENTS")) { misc.setComments(s); } else if (currentElement.equalsIgnoreCase("COST_PER_U")) { // misc.setCost( Double.parseDouble(s) ); } else if (currentElement.equalsIgnoreCase("ADD")) { h.setAdd(s); } else if (currentElement.equalsIgnoreCase("DescrLookup")) { descrBuf = descrBuf + s; } else if (currentElement.equalsIgnoreCase("TIME")) { misc.setTime(Integer.parseInt(s)); } else if (currentElement.equalsIgnoreCase("STAGE")) { misc.setStage(s); } } else if (currentList.equalsIgnoreCase("NOTES")) { if (currentElement.equalsIgnoreCase("DATE")) { DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); try { Date d = df.parse(s); note.setDate(d); } catch(ParseException e) { System.out.println("Unable to parse " + s); } } else if (currentElement.equalsIgnoreCase("TYPE")) { note.setType(s); } else if (currentElement.equalsIgnoreCase("NOTE")) { note.setNote(s); } } else if (currentList.equalsIgnoreCase("MASH")) { if (currentElement.equalsIgnoreCase("TYPE")) { type = s; } else if (currentElement.equalsIgnoreCase("TEMP")) { startTemp = Double.parseDouble(s); } else if (currentElement.equalsIgnoreCase("METHOD")) { method = s; } else if (currentElement.equalsIgnoreCase("MIN")) { minutes = Integer.parseInt(s); } else if (currentElement.equalsIgnoreCase("END_TEMP")) { endTemp = Double.parseDouble(s); } else if (currentElement.equalsIgnoreCase("RAMP_MIN")) { rampMin = Integer.parseInt(s); } } else if (currentList.equalsIgnoreCase("DETAILS")) { if (currentElement.equalsIgnoreCase("NAME")) { r.setName(s); } else if (currentElement.equalsIgnoreCase("EFFICIENCY")) { r.setEfficiency(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("ATTENUATION")) { r.setAttenuation(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("PRESIZE")) { r.setPreBoil(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("SIZE")) { r.setPostBoil(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("SIZE_UNITS")) { r.setPreBoilVolUnits(s); r.setPostBoilVolUnits(s); } else if (currentElement.equalsIgnoreCase("STYLE")) { r.setStyle(s); } else if (currentElement.equalsIgnoreCase("BOIL_TIME")) { r.setBoilMinutes(Integer.parseInt(s)); } else if (currentElement.equalsIgnoreCase("HOPS_UNITS")) { r.setHopsUnits(s); } else if (currentElement.equalsIgnoreCase("MALT_UNITS")) { r.setMaltUnits(s); } else if (currentElement.equalsIgnoreCase("MASH_RATIO")) { r.setMashRatio(Double.parseDouble(s)); } else if (currentElement.equalsIgnoreCase("MASH_RATIO_U")) { r.setMashRatioU(s); } else if (currentElement.equalsIgnoreCase("BREWER")) { r.setBrewer(s); } else if (currentElement.equalsIgnoreCase("MASH")) { r.setMashed(Boolean.valueOf(s).booleanValue()); } else if (currentElement.equalsIgnoreCase("YEAST")) { r.setYeastName(s); } else if (currentElement.equalsIgnoreCase("RECIPE_DATE")) { DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); try { Date d = df.parse(s); r.setCreated(d); } catch(ParseException e) { System.out.println("Unable to parse " + s); } } } else s = ""; } public void ignorableWhitespace(char buf[], int offset, int len) throws SAXException { nl(); emit("IGNORABLE"); } public void processingInstruction(String target, String data) throws SAXException { nl(); emit("PROCESS: "); emit("<?" + target + " " + data + "?>"); } //=========================================================== // SAX ErrorHandler methods //=========================================================== // treat validation errors as fatal public void error(SAXParseException e) throws SAXParseException { throw e; } // dump warnings too public void warning(SAXParseException err) throws SAXParseException { System.out.println("** Warning" + ", line " + err.getLineNumber() + ", uri " + err.getSystemId()); System.out.println(" " + err.getMessage()); } //=========================================================== // Utility Methods ... //=========================================================== // Wrap I/O exceptions in SAX exceptions, to // suit handler signature requirements private void emit(String s) throws SAXException { System.out.print(s); System.out.flush(); } // Start a new line // and indent the next line appropriately private void nl() throws SAXException { String indentString = " "; // Amount to indent int indentLevel = 0; String lineEnd = System.getProperty("line.separator"); System.out.print(lineEnd); for (int i = 0; i < indentLevel; i++) System.out.print(indentString); } }
63deb7cdbe419ebb890343131c242ddf4d7cc05f
1798d2643623cf14142eab6d139ab3d743a60c8b
/data/src/main/java/com/baimahu/DataApplication.java
fc3e509a6a46527150bc3c58e2d29c1b93f1bc85
[]
no_license
Horatio123/SpringbootTest
aa0ebdeb2344b41120d884d85ed0524ce82cfb09
402f2e916b344edc08c8824aff7327df57f805f0
refs/heads/master
2022-11-03T01:22:52.487477
2020-06-14T13:01:02
2020-06-14T13:01:02
258,777,257
0
0
null
null
null
null
UTF-8
Java
false
false
343
java
package com.baimahu; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * Hello world! * */ @SpringBootApplication public class DataApplication { public static void main( String[] args ) { SpringApplication.run(DataApplication.class, args); } }
9f08a2e173c7a15e92f25105cc8f76e02390c2d5
e44771ff55ee454047cec315a4fb7704ad1dd16b
/autocomplete/src/androidTest/java/com/otaliastudios/autocomplete/ExampleInstrumentedTest.java
a791be578bebce189ec0923a42fe306a86c7f657
[ "Apache-2.0" ]
permissive
IRMobydick/Autocomplete
4ec399332318d26899aa9cc99eedf49e57db0a2f
1f9bafb5953ca20cc7d5b07af1f6ead2ae3c0d58
refs/heads/master
2021-01-19T19:25:42.840499
2017-08-08T15:18:41
2017-08-08T15:18:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
769
java
package com.otaliastudios.autocomplete; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.otaliastudios.autocomplete.test", appContext.getPackageName()); } }
b8f970f3f09aef73485669c096a9ae400a9b945b
ea0bdb5141bac03b44568fdb1437e65075a99ce4
/src/com/secondTarget/AdressDemo5_1.java
fe45a869258a20e096dbae430f5e22d66a54fb8d
[]
no_license
Liplhello/project_68
ca1bff90d7f277a34316896ca0aba32597b2f841
514875158db023ea6ed87e9c33a7c67997d7cddc
refs/heads/master
2020-03-24T13:10:56.348297
2018-07-29T07:50:52
2018-07-29T07:50:52
142,737,443
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
package com.secondTarget; import com.firstKind.Address5_1; /** * Created by lpl on 2018/6/21. */ public class AdressDemo5_1 { public static void main(String[] args) { Address5_1 add = new Address5_1("中国","山西省","太原市","晋阳街道","098039488"); add.print(); } }
d9c2f1d4848d40ead3b961a3d6b3dfe872224237
bf5f32ccb990b4a6a78f6c128319690600110bcf
/01-java-fundamentals/08-lists-of-exceptions/Exceptions/src/test/java/com/may/exceptions/ExceptionsApplicationTests.java
6acafd732516c06ec0c0fab7220dcbe54e7d66e2
[]
no_license
Java-July-2020/MayH-Assignments
85adf701c6e35e3ea03c705f217a7a9381ce056c
2467b79b9f019be97e9e54675ee2704801c590dd
refs/heads/master
2022-12-12T08:12:40.065688
2020-08-30T18:11:20
2020-08-30T18:11:20
277,949,565
0
0
null
null
null
null
UTF-8
Java
false
false
214
java
package com.may.exceptions; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ExceptionsApplicationTests { @Test void contextLoads() { } }
ff0dde176cbb5fc7db20c5b297c907ab33fd2ae4
8c772248f67a9f6a519edc0daa9debe96e240997
/src/queue/link/testLinkQueue.java
d0e69b7a1ed76a4b241b55118834213e09be2c8e
[]
no_license
fqliao/data_structure1
8d7c149c923d8fc5f04dc33400e8fb62fa6fcfc9
f8696942ede66b0204cb5e24054bad9ef9b0d493
refs/heads/master
2021-01-12T18:19:21.774739
2016-11-06T08:24:13
2016-11-06T08:24:13
69,413,434
0
0
null
null
null
null
UTF-8
Java
false
false
1,419
java
package queue.link; import queue.Queue; import stack.Stack; import stack.link.LinkStack; public class testLinkQueue { //回文算法的实现 利用队列和栈的数据结构 public static boolean isHuiWen(String str) throws Exception{ //创建队列和栈 Queue<String> queue = new LinkQueue<String>(); Stack stack = new LinkStack(); //将字符串按单个字符分别进入队列和栈 for (int i = 0; i < str.length(); i++) { queue.append(str.substring(i,i+1)); stack.push(str.substring(i,i+1)); } //出队列和出栈比较 用while循环比较好,若用for循环,则还是按次数,没有有while判断更方便 安全 while (!queue.isEmpty() && !stack.isEmpty()) { if(!queue.delete().equals(stack.pop())) { return false; } } return true; } public static void main(String[] args) throws Exception { Queue<String> queue = new LinkQueue<String>(); queue.append("A"); queue.append("B"); queue.append("C"); queue.append("D"); queue.delete(); queue.delete(); queue.delete(); queue.append("E"); queue.append("F"); queue.append("G"); queue.append("H"); queue.append("I"); queue.delete(); queue.delete(); while(!queue.isEmpty()) { System.out.print(queue.delete()+" "); } // String str1 = "7ABCDCBA7"; // String str2 = "ABCDBA"; // System.out.println(isHuiWen(str1)); // System.out.println(isHuiWen(str2)); } }
5207b75ca89d35bb25ae7d6988435a24cb3cd333
1b96e0764761bf0abbdafc51d98e2a06914a40fa
/M3ClassRosterV4SpringFWXML/src/main/java/com/sg/classroster/dao/ClassRosterPersistenceException.java
91e40b3614f79e301eac3109fa428f3e1847e8e6
[]
no_license
NarishSingh/SG4-Spring
2210b27d6a0d2924deda06fa5f0b70796b561814
95bb4c1b270cc5a930321051f91c782d7227426a
refs/heads/master
2022-12-01T21:05:35.555479
2020-07-31T03:52:15
2020-07-31T03:52:15
272,453,527
0
0
null
null
null
null
UTF-8
Java
false
false
382
java
/* This is the error class for our application. It extends Exception. */ package com.sg.classroster.dao; public class ClassRosterPersistenceException extends Exception { public ClassRosterPersistenceException(String message) { super(message); } public ClassRosterPersistenceException(String message, Throwable cause) { super(message, cause); } }
235b9037a9fecacdc05765605884dea18c26de9e
7c1430c53b4d66ad0e96dd9fc7465a5826fdfb77
/grape-system-1.0.1s/src/org/mariadb/jdbc/internal/com/read/ErrorPacket.java
0bd3f12175119c12ee82e6112155eabe05c5846c
[]
no_license
wang3624270/online-learning-server
ef97fb676485f2bfdd4b479235b05a95ad62f841
2d81920fef594a2d0ac482efd76669c8d95561f1
refs/heads/master
2020-03-20T04:33:38.305236
2019-05-22T06:31:05
2019-05-22T06:31:05
137,187,026
1
0
null
null
null
null
UTF-8
Java
false
false
3,680
java
/* MariaDB Client for Java Copyright (c) 2012-2014 Monty Program Ab. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to Monty Program Ab [email protected]. This particular MariaDB Client for Java file is work derived from a Drizzle-JDBC. Drizzle-JDBC file which is covered by subject to the following copyright and notice provisions: Copyright (c) 2009-2011, Marcus Eriksson Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the driver nor the names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.mariadb.jdbc.internal.com.read; import java.nio.charset.StandardCharsets; public class ErrorPacket { private final short errorNumber; private final byte sqlStateMarker; private final byte[] sqlState; private final String message; /** * Reading error stream. * * @param buffer current stream rawBytes */ public ErrorPacket(Buffer buffer) { buffer.skipByte(); this.errorNumber = buffer.readShort(); this.sqlStateMarker = buffer.readByte(); if (sqlStateMarker == '#') { this.sqlState = buffer.readRawBytes(5); this.message = buffer.readStringNullEnd(StandardCharsets.UTF_8); } else { // Pre-4.1 message, still can be output in newer versions (e.g with 'Too many connections') buffer.position -= 1; this.message = new String(buffer.buf, buffer.position, buffer.limit - buffer.position, StandardCharsets.UTF_8); this.sqlState = "HY000".getBytes(); } } public String getMessage() { return message; } public short getErrorNumber() { return errorNumber; } public String getSqlState() { return new String(sqlState); } public byte getSqlStateMarker() { return sqlStateMarker; } }
dd91df786fb2bff3dbb57db79dbdf5cb493d52f0
8f6532dfa9c8635613166050392e66e45fa33e9f
/src/App.java
587a92768cdeea49a1c6bfbefe4232347bf53e5a
[]
no_license
Dybton/rejsekort
2f693751b48977d95129cfb94143a9576e71ab55
d3a493abdc6855f8c9dbd5892ce29e918cb08e4b
refs/heads/main
2023-09-02T09:09:39.243885
2021-11-17T15:37:19
2021-11-17T15:37:19
429,102,221
0
0
null
null
null
null
UTF-8
Java
false
false
212
java
public class App { public static void main(String[] args) throws Exception { RejseKort rejseKort = new RejseKort(); rejseKort.checkIn(3, 9, 20); rejseKort.checkIn(6, 12, 600); } }
4362f255032faf63ddc8260304382941d4a284cb
865b796c1130320337769a4d1fd51e7c0bf3417e
/app/src/main/java/com/rokomari/noteme/room/TaskDatabase.java
b663a777bc511aa70756d8ffb0b684aec14f1f8b
[]
no_license
tanvirhd/NoteMe
cd53e6eb6503b1fa09e6e67fc79c0b9d7739006f
f6e07e7c8a26af21dc87625c061ff18cbc765dfa
refs/heads/master
2023-08-30T07:02:00.826788
2021-11-08T11:41:35
2021-11-08T11:41:35
424,642,744
0
0
null
null
null
null
UTF-8
Java
false
false
1,000
java
package com.rokomari.noteme.room; import android.content.Context; import androidx.room.Database; import androidx.room.Room; import androidx.room.RoomDatabase; import com.rokomari.noteme.model.ModelTask; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @Database(entities = {ModelTask.class} , version = 1) public abstract class TaskDatabase extends RoomDatabase { public abstract TaskDao getTaskDao(); public static TaskDatabase dbInstance; private static final int NUMBER_OF_THREADS = 4; public static final ExecutorService databaseWriteExecutor = Executors.newFixedThreadPool(NUMBER_OF_THREADS); public static synchronized TaskDatabase getDb(Context context){ if(dbInstance==null){ dbInstance= Room.databaseBuilder(context.getApplicationContext(),TaskDatabase.class,"note_database") .fallbackToDestructiveMigration() .build(); } return dbInstance; } }
4fc194c9c0727dce28771bb67c46e18a306ea847
b3d0d08f7987926af472cfa23fa61834771e9bf4
/java/github/FinalProject/alphanotes/fragment/MainFragment.java
0571f67f8fe967627e20e77a4631f1bcecff319f
[]
no_license
eragavi/AlphaNotes
c8ffc3775b288f91a82da8880a9d9ea6311bf993
52bf587cb6bb6e18033360d42026b3f90a6d7042
refs/heads/master
2020-03-21T14:24:38.828029
2018-06-26T03:56:50
2018-06-26T03:56:50
138,655,811
1
0
null
null
null
null
UTF-8
Java
false
false
14,113
java
package github.FinalProject.alphanotes.fragment; import android.content.Intent; import android.support.annotation.NonNull; import android.support.annotation.StringRes; import android.support.v4.content.ContextCompat; import android.text.TextUtils; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.afollestad.materialdialogs.DialogAction; import com.afollestad.materialdialogs.MaterialDialog; import github.FinalProject.alphanotes.App; import github.FinalProject.alphanotes.R; import github.FinalProject.alphanotes.activity.CategoryActivity; import github.FinalProject.alphanotes.adapter.CategoryAdapter; import github.FinalProject.alphanotes.adapter.template.ModelAdapter; import github.FinalProject.alphanotes.db.OpenHelper; import github.FinalProject.alphanotes.fragment.template.RecyclerFragment; import github.FinalProject.alphanotes.model.Category; import github.FinalProject.alphanotes.model.DatabaseModel; public class MainFragment extends RecyclerFragment<Category, CategoryAdapter> { private int categoryDialogTheme = Category.THEME_GREEN; private ModelAdapter.ClickListener listener = new ModelAdapter.ClickListener() { @Override public void onClick(DatabaseModel item, int position) { if (item.isLocked) { displayPasswordVerifyDialog( R.string.open_note_book, R.string.unlock, item, position ); } else { Intent intent = new Intent(getContext(), CategoryActivity.class); intent.putExtra("position", position); intent.putExtra(OpenHelper.COLUMN_ID, item.id); intent.putExtra(OpenHelper.COLUMN_TITLE, item.title); intent.putExtra(OpenHelper.COLUMN_THEME, ((Category) item).theme); startActivityForResult(intent, CategoryActivity.REQUEST_CODE); } } @Override public void onChangeSelection(boolean haveSelected) { toggleSelection(haveSelected); } @Override public void onCountSelection(int count) { onChangeCounter(count); activity.toggleOneSelection(count <= 1); } }; public MainFragment() { } @Override public void onClickFab() { categoryDialogTheme = Category.THEME_GREEN; displayCategoryDialog( R.string.new_category, R.string.create, "", DatabaseModel.NEW_MODEL_ID, 0 ); } public void onLockSelected() { if (!selected.isEmpty()) { //ArrayList a = new ArrayList(); //a.addAll(selected); Category item = selected.remove(0); int position = items.indexOf(item); refreshItem(position); toggleSelection(false); categoryDialogTheme = item.theme; displayLockDialog( R.string.edit_lock, R.string.lock, item.title, item.id, position ); } } public void onEditSelected() { if (!selected.isEmpty()) { Category item = selected.remove(0); int position = items.indexOf(item); refreshItem(position); toggleSelection(false); categoryDialogTheme = item.theme; displayCategoryDialog( R.string.edit_category, R.string.edit, item.title, item.id, position ); } } private void displayLockDialog(@StringRes int title, @StringRes int positiveText, final String categoryTitle, final long categoryId, final int position) { MaterialDialog dialog = new MaterialDialog.Builder((getContext())) .title(title) .positiveText(positiveText) .negativeText(R.string.cancel) .negativeColor(ContextCompat.getColor(getContext(), R.color.secondary_text)) .onPositive(new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { String inputPassword = ((EditText) dialog.getCustomView().findViewById(R.id.title_txt)).getText().toString(); if (TextUtils.isEmpty(inputPassword)) { Toast.makeText(getContext(), "Please enter password", Toast.LENGTH_SHORT).show(); return; } App.getInstance().putPrefs("" + categoryId, inputPassword); final Category category = new Category(); category.id = categoryId; final boolean isEditing = categoryId != DatabaseModel.NEW_MODEL_ID; if (!isEditing) { category.counter = 0; category.type = DatabaseModel.TYPE_CATEGORY; category.createdAt = System.currentTimeMillis(); category.isArchived = false; } category.title = categoryTitle; category.isLocked = true; category.theme = categoryDialogTheme; new Thread() { @Override public void run() { final long id = category.save(); if (id != DatabaseModel.NEW_MODEL_ID) { getActivity().runOnUiThread(new Runnable() { @Override public void run() { if (isEditing) { Category categoryInItems = items.get(position); categoryInItems.theme = category.theme; categoryInItems.title = category.title; categoryInItems.isLocked = category.isLocked; refreshItem(position); } else { category.id = id; addItem(category, position); } } }); } interrupt(); } }.start(); } }) .onNegative(new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { dialog.dismiss(); } }) .customView(R.layout.dialog_password, true) .build(); dialog.show(); //noinspection ConstantConditions } private void displayPasswordVerifyDialog(@StringRes int title, @StringRes int positiveText, final DatabaseModel item, final int position) { MaterialDialog dialog = new MaterialDialog.Builder((getContext())) .title(title) .positiveText(positiveText) .negativeText(R.string.cancel) .negativeColor(ContextCompat.getColor(getContext(), R.color.secondary_text)) .onPositive(new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { String inputPassword = ((EditText) dialog.getCustomView().findViewById(R.id.title_txt)).getText().toString(); if (TextUtils.isEmpty(inputPassword)) { Toast.makeText(getContext(), "Please enter password", Toast.LENGTH_SHORT).show(); return; } if (inputPassword.equalsIgnoreCase(App.getInstance().getString(item.id + "", ""))) { Intent intent = new Intent(getContext(), CategoryActivity.class); intent.putExtra("position", position); intent.putExtra(OpenHelper.COLUMN_ID, item.id); intent.putExtra(OpenHelper.COLUMN_TITLE, item.title); intent.putExtra(OpenHelper.COLUMN_THEME, ((Category) item).theme); startActivityForResult(intent, CategoryActivity.REQUEST_CODE); } else { Toast.makeText(getContext(), "Wrong password", Toast.LENGTH_SHORT).show(); } dialog.dismiss(); } }) .onNegative(new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { dialog.dismiss(); } }) .customView(R.layout.dialog_password, true) .build(); dialog.show(); } private void displayCategoryDialog(@StringRes int title, @StringRes int positiveText, final String categoryTitle, final long categoryId, final int position) { MaterialDialog dialog = new MaterialDialog.Builder(getContext()) .title(title) .positiveText(positiveText) .negativeText(R.string.cancel) .negativeColor(ContextCompat.getColor(getContext(), R.color.secondary_text)) .onPositive(new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { //noinspection ConstantConditions String inputTitle = ((EditText) dialog.getCustomView().findViewById(R.id.title_txt)).getText().toString(); if (inputTitle.isEmpty()) { inputTitle = "Untitled"; } final Category category = new Category(); category.id = categoryId; final boolean isEditing = categoryId != DatabaseModel.NEW_MODEL_ID; if (!isEditing) { category.counter = 0; category.type = DatabaseModel.TYPE_CATEGORY; category.createdAt = System.currentTimeMillis(); category.isArchived = false; } category.title = inputTitle; category.theme = categoryDialogTheme; new Thread() { @Override public void run() { final long id = category.save(); if (id != DatabaseModel.NEW_MODEL_ID) { getActivity().runOnUiThread(new Runnable() { @Override public void run() { if (isEditing) { Category categoryInItems = items.get(position); categoryInItems.theme = category.theme; categoryInItems.title = category.title; refreshItem(position); } else { category.id = id; addItem(category, position); } } }); } interrupt(); } }.start(); } }) .onNegative(new MaterialDialog.SingleButtonCallback() { @Override public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { dialog.dismiss(); } }) .customView(R.layout.dialog_category, true) .build(); dialog.show(); final View view = dialog.getCustomView(); //noinspection ConstantConditions ((EditText) view.findViewById(R.id.title_txt)).setText(categoryTitle); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == CategoryActivity.REQUEST_CODE && resultCode == CategoryActivity.RESULT_CHANGE) { int position = data.getIntExtra("position", 0); items.get(position).counter = data.getIntExtra(OpenHelper.COLUMN_COUNTER, 0); refreshItem(position); } } @Override public int getLayout() { return (R.layout.fragment_main); } @Override public String getItemName() { return "category"; } @Override public Class<CategoryAdapter> getAdapterClass() { return CategoryAdapter.class; } @Override public ModelAdapter.ClickListener getListener() { return listener; } }
e397cfea2a22fdbab4d17bb96c1d7c84af493f71
da82a083d24b87a3b2ae9aafb60d3df30b83592d
/src/java/com/eltonb/ws/utils/Utilities.java
162b8dd8f11e571d86b9a8ae8dba613b1a8b5388
[]
no_license
eballhysa/ws-textbook-ex03-studentRegistrySoap
eb38a861c331d12f8650be7360d510f25895965d
7ddc22ee381dc25ba7d549b6153910cbc12e0d01
refs/heads/master
2023-03-04T23:10:27.834140
2021-02-09T13:10:27
2021-02-09T13:10:27
337,407,590
0
0
null
null
null
null
UTF-8
Java
false
false
1,981
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 com.eltonb.ws.utils; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; /** * * @author elton.ballhysa */ public class Utilities { public static EntityManager entityManager() { EntityManagerFactory emf = Persistence.createEntityManagerFactory("StudentRegistry-workingPU"); return emf.createEntityManager(); } public static double creditPoints(String letterGrade) { if ("A".equals(letterGrade)) return 4.00; if ("A-".equals(letterGrade)) return 3.67; if ("B+".equals(letterGrade)) return 3.33; if ("B".equals(letterGrade)) return 3.00; if ("B-".equals(letterGrade)) return 2.67; if ("C+".equals(letterGrade)) return 2.33; if ("C".equals(letterGrade)) return 2.00; if ("C-".equals(letterGrade)) return 1.67; if ("D+".equals(letterGrade)) return 1.33; if ("D".equals(letterGrade)) return 1.00; if ("D-".equals(letterGrade)) return 0.67; return 0.0; } public static String letterGradeOf(double overallGrade) { if (overallGrade >= 95) return "A"; if (overallGrade >= 90) return "A-"; if (overallGrade >= 87) return "B+"; if (overallGrade >= 83) return "B"; if (overallGrade >= 80) return "B-"; if (overallGrade >= 77) return "C+"; if (overallGrade >= 73) return "C"; if (overallGrade >= 70) return "C-"; if (overallGrade >= 67) return "D+"; if (overallGrade >= 63) return "D"; if (overallGrade >= 60) return "D-"; return "F"; } }
1e9c049e42258a25268eef9de52f7b3b6cb9f747
8e9555a98e0b5441fe1df0ce30a2da00afcccfcc
/week-02/day-01/src/com/company/Excercise16.java
258ee138e50481bf8268f45937e298f331cb2886
[]
no_license
Kopsova/hamsun7
967c756ea0601fea0c1af41636ae86519ea097f7
64ad0225be6b45002413db52cf28123bf6c5133e
refs/heads/master
2020-04-09T23:54:54.751846
2018-11-22T10:46:09
2018-11-22T10:46:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
421
java
package com.company; public class Excercise16 { // - Create an array variable named `animals` // with the following content: `["koal", "pand", "zebr"]` // - Add all elements an `"a"` at the end public static void main(String[] args) { String[] animals = {"koal", "pand", "zebr"}; for (int i = 0; i < animals.length; i++) { System.out.println(animals[i] + "a"); } } }
9a20ccaa98f5ab3aaffb779df2906fb56b7e4e29
afcd8d4e596c209019ee9b67de675264c69187b8
/main/java/com/magicbox/redio/script/objects/array/RedArrayInsertMethod.java
d4b0c437261832a64a5ce830fc79b37d232dfc88
[ "MIT" ]
permissive
RayleighChen/RedIO
0778cac8d1840abdfa483f0f0b1e20793cdf2479
d905e4ce0d1b79e8b15136f5502048acf2ef842e
refs/heads/master
2021-01-15T12:44:28.105510
2014-11-09T08:30:13
2014-11-09T08:30:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
815
java
package com.magicbox.redio.script.objects.array; import com.magicbox.redio.script.objects.RedIntObject; import com.magicbox.redio.script.objects.RedNullObject; import com.magicbox.redio.script.objects.RedObject; public class RedArrayInsertMethod extends RedArrayBaseMethod { public RedArrayInsertMethod(RedArrayObject parent) { super(parent); } @Override public RedObject __call__(RedArrayObject args) { if (args.size() != 2) throw new RuntimeException("array.insert() takes exactly 2 argument."); RedObject arg0 = args.get(0); RedObject arg1 = args.get(1); if (!(arg0 instanceof RedIntObject)) throw new RuntimeException("array.insert() only accepts integers as its first argument."); getParent().insert(((RedIntObject)arg0).getValue(), arg1); return RedNullObject.nullObject; } }
bd9c5ac957cb121de594518b39070e9b3621a638
b0077ab9970c13cbb47bea5f0d0beccecd48c5b3
/src/br/com/project/bean/view/LoginBeanView.java
c025334146c0d2394a3bd22af5ae5fdc195c63da
[]
no_license
Jvvillasb/Projeto-Caixaki
fdf657bd0421893da5a425c4c96ec049a7ca7fcc
301960b254d3ef3d9300ec3df2a3fbc2371777f9
refs/heads/main
2023-04-30T07:27:38.585597
2021-05-16T05:48:41
2021-05-16T05:48:41
358,711,418
1
0
null
null
null
null
UTF-8
Java
false
false
4,056
java
package br.com.project.bean.view; import java.io.File; import javax.annotation.Resource; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; import javax.faces.event.ActionEvent; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.primefaces.context.RequestContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import br.com.framework.interfac.crud.InterfaceCrud; import br.com.project.bean.geral.BeanManagedViewAbstract; import br.com.project.geral.controller.SessionControllerImpl; import br.com.srv.interfaces.SrvLogin; @Controller @Scope(value = "request") @ManagedBean(name = "loginBeanView") public class LoginBeanView extends BeanManagedViewAbstract { private static final long serialVersionUID = 1L; private String username; private String password; @Resource private SessionControllerImpl sessionController; @Autowired private SrvLogin srvLogin; @RequestMapping(value = "**/invalidar_session", method = RequestMethod.POST) public void invalidateSessionContrala(HttpServletRequest httpServletRequest) throws Exception { String userLogadoSessao = null; if (httpServletRequest.getUserPrincipal() != null){ userLogadoSessao = httpServletRequest.getUserPrincipal().getName(); } if (userLogadoSessao == null || (userLogadoSessao != null && userLogadoSessao.trim().isEmpty())) { userLogadoSessao = httpServletRequest.getRemoteUser(); } if (userLogadoSessao != null && !userLogadoSessao.isEmpty()) sessionController.invalidateSession(userLogadoSessao); } @RequestMapping(value = "/publico/atualizarBanco", method = RequestMethod.GET) public void atualizarBanco(HttpServletResponse httpServletResponse, HttpServletRequest servletRequest) throws Exception { try { String pacote = "WEB-INF" + File.separator + "classes" + File.separator + "sqlbaseDados"; String caminhoFile = servletRequest.getServletContext().getRealPath( pacote); File file = new File(caminhoFile + File.separator); if (caminhoFile == null || (caminhoFile != null && caminhoFile.isEmpty()) || file.list().length == 0) { caminhoFile = this.getClass() .getResource(File.separator + "sqlbaseDados").getPath(); } file = null; srvLogin.atualizaBanco(caminhoFile); httpServletResponse.getWriter().write("{\"sucess\":\"ok\"}"); }catch (Exception e) { httpServletResponse.getWriter().write("{\"sucess\":\"error\"}"); throw new Exception("Erro ao atualizar base de dados" + e); } } @Override protected Class<?> getClassImplement() { return null; } @Override protected InterfaceCrud<?> getController() { return null; } @Override public String condicaoAndParaPesquisa() { return null; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public void invalidar(ActionEvent event) throws Exception { RequestContext context = RequestContext.getCurrentInstance(); FacesMessage message = null; boolean loggedIn = false; if(srvLogin.autentico(getUsername(), getPassword())) { sessionController.invalidateSession(getUsername()); loggedIn = true; } else { loggedIn = false; message = new FacesMessage(FacesMessage.SEVERITY_WARN, "Acesso negado, login ou senha incorretos.", ""); } if (message != null) FacesContext.getCurrentInstance().addMessage("msg", message); context.addCallbackParam("loggedIn", loggedIn); } }
769b1393bb62ef24583773fed9dc35f600d5a9da
957dd4d0aac044f313dc9151774abd7af79b9b50
/gen/com/djn/refresh/BuildConfig.java
c09ba1ca3402fcf0a4baf1020780cc90dd2b1b2e
[]
no_license
jianxiansining/QQLoadmoreInfo
44184d0d2b4cf3159f04cee5a51f862c6e94536e
8b70d3192e8aa6190a6530d9391c5a11ec726d65
refs/heads/master
2020-12-31T04:42:22.950354
2016-05-06T03:24:18
2016-05-06T03:24:18
58,177,922
0
0
null
null
null
null
UTF-8
Java
false
false
157
java
/** Automatically generated file. DO NOT MODIFY */ package com.djn.refresh; public final class BuildConfig { public final static boolean DEBUG = true; }
5bda58ade2e626a03a93413a00b2e2410327faa8
60023700a3965200146acaee1906de7d7e45a721
/src/com/practice/ds/stringbuffer/MyStringBuffer.java
544365548b1fb8ee39a778cbb9be915b42d58cea
[]
no_license
Pre8y/ctci_java
329a93b5efe81a6299429ac0a772ee3e9efcfd63
ab4ed90a205233fc64da721facccb151ff8333e1
refs/heads/master
2021-04-03T09:33:24.908371
2016-07-20T16:29:24
2016-07-20T16:29:24
60,031,441
0
0
null
null
null
null
UTF-8
Java
false
false
811
java
package com.practice.ds.stringbuffer; public class MyStringBuffer { int MAX = 10; char[] array = null; public MyStringBuffer() { array = new char[MAX]; } public MyStringBuffer(CharSequence string) { array = new char[MAX]; append(string); } public MyStringBuffer append(CharSequence string) { int position = 0; for(int i=0; i<MAX ; i++) { if(array[i]!='\u0000'){ position++; } } for(int j=0; j<string.length();j++) { if(position+j==MAX){ char[] temp = array; array = new char[2*MAX]; for(int k= 0; k<MAX; k++) { array[k] = temp[k]; } MAX = 2*MAX; } array[position+j] = string.charAt(j); } return this; } @Override public String toString() { // TODO Auto-generated method stub return new String(array).trim(); } }
b73f5086f6e98928adb516fd90348ac73e7fd1c8
5d12f5ec8f63d537c871384da55d552e6c3dcc43
/app/build/generated/source/r/release/android/support/v7/appcompat/R.java
1ac0cdf4fc3b0569416c80edea7b1fb5ed88d79f
[]
no_license
syj5385/DRMS_block_android
bbed4f87d63269e9c99e5ea674ebab675c404ee3
b5b3b8ada32200c7e8ebbc5c72ec03fb26b8a279
refs/heads/master
2022-03-13T17:25:46.350943
2019-11-26T01:59:55
2019-11-26T01:59:55
224,080,096
0
0
null
null
null
null
UTF-8
Java
false
false
110,826
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 android.support.v7.appcompat; public final class R { public static final class anim { public static final int abc_fade_in = 0x7f050000; public static final int abc_fade_out = 0x7f050001; public static final int abc_grow_fade_in_from_bottom = 0x7f050002; public static final int abc_popup_enter = 0x7f050003; public static final int abc_popup_exit = 0x7f050004; public static final int abc_shrink_fade_out_from_bottom = 0x7f050005; public static final int abc_slide_in_bottom = 0x7f050006; public static final int abc_slide_in_top = 0x7f050007; public static final int abc_slide_out_bottom = 0x7f050008; public static final int abc_slide_out_top = 0x7f050009; } public static final class attr { public static final int actionBarDivider = 0x7f01006d; public static final int actionBarItemBackground = 0x7f01006e; public static final int actionBarPopupTheme = 0x7f010067; public static final int actionBarSize = 0x7f01006c; public static final int actionBarSplitStyle = 0x7f010069; public static final int actionBarStyle = 0x7f010068; public static final int actionBarTabBarStyle = 0x7f010063; public static final int actionBarTabStyle = 0x7f010062; public static final int actionBarTabTextStyle = 0x7f010064; public static final int actionBarTheme = 0x7f01006a; public static final int actionBarWidgetTheme = 0x7f01006b; public static final int actionButtonStyle = 0x7f010088; public static final int actionDropDownStyle = 0x7f010084; public static final int actionLayout = 0x7f0100d9; public static final int actionMenuTextAppearance = 0x7f01006f; public static final int actionMenuTextColor = 0x7f010070; public static final int actionModeBackground = 0x7f010073; public static final int actionModeCloseButtonStyle = 0x7f010072; public static final int actionModeCloseDrawable = 0x7f010075; public static final int actionModeCopyDrawable = 0x7f010077; public static final int actionModeCutDrawable = 0x7f010076; public static final int actionModeFindDrawable = 0x7f01007b; public static final int actionModePasteDrawable = 0x7f010078; public static final int actionModePopupWindowStyle = 0x7f01007d; public static final int actionModeSelectAllDrawable = 0x7f010079; public static final int actionModeShareDrawable = 0x7f01007a; public static final int actionModeSplitBackground = 0x7f010074; public static final int actionModeStyle = 0x7f010071; public static final int actionModeWebSearchDrawable = 0x7f01007c; public static final int actionOverflowButtonStyle = 0x7f010065; public static final int actionOverflowMenuStyle = 0x7f010066; public static final int actionProviderClass = 0x7f0100db; public static final int actionViewClass = 0x7f0100da; public static final int activityChooserViewStyle = 0x7f010090; public static final int alertDialogButtonGroupStyle = 0x7f0100b4; public static final int alertDialogCenterButtons = 0x7f0100b5; public static final int alertDialogStyle = 0x7f0100b3; public static final int alertDialogTheme = 0x7f0100b6; public static final int allowStacking = 0x7f0100c9; public static final int alpha = 0x7f0100ca; public static final int arrowHeadLength = 0x7f0100d1; public static final int arrowShaftLength = 0x7f0100d2; public static final int autoCompleteTextViewStyle = 0x7f0100bb; public static final int background = 0x7f010038; public static final int backgroundSplit = 0x7f01003a; public static final int backgroundStacked = 0x7f010039; public static final int backgroundTint = 0x7f010110; public static final int backgroundTintMode = 0x7f010111; public static final int barLength = 0x7f0100d3; public static final int borderlessButtonStyle = 0x7f01008d; public static final int buttonBarButtonStyle = 0x7f01008a; public static final int buttonBarNegativeButtonStyle = 0x7f0100b9; public static final int buttonBarNeutralButtonStyle = 0x7f0100ba; public static final int buttonBarPositiveButtonStyle = 0x7f0100b8; public static final int buttonBarStyle = 0x7f010089; public static final int buttonGravity = 0x7f010105; public static final int buttonPanelSideLayout = 0x7f01004d; public static final int buttonStyle = 0x7f0100bc; public static final int buttonStyleSmall = 0x7f0100bd; public static final int buttonTint = 0x7f0100cb; public static final int buttonTintMode = 0x7f0100cc; public static final int checkboxStyle = 0x7f0100be; public static final int checkedTextViewStyle = 0x7f0100bf; public static final int closeIcon = 0x7f0100e8; public static final int closeItemLayout = 0x7f01004a; public static final int collapseContentDescription = 0x7f010107; public static final int collapseIcon = 0x7f010106; public static final int color = 0x7f0100cd; public static final int colorAccent = 0x7f0100ab; public static final int colorBackgroundFloating = 0x7f0100b2; public static final int colorButtonNormal = 0x7f0100af; public static final int colorControlActivated = 0x7f0100ad; public static final int colorControlHighlight = 0x7f0100ae; public static final int colorControlNormal = 0x7f0100ac; public static final int colorPrimary = 0x7f0100a9; public static final int colorPrimaryDark = 0x7f0100aa; public static final int colorSwitchThumbNormal = 0x7f0100b0; public static final int commitIcon = 0x7f0100ed; public static final int contentDescription = 0x7f0100dc; public static final int contentInsetEnd = 0x7f010043; public static final int contentInsetEndWithActions = 0x7f010047; public static final int contentInsetLeft = 0x7f010044; public static final int contentInsetRight = 0x7f010045; public static final int contentInsetStart = 0x7f010042; public static final int contentInsetStartWithNavigation = 0x7f010046; public static final int controlBackground = 0x7f0100b1; public static final int customNavigationLayout = 0x7f01003b; public static final int defaultQueryHint = 0x7f0100e7; public static final int dialogPreferredPadding = 0x7f010082; public static final int dialogTheme = 0x7f010081; public static final int displayOptions = 0x7f010031; public static final int divider = 0x7f010037; public static final int dividerHorizontal = 0x7f01008f; public static final int dividerPadding = 0x7f0100d7; public static final int dividerVertical = 0x7f01008e; public static final int drawableSize = 0x7f0100cf; public static final int drawerArrowStyle = 0x7f010001; public static final int dropDownListViewStyle = 0x7f0100a1; public static final int dropdownListPreferredItemHeight = 0x7f010085; public static final int editTextBackground = 0x7f010096; public static final int editTextColor = 0x7f010095; public static final int editTextStyle = 0x7f0100c0; public static final int elevation = 0x7f010048; public static final int expandActivityOverflowButtonDrawable = 0x7f01004c; public static final int gapBetweenBars = 0x7f0100d0; public static final int goIcon = 0x7f0100e9; public static final int height = 0x7f010002; public static final int hideOnContentScroll = 0x7f010041; public static final int homeAsUpIndicator = 0x7f010087; public static final int homeLayout = 0x7f01003c; public static final int icon = 0x7f010035; public static final int iconifiedByDefault = 0x7f0100e5; public static final int imageButtonStyle = 0x7f010097; public static final int indeterminateProgressStyle = 0x7f01003e; public static final int initialActivityCount = 0x7f01004b; public static final int isLightTheme = 0x7f010003; public static final int itemPadding = 0x7f010040; public static final int layout = 0x7f0100e4; public static final int listChoiceBackgroundIndicator = 0x7f0100a8; public static final int listDividerAlertDialog = 0x7f010083; public static final int listItemLayout = 0x7f010051; public static final int listLayout = 0x7f01004e; public static final int listMenuViewStyle = 0x7f0100c8; public static final int listPopupWindowStyle = 0x7f0100a2; public static final int listPreferredItemHeight = 0x7f01009c; public static final int listPreferredItemHeightLarge = 0x7f01009e; public static final int listPreferredItemHeightSmall = 0x7f01009d; public static final int listPreferredItemPaddingLeft = 0x7f01009f; public static final int listPreferredItemPaddingRight = 0x7f0100a0; public static final int logo = 0x7f010036; public static final int logoDescription = 0x7f01010a; public static final int maxButtonHeight = 0x7f010104; public static final int measureWithLargestChild = 0x7f0100d5; public static final int multiChoiceItemLayout = 0x7f01004f; public static final int navigationContentDescription = 0x7f010109; public static final int navigationIcon = 0x7f010108; public static final int navigationMode = 0x7f010030; public static final int overlapAnchor = 0x7f0100e0; public static final int paddingBottomNoButtons = 0x7f0100e2; public static final int paddingEnd = 0x7f01010e; public static final int paddingStart = 0x7f01010d; public static final int paddingTopNoTitle = 0x7f0100e3; public static final int panelBackground = 0x7f0100a5; public static final int panelMenuListTheme = 0x7f0100a7; public static final int panelMenuListWidth = 0x7f0100a6; public static final int popupMenuStyle = 0x7f010093; public static final int popupTheme = 0x7f010049; public static final int popupWindowStyle = 0x7f010094; public static final int preserveIconSpacing = 0x7f0100de; public static final int progressBarPadding = 0x7f01003f; public static final int progressBarStyle = 0x7f01003d; public static final int queryBackground = 0x7f0100ef; public static final int queryHint = 0x7f0100e6; public static final int radioButtonStyle = 0x7f0100c1; public static final int ratingBarStyle = 0x7f0100c2; public static final int ratingBarStyleIndicator = 0x7f0100c3; public static final int ratingBarStyleSmall = 0x7f0100c4; public static final int searchHintIcon = 0x7f0100eb; public static final int searchIcon = 0x7f0100ea; public static final int searchViewStyle = 0x7f01009b; public static final int seekBarStyle = 0x7f0100c5; public static final int selectableItemBackground = 0x7f01008b; public static final int selectableItemBackgroundBorderless = 0x7f01008c; public static final int showAsAction = 0x7f0100d8; public static final int showDividers = 0x7f0100d6; public static final int showText = 0x7f0100fb; public static final int showTitle = 0x7f010052; public static final int singleChoiceItemLayout = 0x7f010050; public static final int spinBars = 0x7f0100ce; public static final int spinnerDropDownItemStyle = 0x7f010086; public static final int spinnerStyle = 0x7f0100c6; public static final int splitTrack = 0x7f0100fa; public static final int srcCompat = 0x7f010053; public static final int state_above_anchor = 0x7f0100e1; public static final int subMenuArrow = 0x7f0100df; public static final int submitBackground = 0x7f0100f0; public static final int subtitle = 0x7f010032; public static final int subtitleTextAppearance = 0x7f0100fd; public static final int subtitleTextColor = 0x7f01010c; public static final int subtitleTextStyle = 0x7f010034; public static final int suggestionRowLayout = 0x7f0100ee; public static final int switchMinWidth = 0x7f0100f8; public static final int switchPadding = 0x7f0100f9; public static final int switchStyle = 0x7f0100c7; public static final int switchTextAppearance = 0x7f0100f7; public static final int textAllCaps = 0x7f010057; public static final int textAppearanceLargePopupMenu = 0x7f01007e; public static final int textAppearanceListItem = 0x7f0100a3; public static final int textAppearanceListItemSmall = 0x7f0100a4; public static final int textAppearancePopupMenuHeader = 0x7f010080; public static final int textAppearanceSearchResultSubtitle = 0x7f010099; public static final int textAppearanceSearchResultTitle = 0x7f010098; public static final int textAppearanceSmallPopupMenu = 0x7f01007f; public static final int textColorAlertDialogListItem = 0x7f0100b7; public static final int textColorSearchUrl = 0x7f01009a; public static final int theme = 0x7f01010f; public static final int thickness = 0x7f0100d4; public static final int thumbTextPadding = 0x7f0100f6; public static final int thumbTint = 0x7f0100f1; public static final int thumbTintMode = 0x7f0100f2; public static final int tickMark = 0x7f010054; public static final int tickMarkTint = 0x7f010055; public static final int tickMarkTintMode = 0x7f010056; public static final int title = 0x7f01002f; public static final int titleMargin = 0x7f0100fe; public static final int titleMarginBottom = 0x7f010102; public static final int titleMarginEnd = 0x7f010100; public static final int titleMarginStart = 0x7f0100ff; public static final int titleMarginTop = 0x7f010101; public static final int titleMargins = 0x7f010103; public static final int titleTextAppearance = 0x7f0100fc; public static final int titleTextColor = 0x7f01010b; public static final int titleTextStyle = 0x7f010033; public static final int toolbarNavigationButtonStyle = 0x7f010092; public static final int toolbarStyle = 0x7f010091; public static final int tooltipText = 0x7f0100dd; public static final int track = 0x7f0100f3; public static final int trackTint = 0x7f0100f4; public static final int trackTintMode = 0x7f0100f5; public static final int voiceIcon = 0x7f0100ec; public static final int windowActionBar = 0x7f010058; public static final int windowActionBarOverlay = 0x7f01005a; public static final int windowActionModeOverlay = 0x7f01005b; public static final int windowFixedHeightMajor = 0x7f01005f; public static final int windowFixedHeightMinor = 0x7f01005d; public static final int windowFixedWidthMajor = 0x7f01005c; public static final int windowFixedWidthMinor = 0x7f01005e; public static final int windowMinWidthMajor = 0x7f010060; public static final int windowMinWidthMinor = 0x7f010061; public static final int windowNoTitle = 0x7f010059; } public static final class bool { public static final int abc_action_bar_embed_tabs = 0x7f0a0000; public static final int abc_allow_stacked_button_bar = 0x7f0a0001; public static final int abc_config_actionMenuItemAllCaps = 0x7f0a0002; public static final int abc_config_closeDialogWhenTouchOutside = 0x7f0a0003; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f0a0004; } public static final class color { public static final int abc_background_cache_hint_selector_material_dark = 0x7f0b0042; public static final int abc_background_cache_hint_selector_material_light = 0x7f0b0043; public static final int abc_btn_colored_borderless_text_material = 0x7f0b0044; public static final int abc_btn_colored_text_material = 0x7f0b0045; public static final int abc_color_highlight_material = 0x7f0b0046; public static final int abc_hint_foreground_material_dark = 0x7f0b0047; public static final int abc_hint_foreground_material_light = 0x7f0b0048; public static final int abc_input_method_navigation_guard = 0x7f0b0001; public static final int abc_primary_text_disable_only_material_dark = 0x7f0b0049; public static final int abc_primary_text_disable_only_material_light = 0x7f0b004a; public static final int abc_primary_text_material_dark = 0x7f0b004b; public static final int abc_primary_text_material_light = 0x7f0b004c; public static final int abc_search_url_text = 0x7f0b004d; public static final int abc_search_url_text_normal = 0x7f0b0002; public static final int abc_search_url_text_pressed = 0x7f0b0003; public static final int abc_search_url_text_selected = 0x7f0b0004; public static final int abc_secondary_text_material_dark = 0x7f0b004e; public static final int abc_secondary_text_material_light = 0x7f0b004f; public static final int abc_tint_btn_checkable = 0x7f0b0050; public static final int abc_tint_default = 0x7f0b0051; public static final int abc_tint_edittext = 0x7f0b0052; public static final int abc_tint_seek_thumb = 0x7f0b0053; public static final int abc_tint_spinner = 0x7f0b0054; public static final int abc_tint_switch_thumb = 0x7f0b0055; public static final int abc_tint_switch_track = 0x7f0b0056; public static final int accent_material_dark = 0x7f0b0005; public static final int accent_material_light = 0x7f0b0006; public static final int background_floating_material_dark = 0x7f0b0007; public static final int background_floating_material_light = 0x7f0b0008; public static final int background_material_dark = 0x7f0b0009; public static final int background_material_light = 0x7f0b000a; public static final int bright_foreground_disabled_material_dark = 0x7f0b000b; public static final int bright_foreground_disabled_material_light = 0x7f0b000c; public static final int bright_foreground_inverse_material_dark = 0x7f0b000d; public static final int bright_foreground_inverse_material_light = 0x7f0b000e; public static final int bright_foreground_material_dark = 0x7f0b000f; public static final int bright_foreground_material_light = 0x7f0b0010; public static final int button_material_dark = 0x7f0b0011; public static final int button_material_light = 0x7f0b0012; public static final int dim_foreground_disabled_material_dark = 0x7f0b0016; public static final int dim_foreground_disabled_material_light = 0x7f0b0017; public static final int dim_foreground_material_dark = 0x7f0b0018; public static final int dim_foreground_material_light = 0x7f0b0019; public static final int foreground_material_dark = 0x7f0b001a; public static final int foreground_material_light = 0x7f0b001b; public static final int highlighted_text_material_dark = 0x7f0b001c; public static final int highlighted_text_material_light = 0x7f0b001d; public static final int material_blue_grey_800 = 0x7f0b001f; public static final int material_blue_grey_900 = 0x7f0b0020; public static final int material_blue_grey_950 = 0x7f0b0021; public static final int material_deep_teal_200 = 0x7f0b0022; public static final int material_deep_teal_500 = 0x7f0b0023; public static final int material_grey_100 = 0x7f0b0024; public static final int material_grey_300 = 0x7f0b0025; public static final int material_grey_50 = 0x7f0b0026; public static final int material_grey_600 = 0x7f0b0027; public static final int material_grey_800 = 0x7f0b0028; public static final int material_grey_850 = 0x7f0b0029; public static final int material_grey_900 = 0x7f0b002a; public static final int notification_action_color_filter = 0x7f0b0000; public static final int notification_icon_bg_color = 0x7f0b002b; public static final int notification_material_background_media_default_color = 0x7f0b002c; public static final int primary_dark_material_dark = 0x7f0b002d; public static final int primary_dark_material_light = 0x7f0b002e; public static final int primary_material_dark = 0x7f0b002f; public static final int primary_material_light = 0x7f0b0030; public static final int primary_text_default_material_dark = 0x7f0b0031; public static final int primary_text_default_material_light = 0x7f0b0032; public static final int primary_text_disabled_material_dark = 0x7f0b0033; public static final int primary_text_disabled_material_light = 0x7f0b0034; public static final int ripple_material_dark = 0x7f0b0037; public static final int ripple_material_light = 0x7f0b0038; public static final int secondary_text_default_material_dark = 0x7f0b0039; public static final int secondary_text_default_material_light = 0x7f0b003a; public static final int secondary_text_disabled_material_dark = 0x7f0b003b; public static final int secondary_text_disabled_material_light = 0x7f0b003c; public static final int switch_thumb_disabled_material_dark = 0x7f0b003d; public static final int switch_thumb_disabled_material_light = 0x7f0b003e; public static final int switch_thumb_material_dark = 0x7f0b0057; public static final int switch_thumb_material_light = 0x7f0b0058; public static final int switch_thumb_normal_material_dark = 0x7f0b003f; public static final int switch_thumb_normal_material_light = 0x7f0b0040; } public static final class dimen { public static final int abc_action_bar_content_inset_material = 0x7f08000c; public static final int abc_action_bar_content_inset_with_nav = 0x7f08000d; public static final int abc_action_bar_default_height_material = 0x7f080001; public static final int abc_action_bar_default_padding_end_material = 0x7f08000e; public static final int abc_action_bar_default_padding_start_material = 0x7f08000f; public static final int abc_action_bar_elevation_material = 0x7f080015; public static final int abc_action_bar_icon_vertical_padding_material = 0x7f080016; public static final int abc_action_bar_overflow_padding_end_material = 0x7f080017; public static final int abc_action_bar_overflow_padding_start_material = 0x7f080018; public static final int abc_action_bar_progress_bar_size = 0x7f080002; public static final int abc_action_bar_stacked_max_height = 0x7f080019; public static final int abc_action_bar_stacked_tab_max_width = 0x7f08001a; public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f08001b; public static final int abc_action_bar_subtitle_top_margin_material = 0x7f08001c; public static final int abc_action_button_min_height_material = 0x7f08001d; public static final int abc_action_button_min_width_material = 0x7f08001e; public static final int abc_action_button_min_width_overflow_material = 0x7f08001f; public static final int abc_alert_dialog_button_bar_height = 0x7f080000; public static final int abc_button_inset_horizontal_material = 0x7f080020; public static final int abc_button_inset_vertical_material = 0x7f080021; public static final int abc_button_padding_horizontal_material = 0x7f080022; public static final int abc_button_padding_vertical_material = 0x7f080023; public static final int abc_cascading_menus_min_smallest_width = 0x7f080024; public static final int abc_config_prefDialogWidth = 0x7f080005; public static final int abc_control_corner_material = 0x7f080025; public static final int abc_control_inset_material = 0x7f080026; public static final int abc_control_padding_material = 0x7f080027; public static final int abc_dialog_fixed_height_major = 0x7f080006; public static final int abc_dialog_fixed_height_minor = 0x7f080007; public static final int abc_dialog_fixed_width_major = 0x7f080008; public static final int abc_dialog_fixed_width_minor = 0x7f080009; public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f080028; public static final int abc_dialog_list_padding_top_no_title = 0x7f080029; public static final int abc_dialog_min_width_major = 0x7f08000a; public static final int abc_dialog_min_width_minor = 0x7f08000b; public static final int abc_dialog_padding_material = 0x7f08002a; public static final int abc_dialog_padding_top_material = 0x7f08002b; public static final int abc_dialog_title_divider_material = 0x7f08002c; public static final int abc_disabled_alpha_material_dark = 0x7f08002d; public static final int abc_disabled_alpha_material_light = 0x7f08002e; public static final int abc_dropdownitem_icon_width = 0x7f08002f; public static final int abc_dropdownitem_text_padding_left = 0x7f080030; public static final int abc_dropdownitem_text_padding_right = 0x7f080031; public static final int abc_edit_text_inset_bottom_material = 0x7f080032; public static final int abc_edit_text_inset_horizontal_material = 0x7f080033; public static final int abc_edit_text_inset_top_material = 0x7f080034; public static final int abc_floating_window_z = 0x7f080035; public static final int abc_list_item_padding_horizontal_material = 0x7f080036; public static final int abc_panel_menu_list_width = 0x7f080037; public static final int abc_progress_bar_height_material = 0x7f080038; public static final int abc_search_view_preferred_height = 0x7f080039; public static final int abc_search_view_preferred_width = 0x7f08003a; public static final int abc_seekbar_track_background_height_material = 0x7f08003b; public static final int abc_seekbar_track_progress_height_material = 0x7f08003c; public static final int abc_select_dialog_padding_start_material = 0x7f08003d; public static final int abc_switch_padding = 0x7f080011; public static final int abc_text_size_body_1_material = 0x7f08003e; public static final int abc_text_size_body_2_material = 0x7f08003f; public static final int abc_text_size_button_material = 0x7f080040; public static final int abc_text_size_caption_material = 0x7f080041; public static final int abc_text_size_display_1_material = 0x7f080042; public static final int abc_text_size_display_2_material = 0x7f080043; public static final int abc_text_size_display_3_material = 0x7f080044; public static final int abc_text_size_display_4_material = 0x7f080045; public static final int abc_text_size_headline_material = 0x7f080046; public static final int abc_text_size_large_material = 0x7f080047; public static final int abc_text_size_medium_material = 0x7f080048; public static final int abc_text_size_menu_header_material = 0x7f080049; public static final int abc_text_size_menu_material = 0x7f08004a; public static final int abc_text_size_small_material = 0x7f08004b; public static final int abc_text_size_subhead_material = 0x7f08004c; public static final int abc_text_size_subtitle_material_toolbar = 0x7f080003; public static final int abc_text_size_title_material = 0x7f08004d; public static final int abc_text_size_title_material_toolbar = 0x7f080004; public static final int disabled_alpha_material_dark = 0x7f08004e; public static final int disabled_alpha_material_light = 0x7f08004f; public static final int highlight_alpha_material_colored = 0x7f080050; public static final int highlight_alpha_material_dark = 0x7f080051; public static final int highlight_alpha_material_light = 0x7f080052; public static final int hint_alpha_material_dark = 0x7f080053; public static final int hint_alpha_material_light = 0x7f080054; public static final int hint_pressed_alpha_material_dark = 0x7f080055; public static final int hint_pressed_alpha_material_light = 0x7f080056; public static final int notification_action_icon_size = 0x7f080057; public static final int notification_action_text_size = 0x7f080058; public static final int notification_big_circle_margin = 0x7f080059; public static final int notification_content_margin_start = 0x7f080012; public static final int notification_large_icon_height = 0x7f08005a; public static final int notification_large_icon_width = 0x7f08005b; public static final int notification_main_column_padding_top = 0x7f080013; public static final int notification_media_narrow_margin = 0x7f080014; public static final int notification_right_icon_size = 0x7f08005c; public static final int notification_right_side_padding_top = 0x7f080010; public static final int notification_small_icon_background_padding = 0x7f08005d; public static final int notification_small_icon_size_as_large = 0x7f08005e; public static final int notification_subtext_size = 0x7f08005f; public static final int notification_top_pad = 0x7f080060; public static final int notification_top_pad_large_text = 0x7f080061; } public static final class drawable { public static final int abc_ab_share_pack_mtrl_alpha = 0x7f020000; public static final int abc_action_bar_item_background_material = 0x7f020001; public static final int abc_btn_borderless_material = 0x7f020002; public static final int abc_btn_check_material = 0x7f020003; public static final int abc_btn_check_to_on_mtrl_000 = 0x7f020004; public static final int abc_btn_check_to_on_mtrl_015 = 0x7f020005; public static final int abc_btn_colored_material = 0x7f020006; public static final int abc_btn_default_mtrl_shape = 0x7f020007; public static final int abc_btn_radio_material = 0x7f020008; public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f020009; public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a; public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000b; public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000c; public static final int abc_cab_background_internal_bg = 0x7f02000d; public static final int abc_cab_background_top_material = 0x7f02000e; public static final int abc_cab_background_top_mtrl_alpha = 0x7f02000f; public static final int abc_control_background_material = 0x7f020010; public static final int abc_dialog_material_background = 0x7f020011; public static final int abc_edit_text_material = 0x7f020012; public static final int abc_ic_ab_back_material = 0x7f020013; public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f020014; public static final int abc_ic_clear_material = 0x7f020015; public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f020016; public static final int abc_ic_go_search_api_material = 0x7f020017; public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f020018; public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f020019; public static final int abc_ic_menu_overflow_material = 0x7f02001a; public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001b; public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001c; public static final int abc_ic_menu_share_mtrl_alpha = 0x7f02001d; public static final int abc_ic_search_api_material = 0x7f02001e; public static final int abc_ic_star_black_16dp = 0x7f02001f; public static final int abc_ic_star_black_36dp = 0x7f020020; public static final int abc_ic_star_black_48dp = 0x7f020021; public static final int abc_ic_star_half_black_16dp = 0x7f020022; public static final int abc_ic_star_half_black_36dp = 0x7f020023; public static final int abc_ic_star_half_black_48dp = 0x7f020024; public static final int abc_ic_voice_search_api_material = 0x7f020025; public static final int abc_item_background_holo_dark = 0x7f020026; public static final int abc_item_background_holo_light = 0x7f020027; public static final int abc_list_divider_mtrl_alpha = 0x7f020028; public static final int abc_list_focused_holo = 0x7f020029; public static final int abc_list_longpressed_holo = 0x7f02002a; public static final int abc_list_pressed_holo_dark = 0x7f02002b; public static final int abc_list_pressed_holo_light = 0x7f02002c; public static final int abc_list_selector_background_transition_holo_dark = 0x7f02002d; public static final int abc_list_selector_background_transition_holo_light = 0x7f02002e; public static final int abc_list_selector_disabled_holo_dark = 0x7f02002f; public static final int abc_list_selector_disabled_holo_light = 0x7f020030; public static final int abc_list_selector_holo_dark = 0x7f020031; public static final int abc_list_selector_holo_light = 0x7f020032; public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033; public static final int abc_popup_background_mtrl_mult = 0x7f020034; public static final int abc_ratingbar_indicator_material = 0x7f020035; public static final int abc_ratingbar_material = 0x7f020036; public static final int abc_ratingbar_small_material = 0x7f020037; public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f020038; public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020039; public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f02003a; public static final int abc_scrubber_primary_mtrl_alpha = 0x7f02003b; public static final int abc_scrubber_track_mtrl_alpha = 0x7f02003c; public static final int abc_seekbar_thumb_material = 0x7f02003d; public static final int abc_seekbar_tick_mark_material = 0x7f02003e; public static final int abc_seekbar_track_material = 0x7f02003f; public static final int abc_spinner_mtrl_am_alpha = 0x7f020040; public static final int abc_spinner_textfield_background_material = 0x7f020041; public static final int abc_switch_thumb_material = 0x7f020042; public static final int abc_switch_track_mtrl_alpha = 0x7f020043; public static final int abc_tab_indicator_material = 0x7f020044; public static final int abc_tab_indicator_mtrl_alpha = 0x7f020045; public static final int abc_text_cursor_material = 0x7f020046; public static final int abc_text_select_handle_left_mtrl_dark = 0x7f020047; public static final int abc_text_select_handle_left_mtrl_light = 0x7f020048; public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f020049; public static final int abc_text_select_handle_middle_mtrl_light = 0x7f02004a; public static final int abc_text_select_handle_right_mtrl_dark = 0x7f02004b; public static final int abc_text_select_handle_right_mtrl_light = 0x7f02004c; public static final int abc_textfield_activated_mtrl_alpha = 0x7f02004d; public static final int abc_textfield_default_mtrl_alpha = 0x7f02004e; public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f02004f; public static final int abc_textfield_search_default_mtrl_alpha = 0x7f020050; public static final int abc_textfield_search_material = 0x7f020051; public static final int abc_vector_test = 0x7f020052; public static final int notification_action_background = 0x7f02006b; public static final int notification_bg = 0x7f02006c; public static final int notification_bg_low = 0x7f02006d; public static final int notification_bg_low_normal = 0x7f02006e; public static final int notification_bg_low_pressed = 0x7f02006f; public static final int notification_bg_normal = 0x7f020070; public static final int notification_bg_normal_pressed = 0x7f020071; public static final int notification_icon_background = 0x7f020072; public static final int notification_template_icon_bg = 0x7f02007a; public static final int notification_template_icon_low_bg = 0x7f02007b; public static final int notification_tile_bg = 0x7f020073; public static final int notify_panel_notification_icon_bg = 0x7f020074; } public static final class id { public static final int action0 = 0x7f0c00ab; public static final int action_bar = 0x7f0c004f; public static final int action_bar_activity_content = 0x7f0c0000; public static final int action_bar_container = 0x7f0c004e; public static final int action_bar_root = 0x7f0c004a; public static final int action_bar_spinner = 0x7f0c0001; public static final int action_bar_subtitle = 0x7f0c002d; public static final int action_bar_title = 0x7f0c002c; public static final int action_container = 0x7f0c00a8; public static final int action_context_bar = 0x7f0c0050; public static final int action_divider = 0x7f0c00af; public static final int action_image = 0x7f0c00a9; public static final int action_menu_divider = 0x7f0c0002; public static final int action_menu_presenter = 0x7f0c0003; public static final int action_mode_bar = 0x7f0c004c; public static final int action_mode_bar_stub = 0x7f0c004b; public static final int action_mode_close_button = 0x7f0c002e; public static final int action_text = 0x7f0c00aa; public static final int actions = 0x7f0c00b8; public static final int activity_chooser_view_content = 0x7f0c002f; public static final int add = 0x7f0c001b; public static final int alertTitle = 0x7f0c0043; public static final int always = 0x7f0c0025; public static final int beginning = 0x7f0c0022; public static final int bottom = 0x7f0c002a; public static final int buttonPanel = 0x7f0c0036; public static final int cancel_action = 0x7f0c00ac; public static final int checkbox = 0x7f0c0046; public static final int chronometer = 0x7f0c00b4; public static final int collapseActionView = 0x7f0c0026; public static final int contentPanel = 0x7f0c0039; public static final int custom = 0x7f0c0040; public static final int customPanel = 0x7f0c003f; public static final int decor_content_parent = 0x7f0c004d; public static final int default_activity_button = 0x7f0c0032; public static final int disableHome = 0x7f0c0015; public static final int edit_query = 0x7f0c0051; public static final int end = 0x7f0c0023; public static final int end_padder = 0x7f0c00bd; public static final int expand_activities_button = 0x7f0c0030; public static final int expanded_menu = 0x7f0c0045; public static final int home = 0x7f0c0004; public static final int homeAsUp = 0x7f0c0016; public static final int icon = 0x7f0c0034; public static final int icon_group = 0x7f0c00b9; public static final int ifRoom = 0x7f0c0027; public static final int image = 0x7f0c0031; public static final int info = 0x7f0c00b5; public static final int line1 = 0x7f0c00ba; public static final int line3 = 0x7f0c00bc; public static final int listMode = 0x7f0c0012; public static final int list_item = 0x7f0c0033; public static final int media_actions = 0x7f0c00ae; public static final int middle = 0x7f0c0024; public static final int multiply = 0x7f0c001c; public static final int never = 0x7f0c0028; public static final int none = 0x7f0c0011; public static final int normal = 0x7f0c0013; public static final int notification_background = 0x7f0c00b6; public static final int notification_main_column = 0x7f0c00b1; public static final int notification_main_column_container = 0x7f0c00b0; public static final int parentPanel = 0x7f0c0038; public static final int progress_circular = 0x7f0c0005; public static final int progress_horizontal = 0x7f0c0006; public static final int radio = 0x7f0c0048; public static final int right_icon = 0x7f0c00b7; public static final int right_side = 0x7f0c00b2; public static final int screen = 0x7f0c001d; public static final int scrollIndicatorDown = 0x7f0c003e; public static final int scrollIndicatorUp = 0x7f0c003a; public static final int scrollView = 0x7f0c003b; public static final int search_badge = 0x7f0c0053; public static final int search_bar = 0x7f0c0052; public static final int search_button = 0x7f0c0054; public static final int search_close_btn = 0x7f0c0059; public static final int search_edit_frame = 0x7f0c0055; public static final int search_go_btn = 0x7f0c005b; public static final int search_mag_icon = 0x7f0c0056; public static final int search_plate = 0x7f0c0057; public static final int search_src_text = 0x7f0c0058; public static final int search_voice_btn = 0x7f0c005c; public static final int select_dialog_listview = 0x7f0c005d; public static final int shortcut = 0x7f0c0047; public static final int showCustom = 0x7f0c0017; public static final int showHome = 0x7f0c0018; public static final int showTitle = 0x7f0c0019; public static final int spacer = 0x7f0c0037; public static final int split_action_bar = 0x7f0c0007; public static final int src_atop = 0x7f0c001e; public static final int src_in = 0x7f0c001f; public static final int src_over = 0x7f0c0020; public static final int status_bar_latest_event_content = 0x7f0c00ad; public static final int submenuarrow = 0x7f0c0049; public static final int submit_area = 0x7f0c005a; public static final int tabMode = 0x7f0c0014; public static final int text = 0x7f0c008e; public static final int text2 = 0x7f0c00bb; public static final int textSpacerNoButtons = 0x7f0c003d; public static final int textSpacerNoTitle = 0x7f0c003c; public static final int time = 0x7f0c00b3; public static final int title = 0x7f0c0035; public static final int titleDividerNoCustom = 0x7f0c0044; public static final int title_template = 0x7f0c0042; public static final int top = 0x7f0c002b; public static final int topPanel = 0x7f0c0041; public static final int up = 0x7f0c0008; public static final int useLogo = 0x7f0c001a; public static final int withText = 0x7f0c0029; public static final int wrap_content = 0x7f0c0021; } public static final class integer { public static final int abc_config_activityDefaultDur = 0x7f0d0000; public static final int abc_config_activityShortDur = 0x7f0d0001; public static final int cancel_button_image_alpha = 0x7f0d0002; public static final int status_bar_notification_info_maxnum = 0x7f0d0003; } public static final class layout { public static final int abc_action_bar_title_item = 0x7f040000; public static final int abc_action_bar_up_container = 0x7f040001; public static final int abc_action_bar_view_list_nav_layout = 0x7f040002; public static final int abc_action_menu_item_layout = 0x7f040003; public static final int abc_action_menu_layout = 0x7f040004; public static final int abc_action_mode_bar = 0x7f040005; public static final int abc_action_mode_close_item_material = 0x7f040006; public static final int abc_activity_chooser_view = 0x7f040007; public static final int abc_activity_chooser_view_list_item = 0x7f040008; public static final int abc_alert_dialog_button_bar_material = 0x7f040009; public static final int abc_alert_dialog_material = 0x7f04000a; public static final int abc_alert_dialog_title_material = 0x7f04000b; public static final int abc_dialog_title_material = 0x7f04000c; public static final int abc_expanded_menu_layout = 0x7f04000d; public static final int abc_list_menu_item_checkbox = 0x7f04000e; public static final int abc_list_menu_item_icon = 0x7f04000f; public static final int abc_list_menu_item_layout = 0x7f040010; public static final int abc_list_menu_item_radio = 0x7f040011; public static final int abc_popup_menu_header_item_layout = 0x7f040012; public static final int abc_popup_menu_item_layout = 0x7f040013; public static final int abc_screen_content_include = 0x7f040014; public static final int abc_screen_simple = 0x7f040015; public static final int abc_screen_simple_overlay_action_mode = 0x7f040016; public static final int abc_screen_toolbar = 0x7f040017; public static final int abc_search_dropdown_item_icons_2line = 0x7f040018; public static final int abc_search_view = 0x7f040019; public static final int abc_select_dialog_material = 0x7f04001a; public static final int notification_action = 0x7f040034; public static final int notification_action_tombstone = 0x7f040035; public static final int notification_media_action = 0x7f040036; public static final int notification_media_cancel_action = 0x7f040037; public static final int notification_template_big_media = 0x7f040038; public static final int notification_template_big_media_custom = 0x7f040039; public static final int notification_template_big_media_narrow = 0x7f04003a; public static final int notification_template_big_media_narrow_custom = 0x7f04003b; public static final int notification_template_custom_big = 0x7f04003c; public static final int notification_template_icon_group = 0x7f04003d; public static final int notification_template_lines_media = 0x7f04003e; public static final int notification_template_media = 0x7f04003f; public static final int notification_template_media_custom = 0x7f040040; public static final int notification_template_part_chronometer = 0x7f040041; public static final int notification_template_part_time = 0x7f040042; public static final int select_dialog_item_material = 0x7f040046; public static final int select_dialog_multichoice_material = 0x7f040047; public static final int select_dialog_singlechoice_material = 0x7f040048; public static final int support_simple_spinner_dropdown_item = 0x7f04004c; } public static final class string { public static final int abc_action_bar_home_description = 0x7f070000; public static final int abc_action_bar_home_description_format = 0x7f070001; public static final int abc_action_bar_home_subtitle_description_format = 0x7f070002; public static final int abc_action_bar_up_description = 0x7f070003; public static final int abc_action_menu_overflow_description = 0x7f070004; public static final int abc_action_mode_done = 0x7f070005; public static final int abc_activity_chooser_view_see_all = 0x7f070006; public static final int abc_activitychooserview_choose_application = 0x7f070007; public static final int abc_capital_off = 0x7f070008; public static final int abc_capital_on = 0x7f070009; public static final int abc_font_family_body_1_material = 0x7f070015; public static final int abc_font_family_body_2_material = 0x7f070016; public static final int abc_font_family_button_material = 0x7f070017; public static final int abc_font_family_caption_material = 0x7f070018; public static final int abc_font_family_display_1_material = 0x7f070019; public static final int abc_font_family_display_2_material = 0x7f07001a; public static final int abc_font_family_display_3_material = 0x7f07001b; public static final int abc_font_family_display_4_material = 0x7f07001c; public static final int abc_font_family_headline_material = 0x7f07001d; public static final int abc_font_family_menu_material = 0x7f07001e; public static final int abc_font_family_subhead_material = 0x7f07001f; public static final int abc_font_family_title_material = 0x7f070020; public static final int abc_search_hint = 0x7f07000a; public static final int abc_searchview_description_clear = 0x7f07000b; public static final int abc_searchview_description_query = 0x7f07000c; public static final int abc_searchview_description_search = 0x7f07000d; public static final int abc_searchview_description_submit = 0x7f07000e; public static final int abc_searchview_description_voice = 0x7f07000f; public static final int abc_shareactionprovider_share_with = 0x7f070010; public static final int abc_shareactionprovider_share_with_application = 0x7f070011; public static final int abc_toolbar_collapse_description = 0x7f070012; public static final int search_menu_title = 0x7f070013; public static final int status_bar_notification_info_overflow = 0x7f070014; } public static final class style { public static final int AlertDialog_AppCompat = 0x7f09009f; public static final int AlertDialog_AppCompat_Light = 0x7f0900a0; public static final int Animation_AppCompat_Dialog = 0x7f0900a1; public static final int Animation_AppCompat_DropDownUp = 0x7f0900a2; public static final int Base_AlertDialog_AppCompat = 0x7f0900a4; public static final int Base_AlertDialog_AppCompat_Light = 0x7f0900a5; public static final int Base_Animation_AppCompat_Dialog = 0x7f0900a6; public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0900a7; public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0900a9; public static final int Base_DialogWindowTitle_AppCompat = 0x7f0900a8; public static final int Base_TextAppearance_AppCompat = 0x7f09003f; public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f090040; public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f090041; public static final int Base_TextAppearance_AppCompat_Button = 0x7f090027; public static final int Base_TextAppearance_AppCompat_Caption = 0x7f090042; public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f090043; public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f090044; public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f090045; public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f090046; public static final int Base_TextAppearance_AppCompat_Headline = 0x7f090047; public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f09000b; public static final int Base_TextAppearance_AppCompat_Large = 0x7f090048; public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f09000c; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f090049; public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f09004a; public static final int Base_TextAppearance_AppCompat_Medium = 0x7f09004b; public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f09000d; public static final int Base_TextAppearance_AppCompat_Menu = 0x7f09004c; public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0900aa; public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f09004d; public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f09004e; public static final int Base_TextAppearance_AppCompat_Small = 0x7f09004f; public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f09000e; public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f090050; public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f09000f; public static final int Base_TextAppearance_AppCompat_Title = 0x7f090051; public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f090010; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f090094; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f090052; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f090053; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f090054; public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f090055; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f090056; public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f090057; public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f090058; public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f09009b; public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f09009c; public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f090095; public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900ab; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f090059; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f09005a; public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f09005b; public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f09005c; public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f09005d; public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0900ac; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f09005e; public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f09005f; public static final int Base_ThemeOverlay_AppCompat = 0x7f0900b1; public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0900b2; public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0900b3; public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0900b4; public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f090017; public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f090018; public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0900b5; public static final int Base_Theme_AppCompat = 0x7f090060; public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0900ad; public static final int Base_Theme_AppCompat_Dialog = 0x7f090011; public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f090001; public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f090012; public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0900ae; public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f090013; public static final int Base_Theme_AppCompat_Light = 0x7f090061; public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0900af; public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f090014; public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f090002; public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f090015; public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0900b0; public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f090016; public static final int Base_V11_ThemeOverlay_AppCompat_Dialog = 0x7f09001b; public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f090019; public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f09001a; public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f090023; public static final int Base_V12_Widget_AppCompat_EditText = 0x7f090024; public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f090066; public static final int Base_V21_Theme_AppCompat = 0x7f090062; public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f090063; public static final int Base_V21_Theme_AppCompat_Light = 0x7f090064; public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f090065; public static final int Base_V22_Theme_AppCompat = 0x7f090092; public static final int Base_V22_Theme_AppCompat_Light = 0x7f090093; public static final int Base_V23_Theme_AppCompat = 0x7f090096; public static final int Base_V23_Theme_AppCompat_Light = 0x7f090097; public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0900ba; public static final int Base_V7_Theme_AppCompat = 0x7f0900b6; public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0900b7; public static final int Base_V7_Theme_AppCompat_Light = 0x7f0900b8; public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0900b9; public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0900bb; public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0900bc; public static final int Base_Widget_AppCompat_ActionBar = 0x7f0900bd; public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0900be; public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0900bf; public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f090067; public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f090068; public static final int Base_Widget_AppCompat_ActionButton = 0x7f090069; public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f09006a; public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f09006b; public static final int Base_Widget_AppCompat_ActionMode = 0x7f0900c0; public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0900c1; public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f090025; public static final int Base_Widget_AppCompat_Button = 0x7f09006c; public static final int Base_Widget_AppCompat_ButtonBar = 0x7f090070; public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0900c3; public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f09006d; public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f09006e; public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0900c2; public static final int Base_Widget_AppCompat_Button_Colored = 0x7f090098; public static final int Base_Widget_AppCompat_Button_Small = 0x7f09006f; public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f090071; public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f090072; public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0900c4; public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f090000; public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0900c5; public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f090073; public static final int Base_Widget_AppCompat_EditText = 0x7f090026; public static final int Base_Widget_AppCompat_ImageButton = 0x7f090074; public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0900c6; public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0900c7; public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0900c8; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f090075; public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090076; public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f090077; public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f090078; public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f090079; public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0900c9; public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f09007a; public static final int Base_Widget_AppCompat_ListView = 0x7f09007b; public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f09007c; public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f09007d; public static final int Base_Widget_AppCompat_PopupMenu = 0x7f09007e; public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f09007f; public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0900ca; public static final int Base_Widget_AppCompat_ProgressBar = 0x7f09001c; public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f09001d; public static final int Base_Widget_AppCompat_RatingBar = 0x7f090080; public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f090099; public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f09009a; public static final int Base_Widget_AppCompat_SearchView = 0x7f0900cb; public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0900cc; public static final int Base_Widget_AppCompat_SeekBar = 0x7f090081; public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0900cd; public static final int Base_Widget_AppCompat_Spinner = 0x7f090082; public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f090003; public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f090083; public static final int Base_Widget_AppCompat_Toolbar = 0x7f0900ce; public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f090084; public static final int Platform_AppCompat = 0x7f09001e; public static final int Platform_AppCompat_Light = 0x7f09001f; public static final int Platform_ThemeOverlay_AppCompat = 0x7f090085; public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f090086; public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f090087; public static final int Platform_V11_AppCompat = 0x7f090020; public static final int Platform_V11_AppCompat_Light = 0x7f090021; public static final int Platform_V14_AppCompat = 0x7f090028; public static final int Platform_V14_AppCompat_Light = 0x7f090029; public static final int Platform_V21_AppCompat = 0x7f090088; public static final int Platform_V21_AppCompat_Light = 0x7f090089; public static final int Platform_V25_AppCompat = 0x7f09009d; public static final int Platform_V25_AppCompat_Light = 0x7f09009e; public static final int Platform_Widget_AppCompat_Spinner = 0x7f090022; public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f090031; public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f090032; public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f090033; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f090034; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f090035; public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f090036; public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f09003c; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f090037; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f090038; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f090039; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f09003a; public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f09003b; public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f09003d; public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f09003e; public static final int TextAppearance_AppCompat = 0x7f0900cf; public static final int TextAppearance_AppCompat_Body1 = 0x7f0900d0; public static final int TextAppearance_AppCompat_Body2 = 0x7f0900d1; public static final int TextAppearance_AppCompat_Button = 0x7f0900d2; public static final int TextAppearance_AppCompat_Caption = 0x7f0900d3; public static final int TextAppearance_AppCompat_Display1 = 0x7f0900d4; public static final int TextAppearance_AppCompat_Display2 = 0x7f0900d5; public static final int TextAppearance_AppCompat_Display3 = 0x7f0900d6; public static final int TextAppearance_AppCompat_Display4 = 0x7f0900d7; public static final int TextAppearance_AppCompat_Headline = 0x7f0900d8; public static final int TextAppearance_AppCompat_Inverse = 0x7f0900d9; public static final int TextAppearance_AppCompat_Large = 0x7f0900da; public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0900db; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0900dc; public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0900dd; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0900de; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0900df; public static final int TextAppearance_AppCompat_Medium = 0x7f0900e0; public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0900e1; public static final int TextAppearance_AppCompat_Menu = 0x7f0900e2; public static final int TextAppearance_AppCompat_Notification = 0x7f09002a; public static final int TextAppearance_AppCompat_Notification_Info = 0x7f09008a; public static final int TextAppearance_AppCompat_Notification_Info_Media = 0x7f09008b; public static final int TextAppearance_AppCompat_Notification_Line2 = 0x7f0900e3; public static final int TextAppearance_AppCompat_Notification_Line2_Media = 0x7f0900e4; public static final int TextAppearance_AppCompat_Notification_Media = 0x7f09008c; public static final int TextAppearance_AppCompat_Notification_Time = 0x7f09008d; public static final int TextAppearance_AppCompat_Notification_Time_Media = 0x7f09008e; public static final int TextAppearance_AppCompat_Notification_Title = 0x7f09002b; public static final int TextAppearance_AppCompat_Notification_Title_Media = 0x7f09008f; public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0900e5; public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0900e6; public static final int TextAppearance_AppCompat_Small = 0x7f0900e7; public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0900e8; public static final int TextAppearance_AppCompat_Subhead = 0x7f0900e9; public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0900ea; public static final int TextAppearance_AppCompat_Title = 0x7f0900eb; public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0900ec; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0900ed; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0900ee; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0900ef; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0900f0; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0900f1; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0900f2; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0900f3; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0900f4; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0900f5; public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0900f6; public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0900f7; public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0900f8; public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0900f9; public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900fa; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0900fb; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0900fc; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0900fd; public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0900fe; public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0900ff; public static final int TextAppearance_StatusBar_EventContent = 0x7f09002c; public static final int TextAppearance_StatusBar_EventContent_Info = 0x7f09002d; public static final int TextAppearance_StatusBar_EventContent_Line2 = 0x7f09002e; public static final int TextAppearance_StatusBar_EventContent_Time = 0x7f09002f; public static final int TextAppearance_StatusBar_EventContent_Title = 0x7f090030; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f090100; public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f090101; public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f090102; public static final int ThemeOverlay_AppCompat = 0x7f090115; public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f090116; public static final int ThemeOverlay_AppCompat_Dark = 0x7f090117; public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f090118; public static final int ThemeOverlay_AppCompat_Dialog = 0x7f090119; public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f09011a; public static final int ThemeOverlay_AppCompat_Light = 0x7f09011b; public static final int Theme_AppCompat = 0x7f090103; public static final int Theme_AppCompat_CompactMenu = 0x7f090104; public static final int Theme_AppCompat_DayNight = 0x7f090004; public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f090005; public static final int Theme_AppCompat_DayNight_Dialog = 0x7f090006; public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f090009; public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f090007; public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f090008; public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f09000a; public static final int Theme_AppCompat_Dialog = 0x7f090105; public static final int Theme_AppCompat_DialogWhenLarge = 0x7f090108; public static final int Theme_AppCompat_Dialog_Alert = 0x7f090106; public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f090107; public static final int Theme_AppCompat_Light = 0x7f090109; public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f09010a; public static final int Theme_AppCompat_Light_Dialog = 0x7f09010b; public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f09010e; public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f09010c; public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f09010d; public static final int Theme_AppCompat_Light_NoActionBar = 0x7f09010f; public static final int Theme_AppCompat_NoActionBar = 0x7f090110; public static final int Widget_AppCompat_ActionBar = 0x7f09011c; public static final int Widget_AppCompat_ActionBar_Solid = 0x7f09011d; public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f09011e; public static final int Widget_AppCompat_ActionBar_TabText = 0x7f09011f; public static final int Widget_AppCompat_ActionBar_TabView = 0x7f090120; public static final int Widget_AppCompat_ActionButton = 0x7f090121; public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f090122; public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f090123; public static final int Widget_AppCompat_ActionMode = 0x7f090124; public static final int Widget_AppCompat_ActivityChooserView = 0x7f090125; public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f090126; public static final int Widget_AppCompat_Button = 0x7f090127; public static final int Widget_AppCompat_ButtonBar = 0x7f09012d; public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f09012e; public static final int Widget_AppCompat_Button_Borderless = 0x7f090128; public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f090129; public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f09012a; public static final int Widget_AppCompat_Button_Colored = 0x7f09012b; public static final int Widget_AppCompat_Button_Small = 0x7f09012c; public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f09012f; public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f090130; public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f090131; public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f090132; public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f090133; public static final int Widget_AppCompat_EditText = 0x7f090134; public static final int Widget_AppCompat_ImageButton = 0x7f090135; public static final int Widget_AppCompat_Light_ActionBar = 0x7f090136; public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f090137; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f090138; public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f090139; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f09013a; public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f09013b; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f09013c; public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f09013d; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f09013e; public static final int Widget_AppCompat_Light_ActionButton = 0x7f09013f; public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f090140; public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f090141; public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f090142; public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f090143; public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f090144; public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f090145; public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f090146; public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f090147; public static final int Widget_AppCompat_Light_PopupMenu = 0x7f090148; public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f090149; public static final int Widget_AppCompat_Light_SearchView = 0x7f09014a; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f09014b; public static final int Widget_AppCompat_ListMenuView = 0x7f09014c; public static final int Widget_AppCompat_ListPopupWindow = 0x7f09014d; public static final int Widget_AppCompat_ListView = 0x7f09014e; public static final int Widget_AppCompat_ListView_DropDown = 0x7f09014f; public static final int Widget_AppCompat_ListView_Menu = 0x7f090150; public static final int Widget_AppCompat_NotificationActionContainer = 0x7f090090; public static final int Widget_AppCompat_NotificationActionText = 0x7f090091; public static final int Widget_AppCompat_PopupMenu = 0x7f090151; public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f090152; public static final int Widget_AppCompat_PopupWindow = 0x7f090153; public static final int Widget_AppCompat_ProgressBar = 0x7f090154; public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f090155; public static final int Widget_AppCompat_RatingBar = 0x7f090156; public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f090157; public static final int Widget_AppCompat_RatingBar_Small = 0x7f090158; public static final int Widget_AppCompat_SearchView = 0x7f090159; public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f09015a; public static final int Widget_AppCompat_SeekBar = 0x7f09015b; public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f09015c; public static final int Widget_AppCompat_Spinner = 0x7f09015d; public static final int Widget_AppCompat_Spinner_DropDown = 0x7f09015e; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f09015f; public static final int Widget_AppCompat_Spinner_Underlined = 0x7f090160; public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f090161; public static final int Widget_AppCompat_Toolbar = 0x7f090162; public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f090163; } public static final class styleable { public static final int[] ActionBar = { 0x7f010002, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f010087 }; public static final int[] ActionBarLayout = { 0x010100b3 }; public static final int ActionBarLayout_android_layout_gravity = 0; public static final int ActionBar_background = 10; public static final int ActionBar_backgroundSplit = 12; public static final int ActionBar_backgroundStacked = 11; public static final int ActionBar_contentInsetEnd = 21; public static final int ActionBar_contentInsetEndWithActions = 25; public static final int ActionBar_contentInsetLeft = 22; public static final int ActionBar_contentInsetRight = 23; public static final int ActionBar_contentInsetStart = 20; public static final int ActionBar_contentInsetStartWithNavigation = 24; public static final int ActionBar_customNavigationLayout = 13; public static final int ActionBar_displayOptions = 3; public static final int ActionBar_divider = 9; public static final int ActionBar_elevation = 26; public static final int ActionBar_height = 0; public static final int ActionBar_hideOnContentScroll = 19; public static final int ActionBar_homeAsUpIndicator = 28; public static final int ActionBar_homeLayout = 14; public static final int ActionBar_icon = 7; public static final int ActionBar_indeterminateProgressStyle = 16; public static final int ActionBar_itemPadding = 18; public static final int ActionBar_logo = 8; public static final int ActionBar_navigationMode = 2; public static final int ActionBar_popupTheme = 27; public static final int ActionBar_progressBarPadding = 17; public static final int ActionBar_progressBarStyle = 15; public static final int ActionBar_subtitle = 4; public static final int ActionBar_subtitleTextStyle = 6; public static final int ActionBar_title = 1; public static final int ActionBar_titleTextStyle = 5; public static final int[] ActionMenuItemView = { 0x0101013f }; public static final int ActionMenuItemView_android_minWidth = 0; public static final int[] ActionMenuView = { }; public static final int[] ActionMode = { 0x7f010002, 0x7f010033, 0x7f010034, 0x7f010038, 0x7f01003a, 0x7f01004a }; public static final int ActionMode_background = 3; public static final int ActionMode_backgroundSplit = 4; public static final int ActionMode_closeItemLayout = 5; public static final int ActionMode_height = 0; public static final int ActionMode_subtitleTextStyle = 2; public static final int ActionMode_titleTextStyle = 1; public static final int[] ActivityChooserView = { 0x7f01004b, 0x7f01004c }; public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; public static final int ActivityChooserView_initialActivityCount = 0; public static final int[] AlertDialog = { 0x010100f2, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052 }; public static final int AlertDialog_android_layout = 0; public static final int AlertDialog_buttonPanelSideLayout = 1; public static final int AlertDialog_listItemLayout = 5; public static final int AlertDialog_listLayout = 2; public static final int AlertDialog_multiChoiceItemLayout = 3; public static final int AlertDialog_showTitle = 6; public static final int AlertDialog_singleChoiceItemLayout = 4; public static final int[] AppCompatImageView = { 0x01010119, 0x7f010053 }; public static final int AppCompatImageView_android_src = 0; public static final int AppCompatImageView_srcCompat = 1; public static final int[] AppCompatSeekBar = { 0x01010142, 0x7f010054, 0x7f010055, 0x7f010056 }; 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 = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 }; public static final int AppCompatTextHelper_android_drawableBottom = 2; public static final int AppCompatTextHelper_android_drawableEnd = 6; 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_drawableTop = 1; public static final int AppCompatTextHelper_android_textAppearance = 0; public static final int[] AppCompatTextView = { 0x01010034, 0x7f010057 }; public static final int AppCompatTextView_android_textAppearance = 0; public static final int AppCompatTextView_textAllCaps = 1; public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8 }; public static final int AppCompatTheme_actionBarDivider = 23; public static final int AppCompatTheme_actionBarItemBackground = 24; public static final int AppCompatTheme_actionBarPopupTheme = 17; public static final int AppCompatTheme_actionBarSize = 22; public static final int AppCompatTheme_actionBarSplitStyle = 19; public static final int AppCompatTheme_actionBarStyle = 18; public static final int AppCompatTheme_actionBarTabBarStyle = 13; public static final int AppCompatTheme_actionBarTabStyle = 12; public static final int AppCompatTheme_actionBarTabTextStyle = 14; public static final int AppCompatTheme_actionBarTheme = 20; public static final int AppCompatTheme_actionBarWidgetTheme = 21; public static final int AppCompatTheme_actionButtonStyle = 50; public static final int AppCompatTheme_actionDropDownStyle = 46; public static final int AppCompatTheme_actionMenuTextAppearance = 25; public static final int AppCompatTheme_actionMenuTextColor = 26; public static final int AppCompatTheme_actionModeBackground = 29; public static final int AppCompatTheme_actionModeCloseButtonStyle = 28; public static final int AppCompatTheme_actionModeCloseDrawable = 31; public static final int AppCompatTheme_actionModeCopyDrawable = 33; public static final int AppCompatTheme_actionModeCutDrawable = 32; public static final int AppCompatTheme_actionModeFindDrawable = 37; public static final int AppCompatTheme_actionModePasteDrawable = 34; public static final int AppCompatTheme_actionModePopupWindowStyle = 39; public static final int AppCompatTheme_actionModeSelectAllDrawable = 35; public static final int AppCompatTheme_actionModeShareDrawable = 36; public static final int AppCompatTheme_actionModeSplitBackground = 30; public static final int AppCompatTheme_actionModeStyle = 27; public static final int AppCompatTheme_actionModeWebSearchDrawable = 38; public static final int AppCompatTheme_actionOverflowButtonStyle = 15; public static final int AppCompatTheme_actionOverflowMenuStyle = 16; public static final int AppCompatTheme_activityChooserViewStyle = 58; public static final int AppCompatTheme_alertDialogButtonGroupStyle = 94; public static final int AppCompatTheme_alertDialogCenterButtons = 95; public static final int AppCompatTheme_alertDialogStyle = 93; public static final int AppCompatTheme_alertDialogTheme = 96; public static final int AppCompatTheme_android_windowAnimationStyle = 1; public static final int AppCompatTheme_android_windowIsFloating = 0; public static final int AppCompatTheme_autoCompleteTextViewStyle = 101; public static final int AppCompatTheme_borderlessButtonStyle = 55; public static final int AppCompatTheme_buttonBarButtonStyle = 52; public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 99; public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 100; public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 98; public static final int AppCompatTheme_buttonBarStyle = 51; public static final int AppCompatTheme_buttonStyle = 102; public static final int AppCompatTheme_buttonStyleSmall = 103; public static final int AppCompatTheme_checkboxStyle = 104; public static final int AppCompatTheme_checkedTextViewStyle = 105; public static final int AppCompatTheme_colorAccent = 85; public static final int AppCompatTheme_colorBackgroundFloating = 92; public static final int AppCompatTheme_colorButtonNormal = 89; public static final int AppCompatTheme_colorControlActivated = 87; public static final int AppCompatTheme_colorControlHighlight = 88; public static final int AppCompatTheme_colorControlNormal = 86; public static final int AppCompatTheme_colorPrimary = 83; public static final int AppCompatTheme_colorPrimaryDark = 84; public static final int AppCompatTheme_colorSwitchThumbNormal = 90; public static final int AppCompatTheme_controlBackground = 91; public static final int AppCompatTheme_dialogPreferredPadding = 44; public static final int AppCompatTheme_dialogTheme = 43; public static final int AppCompatTheme_dividerHorizontal = 57; public static final int AppCompatTheme_dividerVertical = 56; public static final int AppCompatTheme_dropDownListViewStyle = 75; public static final int AppCompatTheme_dropdownListPreferredItemHeight = 47; public static final int AppCompatTheme_editTextBackground = 64; public static final int AppCompatTheme_editTextColor = 63; public static final int AppCompatTheme_editTextStyle = 106; public static final int AppCompatTheme_homeAsUpIndicator = 49; public static final int AppCompatTheme_imageButtonStyle = 65; public static final int AppCompatTheme_listChoiceBackgroundIndicator = 82; public static final int AppCompatTheme_listDividerAlertDialog = 45; public static final int AppCompatTheme_listMenuViewStyle = 114; public static final int AppCompatTheme_listPopupWindowStyle = 76; public static final int AppCompatTheme_listPreferredItemHeight = 70; public static final int AppCompatTheme_listPreferredItemHeightLarge = 72; public static final int AppCompatTheme_listPreferredItemHeightSmall = 71; public static final int AppCompatTheme_listPreferredItemPaddingLeft = 73; public static final int AppCompatTheme_listPreferredItemPaddingRight = 74; public static final int AppCompatTheme_panelBackground = 79; public static final int AppCompatTheme_panelMenuListTheme = 81; public static final int AppCompatTheme_panelMenuListWidth = 80; public static final int AppCompatTheme_popupMenuStyle = 61; public static final int AppCompatTheme_popupWindowStyle = 62; public static final int AppCompatTheme_radioButtonStyle = 107; public static final int AppCompatTheme_ratingBarStyle = 108; public static final int AppCompatTheme_ratingBarStyleIndicator = 109; public static final int AppCompatTheme_ratingBarStyleSmall = 110; public static final int AppCompatTheme_searchViewStyle = 69; public static final int AppCompatTheme_seekBarStyle = 111; public static final int AppCompatTheme_selectableItemBackground = 53; public static final int AppCompatTheme_selectableItemBackgroundBorderless = 54; public static final int AppCompatTheme_spinnerDropDownItemStyle = 48; public static final int AppCompatTheme_spinnerStyle = 112; public static final int AppCompatTheme_switchStyle = 113; public static final int AppCompatTheme_textAppearanceLargePopupMenu = 40; public static final int AppCompatTheme_textAppearanceListItem = 77; public static final int AppCompatTheme_textAppearanceListItemSmall = 78; public static final int AppCompatTheme_textAppearancePopupMenuHeader = 42; public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 67; public static final int AppCompatTheme_textAppearanceSearchResultTitle = 66; public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 41; public static final int AppCompatTheme_textColorAlertDialogListItem = 97; public static final int AppCompatTheme_textColorSearchUrl = 68; public static final int AppCompatTheme_toolbarNavigationButtonStyle = 60; public static final int AppCompatTheme_toolbarStyle = 59; public static final int AppCompatTheme_windowActionBar = 2; public static final int AppCompatTheme_windowActionBarOverlay = 4; public static final int AppCompatTheme_windowActionModeOverlay = 5; public static final int AppCompatTheme_windowFixedHeightMajor = 9; public static final int AppCompatTheme_windowFixedHeightMinor = 7; public static final int AppCompatTheme_windowFixedWidthMajor = 6; public static final int AppCompatTheme_windowFixedWidthMinor = 8; public static final int AppCompatTheme_windowMinWidthMajor = 10; public static final int AppCompatTheme_windowMinWidthMinor = 11; public static final int AppCompatTheme_windowNoTitle = 3; public static final int[] ButtonBarLayout = { 0x7f0100c9 }; public static final int ButtonBarLayout_allowStacking = 0; public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f0100ca }; public static final int ColorStateListItem_alpha = 2; public static final int ColorStateListItem_android_alpha = 1; public static final int ColorStateListItem_android_color = 0; public static final int[] CompoundButton = { 0x01010107, 0x7f0100cb, 0x7f0100cc }; 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[] DrawerArrowToggle = { 0x7f0100cd, 0x7f0100ce, 0x7f0100cf, 0x7f0100d0, 0x7f0100d1, 0x7f0100d2, 0x7f0100d3, 0x7f0100d4 }; public static final int DrawerArrowToggle_arrowHeadLength = 4; public static final int DrawerArrowToggle_arrowShaftLength = 5; public static final int DrawerArrowToggle_barLength = 6; public static final int DrawerArrowToggle_color = 0; public static final int DrawerArrowToggle_drawableSize = 2; public static final int DrawerArrowToggle_gapBetweenBars = 3; public static final int DrawerArrowToggle_spinBars = 1; public static final int DrawerArrowToggle_thickness = 7; public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f010037, 0x7f0100d5, 0x7f0100d6, 0x7f0100d7 }; public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; public static final int LinearLayoutCompat_Layout_android_layout_height = 2; public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; public static final int LinearLayoutCompat_Layout_android_layout_width = 1; public static final int LinearLayoutCompat_android_baselineAligned = 2; public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; public static final int LinearLayoutCompat_android_gravity = 0; public static final int LinearLayoutCompat_android_orientation = 1; public static final int LinearLayoutCompat_android_weightSum = 4; public static final int LinearLayoutCompat_divider = 5; public static final int LinearLayoutCompat_dividerPadding = 8; public static final int LinearLayoutCompat_measureWithLargestChild = 6; public static final int LinearLayoutCompat_showDividers = 7; public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; public static final int MenuGroup_android_checkableBehavior = 5; public static final int MenuGroup_android_enabled = 0; public static final int MenuGroup_android_id = 1; public static final int MenuGroup_android_menuCategory = 3; public static final int MenuGroup_android_orderInCategory = 4; public static final int MenuGroup_android_visible = 2; public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f0100d8, 0x7f0100d9, 0x7f0100da, 0x7f0100db, 0x7f0100dc, 0x7f0100dd }; public static final int MenuItem_actionLayout = 14; public static final int MenuItem_actionProviderClass = 16; public static final int MenuItem_actionViewClass = 15; public static final int MenuItem_android_alphabeticShortcut = 9; public static final int MenuItem_android_checkable = 11; public static final int MenuItem_android_checked = 3; public static final int MenuItem_android_enabled = 1; public static final int MenuItem_android_icon = 0; public static final int MenuItem_android_id = 2; public static final int MenuItem_android_menuCategory = 5; public static final int MenuItem_android_numericShortcut = 10; public static final int MenuItem_android_onClick = 12; 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_visible = 4; public static final int MenuItem_contentDescription = 17; public static final int MenuItem_showAsAction = 13; public static final int MenuItem_tooltipText = 18; public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f0100de, 0x7f0100df }; public static final int MenuView_android_headerBackground = 4; public static final int MenuView_android_horizontalDivider = 2; public static final int MenuView_android_itemBackground = 5; public static final int MenuView_android_itemIconDisabledAlpha = 6; public static final int MenuView_android_itemTextAppearance = 1; public static final int MenuView_android_verticalDivider = 3; public static final int MenuView_android_windowAnimationStyle = 0; public static final int MenuView_preserveIconSpacing = 7; public static final int MenuView_subMenuArrow = 8; public static final int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f0100e0 }; public static final int[] PopupWindowBackgroundState = { 0x7f0100e1 }; public static final int PopupWindowBackgroundState_state_above_anchor = 0; public static final int PopupWindow_android_popupAnimationStyle = 1; public static final int PopupWindow_android_popupBackground = 0; public static final int PopupWindow_overlapAnchor = 2; public static final int[] RecycleListView = { 0x7f0100e2, 0x7f0100e3 }; public static final int RecycleListView_paddingBottomNoButtons = 0; public static final int RecycleListView_paddingTopNoTitle = 1; public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0100e4, 0x7f0100e5, 0x7f0100e6, 0x7f0100e7, 0x7f0100e8, 0x7f0100e9, 0x7f0100ea, 0x7f0100eb, 0x7f0100ec, 0x7f0100ed, 0x7f0100ee, 0x7f0100ef, 0x7f0100f0 }; public static final int SearchView_android_focusable = 0; public static final int SearchView_android_imeOptions = 3; public static final int SearchView_android_inputType = 2; public static final int SearchView_android_maxWidth = 1; public static final int SearchView_closeIcon = 8; public static final int SearchView_commitIcon = 13; public static final int SearchView_defaultQueryHint = 7; public static final int SearchView_goIcon = 9; public static final int SearchView_iconifiedByDefault = 5; public static final int SearchView_layout = 4; public static final int SearchView_queryBackground = 15; public static final int SearchView_queryHint = 6; public static final int SearchView_searchHintIcon = 11; public static final int SearchView_searchIcon = 10; public static final int SearchView_submitBackground = 16; public static final int SearchView_suggestionRowLayout = 14; public static final int SearchView_voiceIcon = 12; public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f010049 }; public static final int Spinner_android_dropDownWidth = 3; 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_popupTheme = 4; public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0100f1, 0x7f0100f2, 0x7f0100f3, 0x7f0100f4, 0x7f0100f5, 0x7f0100f6, 0x7f0100f7, 0x7f0100f8, 0x7f0100f9, 0x7f0100fa, 0x7f0100fb }; public static final int SwitchCompat_android_textOff = 1; public static final int SwitchCompat_android_textOn = 0; public static final int SwitchCompat_android_thumb = 2; public static final int SwitchCompat_showText = 13; public static final int SwitchCompat_splitTrack = 12; public static final int SwitchCompat_switchMinWidth = 10; public static final int SwitchCompat_switchPadding = 11; public static final int SwitchCompat_switchTextAppearance = 9; public static final int SwitchCompat_thumbTextPadding = 8; public static final int SwitchCompat_thumbTint = 3; public static final int SwitchCompat_thumbTintMode = 4; public static final int SwitchCompat_track = 5; public static final int SwitchCompat_trackTint = 6; public static final int SwitchCompat_trackTintMode = 7; public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f010057 }; public static final int TextAppearance_android_shadowColor = 5; public static final int TextAppearance_android_shadowDx = 6; public static final int TextAppearance_android_shadowDy = 7; public static final int TextAppearance_android_shadowRadius = 8; public static final int TextAppearance_android_textColor = 3; public static final int TextAppearance_android_textColorHint = 4; public static final int TextAppearance_android_textSize = 0; public static final int TextAppearance_android_textStyle = 2; public static final int TextAppearance_android_typeface = 1; public static final int TextAppearance_textAllCaps = 9; public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f01002f, 0x7f010032, 0x7f010036, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010049, 0x7f0100fc, 0x7f0100fd, 0x7f0100fe, 0x7f0100ff, 0x7f010100, 0x7f010101, 0x7f010102, 0x7f010103, 0x7f010104, 0x7f010105, 0x7f010106, 0x7f010107, 0x7f010108, 0x7f010109, 0x7f01010a, 0x7f01010b, 0x7f01010c }; public static final int Toolbar_android_gravity = 0; public static final int Toolbar_android_minHeight = 1; public static final int Toolbar_buttonGravity = 21; public static final int Toolbar_collapseContentDescription = 23; public static final int Toolbar_collapseIcon = 22; public static final int Toolbar_contentInsetEnd = 6; public static final int Toolbar_contentInsetEndWithActions = 10; public static final int Toolbar_contentInsetLeft = 7; public static final int Toolbar_contentInsetRight = 8; public static final int Toolbar_contentInsetStart = 5; public static final int Toolbar_contentInsetStartWithNavigation = 9; public static final int Toolbar_logo = 4; public static final int Toolbar_logoDescription = 26; public static final int Toolbar_maxButtonHeight = 20; public static final int Toolbar_navigationContentDescription = 25; public static final int Toolbar_navigationIcon = 24; public static final int Toolbar_popupTheme = 11; public static final int Toolbar_subtitle = 3; public static final int Toolbar_subtitleTextAppearance = 13; public static final int Toolbar_subtitleTextColor = 28; public static final int Toolbar_title = 2; public static final int Toolbar_titleMargin = 14; public static final int Toolbar_titleMarginBottom = 18; public static final int Toolbar_titleMarginEnd = 16; public static final int Toolbar_titleMarginStart = 15; public static final int Toolbar_titleMarginTop = 17; public static final int Toolbar_titleMargins = 19; public static final int Toolbar_titleTextAppearance = 12; public static final int Toolbar_titleTextColor = 27; public static final int[] View = { 0x01010000, 0x010100da, 0x7f01010d, 0x7f01010e, 0x7f01010f }; public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f010110, 0x7f010111 }; 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 = { 0x010100d0, 0x010100f2, 0x010100f3 }; public static final int ViewStubCompat_android_id = 0; public static final int ViewStubCompat_android_inflatedId = 2; public static final int ViewStubCompat_android_layout = 1; public static final int View_android_focusable = 1; public static final int View_android_theme = 0; public static final int View_paddingEnd = 3; public static final int View_paddingStart = 2; public static final int View_theme = 4; } }
c85b373b045bba05403629648dc23f5d6ef77d14
03c8aef8df1daa6fa14234f9fdd4c472bfba90fa
/my-learn/src/main/java/com/yd/java8/lambda/FilterEmployeeForAge.java
b448c2a6fdfd8033bcef2c4bcd1bc01650d5082a
[]
no_license
sayHellowWord/learn-for-me
331cf7d730443b590c9ba1f51acb4522f0e934c5
999bd8d6188bb45118c96ed6516bfccf817d7fbc
refs/heads/master
2022-11-14T10:33:14.331968
2020-08-22T15:29:33
2020-08-22T15:29:33
83,437,860
0
0
null
2022-11-04T22:48:41
2017-02-28T13:50:58
Java
UTF-8
Java
false
false
381
java
package com.yd.java8.lambda; import com.yd.java8.Employee; /** * Created by nick on 2018/1/28. * * @author nick * @date 2018/1/28 */ public class FilterEmployeeForAge implements MyPredicate { @Override public boolean command(Object o) { if (o instanceof Employee) { return ((Employee) o).getAge() > 10; } return false; } }
66ddc7c7ffb179663a70329f24396228f924818e
aad82f53c79bb1b0fa0523ca0b9dd18d8f39ec6d
/Haritha Biju/28-01-2020/program_display_withou_loop.java
b316d3c2e536cb136d6670039fe6ffaabbea1e57
[]
no_license
Cognizant-Training-Coimbatore/Lab-Excercise-Batch-2
54b4d87238949f3ffa0b3f0209089a1beb93befe
58d65b309377b1b86a54d541c3d1ef5acb868381
refs/heads/master
2020-12-22T06:12:23.330335
2020-03-17T12:32:29
2020-03-17T12:32:29
236,676,704
1
0
null
2020-10-13T19:56:02
2020-01-28T07:00:34
Java
UTF-8
Java
false
false
629
java
import java.util.ArrayList; import java.util.List; //string display without for loop public class program_display_withou_loop { static void printArray(int myarray[]) { for(int x:myarray) System.out.println(x); } static void printArrayList(ArrayList list1) { for(Object obj:list1) System.out.println(obj); } public static void main(String[] args) { int n[]=new int[4]; n[0]=1; n[1]=3; n[3]=7; n[2]=5; printArray(n); ArrayList list=new ArrayList(); list.add("Java"); list.add("C++"); list.add("C"); printArrayList(list); } }
4ffecb2ddf3ad0ca047959d0269b237fd90c2387
56dfdd3499f34800afc09f75831b119631ae0dd7
/app/src/main/java/com/example/jorge/swatter/Figura.java
3bc9ea1884732fea93f2b78eb63b2b254155ff80
[]
no_license
jorgemc91/JuegoSwatter
f61b384729430e1ec371e2f4360ad9a7268ff299
532109baeb12717eb67f1d6c2da26283247e881e
refs/heads/master
2021-01-13T01:31:14.891012
2015-03-02T19:52:34
2015-03-02T19:52:34
31,559,535
0
0
null
null
null
null
UTF-8
Java
false
false
2,720
java
package com.example.jorge.swatter; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import java.util.Random; /** * Created by Jorge on 25/02/2015. */ public class Figura { private int ejeY = 0; private int direccionY; private int ejeX = 0; private int direccionX; private float ejeXFijo = 0.0f, ejeYFijo = 0.0f; private Bitmap bmp; private int alto, ancho; private static int anchoMax=0, altoMax=0; public Figura(Bitmap bmp) { this.bmp = bmp; this.ancho=bmp.getWidth(); this.alto=bmp.getHeight(); setMovimiento(); setPosicion(); } public static void setDimension(int ancho, int alto){ anchoMax=ancho; altoMax=alto; } public void setPosicion(){ ejeX = 0; ejeY = 0; ejeXFijo = 0.0f; ejeYFijo = 0.0f; } public void setPosicionAleatorio(){ Random rnd = new Random(); ejeX = ancho + rnd.nextInt(anchoMax - ancho*2); ejeY = alto + rnd.nextInt(altoMax- alto*2) ; } public void setMovimiento(){ Random rnd = new Random(); direccionX=rnd.nextInt(12)-5; if(direccionX==0) direccionX=2; direccionY=rnd.nextInt(12)-5; if(direccionY==0) direccionY=2; } //Aumenta la velocidad de las moscas. public void aumentarVelocidad(){ direccionX = 30; direccionY = 30; } public void dibujar(Canvas canvas) { movimiento(); canvas.drawBitmap(bmp, ejeX, ejeY, null); } private void movimiento(){ if (ejeX > anchoMax - ancho - direccionX || ejeX + direccionX < 0) { direccionX = -direccionX; } ejeX = ejeX + direccionX; if (ejeY > altoMax - alto - direccionY || ejeY + direccionY < 0) { direccionY = -direccionY; } ejeY = ejeY + direccionY; } public boolean tocado(float x, float y){ return x > ejeX && x < ejeX + ancho && y > ejeY && y < ejeY + alto; } //Detiene el elemento, en la posicion que lo hemos tocado. public void parar(float x, float y){ direccionX=0; direccionY=0; ejeXFijo=x; ejeYFijo=y; } //Cambia la imagen de la mosca public void cambiarMosca(Context context){ bmp = BitmapFactory.decodeResource(context.getResources(), R.drawable.moscamuerte); } //Cambia la imagen de la avispa public void cambiarAvispa(Context context){ bmp = BitmapFactory.decodeResource(context.getResources(), R.drawable.avispamuerte); } }
daf8299bd1bf994c685edefe7ae8058610f03859
3cc644883c3be68dc4aca8d9e35941a592f33670
/core/metamodel/src/main/java/org/apache/isis/core/metamodel/valuesemantics/CommandDtoValueSemantics.java
0a759e8594d2acc0386d0bee2f54e9b934dd30ed
[ "Apache-2.0" ]
permissive
IsisVgoddess/isis
0e09eba4d9a791612dd03b01898d8574452b29a9
d34e5ed20578d274635424a9f41b4450c5109365
refs/heads/master
2023-03-07T08:57:38.060227
2022-03-11T05:55:55
2022-03-11T05:55:55
208,384,527
1
0
Apache-2.0
2023-03-06T22:25:01
2019-09-14T03:42:20
Java
UTF-8
Java
false
false
1,800
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.isis.core.metamodel.valuesemantics; import javax.inject.Named; import org.springframework.stereotype.Component; import org.apache.isis.applib.util.schema.CommandDtoUtils; import org.apache.isis.commons.collections.Can; import org.apache.isis.schema.cmd.v2.CommandDto; @Component @Named("isis.val.CommandDtoValueSemantics") public class CommandDtoValueSemantics extends XmlValueSemanticsAbstract<CommandDto> { @Override public final Class<CommandDto> getCorrespondingClass() { return CommandDto.class; } // -- ENCODER DECODER @Override public final String toXml(final CommandDto commandDto) { return CommandDtoUtils.toXml(commandDto); } @Override public final CommandDto fromXml(final String xml) { return CommandDtoUtils.fromXml(xml); } // -- EXAMPLES @Override public Can<CommandDto> getExamples() { return Can.of(new CommandDto(), new CommandDto()); } }
5310bab43f484be38c2efb9ea9d5cb5661815af2
346e09e8d3300a46936eac585884bd3e89aae596
/app/src/main/java/com/yunma/nettyplugin/receiver/CompleteReceiver.java
4b7a3014db11448181c842d1f81ed657f6dafd11
[]
no_license
huyonggang/NettyPlugin
760aeea4cc596061b950341a92ba8a5fce82922d
c0f516f6757968e06dfaaaaedcd71a54f7eef604
refs/heads/master
2020-04-01T22:56:56.894692
2018-11-22T09:05:16
2018-11-22T09:05:16
153,734,161
0
0
null
null
null
null
UTF-8
Java
false
false
2,245
java
package com.yunma.nettyplugin.receiver; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.SystemClock; import android.util.Log; import com.yunma.nettyplugin.service.ClientService; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * Created by huyg on 2018/11/11. */ public class CompleteReceiver extends BroadcastReceiver { public static final String ACTION_THREE_CLOCK_REBOOT = "ACTION_THREE_CLOCK_REBOOT"; public static final String ACTION_TIME_SET = "android.intent.action.TIME_TICK"; public static final String ACTION_BOOT_COMPLETE = "android.intent.action.BOOT_COMPLETED"; public static final String TAG = "CompleteReceiver"; @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); switch (action) { case ACTION_TIME_SET: start3Clock(context); break; case ACTION_THREE_CLOCK_REBOOT: reboot(context); break; case ACTION_BOOT_COMPLETE: Intent service = new Intent(context, ClientService.class); context.startService(service); break; } } public void start3Clock(Context context) { AlarmManager mg = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); Intent mFifteenIntent = new Intent(ACTION_THREE_CLOCK_REBOOT); PendingIntent p = PendingIntent.getBroadcast(context, 0, mFifteenIntent, 0); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 16); calendar.set(Calendar.MINUTE, 40); long selectTime = calendar.getTimeInMillis(); mg.setRepeating(AlarmManager.RTC, selectTime, AlarmManager.INTERVAL_DAY, p); } public static void reboot(Context context) { Intent intent=new Intent(Intent.ACTION_REBOOT); intent.putExtra("nowait", 1); intent.putExtra("interval", 1); intent.putExtra("window", 0); context.sendBroadcast(intent); } }
0582912b4343bd64334cce47a4cb5a1d7875f47a
ac0a656a8dcfa8024aacd509420889a314aa04fd
/spring-cloud-kubernetes-commons/src/test/java/org/springframework/cloud/kubernetes/commons/config/bootstrap/ConfigFailFastEnabledWithCustomRetryConfiguration.java
9dadffa6be458436e60792fe515ae3988709bc61
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
spring-cloud/spring-cloud-kubernetes
104637440c98a8ce9cad5d6324f1bb2eaf0f0a21
f682e37a192bda715f0e9b611e3365400ce98805
refs/heads/main
2023-08-30T03:59:56.580596
2023-08-24T02:26:32
2023-08-24T02:26:32
76,400,426
2,870
951
Apache-2.0
2023-09-13T12:50:03
2016-12-13T21:36:25
Java
UTF-8
Java
false
false
2,155
java
/* * Copyright 2013-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * 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 org.springframework.cloud.kubernetes.commons.config.bootstrap; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.cloud.kubernetes.commons.config.App; import org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties; import org.springframework.cloud.kubernetes.commons.config.RetryProperties; import static org.assertj.core.api.Assertions.assertThat; /** * @author Isik Erhan */ @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = App.class, properties = { "spring.cloud.kubernetes.config.fail-fast=true", "spring.cloud.kubernetes.config.retry.max-attempts=3", "spring.cloud.kubernetes.config.retry.initial-interval=1500", "spring.cloud.kubernetes.config.retry.max-interval=3000", "spring.cloud.kubernetes.config.retry.multiplier=1.5", "spring.main.cloud-platform=KUBERNETES", "spring.cloud.config.enabled=false" }) class ConfigFailFastEnabledWithCustomRetryConfiguration { @Autowired private ConfigMapConfigProperties configMapConfigProperties; @Test void retryConfigurationShouldBeCustomized() { RetryProperties retryProperties = configMapConfigProperties.retry(); assertThat(retryProperties.maxAttempts()).isEqualTo(3); assertThat(retryProperties.initialInterval()).isEqualTo(1500L); assertThat(retryProperties.maxInterval()).isEqualTo(3000L); assertThat(retryProperties.multiplier()).isEqualTo(1.5D); } }
393b2a0fbd88e9e0927191583ce5f5e170b4273e
90d7f7e27a8d7131862c3e576c27d5c04c82d203
/Main.java
b3768e67c0d4ab972fac7bce741fb4c175656f4b
[]
no_license
lmilunovic/Universe-bitset-Politeh-Java-project
05d4475628f9d8c441410e68157330ec98a52ea6
7d754c0d5bdb04329f321841d132ea8bc4f1cf42
refs/heads/master
2021-06-25T17:16:21.090375
2017-08-28T14:54:14
2017-08-28T14:54:14
82,183,776
1
0
null
null
null
null
UTF-8
Java
false
false
257
java
package com.ladislav; public class Main { public static void main(String[] args) { Universe u = new Universe(20); for (int i = 0; i < 20 ; i++) { u.setElement(i); } System.out.println(u.toString()); } }
483758be78a531b1a1fc1f1ed6a8abd0aaa6824b
c8a7974ebdf8c2f2e7cdc34436d667e3f1d29609
/src/main/java/com/tencentcloudapi/vpc/v20170312/models/AssistantCidr.java
e0b473fcc672e2e1c1ad62f5859565015728e722
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-java-en
d6f099a0de82ffd3e30d40bf7465b9469f88ffa6
ba403db7ce36255356aeeb4279d939a113352990
refs/heads/master
2023-08-23T08:54:04.686421
2022-06-28T08:03:02
2022-06-28T08:03:02
193,018,202
0
3
Apache-2.0
2022-06-28T08:03:04
2019-06-21T02:40:54
Java
UTF-8
Java
false
false
4,491
java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 com.tencentcloudapi.vpc.v20170312.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class AssistantCidr extends AbstractModel{ /** * The `ID` of a `VPC` instance, such as `vpc-6v2ht8q5`. */ @SerializedName("VpcId") @Expose private String VpcId; /** * The secondary CIDR, such as `172.16.0.0/16`. */ @SerializedName("CidrBlock") @Expose private String CidrBlock; /** * The secondary CIDR block type. 0: common secondary CIDR block. 1: container secondary CIDR block. Default: 0. */ @SerializedName("AssistantType") @Expose private Long AssistantType; /** * Subnets divided by the secondary CIDR. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("SubnetSet") @Expose private Subnet [] SubnetSet; /** * Get The `ID` of a `VPC` instance, such as `vpc-6v2ht8q5`. * @return VpcId The `ID` of a `VPC` instance, such as `vpc-6v2ht8q5`. */ public String getVpcId() { return this.VpcId; } /** * Set The `ID` of a `VPC` instance, such as `vpc-6v2ht8q5`. * @param VpcId The `ID` of a `VPC` instance, such as `vpc-6v2ht8q5`. */ public void setVpcId(String VpcId) { this.VpcId = VpcId; } /** * Get The secondary CIDR, such as `172.16.0.0/16`. * @return CidrBlock The secondary CIDR, such as `172.16.0.0/16`. */ public String getCidrBlock() { return this.CidrBlock; } /** * Set The secondary CIDR, such as `172.16.0.0/16`. * @param CidrBlock The secondary CIDR, such as `172.16.0.0/16`. */ public void setCidrBlock(String CidrBlock) { this.CidrBlock = CidrBlock; } /** * Get The secondary CIDR block type. 0: common secondary CIDR block. 1: container secondary CIDR block. Default: 0. * @return AssistantType The secondary CIDR block type. 0: common secondary CIDR block. 1: container secondary CIDR block. Default: 0. */ public Long getAssistantType() { return this.AssistantType; } /** * Set The secondary CIDR block type. 0: common secondary CIDR block. 1: container secondary CIDR block. Default: 0. * @param AssistantType The secondary CIDR block type. 0: common secondary CIDR block. 1: container secondary CIDR block. Default: 0. */ public void setAssistantType(Long AssistantType) { this.AssistantType = AssistantType; } /** * Get Subnets divided by the secondary CIDR. Note: This field may return null, indicating that no valid values can be obtained. * @return SubnetSet Subnets divided by the secondary CIDR. Note: This field may return null, indicating that no valid values can be obtained. */ public Subnet [] getSubnetSet() { return this.SubnetSet; } /** * Set Subnets divided by the secondary CIDR. Note: This field may return null, indicating that no valid values can be obtained. * @param SubnetSet Subnets divided by the secondary CIDR. Note: This field may return null, indicating that no valid values can be obtained. */ public void setSubnetSet(Subnet [] SubnetSet) { this.SubnetSet = SubnetSet; } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "VpcId", this.VpcId); this.setParamSimple(map, prefix + "CidrBlock", this.CidrBlock); this.setParamSimple(map, prefix + "AssistantType", this.AssistantType); this.setParamArrayObj(map, prefix + "SubnetSet.", this.SubnetSet); } }
bfc63ca293c5019efcb9413521e9d804c5d7d92e
a757a82e3edded1046be2309cf4a14ca5ecc679b
/src/main/java/leetcode/ReverseNumber.java
63a452b43d198fadb266ab2b9d0ff4e963e632cf
[]
no_license
themayurkumbhar/DataStructure-Java
618905722bdefb8aa0111992f0756c58675e243e
b266da2ccdee01b42cc3279c33a72b3122833aa7
refs/heads/master
2020-06-04T09:15:57.860656
2019-09-27T18:30:35
2019-09-27T18:30:35
191,961,341
1
0
null
2019-09-27T18:32:38
2019-06-14T14:56:41
Java
UTF-8
Java
false
false
717
java
package leetcode; import java.util.Scanner; public class ReverseNumber { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int [] height = new int[n]; for (int i = 0; i < n; i++) { height[i] = sc.nextInt(); } int area=0,l=0; int r = height.length-1; while(l<r){ area = Math.max(area,Math.min(height[l],height[r])*(r-l)); if(height[l]>height[r]){ r--; }else{ l++; } } System.out.println(area); String query = "piyush"; System.out.println(query.substring(0,2)); } }
6d1e109ade62053a1b380bfc5fcb8425104e6040
dbb6f1d2ec28b9a8251bf72e319874bbe5b29566
/src/main/java/br/com/nomadesdeveloper/AgendaPaia/controller/GrupoController.java
e6f7ff30841159ba44d667f4d7d36b831ea33b0b
[]
no_license
tiagonomade/Agenda-Paia-2017.11.29
da6248c29b9b39c6ecd35f47791bd88bb9f2cca4
cace4777b44cf2533ab0ffa2b62029bdd0fa53ac
refs/heads/master
2021-08-22T08:37:44.766336
2017-11-29T19:21:24
2017-11-29T19:21:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,001
java
package br.com.nomadesdeveloper.AgendaPaia.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import br.com.nomadesdeveloper.AgendaPaia.model.Grupo; import br.com.nomadesdeveloper.AgendaPaia.repository.GrupoRepository; @CrossOrigin(origins = {"*"}) @RestController @RequestMapping("/grupocontroller") public class GrupoController { @Autowired private GrupoRepository grupoRepository; @PostMapping public Grupo inserir(@RequestBody Grupo grupo){ return grupoRepository.save(grupo); } @GetMapping public List<Grupo> buscarTodos(){ return grupoRepository.findAll(); } }
9e17fc967139a7671ad76a64886422ad5fa9abab
6d416878f72d7742bc0c3f935f46ced4e8e9bf6c
/HibernateCore/src/com/demo/Main.java
d7c9d33f8e2f8c3e65bb961c5e85eb2faa08c1ac
[]
no_license
kiranyadav04/sharebazar
37192e48f1b9512a6fbadc5d729c3029b2c6d2e3
c20ee1b51f2d07ac79f851895ba15520f100943c
refs/heads/master
2021-01-18T09:11:56.497990
2015-08-28T06:37:29
2015-08-28T06:37:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,210
java
package com.demo; import org.hibernate.Session; import org.hibernate.stat.Statistics; public class Main { HibernateDaoService hibernateDaoService=new HibernateDaoService(); public static void main(String[] args) { Main main=new Main(); //main.insertEmployee(); //main.insertDepartMent(); Statistics statistics=HibernateUtils.getSessionFactory().getStatistics(); System.out.println("Statics enabled :"+statistics.isStatisticsEnabled()); statistics.setStatisticsEnabled(true); System.out.println("Statics enabled:"+statistics.isStatisticsEnabled()); main.getEmpDetails(1, Employee.class); System.out.println("#################################################"); System.out.println("Cache Hit :"+statistics.getSecondLevelCacheHitCount()); System.out.println("Cache miss:"+statistics.getSecondLevelCacheMissCount()); System.out.println("Cache put:"+ statistics.getSecondLevelCachePutCount()); main.getEmpDetails(2, Employee.class); System.out.println("#################################################"); System.out.println("Cache Hit :"+statistics.getSecondLevelCacheHitCount()); System.out.println("Cache miss:"+statistics.getSecondLevelCacheMissCount()); System.out.println("Cache put:"+ statistics.getSecondLevelCachePutCount()); main.getEmpDetails(3, Employee.class); System.out.println("#################################################"); System.out.println("Cache Hit :"+statistics.getSecondLevelCacheHitCount()); System.out.println("Cache miss:"+statistics.getSecondLevelCacheMissCount()); System.out.println("Cache put:"+ statistics.getSecondLevelCachePutCount()); main.getEmpDetails(2, Employee.class); System.out.println("#################################################"); System.out.println("Cache Hit :"+statistics.getSecondLevelCacheHitCount()); System.out.println("Cache miss:"+statistics.getSecondLevelCacheMissCount()); System.out.println("Cache put:"+ statistics.getSecondLevelCachePutCount()); main.getEmpDetails(1, Employee.class); System.out.println("#################################################"); System.out.println("Cache Hit :"+statistics.getSecondLevelCacheHitCount()); System.out.println("Cache miss:"+statistics.getSecondLevelCacheMissCount()); System.out.println("Cache put:"+ statistics.getSecondLevelCachePutCount()); /* Employee employee=(Employee)main.getEmpDetails(1,Employee.class); System.out.println(employee.getDepartment()); System.out.println("Fetching department :"); DepartmentDTO departmentDTO=(DepartmentDTO)main.getEmpDetails(3, DepartmentDTO.class); System.out.println(departmentDTO); System.out.println(departmentDTO.getEmployee());*/ } public void insertEmployee(){ /*Employee employee=new Employee(); employee.setName("rajeev shukla"); employee.setSalary(25000); DepartmentDTO departmentDTO=new DepartmentDTO(); departmentDTO.setDeptName("ID"); Session session=HibernateUtils.getSessionFactory().openSession(); session.beginTransaction(); System.out.println("emp saved one time."); departmentDTO.setDeptId(employee.getId()); session.save(employee); session.getTransaction().commit(); session.close();*/ } public void insertEmp(){ Employee employee=new Employee("Rajeev ", 1200); Session session=HibernateUtils.getSessionFactory().openSession(); session.beginTransaction(); session.save(employee); session.getTransaction().commit(); session.close(); } public void insertDepartMent(){ DepartmentDTO departmentDTO=new DepartmentDTO(); departmentDTO.setDeptName("IT"); departmentDTO.getEmployeList().add(new Employee("Rajeev", 12000)); departmentDTO.getEmployeList().add(new Employee("Vaibhav", 1500)); Session session=HibernateUtils.getSessionFactory().openSession(); session.beginTransaction(); session.save(departmentDTO); session.getTransaction().commit(); session.close(); } public Object getEmpDetails(int id,Class object1){ Session session=HibernateUtils.getSessionFactory().openSession(); session.beginTransaction(); Object object=(Object)session.get(object1, id); session.getTransaction().commit(); session.close(); return object; } }
4bccee4fdca064f39ca9da9f1b54dc160dbe37fd
9b0cf1cb67d1e97662430445be3c4fae972fdd8a
/app/src/androidTest/java/com/example/mac/exam/ApplicationTest.java
270ef725a647e9c890d99679b6ae9de6a2156d59
[]
no_license
zengying1/Exam
a2913c4b4a632841f8275682ace2ffc94b099dd5
61656916ad434d0ecd47a7db8adfc61e7c5477e4
refs/heads/master
2021-01-10T01:46:02.336775
2015-05-31T15:52:33
2015-05-31T15:52:33
36,607,425
0
0
null
null
null
null
UTF-8
Java
false
false
351
java
package com.example.mac.exam; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
7b48e0d3c6135955b067619deabac9a400cea954
af0c9e767e657ce556e974ba8c45b08e42367030
/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/com/google/android/gms/maps/R.java
63d0bf8042986c6cfc8b81875969c4ecd8cad6e1
[]
no_license
bilquis-siddique/EZ-Park
5df991082880ce7fef60a1faec68f710f645fef4
af9e9e4c069abedca2b106237db5c1cf6d30aa93
refs/heads/master
2020-04-30T23:08:50.129693
2019-03-22T13:20:59
2019-03-22T13:20:59
177,137,384
0
0
null
null
null
null
UTF-8
Java
false
false
4,082
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.google.android.gms.maps; public final class R { private R() {} public static final class attr { private attr() {} public static final int ambientEnabled = 0x7f030029; public static final int cameraBearing = 0x7f03005c; public static final int cameraMaxZoomPreference = 0x7f03005d; public static final int cameraMinZoomPreference = 0x7f03005e; public static final int cameraTargetLat = 0x7f03005f; public static final int cameraTargetLng = 0x7f030060; public static final int cameraTilt = 0x7f030061; public static final int cameraZoom = 0x7f030062; public static final int latLngBoundsNorthEastLatitude = 0x7f03011d; public static final int latLngBoundsNorthEastLongitude = 0x7f03011e; public static final int latLngBoundsSouthWestLatitude = 0x7f03011f; public static final int latLngBoundsSouthWestLongitude = 0x7f030120; public static final int liteMode = 0x7f03016d; public static final int mapType = 0x7f030170; public static final int uiCompass = 0x7f03021d; public static final int uiMapToolbar = 0x7f03021e; public static final int uiRotateGestures = 0x7f03021f; public static final int uiScrollGestures = 0x7f030220; public static final int uiTiltGestures = 0x7f030221; public static final int uiZoomControls = 0x7f030222; public static final int uiZoomGestures = 0x7f030223; public static final int useViewLifecycle = 0x7f030225; public static final int zOrderOnTop = 0x7f030232; } public static final class id { private id() {} public static final int hybrid = 0x7f080071; public static final int none = 0x7f080092; public static final int normal = 0x7f080093; public static final int satellite = 0x7f0800c1; public static final int terrain = 0x7f0800f7; } public static final class styleable { private styleable() {} public static final int[] MapAttrs = { 0x7f030029, 0x7f03005c, 0x7f03005d, 0x7f03005e, 0x7f03005f, 0x7f030060, 0x7f030061, 0x7f030062, 0x7f03011d, 0x7f03011e, 0x7f03011f, 0x7f030120, 0x7f03016d, 0x7f030170, 0x7f03021d, 0x7f03021e, 0x7f03021f, 0x7f030220, 0x7f030221, 0x7f030222, 0x7f030223, 0x7f030225, 0x7f030232 }; public static final int MapAttrs_ambientEnabled = 0; public static final int MapAttrs_cameraBearing = 1; public static final int MapAttrs_cameraMaxZoomPreference = 2; public static final int MapAttrs_cameraMinZoomPreference = 3; public static final int MapAttrs_cameraTargetLat = 4; public static final int MapAttrs_cameraTargetLng = 5; public static final int MapAttrs_cameraTilt = 6; public static final int MapAttrs_cameraZoom = 7; public static final int MapAttrs_latLngBoundsNorthEastLatitude = 8; public static final int MapAttrs_latLngBoundsNorthEastLongitude = 9; public static final int MapAttrs_latLngBoundsSouthWestLatitude = 10; public static final int MapAttrs_latLngBoundsSouthWestLongitude = 11; public static final int MapAttrs_liteMode = 12; public static final int MapAttrs_mapType = 13; public static final int MapAttrs_uiCompass = 14; public static final int MapAttrs_uiMapToolbar = 15; public static final int MapAttrs_uiRotateGestures = 16; public static final int MapAttrs_uiScrollGestures = 17; public static final int MapAttrs_uiTiltGestures = 18; public static final int MapAttrs_uiZoomControls = 19; public static final int MapAttrs_uiZoomGestures = 20; public static final int MapAttrs_useViewLifecycle = 21; public static final int MapAttrs_zOrderOnTop = 22; } }
30a7db34e2caf405a7c237f363f2a590429fa699
c320159b017ac4ca9eb9c62e083af38ba896e3c8
/app/src/androidTest/java/com/example/android/sunshine/app/data/TestDb.java
dceb86316e46c83c35d79bc8cee99abd235b3b64
[]
no_license
Kevin321an/MySunshine
f4611b799d9bdb3cf6f90fec2cb1425d233f1a59
017f1a9a091775ee885893c7c5ac41d63397e8ee
refs/heads/master
2016-09-06T06:14:17.825387
2015-10-22T02:14:19
2015-10-22T02:14:19
39,342,929
0
0
null
null
null
null
UTF-8
Java
false
false
8,713
java
package com.example.android.sunshine.app.data; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.test.AndroidTestCase; import java.util.HashSet; /** * Created by FM on 6/21/2015. */ public class TestDb extends AndroidTestCase { public static final String LOG_TAG = TestDb.class.getSimpleName(); // Since we want each test to start with a clean slate void deleteTheDatabase() { mContext.deleteDatabase(WeatherDbHelper.DATABASE_NAME); } /* This function gets called before each test is executed to delete the database. This makes sure that we always have a clean test. */ public void setUp() { deleteTheDatabase(); } /* Students: Uncomment this test once you've written the code to create the Location table. Note that you will have to have chosen the same column names that I did in my solution for this test to compile, so if you haven't yet done that, this is a good time to change your column names to match mine. Note that this only tests that the Location table has the correct columns, since we give you the code for the weather table. This test does not look at the */ public void testCreateDb() throws Throwable { // build a HashSet of all of the table names we wish to look for // Note that there will be another table in the DB that stores the // Android metadata (db version information) final HashSet<String> tableNameHashSet = new HashSet<String>(); tableNameHashSet.add(WeatherContract.LocationEntry.TABLE_NAME); tableNameHashSet.add(WeatherContract.WeatherEntry.TABLE_NAME); mContext.deleteDatabase(WeatherDbHelper.DATABASE_NAME); SQLiteDatabase db = new WeatherDbHelper( this.mContext).getWritableDatabase(); assertEquals(true, db.isOpen()); // have we created the tables we want? Cursor c = db.rawQuery("SELECT name FROM sqlite_master WHERE type='table'", null); assertTrue("Error: This means that the database has not been created correctly", c.moveToFirst()); // verify that the tables have been created do { tableNameHashSet.remove(c.getString(0)); } while (c.moveToNext()); // if this fails, it means that your database doesn't contain both the location entry // and weather entry tables assertTrue("Error: Your database was created without both the location entry and weather entry tables", tableNameHashSet.isEmpty()); // now, do our tables contain the correct columns? c = db.rawQuery("PRAGMA table_info(" + WeatherContract.LocationEntry.TABLE_NAME + ")", null); assertTrue("Error: This means that we were unable to query the database for table information.", c.moveToFirst()); // Build a HashSet of all of the column names we want to look for final HashSet<String> locationColumnHashSet = new HashSet<String>(); locationColumnHashSet.add(WeatherContract.LocationEntry._ID); locationColumnHashSet.add(WeatherContract.LocationEntry.COLUMN_CITY_NAME); locationColumnHashSet.add(WeatherContract.LocationEntry.COLUMN_COORD_LAT); locationColumnHashSet.add(WeatherContract.LocationEntry.COLUMN_COORD_LONG); locationColumnHashSet.add(WeatherContract.LocationEntry.COLUMN_LOCATION_SETTING); int columnNameIndex = c.getColumnIndex("name"); do { String columnName = c.getString(columnNameIndex); locationColumnHashSet.remove(columnName); } while (c.moveToNext()); // if this fails, it means that your database doesn't contain all of the required location // entry columns assertTrue("Error: The database doesn't contain all of the required location entry columns", locationColumnHashSet.isEmpty()); db.close(); } /* Students: Here is where you will build code to test that we can insert and query the location database. We've done a lot of work for you. You'll want to look in TestUtilities where you can uncomment out the "createNorthPoleLocationValues" function. You can also make use of the ValidateCurrentRecord function from within TestUtilities. */ public void testLocationTable() { // First step: Get reference to writable database // If there's an error in those massive SQL table creation Strings, // errors will be thrown here when you try to get a writable database. WeatherDbHelper dbHelper = new WeatherDbHelper(mContext); SQLiteDatabase db = dbHelper.getWritableDatabase(); // Second Step: Create ContentValues of what you want to insert // (you can use the createNorthPoleLocationValues if you wish) ContentValues testValues = TestUtilities.createNorthPoleLocationValues(); // Third Step: Insert ContentValues into database and get a row ID back long locationRowId; locationRowId = db.insert(WeatherContract.LocationEntry.TABLE_NAME, null, testValues); // Verify we got a row back. assertTrue(locationRowId != -1); // Data's inserted. IN THEORY. Now pull some out to stare at it and verify it made // the round trip. // Fourth Step: Query the database and receive a Cursor back // A cursor is your primary interface to the query results. Cursor cursor = db.query( WeatherContract.LocationEntry.TABLE_NAME, // Table to Query null, // all columns null, // Columns for the "where" clause null, // Values for the "where" clause null, // columns to group by null, // columns to filter by row groups null // sort order ); // Move the cursor to a valid database row and check to see if we got any records back // from the query assertTrue("Error: No Records returned from location query", cursor.moveToFirst()); // Fifth Step: Validate data in resulting Cursor with the original ContentValues // (you can use the validateCurrentRecord function in TestUtilities to validate the // query if you like) TestUtilities.validateCurrentRecord("Error: Location Query Validation Failed", cursor, testValues); // Move the cursor to demonstrate that there is only one record in the database assertFalse("Error: More than one record returned from location query", cursor.moveToNext()); // Sixth Step: Close Cursor and Database cursor.close(); db.close(); } /* Students: Here is where you will build code to test that we can insert and query the database. We've done a lot of work for you. You'll want to look in TestUtilities where you can use the "createWeatherValues" function. You can also make use of the validateCurrentRecord function from within TestUtilities. */ public void testWeatherTable() { // First insert the location, and then use the locationRowId to insert // the weather. Make sure to cover as many failure cases as you can. // Instead of rewriting all of the code we've already written in testLocationTable // we can move this code to insertLocation and then call insertLocation from both // tests. Why move it? We need the code to return the ID of the inserted location // and our testLocationTable can only return void because it's a test. // First step: Get reference to writable database // Create ContentValues of what you want to insert // (you can use the createWeatherValues TestUtilities function if you wish) // Insert ContentValues into database and get a row ID back // Query the database and receive a Cursor back // Move the cursor to a valid database row // Validate data in resulting Cursor with the original ContentValues // (you can use the validateCurrentRecord function in TestUtilities to validate the // query if you like) // Finally, close the cursor and database } /* Students: This is a helper method for the testWeatherTable quiz. You can move your code from testLocationTable to here so that you can call this code from both testWeatherTable and testLocationTable. */ public long insertLocation() { return -1L; } }
[ "kevina321an.gmail.com" ]
kevina321an.gmail.com
268cf6610844e421e29c1cde89c53f30926e1da8
3ee7aa87206609039b161ddffdd2ad45a0537075
/src/main/java/com/lesg/springboot/app/util/paginator/PageItem.java
f1472dec6365af108ba26a99bceb5cae52ed610a
[]
no_license
alphamen01/spring-boot-github
2e7fa802639d8a7e085fdbccfc6d187039157e16
449441cfb44357de1f5857d812174e80a2d0e745
refs/heads/master
2020-12-29T22:08:18.831609
2020-02-06T18:41:00
2020-02-06T18:41:00
238,749,830
0
0
null
null
null
null
UTF-8
Java
false
false
319
java
package com.lesg.springboot.app.util.paginator; public class PageItem { private int numero; private boolean actual; public PageItem(int numero, boolean actual) { this.numero = numero; this.actual = actual; } public int getNumero() { return numero; } public boolean isActual() { return actual; } }
aa418ac6b80dcb642491243cf2b561684beb4c6d
5f49b421c2629e2dc8184bddd513a74d4571664d
/src/main/java/com/beeveloper/auth/config/ResourceServerConfig.java
861f07dc6b40092d217c94e6f3e164e2bb01ad0a
[]
no_license
SangjinH/OAuth2
89126cf6e0a4fe87b7f7caf02b43b3edf70b6a71
1c6ef82fce029833498122f82831ace150426f5d
refs/heads/master
2023-08-01T12:23:47.038315
2021-09-16T11:14:51
2021-09-16T11:14:51
407,126,792
0
0
null
null
null
null
UTF-8
Java
false
false
1,286
java
package com.beeveloper.auth.config; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer; import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter; import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer; import org.springframework.security.oauth2.provider.error.OAuth2AccessDeniedHandler; /** * Rest API 인증을 처리하는 애 */ @Configuration @EnableResourceServer public class ResourceServerConfig extends ResourceServerConfigurerAdapter { @Override public void configure(ResourceServerSecurityConfigurer resources) throws Exception { resources.resourceId("resource_id").stateless(false); } @Override public void configure(HttpSecurity http) throws Exception { http .anonymous().disable() .authorizeRequests() .antMatchers("/users/**").authenticated() .and() .exceptionHandling() .accessDeniedHandler(new OAuth2AccessDeniedHandler()); } }
b8db52d2e81669d24412b0632d2bf203f1afb1c1
d2cb1f4f186238ed3075c2748552e9325763a1cb
/methods_all/nonstatic_methods/java_io_PipedReader_reset.java
7e668c7f7b03992966225b1b2d9d05e94184d455
[]
no_license
Adabot1/data
9e5c64021261bf181b51b4141aab2e2877b9054a
352b77eaebd8efdb4d343b642c71cdbfec35054e
refs/heads/master
2020-05-16T14:22:19.491115
2019-05-25T04:35:00
2019-05-25T04:35:00
183,001,929
4
0
null
null
null
null
UTF-8
Java
false
false
130
java
class java_io_PipedReader_reset{ public static void function() {java.io.PipedReader obj = new java.io.PipedReader();obj.reset();}}
4fd04476ef108e28797b2327a47f01881f81ddc4
e971dc2519d2b6067b635ee05d922cf3a1e35e1e
/app/src/main/java/com/example/mahadi/edittextapp/MainActivity.java
8093b22bf5edf861fcc9877e455c05725b8bfc61
[]
no_license
codermahadi/androidEditTextApp
6019e49e658c18c8bd4ab2b7ac962c533bb96266
7c3a588fac7727d146162bb70b94cc8aa6f018e5
refs/heads/master
2021-05-10T10:02:21.827110
2018-01-25T17:42:18
2018-01-25T17:42:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
343
java
package com.example.mahadi.edittextapp; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }
5f24709725275d47cfc65c05d94b4fec7a724891
c95b26c2f7dd77f5e30e2d1cd1a45bc1d936c615
/azureus-core/src/main/java/org/gudy/azureus2/plugins/update/UpdateProgressListener.java
a292667e322c96d957336c1a5783f1d469cb9b52
[]
no_license
ostigter/testproject3
b918764f5c7d4c10d3846411bd9270ca5ba2f4f2
2d2336ef19631148c83636c3e373f874b000a2bf
refs/heads/master
2023-07-27T08:35:59.212278
2023-02-22T09:10:45
2023-02-22T09:10:45
41,742,046
2
1
null
2023-07-07T22:07:12
2015-09-01T14:02:08
Java
UTF-8
Java
false
false
997
java
/* * Created on 01-Dec-2004 * Created by Paul Gardner * Copyright (C) Azureus Software, Inc, All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * 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 General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ package org.gudy.azureus2.plugins.update; /** * @author parg * */ public interface UpdateProgressListener { public void reportProgress(String str); }
[ "oscar.stigter@e0aef87a-ea4e-0410-81cd-4b1fdc67522b" ]
oscar.stigter@e0aef87a-ea4e-0410-81cd-4b1fdc67522b
d00170560fbe713a49ffa2d522bf78fe4721394a
2e40883cc1ac0379655de296ab7f2cce495d6683
/single-common/src/main/java/cn/com/jandar/common/base/BaseServiceImpl.java
4325dbfc46e5d3d5d111be4951f550895a688af4
[]
no_license
clamwork/single
a9cda17fcd0347f5b716a0b7b11a4f8e074e8ce6
5bda1ac96bcba46f4152ad34c5a8af121ce48a19
refs/heads/master
2021-01-18T03:56:54.994085
2017-03-22T02:11:20
2017-03-22T02:11:20
85,774,046
0
0
null
null
null
null
UTF-8
Java
false
false
10,450
java
package cn.com.jandar.common.base; import cn.com.jandar.common.db.DataSourceEnum; import cn.com.jandar.common.db.DynamicDataSource; import cn.com.jandar.common.util.SpringContextUtil; import org.apache.commons.lang.StringUtils; import org.apache.ibatis.annotations.Param; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.util.List; /** * 实现BaseService抽象类 * Created by superman on 2017/3/20. */ public class BaseServiceImpl<Mapper, Record, Example> implements BaseService<Record, Example>{ public Mapper mapper; @Override public int countByExample(Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName()); Method countByExample = mapper.getClass().getDeclaredMethod("countByExample", example.getClass()); Object result = countByExample.invoke(mapper, example); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int deleteByExample(Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method deleteByExample = mapper.getClass().getDeclaredMethod("deleteByExample", example.getClass()); Object result = deleteByExample.invoke(mapper, example); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int deleteByPrimaryKey(Integer id) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method deleteByPrimaryKey = mapper.getClass().getDeclaredMethod("deleteByPrimaryKey", id.getClass()); Object result = deleteByPrimaryKey.invoke(mapper, id); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int insert(Record record) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method insert = mapper.getClass().getDeclaredMethod("insert", record.getClass()); Object result = insert.invoke(mapper, record); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int insertSelective(Record record) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method insertSelective = mapper.getClass().getDeclaredMethod("insertSelective", record.getClass()); Object result = insertSelective.invoke(mapper, record); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public List<Record> selectByExampleWithBLOBs(Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName()); Method selectByExampleWithBLOBs = mapper.getClass().getDeclaredMethod("selectByExampleWithBLOBs", example.getClass()); Object result = selectByExampleWithBLOBs.invoke(mapper, example); return (List<Record>) result; } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return null; } @Override public List<Record> selectByExample(Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName()); Method selectByExample = mapper.getClass().getDeclaredMethod("selectByExample", example.getClass()); Object result = selectByExample.invoke(mapper, example); return (List<Record>) result; } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return null; } @Override public Record selectFirstByExample(Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName()); Method selectByExample = mapper.getClass().getDeclaredMethod("selectByExample", example.getClass()); List<Record> result = (List<Record>) selectByExample.invoke(mapper, example); if (null != result && result.size() > 0) { return result.get(0); } } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return null; } @Override public Record selectByPrimaryKey(Integer id) { try { DynamicDataSource.setDataSource(DataSourceEnum.SLAVE.getName()); Method selectByPrimaryKey = mapper.getClass().getDeclaredMethod("selectByPrimaryKey", id.getClass()); Object result = selectByPrimaryKey.invoke(mapper, id); return (Record) result; } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return null; } @Override public int updateByExampleSelective(@Param("record") Record record, @Param("example") Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method updateByExampleSelective = mapper.getClass().getDeclaredMethod("updateByExampleSelective", record.getClass(), example.getClass()); Object result = updateByExampleSelective.invoke(mapper, record, example); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int updateByExampleWithBLOBs(@Param("record") Record record, @Param("example") Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method updateByExampleWithBLOBs = mapper.getClass().getDeclaredMethod("updateByExampleWithBLOBs", record.getClass(), example.getClass()); Object result = updateByExampleWithBLOBs.invoke(mapper, record, example); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int updateByExample(@Param("record") Record record, @Param("example") Example example) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method updateByExample = mapper.getClass().getDeclaredMethod("updateByExample", record.getClass(), example.getClass()); Object result = updateByExample.invoke(mapper, record, example); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int updateByPrimaryKeySelective(Record record) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method updateByPrimaryKeySelective = mapper.getClass().getDeclaredMethod("updateByPrimaryKeySelective", record.getClass()); Object result = updateByPrimaryKeySelective.invoke(mapper, record); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int updateByPrimaryKeyWithBLOBs(Record record) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method updateByPrimaryKeyWithBLOBs = mapper.getClass().getDeclaredMethod("updateByPrimaryKeyWithBLOBs", record.getClass()); Object result = updateByPrimaryKeyWithBLOBs.invoke(mapper, record); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int updateByPrimaryKey(Record record) { try { DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); Method updateByPrimaryKey = mapper.getClass().getDeclaredMethod("updateByPrimaryKey", record.getClass()); Object result = updateByPrimaryKey.invoke(mapper, record); return Integer.parseInt(String.valueOf(result)); } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public int deleteByPrimaryKeys(String ids) { try { if (StringUtils.isBlank(ids)) { return 0; } DynamicDataSource.setDataSource(DataSourceEnum.MASTER.getName()); String[] idArray = ids.split("-"); int count = 0; for (String idStr : idArray) { if (StringUtils.isBlank(idStr)) { continue; } Integer id = Integer.parseInt(idStr); Method deleteByPrimaryKey = mapper.getClass().getDeclaredMethod("deleteByPrimaryKey", id.getClass()); Object result = deleteByPrimaryKey.invoke(mapper, id); count += Integer.parseInt(String.valueOf(result)); } return count; } catch (Exception e) { e.printStackTrace(); } DynamicDataSource.clearDataSource(); return 0; } @Override public void initMapper() { this.mapper = SpringContextUtil.getBean(getMapperClass()); } /** * 获取类泛型class * @return */ public Class<Mapper> getMapperClass() { return (Class<Mapper>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; } }
f0dd84f48e05207055bb3f4f177a2d48bb4a2161
7076c255c636558be5936e8da4d475edefcaddb7
/GalleryApp React Native/GalleryAppReactNative/android/app/src/debug/java/com/galleryappreactnative/ReactNativeFlipper.java
3decc8427da96ceec5c9bef04990b8220cf887e1
[]
no_license
apollo78124/GalleryApp-React-Native
3377dbbae93ada55054f0da81c62559e98cb7a8c
d8b9eb4f6b230522cc1bf37e2ee3283fb2fd7636
refs/heads/master
2023-01-13T03:27:40.186535
2020-11-22T21:40:55
2020-11-22T21:40:55
314,736,326
0
0
null
null
null
null
UTF-8
Java
false
false
3,276
java
/** * Copyright (c) Facebook, Inc. and its affiliates. * * <p>This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ package com.galleryappreactnative; import android.content.Context; import com.facebook.flipper.android.AndroidFlipperClient; import com.facebook.flipper.android.utils.FlipperUtils; import com.facebook.flipper.core.FlipperClient; import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; import com.facebook.flipper.plugins.inspector.DescriptorMapping; import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; import com.facebook.flipper.plugins.react.ReactFlipperPlugin; import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; import com.facebook.react.ReactInstanceManager; import com.facebook.react.bridge.ReactContext; import com.facebook.react.modules.network.NetworkingModule; import okhttp3.OkHttpClient; public class ReactNativeFlipper { public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { if (FlipperUtils.shouldEnableFlipper(context)) { final FlipperClient client = AndroidFlipperClient.getInstance(context); client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); client.addPlugin(new ReactFlipperPlugin()); client.addPlugin(new DatabasesFlipperPlugin(context)); client.addPlugin(new SharedPreferencesFlipperPlugin(context)); client.addPlugin(CrashReporterPlugin.getInstance()); NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); NetworkingModule.setCustomClientBuilder( new NetworkingModule.CustomClientBuilder() { @Override public void apply(OkHttpClient.Builder builder) { builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); } }); client.addPlugin(networkFlipperPlugin); client.start(); // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized // Hence we run if after all native modules have been initialized ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); if (reactContext == null) { reactInstanceManager.addReactInstanceEventListener( new ReactInstanceManager.ReactInstanceEventListener() { @Override public void onReactContextInitialized(ReactContext reactContext) { reactInstanceManager.removeReactInstanceEventListener(this); reactContext.runOnNativeModulesQueueThread( new Runnable() { @Override public void run() { client.addPlugin(new FrescoFlipperPlugin()); } }); } }); } else { client.addPlugin(new FrescoFlipperPlugin()); } } } }
bdb29e642153a6c967847d028df0cb588332e71f
1192ad16cf977da4fbd135674ef56950b20a0cd7
/ALex_Compiladores/src/com/ucentral/edu/modelo/Identificador.java
4e1d9c51a11e65a125f1d8c0ffb4e0e9b7909012
[]
no_license
essebas/Proyecto_Alex
3c12f09b45571d2e8d58de8e7de4db1c2e630ebc
6e63ae9e180363ff53c0035f104674599060d321
refs/heads/master
2020-03-27T09:01:53.750164
2018-09-05T22:09:39
2018-09-05T22:09:39
146,308,240
0
0
null
null
null
null
UTF-8
Java
false
false
341
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 com.ucentral.edu.modelo; /** * * @author ADMIN02F */ public class Identificador { public String nombre; public int ID; }
b9f1a4a46cc6233f49577234f925421fb94f610b
513396b20ab0a4b7f9bcf362872e74bd8806d60b
/core/test/com/jingyuyao/tactical/model/battle/TargetTest.java
747608a85f6a99f3dbfa507f1443762daec98e57
[ "MIT" ]
permissive
jingyuyao/tactical-adventure
4a8cc3f6816568756c9fc67822425c6f146a91b5
5d6e27220963e69d6df66600cdfc5fea6010fc2d
refs/heads/master
2021-03-16T06:20:37.710115
2018-05-07T18:39:36
2018-05-07T18:39:36
76,139,939
1
0
null
null
null
null
UTF-8
Java
false
false
1,441
java
package com.jingyuyao.tactical.model.battle; import static com.google.common.truth.Truth.assertThat; import com.jingyuyao.tactical.model.world.Cell; import com.jingyuyao.tactical.model.world.Direction; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class TargetTest { @Mock private Cell origin; @Mock private Cell cell1; @Mock private Cell cell2; private Direction direction = Direction.RIGHT; private Target target; @Before public void setUp() { target = new Target( origin, direction, Collections.singleton(cell1), new HashSet<>(Arrays.asList(cell1, cell2))); } @Test public void get_origin() { assertThat(target.getOrigin()).isSameAs(origin); } @Test public void get_direction() { assertThat(target.direction()).hasValue(direction); } @Test public void selected_by() { assertThat(target.selectedBy(cell1)).isTrue(); assertThat(target.selectedBy(cell2)).isFalse(); } @Test public void get_select_cells() { assertThat(target.getSelectCells()).containsExactly(cell1); } @Test public void get_target_cells() { assertThat(target.getTargetCells()).containsExactly(cell1, cell2); } }
26f9f4bfc2a94519bf50588cb14ca502427f9706
dd3d0757ae21ef66f479f556a2c83a5c6e806cf1
/app/src/main/java/com/lenovo/smarttraffic/ui/adapter/RecordAdapter.java
d3daec77d10f9b9dbbe9c1446ebc80993c39433e
[]
no_license
lovefrist/SmartTrafficAll
bc3a5094f5094fc971c377e75cb151f72d6be1f6
7936048c181b6dbe671cd890b1f43bb48f68e90f
refs/heads/master
2020-11-30T09:55:08.879674
2019-12-22T06:10:58
2019-12-22T06:10:58
230,369,808
0
0
null
null
null
null
UTF-8
Java
false
false
3,595
java
package com.lenovo.smarttraffic.ui.adapter; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; 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.lenovo.smarttraffic.R; import com.lenovo.smarttraffic.entityclass.RecordInfo; import com.lenovo.smarttraffic.ui.activity.PaymentActivity; import java.util.ArrayList; /** * 违章详情的查询页面的Adapter * @author asus */ public class RecordAdapter extends RecyclerView.Adapter<RecordAdapter.RecordViewHandier> { private Context context; private ArrayList<RecordInfo> arrayList; public RecordAdapter(Context context, ArrayList<RecordInfo> arrayList){ this.context = context; this.arrayList = arrayList; } @NonNull @Override public RecordAdapter.RecordViewHandier onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { return new RecordViewHandier(LayoutInflater.from(context).inflate(R.layout.record_item,parent,false)); } @Override public void onBindViewHolder(@NonNull RecordViewHandier holder, int position) { RecordInfo info = arrayList.get(position); holder.tSerial.setText(position+1+""); holder.iLogos.setImageResource(info.getImgUri()); holder.tCarId.setText(info.getCarNumber()); holder.tPlace.setText(info.getPaddr()); holder.tReason.setText("\u3000\u3000\u3000"+info.getPremarks()); holder.tDeduction.setText(info.getPscore()==0?"无":info.getPscore()+""); holder.tFine.setText(info.getPmoney()==0?"无":info.getPmoney()+""); holder.tTime.setText(info.getPdate()); if (info.getNumber()==0){ holder.tStatus.setText("未处理"); holder.tStatus.setTextColor(info.getPmoney()==0?Color.parseColor("#cccccc"):Color.parseColor("#ff0000")); }else { holder.tStatus.setText("已处理"); holder.tStatus.setTextColor(Color.GREEN); holder.tStatus.setEnabled(false); } holder.tStatus.setEnabled(info.getPmoney()!=0); holder.tStatus.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(context, PaymentActivity.class); intent.putExtra("record",info); intent.putExtra("position",position); ((Activity)context).startActivityForResult(intent,0); } }); } @Override public int getItemCount() { return arrayList.size(); } class RecordViewHandier extends RecyclerView.ViewHolder { TextView tSerial,tCarId,tPlace,tReason,tDeduction,tFine,tTime,tStatus; ImageView iLogos; public RecordViewHandier(View itemView) { super(itemView); tSerial = itemView.findViewById(R.id.tv_serial); tCarId = itemView.findViewById(R.id.tv_carId); tPlace = itemView.findViewById(R.id.tv_place); tReason = itemView.findViewById(R.id.tv_Reason); tDeduction = itemView.findViewById(R.id.tv_Deduction); tFine = itemView.findViewById(R.id.tv_fine); tStatus = itemView.findViewById(R.id.tv_status); tTime = itemView.findViewById(R.id.tv_time); iLogos = itemView.findViewById(R.id.iv_logos); } } }
164a3c844c38aba886f5bc7666b31d0e88c4624e
3489c135907d22910afe255c2705e4ae5a779409
/LR9/src/com/company/Director.java
a730e5a6a4b20880a7fceb13595fa639a5d31651
[]
no_license
Kent-web/VVPRKent
c998699f8b1017669fe02caae767cd7fa4d9073a
f5533802ac85a33ed68f64b4aabe051fb3b94532
refs/heads/master
2022-05-20T12:47:41.267213
2020-04-29T18:37:51
2020-04-29T18:37:51
256,478,727
0
0
null
null
null
null
UTF-8
Java
false
false
1,972
java
package com.company; public class Director extends Rukovodstvo implements IKadr { protected boolean OwnCar ; protected String StatRabot; protected boolean Seal; public void setOwnCar (boolean OwnCar ) {this.OwnCar =OwnCar ;} public void setStatRabot(String StatRabot) {this.StatRabot=StatRabot;} public void setSeal(Boolean Seal) {this.Seal=Seal;} public boolean getOwnCar() {return OwnCar;} public String getStatRabot() {return StatRabot;} public Boolean getSeal() {return Seal;} public int getZP() {return 75000 + Premia;} public String getProfession(){return "Директор";} public Director(){} public String toString () { String str = " "; str += " Директор " + FIO + " " + DR + " года рождения "; if (Pol) str += " Мужчина "; else str += " Женщина "; str += " время работы " + TimeWork + " премия: " + Premia; str += " работа способность коллектива: " + WorkStaffAbility; if (OwnCar) str+= " Да "; else str += " нет "; str+=" Персонал работает на " + StatRabot; if (Seal) str+= " печать поставлена "; else str += " печать не поставлена "; return str; } public String toString2() { return " Директор " + FIO + "\t" + DR + "\t" + Pol + "\t" + TimeWork + "\t" + Premia + "\t" + WorkStaffAbility + "\t" + OwnCar + "\t" + StatRabot + "\t" + Seal; } public Director(String FIO, int DR, boolean Pol, int TimeWork, int Premia, String WorkStaffAbility, boolean OwnCar, String StatRabot, boolean Seal) { this.FIO = FIO; this.DR = DR; this.Pol = Pol; this.TimeWork = TimeWork; this.Premia = Premia; this.WorkStaffAbility = WorkStaffAbility; this.OwnCar = OwnCar; this.StatRabot = StatRabot; this.Seal = Seal; } }
1a276091968c5246c322448579e0c6dbe2caed15
95e944448000c08dd3d6915abb468767c9f29d3c
/sources/com/google/android/gms/ads/p743c/C14742b.java
c70f8cd0ff6ee67e834ca2a650f77757bff84795
[]
no_license
xrealm/tiktok-src
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
90f305b5f981d39cfb313d75ab231326c9fca597
refs/heads/master
2022-11-12T06:43:07.401661
2020-07-04T20:21:12
2020-07-04T20:21:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,663
java
package com.google.android.gms.ads.p743c; import android.content.Context; import android.view.View; import android.view.ViewGroup; import com.google.android.gms.ads.C14732b; import com.google.android.gms.ads.C14745e; import com.google.android.gms.internal.ads.C15522at; import com.google.android.gms.internal.ads.C6505uv; import com.google.android.gms.internal.ads.afm; @C6505uv /* renamed from: com.google.android.gms.ads.c.b */ public final class C14742b extends ViewGroup { /* renamed from: a */ private final C15522at f38093a; public final C14732b getAdListener() { return this.f38093a.f41003b; } public final C14745e getAdSize() { return this.f38093a.mo40010b(); } public final String getAdUnitId() { return this.f38093a.mo40012c(); } public final void setAdListener(C14732b bVar) { this.f38093a.mo40002a(bVar); } public final void setAdSize(C14745e eVar) { this.f38093a.mo40009a(eVar); } public final void setAdUnitId(String str) { this.f38093a.mo40007a(str); } /* access modifiers changed from: protected */ public final void onLayout(boolean z, int i, int i2, int i3, int i4) { View childAt = getChildAt(0); if (childAt != null && childAt.getVisibility() != 8) { int measuredWidth = childAt.getMeasuredWidth(); int measuredHeight = childAt.getMeasuredHeight(); int i5 = ((i3 - i) - measuredWidth) / 2; int i6 = ((i4 - i2) - measuredHeight) / 2; childAt.layout(i5, i6, measuredWidth + i5, measuredHeight + i6); } } /* access modifiers changed from: protected */ public final void onMeasure(int i, int i2) { int i3; int i4 = 0; View childAt = getChildAt(0); if (childAt == null || childAt.getVisibility() == 8) { C14745e eVar = null; try { eVar = getAdSize(); } catch (NullPointerException e) { afm.m45778b("Unable to retrieve ad size.", e); } if (eVar != null) { Context context = getContext(); int b = eVar.mo37450b(context); i3 = eVar.mo37448a(context); i4 = b; } else { i3 = 0; } } else { measureChild(childAt, i, i2); i4 = childAt.getMeasuredWidth(); i3 = childAt.getMeasuredHeight(); } setMeasuredDimension(View.resolveSize(Math.max(i4, getSuggestedMinimumWidth()), i), View.resolveSize(Math.max(i3, getSuggestedMinimumHeight()), i2)); } }
f5fd42031cc58a501c4c9384b32c268cd2d26081
9442c51ff72816452c12a5aeca38e012bdbdd6cd
/src/main/java/ch/epfl/cs107/play/game/actor/ShapeGraphics.java
f7c96c822f46541e553243b17491af67d0c8ab05
[]
no_license
Ulydev/epfl_bike_game
08eacd85cacfe66e80b7669416d1abfdf0aa93cf
2e93dcc6c4bdd42ee5a5b8e3ce4725951984e170
refs/heads/master
2021-08-28T15:13:55.273367
2017-12-12T15:04:40
2017-12-12T15:04:40
113,692,503
1
0
null
null
null
null
UTF-8
Java
false
false
3,498
java
package ch.epfl.cs107.play.game.actor; import ch.epfl.cs107.play.math.Attachable; import ch.epfl.cs107.play.math.Node; import ch.epfl.cs107.play.math.Shape; import ch.epfl.cs107.play.window.Canvas; import java.awt.Color; /** * Contains information to render a single shape, which can be attached to any positionable. */ public class ShapeGraphics extends Node implements Graphics { private Shape shape; private Color fillColor; private Color outlineColor; private float thickness; private float alpha; private float depth; /** * Creates a new shape graphics. * @param shape shape, may be null * @param fillColor fill color, may be null * @param outlineColor outline color, may be null * @param thickness outline thickness * @param alpha transparency, between 0 (invisible) and 1 (opaque) * @param depth render priority, lower-values drawn first */ public ShapeGraphics(Shape shape, Color fillColor, Color outlineColor, float thickness, float alpha, float depth) { this.shape = shape; this.fillColor = fillColor; this.outlineColor = outlineColor; this.thickness = thickness; this.alpha = alpha; this.depth = depth; } /** * Creates a new shape graphics. * @param shape shape, may be null * @param fillColor fill color, may be null * @param outlineColor outline color, may be null * @param thickness outline thickness */ public ShapeGraphics(Shape shape, Color fillColor, Color outlineColor, float thickness) { this(shape, fillColor, outlineColor, thickness, 1.0f, 0.0f); } /** * Sets shape. * @param shape new shape, may be null */ public void setShape(Shape shape) { this.shape = shape; } /** @return current shape, may be null */ public Shape getShape() { return shape; } /** * Sets fill color. * @param fillColor color, may be null */ public void setFillColor(Color fillColor) { this.fillColor = fillColor; } /** @return fill color, may be null */ public Color getFillColor() { return fillColor; } /** * Sets outline color. * @param outlineColor color, may be null */ public void setOutlineColor(Color outlineColor) { this.outlineColor = outlineColor; } /** @return outline color, may be null */ public Color getOutlineColor() { return outlineColor; } /** * Sets outline thickness. * @param thickness outline thickness */ public void setThickness(float thickness) { this.thickness = thickness; } /** @return outline thickness */ public float getThickness() { return thickness; } /** * Sets transparency. * @param alpha transparency, between 0 (invisible) and 1 (opaque) */ public void setAlpha(float alpha) { this.alpha = alpha; } /** @return transparency, between 0 (invisible) and 1 (opaque) */ public float getAlpha() { return alpha; } /** * Sets rendering depth. * @param depth render priority, lower-values drawn first */ public void setDepth(float depth) { this.depth = depth; } /** @return render priority, lower-values drawn first */ public float getDepth() { return depth; } @Override public void draw(Canvas canvas) { canvas.drawShape(shape, getTransform(), fillColor, outlineColor, thickness, alpha, depth); } }
6188e8a60a5e5eb52714656b8da0e874183ab5b7
62959cd23bf4335ec582e25e34842bc7ee235297
/src/main/java/org/sagebionetworks/csv/utils/ObjectIteratorCSVWriter.java
882a310bcc7ada4515f4d03edb03d4cc69863a3a
[]
no_license
Sage-Bionetworks/csv-utilities
9a022746178c8c57de1550f10f05c22e3e2d9d27
d45cefece92865c4b6492a18e0f72dadcb3ccddb
refs/heads/develop
2021-12-22T09:48:22.650909
2021-12-20T18:52:55
2021-12-20T18:52:55
43,978,840
0
3
null
2021-12-20T18:52:55
2015-10-09T20:34:41
Java
UTF-8
Java
false
false
880
java
package org.sagebionetworks.csv.utils; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.util.Iterator; public class ObjectIteratorCSVWriter { /** * Read each record from the iterator and write it to an output stream * * @param it - the iterator to get records * @param out - the output stream to write records to * @param headers - the format of a record * @param clazz - the type of the record * @throws IOException */ public static <T> void write(Iterator<T> it, OutputStream out, String[] headers, Class<T> clazz) throws IOException { OutputStreamWriter osw = new OutputStreamWriter(out); ObjectCSVWriter<T> writer = new ObjectCSVWriter<T>(osw, clazz, headers); while (it.hasNext()) { T record = it.next(); writer.append(record); } writer.close(); osw.close(); out.flush(); } }
63f697f49ad073e3f5645b4350ef86308a329a56
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5631989306621952_1/java/diesel301/TheLastWord.java
746a7da52e9e6d2b22291bd7ba1f635b5199a764
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Java
false
false
1,080
java
import java.io.File; import java.io.PrintWriter; import java.util.Scanner; /** * Created by russinko on 4/15/16. */ public class TheLastWord { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(new File("A-large.in")); PrintWriter pw = new PrintWriter(new File("output.txt")); int caseCount = Integer.valueOf(sc.nextLine()); for(int i = 0; i < caseCount; i++) { String b = sc.nextLine(); pw.printf("Case #%d: %s\n", i + 1, build(b)); } pw.close(); } static String build(String input) { String out = input.substring(0, 1); String remaining = input.substring(1, input.length()); while (remaining.length() > 0) { String first = remaining.substring(0, 1); remaining = remaining.substring(1, remaining.length()); if(first.compareTo(out.substring(0, 1)) >= 0) { out = first + out; } else { out = out + first; } } return out; } }
c4686f31ec81e0c3502c2b084bf062b66908d40b
f5f5419bc6941a4acdcb9ba7c732ed5fdd19628c
/src/main/java/com/embed/rest/resources/response/ThumbnailResponseResource.java
94d31f61fedce574c4a75d8eedd93ba7b22553b6
[]
no_license
Gonmontero/embedded-content-service
b567747ab6334b4c2acf6cf410a24524aaa24c89
d4ece23a8f752f12f222100f90672dc0b69fad44
refs/heads/master
2021-10-24T18:34:54.511718
2019-03-27T15:05:05
2019-03-27T15:05:05
177,382,660
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package com.embed.rest.resources.response; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude (JsonInclude.Include.NON_EMPTY) public class ThumbnailResponseResource { private String url; private Integer width; private Integer height; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public Integer getWidth() { return width; } public void setWidth(Integer width) { this.width = width; } public Integer getHeight() { return height; } public void setHeight(Integer height) { this.height = height; } }
b3255fa2d9c8e57bcb8ba9d6694ad2fcc035d58f
cb196bc040aad608dc63d4b1362fe7570fc58982
/src/test/java/com/galen/program/netty/httpProxy/HttpProxyServerTest.java
b4fd12b0e562c2d2b173b85a3221fa2718195d0a
[]
no_license
22yune/httpProxy
bb686904ae44b300643a9ce77798c5821ed8e7a7
cb361cd04dbabb3d005b46d971cf1417ed381afd
refs/heads/master
2020-04-13T03:38:07.555887
2019-01-23T07:57:58
2019-01-23T07:57:58
162,937,612
0
2
null
null
null
null
UTF-8
Java
false
false
376
java
package com.galen.program.netty.httpProxy; import org.junit.Test; /** * Created by baogen.zhang on 2018/11/9 * * @author baogen.zhang * @date 2018/11/9 */ public class HttpProxyServerTest { @Test public void test() { try { new HttpProxyServer().run(8081); } catch (Exception e) { e.printStackTrace(); } } }
f1264347edba3437da389585678ba9e1645a334c
8ae42a64380330a7b49d6543a0618ac514a59b0a
/src/com/mk/jsms/Add_Bill_Details.java
d8aee5fcf8549ec9eeb1c13565e1354852929cb5
[]
no_license
kanumalivad/jewellery-shop-management-system
1a43ac3232c951c0a9065446b74625c540f8a3ad
72714aca7a1e0c3ba7d71cec653b1f034f1306f3
refs/heads/master
2020-05-27T11:16:21.460457
2019-05-25T19:33:05
2019-05-25T19:33:05
188,598,199
1
0
null
null
null
null
UTF-8
Java
false
false
7,673
java
package com.mk.jsms; import java.awt.event.*; import java.awt.*; import java.text.DecimalFormat; public class Add_Bill_Details extends javax.swing.JDialog implements MouseListener, ActionListener { // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); btnclose = new javax.swing.JLabel(); txtlabour = new javax.swing.JTextField(); jLabel19 = new javax.swing.JLabel(); txtrate = new javax.swing.JTextField(); jLabel20 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); btnok = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setBackground(new java.awt.Color(245, 245, 245)); setUndecorated(true); jPanel1.setBackground(new java.awt.Color(245, 245, 245)); jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); btnclose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Close.png"))); // NOI18N txtlabour.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jLabel19.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 13)); // NOI18N jLabel19.setText("Rate"); txtrate.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jLabel20.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 13)); // NOI18N jLabel22.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 13)); // NOI18N jLabel22.setText("Labour"); btnok.setBackground(new java.awt.Color(254, 137, 0)); btnok.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 13)); // NOI18N btnok.setForeground(new java.awt.Color(255, 255, 255)); btnok.setText("OK"); btnok.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(254, 137, 0))); btnok.setContentAreaFilled(false); btnok.setOpaque(true); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel20) .addGap(126, 126, 126) .addComponent(btnok, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(126, 126, 126)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel19) .addComponent(jLabel22)) .addGap(28, 28, 28) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtrate, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtlabour, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnclose) .addGap(18, 18, 18)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(btnclose) .addGap(8, 8, 8) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtrate, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel19)) .addGap(18, 18, 18) .addComponent(jLabel22)) .addComponent(txtlabour, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(11, 11, 11) .addComponent(btnok, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel20) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 328, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); pack(); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel btnclose; private javax.swing.JButton btnok; private javax.swing.JLabel jLabel19; private javax.swing.JLabel jLabel20; private javax.swing.JLabel jLabel22; private javax.swing.JPanel jPanel1; private javax.swing.JTextField txtlabour; private javax.swing.JTextField txtrate; // End of variables declaration//GEN-END:variables Dimension screen_size; public Add_Bill_Details(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); screen_size=Toolkit.getDefaultToolkit().getScreenSize(); setLocation((screen_size.width/2-200),(screen_size.height/2-100)); btnclose.addMouseListener(this); btnok.addActionListener(this); } public void actionPerformed(ActionEvent ae) { this.dispose(); } public Double getRate() { return Double.parseDouble(new DecimalFormat("######.##").format(Double.parseDouble(txtrate.getText()))); } public Double getLabour() { return Double.parseDouble(new DecimalFormat("######.##").format(Double.parseDouble(txtlabour.getText()))); } public void mouseClicked(MouseEvent me) { if(me.getSource()==btnclose) { this.dispose(); } } public void mouseEntered(MouseEvent me) {} public void mouseExited(MouseEvent me) {} public void mousePressed(MouseEvent me) { } public void mouseReleased(MouseEvent me) { } }
0dce7ff18fcfdc62759791a9a9a4626d706c675a
7c3e769ad1e036004fcd47540d018524d8cf69c4
/bogoLive/src/main/java/com/bogokj/live/model/App_requestCancelPKRequest.java
cf104eb6b8e61cdcf2a57a24700ec6cc2ea27517
[]
no_license
zkbqhuang/bogo_live_android
b813ed99f7237f4dd2e77014c311bc8da74ecbf9
a51799fa7038f089b10209e7ec446a0000a68d8a
refs/heads/master
2022-07-06T15:29:08.344192
2020-05-11T03:11:12
2020-05-11T03:11:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
340
java
package com.bogokj.live.model; import com.bogokj.hybrid.model.BaseActModel; public class App_requestCancelPKRequest extends BaseActModel { private String to_user_id; public String getTo_user_id() { return to_user_id; } public void setTo_user_id(String to_user_id) { this.to_user_id = to_user_id; } }
ee10a8078de5ae91a6dfb80a422f4ee3c668d690
dde8f9af1db5a9ee956e3525cd4f4b0f7e1f854b
/app/src/main/java/com/android/animation/activity/LayoutAnimationActivity.java
a4b6c423f6e7f7d5153847c65b912dbff0e2c821
[]
no_license
mumulib/AnimationSummary
776e78a884d5162e147b677dce11c9ec87470e2c
97ef5e7e18a1ad7e17b04183d0ec145bbd0d2ef9
refs/heads/master
2021-06-11T11:11:57.669464
2017-02-20T06:28:16
2017-02-20T06:28:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,430
java
package com.android.animation.activity; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.view.animation.LayoutAnimationController; import android.widget.BaseAdapter; import android.widget.ListView; import android.widget.TextView; import com.android.animation.R; /** * @author lbb * 1.LayoutAnimationsController * LayoutAnimationsController可以用来实现多个控件一个一个的显示 * a.LayoutAnimationsController用来为一个ViewGroup里的控件设置统一的动画效果 * b.控件的动画效果可以在不同的时间显示 * <p> * 2.在代码中添加 * a.new Animation对象 * b.new LayoutAnimationsController对象(传参Animation对象) * c.设置LayoutAnimationsController对象的属性(setDelay动画间隔,setOrder显示顺序) * d.调用父控件的setLayoutAnimation方法设置LayoutAnimation属性 * <p> * 3.在xml中添加 * a.在anim文件夹下新建根标签为layoutAnimation的资源文件 * b.设置layoutAnimation的属性(animation:子类动画;animationOrder: * 动画执行顺序【normal-正向,reverse-反向,random-随机】,delay:动画间隔时间) * c.父控件设置layoutAnimation属性配置资源文件 * */ public class LayoutAnimationActivity extends Activity { private ListView mLv; private String[] data = {"sssssssssss", "11111111111", "ddddddddddd", "eeeeeeeeeeee", "sssssssssss", "11111111111", "ddddddddddd", "eeeeeeeeeeee", "sssssssssss", "11111111111", "ddddddddddd", "eeeeeeeeeeee"}; public static void start(Context context) { Intent intent = new Intent(context, LayoutAnimationActivity.class); context.startActivity(intent); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_layoutanimation); mLv = (ListView) findViewById(R.id.lv); Animation animation = AnimationUtils.loadAnimation(this, R.anim.anim_list); LayoutAnimationController controller = new LayoutAnimationController(animation); controller.setDelay(1); controller.setOrder(LayoutAnimationController.ORDER_REVERSE); mLv.setLayoutAnimation(controller); mLv.setAdapter(new BaseAdapter() { @Override public int getCount() { return data.length; } @Override public Object getItem(int position) { return null; } @Override public long getItemId(int position) { return 0; } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = View.inflate(LayoutAnimationActivity.this, R.layout.item, null); } TextView textView = (TextView) convertView.findViewById(R.id.tv); textView.setText(data[position]); return convertView; } }); } }
7a6f691d0417a65678679f7d9eb1217026620adf
9de38d789dc6a84218fda1253d365ca111f5c333
/app/src/main/java/com/myFitness/ranad_000/fitness_app/Activities/Vegan_Diet.java
12c03069fb8929a839c9ca041351c10e951426a2
[]
no_license
dpr5/Active-Elite-Fitness-App
f6f89d4706b721cb3bd9aac1319d3428c1a35074
166880b2b60323a67b5c46eb07842e1240895e42
refs/heads/master
2020-04-05T12:32:32.976667
2018-02-19T16:38:02
2018-02-19T16:38:02
95,127,044
0
0
null
null
null
null
UTF-8
Java
false
false
411
java
package com.myFitness.ranad_000.fitness_app.Activities; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.myFitness.ranad_000.fitness_app.R; public class Vegan_Diet extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_vegan__diet); } }
59d88afc78eea7f10e1d49ec0c6ba9b6d0018e53
7c1cf4dd42c31880f6203ff4ae6751ad32583276
/app/src/main/java/com/example/user/tvfood/Model/Database_BinhLuan.java
e3aedd4b9594503a25d26f77da7f545f52de27c9
[]
no_license
itutevu/TVFood
aa982d8d58d4a46578dae1b2fd21934b3dc6ccf9
0db7a3d44b239454b3f7dece691996de25422189
refs/heads/master
2021-05-16T14:15:40.897552
2018-01-21T05:52:13
2018-01-21T05:52:13
114,850,120
0
0
null
null
null
null
UTF-8
Java
false
false
828
java
package com.example.user.tvfood.Model; /** * Created by USER on 06/09/2017. */ public class Database_BinhLuan { private String noidung; private String urlimage; private String userid; public String getNoidung() { return noidung; } public void setNoidung(String noidung) { this.noidung = noidung; } public String getUrlimage() { return urlimage; } public void setUrlimage(String urlimage) { this.urlimage = urlimage; } public String getUserid() { return userid; } public void setUserid(String userid) { this.userid = userid; } public Database_BinhLuan(String noidung, String urlimage, String userid) { this.noidung = noidung; this.urlimage = urlimage; this.userid = userid; } }
d634841d2622f6c058162191270216270184721f
ceced64751c092feca544ab3654cf40d4141e012
/zookeeper/src/main/java/com/pri/lock/ZookeeperDistrbuteLock.java
57a4c24082b3aaa2bed0953cf321620ebbba5394
[]
no_license
1163646727/pri_play
80ec6fc99ca58cf717984db82de7db33ef1e71ca
fbd3644ed780c91bfc535444c54082f4414b8071
refs/heads/master
2022-06-30T05:14:02.082236
2021-01-05T08:02:40
2021-01-05T08:02:40
196,859,419
0
0
null
null
null
null
UTF-8
Java
false
false
1,562
java
package com.pri.lock; import java.util.concurrent.CountDownLatch; import org.I0Itec.zkclient.IZkDataListener; /** * className: ZookeeperDistrbuteLock <BR> * description: Zookeeper抽象锁<BR> * remark: 具体实现类<BR> * 参考:每特教育<BR> * author: ChenQi <BR> * createDate: 2019-11-18 16:45 <BR> */ public class ZookeeperDistrbuteLock extends ZookeeperAbstractLock{ @Override boolean getTheLock() { try { zkClient.createEphemeral(lockPath,60*100); return true; } catch (Exception e) { return false; } } @Override void waitLock() { // 使用zk临时事件监听 ChenQi; IZkDataListener iZkDataListener = new IZkDataListener() { // 监听连接删除事件ChenQi; public void handleDataDeleted(String path) throws Exception { if (countDownLatch != null) { countDownLatch.countDown(); } } public void handleDataChange(String arg0, Object arg1) throws Exception { } }; // 注册事件通知 ChenQi; zkClient.subscribeDataChanges(lockPath, iZkDataListener); if (zkClient.exists(lockPath)) { countDownLatch = new CountDownLatch(1); try { countDownLatch.await(); } catch (Exception e) { } } // 监听完毕后,移除事件通知 ChenQi; zkClient.unsubscribeDataChanges(lockPath, iZkDataListener); } }
7cbf29b0eff7f2ef27f49915fd9a6f7e9e7dcefe
2496eecbca4f464293b16cd2080f473f0dd6bef3
/app/src/main/java/com/example/ttcncalendar/DBOpenHelper.java
9eac43625a134cb19b51bdd8a962b405c2c440cd
[]
no_license
DaoThiBinh/baitaplonandrodi
dea27222139d4506ee22418e42167a70bb1e5e41
45dc6299363ebc3792a74357190c0a7b4a3c491f
refs/heads/master
2022-08-14T01:26:36.562280
2020-05-14T15:51:06
2020-05-14T15:51:06
263,953,365
0
0
null
null
null
null
UTF-8
Java
false
false
2,820
java
package com.example.ttcncalendar; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import androidx.annotation.Nullable; public class DBOpenHelper extends SQLiteOpenHelper { private static final String CREATE_EVENTS_TABLE = "create table "+DBStructure.EVENT_TABLE_NAME+"(ID INTEGER PRIMARY KEY AUTOINCREMENT,"+DBStructure.EVENT+" TEXT, "+DBStructure.TIME+ " TEXT,"+DBStructure.DATE+" TEXT, "+DBStructure.MONTH+" TEXT, "+DBStructure.YEAR+" TEXT)"; private static final String DROP_EVENTS_TABEL = "DROP TABLE IF EXISTS "+DBStructure.EVENT_TABLE_NAME; public DBOpenHelper(@Nullable Context context) { super(context, DBStructure.DB_NAME, null, DBStructure.DB_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_EVENTS_TABLE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP_EVENTS_TABEL); onCreate(db); } public void SaveEvent(String event, String time, String date, String month, String year, SQLiteDatabase database){ ContentValues contentValues = new ContentValues(); contentValues.put(DBStructure.EVENT,event); contentValues.put(DBStructure.TIME,time); contentValues.put(DBStructure.DATE,date); contentValues.put(DBStructure.MONTH,month); contentValues.put(DBStructure.YEAR,year); database.insert(DBStructure.EVENT_TABLE_NAME,null, contentValues); } public Cursor ReadEvents(String date, SQLiteDatabase database){ String[] Projections = {DBStructure.EVENT,DBStructure.TIME,DBStructure.DATE,DBStructure.MONTH,DBStructure.YEAR}; String Selection = DBStructure.DATE+"=?"; String [] SelectionArgs ={date}; return database.query(DBStructure.EVENT_TABLE_NAME,Projections,Selection,SelectionArgs,null,null,null); } public Cursor ReadEventsMonth(String month, String year, SQLiteDatabase database){ String[] Projections = {DBStructure.EVENT,DBStructure.TIME,DBStructure.DATE,DBStructure.MONTH,DBStructure.YEAR}; String Selection = DBStructure.MONTH+"=? and "+DBStructure.YEAR+"=?"; String [] SelectionArgs ={month,year}; return database.query(DBStructure.EVENT_TABLE_NAME,Projections,Selection,SelectionArgs,null,null,null); } public void deleteEvent(String event, String date, String time, SQLiteDatabase database){ String selection = DBStructure.EVENT+" =? and "+DBStructure.DATE+"=? and "+DBStructure.TIME+" =? "; String[] selectionArg = {event, date, time}; database.delete(DBStructure.EVENT_TABLE_NAME,selection,selectionArg); } }
0fe2121f70b52a8462b04d165cf88b46abab8f81
7f60c08116d6ccc22e9b325ae16dbd865c257f72
/app/src/main/java/com/Pericos/ITSVC/App/PantallaMain/Tecnologico/Nosotros.java
2d98f669e4a9a428088d0545c9622458488ba494
[]
no_license
Josuehdzp/PericosTecApp
2e05b76ea711ed3f981205456d04c636a89d7c0d
5e9fa981e45282a491b430862c02ba6100b2dfdd
refs/heads/master
2023-04-24T13:34:21.876202
2021-05-05T07:22:35
2021-05-05T07:22:35
364,494,223
0
0
null
null
null
null
UTF-8
Java
false
false
4,528
java
package com.Pericos.ITSVC.App.PantallaMain.Tecnologico; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import androidx.annotation.NonNull; import com.Pericos.ITSVC.App.R; import com.flaviofaria.kenburnsview.KenBurnsView; import com.google.android.material.appbar.AppBarLayout; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.bumptech.glide.Glide; import com.google.android.youtube.player.YouTubeBaseActivity; import com.google.android.youtube.player.YouTubeInitializationResult; import com.google.android.youtube.player.YouTubePlayer; import com.google.android.youtube.player.YouTubePlayerView; public class Nosotros extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener, YouTubePlayer.PlaybackEventListener { AppBarLayout appBarLayout; YouTubePlayerView youTubePlayerView1; String claveYoutube = "AIzaSyB3LaY2EwT_Uh6dcwJ4cIrDUcl4oDcw-mQ"; Toolbar toolbarNosotros; AppCompatActivity appCompatActivity; Activity activity; KenBurnsView appbarNOSOTROS; @SuppressLint("WrongViewCast") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_nosotros); appBarLayout = findViewById(R.id.app_bar_Nosotros); youTubePlayerView1 = findViewById(R.id.reproYT); youTubePlayerView1.initialize(claveYoutube,this); appbarNOSOTROS = findViewById(R.id.imageViewAppBarNOSOTROS); Glide.with(getApplicationContext()).load(R.drawable.fotoprincipal).into(appbarNOSOTROS); appbarNOSOTROS.setImageDrawable(null); /* ImageView banerMision = findViewById(R.id.imageButtonmISION); Glide.with(this).load(R.drawable.figtitulopequeno).into(banerMision); banerMision.setImageDrawable(null); ImageView banerVision = findViewById(R.id.imageButtonVision); Glide.with(this).load(R.drawable.figtitulopequeno).into(banerVision); banerVision.setImageDrawable(null); */ /* ImageView imgFONDONOSOTROS = findViewById(R.id.imageViewFONDONOSOTROS); Glide.with(this).load(R.drawable.fondoengranes).into(imgFONDONOSOTROS); imgFONDONOSOTROS.setImageDrawable(null); */ // codigo para que la appbar collapsing no tenga scroll CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) appBarLayout.getLayoutParams(); params.setBehavior(new AppBarLayout.Behavior()); CoordinatorLayout.LayoutParams mparams = (CoordinatorLayout.LayoutParams) appBarLayout.getLayoutParams(); AppBarLayout.Behavior behavior = (AppBarLayout.Behavior) params.getBehavior(); behavior.setDragCallback(new AppBarLayout.Behavior.DragCallback() { @Override public boolean canDrag(@NonNull AppBarLayout appBarLayout) { return false; } }); /////////////////////////////////////// } @Override public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean fueRestaurado) { if(!fueRestaurado){ youTubePlayer.cueVideo("rpNc2JUIh2c"); } } @Override public void onInitializationFailure(YouTubePlayer.Provider provider, YouTubeInitializationResult youTubeInitializationResult) { if (youTubeInitializationResult.isUserRecoverableError()) { youTubeInitializationResult.getErrorDialog(this,1).show(); } else { String error = "Error al inicializar Youtube: " + youTubeInitializationResult.toString(); Toast.makeText(this, error, Toast.LENGTH_LONG).show(); } } protected void onActivityResult(int requestCode, int resultcode, Intent data){ if(resultcode==1){ getYoutubePlayerProvider().initialize(claveYoutube,this); } } protected YouTubePlayer.Provider getYoutubePlayerProvider(){ return youTubePlayerView1; } @Override public void onPlaying() { } @Override public void onPaused() { } @Override public void onStopped() { } @Override public void onBuffering(boolean b) { } @Override public void onSeekTo(int i) { } }
c6fccd46173d9e9aa798d5b1d35a05337e70a3ef
4ad8f282fa015116c227e480fe913779dc3c311b
/src/test/java/com/alibaba/druid/bvt/sql/mysql/createTable/MySqlCreateTableTest99.java
5df5667e2a4f5415003cb24dbdd4dde2585fba81
[ "Apache-2.0" ]
permissive
lonelyit/druid
91b6f36cdebeef4f96fec5b5c42e666c28e6019b
08da6108e409f18d38a30c0656553ab7fcbfc0f8
refs/heads/master
2023-07-24T17:37:14.479317
2021-09-20T06:26:47
2021-09-20T06:26:47
164,882,032
0
1
Apache-2.0
2021-09-20T13:40:13
2019-01-09T14:52:14
Java
UTF-8
Java
false
false
2,259
java
package com.alibaba.druid.bvt.sql.mysql.createTable; import com.alibaba.druid.sql.MysqlTest; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement; import com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser; import java.util.List; public class MySqlCreateTableTest99 extends MysqlTest { public void test_0() throws Exception { String sql = "CREATE TABLE IF NOT EXISTS srcTable\n" + "(\n" + " `id` BIGINT(20) NOT NULL,\n" + " `queue_id` BIGINT(20) NOT NULL DEFAULT '-1',\n" + " `status` TINYINT(4) NOT NULL DEFAULT '1',\n" + " PRIMARY KEY (`id`)\n" + ") ENGINE=INNODB AUTO_INCREMENT 10 AVG_ROW_LENGTH 10 DEFAULT CHARACTER SET=utf8 DEFAULT COLLATE = utf8_general_ci\n" + "CHECKSUM=0 COMPRESSION='NONE' CONNECTION = 'connect_string' DELAY_KEY_WRITE = 0 ENCRYPTION 'N' INSERT_METHOD FIRST\n" + "MAX_ROWS 1000 MIN_ROWS=10 PACK_KEYS DEFAULT PASSWORD '12345678' STATS_AUTO_RECALC 0 STATS_PERSISTENT 0 \n" + "STATS_SAMPLE_PAGES 10"; // System.out.println(sql); MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); MySqlCreateTableStatement stmt = (MySqlCreateTableStatement)statementList.get(0); assertEquals(1, statementList.size()); assertEquals(4, stmt.getTableElementList().size()); assertEquals("CREATE TABLE IF NOT EXISTS srcTable (\n" + "\t`id` BIGINT(20) NOT NULL,\n" + "\t`queue_id` BIGINT(20) NOT NULL DEFAULT '-1',\n" + "\t`status` TINYINT(4) NOT NULL DEFAULT '1',\n" + "\tPRIMARY KEY (`id`)\n" + ") ENGINE = INNODB AUTO_INCREMENT = 10 AVG_ROW_LENGTH = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci CHECKSUM = 0 COMPRESSION = 'NONE' CONNECTION = 'connect_string' DELAY_KEY_WRITE = 0 ENCRYPTION = 'N' INSERT_METHOD = FIRST MAX_ROWS = 1000 MIN_ROWS = 10 PACK_KEYS = DEFAULT PASSWORD = '12345678' STATS_AUTO_RECALC = 0 STATS_PERSISTENT = 0 STATS_SAMPLE_PAGES = 10", stmt.toString()); } }
9dbf9d8346c7113126a740ad1b8c36f43edb7e74
da2d64c365f37b3192c19e15272119fca514aeb1
/src/hobbyteca/vista/AñadirMusica.java
8b6fc0c0aa1f4997e4fae5be73931f0893a7567f
[]
no_license
ajcarrillocastillo/hobbyteca_app
85ee73baaa1f8ddaec08c382a9d8ec76802c720d
4f7223818832c1570b3b4e09774137078d912400
refs/heads/master
2021-01-11T14:13:54.206450
2017-02-07T10:09:08
2017-02-07T10:09:08
81,194,266
0
0
null
null
null
null
UTF-8
Java
false
false
29,036
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 hobbyteca.vista; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JTextField; import hobbyteca.controlador.ControladorAñadirMusica; import java.sql.SQLException; import java.util.Calendar; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JOptionPane; import javax.swing.JPanel; /** * * @author jesus */ public class AñadirMusica extends javax.swing.JDialog { private final ControladorAñadirMusica controladorAñadirMusica; /** * Creates new form AñadirMusiac * @param parent * @param modal */ public AñadirMusica(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); controladorAñadirMusica = new ControladorAñadirMusica(this); Calendar fecha = Calendar.getInstance(); int annoActual=fecha.get(Calendar.YEAR); //creamos un modeloDeCombobox DefaultComboBoxModel MiModelo= new DefaultComboBoxModel(); //le decimos hasta que fecha queremos llegar for( int fechaInicio=1888;fechaInicio<=annoActual;fechaInicio++){ String annadirFecha=""+fechaInicio; MiModelo.addElement(annadirFecha); } jComboBoxLanzamiento.setModel(MiModelo); } /** * 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() { jPanelContenedor = new javax.swing.JPanel(); jLabelTitulo = new javax.swing.JLabel(); jTextFieldTitulo = new javax.swing.JTextField(); jLabelASIN = new javax.swing.JLabel(); jTextFieldASIN = new javax.swing.JTextField(); jLabelAutor = new javax.swing.JLabel(); jTextFieldAutor = new javax.swing.JTextField(); jLabelAlbum = new javax.swing.JLabel(); jTextFieldAlbum = new javax.swing.JTextField(); jLabelDiscografica = new javax.swing.JLabel(); jTextFieldDiscografica = new javax.swing.JTextField(); jLabelLanzamiento = new javax.swing.JLabel(); jComboBoxLanzamiento = new javax.swing.JComboBox(); jLabelGenero = new javax.swing.JLabel(); jComboBoxGenero = new javax.swing.JComboBox(); jLabelTrailer = new javax.swing.JLabel(); jTextFieldEnlace = new javax.swing.JTextField(); jButtonAnnadir = new javax.swing.JButton(); jButtonCancelar = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Añadir Musica"); jLabelTitulo.setText("*Titulo"); jTextFieldTitulo.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextFieldTituloKeyTyped(evt); } }); jLabelASIN.setText("*ASIN:"); jTextFieldASIN.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextFieldASINKeyTyped(evt); } }); jLabelAutor.setText("*autor"); jTextFieldAutor.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextFieldAutorKeyTyped(evt); } }); jLabelAlbum.setText("*Album:"); jTextFieldAlbum.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextFieldAlbumKeyTyped(evt); } }); jLabelDiscografica.setText("*Discografica"); jTextFieldDiscografica.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextFieldDiscograficaKeyTyped(evt); } }); jLabelLanzamiento.setText("*Lanzamiento"); jComboBoxLanzamiento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1888", "1889", "1890", "1891", "1892", "1893", "1894", "1895", "1896", "1897", "1898", "1899", "1900", "1901", "1902", "1903", "1904", "1905", "1906", "1907", "1908", "1909", "1910", "1911", "1912", "1913", "1914", "1915", "1916", "1917", "1918", "1919", "1920", "1921", "1922", "1923", "1924", "1925", "1926", "1927", "1928", "1929", "1930", "1931", "1932", "1933", "1934", "1935", "1936", "1937", "1938", "1939", "1940", "1941", "1942", "1943", "1944", "1945", "1946", "1947", "1948", "1949", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035" })); jLabelGenero.setText("*Genero"); jComboBoxGenero.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "rock", "pop", "electronica", "rap", "instrumental", "salsa", "jazz", "country", "hip-hop", "clasica" })); jComboBoxGenero.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jComboBoxGeneroActionPerformed(evt); } }); jLabelTrailer.setText("Enlace:"); jTextFieldEnlace.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextFieldEnlaceKeyTyped(evt); } }); jButtonAnnadir.setText("Añadir"); jButtonAnnadir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAnnadirActionPerformed(evt); } }); jButtonCancelar.setText("Cancelar"); jButtonCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCancelarActionPerformed(evt); } }); jLabel1.setForeground(new java.awt.Color(126, 126, 126)); jLabel1.setText("Todos los campos con \"*\" son obligatorios"); javax.swing.GroupLayout jPanelContenedorLayout = new javax.swing.GroupLayout(jPanelContenedor); jPanelContenedor.setLayout(jPanelContenedorLayout); jPanelContenedorLayout.setHorizontalGroup( jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContenedorLayout.createSequentialGroup() .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelContenedorLayout.createSequentialGroup() .addGap(57, 57, 57) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabelAlbum) .addComponent(jLabelTitulo) .addComponent(jLabelASIN) .addComponent(jLabelAutor))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContenedorLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelDiscografica, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabelLanzamiento, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelTrailer) .addComponent(jLabelGenero))))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContenedorLayout.createSequentialGroup() .addComponent(jLabel1) .addGap(71, 71, 71)) .addGroup(jPanelContenedorLayout.createSequentialGroup() .addGap(57, 57, 57) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextFieldDiscografica) .addComponent(jTextFieldEnlace) .addComponent(jComboBoxLanzamiento, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jComboBoxGenero, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(jPanelContenedorLayout.createSequentialGroup() .addGap(57, 57, 57) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextFieldAutor) .addComponent(jTextFieldTitulo) .addComponent(jTextFieldASIN) .addComponent(jTextFieldAlbum, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(jPanelContenedorLayout.createSequentialGroup() .addComponent(jButtonAnnadir) .addGap(93, 93, 93) .addComponent(jButtonCancelar))) .addGap(43, 43, 43)) ); jPanelContenedorLayout.setVerticalGroup( jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelContenedorLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelTitulo) .addComponent(jTextFieldTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelContenedorLayout.createSequentialGroup() .addComponent(jLabelASIN) .addGap(19, 19, 19)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContenedorLayout.createSequentialGroup() .addComponent(jTextFieldASIN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18))) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextFieldAutor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelAutor)) .addGap(18, 18, 18) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelAlbum) .addComponent(jTextFieldAlbum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelDiscografica) .addComponent(jTextFieldDiscografica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelLanzamiento) .addComponent(jComboBoxLanzamiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelGenero) .addComponent(jComboBoxGenero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextFieldEnlace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelTrailer)) .addGap(18, 18, 18) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonAnnadir) .addComponent(jButtonCancelar)) .addContainerGap()) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanelContenedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanelContenedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jComboBoxGeneroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxGeneroActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jComboBoxGeneroActionPerformed private void jTextFieldTituloKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldTituloKeyTyped controladorAñadirMusica.caracteresMaximos(evt, 100, jTextFieldTitulo); }//GEN-LAST:event_jTextFieldTituloKeyTyped private void jTextFieldAutorKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldAutorKeyTyped controladorAñadirMusica.caracteresMaximos(evt, 100, jTextFieldAutor); }//GEN-LAST:event_jTextFieldAutorKeyTyped private void jTextFieldDiscograficaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldDiscograficaKeyTyped controladorAñadirMusica.caracteresMaximos(evt, 100, jTextFieldDiscografica); }//GEN-LAST:event_jTextFieldDiscograficaKeyTyped private void jTextFieldEnlaceKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldEnlaceKeyTyped controladorAñadirMusica.caracteresMaximos(evt, 300, jTextFieldEnlace); }//GEN-LAST:event_jTextFieldEnlaceKeyTyped private void jButtonCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarActionPerformed dispose(); // TODO add your handling code here: }//GEN-LAST:event_jButtonCancelarActionPerformed private void jButtonAnnadirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAnnadirActionPerformed String titulo = jTextFieldTitulo.getText(); String ASIN = jTextFieldASIN.getText(); String autor = jTextFieldAutor.getText(); String discografica = jTextFieldDiscografica.getText(); String lanzamiento = new String((String) jComboBoxLanzamiento.getSelectedItem()); String genero = new String((String) jComboBoxGenero.getSelectedItem()); String enlace = jTextFieldEnlace.getText(); String album = jTextFieldAlbum.getText(); if(ASIN.length()<10){ JOptionPane.showMessageDialog(this, "ASIN debe tener 10 carcateres", "Error", JOptionPane.ERROR_MESSAGE); }else{ switch (controladorAñadirMusica.comprobarCamposRellenos( ASIN, titulo, autor, discografica, album ,enlace)) { case 0: JOptionPane.showMessageDialog(this, "Rellene todos los campos correctamente", "Error", JOptionPane.ERROR_MESSAGE); break; case 1: { try { if (controladorAñadirMusica.insertarMusica(ASIN, titulo, autor, discografica, lanzamiento, genero, album , null)) { JOptionPane.showMessageDialog(this, "Se ha guardado Correctamente sin Trailer", "Info", JOptionPane.INFORMATION_MESSAGE); dispose(); } else { JOptionPane.showMessageDialog(this, "No se ha guardado", "Error", JOptionPane.ERROR_MESSAGE); } } catch (SQLException ex) { JOptionPane.showMessageDialog(this, "Titulo repetido." + "Si es una remasterización por favor ponga al final del titulo el año entre parentesis", "Error", JOptionPane.ERROR_MESSAGE); Logger.getLogger(AñadirMusica.class.getName()).log(Level.SEVERE, null, ex);//borrar antes de entregar } } //guardarPeliculaSinTrailer break; case 2: { try { if (controladorAñadirMusica.insertarMusica(ASIN, titulo, autor, discografica, lanzamiento, genero, album ,enlace)) { JOptionPane.showMessageDialog(this, "Se ha guardado Correctamente", "Info", JOptionPane.INFORMATION_MESSAGE); dispose(); } else { JOptionPane.showMessageDialog(this, "No se ha guardado", "Error", JOptionPane.ERROR_MESSAGE); } } catch (SQLException ex) { JOptionPane.showMessageDialog(null, "Error con la bdd contacte con el administrador", "Error inesperado", JOptionPane.ERROR_MESSAGE); Logger.getLogger(AñadirMusica.class.getName()).log(Level.SEVERE, null, ex); } } //guardarMusicaConEnlace break; case 3: JOptionPane.showMessageDialog(this, "Titulo ya existente. " + "Si es una remasterización por favor pongala con el año entre parentesis detras del titulo", "Error", JOptionPane.ERROR_MESSAGE); break; default: JOptionPane.showMessageDialog(this, "Si ves este mensaje es que has tocado el codigo por favor dejalo como estaba y no vuevas edites nada", "Error", JOptionPane.ERROR_MESSAGE); break; }} }//GEN-LAST:event_jButtonAnnadirActionPerformed private void jTextFieldASINKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldASINKeyTyped controladorAñadirMusica.caracteresMaximos(evt, 10, jTextFieldASIN); }//GEN-LAST:event_jTextFieldASINKeyTyped private void jTextFieldAlbumKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldAlbumKeyTyped controladorAñadirMusica.caracteresMaximos(evt, 100, jTextFieldASIN); }//GEN-LAST:event_jTextFieldAlbumKeyTyped /** * @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(AñadirMusica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(AñadirMusica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(AñadirMusica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(AñadirMusica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { AñadirMusica dialog = new AñadirMusica(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } public JButton getjButtonAnnadir() { return jButtonAnnadir; } public void setjButtonAnnadir(JButton jButtonAnnadir) { this.jButtonAnnadir = jButtonAnnadir; } public JButton getjButtonCancelar() { return jButtonCancelar; } public void setjButtonCancelar(JButton jButtonCancelar) { this.jButtonCancelar = jButtonCancelar; } public JComboBox getjComboBoxGenero() { return jComboBoxGenero; } public void setjComboBoxGenero(JComboBox jComboBoxGenero) { this.jComboBoxGenero = jComboBoxGenero; } public JComboBox getjComboBoxLanzamiento() { return jComboBoxLanzamiento; } public void setjComboBoxLanzamiento(JComboBox jComboBoxLanzamiento) { this.jComboBoxLanzamiento = jComboBoxLanzamiento; } public JLabel getjLabel1() { return jLabel1; } public void setjLabel1(JLabel jLabel1) { this.jLabel1 = jLabel1; } public JLabel getjLabelASIN() { return jLabelASIN; } public void setjLabelASIN(JLabel jLabelASIN) { this.jLabelASIN = jLabelASIN; } public JLabel getjLabelAlbum() { return jLabelAlbum; } public void setjLabelAlbum(JLabel jLabelAlbum) { this.jLabelAlbum = jLabelAlbum; } public JLabel getjLabelAutor() { return jLabelAutor; } public void setjLabelAutor(JLabel jLabelAutor) { this.jLabelAutor = jLabelAutor; } public JLabel getjLabelDiscografica() { return jLabelDiscografica; } public void setjLabelDiscografica(JLabel jLabelDiscografica) { this.jLabelDiscografica = jLabelDiscografica; } public JLabel getjLabelGenero() { return jLabelGenero; } public void setjLabelGenero(JLabel jLabelGenero) { this.jLabelGenero = jLabelGenero; } public JLabel getjLabelLanzamiento() { return jLabelLanzamiento; } public void setjLabelLanzamiento(JLabel jLabelLanzamiento) { this.jLabelLanzamiento = jLabelLanzamiento; } public JLabel getjLabelTitulo() { return jLabelTitulo; } public void setjLabelTitulo(JLabel jLabelTitulo) { this.jLabelTitulo = jLabelTitulo; } public JLabel getjLabelTrailer() { return jLabelTrailer; } public void setjLabelTrailer(JLabel jLabelTrailer) { this.jLabelTrailer = jLabelTrailer; } public JPanel getjPanelContenedor() { return jPanelContenedor; } public void setjPanelContenedor(JPanel jPanelContenedor) { this.jPanelContenedor = jPanelContenedor; } public JTextField getjTextFieldASIN() { return jTextFieldASIN; } public void setjTextFieldASIN(JTextField jTextFieldASIN) { this.jTextFieldASIN = jTextFieldASIN; } public JTextField getjTextFieldAlbum() { return jTextFieldAlbum; } public void setjTextFieldAlbum(JTextField jTextFieldAlbum) { this.jTextFieldAlbum = jTextFieldAlbum; } public JTextField getjTextFieldAutor() { return jTextFieldAutor; } public void setjTextFieldAutor(JTextField jTextFieldAutor) { this.jTextFieldAutor = jTextFieldAutor; } public JTextField getjTextFieldDiscografica() { return jTextFieldDiscografica; } public void setjTextFieldDiscografica(JTextField jTextFieldDiscografica) { this.jTextFieldDiscografica = jTextFieldDiscografica; } public JTextField getjTextFieldEnlace() { return jTextFieldEnlace; } public void setjTextFieldEnlace(JTextField jTextFieldEnlace) { this.jTextFieldEnlace = jTextFieldEnlace; } public JTextField getjTextFieldTitulo() { return jTextFieldTitulo; } public void setjTextFieldTitulo(JTextField jTextFieldTitulo) { this.jTextFieldTitulo = jTextFieldTitulo; } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonAnnadir; private javax.swing.JButton jButtonCancelar; private javax.swing.JComboBox jComboBoxGenero; private javax.swing.JComboBox jComboBoxLanzamiento; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabelASIN; private javax.swing.JLabel jLabelAlbum; private javax.swing.JLabel jLabelAutor; private javax.swing.JLabel jLabelDiscografica; private javax.swing.JLabel jLabelGenero; private javax.swing.JLabel jLabelLanzamiento; private javax.swing.JLabel jLabelTitulo; private javax.swing.JLabel jLabelTrailer; private javax.swing.JPanel jPanelContenedor; private javax.swing.JTextField jTextFieldASIN; private javax.swing.JTextField jTextFieldAlbum; private javax.swing.JTextField jTextFieldAutor; private javax.swing.JTextField jTextFieldDiscografica; private javax.swing.JTextField jTextFieldEnlace; private javax.swing.JTextField jTextFieldTitulo; // End of variables declaration//GEN-END:variables }
e182b33f95bd58bdaa4731c7b24aeb10ab0800bc
dadbd0e10b9141d92b1995c73f29c73f4f39ea15
/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/snapsync/request/AccountRangeDataRequest.java
519135a10adbfe864fe1110148314d19b2d4e847
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
terrencecooke/besu
1fd54d376031bb4a39c6b218b62d15aa5862457a
9a6701eb4e1506aefd71f6b529899050940da86a
refs/heads/master
2022-10-25T03:12:13.793678
2022-09-14T21:51:45
2022-09-14T21:51:45
223,843,807
0
0
Apache-2.0
2020-10-13T14:54:18
2019-11-25T02:11:46
Java
UTF-8
Java
false
false
7,483
java
/* * Copyright contributors to Hyperledger Besu * * 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. * * SPDX-License-Identifier: Apache-2.0 */ package org.hyperledger.besu.ethereum.eth.sync.snapsync.request; import static org.hyperledger.besu.ethereum.eth.sync.snapsync.RangeManager.MAX_RANGE; import static org.hyperledger.besu.ethereum.eth.sync.snapsync.RangeManager.MIN_RANGE; import static org.hyperledger.besu.ethereum.eth.sync.snapsync.RangeManager.findNewBeginElementInRange; import static org.hyperledger.besu.ethereum.eth.sync.snapsync.RequestType.ACCOUNT_RANGE; import org.hyperledger.besu.datatypes.Hash; import org.hyperledger.besu.ethereum.eth.sync.snapsync.SnapSyncState; import org.hyperledger.besu.ethereum.eth.sync.snapsync.SnapWorldDownloadState; import org.hyperledger.besu.ethereum.eth.sync.snapsync.StackTrie; import org.hyperledger.besu.ethereum.proof.WorldStateProofProvider; import org.hyperledger.besu.ethereum.rlp.RLP; import org.hyperledger.besu.ethereum.trie.NodeUpdater; import org.hyperledger.besu.ethereum.worldstate.StateTrieAccountValue; import org.hyperledger.besu.ethereum.worldstate.WorldStateStorage; import org.hyperledger.besu.ethereum.worldstate.WorldStateStorage.Updater; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.TreeMap; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Stream; import com.google.common.annotations.VisibleForTesting; import kotlin.collections.ArrayDeque; import org.apache.tuweni.bytes.Bytes; import org.apache.tuweni.bytes.Bytes32; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** Returns a list of accounts and the merkle proofs of an entire range */ public class AccountRangeDataRequest extends SnapDataRequest { private static final Logger LOG = LoggerFactory.getLogger(AccountRangeDataRequest.class); protected final Bytes32 startKeyHash; protected final Bytes32 endKeyHash; private final Optional<Bytes32> startStorageRange; private final Optional<Bytes32> endStorageRange; private final StackTrie stackTrie; private Optional<Boolean> isProofValid; protected AccountRangeDataRequest( final Hash rootHash, final Bytes32 startKeyHash, final Bytes32 endKeyHash, final Optional<Bytes32> startStorageRange, final Optional<Bytes32> endStorageRange) { super(ACCOUNT_RANGE, rootHash); this.startKeyHash = startKeyHash; this.endKeyHash = endKeyHash; this.startStorageRange = startStorageRange; this.endStorageRange = endStorageRange; this.isProofValid = Optional.empty(); this.stackTrie = new StackTrie(rootHash, startKeyHash); LOG.trace( "create get account range data request with root hash={} from {} to {}", rootHash, startKeyHash, endKeyHash); } protected AccountRangeDataRequest( final Hash rootHash, final Bytes32 startKeyHash, final Bytes32 endKeyHash) { this(rootHash, startKeyHash, endKeyHash, Optional.empty(), Optional.empty()); } protected AccountRangeDataRequest( final Hash rootHash, final Hash accountHash, final Bytes32 startStorageRange, final Bytes32 endStorageRange) { this( rootHash, accountHash, accountHash, Optional.of(startStorageRange), Optional.of(endStorageRange)); } @Override protected int doPersist( final WorldStateStorage worldStateStorage, final Updater updater, final SnapWorldDownloadState downloadState, final SnapSyncState snapSyncState) { if (startStorageRange.isPresent() && endStorageRange.isPresent()) { // not store the new account if we just want to complete the account thanks to another // rootHash return 0; } // search incomplete nodes in the range final AtomicInteger nbNodesSaved = new AtomicInteger(); final NodeUpdater nodeUpdater = (location, hash, value) -> { updater.putAccountStateTrieNode(location, hash, value); nbNodesSaved.getAndIncrement(); }; stackTrie.commit(nodeUpdater); downloadState.getMetricsManager().notifyAccountsDownloaded(stackTrie.getElementsCount().get()); return nbNodesSaved.get(); } public void addResponse( final WorldStateProofProvider worldStateProofProvider, final TreeMap<Bytes32, Bytes> accounts, final ArrayDeque<Bytes> proofs) { if (!accounts.isEmpty() || !proofs.isEmpty()) { if (!worldStateProofProvider.isValidRangeProof( startKeyHash, endKeyHash, getRootHash(), proofs, accounts)) { isProofValid = Optional.of(false); } else { stackTrie.addElement(startKeyHash, proofs, accounts); isProofValid = Optional.of(true); } } } @Override public boolean isResponseReceived() { return isProofValid.orElse(false); } @Override public Stream<SnapDataRequest> getChildRequests( final SnapWorldDownloadState downloadState, final WorldStateStorage worldStateStorage, final SnapSyncState snapSyncState) { final List<SnapDataRequest> childRequests = new ArrayList<>(); final StackTrie.TaskElement taskElement = stackTrie.getElement(startKeyHash); // new request is added if the response does not match all the requested range findNewBeginElementInRange(getRootHash(), taskElement.proofs(), taskElement.keys(), endKeyHash) .ifPresentOrElse( missingRightElement -> { downloadState .getMetricsManager() .notifyStateDownloaded(missingRightElement, endKeyHash); childRequests.add( createAccountRangeDataRequest(getRootHash(), missingRightElement, endKeyHash)); }, () -> downloadState.getMetricsManager().notifyStateDownloaded(endKeyHash, endKeyHash)); // find missing storages and code for (Map.Entry<Bytes32, Bytes> account : taskElement.keys().entrySet()) { final StateTrieAccountValue accountValue = StateTrieAccountValue.readFrom(RLP.input(account.getValue())); if (!accountValue.getStorageRoot().equals(Hash.EMPTY_TRIE_HASH)) { childRequests.add( createStorageRangeDataRequest( getRootHash(), account.getKey(), accountValue.getStorageRoot(), startStorageRange.orElse(MIN_RANGE), endStorageRange.orElse(MAX_RANGE))); } if (!accountValue.getCodeHash().equals(Hash.EMPTY)) { childRequests.add( createBytecodeRequest(account.getKey(), getRootHash(), accountValue.getCodeHash())); } } return childRequests.stream(); } public Bytes32 getStartKeyHash() { return startKeyHash; } public Bytes32 getEndKeyHash() { return endKeyHash; } @VisibleForTesting public TreeMap<Bytes32, Bytes> getAccounts() { return stackTrie.getElement(startKeyHash).keys(); } }
2cd6e31b9f29621280237cb1f48f6355d639ac00
1e43d981174386272f143462e35bbd5b9b3bad06
/jy2-launch/src/main/java/org/ros/rosjava/roslaunch/launching/RosParamManager.java
34528016d0d63cf6f9ba3087013a0407c99622d8
[ "BSD-3-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
wmlynar/jyroscope2
1f49ddbe3e1afea7f1e6269398092ef113d62a20
4867e52ed594514875e9bba32bd0ba6e034acff1
refs/heads/develop
2023-09-03T19:45:52.173098
2023-09-01T14:54:06
2023-09-01T14:54:06
249,958,091
1
0
null
2023-06-26T14:59:04
2020-03-25T11:16:48
Java
UTF-8
Java
false
false
11,217
java
package org.ros.rosjava.roslaunch.launching; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.ros.rosjava.roslaunch.logging.PrintLog; import org.ros.rosjava.roslaunch.parsing.GroupTag; import org.ros.rosjava.roslaunch.parsing.IncludeTag; import org.ros.rosjava.roslaunch.parsing.LaunchFile; import org.ros.rosjava.roslaunch.parsing.NodeTag; import org.ros.rosjava.roslaunch.parsing.RosParamTag; import org.ros.rosjava.roslaunch.util.Jyroscope2Util; import org.ros.rosjava.roslaunch.util.RosUtil; import org.ros.rosjava.roslaunch.xmlrpc.ObjectToXml; import org.ros.rosjava.roslaunch.xmlrpc.RosXmlRpcClient; /** * The RosParamManager class * * This class is responsible for dealing with RosParamTags * defined within a launch file tree. */ public class RosParamManager { ////////////////////////////////////////////// // get params functions // /** * Get the List of RosParamTags defined within the tree of * launch files defined by the given List of LaunchFiles. * * @param launchFiles the List of LaunchFiles * @return the List of RosParamTags */ public static List<RosParamTag> getRosParams(final List<LaunchFile> launchFiles) { List<RosParamTag> rosParams = new ArrayList<RosParamTag>(); for (LaunchFile launchFile : launchFiles) { if (launchFile.isEnabled()) { List<RosParamTag> launchParams = getRosParams(launchFile); rosParams.addAll(launchParams); } } return rosParams; } /** * Get the List of RosParamTags defined within the given LaunchFile. * * @param launchFiles the LaunchFile * @return the List of RosParamTags */ public static List<RosParamTag> getRosParams(final LaunchFile launchFile) { List<RosParamTag> rosParams = new ArrayList<RosParamTag>(); // Stop if this launch file is disabled if (!launchFile.isEnabled()) return rosParams; // Add all rosparams defined in the launch tree for (RosParamTag rosParam : launchFile.getRosParams()) { // Only get enabled rosparams if (rosParam.isEnabled()) { rosParams.add(rosParam); } } // Add all rosparams defined by nodes for (NodeTag node : launchFile.getNodes()) { if (node.isEnabled()) { for (RosParamTag rosParam : node.getRosParams()) { // Only get enabled ros params if (rosParam.isEnabled()) { rosParams.add(rosParam); } } } } // Add all rosparams defined by groups for (GroupTag group : launchFile.getGroups()) { if (group.isEnabled()) { List<RosParamTag> groupParams = getRosParams(group.getLaunchFile()); rosParams.addAll(groupParams); } } // Add all rosparams defined in includes for (IncludeTag include : launchFile.getIncludes()) { if (include.isEnabled()) { List<RosParamTag> includeParams = getRosParams(include.getLaunchFile()); rosParams.addAll(includeParams); } } return rosParams; } /** * Get the Map of rosparam names to rosparam values for all RosParamTags * that load a parameter for the given launch file tree. * * @param launchFiles the List of LaunchFiles * @return the Map of 'load' rosparam name value pairs */ public static Map<String, String> getLoadRosParamsMap(final List<LaunchFile> launchFiles) { Map<String, String> loadParams = new HashMap<String, String>(); for (LaunchFile launchFile : launchFiles) { if (launchFile.isEnabled()) { getLoadRosParamsMap(launchFile, loadParams); } } return loadParams; } /** * Get the Map of rosparam names to rosparam values for all RosParamTags * that load a parameter for the given LaunchFile. * * @param launchFiles the LaunchFile * @param loadParams the Map of 'load' rosparam name value pairs */ public static void getLoadRosParamsMap( final LaunchFile launchFile, Map<String, String> loadParams) { // Stop if the launch file is disabled if (!launchFile.isEnabled()) return; // Add all rosparams defined in the launch tree for (RosParamTag rosParam : launchFile.getRosParams()) { if (rosParam.isEnabled() && rosParam.isLoadCommand()) { getLoadRosParam(rosParam, loadParams); } } // Add all rosparams defined by nodes for (NodeTag node : launchFile.getNodes()) { if (node.isEnabled()) { for (RosParamTag rosParam : node.getRosParams()) { if (rosParam.isEnabled() && rosParam.isLoadCommand()) { getLoadRosParam(rosParam, loadParams); } } } } // Add all rosparams defined by groups for (GroupTag group : launchFile.getGroups()) { if (group.isEnabled()) { getLoadRosParamsMap(group.getLaunchFile(), loadParams); } } // Add all rosparams defined in includes for (IncludeTag include : launchFile.getIncludes()) { if (include.isEnabled()) { getLoadRosParamsMap(include.getLaunchFile(), loadParams); } } } /** * Get a map of rosparam name value pairs for a single 'load' RosParamTag. * * @param rosParam the RosParamTag * @param loadParams the Map of 'load' rosparam name value pairs */ @SuppressWarnings("unchecked") public static void getLoadRosParam( final RosParamTag rosParam, Map<String, String> loadParams) { if (rosParam.isEnabled()) { ///// must be a load command String resolved = rosParam.getResolvedName(); Object yamlObj = rosParam.getYamlObject(); String content = rosParam.getYamlContent(); if (resolved.length() > 0 && content.length() > 0) { // Handle dumping dictionary parameters, which end up // dumping parameters based on the layout of the dictionary if (yamlObj != null && ObjectToXml.isMap(yamlObj)) { getLoadRosParamDict( resolved, (Map<String, Object>)yamlObj, loadParams); return; } else { // Store the non-dictionary parameter loadParams.put(resolved, content); } } } } /** * Get a Map of rosparam name value pairs for all the parameters * that will be loaded by a RosParamTag with a dictionary (i.e., Map) * value. * * @param namespace the namespace of the RosParamTag * @param map the Map value of the RosParamTag * @param loadParams the Map of rosparam name value pairs */ @SuppressWarnings("unchecked") private static void getLoadRosParamDict( final String namespace, final Map<String, Object> map, Map<String, String> loadParams) { for (Object key : map.keySet()) { Object value = map.get(key); String resolvedKey = RosUtil.joinNamespace(namespace, key.toString()); if (ObjectToXml.isMap(value)) { // Recurse to handle this dictionary getLoadRosParamDict( resolvedKey, (Map<String, Object>)value, loadParams); } else { // Found a parameter, print it loadParams.put(resolvedKey, value.toString()); } } } ////////////////////////////////////////////// // set functions // /** * Send a request to the ROS master server to set all of * the rosparams defined in the given List of RosParamTags. * * @param rosParams the List of RosParamTags * @param uri the URI to reach the ROS master server * @throws Exception if one of the rosparams failed to set */ public static void setParameters( final List<RosParamTag> rosParams, final String uri) throws Exception { for (RosParamTag rosParam: rosParams) { if (rosParam.isEnabled() && rosParam.isLoadCommand()) { setRosParam(rosParam, uri); } } } /** * Send a request to the ROS master server to set the value of * a single RosParamTag. * * @param rosParam the RosParamTag * @param uri the URI to reach the ROS master server * @throws Exception if the rosparam failed to be set */ private static void setRosParam(final RosParamTag rosParam, final String uri) throws Exception { if (rosParam.isEnabled()) { ///// must be a load command String resolved = rosParam.getResolvedName(); Object yamlObj = rosParam.getYamlObject(); if (resolved.length() > 0 && yamlObj != null) { RosXmlRpcClient client = new RosXmlRpcClient(uri); client.setYamlParam(rosParam); // // Jyroscope2Util.setYamlParam(rosParam); } } } ////////////////////////////////////////////// // rosparam delete functions // /** * Send a request to the ROS master server to delete all * of the RosParamTags defined in the given List. * * @param rosParams the List of RosParamTags * @param uri the URI to reach the ROS master server */ public static void deleteParameters( final List<RosParamTag> rosParams, final String uri) { for (RosParamTag rosParam : rosParams) { if (rosParam.isEnabled() && rosParam.isDeleteCommand()) { deleteRosParam(rosParam, uri); } } } /** * Send a request to the ROS master server to delete a * single RosParamTag. * * @param rosParam the RosParamTag to delete * @param uri the URI to reach the ROS master server */ private static void deleteRosParam(final RosParamTag rosParam, final String uri) { if (rosParam.isEnabled()) { String param = rosParam.getResolvedName(); PrintLog.info("running rosparam delete " + param); RosXmlRpcClient client = new RosXmlRpcClient(uri); try { // Handle the generic delete differently than // normal delete params if (param.compareTo("/") == 0) { client.clearParam(param); } else { client.deleteParam(param); } } catch (Exception e) { PrintLog.error(e.getMessage()); } // Jyroscope2Util.deleteParameter(param); } } ////////////////////////////////////////////// // rosparam dump functions // /** * Run all of the 'dump' RosParamTags defined in the given * List of RosParamTags. * * @param rosParams the List of RosParamTags * @param uri the URI to reach the ROS master server */ public static void dumpParameters( final List<RosParamTag> rosParams, final String uri) { for (RosParamTag rosParam : rosParams) { if (rosParam.isEnabled() && rosParam.isDumpCommand()) { dumpParam(rosParam); } } } /** * Run a single 'dump' rosparam command. * * @param rosParam the RosParamTag */ public static void dumpParam(final RosParamTag rosParam) { if (rosParam.isEnabled()) { String file = rosParam.getFile(); // Make sure the file exists if (file != null && file.length() > 0) { List<String> fullCommand = new ArrayList<String>(); String resolvedName = rosParam.getResolvedName(); // Create the command to dump the rosparam to the desired file fullCommand.add("rosparam"); fullCommand.add("dump"); fullCommand.add(file); fullCommand.add(resolvedName); // Convert the list of command args to an array String[] command = new String[fullCommand.size()]; fullCommand.toArray(command); PrintLog.info("running rosparam dump " + file + " " + resolvedName); Process proc; try { proc = Runtime.getRuntime().exec(command); // Wait for the process to complete -- should be fast proc.waitFor(); } catch (Exception e) { String msg = "ERROR: while running: rosparam dump " + file + " " + resolvedName; msg += "\n" + e.getMessage(); PrintLog.error(msg); } } } } }
ef99538c3e38b63ef030dd6d108f6b780d4e0e45
5580e487d0b5078b305e7a081e067becdd8aa6e4
/Collected_Solutions/70-85/Q70/Test.java
e4e5bdf332da4d495ea17ea0ff2f3214a0b50f3e
[]
no_license
mostafiz9900/OCP-809
2255aac0e6836420bd8cdc81dd2837c1898f681a
5704fa471909c2cb7b12eb10c452e7cb69ce40e6
refs/heads/master
2023-02-13T23:57:06.674659
2021-01-09T16:39:53
2021-01-09T16:39:53
324,604,637
0
0
null
null
null
null
UTF-8
Java
false
false
748
java
package com.coderbd.Q70; class Resource implements AutoCloseable{ public void close()throws Exception{ System.out.println("Close-"); } public void open(){ System.out.println("Open-"); } } public class Test { public static void main(String[] args) { Resource res1=new Resource(); try{ res1.open(); res1.close(); }catch(Exception e){ System.out.println("Exception -1"); } try(res1=new Resource()){ //line n1 res1.open(); }catch(Exception e){ System.out.println("Exception -2"); } //// Ans: D ---> A compilation Error Occurs at line n1 } }
ac59d60ffdeaa159142fc799a907fea39553b9b5
dbd4197dd265fcafe1421b7682456bfe052971a3
/junit5/src/main/java/org/jboss/weld/junit5/WeldJunit5Extension.java
0f7212e0e9bdda16dd9666c5a2cf6ec6749b562b
[ "Apache-2.0" ]
permissive
Sinouplen/weld-junit
54574ee7e942d49c378b0cadcec14a6b31d100a5
ed14da41abd4367e333194ce60ee5d80131e4d17
refs/heads/master
2021-01-25T12:14:27.937498
2018-02-22T16:02:13
2018-02-23T13:19:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
11,613
java
/* * JBoss, Home of Professional Open Source * Copyright 2017, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * 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.jboss.weld.junit5; import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS; import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_METHOD; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import javax.enterprise.inject.spi.BeanManager; import org.jboss.weld.environment.se.WeldContainer; import org.jboss.weld.junit.AbstractWeldInitiator; import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.extension.AfterAllCallback; import org.junit.jupiter.api.extension.AfterTestExecutionCallback; import org.junit.jupiter.api.extension.ExtensionContext; import org.junit.jupiter.api.extension.ParameterContext; import org.junit.jupiter.api.extension.ParameterResolutionException; import org.junit.jupiter.api.extension.ParameterResolver; import org.junit.jupiter.api.extension.TestInstancePostProcessor; /** * JUnit 5 extension allowing to bootstrap Weld SE container for each @Test method and tear it down afterwards. Also allows to * inject CDI beans as parameters to @Test methods and resolves all @Inject fields in test class. * * By default (if no {@link WeldInitiator} field annotated with {@link WeldSetup} is present), Weld is configured with the * result of {@link WeldInitiator#createWeld()} method and all the classes from the test class package are added: * * <pre> * &#64;ExtendWith(WeldJunit5Extension.class) * public class SimpleTest { * * // Injected automatically * &#64;Inject * Foo foo; * * &#64;Test * public void testFoo() { * // Weld container is started automatically * assertEquals("baz", foo.getBaz()); * } * } * </pre> * * @author <a href="mailto:[email protected]">Matej Novotny</a> */ public class WeldJunit5Extension implements AfterAllCallback, TestInstancePostProcessor, AfterTestExecutionCallback, ParameterResolver { // variables used to identify object in Store private static final String INITIATOR = "weldInitiator"; private static final String CONTAINER = "weldContainer"; private static final String EXPLICIT_PARAM_INJECTION = "explicitParamInjection"; // global system property public static final String GLOBAL_EXPLICIT_PARAM_INJECTION = "org.jboss.weld.junit5.explicitParamInjection"; @Override public void afterAll(ExtensionContext context) throws Exception { if (determineTestLifecycle(context).equals(PER_CLASS)) { getInitiatorFromStore(context).shutdownWeld(); } } @Override public void afterTestExecution(ExtensionContext context) throws Exception { if (determineTestLifecycle(context).equals(PER_METHOD)) { getInitiatorFromStore(context).shutdownWeld(); } } @Override public void postProcessTestInstance(Object testInstance, ExtensionContext context) throws Exception { // store info about explicit param injection, either from global settings or from annotation on the test class storeExplicitParamResolutionInformation(context); // all found fields which are WeldInitiator and have @WeldSetup annotation List<Field> foundInitiatorFields = new ArrayList<>(); WeldInitiator initiator = null; // We will go through class hierarchy in search of @WeldSetup field (even private) for (Class<?> clazz = testInstance.getClass(); clazz != null; clazz = clazz.getSuperclass()) { // Find @WeldSetup field using getDeclaredFields() - this allows even for private fields for (Field field : clazz.getDeclaredFields()) { if (field.isAnnotationPresent(WeldSetup.class)) { Object fieldInstance; try { fieldInstance = field.get(testInstance); } catch (IllegalAccessException e) { // In case we cannot get to the field, we need to set accessibility as well field.setAccessible(true); fieldInstance = field.get(testInstance); } if (fieldInstance != null && fieldInstance instanceof WeldInitiator) { initiator = (WeldInitiator) fieldInstance; foundInitiatorFields.add(field); } else { // Field with other type than WeldInitiator was annotated with @WeldSetup throw new IllegalStateException("@WeldSetup annotation should only be used on a field of type" + " WeldInitiator but was found on a field of type " + field.getType() + " which is declared " + "in class " + field.getDeclaringClass()); } } } } // Multiple occurrences of @WeldSetup in the hierarchy will lead to an exception if (foundInitiatorFields.size() > 1) { throw new IllegalStateException(foundInitiatorFields.stream().map(f -> "Field type - " + f.getType() + " which is " + "in " + f.getDeclaringClass()).collect(Collectors.joining("\n", "Multiple @WeldSetup annotated fields found, " + "only one is allowed! Fields found:\n", ""))); } // at this point we can be sure that either no or exactly one WeldInitiator was found if (initiator == null) { initiator = WeldInitiator.from(AbstractWeldInitiator.createWeld().addPackage(false, testInstance.getClass())).build(); } getStore(context).put(INITIATOR, initiator); // and finally, init Weld getStore(context).put(CONTAINER, initiator.initWeld(testInstance)); } @Override public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException { // we did our checks in supportsParameter() method, now we can do simple resolution if (getContainerFromStore(extensionContext) != null) { List<Annotation> qualifiers = resolveQualifiers(parameterContext, getContainerFromStore(extensionContext).getBeanManager()); return getContainerFromStore(extensionContext) .select(parameterContext.getParameter().getType(), qualifiers.toArray(new Annotation[qualifiers.size()])).get(); } return null; } @Override public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException { // if weld container isn't up yet or if its not Method, we don't resolve it if (getContainerFromStore(extensionContext) == null || (!(parameterContext.getDeclaringExecutable() instanceof Method))) { return false; } List<Annotation> qualifiers = resolveQualifiers(parameterContext, getContainerFromStore(extensionContext).getBeanManager()); // if we require explicit parameter injection (via global settings or annotation) and there are no qualifiers we don't resolve it if ((getExplicitInjectionInfoFromStore(extensionContext) || (methodRequiresExplicitParamInjection(parameterContext))) && qualifiers.isEmpty()) { return false; } else { return getContainerFromStore(extensionContext).select(parameterContext.getParameter().getType(), qualifiers.toArray(new Annotation[qualifiers.size()])) .isResolvable(); } } private List<Annotation> resolveQualifiers(ParameterContext pc, BeanManager bm) { List<Annotation> qualifiers = new ArrayList<>(); if (pc.getParameter().getAnnotations().length == 0) { return Collections.emptyList(); } else { for (Annotation annotation : pc.getParameter().getAnnotations()) { // use BeanManager.isQualifier to be able to detect custom qualifiers which don't need to have @Qualifier if (bm.isQualifier(annotation.annotationType())) { qualifiers.add(annotation); } } } return qualifiers; } private boolean methodRequiresExplicitParamInjection(ParameterContext pc) { for (Annotation annotation : pc.getDeclaringExecutable().getAnnotations()) { if (annotation.annotationType().equals(ExplicitParamInjection.class)) { return true; } } return false; } private TestInstance.Lifecycle determineTestLifecycle(ExtensionContext ec) { // check the test for import org.junit.jupiter.api.TestInstance annotation TestInstance annotation = ec.getRequiredTestClass().getAnnotation(TestInstance.class); if (annotation != null) { return annotation.value(); } else { return TestInstance.Lifecycle.PER_METHOD; } } private void storeExplicitParamResolutionInformation(ExtensionContext ec) { // check system property which may have set the global explicit param injection Boolean globalSettings = Boolean.valueOf(System.getProperty(GLOBAL_EXPLICIT_PARAM_INJECTION)); if (globalSettings) { getStore(ec).put(EXPLICIT_PARAM_INJECTION, globalSettings); return; } // check class-level annotation for (Annotation annotation : ec.getRequiredTestClass().getAnnotations()) { if (annotation.annotationType().equals(ExplicitParamInjection.class)) { getStore(ec).put(EXPLICIT_PARAM_INJECTION, true); break; } } } /** * We use custom namespace based on this extension class and test class */ private ExtensionContext.Store getStore(ExtensionContext context) { return context.getStore(ExtensionContext.Namespace.create(getClass(), context.getRequiredTestClass())); } /** * Can return null if WeldInitiator isn't stored yet */ private WeldInitiator getInitiatorFromStore(ExtensionContext context) { return getStore(context).get(INITIATOR, WeldInitiator.class); } /** * Return boolean indicating whether explicit parameter injection is enabled */ private Boolean getExplicitInjectionInfoFromStore(ExtensionContext context) { Boolean result = getStore(context).get(EXPLICIT_PARAM_INJECTION, Boolean.class); return (result == null) ? false : result; } /** * Can return null if WeldContainer isn't stored yet */ private WeldContainer getContainerFromStore(ExtensionContext context) { return getStore(context).get(CONTAINER, WeldContainer.class); } }
a4b63a9bda9f35eacaa05c10cbc3a2e67659bc31
39a03412b0643423f3d313f0eeabcce0d0268766
/cpp/src/com/yctime/web/Action/registerAction.java
2299396baced84ae815a56db7b43fbed2ff87982
[]
no_license
jpfss/myRegisterSystem
dfc490eea7d55a660ab01d3b553187ba0aced73d
f40d6e8db41282b7008b3c0e725ae94c206166f9
refs/heads/master
2021-01-22T18:07:27.791390
2017-02-17T14:27:26
2017-02-17T14:27:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,116
java
package com.yctime.web.Action; import java.io.File; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionSupport; import com.yctime.pojo.Flag; import com.yctime.pojo.Selection; import com.yctime.pojo.Student; import com.yctime.service.studentService; import com.yctime.utils.LoadPhoto; import com.yctime.utils.xss; public class registerAction extends ActionSupport{ private String name; private String phone; private String classname; private String introduce; private String power; private String sex; private List<String> flag; private File file; private String fileFileName; private String qq; HttpServletRequest request=ServletActionContext.getRequest(); //测试 public String register(){ xss xsss=new xss(); Student student=new Student(); student.setClassname(xsss.htmlEncode(classname)); student.setIntroduce(xsss.htmlEncode(introduce)); student.setSex(sex); student.setTel(phone); student.setUsername(xsss.htmlEncode(name)); student.setQq(qq); student.setIsfile("无"); student.setFilename("无"); student.setMyflags("无"); System.out.println("classname-->"+student.getClassname()); System.out.println("introduce-->"+student.getIntroduce()); System.out.println("name-->"+student.getUsername()); String myflags=new String(); Selection selection=new Selection(); if(power!=null) { student.setPower(xsss.htmlEncode(power)); System.out.println("power-->"+student.getPower()); } if(power==null){ student.setPower("无"); } //存储学生,先判断是否已报名 studentService studentSer=new studentService(); List<Student> oldStudent=studentSer.getSStudent(student); LoadPhoto loadPhoto=new LoadPhoto(); if(oldStudent.size()!=0) { request.setAttribute("success","报名信息更改成功!"); Student oldstudent=oldStudent.get(0); student.setId(oldstudent.getId()); selection.setStudentid(student.getId()); studentSer.deleteSSelection(selection); for(int i=0;i<flag.size();i++) { myflags+=" "+flag.get(i)+" "; //存入selection selection.setStudentid(student.getId()); switch(flag.get(i)){ case "Android": selection.setFlagid(1);break; case "IOS": selection.setFlagid(2);break; case "UI": selection.setFlagid(3);break; case "前端": selection.setFlagid(4);break; case "后台": selection.setFlagid(5);break; case "C++": selection.setFlagid(6);break; case "产品": selection.setFlagid(7);break; case "运营": selection.setFlagid(8);break; } studentSer.insertSSelection(selection); } student.setMyflags(myflags); if(file!=null) { String realFilename=student.getId()+"_"+student.getClassname()+"_"+student.getUsername(); loadPhoto.uploadFengmian(file, fileFileName,realFilename); student.setIsfile("有"); student.setFilename(fileFileName); } studentSer.updateSStudent(student); return "registered"; } //如果是没有注册的 studentSer.insertSStudent(student); for(int i=0;i<flag.size();i++) { myflags+=" "+flag.get(i)+" "; //存入selection selection.setStudentid(student.getId()); switch(flag.get(i)){ case "Android": selection.setFlagid(1);break; case "IOS": selection.setFlagid(2);break; case "UI": selection.setFlagid(3);break; case "前端": selection.setFlagid(4);break; case "后台": selection.setFlagid(5);break; case "C++": selection.setFlagid(6);break; case "产品": selection.setFlagid(7);break; case "运营": selection.setFlagid(8);break; } studentSer.insertSSelection(selection); } student.setMyflags(myflags); if(file!=null) { String realFilename=student.getId()+"_"+student.getClassname()+"_"+student.getUsername(); loadPhoto.uploadFengmian(file, fileFileName,realFilename); student.setIsfile("有"); student.setFilename(xsss.htmlEncode(fileFileName)); } studentSer.updateSStudent(student); request.setAttribute("success","恭喜你,报名成功!"); return "registered"; } public String addfalg(){ Flag flag=new Flag(); flag.setName(name); studentService studentSer=new studentService(); studentSer.insertSflag(flag); request.setAttribute("success","恭喜你,add flag 成功!"); return "addedflag"; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getClassname() { return classname; } public void setClassname(String classname) { this.classname = classname; } public String getIntroduce() { return introduce; } public void setIntroduce(String introduce) { this.introduce = introduce; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public List<String> getFlag() { return flag; } public void setFlag(List<String> flag) { this.flag = flag; } public File getFile() { return file; } public void setFile(File file) { this.file = file; } public String getFileFileName() { return fileFileName; } public void setFileFileName(String fileFileName) { this.fileFileName = fileFileName; } public String getPower() { return power; } public void setPower(String power) { this.power = power; } public String getQq() { return qq; } public void setQq(String qq) { this.qq = qq; } }
a71f92c86a83a02fc963c6c2412b0e242e91bc51
798d6e3c51540a45044f92c97cf5a9852ce14603
/java_legacy/tags/Core-3.1.0/src/org/gumtree/data/exception/ItemExistException.java
cd1db5fef3e4029e1b0904a769fe5f85345aa895
[]
no_license
enterstudio/cdma
9d1d53df268bc97bfbdc4542bf9e504c3c600afe
18ed93234aa31fdcaa6cb39d90ffa0c77fb20b75
refs/heads/master
2021-01-20T10:13:36.064099
2016-08-18T02:33:42
2016-08-18T02:33:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,319
java
// **************************************************************************** // Copyright (c) 2008 Australian Nuclear Science and Technology Organisation. // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 // which accompanies this distribution, and is available at // http://www.eclipse.org/legal/epl-v10.html // // Contributors: // Norman Xiong (nxi@Bragg Institute) - initial API and implementation // **************************************************************************** package org.gumtree.data.exception; /** * @author nxi * */ public class ItemExistException extends WriterException { /** * */ private static final long serialVersionUID = 3550694606967945269L; /** * */ public ItemExistException() { } /** * @param arg0 String value */ public ItemExistException(final String arg0) { super(arg0); } /** * @param arg0 Throwable object */ public ItemExistException(final Throwable arg0) { super(arg0); } /** * @param arg0 String value * @param arg1 Throwable object */ public ItemExistException(final String arg0, final Throwable arg1) { super(arg0, arg1); } }
a60640647ecc0d40b351158d28ebf4fc92cf84fa
766c7f81c538537c99083a69c1d41705ef7edad7
/topics_examples/output/PracticeExercises.java
9e0156e6ae57fdf54f2264c19327d17bef3f3775
[]
no_license
bcapps/ap-computer-science
da58f3d13709b1c904f53c8060a282499c129c4a
07cf691a9013bb6f3a5f79befc71c5d45d107b67
refs/heads/master
2021-01-20T11:26:04.595954
2009-03-06T05:06:52
2009-03-06T05:06:52
53,530
1
3
null
null
null
null
UTF-8
Java
false
false
2,615
java
/* * Brian Capps * Practice Exercises pp. 28-30, P.1, P.2, P1.5, P1.8 * 9/11/08 */ import javax.swing.JOptionPane; public class PracticeExercises { public static void main (String[] args) { System.out.println("+---------+\n"+ "| Brian |\n"+ "+---------+\n"); System.out.println("\n\nCrunchetize Me Cap'N\n"+ " sadfasdfasdfasdfasdfasdfsafs\n"+ " adfasdgasdg########asdggsgasgd\n"+ " sdasfasdfasd##sdfasdfasdfsdfasdf\n"+ " aasdfsadfffsd##fasdfasdfsdfasasdff\n"+ " asdfasdfasdfsa##asdfasdfasdfsadfdfsa\n"+ " sdasdfasdfsadf##asdfsadfasdfsdafasda\n"+ " dsdfasdfasdfsd#########fasdfasdasdff\n"+ " dafasdfasdfasdfasdfasdfasdfasdfasdfa\n"+ " adsff sdfas+++++aasdfasdfasdfa+++++dfsada asdff\n"+ " asdfsdf sdfa+++++++asdfasdfasdf+++++++fasd asdfasd\n"+ " sadfsadff sdf+++++asdfasdfasdfasdfas+++++aa asdfsdfsd\n"+ " adsfsdfff ad+++asdfasdfasdfasdfsadfasa+++aa asdasfdfsf\n"+ " sdfasdfasdasfsdfsdf++asdfasdfsadfasdfsadfdsafas++aasdfasdfsdfsadfasd\n"+ " asdfasdffasdsafdasdasdfasdfasfasdfsadfasdfasdfsadfasdfasdfasdfasdfsa\n"+ " sadfasdfasdfsadfasasfds%%%%%%asfasaa%%%%%%aaasddsdfasdfasdfasdfasaas\n"+ " aswasdfsdaadasdfsadfas%%%%%%%%asdfd%%%%%%%%asaasdsdfasdfasdfsadfaaad\n"+ " asdasdfasdfasdfasdfsd%%%%%000%%sss%%%%%000%%dsafsddaasdfasdfasdffadd\n"+ " =%%%%%00000%==%%%%%00000%=\n"+ " ==%%%%000000%==%%%%000000%==\n"+ " ==%%%%000000%==%%%%000000%==\n"+ " ===%%%%0000%====%%%%0000%===\n"+ " ######====%%%%00%======%%%%00%====######\n"+ " ##########====!!!!!!================#########\n"+ " ############==!=====================###########\n"+ " ############==!=====================###########\n"+ " ############===!!!!!!===============###########\n"+ " @@##########==@@@@@@@@==@@@@@@@@@@==###########\n"+ " #@@@######@@@@@@@@@@@====@@@@@@@@@@@########@@#\n"+ " ##@@@@###@@@@@@@@@@@========@@@@@@@@@######@@@#\n"+ " ###@@@@@@@@@@@@@@@@@=========@@@@@@@@@@@@@@@@@#\n"+ " ####@@@@@@@@@@@@@@@=*======*==@@@@@@@@@@@@@@@@#\n"+ " #####@@@@@@@@@@@@=**********===@@@@@@@@@@@@##\n"+ " #####@@@@@@@@@@==**********====@@@@@@@@@@@#\n\n"); System.out.println(1+2+3+4+5+6+7+8+10); //String name = JOptionPane } }
4004e706293d70980929415e0d69ad26085aba99
0422eb4696b3e7ad59e2bf226d4cbc9b3bca3000
/src/main/java/com/engineering/thesis/backend/model/Appointment.java
70da488f8b4db740869b23845b046f80b28e3445
[]
no_license
justam92/engineeringThesis
fc323029ea4e2e56b432ebb7430829636d39452b
9232d69b383615723a3038ce247914d5f3a427cf
refs/heads/master
2023-03-13T14:28:07.885735
2021-03-01T14:57:18
2021-03-01T14:57:18
343,451,905
1
0
null
null
null
null
UTF-8
Java
false
false
1,146
java
package com.engineering.thesis.backend.model; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Range; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.time.LocalDateTime; @Data @Entity @Table(name = "appointments", schema = "healthcare") @Builder @AllArgsConstructor @NoArgsConstructor public class Appointment { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id", updatable = false, nullable = false) private Long id; @OneToOne @JoinColumn(name = "patient_id", referencedColumnName = "id", foreignKey = @ForeignKey(name = "Fk_patient")) private Patient patient; @OneToOne @JoinColumn(name = "doctor_id", referencedColumnName = "id", foreignKey = @ForeignKey(name = "Fk_doctor")) private Doctor doctor; @Range(min = 0, message = "Cost must be at least {min}.") @NotNull(message = "Cost appointment can't be empty.") private long cost; @NotNull(message = "Date can't be empty.") private LocalDateTime appointmentDate; }
0c1addab5fa16ebf54d3f41cd88a132da59c1747
f29a37a618ac39c475be786e228b03b89ad3c05e
/rest.java
06aa95f28a29377c1384ad8aeceacc047718b2c7
[]
no_license
misproject2019/android-studio
f348e07b5f0f3b0b504d7cc85f7ee9d3ad7e6242
611ed37659caa9b09030d9ff740ed5b8590aa1ce
refs/heads/master
2020-09-15T19:59:11.332880
2019-11-23T07:07:17
2019-11-23T07:07:17
223,546,063
0
0
null
null
null
null
UTF-8
Java
false
false
1,283
java
package com.example.bestieat; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; public class rest extends AppCompatActivity implements View.OnClickListener{ private Button arrow; private Button tasklist; private Button revise; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.rest); arrow=(Button)findViewById(R.id.arrow); arrow.setOnClickListener(this); tasklist=(Button)findViewById(R.id.tasklist); tasklist.setOnClickListener(this); revise=(Button)findViewById(R.id.revise); revise.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.arrow: startActivity(new Intent(this, maps.class)); break; case R.id.tasklist: startActivity(new Intent(this, rest_task.class)); break; case R.id.revise: startActivity(new Intent(this, rest_task.class)); break; } } }
7dfc0c9d25325b79c5d2adcdb3178c7fa7c71f71
846437b42f353a9c90896ce1151267e15c6656ea
/app/src/androidTest/java/app/opensourcetest/ApplicationTest.java
19cd5125bcf4977c906443d6a1a80f07c9b5e496
[]
no_license
xiahao2014/OpenSourceTest
6358a6dd950cbeb4e73ac7c481a7743601b52981
6ac9721220b088a88f20e00068add732a845ac56
refs/heads/master
2020-05-18T09:17:13.356180
2015-09-12T02:16:22
2015-09-12T02:16:22
42,341,201
1
0
null
null
null
null
UTF-8
Java
false
false
349
java
package app.opensourcetest; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
fef489c0c82eafbe0a00e0089bf1ecb0a25db268
e8e5fdd84dd6abe9924c0b5c92c804b63fe381dc
/app/src/main/java/cn/edu/gdmec/s07150726/mycamera/CameraActivity.java
a81658a9e4a245ddd05630f2d2a599d9c2a40e0f
[]
no_license
gdmec07150726/MyCamera
d878191e9d043861a71049afefba711e332fd3af
a4f09d91e05911fdf375da6d1ec055f778ea37c5
refs/heads/master
2021-01-13T03:12:04.204012
2016-12-27T02:05:06
2016-12-27T02:05:06
77,418,268
0
0
null
null
null
null
UTF-8
Java
false
false
348
java
package cn.edu.gdmec.s07150726.mycamera; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class CameraActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_camera); } }
e62deba9ee98dd9c9e6f186c6e7dcb875c3a54f4
e39ec0adbf5c9bafa5db2856b2cc6f3559473972
/src/main/java/com/gmail/socraticphoenix/sponge/menu/impl/formatter/tree/TriConsumer.java
6865a2ee886420d8ada1bd75c376ef0560dace37
[]
no_license
Sir-Will/Menu
06150bc236f80d4d800cbea8dd9e95ff4c694bec
074c36b33e294a68104354fb0bcd078ca3904a60
refs/heads/master
2021-01-21T18:15:13.072135
2017-05-29T23:30:55
2017-05-29T23:30:55
92,028,101
0
0
null
2017-05-22T08:07:36
2017-05-22T08:07:36
null
UTF-8
Java
false
false
1,328
java
/* * The MIT License (MIT) * * Copyright (c) 2016 [email protected] * Copyright (c) 2016 contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish, distribute, * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or * substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package com.gmail.socraticphoenix.sponge.menu.impl.formatter.tree; public interface TriConsumer<A, B, C> { void accept(A a, B b, C c); }
ba86718f2326a8d67e3a534704e528bb3fa12e3a
baf6d160a133570b7de5812480c8828d7eb8ec6c
/Common/kafka/src/main/java/adsbrecorder/receiver/kafka/TrackingRecordSerializer.java
f723f5ad1a73dd08c73c8e2a0e48f41fd7aed4a1
[ "BSD-3-Clause" ]
permissive
wangyeee/adsbrecorder
8ae1a4eb13a4358ca449707bf62e8879d67233ff
9c037a2da576c87bcbc1793f1c0aa2015df80493
refs/heads/master
2023-05-02T09:39:03.053219
2023-04-15T08:14:22
2023-04-15T08:14:22
150,687,881
2
1
BSD-3-Clause
2023-04-15T08:14:24
2018-09-28T04:58:01
Java
UTF-8
Java
false
false
927
java
package adsbrecorder.receiver.kafka; import java.util.Map; import org.apache.kafka.common.serialization.Serializer; import com.fasterxml.jackson.databind.ObjectMapper; import adsbrecorder.receiver.entity.TrackingRecord; public class TrackingRecordSerializer implements Serializer<TrackingRecord> { public TrackingRecordSerializer() { } @Override public void configure(Map<String, ?> configs, boolean isKey) { } @Override public byte[] serialize(String topic, TrackingRecord data) { byte[] retVal = null; ObjectMapper objectMapper = new ObjectMapper(); try { retVal = objectMapper.writeValueAsString(data).getBytes(); } catch (Exception e) { System.err.println("TrackingRecordSerializer error: " + e.getMessage()); e.printStackTrace(); } return retVal; } @Override public void close() { } }
bd7f1a4081c8244de3488d242768b54eaa90f960
b5c702ee4f85372ca11a2845b2337862ad95be8d
/SpringTest/src/org/fkit/controller/ModelAttribute1Controller.java
ad36e668b51fa4bee3f91adb67528ec030ac47fb
[]
no_license
tangjaiweiq1/StudyWeb
5387e1de78d47acc2080e5b83500806b9123a9c5
574615837f12bc979607c22b841eff10d4e459bf
refs/heads/master
2020-12-30T13:20:01.017185
2019-02-27T06:21:38
2019-02-27T06:21:38
91,345,021
0
0
null
null
null
null
UTF-8
Java
false
false
609
java
package org.fkit.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; /** * Created by 64457 on 2017/7/31. */ @Controller public class ModelAttribute1Controller { @ModelAttribute("loginname") public String userModel1(@RequestParam("loginname") String loginname) { return loginname; } @RequestMapping(value="/modelLogin1") public String login1(){ return "result1"; } }