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
42344a2be8edfb2807bcd6b3ceb5ebf551734dcf
f7ab3de2d227ffa4d7438f968d22b8b19f606684
/gp20/monkey/Monkey.java
11ea5201eabbaddbe19fdc83c5b3da2136e66cb3
[]
no_license
andreeSaRiL/ChapsChallenge
cd7eb7f927af7b2f511bf7b6a64b4b1c400ac9fa
4203e1f0838c68ff92643e6cd950d0b3a2de0ac2
refs/heads/main
2023-06-12T18:41:39.015363
2021-07-04T23:17:39
2021-07-04T23:17:39
382,965,742
0
0
null
null
null
null
UTF-8
Java
false
false
10,848
java
package nz.ac.vuw.ecs.swen225.gp20.monkey; import nz.ac.vuw.ecs.swen225.gp20.application.GUI; import nz.ac.vuw.ecs.swen225.gp20.application.Game; import nz.ac.vuw.ecs.swen225.gp20.maze.*; import org.junit.jupiter.api.Test; import java.awt.event.KeyEvent; import java.util.Random; import static org.junit.jupiter.api.Assertions.*; /** * The Monkey class is used for generating random input, * triggering exceptions or errors. * * @author Royan Saril */ public class Monkey { Game game = new Game(); Maze maze = game.getGameMaze(); GUI gui = game.getGameGUI(); ChapTile chap = new ChapTile(maze.getChapX(), maze.getChapY()); Tile[][] tile = null; /****************** TESTS ******************/ /** * Testing when chap moves on the board within Level 1. * Test completes once chap has covered the entire level, and restarts level 1. */ @Test public void level1Move() { // Maze maze = level1(); Random rand = new Random(); int num = rand.nextInt((4 - 1) + 1) + 1; int max = 10000000; for (int i = 0; i < max; i++) { if (maze.hasEnded()) //maze = level1(); game.getPersistence().loadLevels(null, 1); if (num == 1) { maze.move("U"); } if (num == 2) { maze.move("D"); } if (num == 3) { maze.move("L"); } if (num == 4) { maze.move("R"); } } } /** * Testing when chap moves on the board within Level 2. * Test completes once chap has covered the entire level, and restarts level 2. */ @Test public void level2Move() { // Maze maze = level2(); Random rand = new Random(); int num = rand.nextInt((4 - 1) + 1) + 1; int max = 10000000; for (int i = 0; i < max; i++) { if (maze.hasEnded()) //maze = level2(); game.getPersistence().loadLevels(null, 2); if (num == 1) { maze.move("U"); } if (num == 2) { maze.move("D"); } if (num == 3) { maze.move("L"); } if (num == 4) { maze.move("R"); } } } /** * Tests that the main Game runs with no errors. */ @Test public void testGame(){ Game initGame = new Game(); initGame.setGameMaze(null); try{ String[] args = new String[] {""}; Game.main(args); } catch(Error e) { fail(""); } assertTrue(true); } // /** // * Testing that each level loads correctly. // */ // @Test // public void testLevels(){ // assertTrue(maze.getLevel() != 0); // assertFalse( maze.getLevel() == 0); // // game.setGameMaze(maze); // } /****************** EXCEPTION TESTS ******************/ /** * Testing restart game level 1. * @throws InterruptedException from sleep. */ @SuppressWarnings("deprecation") @Test public void testRestartL1() throws InterruptedException { Game game2 = new Game(); assertEquals(1, game2.getLevel()); game2.setLevel(1); assertEquals(1, game2.getLevel()); Thread.sleep(60); game2.setLevel(1); Thread.sleep(60); assertEquals(1, game2.getLevel()); } /** * Testing restart game level 2. * @throws InterruptedException */ @SuppressWarnings("deprecation") @Test public void testRestartL2() throws InterruptedException { Game game2 = new Game(); assertEquals(1, game2.getLevel()); game2.setLevel(2); assertEquals(2, game2.getLevel()); Thread.sleep(60); game2.setLevel(2); Thread.sleep(60); assertEquals(2, game2.getLevel()); } /** * Testing move UP. * @throws InterruptedException */ @SuppressWarnings("deprecation") @Test public void testMoveUp() throws InterruptedException { Game game1 = new Game(); GUI gui = game1.getGameGUI(); Tile start = game1.getGameMaze().getChap(); Thread.sleep(60); gui.keyPressed(new KeyEvent(gui, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), KeyEvent.VK_UNDEFINED, KeyEvent.VK_UP)); game1.setGameGUI(gui); Tile end = game1.getGameMaze().getChap(); assertNotEquals(start.getX(), end); } /** * Testing move DOWN. * @throws InterruptedException */ @SuppressWarnings("deprecation") @Test public void testMoveDown() throws InterruptedException { Game game1 = new Game(); GUI gui = game1.getGameGUI(); Tile start = game1.getGameMaze().getChap(); Thread.sleep(60); gui.keyPressed(new KeyEvent(gui, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), KeyEvent.VK_UNDEFINED, KeyEvent.VK_DOWN)); game1.setGameGUI(gui); Tile end = game1.getGameMaze().getChap(); assertNotEquals(start.getX(), end); } /** * Testing move to the LEFT. * @throws InterruptedException */ @SuppressWarnings("deprecation") @Test public void testMoveLeft() throws InterruptedException { Game game1 = new Game(); GUI gui = game1.getGameGUI(); Tile start = game1.getGameMaze().getChap(); Thread.sleep(60); gui.keyPressed(new KeyEvent(gui, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), KeyEvent.VK_UNDEFINED, KeyEvent.VK_LEFT)); game1.setGameGUI(gui); Tile end = game1.getGameMaze().getChap(); assertNotEquals(start.getX(), end); } /** * Testing move to the RIGHT. * @throws InterruptedException */ @SuppressWarnings("deprecation") @Test public void testMoveRight() throws InterruptedException { Game game1 = new Game(); GUI gui = game1.getGameGUI(); Tile start = game1.getGameMaze().getChap(); Thread.sleep(60); gui.keyPressed(new KeyEvent(gui, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), KeyEvent.VK_UNDEFINED, KeyEvent.VK_RIGHT)); game1.setGameGUI(gui); Tile end = game1.getGameMaze().getChap(); assertNotEquals(start.getX(), end); } /****************** MOVEMENT TESTS ******************/ /** * Tests legal move UP. */ @Test public void legalmoveUP(){ maze.setChap(chap); Tile start = maze.getTileAt(maze.getChapX(), maze.getChapY()); maze.move("U"); Tile end = maze.getTileAt(maze.getChapX(), maze.getChapY()); assertEquals(start.getX(), end.getX()); } /** * * Tests legal move DOWN. */ @Test public void legalmoveDOWN(){ maze.setChap(chap); Tile start = maze.getTileAt(maze.getChapX(), maze.getChapY()); maze.move("D"); Tile end = maze.getTileAt(maze.getChapX(), maze.getChapY()); assertEquals(start.getX(), end.getX()); } /** * Tests legal move LEFT. */ @Test public void legalmoveLEFT(){ maze.setChap(chap); Tile start = maze.getTileAt(maze.getChapX(), maze.getChapY()); maze.move("L"); Tile end = maze.getTileAt(maze.getChapX(), maze.getChapY()); assertNotEquals(start.getX(), end.getX()); } /** * Tests legal move RIGHT. */ @Test public void legalmoveRIGHT(){ maze.setChap(chap); Tile start = maze.getTileAt(maze.getChapX(), maze.getChapY()); maze.move("R"); Tile end = maze.getTileAt(maze.getChapX(), maze.getChapY()); assertEquals(start.getY(), end.getY()); } /****************** TILE TESTS ******************/ /** * Tests legal door locked. * To unlock door. */ @Test public void legalLockedDoor(){ LockedDoorTile locked = new LockedDoorTile(0,0, "colour"); maze.setChap(chap); assertFalse(locked.getX() == maze.getChapX() && locked.getY() == maze.getChapY()); LockedDoorTile locked2 = new LockedDoorTile(0,0, "colour"); assertTrue(locked2 != locked); } /** * Tests invalid key colour. */ @Test public void invalidKeyCol(){ boolean invalid = false; try{ invalid = true; new KeyTile(0,0, null); } catch(AssertionError e){ assertTrue(invalid); } } // /** // * Tests invalid door colour. // */ // @Test // public void invalidDoorCol(){ // boolean invalid = false; // try{ // invalid = true; // new LockedDoorTile(0,0, null); // } // catch(AssertionError e){ // assertTrue(invalid); // } // } /** * Tests Free Tile. */ @Test public void freeTile(){ FreeTile free = new FreeTile(0,0); free.setPos(0,0); assertFalse(free.getX() == maze.getChapX()); assertFalse(free.getY() == maze.getChapY()); FreeTile free2 = new FreeTile(0,0); assertTrue(free2 != free); } /** * Tests Exit Tile. */ @Test public void exit(){ ExitTile tile = new ExitTile(0,0); tile.setPos(maze.getChapX(), maze.getChapY()); maze.setChap(chap); assertTrue(tile.getX() == maze.getChapX() && tile.getY() == maze.getChapY()); ExitTile tile2 = new ExitTile(0,0); assertTrue(tile2 != tile); } /** * Tests exit with treasure. */ @Test public void exitTreasure(){ ExitTile exit = new ExitTile(0,0); TreasureTile treas = new TreasureTile(0,0); maze.setChap(chap); assertFalse(treas.getX() == maze.getChapX() && treas.getY() == maze.getChapY()); assertFalse(exit.getX() == maze.getChapX() && exit.getY() == maze.getChapY()); assertFalse(maze.hasLost()); } /** * Tests exit withOUT treasure. */ @Test public void exitNoTreasure(){ ExitTile exit = new ExitTile(0,0); TreasureTile treas = new TreasureTile(0,0); maze.setChap(chap); assertTrue(treas.getX() != maze.getChapX() && treas.getY() != maze.getChapY()); assertFalse(exit.getX() == maze.getChapX() && exit.getY() == maze.getChapY()); assertFalse(maze.hasWon()); } /** * Tests bomb on chap and kills chap. */ @Test public void testBomb() { BombTile bomb = new BombTile(0,0); maze.setChap(chap); assertFalse(bomb.getX() == maze.getChapX() && bomb.getY() == maze.getChapY()); chap.killChap(); } }
[ "noreply@github.com" ]
andreeSaRiL.noreply@github.com
970379bcc7d8e45fb0ad23dbdecb99e772384937
84d5dee8822982a9dfd1c49292ed1139ab911432
/src/test/java/allen/perf/TestCreateHTablePerf.java
509cffbb57e957e513e076623076ed2520be375d
[]
no_license
jibaro/simplehbase
8341b6baf56c96133895d4ee1537d990eb686d7d
8b885bcb14768f233224f0bb6bb21fbf52e988d6
refs/heads/master
2021-01-16T18:59:41.761503
2014-11-24T10:01:19
2014-11-24T10:01:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,543
java
package allen.perf; import java.io.FileInputStream; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.client.HConnectionManager; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.client.HTableInterface; import org.apache.hadoop.hbase.client.HTablePool; import org.junit.BeforeClass; import org.junit.Test; import com.alipay.simplehbase.config.Config; import com.alipay.simplehbase.util.ConfigUtil; /** * @author xinzhi.zhang * */ public class TestCreateHTablePerf { private static Log log = LogFactory .getLog(TestCreateHTablePerf.class); private static Configuration configuration; @BeforeClass public static void beforeClass() throws Exception { Map<String, String> config = ConfigUtil .loadConfigFile(new FileInputStream(Config.ZkConfigFile)); configuration = HBaseConfiguration.create(); for (Map.Entry<String, String> entry : config.entrySet()) { configuration.set(entry.getKey(), entry.getValue()); } } @Test public void createHTablePerf() throws Exception { int getTableMax = 1; if (PerfConfig.isPerfTestOn) { getTableMax = 20; } int poolsize = 5; StringBuilder sb = new StringBuilder(); sb.append("\ncreateHTablePerf size=" + getTableMax); getHTableFromNewHTable(getTableMax, sb); getHTableFromPool(getTableMax, poolsize, sb); log.info(sb); } private void getHTableFromNewHTable(int getTableMax, StringBuilder sb) throws Exception { List<HTableInterface> tables = new ArrayList<HTableInterface>(); for (int i = 0; i < getTableMax; i++) { long start = System.currentTimeMillis(); tables.add(new HTable(configuration, Config.TableName)); long end = System.currentTimeMillis(); long createHTableConsumeTime = end - start; sb.append("\nnew HTable i = " + i + " createHTableConsumeTime=" + createHTableConsumeTime); } cleanTableAndCloseConnections(tables); } private void getHTableFromPool(int getTableMax, int poolSize, StringBuilder sb) throws Exception { List<HTableInterface> tables = new ArrayList<HTableInterface>(); HTablePool htablePool = new HTablePool(configuration, poolSize); for (int i = 0; i < getTableMax; i++) { long start = System.currentTimeMillis(); tables.add(htablePool.getTable(Config.TableName)); long end = System.currentTimeMillis(); long createHTableConsumeTime = end - start; sb.append("\nhtablePool.getTable i = " + i + " createHTableConsumeTime=" + createHTableConsumeTime); } cleanTableAndCloseConnections(tables); htablePool.close(); } private void cleanTableAndCloseConnections(List<HTableInterface> tables) throws Exception { for (HTableInterface hTable : tables) { hTable.close(); } tables.clear(); HConnectionManager.deleteAllConnections(true); } }
[ "xinzhi.zhang@alipay.com" ]
xinzhi.zhang@alipay.com
120449dea5cebb708b5206289ba109d607388174
cb53630a96ab34c5b41de0fdcf0a87b3bc70f74e
/tools/toolsapi/src/main/java/com/edaisong/toolsapi/dao/inter/IActionLogDao.java
04fa1d91342d5da9b16a3c378c6363ceab0b8996
[]
no_license
859162000/et-eds-java
76a8ffd79af881b2f583c56a38f61232818d3d29
aca5412bc4a6f41304b1f8f5c186dd5c0d07f366
refs/heads/master
2021-01-20T13:22:20.661560
2015-11-11T07:11:00
2015-11-11T07:11:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
269
java
package com.edaisong.toolsapi.dao.inter; import com.edaisong.toolsentity.domain.ActionLog; public interface IActionLogDao { /* * 系统级,记录方法的ActionLog(写入db) * */ void writeActionLog(ActionLog logEngity); void writeLog2DB(String msg); }
[ "wang.chao@etaostars.com" ]
wang.chao@etaostars.com
566c8f91bbcfb3fdb710d8c20aea6c624434c5e8
599cde9867341771d96ae6044b6bd48cafdfd8b6
/src/Control/ModifyAppointmentController.java
2e9f80147fb13209dc5085e4926af5f912de574b
[]
no_license
SoheebAmin/JavaFX_Consultancy_Scheduing_System
d1a09c3dc81c3f5e1bd5013e1eeb4e8156afefab
11c030040a74059727bcad8eaf89f0e019bfad43
refs/heads/master
2023-02-28T07:25:16.585514
2021-01-21T14:41:14
2021-01-21T14:41:14
312,086,045
0
0
null
null
null
null
UTF-8
Java
false
false
17,503
java
package Control; import Database.DeleteStatements; import Database.InsertStatements; import Database.SelectStatements; import Model.Appointment; import Model.RuntimeObjects; import Utils.ControllerMethods; import Utils.DBConnection; import Utils.DateTimeMethods; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; import javafx.scene.control.TextField; import java.io.IOException; import java.net.URL; import java.sql.Connection; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.ResourceBundle; /** The Controller to add appointment objects to the appoint list stored in the ObservableLists class */ public class ModifyAppointmentController implements Initializable { // Variables for the fields to be filled in. @FXML private TextField idText; @FXML private ComboBox<String> customerCB; @FXML private TextField titleText; @FXML private TextField descriptionText; @FXML private TextField locationText; @FXML private ComboBox<String> typeCB; @FXML private ComboBox<String> contactCB; @FXML private ComboBox<LocalDate> dateCB; @FXML private ComboBox<LocalTime> startCB; @FXML private ComboBox<LocalTime> endCB; // To display current user @FXML private Label currentUserLabel; // To display offset in message @FXML private Label offsetMessageLabel; // ID of current customer being modified private static int currentAppointment; // Temporary variables to save combo box selection private static String selectedCustomer = ""; private static String selectedType = ""; private static String selectedContact = ""; private static String selectedDate = ""; private static String selectedStart = ""; private static String selectedEnd = ""; /** This method allows the Customer Dashboard to send the data of the selected customer to the created controller object. */ public void setAppointmentInfo(Appointment appointment) { // sets the current id being worked on ModifyAppointmentController.currentAppointment = appointment.getId(); // sends all the data to the text fields and combo boxes. idText.setText((String.valueOf((appointment.getId())))); titleText.setText(appointment.getTitle()); descriptionText.setText(appointment.getDescription()); locationText.setText(appointment.getLocation()); typeCB.setValue(appointment.getType()); //Get the customer name using the stored contact ID. int customerId = appointment.getCustomerId(); String selectCustomerString = "SELECT Customer_Name FROM customers WHERE Customer_ID = " + customerId +";"; String customerName = SelectStatements.getAString(DBConnection.getConn(), selectCustomerString, "Customer_Name"); customerCB.setValue(customerName); //Get the contact name using the stored contact ID. int contactId = appointment.getContactId(); String selectContactString = "SELECT Contact_Name FROM contacts WHERE Contact_ID = " + contactId +";"; String contactName = SelectStatements.getAString(DBConnection.getConn(), selectContactString, "Contact_Name"); contactCB.setValue(contactName); // grab the date in LocalDate and the start time in LocalTime using the stored start time LocalDateTime. LocalDateTime startDateTime = appointment.getStartDateTime(); LocalDate date = startDateTime.toLocalDate(); LocalTime start = startDateTime.toLocalTime(); dateCB.setValue(date); startCB.setValue(start); // grab the end time LocalTime using the stored end time LocalDateTime. LocalDateTime endDateTime = appointment.getEndDateTime(); LocalTime end = endDateTime.toLocalTime(); endCB.setValue(end); // sets the stored selection for the combo boxes as string versions of the just-retrieved values. selectedType = appointment.getType(); selectedCustomer = customerName; selectedContact = contactName; selectedDate = date.toString(); selectedStart = start.toString(); selectedEnd = end.toString(); } /** This method populates the customer ID combo box. */ public void customerCBSelected() { // calls methods to generate list of customers from the DB with an SQL select // Observable lists to populate the combo boxes ObservableList<String> customerCBItems = SelectStatements.getComboBoxStringList(DBConnection.getConn(), "SELECT Customer_Name FROM customers;", "Customer_Name"); // sets the list in the combo box customerCB.setItems(customerCBItems); } /** This method populates the type combo box. */ public void typeCBSelected() { // grab types from runtime class where it is stored ObservableList<String> typeCBItems = RuntimeObjects.getAllAppointmentTypes(); // sets the list in the combo box typeCB.setItems(typeCBItems); } /** This method populates the contact combo box. */ public void contactCBSelected() { // grab contacts from runtime class where it is stored ObservableList<String> contactCBItems = RuntimeObjects.getAllContacts(); // sets the list in the combo box contactCB.setItems(contactCBItems); } /** This method populates the date ID combo box. */ public void dateCBSelected() { // grabs dates from runtime class where it is stored ObservableList<LocalDate> dateCBItems = RuntimeObjects.getAllAppointmentDates(); // sets the list in the combo box dateCB.setItems(dateCBItems); } /** This method populates the start and end time combo boxes. */ public void timeCBSelected() { // grabs time time intervals from runtime class where it is stored ObservableList<LocalTime> timeCBItems = RuntimeObjects.getAllAppointmentHours(); // sets the list in the start and end time combo boxes startCB.setItems(timeCBItems); endCB.setItems(timeCBItems); } /** This method sets which customer is chosen. */ public void customerCBSet() { // try-catch deals with scenario in which nothing is selected. try { ModifyAppointmentController.selectedCustomer = customerCB.getSelectionModel().getSelectedItem(); } catch (NullPointerException ignored) { } } /** This method sets which type is chosen. */ public void typeCBSet() { // try-catch deals with scenario in which nothing is selected. try { ModifyAppointmentController.selectedType = typeCB.getSelectionModel().getSelectedItem(); } catch (NullPointerException ignored) { } } /** This method sets which contact is chosen. */ public void contactCBSet() { // try-catch deals with scenario in which nothing is selected. try { ModifyAppointmentController.selectedContact = contactCB.getSelectionModel().getSelectedItem(); } catch (NullPointerException ignored) { } } /** This method sets which customer is chosen. */ public void dateCBSet() { // try-catch deals with scenario in which nothing is selected. try { ModifyAppointmentController.selectedDate = dateCB.getSelectionModel().getSelectedItem().toString(); } catch (NullPointerException ignored) { } } /** This method sets which customer is chosen. */ public void startCBSet() { // try-catch deals with scenario in which nothing is selected. try { ModifyAppointmentController.selectedStart = startCB.getSelectionModel().getSelectedItem().toString(); } catch (NullPointerException ignored) { } } /** This method sets which customer is chosen. */ public void endCBSet() { // try-catch deals with scenario in which nothing is selected. try { ModifyAppointmentController.selectedEnd = endCB.getSelectionModel().getSelectedItem().toString(); } catch (NullPointerException ignored) { } } /** After validating the entries, this methods adds a new record into the database and refreshes it. */ public boolean saveButtonClicked(ActionEvent event) throws IOException { boolean errorDetected = false; // boolean to mark if we will abort after all error messages are shown. // grab the id stored in the controller for the current appointment. int id = ModifyAppointmentController.currentAppointment; // error check and then add title String title = titleText.getText(); if (title.equals("")) { ControllerMethods.errorDialogueBox("Title Error: Please enter a title"); errorDetected = true; } // error check, and then add description String description; description = descriptionText.getText(); if (description.equals("")) { ControllerMethods.errorDialogueBox("Description Error: Please enter a description"); errorDetected = true; } // error check, and then add location String location = locationText.getText(); if (location.equals("")) { ControllerMethods.errorDialogueBox("Location Error: Please enter a location"); errorDetected = true; } // check if customer is empty. If not, add the customer String customer; customer = ModifyAppointmentController.selectedCustomer; if(customer.equals("")) { ControllerMethods.errorDialogueBox("You must select a customer!"); errorDetected = true; } // check if appointment type is empty. If not, add the type String type; type = ModifyAppointmentController.selectedType; if(type.equals("")) { ControllerMethods.errorDialogueBox("You must select an appointment type!"); errorDetected = true; } // check if contact is empty. If not, add contact String contact; contact = ModifyAppointmentController.selectedContact; if(contact.equals("")) { ControllerMethods.errorDialogueBox("You must select a contact!"); errorDetected = true; } // check if date is empty. If not, convert to local date and add the date String dateString; dateString = ModifyAppointmentController.selectedDate; if(dateString.equals("")) { ControllerMethods.errorDialogueBox("You must select a date!"); errorDetected = true; } // check if start time is empty. If not, convert to local time and add start time String startString; startString = ModifyAppointmentController.selectedStart; if(startString.equals("")) { ControllerMethods.errorDialogueBox("You must select a start time!"); errorDetected = true; } // check if end time is empty. If not, convert to local time and add end time String endString; endString = ModifyAppointmentController.selectedEnd; if(endString.equals("")) { ControllerMethods.errorDialogueBox("You must select an end time!"); errorDetected = true; } // return the function if any errors were detected. if(errorDetected) return false; // Conversions to needed data types done once all validation passed LocalDate startDate = LocalDate.parse(dateString); LocalDate endDate = LocalDate.parse(dateString); LocalTime start = LocalTime.parse(startString); LocalTime end = LocalTime.parse(endString); // checks if times are the same. if(start.equals(end)) { ControllerMethods.errorDialogueBox("Your start and end times cannot be the same."); errorDetected = true; } // check if times are in order if(start.isAfter(end)) { // checks to see if local hours go over midnight hours, which would mean we should allow this with an additional day added. if(!RuntimeObjects.isComplexHours()) { ControllerMethods.errorDialogueBox("Your start time cannot be after your end time!"); errorDetected = true; } else { endDate = endDate.plusDays(1); } } // return the function if any errors were detected. if(errorDetected) return false; // Create the LocalDateTime objects for the appointment start and end time. LocalDateTime appointmentStart = LocalDateTime.of(startDate, start); LocalDateTime appointmentEnd = LocalDateTime.of(endDate, end); // gets the customer ID String selectCustomerID = "SELECT Customer_ID FROM customers WHERE Customer_Name = \"" + customer + "\""; int customerID = SelectStatements.getAnInt(DBConnection.getConn(), selectCustomerID, "Customer_ID"); // Check to see if an appointment already exists that overlaps at all with the start or end time. boolean hasAnOverlap = DateTimeMethods.isOverlappingForModify(customerID, id, appointmentStart, appointmentEnd); if(hasAnOverlap) { ControllerMethods.errorDialogueBox("The customer has an overlapping appointment as this time"); errorDetected = true; } // return the function if any errors were detected. if(errorDetected) return false; // gets the Contact ID String selectContactID = "SELECT Contact_ID FROM contacts WHERE Contact_Name = \"" + contact + "\""; int contactID = SelectStatements.getAnInt(DBConnection.getConn(), selectContactID, "Contact_ID"); //grab the created datetime and user String LDTSelectStatement = "SELECT Create_Date FROM appointments WHERE Appointment_ID =" + id + ";"; LocalDateTime Create_Date = SelectStatements.getALocalDateTime(DBConnection.getConn(), LDTSelectStatement, "Create_Date"); String stringSelectStatement = "SELECT Created_By FROM appointments WHERE Appointment_ID =" + id + ";"; String Created_By = SelectStatements.getAString(DBConnection.getConn(), stringSelectStatement, "Created_By"); // Deletes the appointment as it already is in the database. String deleteStatement = "DELETE FROM appointments WHERE Appointment_ID =" + id + ";"; DeleteStatements.delete(DBConnection.getConn(), deleteStatement); //Calls the insert statement to add the new appointment to the database. InsertStatements.modifyAppointment(DBConnection.getConn(), id, title, description, location, type, appointmentStart, appointmentEnd, Create_Date, Created_By, RuntimeObjects.getCurrentUser().getUsername(), customerID, RuntimeObjects.getCurrentUser().getId(), contactID); // clear the current customers observable list, and fetch them again from the database. RuntimeObjects.clearAllAppointments(); Connection conn = DBConnection.getConn(); SelectStatements.populateAppointmentsTable(conn); // clears combo box temp data variables for future use clearComboBoxTempVars(); ControllerMethods.changeScene(event, "../View/AppointmentDashboard.fxml"); return true; } /** This method returns to the MainScreenController without making any changes to the Inventory class. */ public void cancelButtonClicked(ActionEvent event) throws IOException { clearComboBoxTempVars(); ControllerMethods.changeScene(event, "../View/AppointmentDashboard.fxml"); } /** Resets all the temporary variables that hold selected combo box values. */ public void clearComboBoxTempVars() { ModifyAppointmentController.selectedCustomer = ""; ModifyAppointmentController.selectedType = ""; ModifyAppointmentController.selectedContact = ""; ModifyAppointmentController.selectedDate = ""; ModifyAppointmentController.selectedStart = ""; ModifyAppointmentController.selectedEnd = ""; } /** Method to set initial conditions of the controller. */ @Override public void initialize(URL url, ResourceBundle resourceBundle) { // grabs and sets the current user currentUserLabel.setText(RuntimeObjects.getCurrentUser().getUsername()); // grab the offset int offset = RuntimeObjects.getOffset(); // based on offset, sets message on hours change for user. if(offset > 0) { String message = "Office hours are in EST, which your timezone is ahead of by " + offset + " hours."; offsetMessageLabel.setText(message); } if(offset < 0) { String message = "Office hours are in EST, which your timezone is behind by " + Math.abs(offset) + " hours."; offsetMessageLabel.setText(message); } if(offset == 0) { offsetMessageLabel.setText("Office hours are in EST, which is the same as your timezone."); } } }
[ "soheeb@gmail.com" ]
soheeb@gmail.com
fe1cbeddcd222e73a9bdf01419302a61365a010c
59f9102cbcb7a0ca6ffd6840e717e8648ab2f12a
/jdk6/java/lang/CharacterData00.java
a9c97fce2aadb04fdb58cbf4dc6755bea827a2cd
[]
no_license
yuanhua1/ruling_java
77a52b2f9401c5392bf1409fc341ab794c555ee5
7f4b47c9f013c5997f138ddc6e4f916cc7763476
refs/heads/master
2020-08-22T22:50:35.762836
2019-06-24T15:39:54
2019-06-24T15:39:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
71,247
java
// This file was generated AUTOMATICALLY from a template file Fri Jan 20 10:32:54 PST 2012 /* %W% %E% * * Copyright (c) 1994, 2002, Oracle and/or its affiliates. All rights reserved. * * This software is the proprietary information of Oracle. * Use is subject to license terms. * */ package java.lang; /** * The CharacterData00 class encapsulates the large tables once found in * java.lang.Character */ class CharacterData00 { /* The character properties are currently encoded into 32 bits in the following manner: 1 bit mirrored property 4 bits directionality property 9 bits signed offset used for converting case 1 bit if 1, adding the signed offset converts the character to lowercase 1 bit if 1, subtracting the signed offset converts the character to uppercase 1 bit if 1, this character has a titlecase equivalent (possibly itself) 3 bits 0 may not be part of an identifier 1 ignorable control; may continue a Unicode identifier or Java identifier 2 may continue a Java identifier but not a Unicode identifier (unused) 3 may continue a Unicode identifier or Java identifier 4 is a Java whitespace character 5 may start or continue a Java identifier; may continue but not start a Unicode identifier (underscores) 6 may start or continue a Java identifier but not a Unicode identifier ($) 7 may start or continue a Unicode identifier or Java identifier Thus: 5, 6, 7 may start a Java identifier 1, 2, 3, 5, 6, 7 may continue a Java identifier 7 may start a Unicode identifier 1, 3, 5, 7 may continue a Unicode identifier 1 is ignorable within an identifier 4 is Java whitespace 2 bits 0 this character has no numeric property 1 adding the digit offset to the character code and then masking with 0x1F will produce the desired numeric value 2 this character has a "strange" numeric value 3 a Java supradecimal digit: adding the digit offset to the character code, then masking with 0x1F, then adding 10 will produce the desired numeric value 5 bits digit offset 5 bits character type The encoding of character properties is subject to change at any time. */ static int getProperties(int ch) { char offset = (char)ch; int props = A[Y[X[offset>>5]|((offset>>1)&0xF)]|(offset&0x1)]; return props; } static int getType(int ch) { int props = getProperties(ch); return (props & 0x1F); } static boolean isLowerCase(int ch) { int type = getType(ch); return (type == Character.LOWERCASE_LETTER); } static boolean isUpperCase(int ch) { int type = getType(ch); return (type == Character.UPPERCASE_LETTER); } static boolean isTitleCase(int ch) { int type = getType(ch); return (type == Character.TITLECASE_LETTER); } static boolean isDigit(int ch) { int type = getType(ch); return (type == Character.DECIMAL_DIGIT_NUMBER); } static boolean isDefined(int ch) { int type = getType(ch); return (type != Character.UNASSIGNED); } static boolean isLetter(int ch) { int type = getType(ch); return (((((1 << Character.UPPERCASE_LETTER) | (1 << Character.LOWERCASE_LETTER) | (1 << Character.TITLECASE_LETTER) | (1 << Character.MODIFIER_LETTER) | (1 << Character.OTHER_LETTER)) >> type) & 1) != 0); } static boolean isLetterOrDigit(int ch) { int type = getType(ch); return (((((1 << Character.UPPERCASE_LETTER) | (1 << Character.LOWERCASE_LETTER) | (1 << Character.TITLECASE_LETTER) | (1 << Character.MODIFIER_LETTER) | (1 << Character.OTHER_LETTER) | (1 << Character.DECIMAL_DIGIT_NUMBER)) >> type) & 1) != 0); } static boolean isSpaceChar(int ch) { int type = getType(ch); return (((((1 << Character.SPACE_SEPARATOR) | (1 << Character.LINE_SEPARATOR) | (1 << Character.PARAGRAPH_SEPARATOR)) >> type) & 1) != 0); } static boolean isJavaIdentifierStart(int ch) { int props = getProperties(ch); return ((props & 0x00007000) >= 0x00005000); } static boolean isJavaIdentifierPart(int ch) { int props = getProperties(ch); return ((props & 0x00003000) != 0); } static boolean isUnicodeIdentifierStart(int ch) { int props = getProperties(ch); return ((props & 0x00007000) == 0x00007000); } static boolean isUnicodeIdentifierPart(int ch) { int props = getProperties(ch); return ((props & 0x00001000) != 0); } static boolean isIdentifierIgnorable(int ch) { int props = getProperties(ch); return ((props & 0x00007000) == 0x00001000); } static int toLowerCase(int ch) { int mapChar = ch; int val = getProperties(ch); if ((val & 0x00020000) != 0) { if ((val & 0x07FC0000) == 0x07FC0000) { switch(ch) { // map the offset overflow chars case 0x0130 : mapChar = 0x0069; break; case 0x2126 : mapChar = 0x03C9; break; case 0x212A : mapChar = 0x006B; break; case 0x212B : mapChar = 0x00E5; break; // map the titlecase chars with both a 1:M uppercase map // and a lowercase map case 0x1F88 : mapChar = 0x1F80; break; case 0x1F89 : mapChar = 0x1F81; break; case 0x1F8A : mapChar = 0x1F82; break; case 0x1F8B : mapChar = 0x1F83; break; case 0x1F8C : mapChar = 0x1F84; break; case 0x1F8D : mapChar = 0x1F85; break; case 0x1F8E : mapChar = 0x1F86; break; case 0x1F8F : mapChar = 0x1F87; break; case 0x1F98 : mapChar = 0x1F90; break; case 0x1F99 : mapChar = 0x1F91; break; case 0x1F9A : mapChar = 0x1F92; break; case 0x1F9B : mapChar = 0x1F93; break; case 0x1F9C : mapChar = 0x1F94; break; case 0x1F9D : mapChar = 0x1F95; break; case 0x1F9E : mapChar = 0x1F96; break; case 0x1F9F : mapChar = 0x1F97; break; case 0x1FA8 : mapChar = 0x1FA0; break; case 0x1FA9 : mapChar = 0x1FA1; break; case 0x1FAA : mapChar = 0x1FA2; break; case 0x1FAB : mapChar = 0x1FA3; break; case 0x1FAC : mapChar = 0x1FA4; break; case 0x1FAD : mapChar = 0x1FA5; break; case 0x1FAE : mapChar = 0x1FA6; break; case 0x1FAF : mapChar = 0x1FA7; break; case 0x1FBC : mapChar = 0x1FB3; break; case 0x1FCC : mapChar = 0x1FC3; break; case 0x1FFC : mapChar = 0x1FF3; break; // default mapChar is already set, so no // need to redo it here. // default : mapChar = ch; } } else { int offset = val << 5 >> (5+18); mapChar = ch + offset; } } return mapChar; } static int toUpperCase(int ch) { int mapChar = ch; int val = getProperties(ch); if ((val & 0x00010000) != 0) { if ((val & 0x07FC0000) == 0x07FC0000) { switch(ch) { // map chars with overflow offsets case 0x00B5 : mapChar = 0x039C; break; case 0x017F : mapChar = 0x0053; break; case 0x1FBE : mapChar = 0x0399; break; // map char that have both a 1:1 and 1:M map case 0x1F80 : mapChar = 0x1F88; break; case 0x1F81 : mapChar = 0x1F89; break; case 0x1F82 : mapChar = 0x1F8A; break; case 0x1F83 : mapChar = 0x1F8B; break; case 0x1F84 : mapChar = 0x1F8C; break; case 0x1F85 : mapChar = 0x1F8D; break; case 0x1F86 : mapChar = 0x1F8E; break; case 0x1F87 : mapChar = 0x1F8F; break; case 0x1F90 : mapChar = 0x1F98; break; case 0x1F91 : mapChar = 0x1F99; break; case 0x1F92 : mapChar = 0x1F9A; break; case 0x1F93 : mapChar = 0x1F9B; break; case 0x1F94 : mapChar = 0x1F9C; break; case 0x1F95 : mapChar = 0x1F9D; break; case 0x1F96 : mapChar = 0x1F9E; break; case 0x1F97 : mapChar = 0x1F9F; break; case 0x1FA0 : mapChar = 0x1FA8; break; case 0x1FA1 : mapChar = 0x1FA9; break; case 0x1FA2 : mapChar = 0x1FAA; break; case 0x1FA3 : mapChar = 0x1FAB; break; case 0x1FA4 : mapChar = 0x1FAC; break; case 0x1FA5 : mapChar = 0x1FAD; break; case 0x1FA6 : mapChar = 0x1FAE; break; case 0x1FA7 : mapChar = 0x1FAF; break; case 0x1FB3 : mapChar = 0x1FBC; break; case 0x1FC3 : mapChar = 0x1FCC; break; case 0x1FF3 : mapChar = 0x1FFC; break; // ch must have a 1:M case mapping, but we // can't handle it here. Return ch. // since mapChar is already set, no need // to redo it here. //default : mapChar = ch; } } else { int offset = val << 5 >> (5+18); mapChar = ch - offset; } } return mapChar; } static int toTitleCase(int ch) { int mapChar = ch; int val = getProperties(ch); if ((val & 0x00008000) != 0) { // There is a titlecase equivalent. Perform further checks: if ((val & 0x00010000) == 0) { // The character does not have an uppercase equivalent, so it must // already be uppercase; so add 1 to get the titlecase form. mapChar = ch + 1; } else if ((val & 0x00020000) == 0) { // The character does not have a lowercase equivalent, so it must // already be lowercase; so subtract 1 to get the titlecase form. mapChar = ch - 1; } // else { // The character has both an uppercase equivalent and a lowercase // equivalent, so it must itself be a titlecase form; return it. // return ch; //} } else if ((val & 0x00010000) != 0) { // This character has no titlecase equivalent but it does have an // uppercase equivalent, so use that (subtract the signed case offset). mapChar = toUpperCase(ch); } return mapChar; } static int digit(int ch, int radix) { int value = -1; if (radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX) { int val = getProperties(ch); int kind = val & 0x1F; if (kind == Character.DECIMAL_DIGIT_NUMBER) { value = ch + ((val & 0x3E0) >> 5) & 0x1F; } else if ((val & 0xC00) == 0x00000C00) { // Java supradecimal digit value = (ch + ((val & 0x3E0) >> 5) & 0x1F) + 10; } } return (value < radix) ? value : -1; } static int getNumericValue(int ch) { int val = getProperties(ch); int retval = -1; switch (val & 0xC00) { default: // cannot occur case (0x00000000): // not numeric retval = -1; break; case (0x00000400): // simple numeric retval = ch + ((val & 0x3E0) >> 5) & 0x1F; break; case (0x00000800) : // "strange" numeric switch (ch) { case 0x0BF1: retval = 100; break; // TAMIL NUMBER ONE HUNDRED case 0x0BF2: retval = 1000; break; // TAMIL NUMBER ONE THOUSAND case 0x1375: retval = 40; break; // ETHIOPIC NUMBER FORTY case 0x1376: retval = 50; break; // ETHIOPIC NUMBER FIFTY case 0x1377: retval = 60; break; // ETHIOPIC NUMBER SIXTY case 0x1378: retval = 70; break; // ETHIOPIC NUMBER SEVENTY case 0x1379: retval = 80; break; // ETHIOPIC NUMBER EIGHTY case 0x137A: retval = 90; break; // ETHIOPIC NUMBER NINETY case 0x137B: retval = 100; break; // ETHIOPIC NUMBER HUNDRED case 0x137C: retval = 10000; break; // ETHIOPIC NUMBER TEN THOUSAND case 0x215F: retval = 1; break; // FRACTION NUMERATOR ONE case 0x216C: retval = 50; break; // ROMAN NUMERAL FIFTY case 0x216D: retval = 100; break; // ROMAN NUMERAL ONE HUNDRED case 0x216E: retval = 500; break; // ROMAN NUMERAL FIVE HUNDRED case 0x216F: retval = 1000; break; // ROMAN NUMERAL ONE THOUSAND case 0x217C: retval = 50; break; // SMALL ROMAN NUMERAL FIFTY case 0x217D: retval = 100; break; // SMALL ROMAN NUMERAL ONE HUNDRED case 0x217E: retval = 500; break; // SMALL ROMAN NUMERAL FIVE HUNDRED case 0x217F: retval = 1000; break; // SMALL ROMAN NUMERAL ONE THOUSAND case 0x2180: retval = 1000; break; // ROMAN NUMERAL ONE THOUSAND C D case 0x2181: retval = 5000; break; // ROMAN NUMERAL FIVE THOUSAND case 0x2182: retval = 10000; break; // ROMAN NUMERAL TEN THOUSAND case 0x325C: retval = 32; break; case 0x325D: retval = 33; break; // CIRCLED NUMBER THIRTY THREE case 0x325E: retval = 34; break; // CIRCLED NUMBER THIRTY FOUR case 0x325F: retval = 35; break; // CIRCLED NUMBER THIRTY FIVE case 0x32B1: retval = 36; break; // CIRCLED NUMBER THIRTY SIX case 0x32B2: retval = 37; break; // CIRCLED NUMBER THIRTY SEVEN case 0x32B3: retval = 38; break; // CIRCLED NUMBER THIRTY EIGHT case 0x32B4: retval = 39; break; // CIRCLED NUMBER THIRTY NINE case 0x32B5: retval = 40; break; // CIRCLED NUMBER FORTY case 0x32B6: retval = 41; break; // CIRCLED NUMBER FORTY ONE case 0x32B7: retval = 42; break; // CIRCLED NUMBER FORTY TWO case 0x32B8: retval = 43; break; // CIRCLED NUMBER FORTY THREE case 0x32B9: retval = 44; break; // CIRCLED NUMBER FORTY FOUR case 0x32BA: retval = 45; break; // CIRCLED NUMBER FORTY FIVE case 0x32BB: retval = 46; break; // CIRCLED NUMBER FORTY SIX case 0x32BC: retval = 47; break; // CIRCLED NUMBER FORTY SEVEN case 0x32BD: retval = 48; break; // CIRCLED NUMBER FORTY EIGHT case 0x32BE: retval = 49; break; // CIRCLED NUMBER FORTY NINE case 0x32BF: retval = 50; break; // CIRCLED NUMBER FIFTY default: retval = -2; break; } break; case (0x00000C00): // Java supradecimal retval = (ch + ((val & 0x3E0) >> 5) & 0x1F) + 10; break; } return retval; } static boolean isWhitespace(int ch) { int props = getProperties(ch); return ((props & 0x00007000) == 0x00004000); } static byte getDirectionality(int ch) { int val = getProperties(ch); byte directionality = (byte)((val & 0x78000000) >> 27); if (directionality == 0xF ) { switch(ch) { case 0x202A : // This is the only char with LRE directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING; break; case 0x202B : // This is the only char with RLE directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING; break; case 0x202C : // This is the only char with PDF directionality = Character.DIRECTIONALITY_POP_DIRECTIONAL_FORMAT; break; case 0x202D : // This is the only char with LRO directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE; break; case 0x202E : // This is the only char with RLO directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE; break; default : directionality = Character.DIRECTIONALITY_UNDEFINED; break; } } return directionality; } static boolean isMirrored(int ch) { int props = getProperties(ch); return ((props & 0x80000000) != 0); } static int toUpperCaseEx(int ch) { int mapChar = ch; int val = getProperties(ch); if ((val & 0x00010000) != 0) { if ((val & 0x07FC0000) != 0x07FC0000) { int offset = val << 5 >> (5+18); mapChar = ch - offset; } else { switch(ch) { // map overflow characters case 0x00B5 : mapChar = 0x039C; break; case 0x017F : mapChar = 0x0053; break; case 0x1FBE : mapChar = 0x0399; break; default : mapChar = Character.ERROR; break; } } } return mapChar; } static char[] toUpperCaseCharArray(int ch) { char[] upperMap = {(char)ch}; int location = findInCharMap(ch); if (location != -1) { upperMap = charMap[location][1]; } return upperMap; } /** * Finds the character in the uppercase mapping table. * * @param ch the <code>char</code> to search * @return the index location ch in the table or -1 if not found * @since 1.4 */ static int findInCharMap(int ch) { if (charMap == null || charMap.length == 0) { return -1; } int top, bottom, current; bottom = 0; top = charMap.length; current = top/2; // invariant: top > current >= bottom && ch >= CharacterData.charMap[bottom][0] while (top - bottom > 1) { if (ch >= charMap[current][0][0]) { bottom = current; } else { top = current; } current = (top + bottom) / 2; } if (ch == charMap[current][0][0]) return current; else return -1; } // The following tables and code generated using: // java GenerateCharacter -plane 0 -template ../../tools/GenerateCharacter/CharacterData00.java.template -spec ../../tools/GenerateCharacter/UnicodeData.txt -specialcasing ../../tools/GenerateCharacter/SpecialCasing.txt -o /BUILD_AREA/jdk6_31/control/build/linux-i586/gensrc/java/lang/CharacterData00.java -string -usecharforbyte 11 4 1 static final char[][][] charMap; // The X table has 2048 entries for a total of 4096 bytes. static final char X[] = ( "\000\020\040\060\100\120\140\160\200\220\240\260\300\320\340\360\200\u0100"+ "\u0110\u0120\u0130\u0140\u0150\u0160\u0170\u0170\u0180\u0190\u01A0\u01B0\u01C0"+ "\u01D0\u01E0\u01F0\u0200\200\u0210\200\u0220\u0230\u0240\u0250\u0260\u0270"+ "\u0280\u0290\u02A0\u02B0\u02C0\u02D0\u02E0\u02F0\u0300\u0300\u0310\u0320\u0330"+ "\u0340\u0350\u0360\u0300\u0370\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0380\u0390\u03A0\u03B0\u03C0\u03D0\u03E0\u03F0\u0400\u0410\u0420"+ "\u0430\u0440\u0450\u0460\u0470\u03C0\u0480\u0490\u04A0\u04B0\u04C0\u04D0\u04E0"+ "\u04F0\u0500\u0510\u0520\u0530\u0540\u0550\u0520\u0530\u0560\u0570\u0520\u0580"+ "\u0590\u05A0\u05B0\u05C0\u05D0\u05E0\u0360\u05F0\u0600\u0610\u0360\u0620\u0630"+ "\u0640\u0650\u0660\u0670\u0680\u0360\u0690\u06A0\u06B0\u0360\u0360\u06C0\u06D0"+ "\u06E0\u0690\u0690\u06F0\u0690\u0690\u0700\u0690\u0710\u0720\u0690\u0730\u0690"+ "\u0740\u0750\u0760\u0770\u0750\u0690\u0780\u0790\u0360\u0690\u0690\u07A0\u05C0"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u07B0\u07C0\u0690\u0690\u07D0\u07E0\u07F0\u0800"+ "\u0810\u0690\u0820\u0830\u0840\u0850\u0690\u0860\u0870\u0690\u0880\u0360\u0360"+ "\u0890\u08A0\u08B0\u08C0\u0360\u0360\u0360\u08D0\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u08E0\u08F0\u0900\u0910\u0360\u0360\u0360"+ "\u0360\200\200\200\200\u0920\200\200\u0930\u0940\u0950\u0960\u0970\u0980\u0990"+ "\u09A0\u09B0\u09C0\u09D0\u09E0\u09F0\u0A00\u0A10\u0A20\u0A30\u0A40\u0A50\u0A60"+ "\u0A70\u0A80\u0A90\u0AA0\u0AB0\u0AC0\u0AD0\u0AE0\u0AF0\u0B00\u0B10\u0B20\u0B30"+ "\u0B40\u0B50\u0B60\u0B70\u0B80\u0B90\u0BA0\u0360\u08D0\u0BB0\u0BC0\u0BD0\u0BE0"+ "\u0BF0\u0C00\u0C10\u08D0\u08D0\u08D0\u08D0\u08D0\u0C20\u0C30\u0C40\u0C50\u08D0"+ "\u08D0\u0C60\u0C70\u0C80\u0360\u0360\u0C90\u0CA0\u0CB0\u0CC0\u0CD0\u0CE0\u0CF0"+ "\u0D00\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u0D10\u0D10\u0D10\u0D10"+ "\u0D20\u0D30\u0D40\u0D50\u0D60\u0D70\u0D80\u0D90\u0DA0\u0DB0\u0DC0\u0DD0\u0DE0"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0DF0\u08D0\u08D0\u0E00\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u0E10\u0E20"+ "\u0E30\u0E40\u05C0\u0690\u0E50\u0E60\u0690\u0E70\u0E80\u0E90\u0690\u0690\u0EA0"+ "\u0870\u0360\u0EB0\u0EC0\u0ED0\u0EE0\u0EF0\u0ED0\u0F00\u0F10\u0F20\u0B60\u0B60"+ "\u0B60\u0F30\u0B60\u0B60\u0F40\u0F50\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0F60\u08D0\u08D0\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0F70\u0360\u0360\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0F80\u08D0\u0BB0\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+ "\u0360\u0360\u0360\u0360\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0F90\u0360\u0360\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0"+ "\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0"+ "\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0"+ "\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0"+ "\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0\u0FA0"+ "\u0FA0\u0FA0\u0FA0\u0FA0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0"+ "\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0FB0\u0690\u0690\u0690\u0690"+ "\u0690\u0690\u0690\u0690\u0690\u0FC0\u0690\u0FD0\u0360\u0360\u0360\u0360\u0FE0"+ "\u0FF0\u1000\u0300\u0300\u1010\u1020\u0300\u0300\u0300\u0300\u0300\u0300\u0300"+ "\u0300\u0300\u0300\u1030\u1040\u0300\u1050\u0300\u1060\u1070\u1080\u1090\u10A0"+ "\u10B0\u0300\u0300\u0300\u10C0\u10D0\040\u10E0\u10F0\u1100\u1110\u1120\u1130").toCharArray(); // The Y table has 4416 entries for a total of 8832 bytes. static final char Y[] = ( "\000\000\000\000\002\004\006\000\000\000\000\000\000\000\010\004\012\014\016"+ "\020\022\024\026\030\032\032\032\032\032\034\036\040\042\044\044\044\044\044"+ "\044\044\044\044\044\044\044\046\050\052\054\056\056\056\056\056\056\056\056"+ "\056\056\056\056\060\062\064\000\000\066\000\000\000\000\000\000\000\000\000"+ "\000\000\000\000\070\072\072\074\076\100\102\104\106\110\112\114\116\120\122"+ "\124\126\126\126\126\126\126\126\126\126\126\126\130\126\126\126\132\134\134"+ "\134\134\134\134\134\134\134\134\134\136\134\134\134\140\142\142\142\142\142"+ "\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142"+ "\144\142\142\142\146\150\150\150\150\150\150\150\152\142\142\142\142\142\142"+ "\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\142\154\150"+ "\150\152\156\142\142\160\162\164\166\170\172\162\174\176\142\200\202\204\142"+ "\142\142\206\210\200\142\206\212\214\150\216\142\220\142\222\224\224\226\230"+ "\232\226\234\150\150\150\150\150\150\150\236\142\142\142\142\142\142\142\142"+ "\142\240\232\142\242\142\142\142\142\244\142\142\142\142\142\142\142\142\142"+ "\200\246\250\250\250\250\250\250\250\250\250\250\250\250\200\252\254\256\260"+ "\262\200\200\264\266\200\200\270\200\200\272\200\274\276\200\200\200\200\200"+ "\300\302\200\200\300\304\200\200\200\306\200\200\200\200\200\200\200\200\200"+ "\200\200\200\200\200\310\310\310\310\312\314\310\310\310\316\316\320\320\320"+ "\320\320\310\316\316\316\316\316\316\316\310\310\322\316\316\316\316\322\316"+ "\316\316\316\316\316\316\316\324\324\324\324\324\324\324\324\324\324\324\324"+ "\324\324\324\324\324\324\326\324\324\324\324\324\324\324\324\324\250\250\330"+ "\324\324\324\324\324\324\324\324\324\250\250\316\250\250\332\250\334\250\250"+ "\316\336\340\342\344\346\350\126\126\126\126\126\126\126\126\352\126\126\126"+ "\126\354\356\360\134\134\134\134\134\134\134\134\362\134\134\134\134\364\366"+ "\370\372\374\376\142\142\142\142\142\142\142\142\142\142\142\142\u0100\u0102"+ "\u0104\u0106\u0108\142\250\250\u010A\u010A\u010A\u010A\u010A\u010A\u010A\u010A"+ "\126\126\126\126\126\126\126\126\126\126\126\126\126\126\126\126\134\134\134"+ "\134\134\134\134\134\134\134\134\134\134\134\134\134\u010C\u010C\u010C\u010C"+ "\u010C\u010C\u010C\u010C\142\u010E\324\u0110\u0112\142\142\142\142\142\142"+ "\142\142\142\142\142\u0114\150\150\150\150\150\150\u0116\142\142\142\142\142"+ "\142\142\142\142\142\142\142\142\142\142\142\142\142\142\250\142\250\250\250"+ "\142\142\142\142\142\142\142\142\250\250\250\250\250\250\250\250\250\250\250"+ "\250\250\250\250\250\u0118\u011A\u011A\u011A\u011A\u011A\u011A\u011A\u011A"+ "\u011A\u011A\u011A\u011A\u011A\u011A\u011A\u011A\u011A\u011A\u011C\u011E\u0120"+ "\u0120\u0120\u0122\u0124\u0124\u0124\u0124\u0124\u0124\u0124\u0124\u0124\u0124"+ "\u0124\u0124\u0124\u0124\u0124\u0124\u0124\u0124\u0126\u0128\u012A\250\250"+ "\330\324\324\324\324\324\324\324\324\330\324\324\324\324\324\324\324\324\324"+ "\324\324\330\324\u012C\u012C\u012E\u0110\250\250\250\250\250\u0130\u0130\u0130"+ "\u0130\u0130\u0130\u0130\u0130\u0130\u0130\u0130\u0130\u0130\u0132\250\250"+ "\u0130\u0134\u0136\250\250\250\250\250\u0138\u0138\250\250\250\250\u013A\074"+ "\324\324\324\250\250\u013C\250\u013C\u013E\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0142\250\250\u0144\u0140\u0140\u0140"+ "\u0140\u0146\324\324\324\324\324\324\u0110\250\250\250\u0148\u0148\u0148\u0148"+ "\u0148\u014A\u014C\u0140\u014E\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0150"+ "\324\324\324\u0152\u0154\324\324\u0156\u0158\u015A\324\324\u0140\032\032\032"+ "\032\032\u0140\u015C\u015E\u0160\u0160\u0160\u0160\u0160\u0160\u0160\u0162"+ "\u0146\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\324\324\324\324\324\324\324\324\324\324\324\324\324\u0110"+ "\u013E\u0140\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250"+ "\250\250\250\250\250\250\250\250\u0140\u0140\u0140\324\324\324\324\324\u014E"+ "\250\250\250\250\250\250\250\330\u0164\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\250"+ "\u0166\u0168\u016A\324\324\324\u0164\u0168\u016A\250\u016C\324\u0110\250\224"+ "\224\224\224\224\324\u0120\u016E\u016E\u016E\u016E\u016E\u0170\250\250\250"+ "\250\250\250\250\330\u0168\u0172\224\224\224\u0174\u0172\u0174\u0172\224\224"+ "\224\224\224\224\224\224\224\224\u0174\224\224\224\u0174\u0174\250\224\224"+ "\250\u0166\u0168\u016A\324\u0110\u0176\u0178\u0176\u016A\250\250\250\250\u0176"+ "\250\250\224\u0172\224\324\250\u016E\u016E\u016E\u016E\u016E\224\072\u017A"+ "\u017A\u017C\u017E\250\250\330\u0164\u0172\224\224\u0174\250\u0172\u0174\u0172"+ "\224\224\224\224\224\224\224\224\224\224\u0174\224\224\224\u0174\224\u0172"+ "\u0174\224\250\u0110\u0168\u016A\u0110\250\330\u0110\330\324\250\250\250\250"+ "\250\u0172\224\u0174\u0174\250\250\250\u016E\u016E\u016E\u016E\u016E\324\224"+ "\u0174\250\250\250\250\250\330\u0164\u0172\224\224\224\224\u0172\224\u0172"+ "\224\224\224\224\224\224\224\224\224\224\u0174\224\224\224\u0174\224\u0172"+ "\224\224\250\u0166\u0168\u016A\324\324\330\u0164\u0176\u016A\250\u0174\250"+ "\250\250\250\250\250\250\224\324\250\u016E\u016E\u016E\u016E\u016E\u0180\250"+ "\250\250\250\250\250\250\224\224\224\224\u0174\224\224\224\u0174\224\u0172"+ "\224\224\250\u0166\u016A\u016A\324\250\u0176\u0178\u0176\u016A\250\250\250"+ "\250\u0164\250\250\224\u0172\224\250\250\u016E\u016E\u016E\u016E\u016E\u0182"+ "\250\250\250\250\250\250\250\250\u0166\u0172\224\224\u0174\250\224\u0174\224"+ "\224\250\u0172\u0174\u0174\224\250\u0172\u0174\250\224\u0174\250\224\224\224"+ "\224\u0172\224\250\250\u0168\u0164\u0178\250\u0168\u0178\u0168\u016A\250\250"+ "\250\250\u0176\250\250\250\250\250\250\250\u0184\u016E\u016E\u016E\u016E\u0186"+ "\u0188\074\074\u018A\u018C\250\250\u0176\u0168\u0172\224\224\224\u0174\224"+ "\u0174\224\224\224\224\224\224\224\224\224\224\224\u0174\224\224\224\224\224"+ "\u0172\224\224\250\250\324\u0164\u0168\u0178\324\u0110\324\324\250\250\250"+ "\330\u0110\250\250\250\250\224\250\250\u016E\u016E\u016E\u016E\u016E\250\250"+ "\250\250\250\250\250\250\250\u0168\u0172\224\224\224\u0174\224\u0174\224\224"+ "\224\224\224\224\224\224\224\224\224\u0174\224\224\224\224\224\u0172\224\224"+ "\250\u0166\u018E\u0168\u0168\u0178\u0190\u0178\u0168\324\250\250\250\u0176"+ "\u0178\250\250\250\u0174\224\224\224\224\u0174\224\224\224\224\224\224\224"+ "\224\250\250\u0168\u016A\324\250\u0168\u0178\u0168\u016A\250\250\250\250\u0176"+ "\250\250\250\250\250\u0168\u0172\224\224\224\224\224\224\224\224\u0174\250"+ "\224\224\224\224\224\224\224\224\224\224\224\224\u0172\224\224\224\224\u0172"+ "\250\224\224\224\u0174\250\u0110\250\u0176\u0168\324\u0110\u0110\u0168\u0168"+ "\u0168\u0168\250\250\250\250\250\250\250\250\250\u0168\u0170\250\250\250\250"+ "\250\u0172\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\u016C\224\324\324\324\u0110\250\u0180\224\224"+ "\224\u0192\324\324\324\u0194\u0196\u0196\u0196\u0196\u0196\u0120\250\250\u0172"+ "\u0174\u0174\u0172\u0174\u0174\u0172\250\250\250\224\224\u0172\224\224\224"+ "\u0172\224\u0172\u0172\250\224\u0172\224\u016C\224\324\324\324\330\u0166\250"+ "\224\224\u0174\332\324\324\324\250\u0196\u0196\u0196\u0196\u0196\250\224\250"+ "\u0198\u019A\u0120\u0120\u0120\u0120\u0120\u0120\u0120\u019C\u019A\u019A\324"+ "\u019A\u019A\u019A\u019E\u019E\u019E\u019E\u019E\u01A0\u01A0\u01A0\u01A0\u01A0"+ "\u010E\u010E\u010E\u01A2\u01A2\u0168\224\224\224\224\u0172\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\224\224\224\u0174\250\250\330\324\324"+ "\324\324\324\324\u0164\324\324\u0194\324\224\224\250\250\324\324\324\324\330"+ "\324\324\324\324\324\324\324\324\324\324\324\324\324\324\324\324\324\u0110"+ "\u019A\u019A\u019A\u019A\u01A4\u019A\u019A\u017E\u01A6\250\250\250\250\250"+ "\250\250\250\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224"+ "\224\u0172\224\224\u0172\u0174\u016A\324\u0164\u0110\250\324\u016A\250\250"+ "\250\u019E\u019E\u019E\u019E\u019E\u0120\u0120\u0120\224\224\224\u0168\324"+ "\250\250\250\372\372\372\372\372\372\372\372\372\372\372\372\372\372\372\372"+ "\372\372\372\250\250\250\250\250\224\224\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\u0174\u0128\250\250\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\250\250\u0172\224\u0174\250\250\224\224\224"+ "\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224"+ "\224\224\224\250\250\250\224\224\224\u0174\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\u0174\u0174\224\224\250\224\224\224\u0174\u0174"+ "\224\224\250\224\224\224\u0174\u0174\224\224\250\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\u0174\u0174\224\224\250\224\224\224\u0174"+ "\u0174\224\224\250\224\224\224\u0174\224\224\224\u0174\224\224\224\224\224"+ "\224\224\224\224\224\224\u0174\224\224\224\224\224\224\224\224\224\224\224"+ "\u0174\224\224\224\224\224\224\224\224\224\u0174\250\250\u0128\u0120\u0120"+ "\u0120\u01A8\u01AA\u01AA\u01AA\u01AA\u01AC\u01AE\u01A0\u01A0\u01A0\u01B0\250"+ "\224\224\224\224\224\224\224\224\224\224\u0174\250\250\250\250\250\224\224"+ "\224\224\224\224\u01B2\u01B4\224\224\224\u0174\250\250\250\250\u01B6\224\224"+ "\224\224\224\224\224\224\224\224\224\224\u01B8\u01BA\250\224\224\224\224\224"+ "\u01B2\u0120\u01BC\u01BE\250\250\250\250\250\250\250\224\224\224\224\224\224"+ "\u0174\224\224\324\u0110\250\250\250\250\250\224\224\224\224\224\224\224\224"+ "\224\324\u0194\u0170\250\250\250\250\224\224\224\224\224\224\224\224\224\324"+ "\250\250\250\250\250\250\224\224\224\224\224\224\u0174\224\u0174\324\250\250"+ "\250\250\250\250\224\224\224\224\224\224\224\224\224\224\u01C0\u016A\324\324"+ "\324\u0168\u0168\u0168\u0168\u0164\u016A\324\324\324\324\324\u0120\u01C2\u0120"+ "\u01C4\u016C\250\u019E\u019E\u019E\u019E\u019E\250\250\250\u01C6\u01C6\u01C6"+ "\u01C6\u01C6\250\250\250\020\020\020\u01C8\020\u01CA\324\u01CC\u0196\u0196"+ "\u0196\u0196\u0196\250\250\250\224\u01CE\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\250\250"+ "\250\250\224\224\224\224\u016C\250\250\250\250\250\250\250\250\250\250\250"+ "\224\224\224\224\224\224\224\224\224\224\224\224\224\224\u0174\250\324\u0164"+ "\u0168\u016A\u01D0\u01D2\250\250\u0168\u0164\u0168\u0168\u016A\324\250\250"+ "\u018C\250\020\u016E\u016E\u016E\u016E\u016E\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\250\224\224\u0174\250\250\250\250\250\074\074"+ "\074\074\074\074\074\074\074\074\074\074\074\074\074\074\200\200\200\200\200"+ "\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\310\310"+ "\310\310\310\310\310\310\310\310\310\310\310\310\310\310\310\310\310\310\310"+ "\310\310\310\310\310\310\200\200\200\200\200\250\250\250\250\250\250\250\250"+ "\250\250\142\142\142\142\142\142\142\142\142\142\142\u01D4\u01D4\u01D6\250"+ "\250\142\142\142\142\142\142\142\142\142\142\142\142\142\250\250\250\u01D8"+ "\u01D8\u01D8\u01D8\u01DA\u01DA\u01DA\u01DA\u01D8\u01D8\u01D8\250\u01DA\u01DA"+ "\u01DA\250\u01D8\u01D8\u01D8\u01D8\u01DA\u01DA\u01DA\u01DA\u01D8\u01D8\u01D8"+ "\u01D8\u01DA\u01DA\u01DA\u01DA\u01D8\u01D8\u01D8\250\u01DA\u01DA\u01DA\250"+ "\u01DC\u01DC\u01DC\u01DC\u01DE\u01DE\u01DE\u01DE\u01D8\u01D8\u01D8\u01D8\u01DA"+ "\u01DA\u01DA\u01DA\u01E0\u01E2\u01E2\u01E4\u01E6\u01E8\u01EA\250\u01D4\u01D4"+ "\u01D4\u01D4\u01EC\u01EC\u01EC\u01EC\u01D4\u01D4\u01D4\u01D4\u01EC\u01EC\u01EC"+ "\u01EC\u01D4\u01D4\u01D4\u01D4\u01EC\u01EC\u01EC\u01EC\u01D8\u01D4\u01EE\u01D4"+ "\u01DA\u01F0\u01F2\u01F4\316\u01D4\u01EE\u01D4\u01F6\u01F6\u01F2\316\u01D8"+ "\u01D4\250\u01D4\u01DA\u01F8\u01FA\316\u01D8\u01D4\u01FC\u01D4\u01DA\u01FE"+ "\u0200\316\250\u01D4\u01EE\u01D4\u0202\u0204\u01F2\u0206\u0208\u0208\u0208"+ "\u020A\u0208\u020C\u020E\u0210\u0212\u0212\u0212\020\u0214\u0216\u0214\u0216"+ "\020\020\020\020\u0218\u021A\u021A\u021C\u021E\u021E\u0220\020\u0222\u0224"+ "\020\u0226\u0228\020\u022A\u022C\020\020\020\020\020\u022E\u0230\u0232\250"+ "\250\250\u0234\u020E\u020E\250\250\250\u020E\u020E\u020E\u0236\250\110\110"+ "\110\u0238\u022A\u023A\u023C\u023C\u023C\u023C\u023C\u0238\u022A\u023E\250"+ "\250\250\250\250\250\250\250\072\072\072\072\072\072\072\072\072\250\250\250"+ "\250\250\250\250\250\250\250\250\250\250\250\250\324\324\324\324\324\324\u0240"+ "\u0112\u0154\u0112\u0154\324\324\u0110\250\250\250\250\250\250\250\250\250"+ "\250\074\u0242\074\u0244\074\u0246\372\200\372\u0248\u0244\074\u0244\372\372"+ "\074\074\074\u0242\u024A\u0242\u024C\372\u024E\372\u0244\220\224\u0250\074"+ "\u0252\372\036\u0254\u0256\200\200\u0258\250\250\250\u025A\122\122\122\122"+ "\122\122\u025C\u025C\u025C\u025C\u025C\u025C\u025E\u025E\u0260\u0260\u0260"+ "\u0260\u0260\u0260\u0262\u0262\u0264\u0266\250\250\250\250\250\250\u0254\u0254"+ "\u0268\074\074\u0254\074\074\u0268\u0258\074\u0268\074\074\074\u0268\074\074"+ "\074\074\074\074\074\074\074\074\074\074\074\074\074\u0254\074\u0268\u0268"+ "\074\074\074\074\074\074\074\074\074\074\074\074\074\074\074\u0254\u0254\u0254"+ "\u0254\u0254\u0254\u026A\u026C\036\u0254\u026C\u026C\u026C\u0254\u026A\u0238"+ "\u026A\036\u0254\u026C\u026C\u026A\u026C\036\036\036\u0254\u026A\u026C\u026C"+ "\u026C\u026C\u0254\u0254\u026A\u026A\u026C\u026C\u026C\u026C\u026C\u026C\u026C"+ "\u026C\036\u0254\u0254\u026C\u026C\u0254\u0254\u0254\u0254\u026A\036\036\u026C"+ "\u026C\u026C\u026C\u0254\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C"+ "\u026C\u026C\u026C\u026C\u026C\u026C\036\u026A\u026C\036\u0254\u0254\036\u0254"+ "\u0254\u0254\u0254\u026C\u0254\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C"+ "\u026C\036\u0254\u0254\u026C\u0254\u0254\u0254\u0254\u026A\u026C\u026C\u0254"+ "\u026C\u0254\u0254\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C"+ "\u026C\u026C\u0254\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\074\074"+ "\074\074\u026C\u026C\074\074\074\074\074\074\074\074\074\074\u026C\074\074"+ "\074\u026E\u0270\074\074\074\074\074\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u0272\u0268\074\074\074\074\074\074\074\074\074\074\074\u0274\074\074"+ "\u0258\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254"+ "\u01A2\u0276\074\074\074\074\074\074\074\074\074\074\074\074\u018C\250\250"+ "\250\250\250\250\250\074\074\074\u018C\250\250\250\250\250\250\250\250\250"+ "\250\250\250\074\074\074\074\074\u018C\250\250\250\250\250\250\250\250\250"+ "\250\u0278\u0278\u0278\u0278\u0278\u0278\u0278\u0278\u0278\u0278\u027A\u027A"+ "\u027A\u027A\u027A\u027A\u027A\u027A\u027A\u027A\u027C\u027C\u027C\u027C\u027C"+ "\u027C\u027C\u027C\u027C\u027C\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u027E\u027E\u027E\u027E\u027E\u027E\u027E\u027E"+ "\u027E\u027E\u027E\u027E\u027E\u0280\u0280\u0280\u0280\u0280\u0280\u0280\u0280"+ "\u0280\u0280\u0280\u0280\u0280\u0282\u0284\u0284\u0284\u0284\u0286\u0288\u0288"+ "\u0288\u0288\u028A\074\074\074\074\074\074\074\074\074\074\074\u0258\074\074"+ "\074\074\u0258\074\074\074\074\074\074\074\074\074\074\074\074\074\074\074"+ "\074\074\074\074\074\074\074\074\074\074\074\074\u0254\u0254\u0254\u0254\074"+ "\074\074\074\074\074\074\074\074\074\074\074\u028C\074\074\074\074\074\074"+ "\074\074\074\074\u0258\074\074\074\074\074\074\074\250\074\074\074\074\074"+ "\074\074\074\074\250\250\250\250\250\250\250\074\250\250\250\250\250\250\250"+ "\250\250\250\250\250\250\250\250\u028C\074\u018C\074\074\250\074\074\074\074"+ "\074\074\074\074\074\074\074\074\074\074\u028C\074\074\074\074\074\074\074"+ "\074\074\074\074\074\074\074\074\074\074\u028C\u028C\074\u018C\250\u018C\074"+ "\074\074\u018C\u028C\074\074\074\022\022\022\022\022\022\022\u028E\u028E\u028E"+ "\u028E\u028E\u0290\u0290\u0290\u0290\u0290\u0292\u0292\u0292\u0292\u0292\u018C"+ "\250\074\074\074\074\074\074\074\074\074\074\074\074\u028C\074\074\074\074"+ "\074\074\u018C\250\250\250\250\250\250\250\250\u0254\u026A\u026C\036\u0254"+ "\u0254\u026C\036\u0254\u026C\u026C\022\022\022\250\250\u0254\u0254\u0254\u0254"+ "\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254"+ "\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u022A\u0294\u0294\u0294\u0294"+ "\u0294\u0294\u0294\u0294\u0294\u0294\u0296\u026A\u026C\u026C\u026C\u026C\u026C"+ "\u026C\u026C\u026C\u026C\u026C\u0254\u0254\u0254\u0254\036\u0254\u0254\u0254"+ "\u026C\u026C\u026C\u0254\u026A\u0254\u0254\u026C\u026C\036\u026C\u0254\022"+ "\022\036\u0254\u026A\u026A\u026C\u0254\u026C\u0254\u0254\u0254\u0254\u0254"+ "\u026C\u026C\u026C\u0254\022\u0254\u0254\u0254\u0254\u0254\u0254\u026C\u026C"+ "\u026C\u026C\u026C\u026C\u026C\u026C\u026C\036\u026C\u026C\u0254\036\036\u026A"+ "\u026A\u026C\036\u0254\u0254\u026C\u0254\u0254\u0254\u026C\036\u0254\u0254"+ "\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u0254\u026A\036\u0254\u0254"+ "\u0254\u0254\u0254\u026C\u0254\u0254\u026C\u026C\u026A\036\u026A\036\u0254"+ "\u026A\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C"+ "\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u0254\u026C\u026C\u026C"+ "\u026C\u026A\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C"+ "\u026C\u026C\u026C\u026C\u026C\u026C\u026C\u026C\036\u0254\u0254\036\036\u0254"+ "\u026C\u026C\036\u0254\u0254\u026C\036\u0254\u026A\u0254\u026A\u026C\u026C"+ "\u026A\u0254\074\074\074\074\074\074\074\250\250\250\250\250\250\250\250\250"+ "\074\074\074\074\074\074\074\074\074\074\074\074\074\u028C\074\074\074\074"+ "\074\074\074\074\074\074\074\074\250\250\250\250\250\250\074\074\074\074\074"+ "\074\074\074\074\074\074\250\250\250\250\250\250\250\250\250\250\250\250\250"+ "\074\074\074\074\074\074\250\250\012\020\u0298\u029A\022\022\022\022\022\074"+ "\022\022\022\022\u029C\u029E\u02A0\u02A2\u02A2\u02A2\u02A2\324\324\324\u02A4"+ "\310\310\074\u02A6\u02A8\u02AA\074\224\224\224\224\224\224\224\224\224\224"+ "\224\u0174\330\u02AC\u02AE\u02B0\u02B2\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224\224"+ "\u02B4\310\u02B0\250\250\u0172\224\224\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\u0174\250\u0172\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\u0174\u019A\u02B6\u02B6\u019A\u019A\u019A\u019A"+ "\u019A\250\250\250\250\250\250\250\250\224\224\224\224\224\224\224\224\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u0272\u018C\u02B8\u02B8\u02B8\u02B8\u02B8\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\250\250\250\250\250\250\u02BA\u02BC"+ "\u02BC\u02BC\u02BC\u02BC\122\122\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\074\u01A6\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u02BE\122\122\122\122\122\122\122\u019A\u019A\u019A"+ "\u019A\u019A\u019A\074\074\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u017E\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u0272\074\u0274\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\074\u019A\u019A\u019A\u019A"+ "\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u019A\u0272\224"+ "\224\224\224\224\224\224\224\224\224\224\250\250\250\250\250\224\224\224\250"+ "\250\250\250\250\250\250\250\250\250\250\250\250\224\224\224\224\224\224\u0174"+ "\250\074\074\074\074\074\074\074\074\224\224\250\250\250\250\250\250\250\250"+ "\250\250\250\250\250\250\u02C0\u02C0\u02C0\u02C0\u02C0\u02C0\u02C0\u02C0\u02C0"+ "\u02C0\u02C0\u02C0\u02C0\u02C0\u02C0\u02C0\u02C2\u02C2\u02C2\u02C2\u02C2\u02C2"+ "\u02C2\u02C2\u02C2\u02C2\u02C2\u02C2\u02C2\u02C2\u02C2\u02C2\224\224\224\224"+ "\224\224\224\250\224\224\224\224\224\224\224\224\224\224\224\224\224\u0174"+ "\250\250\250\250\250\250\250\250\250\250\u01D4\u01D4\u01D4\u01EE\250\250\250"+ "\250\250\u02C4\u01D4\u01D4\250\250\u02C6\u02C8\u0130\u0130\u0130\u0130\u02CA"+ "\u0130\u0130\u0130\u0130\u0130\u0130\u0132\u0130\u0130\u0132\u0132\u0130\u02C6"+ "\u0132\u0130\u0130\u0130\u0130\u0130\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\250\250\250\250"+ "\250\250\250\250\250\250\250\250\250\250\250\250\u013E\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u01A2\250\250\250\250\250\250\250\250\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\250\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250\250"+ "\250\u0140\u0140\u0140\u0140\u0140\u0140\u02CC\250\324\324\324\324\324\324"+ "\324\324\250\250\250\250\250\250\250\250\324\324\250\250\250\250\250\250\u02CE"+ "\u02D0\u02D2\u02D4\u02D4\u02D4\u02D4\u02D4\u02D4\u02D4\u02D6\u02D8\u02D6\020"+ "\u0226\u02DA\034\u02DC\u02DE\020\u029C\u02D4\u02D4\u02E0\020\u02E2\u0254\u02E4"+ "\u02E6\u0220\250\250\u0140\u0140\u0142\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140\u0140"+ "\u0142\u0162\u0232\014\016\020\022\024\026\030\032\032\032\032\032\034\036"+ "\040\054\056\056\056\056\056\056\056\056\056\056\056\056\060\062\u022A\u022C"+ "\022\u0226\224\224\224\224\224\u02B0\224\224\224\224\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\224\224\224\310\224\224\224\224\224\224"+ "\224\224\224\224\224\224\224\224\224\u0174\250\224\224\224\250\224\224\224"+ "\250\224\224\224\250\224\u0174\250\072\u02E8\u018A\u02EA\u0258\u0254\u0268"+ "\u018C\250\250\250\250\u0162\u020E\074\250").toCharArray(); // The A table has 748 entries for a total of 2992 bytes. static final int A[] = new int[748]; static final String A_DATA = "\u4800\u100F\u4800\u100F\u4800\u100F\u5800\u400F\u5000\u400F\u5800\u400F\u6000"+ "\u400F\u5000\u400F\u5000\u400F\u5000\u400F\u6000\u400C\u6800\030\u6800\030"+ "\u2800\030\u2800\u601A\u2800\030\u6800\030\u6800\030\uE800\025\uE800\026\u6800"+ "\030\u2800\031\u3800\030\u2800\024\u3800\030\u2000\030\u1800\u3609\u1800\u3609"+ "\u3800\030\u6800\030\uE800\031\u6800\031\uE800\031\u6800\030\u6800\030\202"+ "\u7FE1\202\u7FE1\202\u7FE1\202\u7FE1\uE800\025\u6800\030\uE800\026\u6800\033"+ "\u6800\u5017\u6800\033\201\u7FE2\201\u7FE2\201\u7FE2\201\u7FE2\uE800\025\u6800"+ "\031\uE800\026\u6800\031\u4800\u100F\u4800\u100F\u5000\u100F\u3800\014\u6800"+ "\030\u2800\u601A\u2800\u601A\u6800\034\u6800\034\u6800\033\u6800\034\000\u7002"+ "\uE800\035\u6800\031\u6800\u1010\u6800\034\u6800\033\u2800\034\u2800\031\u1800"+ "\u060B\u1800\u060B\u6800\033\u07FD\u7002\u6800\034\u6800\030\u6800\033\u1800"+ "\u050B\000\u7002\uE800\036\u6800\u080B\u6800\u080B\u6800\u080B\u6800\030\202"+ "\u7001\202\u7001\202\u7001\u6800\031\202\u7001\u07FD\u7002\201\u7002\201\u7002"+ "\201\u7002\u6800\031\201\u7002\u061D\u7002\006\u7001\005\u7002\u07FF\uF001"+ "\u03A1\u7002\000\u7002\006\u7001\005\u7002\006\u7001\005\u7002\u07FD\u7002"+ "\u061E\u7001\006\u7001\000\u7002\u034A\u7001\u033A\u7001\006\u7001\005\u7002"+ "\u0336\u7001\u0336\u7001\006\u7001\005\u7002\000\u7002\u013E\u7001\u032A\u7001"+ "\u032E\u7001\006\u7001\u033E\u7001\u067D\u7002\u034E\u7001\u0346\u7001\000"+ "\u7002\000\u7002\u034E\u7001\u0356\u7001\u05F9\u7002\u035A\u7001\u036A\u7001"+ "\006\u7001\005\u7002\u036A\u7001\005\u7002\u0366\u7001\u0366\u7001\006\u7001"+ "\005\u7002\u036E\u7001\000\u7002\000\u7005\000\u7002\u0721\u7002\000\u7005"+ "\000\u7005\012\uF001\007\uF003\011\uF002\012\uF001\007\uF003\011\uF002\011"+ "\uF002\006\u7001\005\u7002\u013D\u7002\u07FD\u7002\012\uF001\u067E\u7001\u0722"+ "\u7001\u05FA\u7001\000\u7002\000\u7002\u7800\000\u7800\000\u7800\000\000\u7002"+ "\u0349\u7002\u0339\u7002\000\u7002\u0335\u7002\u0335\u7002\000\u7002\u0329"+ "\u7002\000\u7002\u032D\u7002\u0335\u7002\000\u7002\000\u7002\u033D\u7002\u0345"+ "\u7002\u034D\u7002\000\u7002\u034D\u7002\u0355\u7002\000\u7002\000\u7002\u0359"+ "\u7002\u0369\u7002\000\u7002\000\u7002\u0369\u7002\u0365\u7002\u0365\u7002"+ "\u036D\u7002\000\u7002\000\u7004\000\u7004\000\u7004\u6800\u7004\u6800\u7004"+ "\000\u7004\u6800\033\u6800\033\u6800\u7004\u6800\u7004\000\u7004\u6800\033"+ "\u4000\u3006\u4000\u3006\u4000\u3006\u46B1\u3006\u7800\000\u4000\u3006\000"+ "\u7004\u7800\000\u6800\030\u7800\000\232\u7001\u6800\030\226\u7001\226\u7001"+ "\226\u7001\u7800\000\u0102\u7001\u7800\000\376\u7001\376\u7001\u07FD\u7002"+ "\202\u7001\u7800\000\202\u7001\231\u7002\225\u7002\225\u7002\225\u7002\u07FD"+ "\u7002\201\u7002\175\u7002\201\u7002\u0101\u7002\375\u7002\375\u7002\u7800"+ "\000\371\u7002\345\u7002\000\u7001\000\u7001\000\u7001\275\u7002\331\u7002"+ "\000\u7002\u0159\u7002\u0141\u7002\u07E5\u7002\000\u7002\u0712\u7001\u0181"+ "\u7002\u6800\031\006\u7001\005\u7002\u07E6\u7001\u0142\u7001\u0142\u7001\u0141"+ "\u7002\u0141\u7002\000\034\u4000\u3006\u4000\u3006\u7800\000\u4000\007\u4000"+ "\007\000\u7001\006\u7001\005\u7002\u7800\000\u7800\000\302\u7001\302\u7001"+ "\302\u7001\302\u7001\u7800\000\u7800\000\000\u7004\000\030\000\030\u7800\000"+ "\301\u7002\301\u7002\301\u7002\301\u7002\u07FD\u7002\u7800\000\000\030\u6800"+ "\024\u7800\000\u0800\030\u4000\u3006\u4000\u3006\u0800\030\u0800\u7005\u0800"+ "\u7005\u0800\u7005\u7800\000\u0800\u7005\u0800\030\u0800\030\u7800\000\u1000"+ "\u1010\u1000\u1010\u3800\030\u1000\030\u7800\000\u1000\030\u7800\000\u1000"+ "\u7005\u1000\u7005\u1000\u7005\u1000\u7005\u7800\000\u1000\u7004\u1000\u7005"+ "\u1000\u7005\u4000\u3006\u3000\u3409\u3000\u3409\u2800\030\u3000\030\u3000"+ "\030\u1000\030\u4000\u3006\u1000\u7005\u1000\030\u1000\u7005\u4000\u3006\u1000"+ "\u1010\u4000\007\u4000\u3006\u4000\u3006\u1000\u7004\u1000\u7004\u4000\u3006"+ "\u4000\u3006\u6800\034\u1000\u7005\u1000\034\u1000\034\u1000\u7005\u1000\030"+ "\u1000\030\u7800\000\u4800\u1010\u4000\u3006\000\u3008\u4000\u3006\000\u7005"+ "\000\u3008\000\u3008\000\u3008\u4000\u3006\000\u7005\u4000\u3006\000\u3749"+ "\000\u3749\000\030\u7800\000\u7800\000\000\u7005\000\u7005\u7800\000\u7800"+ "\000\000\u3008\000\u3008\u7800\000\000\u05AB\000\u05AB\000\013\000\u06EB\000"+ "\034\u7800\000\u7800\000\u2800\u601A\000\034\000\u7005\u7800\000\000\u3749"+ "\000\u074B\000\u080B\000\u080B\u6800\034\u6800\034\u2800\u601A\u6800\034\u7800"+ "\000\000\u3008\000\u3006\000\u3006\000\u3008\000\u7004\u4000\u3006\u4000\u3006"+ "\000\030\000\u3609\000\u3609\000\u7005\000\034\000\034\000\034\000\030\000"+ "\034\000\u3409\000\u3409\000\u080B\000\u080B\u6800\025\u6800\026\u4000\u3006"+ "\000\034\u7800\000\000\034\000\030\000\u3709\000\u3709\000\u3709\000\u070B"+ "\000\u042B\000\u054B\000\u080B\000\u080B\u7800\000\000\u7005\000\030\000\030"+ "\000\u7005\u6000\u400C\000\u7005\000\u7005\u6800\025\u6800\026\u7800\000\000"+ "\u746A\000\u746A\000\u746A\u7800\000\000\u1010\000\u1010\000\030\000\u7004"+ "\000\030\u2800\u601A\u6800\u060B\u6800\u060B\u6800\024\u6800\030\u6800\030"+ "\u4000\u3006\u6000\u400C\u7800\000\000\u7005\000\u7004\u4000\u3006\u4000\u3008"+ "\u4000\u3008\u4000\u3008\u07FD\u7002\u07FD\u7002\u07FD\u7002\355\u7002\u07E1"+ "\u7002\u07E1\u7002\u07E2\u7001\u07E2\u7001\u07FD\u7002\u07E1\u7002\u7800\000"+ "\u07E2\u7001\u06D9\u7002\u06D9\u7002\u06A9\u7002\u06A9\u7002\u0671\u7002\u0671"+ "\u7002\u0601\u7002\u0601\u7002\u0641\u7002\u0641\u7002\u0609\u7002\u0609\u7002"+ "\u07FF\uF003\u07FF\uF003\u07FD\u7002\u7800\000\u06DA\u7001\u06DA\u7001\u07FF"+ "\uF003\u6800\033\u07FD\u7002\u6800\033\u06AA\u7001\u06AA\u7001\u0672\u7001"+ "\u0672\u7001\u7800\000\u6800\033\u07FD\u7002\u07E5\u7002\u0642\u7001\u0642"+ "\u7001\u07E6\u7001\u6800\033\u0602\u7001\u0602\u7001\u060A\u7001\u060A\u7001"+ "\u6800\033\u7800\000\u6000\u400C\u6000\u400C\u6000\u400C\u6000\014\u6000\u400C"+ "\u4800\u400C\u4800\u1010\u4800\u1010\000\u1010\u0800\u1010\u6800\024\u6800"+ "\024\u6800\035\u6800\036\u6800\025\u6800\035\u6000\u400D\u5000\u400E\u7800"+ "\u1010\u7800\u1010\u7800\u1010\u6000\014\u2800\030\u2800\030\u2800\030\u6800"+ "\030\u6800\030\uE800\035\uE800\036\u6800\030\u6800\030\u6800\u5017\u6800\u5017"+ "\u6800\030\u6800\031\uE800\025\uE800\026\u6800\030\u6800\031\u6800\030\u6800"+ "\u5017\u7800\000\u7800\000\u6800\030\u7800\000\u6000\u400C\u1800\u060B\000"+ "\u7002\u2800\031\u2800\031\uE800\026\000\u7002\u1800\u040B\u1800\u040B\uE800"+ "\026\u7800\000\u4000\u3006\u4000\007\000\u7001\u6800\034\u6800\034\000\u7001"+ "\000\u7002\000\u7001\000\u7001\000\u7002\u07FE\u7001\u6800\034\u07FE\u7001"+ "\u07FE\u7001\u2800\034\000\u7002\000\u7005\000\u7002\u7800\000\000\u7002\u6800"+ "\031\u6800\031\u6800\031\000\u7001\u6800\034\u6800\031\u7800\000\u6800\u080B"+ "\102\u742A\102\u742A\102\u780A\102\u780A\101\u762A\101\u762A\101\u780A\101"+ "\u780A\000\u780A\000\u780A\000\u780A\000\u700A\u6800\031\u6800\034\u6800\031"+ "\uE800\031\uE800\031\uE800\031\u6800\034\uE800\025\uE800\026\u6800\034\000"+ "\034\u6800\034\u6800\034\000\034\u6800\030\u6800\034\u1800\u042B\u1800\u042B"+ "\u1800\u05AB\u1800\u05AB\u1800\u072B\u1800\u072B\152\034\152\034\151\034\151"+ "\034\u1800\u06CB\u6800\u040B\u6800\u040B\u6800\u040B\u6800\u040B\u6800\u058B"+ "\u6800\u058B\u6800\u058B\u6800\u058B\u6800\u042B\u7800\000\u6800\034\u6800"+ "\u056B\u6800\u056B\u6800\u042B\u6800\u042B\u6800\u06EB\u6800\u06EB\uE800\026"+ "\uE800\025\uE800\026\u6800\031\u6800\034\000\u7004\000\u7005\000\u772A\u6800"+ "\024\u6800\025\u6800\026\u6800\026\u6800\034\000\u740A\000\u740A\000\u740A"+ "\u6800\024\000\u7004\000\u764A\000\u776A\000\u748A\000\u7004\000\u7005\u6800"+ "\030\u4000\u3006\u6800\033\u6800\033\000\u7004\000\u7004\000\u7005\u6800\024"+ "\000\u7005\000\u7005\u6800\u5017\000\u05EB\000\u05EB\000\u042B\000\u042B\u6800"+ "\034\u6800\u048B\u6800\u048B\u6800\u048B\000\034\u6800\u080B\000\023\000\023"+ "\000\022\000\022\u7800\000\u07FD\u7002\u7800\000\u0800\u7005\u4000\u3006\u0800"+ "\u7005\u0800\u7005\u2800\031\u1000\u601A\u6800\034\u6800\030\u6800\024\u6800"+ "\024\u6800\u5017\u6800\u5017\u6800\025\u6800\026\u6800\025\u6800\026\u6800"+ "\030\u6800\030\u6800\025\u6800\u5017\u6800\u5017\u3800\030\u7800\000\u6800"+ "\030\u3800\030\u6800\026\u2800\030\u2800\031\u2800\024\u6800\031\u7800\000"+ "\u6800\030\u2800\u601A\u6800\031\u6800\033\u2800\u601A\u7800\000"; // In all, the character property tables require 15920 bytes. static { charMap = new char[][][] { { {'\u00DF'}, {'\u0053', '\u0053', } }, { {'\u0130'}, {'\u0130', } }, { {'\u0149'}, {'\u02BC', '\u004E', } }, { {'\u01F0'}, {'\u004A', '\u030C', } }, { {'\u0390'}, {'\u0399', '\u0308', '\u0301', } }, { {'\u03B0'}, {'\u03A5', '\u0308', '\u0301', } }, { {'\u0587'}, {'\u0535', '\u0552', } }, { {'\u1E96'}, {'\u0048', '\u0331', } }, { {'\u1E97'}, {'\u0054', '\u0308', } }, { {'\u1E98'}, {'\u0057', '\u030A', } }, { {'\u1E99'}, {'\u0059', '\u030A', } }, { {'\u1E9A'}, {'\u0041', '\u02BE', } }, { {'\u1F50'}, {'\u03A5', '\u0313', } }, { {'\u1F52'}, {'\u03A5', '\u0313', '\u0300', } }, { {'\u1F54'}, {'\u03A5', '\u0313', '\u0301', } }, { {'\u1F56'}, {'\u03A5', '\u0313', '\u0342', } }, { {'\u1F80'}, {'\u1F08', '\u0399', } }, { {'\u1F81'}, {'\u1F09', '\u0399', } }, { {'\u1F82'}, {'\u1F0A', '\u0399', } }, { {'\u1F83'}, {'\u1F0B', '\u0399', } }, { {'\u1F84'}, {'\u1F0C', '\u0399', } }, { {'\u1F85'}, {'\u1F0D', '\u0399', } }, { {'\u1F86'}, {'\u1F0E', '\u0399', } }, { {'\u1F87'}, {'\u1F0F', '\u0399', } }, { {'\u1F88'}, {'\u1F08', '\u0399', } }, { {'\u1F89'}, {'\u1F09', '\u0399', } }, { {'\u1F8A'}, {'\u1F0A', '\u0399', } }, { {'\u1F8B'}, {'\u1F0B', '\u0399', } }, { {'\u1F8C'}, {'\u1F0C', '\u0399', } }, { {'\u1F8D'}, {'\u1F0D', '\u0399', } }, { {'\u1F8E'}, {'\u1F0E', '\u0399', } }, { {'\u1F8F'}, {'\u1F0F', '\u0399', } }, { {'\u1F90'}, {'\u1F28', '\u0399', } }, { {'\u1F91'}, {'\u1F29', '\u0399', } }, { {'\u1F92'}, {'\u1F2A', '\u0399', } }, { {'\u1F93'}, {'\u1F2B', '\u0399', } }, { {'\u1F94'}, {'\u1F2C', '\u0399', } }, { {'\u1F95'}, {'\u1F2D', '\u0399', } }, { {'\u1F96'}, {'\u1F2E', '\u0399', } }, { {'\u1F97'}, {'\u1F2F', '\u0399', } }, { {'\u1F98'}, {'\u1F28', '\u0399', } }, { {'\u1F99'}, {'\u1F29', '\u0399', } }, { {'\u1F9A'}, {'\u1F2A', '\u0399', } }, { {'\u1F9B'}, {'\u1F2B', '\u0399', } }, { {'\u1F9C'}, {'\u1F2C', '\u0399', } }, { {'\u1F9D'}, {'\u1F2D', '\u0399', } }, { {'\u1F9E'}, {'\u1F2E', '\u0399', } }, { {'\u1F9F'}, {'\u1F2F', '\u0399', } }, { {'\u1FA0'}, {'\u1F68', '\u0399', } }, { {'\u1FA1'}, {'\u1F69', '\u0399', } }, { {'\u1FA2'}, {'\u1F6A', '\u0399', } }, { {'\u1FA3'}, {'\u1F6B', '\u0399', } }, { {'\u1FA4'}, {'\u1F6C', '\u0399', } }, { {'\u1FA5'}, {'\u1F6D', '\u0399', } }, { {'\u1FA6'}, {'\u1F6E', '\u0399', } }, { {'\u1FA7'}, {'\u1F6F', '\u0399', } }, { {'\u1FA8'}, {'\u1F68', '\u0399', } }, { {'\u1FA9'}, {'\u1F69', '\u0399', } }, { {'\u1FAA'}, {'\u1F6A', '\u0399', } }, { {'\u1FAB'}, {'\u1F6B', '\u0399', } }, { {'\u1FAC'}, {'\u1F6C', '\u0399', } }, { {'\u1FAD'}, {'\u1F6D', '\u0399', } }, { {'\u1FAE'}, {'\u1F6E', '\u0399', } }, { {'\u1FAF'}, {'\u1F6F', '\u0399', } }, { {'\u1FB2'}, {'\u1FBA', '\u0399', } }, { {'\u1FB3'}, {'\u0391', '\u0399', } }, { {'\u1FB4'}, {'\u0386', '\u0399', } }, { {'\u1FB6'}, {'\u0391', '\u0342', } }, { {'\u1FB7'}, {'\u0391', '\u0342', '\u0399', } }, { {'\u1FBC'}, {'\u0391', '\u0399', } }, { {'\u1FC2'}, {'\u1FCA', '\u0399', } }, { {'\u1FC3'}, {'\u0397', '\u0399', } }, { {'\u1FC4'}, {'\u0389', '\u0399', } }, { {'\u1FC6'}, {'\u0397', '\u0342', } }, { {'\u1FC7'}, {'\u0397', '\u0342', '\u0399', } }, { {'\u1FCC'}, {'\u0397', '\u0399', } }, { {'\u1FD2'}, {'\u0399', '\u0308', '\u0300', } }, { {'\u1FD3'}, {'\u0399', '\u0308', '\u0301', } }, { {'\u1FD6'}, {'\u0399', '\u0342', } }, { {'\u1FD7'}, {'\u0399', '\u0308', '\u0342', } }, { {'\u1FE2'}, {'\u03A5', '\u0308', '\u0300', } }, { {'\u1FE3'}, {'\u03A5', '\u0308', '\u0301', } }, { {'\u1FE4'}, {'\u03A1', '\u0313', } }, { {'\u1FE6'}, {'\u03A5', '\u0342', } }, { {'\u1FE7'}, {'\u03A5', '\u0308', '\u0342', } }, { {'\u1FF2'}, {'\u1FFA', '\u0399', } }, { {'\u1FF3'}, {'\u03A9', '\u0399', } }, { {'\u1FF4'}, {'\u038F', '\u0399', } }, { {'\u1FF6'}, {'\u03A9', '\u0342', } }, { {'\u1FF7'}, {'\u03A9', '\u0342', '\u0399', } }, { {'\u1FFC'}, {'\u03A9', '\u0399', } }, { {'\uFB00'}, {'\u0046', '\u0046', } }, { {'\uFB01'}, {'\u0046', '\u0049', } }, { {'\uFB02'}, {'\u0046', '\u004C', } }, { {'\uFB03'}, {'\u0046', '\u0046', '\u0049', } }, { {'\uFB04'}, {'\u0046', '\u0046', '\u004C', } }, { {'\uFB05'}, {'\u0053', '\u0054', } }, { {'\uFB06'}, {'\u0053', '\u0054', } }, { {'\uFB13'}, {'\u0544', '\u0546', } }, { {'\uFB14'}, {'\u0544', '\u0535', } }, { {'\uFB15'}, {'\u0544', '\u053B', } }, { {'\uFB16'}, {'\u054E', '\u0546', } }, { {'\uFB17'}, {'\u0544', '\u053D', } }, }; { // THIS CODE WAS AUTOMATICALLY CREATED BY GenerateCharacter: char[] data = A_DATA.toCharArray(); assert (data.length == (748 * 2)); int i = 0, j = 0; while (i < (748 * 2)) { int entry = data[i++] << 16; A[j++] = entry | data[i++]; } } } }
[ "massimo.paladin@gmail.com" ]
massimo.paladin@gmail.com
610763f8384841c8cf90445dbaeaa9959b693be5
08bdd164c174d24e69be25bf952322b84573f216
/opencores/client/source/Communicate/src/communicate/MyChoice.java
1062fb11d32220cf776563d73368a7dee3c168ed
[]
no_license
hagyhang/myforthprocessor
1861dcabcf2aeccf0ab49791f510863d97d89a77
210083fe71c39fa5d92f1f1acb62392a7f77aa9e
refs/heads/master
2021-05-28T01:42:50.538428
2014-07-17T14:14:33
2014-07-17T14:14:33
null
0
0
null
null
null
null
ISO-8859-9
Java
false
false
1,628
java
package communicate; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * <p>Überschrift: Choice</p> * <p>Beschreibung: </p> * <p>Copyright: Copyright © 2004-2008 by Gerhard Hohner</p> * <p>Organisation: </p> * @author Gerhard Hohner * @version 1.0 */ public class MyChoice extends JDialog implements ActionListener { static final long serialVersionUID = 1026; JPanel panel1 = new JPanel(); BorderLayout borderLayout1 = new BorderLayout(); JComboBox box; /** * close dialog * @param e ActionEvent */ public void actionPerformed(ActionEvent e) { this.dispose(); this.processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); } /** * get selected text * @return String */ public String getText() { return (String)box.getSelectedItem(); } /** * construct choice * @param frame Frame * @param title String * @param modal boolean * @param item String[] */ public MyChoice(Frame frame, String title, boolean modal, String [] item) { super(frame, title, modal); box = new JComboBox(item); box.addActionListener(this); //box.setPopupVisible(true); box.setVisible(true); box.setBounds(0, 0, 300, 30); box.setBackground(Color.WHITE); panel1.add(box); panel1.setPreferredSize(new Dimension(300, 30)); panel1.setLayout(borderLayout1); getContentPane().add(panel1); pack(); } /** * preselect an item * @param item String */ public void show(String item) { box.setSelectedItem(item); super.setVisible(true); } }
[ "blue@cmd.nu" ]
blue@cmd.nu
1d81ae090c9f245beacaf77bc3c55616b9c74ea7
bb631c88cbb80c32abd74359ad514ec74cf1b90d
/src/main/java/com/concurrent/phase/thread/basic/chapter7/Lock.java
c32b18c2df79ad61b7cf494740213cc57db492d3
[]
no_license
wudi521521/Basic_algorithm
6e5cccb2d1613262fa1ddca5e04f7932e8b4d79c
5cbb0f8af269867467763395c8d7228343af624b
refs/heads/master
2023-08-02T12:03:59.967295
2021-09-30T01:39:42
2021-09-30T01:39:42
375,909,678
0
0
null
null
null
null
UTF-8
Java
false
false
533
java
package com.concurrent.phase.thread.basic.chapter7; import java.util.Collection; /** * @author Dillon Wu * @Description: * @date 2021/8/19 16:23 */ public interface Lock { class TimeOutException extends Exception{ public TimeOutException(String message){ super(message); } } void lock() throws InterruptedException; void lock(long mills) throws InterruptedException ,TimeOutException; void unlock(); Collection<Thread> getBlockedThread(); int getBlocksSize(); }
[ "dillon@163.com" ]
dillon@163.com
bde23b2f040c3bf1bbda402f1c57393387d42bc9
49126d204ded06b6653b7241b486f177a13acaab
/WorkManager/workmanager/src/main/java/com/onceas/descriptor/wm/impl/CountImpl.java
8d86ea3ab119c2c91cb5afb8d227685059bf4f2b
[]
no_license
zhimx1988/ThreadAutoAdjust
8fa718d4ea11e1d6d6b0e209e8525c5c47377c50
20457dcbed0802bb8f6c6d6443b67df145531efa
refs/heads/master
2020-06-25T19:34:24.370812
2017-11-01T06:56:41
2017-11-01T06:56:41
96,983,881
0
2
null
2017-11-30T07:23:54
2017-07-12T08:28:21
Java
ISO-8859-5
Java
false
false
11,283
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.5-b16-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2009.11.26 дк 04:48:36 CST // package com.onceas.descriptor.wm.impl; public class CountImpl extends com.onceas.descriptor.wm.impl.TagStringValueTypeImpl implements com.onceas.descriptor.wm.Count, com.sun.xml.bind.RIElement, com.sun.xml.bind.JAXBObject, com.onceas.descriptor.wm.impl.runtime.UnmarshallableObject, com.onceas.descriptor.wm.impl.runtime.XMLSerializable, com.onceas.descriptor.wm.impl.runtime.ValidatableObject { public final static Class version = (com.onceas.descriptor.wm.impl.JAXBVersion.class); private static com.sun.msv.grammar.Grammar schemaFragment; private final static Class PRIMARY_INTERFACE_CLASS() { return (com.onceas.descriptor.wm.Count.class); } public String ____jaxb_ri____getNamespaceURI() { return "http://www.ios.ac.cn/onceas"; } public String ____jaxb_ri____getLocalName() { return "count"; } public com.onceas.descriptor.wm.impl.runtime.UnmarshallingEventHandler createUnmarshaller(com.onceas.descriptor.wm.impl.runtime.UnmarshallingContext context) { return new Unmarshaller(context); } public void serializeBody(com.onceas.descriptor.wm.impl.runtime.XMLSerializer context) throws org.xml.sax.SAXException { context.startElement("http://www.ios.ac.cn/onceas", "count"); super.serializeURIs(context); context.endNamespaceDecls(); super.serializeAttributes(context); context.endAttributes(); super.serializeBody(context); context.endElement(); } public void serializeAttributes(com.onceas.descriptor.wm.impl.runtime.XMLSerializer context) throws org.xml.sax.SAXException { } public void serializeURIs(com.onceas.descriptor.wm.impl.runtime.XMLSerializer context) throws org.xml.sax.SAXException { } public Class getPrimaryInterface() { return (com.onceas.descriptor.wm.Count.class); } public com.sun.msv.verifier.DocumentDeclaration createRawValidator() { if (schemaFragment == null) { schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize(( "\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000" +"\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv." +"grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000" +"\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun." +"msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj" +"ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra" +"mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp" +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.g" +"rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat" +"ype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000" +"~\u0000\u0004ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\ris" +"AlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000" +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000" +"xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnam" +"espaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0012L\u0000\nwhiteSpacet" +"\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://" +"www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.datatype.x" +"sd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.da" +"tatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv." +"grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bc" +"om.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnam" +"espaceURIq\u0000~\u0000\u0012xpq\u0000~\u0000\u0016q\u0000~\u0000\u0015sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000" +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000" +"\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean" +"\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\nppsr\u0000\"com.sun.msv.datatype.xsd." +"QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000fq\u0000~\u0000\u0015t\u0000\u0005QNamesr\u00005com.sun.msv.datat" +"ype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0018q\u0000~\u0000\u001bsq" +"\u0000~\u0000\u001cq\u0000~\u0000\'q\u0000~\u0000\u0015sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000" +"\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnamespaceURIq\u0000~\u0000\u0012xr\u0000\u001dcom.sun.msv.gra" +"mmar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/" +"XMLSchema-instancesr\u00000com.sun.msv.grammar.Expression$Epsilon" +"Expression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\"\u0001psq\u0000~\u0000+t\u0000\u0005countt\u0000\u001bhttp://w" +"ww.ios.ac.cn/onceassr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000" +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$Cl" +"osedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash" +"\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/" +"grammar/ExpressionPool;xp\u0000\u0000\u0000\u0002\u0001pq\u0000~\u0000\u001fq\u0000~\u0000\tx")); } return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment); } public class Unmarshaller extends com.onceas.descriptor.wm.impl.runtime.AbstractUnmarshallingEventHandlerImpl { public Unmarshaller(com.onceas.descriptor.wm.impl.runtime.UnmarshallingContext context) { super(context, "----"); } protected Unmarshaller(com.onceas.descriptor.wm.impl.runtime.UnmarshallingContext context, int startState) { this(context); state = startState; } public Object owner() { return CountImpl.this; } public void enterElement(String ___uri, String ___local, String ___qname, org.xml.sax.Attributes __atts) throws org.xml.sax.SAXException { int attIdx; outer: while (true) { switch (state) { case 3 : revertToParentFromEnterElement(___uri, ___local, ___qname, __atts); return ; case 0 : if (("count" == ___local)&&("http://www.ios.ac.cn/onceas" == ___uri)) { context.pushAttributes(__atts, true); state = 1; return ; } break; } super.enterElement(___uri, ___local, ___qname, __atts); break; } } public void leaveElement(String ___uri, String ___local, String ___qname) throws org.xml.sax.SAXException { int attIdx; outer: while (true) { switch (state) { case 2 : if (("count" == ___local)&&("http://www.ios.ac.cn/onceas" == ___uri)) { context.popAttributes(); state = 3; return ; } break; case 3 : revertToParentFromLeaveElement(___uri, ___local, ___qname); return ; } super.leaveElement(___uri, ___local, ___qname); break; } } public void enterAttribute(String ___uri, String ___local, String ___qname) throws org.xml.sax.SAXException { int attIdx; outer: while (true) { switch (state) { case 3 : revertToParentFromEnterAttribute(___uri, ___local, ___qname); return ; } super.enterAttribute(___uri, ___local, ___qname); break; } } public void leaveAttribute(String ___uri, String ___local, String ___qname) throws org.xml.sax.SAXException { int attIdx; outer: while (true) { switch (state) { case 3 : revertToParentFromLeaveAttribute(___uri, ___local, ___qname); return ; } super.leaveAttribute(___uri, ___local, ___qname); break; } } public void handleText(final String value) throws org.xml.sax.SAXException { int attIdx; outer: while (true) { try { switch (state) { case 1 : spawnHandlerFromText((((com.onceas.descriptor.wm.impl.TagStringValueTypeImpl)CountImpl.this).new Unmarshaller(context)), 2, value); return ; case 3 : revertToParentFromText(value); return ; } } catch (RuntimeException e) { handleUnexpectedTextException(value, e); } break; } } } }
[ "silenceofdaybreak@gmail.com" ]
silenceofdaybreak@gmail.com
fe7b7ecc2dea5c6a46b6ed58a6a1c2ee3b583dc4
3aa6ef2804f0b7d6e142ba6fbb08a8c847a2950f
/winbeeschools/winbeelabsschool/app/src/main/java/com/winbeelabs/schools/main/MainActivity.java
767a30ec262c3b4e3c38797f7edaed92eb2b1661
[]
no_license
winbeelabs/Android
3ff99e8f9cf50a9f81e3b6e1361babf74ead2ae3
0e0027b34eda3d931af9d5183accb3dd130c23e8
refs/heads/master
2021-01-25T00:56:53.466523
2017-06-20T02:06:44
2017-06-20T02:06:44
94,704,898
0
2
null
null
null
null
UTF-8
Java
false
false
4,767
java
package com.winbeelabs.schools.main; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.FragmentTransaction; import android.support.design.widget.NavigationView; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.widget.LinearLayout; import android.widget.TextView; import com.winbeelabs.schools.R; public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener{ public static String api_key; public static final String TAG = "MainActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SharedPreferences settings = getSharedPreferences(LoginActivity.SESSION_USER, MODE_PRIVATE); //Checks whether a user is logged in, otherwise redirects to the Login screen if (settings == null || settings.getInt("logged_in", 0) == 0 || settings.getString("api_key", "").equals("")) { Intent intent = new Intent(this, LoginActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); finish(); return; } api_key = settings.getString("api_key", ""); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); drawer.setDrawerListener(toggle); toggle.syncState(); NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); navigationView.setNavigationItemSelectedListener(this); LinearLayout navigationHeaderView = (LinearLayout)navigationView.getHeaderView(0); String email = settings.getString("email", ""); String firstname = settings.getString("firstname", ""); String lastname = settings.getString("lastname", ""); TextView profile_name = (TextView) navigationHeaderView.findViewById(R.id.profile_name); TextView profile_email = (TextView) navigationHeaderView.findViewById(R.id.profile_email); profile_email.setText(email); profile_name.setText(firstname + " " + lastname); } @Override public void onBackPressed() { //makes sure the initial empty activity_main screen is not displayed on back pressed if (getSupportFragmentManager().getBackStackEntryCount() == 1) { Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } else { DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); if (drawer.isDrawerOpen(GravityCompat.START)) { drawer.closeDrawer(GravityCompat.START); } else { super.onBackPressed(); } } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement /*if (id == R.id.action_settings) { return true; }*/ return super.onOptionsItemSelected(item); } @SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; } public void onFragmentInteraction(Uri uri){ //you can leave it empty } }
[ "winbeelabs@gmail.com" ]
winbeelabs@gmail.com
d325522c872a4be5d66f9e4f9eb7e13386c2f57d
e7022083553c3a9c67a6c89c6ab100499350fc87
/hybris/bin/custom/b2b/b2bfulfilmentprocess/testsrc/com/b2b/fulfilmentprocess/test/actions/consignmentfulfilment/ConfirmConsignmentPickup.java
a5a6a512e943e45520c7f11f91dfcfdcaf4458f3
[]
no_license
pradeepvinay/b2b
d458ab39cb3ae3ebae219df29c0748d128c3e3b6
6e60129bc08ece7f419ede4b9f3fae99bd79f361
refs/heads/master
2020-06-18T18:24:05.543950
2019-07-15T11:13:12
2019-07-15T11:13:12
196,398,195
0
0
null
2020-04-30T08:55:20
2019-07-11T13:17:00
Java
UTF-8
Java
false
false
244
java
/* * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. */ package com.b2b.fulfilmentprocess.test.actions.consignmentfulfilment; public class ConfirmConsignmentPickup extends AbstractTestConsActionTemp { //empty }
[ "pradeepvinay.uthkuri@knacksystems.com" ]
pradeepvinay.uthkuri@knacksystems.com
6bd4654165b53974b13519d2fe1bc5a62a752d15
11d8a5c827082a14eb29ab3ab8150ca7fa64a1c2
/yayi/src/mybean/data/showyhSearch.java
409bee6692e3728d8d6005725c856a657554bbbb
[]
no_license
qiaoweima/Java-Web-Project
3a16a01a6aab46353670a737f911a265e4a3f17d
1e00cfa462c9db2c2460fd8a484f707dedfb423f
refs/heads/master
2020-11-25T15:35:05.210015
2019-12-18T03:43:36
2019-12-18T03:43:36
228,741,050
0
0
null
null
null
null
GB18030
Java
false
false
4,056
java
package mybean.data; import java.io.UnsupportedEncodingException; import java.sql.*; //import java.sql.rowset.*; //import com.sun.rowset.*; public class showyhSearch { int pageSize = 5; int pageAllCount = 0; int showPage = 1; String name="all"; StringBuffer presentPageResult; //CachedRowSetImpl rowSet; ResultSet rs; String databaseName = "yayi"; String tableName = "userlist"; String user = "root"; String password = "root"; String ziduan[] = new String[100]; int zid = 0; public showyhSearch(){ presentPageResult = new StringBuffer(); try{Class.forName("com.mysql.cj.jdbc.Driver"); } catch(Exception e){} } public void setPageSize(int size){ pageSize = size; zid = 0; String uri = "jdbc:mysql://localhost:3306/"+databaseName+"?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false"; try{ Connection con = DriverManager.getConnection(uri,user,password); DatabaseMetaData metadata = con.getMetaData(); ResultSet rs1 = metadata.getColumns(null,null,tableName,null); int k = 0; while(rs1.next()){ zid++; ziduan[k] = rs1.getString(4); k++; } Statement sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); if(name.equals("all")) rs = sql.executeQuery("select * from "+tableName); else rs = sql.executeQuery("select * from "+tableName+" where username='"+name+"'"); // rowSet = new CachedRowSetImpl(); // rowSet.populate(rs); // con.close(); rs.last(); int m = rs.getRow(); int n = pageSize; pageAllCount = ((m%n)==0)?(m/n):(m/n+1); }catch(Exception e){} } public int getPageSize(){ return pageSize; } public int getPageAllCount(){ return pageAllCount; } public void setShowPage(int n){ showPage = n; } public int getShowPage(){ return showPage; } public void setname(String n){ try { n=new String(n.getBytes("ISO-8859-1"),"UTF-8"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } name = n; // System.out.println(n); } public String getname(){ return name; } public StringBuffer getPresentPageResult(){ if(showPage > pageAllCount) showPage = 1; if(showPage <= 0) showPage = pageAllCount; presentPageResult = show(showPage); return presentPageResult; } public StringBuffer show(int page){ StringBuffer str = new StringBuffer(); str.append("<table class=\"ta\" style=\"text-align:center;font-size:11px\">"); str.append("<tr>"); for(int i = 0;i<zid;i++) str.append("<th>" + ziduan[i] + "</th>"); //str.append("<th>"+"管理员"+"</th>"); //str.append("<th>"+"删除用户"+"</th>"); str.append("</tr>"); try{ rs.absolute((page-1)*pageSize+1); boolean boo = true; for(int i = 1;i<=pageSize&&boo;i++){ str.append("<tr>"); for(int k = 1;k<zid+1;k++){ str.append("<td>"+rs.getString(k)+"</td>"); } //str.append("<td><form action=\"/yayi/jieshou1\" method=\"post\"><input type=hidden name=\"jieshou\" value=\""+rs.getString(1)+","+rs.getString(2)+"\""+"><input type=submit name=\"\" value=\"管理员\" onclick=\"checkjs()\"><input type=hidden name=\"title\" value=\"userlist\"></form></td>"); //str.append("<td><form action=\"/yayi/delete1\" method=\"post\"><input type=hidden name=\"quxiao\" value=\""+rs.getString(1)+","+rs.getString(2)+"\""+"><input type=submit name=\"\" value=\"删除用户\" onclick=\"delcfm()\"><input type=hidden name=\"title\" value=\"userlist\"></form></td>"); str.append("</tr>"); boo = rs.next(); } }catch(Exception e){} str.append("</table>"); return str; } public void setDatabaseName(String s){ databaseName = s.trim(); } public String getDatabaseName(){ return databaseName; } public void setTableName(String s){ tableName = s.trim(); } public String getTableName(){ return tableName; } public void setPassword(String s){ password = s.trim(); } public void setUser(String s){ user = s.trim(); } public String getUser(){ return user; } }
[ "qiaoweima" ]
qiaoweima
46f4c3070ae7390c4cc04c82f57d519769010d7f
00d28ca5c6af52e6d9ce92f894109aaf2128521b
/Flower.java
20d51b784129d731a0fdeef5c5765a6a596db50e
[]
no_license
MichaelCollar/Java-Project-Florist
6bf37929a7bb0f2fe83819a9655ef1e10f5b6fee
183ee2bc9c6c5d8ed66dbfed6b3cee4d2409de73
refs/heads/master
2020-04-09T18:17:03.683636
2018-12-05T12:41:23
2018-12-05T12:41:23
160,507,165
0
0
null
null
null
null
UTF-8
Java
false
false
463
java
public abstract class Flower { int number; // constructor public Flower(int number) { this.number = number; } // abstract methods //getter - number of flowers public abstract int getAmount(); //getter - color of the flowers public abstract String getColor(); //getter - price of the flowers public abstract double getPrice(); //getter - cost of the flowers public abstract double getCost(); // printing public abstract String print(); }
[ "kolnierzakmichal@gmail.com" ]
kolnierzakmichal@gmail.com
b6497552c4a709eb48a5e6ee10e266f442a696d2
977a9f08595913d7ea6f37ba4e0d4085e486a29d
/app/src/main/java/com/ispring/gameplane/service/MusicServer.java
0b3ccc42c222b3e10327aa5e5a768b98f62653bb
[]
no_license
bluehaijin/HaijinGamePlane
a9fcec8accefc6445b39edd0000130c0f3863b63
3554a884a91ca07d20ebec9b6538b388130497d1
refs/heads/master
2023-01-01T00:57:14.689604
2020-10-18T11:13:44
2020-10-18T11:13:44
305,078,887
0
0
null
null
null
null
UTF-8
Java
false
false
914
java
package com.ispring.gameplane.service; import android.app.Service; import android.content.Intent; import android.media.MediaPlayer; import android.os.IBinder; import com.ispring.gameplane.R; public class MusicServer extends Service { private MediaPlayer mediaPlayer; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); if (mediaPlayer == null) { // R.raw.mmp是资源文件,MP3格式的 mediaPlayer = MediaPlayer.create(this, R.raw.beijing); mediaPlayer.setLooping(true); mediaPlayer.start(); } } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); mediaPlayer.stop(); } }
[ "1184577176@qq.com" ]
1184577176@qq.com
22939826daf59c318addca99243655a79606d473
17f8952a0d525e6f070d83746294cb2d784e9f80
/apache/src/main/java/org/gears/apache/Apache.java
1bf63ccf260155b03cd9a7e79f32745d3dddf122
[]
no_license
cevaris/gear-modules
707cda6e2a2940fab90d1ead144269a15c7714c0
8e3a4ee748962e8f0416596ca2708adfe421e308
refs/heads/master
2021-01-11T10:46:24.564258
2013-12-13T03:57:19
2013-12-13T03:57:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
628
java
package org.gears.apache; import org.gears.GearModule; import org.gears.Service; import org.gears.System; public class Apache extends GearModule { @Override public void execute() { switch (getSystem()) { case DEBIAN: install("apache2 libapache2-mod-php5 php5-mcrypt" ); service("apache2", Service.RESTART); break; case RED_HAT: install("httpd"); service("httpd", Service.RESTART); break; } } @Override public String toString() { if(isSystem(System.DEBIAN)){ return "apache2"; } else if(isSystem(System.RED_HAT)){ return "httpd"; } else { return null; } } }
[ "cevaris@gmail.com" ]
cevaris@gmail.com
08eed799786375d0984ce3ab5b644ab7b1c8b51e
833726b22126df692f8ca476c33b33a863d07003
/实验指导书与课件/homework_10_guidebook-master/specs-homework-2-opensource-master/src/main/java/com/oocourse/specs2/models/NodePairException.java
468670960cd934c36651aa36e2dea409f1672bdd
[]
no_license
darewolf-cyber/BUAA_OO
48ad397dbf2911dcc4ff210e6a6e4c28095cb67d
547ae4b8d19a2f83d32c665d67e3a5f805fec5bd
refs/heads/master
2021-02-12T22:35:11.823406
2019-11-21T07:00:23
2019-11-21T07:00:23
244,638,160
7
2
null
2020-03-03T13:05:50
2020-03-03T13:05:49
null
UTF-8
Java
false
false
813
java
package com.oocourse.specs2.models; /** * 点对异常 */ public abstract class NodePairException extends ApplicationModelException { private final int fromNodeId; private final int toNodeId; /** * 构造函数 * * @param message 异常信息 * @param fromNodeId 出发点id * @param toNodeId 目标点id */ NodePairException(String message, int fromNodeId, int toNodeId) { super(message); this.fromNodeId = fromNodeId; this.toNodeId = toNodeId; } /** * 获取出发点id * * @return 出发点id */ public int getFromNodeId() { return fromNodeId; } /** * 获取目标点id * * @return 目标点id */ public int getToNodeId() { return toNodeId; } }
[ "jwjiang_buaa@163.com" ]
jwjiang_buaa@163.com
d92d42708ef0ea47c5872eb592ff794eed4c6b1f
ee92d5e3fb8e62bf4471e8bf02be3ed42f91daf5
/src/main/java/com/xgq/controller/SysRoleController.java
33f9d97ce4e6b5e823817c71331caa9c70beba82
[]
no_license
He-JD/Asset
fb9fd05f56520f57587d57e0dd789325132e5ee6
3d68df4899fbb92e449743fe88725dc11d2e1b70
refs/heads/master
2020-03-30T19:02:54.305249
2019-03-07T03:03:14
2019-03-07T03:03:14
151,525,327
1
0
null
null
null
null
UTF-8
Java
false
false
3,200
java
package com.xgq.controller; import com.xgq.annotation.SysLog; import com.xgq.common.ServerResponse; import com.xgq.entity.SysMenu; import com.xgq.entity.SysRole; import com.xgq.service.ISysMenuService; import com.xgq.service.ISysRoleService; import com.xgq.vo.layui.XgqWebLayuiTableVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; import org.apache.commons.collections.CollectionUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.*; import org.springframework.web.util.WebUtils; import javax.servlet.ServletRequest; import java.util.Map; import java.util.Set; /** * @Auther: HeJD * @Date: 2018/10/6 11:32 * @Description: */ @Api(tags = "角色管理模块") @Controller @RequestMapping("admin/system/") public class SysRoleController { @Autowired private ISysRoleService iSysRoleService; @Autowired private ISysMenuService iSysMenuService; @ApiOperation(value = "跳转角色列表页面") @SysLog("跳转角色列表") @RequiresPermissions("sys:role:list") @GetMapping("role/list") public String list_ftl(){ return "admin/system/role/list"; } @ApiOperation(value = "查询系统角色列表") @SysLog("查询系统角色列表") @GetMapping("role") @ResponseBody public XgqWebLayuiTableVo queryRoleList(@RequestParam(value = "page",defaultValue = "1")Integer page, @RequestParam(value = "limit",defaultValue = "10")Integer limit, ServletRequest request){ Map<String,Object> map= WebUtils.getParametersStartingWith(request,"s_"); return iSysRoleService.findRoleListByMap(page,limit,map); } @ApiOperation(value = "跳转编辑角色页面") @SysLog("跳转编辑角色页面") @RequiresPermissions("sys:role:edit") @GetMapping("role/edit") public String edit_ftl(Integer id, Model model){ SysRole sysRole= iSysRoleService.findSysRoleById(id); StringBuilder menuIds = new StringBuilder(); if(sysRole != null) { Set<SysMenu> menuSet = sysRole.getMenuSet(); if (!CollectionUtils.isEmpty(menuSet)) { for (SysMenu m : menuSet) { menuIds.append(m.getId().toString()).append(","); } } } ServerResponse serverResponse= iSysMenuService.findSysMenuList(); model.addAttribute("role",sysRole); model.addAttribute("menuIds",menuIds.toString()); model.addAttribute("menuList",serverResponse.getData()); return "admin/system/role/edit"; } @ApiOperation(value = "编辑角色信息") @ApiImplicitParam(name = "sysRole",required = true) @SysLog("编辑角色信息") @PutMapping("role") @ResponseBody public ServerResponse editRole(@RequestBody SysRole sysRole){ return iSysRoleService.modifyRole(sysRole); } }
[ "292463946@qq.com" ]
292463946@qq.com
1d46e5b163dd06d1babaf6cbb5e826a3b285c347
ae91a95f9a2109c2f0472dbe5c838b3fb3327bac
/JavaSource/br/com/focus/controller/ControllerContaPagar.java
97841c87da858f11a93be3929813fb2406c6b7a5
[]
no_license
thiagomarsal/jsf-erp-focus-gestao
d2c83c153f5c5285f438533ba2381c9a26759878
2ebe254c9574690414ab1b7aae70a159dccc6b84
refs/heads/main
2023-07-17T14:10:42.777228
2021-09-01T18:53:31
2021-09-01T18:53:31
402,168,733
0
0
null
null
null
null
UTF-8
Java
false
false
2,596
java
/** * Copyright (c) 2008 Thiago M. Farias * All Rights Reserved * * This product is protected by copyright and distributed under * licenses restricting copying, distribution, and decompilation. */ package br.com.focus.controller; import java.util.List; import br.com.focus.bean.ContaPagar; import br.com.focus.facade.Facade; /** * @author Thiago M. Farias * */ public class ControllerContaPagar extends Controller<ContaPagar> { private ContaPagar contaPagar; /** * @constructor of the class. */ public ControllerContaPagar() { // contructor of the superclasse super(new Facade<ContaPagar>(ContaPagar.class)); this.contaPagar = new ContaPagar(); } /** * @return the Object */ public ContaPagar getObject() { return this.contaPagar; } /** * @param Object * the Object to set */ public void setObject(ContaPagar u) { this.contaPagar = u; } /** * @method Save * @param Object * @return Boolean * @throws Exception */ public Boolean saveOrUpdate(ContaPagar u) throws Exception { return this.executeController(Controller.SAVEORUPDATE, u); } /** * @method Update * @param Object * @return Boolean * @throws Exception */ public Boolean update(ContaPagar u) throws Exception { return this.executeController(Controller.UPDATE, u); } /** * @method Delete * @param Object * @return Boolean * @throws Exception */ public Boolean delete(ContaPagar u) throws Exception { return this.executeController(Controller.DELETE, u); } /** * @method List All * @param Object * @return List * @throws Exception */ public List<ContaPagar> listAll() throws Exception { return this.listAllController(); } /** * @method Search by Parameter with Like * @param Object * @return List * @throws Exception */ public List<ContaPagar> searchByParameter(ContaPagar u) throws Exception { return this.searchByParameterController(u); } /** * @method Search by ID * @param Object * @return Object * @throws Exception */ public ContaPagar search(ContaPagar u) throws Exception { if ((u != null) && (u.getIdContaPagar() > 0)) { return this.searchController(u.getIdContaPagar()); } else { throw new Exception("Error in the method search at the class ControllerContasPagar, wrong parameter !!!"); } } }
[ "thiagomarsal.farias@gmail.com" ]
thiagomarsal.farias@gmail.com
60073b5e87e0f910812a2223ec29f78da0341931
a8dc49d4bd13fd05a81acdfc235caf47853d8ba9
/app/src/main/java/com/example/android/rps/MainActivity.java
60fda4ff2948b7115a7010a6e8447c1b4f5e3316
[]
no_license
K-Hanna/rock-paper-scissors-on-Android
83725755b5f670db34d473939881bb0d0de7e13f
4bbe8b9069a88b2d702a3a3c962e4e8477acad69
refs/heads/master
2020-07-24T11:37:34.553266
2019-11-27T22:54:23
2019-11-27T22:54:23
207,910,671
0
0
null
null
null
null
UTF-8
Java
false
false
5,307
java
package com.example.android.rps; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; import org.w3c.dom.Text; public class MainActivity extends AppCompatActivity { private String firstName; private int scorePlayer, scoreComp; IPlay play = new Play(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void submit (View v) { EditText nameField = findViewById(R.id.name); firstName = nameField.getText().toString(); } public void ok(View view){ EditText nameField = findViewById(R.id.name); nameField.setEnabled(false); } private void score_player(){ scorePlayer = play.getPlayer().getPointPlayer(); displayForPlayer(scorePlayer); } private void score_comp(){ scoreComp = play.getComp().getPointComp(); displayForComp(scoreComp); } private void displayForPlayer(int score) { TextView scoreView = findViewById(R.id.score_player); scoreView.setText(String.valueOf(score)); } private void displayForComp(int score) { TextView scoreView = findViewById(R.id.score_comp); scoreView.setText(String.valueOf(score)); } private void displayMove(){ ImageView moveView = findViewById(R.id.move); String move = play.check(); switch (move){ case "Paper wraps rock.": moveView.setImageResource(R.drawable.pk); break; case "Rock crushes scissors.": moveView.setImageResource(R.drawable.kn); break; case "Scissors cut paper.": moveView.setImageResource(R.drawable.np); break; case " ": moveView.setImageResource(R.drawable.none); break; } score_comp(); score_player(); } private void displayMoveComp(){ ImageView moveCompView = findViewById(R.id.move_comp); play.getComp().setMoveComp(); String move = play.getComp().getMoveComp(); switch (move){ case "rock": moveCompView.setImageResource(R.drawable.k); break; case "paper": moveCompView.setImageResource(R.drawable.p); break; case "scissors": moveCompView.setImageResource(R.drawable.n); break; case "": moveCompView.setImageResource(R.drawable.none); break; } } private void resetMoves(){ ImageView moveCompView = findViewById(R.id.move_comp); moveCompView.setImageResource(R.drawable.none); ImageView moveView = findViewById(R.id.move); moveView.setImageResource(R.drawable.none); ImageView movePlayerView = findViewById(R.id.move_player); movePlayerView.setImageResource(R.drawable.none); } public void rock(View view){ ImageView movePlayerView = findViewById(R.id.move_player); movePlayerView.setImageResource(R.drawable.k); play.setPlayer("rock"); displayMoveComp(); displayMove(); } public void paper(View view){ ImageView movePlayerView = findViewById(R.id.move_player); movePlayerView.setImageResource(R.drawable.p); play.setPlayer("paper"); displayMoveComp(); displayMove(); } public void scissors(View view){ ImageView movePlayerView = findViewById(R.id.move_player); movePlayerView.setImageResource(R.drawable.n); play.setPlayer("scissors"); displayMoveComp(); displayMove(); } private void disabledButtons(){ ImageButton rock = findViewById(R.id.rock); rock.setEnabled(false); ImageButton paper = findViewById(R.id.paper); paper.setEnabled(false); ImageButton scissors = findViewById(R.id.scissors); scissors.setEnabled(false); } private void enabledButtons(){ ImageButton rock = findViewById(R.id.rock); rock.setEnabled(true); ImageButton paper = findViewById(R.id.paper); paper.setEnabled(true); ImageButton scissors = findViewById(R.id.scissors); scissors.setEnabled(true); } public void finish(View view){ TextView textView = findViewById(R.id.message); EditText nameField = findViewById(R.id.name); firstName = nameField.getText().toString(); String message = play.message(firstName); textView.setText(message); disabledButtons(); } public void reset(View view){ TextView textView = findViewById(R.id.message); EditText nameField = findViewById(R.id.name); nameField.setEnabled(true); play.getPlayer().setPointPlayer(0); play.getComp().setPointComp(0); score_comp(); score_player(); textView.setText(""); resetMoves(); enabledButtons(); } }
[ "dong_ha@wp.pl" ]
dong_ha@wp.pl
dda40fe91ef055c88aefc34d9a59c62576c099ce
dba87418d2286ce141d81deb947305a0eaf9824f
/sources/com/google/android/gms/internal/clearcut/zzcg.java
ffeb2a072cf9571ee2a27f77ef2f9ec5944a90f0
[]
no_license
Sluckson/copyOavct
1f73f47ce94bb08df44f2ba9f698f2e8589b5cf6
d20597e14411e8607d1d6e93b632d0cd2e8af8cb
refs/heads/main
2023-03-09T12:14:38.824373
2021-02-26T01:38:16
2021-02-26T01:38:16
341,292,450
0
1
null
null
null
null
UTF-8
Java
false
false
15,148
java
package com.google.android.gms.internal.clearcut; import com.google.android.gms.internal.clearcut.zzcg; import com.google.android.gms.internal.clearcut.zzcg.zza; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public abstract class zzcg<MessageType extends zzcg<MessageType, BuilderType>, BuilderType extends zza<MessageType, BuilderType>> extends zzas<MessageType, BuilderType> { private static Map<Object, zzcg<?, ?>> zzjr = new ConcurrentHashMap(); protected zzey zzjp = zzey.zzea(); private int zzjq = -1; public static abstract class zza<MessageType extends zzcg<MessageType, BuilderType>, BuilderType extends zza<MessageType, BuilderType>> extends zzat<MessageType, BuilderType> { private final MessageType zzjs; protected MessageType zzjt; protected boolean zzju = false; protected zza(MessageType messagetype) { this.zzjs = messagetype; this.zzjt = (zzcg) messagetype.zza(zzg.zzkg, (Object) null, (Object) null); } private static void zza(MessageType messagetype, MessageType messagetype2) { zzea.zzcm().zzp(messagetype).zzc(messagetype, messagetype2); } public /* synthetic */ Object clone() throws CloneNotSupportedException { zza zza = (zza) ((zzcg) this.zzjs).zza(zzg.zzkh, (Object) null, (Object) null); zza.zza((zzcg) zzbi()); return zza; } public final boolean isInitialized() { return zzcg.zza(this.zzjt, false); } public final BuilderType zza(MessageType messagetype) { zzbf(); zza(this.zzjt, messagetype); return this; } public final /* synthetic */ zzdo zzbe() { return this.zzjs; } /* access modifiers changed from: protected */ public void zzbf() { if (this.zzju) { MessageType messagetype = (zzcg) this.zzjt.zza(zzg.zzkg, (Object) null, (Object) null); zza(messagetype, this.zzjt); this.zzjt = messagetype; this.zzju = false; } } /* renamed from: zzbg */ public MessageType zzbi() { if (this.zzju) { return this.zzjt; } MessageType messagetype = this.zzjt; zzea.zzcm().zzp(messagetype).zzc(messagetype); this.zzju = true; return this.zzjt; } public final MessageType zzbh() { MessageType messagetype = (zzcg) zzbi(); boolean booleanValue = Boolean.TRUE.booleanValue(); byte byteValue = ((Byte) messagetype.zza(zzg.zzkd, (Object) null, (Object) null)).byteValue(); boolean z = true; if (byteValue != 1) { if (byteValue == 0) { z = false; } else { z = zzea.zzcm().zzp(messagetype).zzo(messagetype); if (booleanValue) { messagetype.zza(zzg.zzke, (Object) z ? messagetype : null, (Object) null); } } } if (z) { return messagetype; } throw new zzew(messagetype); } public final /* synthetic */ zzdo zzbj() { zzcg zzcg = (zzcg) zzbi(); boolean booleanValue = Boolean.TRUE.booleanValue(); byte byteValue = ((Byte) zzcg.zza(zzg.zzkd, (Object) null, (Object) null)).byteValue(); boolean z = true; if (byteValue != 1) { if (byteValue == 0) { z = false; } else { z = zzea.zzcm().zzp(zzcg).zzo(zzcg); if (booleanValue) { zzcg.zza(zzg.zzke, (Object) z ? zzcg : null, (Object) null); } } } if (z) { return zzcg; } throw new zzew(zzcg); } public final /* synthetic */ zzat zzt() { return (zza) clone(); } } public static class zzb<T extends zzcg<T, ?>> extends zzau<T> { private T zzjs; public zzb(T t) { this.zzjs = t; } } public static abstract class zzc<MessageType extends zzd<MessageType, BuilderType>, BuilderType extends zzc<MessageType, BuilderType>> extends zza<MessageType, BuilderType> implements zzdq { protected zzc(MessageType messagetype) { super(messagetype); } /* access modifiers changed from: protected */ public final void zzbf() { if (this.zzju) { super.zzbf(); ((zzd) this.zzjt).zzjv = (zzby) ((zzd) this.zzjt).zzjv.clone(); } } public final /* synthetic */ zzcg zzbg() { return (zzd) zzbi(); } public final /* synthetic */ zzdo zzbi() { zzcg zzbg; if (this.zzju) { zzbg = this.zzjt; } else { ((zzd) this.zzjt).zzjv.zzv(); zzbg = super.zzbi(); } return (zzd) zzbg; } } public static abstract class zzd<MessageType extends zzd<MessageType, BuilderType>, BuilderType extends zzc<MessageType, BuilderType>> extends zzcg<MessageType, BuilderType> implements zzdq { protected zzby<zze> zzjv = zzby.zzar(); } static final class zze implements zzca<zze> { final int number = 66321687; private final zzck<?> zzjw = null; final zzfl zzjx; final boolean zzjy; final boolean zzjz; zze(zzck<?> zzck, int i, zzfl zzfl, boolean z, boolean z2) { this.zzjx = zzfl; this.zzjy = false; this.zzjz = false; } public final /* synthetic */ int compareTo(Object obj) { return this.number - ((zze) obj).number; } public final zzdp zza(zzdp zzdp, zzdo zzdo) { return ((zza) zzdp).zza((zzcg) zzdo); } public final zzdv zza(zzdv zzdv, zzdv zzdv2) { throw new UnsupportedOperationException(); } public final zzfl zzau() { return this.zzjx; } public final zzfq zzav() { return this.zzjx.zzek(); } public final boolean zzaw() { return false; } public final boolean zzax() { return false; } public final int zzc() { return this.number; } } public static class zzf<ContainingType extends zzdo, Type> extends zzbr<ContainingType, Type> { private final Type zzdu; private final ContainingType zzka; private final zzdo zzkb; private final zze zzkc; zzf(ContainingType containingtype, Type type, zzdo zzdo, zze zze, Class cls) { if (containingtype == null) { throw new IllegalArgumentException("Null containingTypeDefaultInstance"); } else if (zze.zzjx == zzfl.MESSAGE && zzdo == null) { throw new IllegalArgumentException("Null messageDefaultInstance"); } else { this.zzka = containingtype; this.zzdu = type; this.zzkb = zzdo; this.zzkc = zze; } } } /* 'enum' modifier removed */ public static final class zzg { public static final int zzkd = 1; public static final int zzke = 2; public static final int zzkf = 3; public static final int zzkg = 4; public static final int zzkh = 5; public static final int zzki = 6; public static final int zzkj = 7; private static final /* synthetic */ int[] zzkk = {zzkd, zzke, zzkf, zzkg, zzkh, zzki, zzkj}; public static final int zzkl = 1; public static final int zzkm = 2; private static final /* synthetic */ int[] zzkn = {zzkl, zzkm}; public static final int zzko = 1; public static final int zzkp = 2; private static final /* synthetic */ int[] zzkq = {zzko, zzkp}; /* renamed from: values$50KLMJ33DTMIUPRFDTJMOP9FE1P6UT3FC9QMCBQ7CLN6ASJ1EHIM8JB5EDPM2PR59HKN8P949LIN8Q3FCHA6UIBEEPNMMP9R0 */ public static int[] m84x126d66cb() { return (int[]) zzkk.clone(); } } public static <ContainingType extends zzdo, Type> zzf<ContainingType, Type> zza(ContainingType containingtype, Type type, zzdo zzdo, zzck<?> zzck, int i, zzfl zzfl, Class cls) { return new zzf(containingtype, type, zzdo, new zze((zzck<?>) null, 66321687, zzfl, false, false), cls); } private static <T extends zzcg<T, ?>> T zza(T t, byte[] bArr) throws zzco { T t2 = (zzcg) t.zza(zzg.zzkg, (Object) null, (Object) null); try { zzea.zzcm().zzp(t2).zza(t2, bArr, 0, bArr.length, new zzay()); zzea.zzcm().zzp(t2).zzc(t2); if (t2.zzex == 0) { return t2; } throw new RuntimeException(); } catch (IOException e) { if (e.getCause() instanceof zzco) { throw ((zzco) e.getCause()); } throw new zzco(e.getMessage()).zzg(t2); } catch (IndexOutOfBoundsException unused) { throw zzco.zzbl().zzg(t2); } } protected static Object zza(zzdo zzdo, String str, Object[] objArr) { return new zzec(zzdo, str, objArr); } static Object zza(Method method, Object obj, Object... objArr) { try { return method.invoke(obj, objArr); } catch (IllegalAccessException e) { throw new RuntimeException("Couldn't use Java reflection to implement protocol message reflection.", e); } catch (InvocationTargetException e2) { Throwable cause = e2.getCause(); if (cause instanceof RuntimeException) { throw ((RuntimeException) cause); } else if (cause instanceof Error) { throw ((Error) cause); } else { throw new RuntimeException("Unexpected exception thrown by generated accessor method.", cause); } } } protected static <T extends zzcg<?, ?>> void zza(Class<T> cls, T t) { zzjr.put(cls, t); } protected static final <T extends zzcg<T, ?>> boolean zza(T t, boolean z) { byte byteValue = ((Byte) t.zza(zzg.zzkd, (Object) null, (Object) null)).byteValue(); if (byteValue == 1) { return true; } if (byteValue == 0) { return false; } return zzea.zzcm().zzp(t).zzo(t); } /* JADX WARNING: type inference failed for: r0v0, types: [com.google.android.gms.internal.clearcut.zzch, com.google.android.gms.internal.clearcut.zzcl] */ protected static zzcl zzaz() { return zzch.zzbk(); } protected static <T extends zzcg<T, ?>> T zzb(T t, byte[] bArr) throws zzco { T zza2 = zza(t, bArr); if (zza2 != null) { boolean booleanValue = Boolean.TRUE.booleanValue(); byte byteValue = ((Byte) zza2.zza(zzg.zzkd, (Object) null, (Object) null)).byteValue(); boolean z = true; if (byteValue != 1) { if (byteValue == 0) { z = false; } else { z = zzea.zzcm().zzp(zza2).zzo(zza2); if (booleanValue) { zza2.zza(zzg.zzke, (Object) z ? zza2 : null, (Object) null); } } } if (!z) { throw new zzco(new zzew(zza2).getMessage()).zzg(zza2); } } return zza2; } /* JADX WARNING: type inference failed for: r0v0, types: [com.google.android.gms.internal.clearcut.zzcm, com.google.android.gms.internal.clearcut.zzdc] */ protected static zzcm zzba() { return zzdc.zzbx(); } protected static <E> zzcn<E> zzbb() { return zzeb.zzcn(); } static <T extends zzcg<?, ?>> T zzc(Class<T> cls) { T t = (zzcg) zzjr.get(cls); if (t == null) { try { Class.forName(cls.getName(), true, cls.getClassLoader()); t = (zzcg) zzjr.get(cls); } catch (ClassNotFoundException e) { throw new IllegalStateException("Class initialization cannot fail.", e); } } if (t != null) { return t; } String valueOf = String.valueOf(cls.getName()); throw new IllegalStateException(valueOf.length() != 0 ? "Unable to get default instance for: ".concat(valueOf) : new String("Unable to get default instance for: ")); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!((zzcg) zza(zzg.zzki, (Object) null, (Object) null)).getClass().isInstance(obj)) { return false; } return zzea.zzcm().zzp(this).equals(this, (zzcg) obj); } public int hashCode() { if (this.zzex != 0) { return this.zzex; } this.zzex = zzea.zzcm().zzp(this).hashCode(this); return this.zzex; } public final boolean isInitialized() { boolean booleanValue = Boolean.TRUE.booleanValue(); byte byteValue = ((Byte) zza(zzg.zzkd, (Object) null, (Object) null)).byteValue(); if (byteValue == 1) { return true; } if (byteValue == 0) { return false; } boolean zzo = zzea.zzcm().zzp(this).zzo(this); if (booleanValue) { zza(zzg.zzke, (Object) zzo ? this : null, (Object) null); } return zzo; } public String toString() { return zzdr.zza(this, super.toString()); } /* access modifiers changed from: protected */ public abstract Object zza(int i, Object obj, Object obj2); public final int zzas() { if (this.zzjq == -1) { this.zzjq = zzea.zzcm().zzp(this).zzm(this); } return this.zzjq; } public final void zzb(zzbn zzbn) throws IOException { zzea.zzcm().zze(getClass()).zza(this, zzbp.zza(zzbn)); } public final /* synthetic */ zzdp zzbc() { zza zza2 = (zza) zza(zzg.zzkh, (Object) null, (Object) null); zza2.zza(this); return zza2; } public final /* synthetic */ zzdp zzbd() { return (zza) zza(zzg.zzkh, (Object) null, (Object) null); } public final /* synthetic */ zzdo zzbe() { return (zzcg) zza(zzg.zzki, (Object) null, (Object) null); } /* access modifiers changed from: package-private */ public final void zzf(int i) { this.zzjq = i; } /* access modifiers changed from: package-private */ public final int zzs() { return this.zzjq; } }
[ "lucksonsurprice94@gmail.com" ]
lucksonsurprice94@gmail.com
e6e2fe5859ed714d54036d2752607cbba7c031d1
fb3908f6ec4af1bf640cdf6b9e97fa8e2bdb8071
/dududu-core-common/src/main/java/cn/org/dududu/core/consts/Codes.java
ddec8e1e8b176a6d6887e38aae5a727c14a9fca0
[]
no_license
Jmedicago/dududu-parent
1927eecd08e54fe7b9058925ff1d289ba27cd098
117bb61b1921c130184d43fa0743d921a8d3e2ae
refs/heads/master
2022-12-22T23:21:55.222592
2019-11-11T11:31:36
2019-11-11T11:31:36
218,810,461
1
0
null
2022-12-16T05:01:37
2019-10-31T16:28:01
Java
UTF-8
Java
false
false
335
java
package cn.org.dududu.core.consts; import cn.org.dududu.core.annotation.Const; /** * 通用消息状态常量 */ public interface Codes { @Const("成功") int SUCCESS = 0; @Const("失败") int FAILED = 1; @Const("未授权") int UN_AUTHORIZE = 2; @Const("非法访问") int ILLEGAL_ACCESS = 3; }
[ "18594283@qq.com" ]
18594283@qq.com
cbbe9e586478c1124235be948cf10d2cacba7cfb
d51ebe48e8bd1d39756dac1d970c3cc944806622
/client/gui/frame/DurakStatusBar.java
73901bbabc2c1a1c74e8df64d3623cef9ae96fbd
[]
no_license
odin-asen/Durak_alt
d3f99efafa13e0ce29dabd31fae16c001512f158
a823a8a8cfebd7ae299214a7b07a491b3c9a4517
refs/heads/master
2016-08-07T11:39:49.262965
2013-02-11T01:28:06
2013-02-11T01:28:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,044
java
package client.gui.frame; import common.i18n.I18nSupport; import common.resources.ResourceGetter; import common.utilities.LoggingUtility; import common.utilities.constants.GameCardConstants; import common.utilities.constants.PlayerConstants; import common.utilities.gui.WidgetCreator; import javax.swing.*; import javax.swing.border.Border; import java.awt.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Locale; import java.util.logging.Logger; import static common.i18n.BundleStrings.*; /** * User: Timm Herrmann * Date: 08.10.12 * Time: 19:37 */ public class DurakStatusBar extends JPanel implements Runnable { private static final Logger LOGGER = LoggingUtility.getLogger(DurakStatusBar.class.getName()); private static final Dimension MINIMUM_DIMENSION = new Dimension(16,16); private static final DateFormat format = new SimpleDateFormat(I18nSupport.getValue(GENERAL_FORMAT, "date"), Locale.getDefault()); private static final Calendar calendar = GregorianCalendar.getInstance(Locale.getDefault()); private static final ImageIcon connectedIcon = ResourceGetter.getStatusIcon("status.connected"); private static final ImageIcon disconnectedIcon = ResourceGetter.getStatusIcon("status.disconnected"); private JPanel besideLabelPanel; private JLabel mainStatusLabel; private JLabel stackStatusLabel; private JLabel playerTypeStatusLabel; private JLabel connectionLabel; private JLabel clockLabel; private boolean running; /* Constructors */ public DurakStatusBar() { mainStatusLabel = new JLabel(); mainStatusLabel.setBorder(WidgetCreator.createStatusBorder()); mainStatusLabel.setMaximumSize(new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); format.setCalendar(calendar); running = true; setLayout(new BorderLayout()); add(mainStatusLabel, BorderLayout.CENTER); add(getBesideLabelPanel(), BorderLayout.LINE_END); /* initialise fields */ setStackStatus(null, 0); setText(""); setConnected(false); setPlayerType(PlayerConstants.PlayerType.DEFAULT); /* start clock */ new Thread(this).start(); } /* Methods */ private JPanel getBesideLabelPanel() { if(besideLabelPanel != null) return besideLabelPanel; final Border border = WidgetCreator.createStatusBorder(); besideLabelPanel = new JPanel(); clockLabel = createStatusLabel(border, null); playerTypeStatusLabel = createStatusLabel(border, I18nSupport.getValue(GUI_COMPONENT, "tooltip.player.type.status")); connectionLabel = createStatusLabel(border, null); stackStatusLabel = createStatusLabel(border, null); besideLabelPanel.setLayout(new BoxLayout(besideLabelPanel, BoxLayout.LINE_AXIS)); besideLabelPanel.add(stackStatusLabel); besideLabelPanel.add(playerTypeStatusLabel); besideLabelPanel.add(connectionLabel); besideLabelPanel.add(clockLabel); return besideLabelPanel; } private JLabel createStatusLabel(Border border, String tooltip) { final JLabel label = new JLabel(); label.setBorder(border); label.setMaximumSize(new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); label.setToolTipText(tooltip); return label; } /** * This method changes the icon of the status label dependent on the boolean. * @param connected Sets the corresponding icon to the value * @param serverAddress Will be set to the tooltip as information */ public void setConnected(boolean connected, String serverAddress) { if(connected) { connectionLabel.setIcon(connectedIcon); connectionLabel.setToolTipText(I18nSupport.getValue(USER_MESSAGES,"status.connected.with.0", serverAddress)); } else { connectionLabel.setIcon(disconnectedIcon); connectionLabel.setToolTipText(I18nSupport.getValue(USER_MESSAGES,"status.disconnected")); } } public void setConnected(boolean connected) { if(connected) { connectionLabel.setIcon(connectedIcon); } else setConnected(false, ""); } public void setPlayerType(PlayerConstants.PlayerType type) { if(type == null) playerTypeStatusLabel.setPreferredSize(MINIMUM_DIMENSION); else { if(!type.getDescription().equals(playerTypeStatusLabel.getText())) { playerTypeStatusLabel.setIcon( ResourceGetter.getPlayerTypeIcon(type, mainStatusLabel.getHeight() - mainStatusLabel.getBorder().getBorderInsets(mainStatusLabel).top*2)); playerTypeStatusLabel.setText(type.getDescription()); playerTypeStatusLabel.setPreferredSize(null); } } } public void setText(String text) { mainStatusLabel.setText(text); } public void setStackStatus(GameCardConstants.CardColour cardColour, int cardCount) { stackStatusLabel.setIcon(cardColour == null ? null : ResourceGetter.getStatusIcon("status.card.suit.0",cardColour.getValue())); stackStatusLabel.setText(cardColour == null ? "" : Integer.toString(cardCount)); stackStatusLabel.setToolTipText(cardColour == null ? I18nSupport.getValue(GUI_COMPONENT, "tooltip.shows.stack.status") : I18nSupport.getValue(GUI_COMPONENT, "tooltip.trump.colour.0.stack.count.0", cardColour.getName(), cardCount)); if(cardColour == null) stackStatusLabel.setPreferredSize(MINIMUM_DIMENSION); else stackStatusLabel.setPreferredSize(null); } private void setTime(long millisSince1970) { calendar.setTimeInMillis(millisSince1970); clockLabel.setText(format.format(calendar.getTime())); } public void run() { long millis = System.currentTimeMillis(); final long waitingTime = 1000L; while(running) { try { this.setTime(millis); Thread.sleep(waitingTime); millis = millis + waitingTime; } catch (InterruptedException e) { LOGGER.info("Error while pausing clock thread: "+e.getMessage()); } } } /* Getter and Setter */ }
[ "chewbacca88@gmx.de" ]
chewbacca88@gmx.de
3d758a68f73d14ad97fadd37d6105c69d96e023d
8e5584f51543d2122fe2c565eb96f4f61aed1af6
/HttpServer/src/com/xiejun/server/demo01/Server04.java
c8fcecbd9acd27065f676fad8c916f35204a93f3
[]
no_license
Wall-Xj/JavaStudy
8bf8c149b75582eca1e52fc06bffbbb06c3bd528
0fe70d8d869b9360b09e9ce27efecd7329d42f8c
refs/heads/master
2021-01-15T22:46:22.591778
2018-03-05T13:23:10
2018-03-05T13:23:10
99,911,643
0
0
null
null
null
null
GB18030
Java
false
false
1,633
java
package com.xiejun.server.demo01; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Date; /** * 创建服务器,并启动 * @author Administrator * */ public class Server04 { ServerSocket server; public static final String CRLF="\r\n"; public static final String BLANK=" "; /** * @param args */ public static void main(String[] args) { Server04 server=new Server04(); server.start(); } /** * 启动方法 */ public void start(){ try { server = new ServerSocket(7777); this.receive(); } catch (IOException e) { e.printStackTrace(); } } /** * 接收客户端 */ private void receive(){ try { Socket client =server.accept(); byte[] data=new byte[20480]; int len =client.getInputStream().read(data); //接收客户端的请求信息 String requestInfo=new String(data,0,len).trim(); System.out.println(requestInfo); //响应 StringBuilder responseContext =new StringBuilder(); responseContext.append("<html><head><title>HTTP响应示例</title>" + "</head><body>Hello bjsxt!</body></html>"); Response rsp=new Response(client.getOutputStream()); rsp.println("<html><head><title>HTTP响应示例</title>"); rsp.println("</head><body>Hello xiejun!</body></html>"); rsp.pushToClient(500); } catch (IOException e) { } } /** * 停止服务器 */ public void stop(){ } }
[ "592942092@qq.com" ]
592942092@qq.com
6c3f43d5527420072c7cbd0709559a4660eb13a2
ae1111549a5ca79eeb70a9c39bf857e4e5a26dd0
/src/main/java/mx/com/solutics/arrow/jpa/VentaServiciosProductos.java
105bf02b3434fb6c9546dc115e4694e05667bdea
[]
no_license
gperaltagil/arrowback
3116eb31602340e7c0c84201d26fb9b98e820ec9
229b5ec2b19b8c30e4c067465e30c38ddd92a122
refs/heads/master
2021-08-30T05:32:58.708953
2017-12-16T07:03:08
2017-12-16T07:03:08
113,274,938
0
0
null
null
null
null
UTF-8
Java
false
false
8,081
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 mx.com.solutics.arrow.jpa; import java.io.Serializable; import java.math.BigDecimal; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.validation.constraints.Size; import javax.xml.bind.annotation.XmlRootElement; /** * * @author Gisel Peralta Gil <gperalta at smartsoftamerica.com.mx> */ @Entity @Table(name = "venta_servicios_productos") @XmlRootElement @NamedQueries({ @NamedQuery(name = "VentaServiciosProductos.findAll", query = "SELECT v FROM VentaServiciosProductos v") , @NamedQuery(name = "VentaServiciosProductos.findById", query = "SELECT v FROM VentaServiciosProductos v WHERE v.id = :id") , @NamedQuery(name = "VentaServiciosProductos.findByTenant", query = "SELECT v FROM VentaServiciosProductos v WHERE v.tenant = :tenant") , @NamedQuery(name = "VentaServiciosProductos.findByActivo", query = "SELECT v FROM VentaServiciosProductos v WHERE v.activo = :activo") , @NamedQuery(name = "VentaServiciosProductos.findByCantidad", query = "SELECT v FROM VentaServiciosProductos v WHERE v.cantidad = :cantidad") , @NamedQuery(name = "VentaServiciosProductos.findByIdProducto", query = "SELECT v FROM VentaServiciosProductos v WHERE v.idProducto = :idProducto") , @NamedQuery(name = "VentaServiciosProductos.findByIdServicio", query = "SELECT v FROM VentaServiciosProductos v WHERE v.idServicio = :idServicio") , @NamedQuery(name = "VentaServiciosProductos.findByPrecioOriginal", query = "SELECT v FROM VentaServiciosProductos v WHERE v.precioOriginal = :precioOriginal") , @NamedQuery(name = "VentaServiciosProductos.findByPrecioUnitario", query = "SELECT v FROM VentaServiciosProductos v WHERE v.precioUnitario = :precioUnitario") , @NamedQuery(name = "VentaServiciosProductos.findByTotal", query = "SELECT v FROM VentaServiciosProductos v WHERE v.total = :total") , @NamedQuery(name = "VentaServiciosProductos.findByVenta", query = "SELECT v FROM VentaServiciosProductos v WHERE v.venta = :venta") , @NamedQuery(name = "VentaServiciosProductos.findByIdPedido", query = "SELECT v FROM VentaServiciosProductos v WHERE v.idPedido = :idPedido") , @NamedQuery(name = "VentaServiciosProductos.findByIdDireccionEntrega", query = "SELECT v FROM VentaServiciosProductos v WHERE v.idDireccionEntrega = :idDireccionEntrega") , @NamedQuery(name = "VentaServiciosProductos.findByEntregado", query = "SELECT v FROM VentaServiciosProductos v WHERE v.entregado = :entregado") , @NamedQuery(name = "VentaServiciosProductos.findByEstatusPago", query = "SELECT v FROM VentaServiciosProductos v WHERE v.estatusPago = :estatusPago") , @NamedQuery(name = "VentaServiciosProductos.findByNotas", query = "SELECT v FROM VentaServiciosProductos v WHERE v.notas = :notas")}) public class VentaServiciosProductos implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "id") private Integer id; @Column(name = "tenant") private Integer tenant; @Column(name = "activo") private Boolean activo; // @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation @Column(name = "cantidad") private BigDecimal cantidad; @Column(name = "id_producto") private Integer idProducto; @Column(name = "id_servicio") private Integer idServicio; @Column(name = "precio_original") private BigDecimal precioOriginal; @Column(name = "precio_unitario") private BigDecimal precioUnitario; @Column(name = "total") private BigDecimal total; @Column(name = "venta") private Integer venta; @Column(name = "id_pedido") private Integer idPedido; @Column(name = "id_direccion_entrega") private Integer idDireccionEntrega; @Column(name = "entregado") private Boolean entregado; @Column(name = "estatus_pago") private Integer estatusPago; @Size(max = 256) @Column(name = "notas") private String notas; public VentaServiciosProductos() { } public VentaServiciosProductos(Integer id) { this.id = id; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getTenant() { return tenant; } public void setTenant(Integer tenant) { this.tenant = tenant; } public Boolean getActivo() { return activo; } public void setActivo(Boolean activo) { this.activo = activo; } public BigDecimal getCantidad() { return cantidad; } public void setCantidad(BigDecimal cantidad) { this.cantidad = cantidad; } public Integer getIdProducto() { return idProducto; } public void setIdProducto(Integer idProducto) { this.idProducto = idProducto; } public Integer getIdServicio() { return idServicio; } public void setIdServicio(Integer idServicio) { this.idServicio = idServicio; } public BigDecimal getPrecioOriginal() { return precioOriginal; } public void setPrecioOriginal(BigDecimal precioOriginal) { this.precioOriginal = precioOriginal; } public BigDecimal getPrecioUnitario() { return precioUnitario; } public void setPrecioUnitario(BigDecimal precioUnitario) { this.precioUnitario = precioUnitario; } public BigDecimal getTotal() { return total; } public void setTotal(BigDecimal total) { this.total = total; } public Integer getVenta() { return venta; } public void setVenta(Integer venta) { this.venta = venta; } public Integer getIdPedido() { return idPedido; } public void setIdPedido(Integer idPedido) { this.idPedido = idPedido; } public Integer getIdDireccionEntrega() { return idDireccionEntrega; } public void setIdDireccionEntrega(Integer idDireccionEntrega) { this.idDireccionEntrega = idDireccionEntrega; } public Boolean getEntregado() { return entregado; } public void setEntregado(Boolean entregado) { this.entregado = entregado; } public Integer getEstatusPago() { return estatusPago; } public void setEstatusPago(Integer estatusPago) { this.estatusPago = estatusPago; } public String getNotas() { return notas; } public void setNotas(String notas) { this.notas = notas; } @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof VentaServiciosProductos)) { return false; } VentaServiciosProductos other = (VentaServiciosProductos) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; } @Override public String toString() { return "mx.com.solutics.arrow.jpa.VentaServiciosProductos[ id=" + id + " ]"; } }
[ "gisel.peralta.gil@gmail.com" ]
gisel.peralta.gil@gmail.com
10593b853c9a0664c7049c01ea527cb31f105bce
922d1030c1c01d0d58788c6b80a36de783cb00b0
/CS445FinalProject/Basic3D.java
9a5ecd28ce69a5e1af77060124457a51dccb383c
[]
no_license
MarkErickson02/Terrain-Generator
9e7c77444d1869b2fd5d8265c269d4f7a4bbad1a
93748590eaf585da50723b5077f6668273c5cb76
refs/heads/master
2021-08-06T19:14:40.919418
2017-11-06T21:23:29
2017-11-06T21:23:29
109,751,186
0
0
null
null
null
null
UTF-8
Java
false
false
2,514
java
/*************************************************************** * file: Basic3D.java * author: Karen Cheung, Mark Erickson, Kevin Kuhlman * class: CS 445 - Computer Graphics * * assignment: Final Program Checkpoint 2 * date last modified: 5/17/2016 * * purpose: This program displays a chunk of cubes with 6 different block types with randomly generated terrain. * ****************************************************************/ package CS445FinalProject; import org.lwjgl.input.Keyboard; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; import static org.lwjgl.opengl.GL11.*; import org.lwjgl.util.glu.GLU; public class Basic3D { private DisplayMode displayMode; private FPCamera fp; // Method: start // Purpose: This method calls the create window and initGL methods to draw the scene. public void start() { try { createWindow(); initGL(); fp = new FPCamera(0.0f,0.0f,0.0f); fp.gameLoop(); } catch (Exception e) { e.printStackTrace(); } } // Method: createWindow // Purpose: This method sets the title and size of the window private void createWindow() throws Exception { Display.setFullscreen(false); DisplayMode d[] = Display.getAvailableDisplayModes(); for (int i = 0; i < d.length; i++) { if (d[i].getWidth() == 640 && d[i].getHeight() == 480 && d[i].getBitsPerPixel() == 32) { displayMode = d[i]; break; } } Display.setDisplayMode(displayMode); Display.setTitle("CS 445 Checkpoint 2"); Display.create(); } // Method: initGL // Purpose: This method sets various options for openGL private void initGL() { glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glMatrixMode(GL_PROJECTION); glLoadIdentity(); GLU.gluPerspective(100.0f, (float) displayMode.getWidth() / (float) displayMode.getHeight(), 0.1f, 300.0f); glMatrixMode(GL_MODELVIEW); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_COLOR_ARRAY); glEnable(GL_DEPTH_TEST); glEnable(GL_TEXTURE_2D); glEnableClientState (GL_TEXTURE_COORD_ARRAY); } // Method: main // Purpose: The start point of the program. public static void main(String[] args) { Basic3D basic = new Basic3D(); basic.start(); } }
[ "Maerickson@cpp.edu" ]
Maerickson@cpp.edu
d685818a6d34075d6f9e796e85313fff9bd10f9a
7c8f35e0db7d969339a0f215dca79f31b88621d4
/itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftCLIServiceWithAllandHttp.java
513a0bfcbd736e7b3366e03cbf9f7c60e6c1489f
[ "Apache-2.0", "JSON", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "GPL-1.0-or-later", "BSD-2-Clause" ]
permissive
Altiscale/hive
184aace26dd6082dd38814734e779520ea4ac0aa
1c0cce46dc53930e11a19b32ef63c27a7543ddfb
refs/heads/branch-2.3.3-alti
2021-01-18T01:53:02.497428
2018-12-06T01:56:30
2018-12-06T01:56:30
28,239,279
0
2
Apache-2.0
2020-08-14T21:30:14
2014-12-19T17:32:41
Java
UTF-8
Java
false
false
2,050
java
package org.apache.hive.service.cli.thrift; import static org.junit.Assert.assertNotNull; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hive.service.Service; import org.apache.hive.service.auth.HiveAuthFactory; import org.junit.AfterClass; import org.junit.BeforeClass; /** * TestThriftHttpCLIService. * This tests ThriftCLIService started in http mode. */ public class TestThriftCLIServiceWithAllandHttp extends ThriftCLIServiceTest { private static String transportMode = "all"; private static String thriftHttpPath = "cliservice"; /** * @throws java.lang.Exception */ @BeforeClass public static void setUpBeforeClass() throws Exception { // Set up the base class ThriftCLIServiceTest.setUpBeforeClass(); assertNotNull(port); assertNotNull(hiveServer2); assertNotNull(hiveConf); hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_SERVER2_ENABLE_DOAS, false); hiveConf.setVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_BIND_HOST, host); hiveConf.setIntVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PORT, port); hiveConf.setVar(HiveConf.ConfVars.HIVE_SERVER2_AUTHENTICATION, HiveAuthFactory.AuthTypes.NOSASL.toString()); hiveConf.setVar(HiveConf.ConfVars.HIVE_SERVER2_TRANSPORT_MODE, transportMode); hiveConf.setVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH, thriftHttpPath); startHiveServer2WithConf(hiveConf); client = getHttpServiceClientInternal(); } /** * @throws java.lang.Exception */ @AfterClass public static void tearDownAfterClass() throws Exception { ThriftCLIServiceTest.tearDownAfterClass(); } static ThriftCLIServiceClient getHttpServiceClientInternal() { for (Service service : hiveServer2.getServices()) { if (service instanceof ThriftBinaryCLIService) { continue; } if (service instanceof ThriftHttpCLIService) { return new ThriftCLIServiceClient((ThriftHttpCLIService) service); } } throw new IllegalStateException("HiveServer2 not running Thrift service"); } }
[ "narendra@altiscale.com" ]
narendra@altiscale.com
dc1c8f7659cf7f86b1799d37c26a03deb413951b
19f7e40c448029530d191a262e5215571382bf9f
/decompiled/instagram/sources/p000X/B9c.java
3c7d1187b4518d0bc8b5c284e9b38619481d8090
[]
no_license
stanvanrooy/decompiled-instagram
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
3091a40af7accf6c0a80b9dda608471d503c4d78
refs/heads/master
2022-12-07T22:31:43.155086
2020-08-26T03:42:04
2020-08-26T03:42:04
283,347,288
18
1
null
null
null
null
UTF-8
Java
false
false
102
java
package p000X; /* renamed from: X.B9c */ public final class B9c extends IllegalArgumentException { }
[ "stan@rooy.works" ]
stan@rooy.works
c0a3a95070de365c91a1d2ffe6bd7a06476ce89b
c47fd8b0674f3812efa7d64c7255e21f268f9a93
/src/com/calvin/games/dao/Dao.java
b1b1a8b763b2ccc7315f7d026fb9546bcb22cc48
[]
no_license
kenkieo/MAME4droid
41e16a1c5d401a73714149771cc2a4b3b8687a4b
7c8c68bc231dfcdd21004d4ff5111fabeb834434
refs/heads/master
2021-05-27T08:53:34.681604
2014-08-10T05:16:08
2014-08-10T05:16:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,758
java
package com.calvin.games.dao; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.calvin.games.bean.DownloadInfoBean; import com.calvin.games.helper.DBHelper; import java.util.ArrayList; import java.util.List; /** * 数据库操作类(单例模式) * Created by calvin on 2014/8/3. */ public class Dao { private static Dao dao=null; private Context context; private Dao(Context context){ this.context=context; } /**获取dao的实例,没有考虑多线程安全问题*/ public static Dao getInstance(Context context){ if(dao==null){ dao=new Dao(context); } return dao; } /**获取一个ReadableDatabase*/ public SQLiteDatabase getReadableDb(){ return new DBHelper(context).getReadableDatabase(); } /**获取一个WritableDatabase*/ public SQLiteDatabase getWritableDb(){ return new DBHelper(context).getWritableDatabase(); } /**向数据库中插入下载信息*/ public synchronized void saveInfos(List<DownloadInfoBean> infos){ SQLiteDatabase database = getWritableDb(); String sql="insert into download_info(thread_id,start_pos, end_pos,compelete_size,url) values (?,?,?,?,?)"; for(DownloadInfoBean info:infos){ Object[] bindArgs={info.getThreadId(),info.getStartPos(),info.getEndPos(),info.getCompeteSize(),info.getUrl()}; database.execSQL(sql,bindArgs); } database.close(); } /** * 查询是否有数据 * @param url 下载url * @return */ public boolean isHasInfos(String url){ SQLiteDatabase db = getReadableDb(); int count=-1; String sql="select count(*) from download_info where url=?"; Cursor cursor = db.rawQuery(sql, new String[]{url}); if(cursor.moveToNext()){ count=cursor.getInt(0); } close(db,cursor); //todo ??? return count==0; } /** * 获取下载具体信息 * @param url * @return */ public synchronized List<DownloadInfoBean> getInfos(String url){ List<DownloadInfoBean> list=new ArrayList<DownloadInfoBean>(); SQLiteDatabase db = getReadableDb(); String sql="select thread_id, start_pos, end_pos,compelete_size,url from download_info where url=?"; Cursor cursor = db.rawQuery(sql, new String[]{url}); while (cursor.moveToNext()){ DownloadInfoBean info = new DownloadInfoBean(cursor.getInt(0), cursor.getInt(1), cursor.getInt(2), cursor.getInt(3), cursor.getString(4)); list.add(info); } close(db,cursor); return list; } /** * 更新下载信息(那个线程url下载到哪个size) * @param threadId * @param completeSize * @param url */ public synchronized void updateInfos(int threadId,int completeSize,String url){ SQLiteDatabase db = getWritableDb(); String sql="update download_info set compelete_size=? where thread_id=? and url=?"; db.execSQL(sql,new Object[]{completeSize,threadId,url}); close(db,null); } /** * 删除下载信息 * @param url */ public synchronized void delete(String url){ SQLiteDatabase db = getWritableDb(); db.delete("download_info","url=?",new String[]{url}); close(db,null); } /** * 关闭db或cursor * @param db * @param cursor */ public static void close(SQLiteDatabase db,Cursor cursor){ if(db!=null) db.close(); if(cursor!=null) cursor.close(); } }
[ "dcz966@163.com" ]
dcz966@163.com
080cabd5b0d5e3d7d2e9da1606e60e3c324846da
7da3b90d79e65ac6600fa289b8443937df1e366c
/src/main/java/uz/pdp/apphemanagement/controller/AuthController.java
febb7a9a35b078f793440840024294f7bcc7fe92
[]
no_license
Hakimbek/app-hr-management
e22177c530dfab68b12044f1e1acb49d3e85c309
3b1ba8aac2e6a3888062e50ce1afff9d6b922c5c
refs/heads/master
2023-04-25T13:52:22.116966
2021-05-06T07:47:49
2021-05-06T07:47:49
363,888,177
0
0
null
null
null
null
UTF-8
Java
false
false
3,043
java
package uz.pdp.apphemanagement.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import uz.pdp.apphemanagement.payload.ApiResponse; import uz.pdp.apphemanagement.payload.LoginDtoDto; import uz.pdp.apphemanagement.payload.RegisterDto; import uz.pdp.apphemanagement.payload.UserEditorDto; import uz.pdp.apphemanagement.service.AuthService; @RestController @RequestMapping("/api/auth") public class AuthController { @Autowired AuthService authService; /** * REGISTER USERS IN THE SYSTEM * * @param registerDto firstName(String), * lastName(String), * email(String), * password(String), * roleId(Integer) * @return ApiResponse in ResponseEntity */ @PostMapping("/register") public ResponseEntity<?> signUp(@RequestBody RegisterDto registerDto) { ApiResponse apiResponse = authService.register(registerDto); return ResponseEntity.status(apiResponse.isSuccess() ? 201 : 409).body(apiResponse); } /** * LOGIN TO SYSTEM * * @param loginDtoDto email(String), * password(String) * @return ApiResponse in ResponseEntity */ @PostMapping("/login") public ResponseEntity<?> signIn(@RequestBody LoginDtoDto loginDtoDto) { ApiResponse apiResponse = authService.login(loginDtoDto); return ResponseEntity.status(apiResponse.isSuccess() ? 200 : 409).body(apiResponse); } /** * VERIFY USER ACCOUNT * * @param emailCode String * @param email String * @param loginDtoDto email(String), * password(String) * @return ApiResponse in ResponseEntity */ @PostMapping("/verifyAccount") public ResponseEntity<?> verify(@RequestParam String emailCode, @RequestParam String email, @RequestBody LoginDtoDto loginDtoDto) { ApiResponse apiResponse = authService.verifyAccount(email, emailCode, loginDtoDto); return ResponseEntity.status(apiResponse.isSuccess() ? 200 : 409).body(apiResponse); } /** * LOGOUT FROM SYSTEM * * @return ApiResponse in ResponseEntity */ @GetMapping("/logout") public ResponseEntity<?> logout() { ApiResponse apiResponse = authService.logout(); return ResponseEntity.status(apiResponse.isSuccess() ? 200 : 409).body(apiResponse); } /** * EDIT USER * * @param userEditorDto firstName(String), * lastName(String), * password(String), * @return ApiResponse in ResponseEntity */ @PutMapping("/edit") public ResponseEntity<?> edit(@RequestBody UserEditorDto userEditorDto) { ApiResponse apiResponse = authService.edit(userEditorDto); return ResponseEntity.status(apiResponse.isSuccess() ? 200 : 409).body(apiResponse); } }
[ "abduhakim.bahramov@gmail.com" ]
abduhakim.bahramov@gmail.com
ac456b679e40df386059dad317efef58e46c9638
cc420b8cd74988f5db565f01cd43778f923a637e
/src/main/java/com/book/pojo/User_role.java
cbd8c1d4c5b435e3a0588b802a90c7a278b92d8a
[]
no_license
jiegeaini/bookManagement
458f225cc2305d377291800988b3383b2f45afd4
b2c86dc976744ef411f75497633e23e3ddbceead
refs/heads/master
2020-05-07T13:16:33.803492
2019-04-10T08:58:21
2019-04-10T08:58:21
180,542,317
0
0
null
null
null
null
UTF-8
Java
false
false
839
java
package com.book.pojo; /** * @author jiege * @explain 管理员与角色关联实体类 * @time 2019/3/15 0:31 */ public class User_role { /**管理员与角色关联id*/ private int id; /**关联的管理员*/ private User user; /**关联的角色*/ private Role role; /** * @return the id */ public int getId() { return id; } /** * @param id the id to set */ public void setId(int id) { this.id = id; } /** * @return the user */ public User getUser() { return user; } /** * @param user the user to set */ public void setUser(User user) { this.user = user; } /** * @return the role */ public Role getRole() { return role; } /** * @param role the role to set */ public void setRole(Role role) { this.role = role; } }
[ "1339333896@qq.com" ]
1339333896@qq.com
ce6bddcd75c479b6d0776564c82c2a69de749b83
bf280efd91443bb87f8748a4a887e782191cbfcf
/fastdfs_file/src/main/java/com/fm/file/util/JacksonUtils.java
ddae2dfb54412ecb7ef399f43b5b60a69d992a34
[]
no_license
shiyun3210/my_technical
e0d4ff57e541c99a3c041656ae6094c02615446c
c32180ff441f94f1c49010aa3b3550cf4a49bf1c
refs/heads/master
2021-09-10T21:53:13.271219
2018-04-03T01:00:50
2018-04-03T01:00:50
73,659,857
0
0
null
null
null
null
UTF-8
Java
false
false
3,250
java
package com.fm.file.util; import java.io.IOException; import java.text.SimpleDateFormat; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonGenerationException; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.util.JSONPObject; /** * Jackson JSON解析器工具类 * @author dell * */ public class JacksonUtils { protected static ObjectMapper mapper = new ObjectMapper(); static { mapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true); mapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true); mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true); } /** * 将Java对象转化为JSON * * @param object Java对象,可以是List<POJO>, POJO[], POJO ,也可以Map名值对, 将被转化为JSON字符串 * @return JSON字符串 */ public static String toJson(Object object) { String json = null; try { json = mapper.writeValueAsString(object); } catch (JsonGenerationException e) { e.printStackTrace(); } catch (JsonMappingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return json; } /** * 将Java对象转化为JSON * * @param object Java对象,可以是List<POJO>, POJO[], POJO ,也可以Map名值对, 将被转化为JSON字符串 * @param callback 回调方法名 * @return JSON字符串 */ public static String toJsonP(Object object, String callback) { String json = null; try { json = mapper.writeValueAsString(new JSONPObject(callback, object)); } catch (JsonGenerationException e) { e.printStackTrace(); } catch (JsonMappingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return json; } /** * 将Java对象转化为JSON * * @param json * @param type * @return JSON字符串 */ public static <T> T toObject(String json, Class<T> type) { T obj = null; try { obj = mapper.readValue(json, type); } catch (JsonParseException e) { e.printStackTrace(); } catch (JsonMappingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return obj; } /** * 将Java对象转化为JSON * * @param json * @param type * @return JSON字符串 */ public static <T> T toObject(String json, TypeReference<T> type) { T obj = null; try { obj = mapper.readValue(json, type); } catch (JsonParseException e) { e.printStackTrace(); } catch (JsonMappingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return obj; } }
[ "309819656@qq.com" ]
309819656@qq.com
5b0de31adbc4a9509dd76242e5e304ea430948e3
99052df6365c830acf2845bf36a01fa8c0950ca0
/mobile_interface_1/src/main/java/zxjt/intfc/entity/common/TestReport.java
261cddfaddc0c7736d5fe5a59e05b6174ed377b2
[]
no_license
killghost/Interface
ceedc9193b34db8a88c86ccab5a1178752110825
295c51f7efb389df045752b3b38439f74d2b0865
refs/heads/master
2020-04-30T20:55:55.461772
2018-06-07T08:15:41
2018-06-07T08:15:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,520
java
package zxjt.intfc.entity.common; import org.bson.types.ObjectId; import org.springframework.data.annotation.Id; import org.springframework.data.annotation.PersistenceConstructor; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "report") public class TestReport { @Id private ObjectId id; private String name; private String starttime; private String endtime; private String reporttime; private String flg; @PersistenceConstructor public TestReport() { super(); } // public TestReport(ObjectId id, String name, String starttime, String endtime, // String reporttime, String flg) { // super(); // this.id = id; // this.name = name; // this.starttime = starttime; // this.endtime = endtime; // this.reporttime = reporttime; // this.flg = flg; // } public ObjectId getId() { return id; } public void setId(ObjectId id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getStarttime() { return starttime; } public void setStarttime(String starttime) { this.starttime = starttime; } public String getEndtime() { return endtime; } public void setEndtime(String endtime) { this.endtime = endtime; } public String getReporttime() { return reporttime; } public void setReporttime(String reporttime) { this.reporttime = reporttime; } public String getFlg() { return flg; } public void setFlg(String flg) { this.flg = flg; } }
[ "liyanru910102@163.com" ]
liyanru910102@163.com
509d6588f855b8a6c9622dcf2355945743f11bed
b87aeec8b09e5036848b8c12d9a77f6779092161
/microcloud-service/src/main/java/cn/enjoy/service/fallback/IZUUlClientServiceallbackFactory.java
ee71895730a8f76d2afdc301592890b0a520b1c4
[]
no_license
guomeifeng/springcloud
9bd033e34182a3c8d34cbff4d9626bcd3681ecb5
2f7eca5871af577562461dbf733b5551773e2da6
refs/heads/master
2022-12-13T16:44:30.953559
2020-09-23T00:30:13
2020-09-23T00:30:13
297,806,439
2
0
null
null
null
null
UTF-8
Java
false
false
1,382
java
package cn.enjoy.service.fallback; import cn.enjoy.service.IProductClientService; import cn.enjoy.service.IZUUlClientService; import cn.enjoy.vo.Product; import cn.enjoy.vo.Users; import feign.hystrix.FallbackFactory; import org.springframework.stereotype.Component; import java.util.List; @Component public class IZUUlClientServiceallbackFactory implements FallbackFactory<IZUUlClientService> { @Override public IZUUlClientService create(Throwable throwable) { return new IZUUlClientService() { @Override public Product getProduct(long id) { Product product = new Product(); product.setProductId(999999L); product.setProductName("feign-zuulName"); product.setProductDesc("feign-zuulDesc"); return product; } @Override public List<Product> listProduct() { return null; } @Override public boolean addPorduct(Product product) { return false; } @Override public Users getUsers(String name) { Users user = new Users(); user.setSex("F"); user.setAge(17); user.setName("zuul-fllback:"+name); return user; } }; } }
[ "kellyguomf@gmail.com" ]
kellyguomf@gmail.com
dc9e4e845e0776e389756d982ffd6b76f9ce8db7
0e98b56875aff3c256dd1c8405825b24f07f278a
/slave/webserver/WebServerImplementService.java
423851c6e489700b5e7b80c37e0fb785f8cc8da4
[]
no_license
min-ia/WebService
ac3e853da3e78856318631e26f8fe878fb7a735f
ecc4a58eee4ba2a1c27626ceb204d812efa54bb0
refs/heads/master
2021-06-19T02:07:52.648390
2017-05-31T14:54:08
2017-05-31T14:54:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,163
java
package webserver; import java.net.MalformedURLException; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; import javax.xml.ws.WebServiceException; import javax.xml.ws.WebServiceFeature; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.4-b01 * Generated source version: 2.2 * */ @WebServiceClient(name = "WebServerImplementService", targetNamespace = "http://webserver/", wsdlLocation = "http://localhost:3000/webserver?wsdl") public class WebServerImplementService extends Service { private final static URL WEBSERVERIMPLEMENTSERVICE_WSDL_LOCATION; private final static WebServiceException WEBSERVERIMPLEMENTSERVICE_EXCEPTION; private final static QName WEBSERVERIMPLEMENTSERVICE_QNAME = new QName("http://webserver/", "WebServerImplementService"); static { URL url = null; WebServiceException e = null; try { url = new URL("http://localhost:3000/webserver?wsdl"); } catch (MalformedURLException ex) { e = new WebServiceException(ex); } WEBSERVERIMPLEMENTSERVICE_WSDL_LOCATION = url; WEBSERVERIMPLEMENTSERVICE_EXCEPTION = e; } public WebServerImplementService() { super(__getWsdlLocation(), WEBSERVERIMPLEMENTSERVICE_QNAME); } public WebServerImplementService(WebServiceFeature... features) { super(__getWsdlLocation(), WEBSERVERIMPLEMENTSERVICE_QNAME, features); } public WebServerImplementService(URL wsdlLocation) { super(wsdlLocation, WEBSERVERIMPLEMENTSERVICE_QNAME); } public WebServerImplementService(URL wsdlLocation, WebServiceFeature... features) { super(wsdlLocation, WEBSERVERIMPLEMENTSERVICE_QNAME, features); } public WebServerImplementService(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public WebServerImplementService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { super(wsdlLocation, serviceName, features); } /** * * @return * returns WebServer */ @WebEndpoint(name = "WebServerImplementPort") public WebServer getWebServerImplementPort() { return super.getPort(new QName("http://webserver/", "WebServerImplementPort"), WebServer.class); } /** * * @param features * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. * @return * returns WebServer */ @WebEndpoint(name = "WebServerImplementPort") public WebServer getWebServerImplementPort(WebServiceFeature... features) { return super.getPort(new QName("http://webserver/", "WebServerImplementPort"), WebServer.class, features); } private static URL __getWsdlLocation() { if (WEBSERVERIMPLEMENTSERVICE_EXCEPTION!= null) { throw WEBSERVERIMPLEMENTSERVICE_EXCEPTION; } return WEBSERVERIMPLEMENTSERVICE_WSDL_LOCATION; } }
[ "mendesiasmin96@gmail.com" ]
mendesiasmin96@gmail.com
2a11fc6958541f68361eea48d2d35f09f7ccb6bf
6635387159b685ab34f9c927b878734bd6040e7e
/src/com/snapchat/videotranscoder/BuildConfig.java
a1bcea57dfaf87ed119e85e6026c5c33f706d796
[]
no_license
RepoForks/com.snapchat.android
987dd3d4a72c2f43bc52f5dea9d55bfb190966e2
6e28a32ad495cf14f87e512dd0be700f5186b4c6
refs/heads/master
2021-05-05T10:36:16.396377
2015-07-16T16:46:26
2015-07-16T16:46:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
526
java
package com.snapchat.videotranscoder; public final class BuildConfig { public static final String APPLICATION_ID = "com.snapchat.videotranscoder"; public static final String BUILD_TYPE = "release"; public static final boolean DEBUG = false; public static final String FLAVOR = ""; public static final int VERSION_CODE = 1; public static final String VERSION_NAME = ""; } /* Location: * Qualified Name: com.snapchat.videotranscoder.BuildConfig * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
c8613dcdd95ba83d57d60a30420d1550bf96bc91
f3161c9bfd79ceaf6ca9393d47e9498112065806
/Server/src/test/java/selenium/seleniumtests/it/ContinueStoryIT.java
1c70b294625b253c9ed1e356c705a83338489c91
[]
no_license
tomleibo/taleit
0de53018b56ebb8b974c89818e11b2d9d098feb4
e7bae1a561a0b44bc887481483930ce0da3a1eb5
refs/heads/master
2021-01-13T09:10:47.090562
2018-09-01T16:38:39
2018-09-01T16:38:39
45,679,921
0
0
null
null
null
null
UTF-8
Java
false
false
1,809
java
package selenium.seleniumtests.it; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import selenium.pageObjects.ContinuePageObject; import selenium.pageObjects.MainPageObject; import selenium.pageObjects.ViewStoryObject; import selenium.seleniumtests.ITBase; /** * Created by sharonk on 6/19/2016 */ public class ContinueStoryIT extends ITBase { private MainPageObject mainPageObject; private ViewStoryObject viewStoryObject; private ContinuePageObject continuePageObject; @Before @Override public void buildup() { super.buildup(); mainPageObject = facade.mainPageObject(); waitFor(TIME_TO_WAIT); createNewStory(); waitFor(TIME_TO_WAIT); viewStoryObject = facade.viewStoryObject(); log("Click On Create Story"); viewStoryObject.createButton().click(); waitFor(TIME_TO_WAIT); continuePageObject = facade.continuePageObject(); } @Test public void noParagraphTitle() { log("Click on 'Set It Free' button"); continuePageObject.setItFree().click(); waitFor(TIME_TO_WAIT); log("Verify paragraph title is required"); Assert.assertTrue(continuePageObject.paragraphTitle().getAttribute("class").contains("ng-invalid-required")); } @Test public void noBodyText() { log("Fill Paragraph Title"); continuePageObject.paragraphTitle().sendKeys(CONTINUE_PARAGRAPH_TITLE); waitFor(TIME_TO_WAIT); log("Click on 'Set It Free' button"); continuePageObject.setItFree().click(); waitFor(TIME_TO_WAIT); log("Verify story title is required"); Assert.assertTrue(continuePageObject.body().getAttribute("class").contains("ng-invalid-required")); } }
[ "sharonk@wix.com" ]
sharonk@wix.com
eda4741f1844728f190bd78c2ca2bc1a2395363f
7d23455fe81ffbb44752a48157fd99a341447ce8
/src/main/java/com/pingansec/StartUp.java
06030d2f2e3016d4481a451ca9f7bca8243d95a3
[]
no_license
JokingLove/data-util
fed1e8fa8739319ff02a501e724c5c0855a84edd
26b18d41d182afb5764dd5379fa7a68ec7441924
refs/heads/master
2020-04-14T11:06:40.181245
2019-01-28T02:48:40
2019-01-28T02:48:40
163,804,756
0
0
null
null
null
null
UTF-8
Java
false
false
335
java
package com.pingansec; import com.google.inject.Guice; import com.pingansec.executor.Executor; import com.pingansec.module.MainModule; public class StartUp { public static void main(String[] args) { Executor executor = Guice.createInjector(new MainModule()) .getInstance(Executor.class); executor.run(); } }
[ "754037025@qq.com" ]
754037025@qq.com
2a581b89270cc8649b363a041006cabfd5df4394
aef803dd94dff4c51ba178718370bc76f29d8aea
/zenvia-fizzbuzz/src/main/java/br/com/zenvia/fizzbuzz/controller/FizzBuzzController.java
f79b1f9b6a3d1fa5346df15575c47bb861c7fe4d
[]
no_license
mvapoa/FizzBuzz
c4dcd0475abff4904ce8e5ca2d88ed0708970baf
90b46af8639ac003e625e3cac85fec838559a89b
refs/heads/master
2020-04-02T06:12:26.108469
2018-10-23T01:06:56
2018-10-23T01:06:56
154,132,465
0
0
null
null
null
null
UTF-8
Java
false
false
685
java
package br.com.zenvia.fizzbuzz.controller; import br.com.zenvia.fizzbuzz.game.FizzBuzzGame; import br.com.zenvia.fizzbuzz.model.Buzz; import br.com.zenvia.fizzbuzz.model.Fizz; public class FizzBuzzController { private int numberFizz; private int numberBuzz; private int length; public FizzBuzzController(int numberFizz, int numberBuzz, int length) { super(); this.numberFizz = numberFizz; this.numberBuzz = numberBuzz; this.length = length; } public String initializer() { Fizz fizz = new Fizz(numberFizz); Buzz buzz = new Buzz(numberBuzz); FizzBuzzGame game = new FizzBuzzGame(fizz, buzz); return game.initialize(length); } }
[ "noreply@github.com" ]
mvapoa.noreply@github.com
0df54743aaf2784b342b3df1a4d29c4575127dc3
6c6c16ef33568ceac7b3a2a3ba9b94e47cdc48a4
/AstariaPvp - Main/src/me/BoyJamal/astaria/listeners/MainEnchanterListener.java
b1fb6af747ac9e05ab8c5297d7332f07a413436f
[]
no_license
zacklacanna/AstraCore
5101c1ddc6ec709338ac0f2ce87f9678f898640a
4aea8caecbdd0728d996a29566ca54bfa7d81556
refs/heads/main
2023-02-25T07:12:24.774066
2021-02-04T00:49:49
2021-02-04T00:49:49
335,796,177
1
0
null
null
null
null
UTF-8
Java
false
false
4,575
java
package me.BoyJamal.astaria.listeners; import java.util.ArrayList; import java.util.List; import org.bukkit.Material; import org.bukkit.Sound; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.scheduler.BukkitRunnable; import me.BoyJamal.astaria.Main; import me.BoyJamal.astaria.utils.MainUtils; import me.BoyJamal.astaria.utils.StorageManager; public class MainEnchanterListener implements Listener { public ItemStack notCorrectItem(String type) { ItemStack item = new ItemStack(Material.BARRIER); ItemMeta im = item.getItemMeta(); im.setDisplayName(MainUtils.chatColor("&c&lIncorrect Item")); List<String> lore = new ArrayList<>(); lore.add(MainUtils.chatColor("&7&oYou can only view")); lore.add(MainUtils.chatColor("&7&othese enchants as you were")); lore.add(MainUtils.chatColor("&7&onot holding the right item!")); lore.add(""); lore.add(MainUtils.chatColor("&c&nCorrect Type:&f " + type)); im.setLore(lore); item.setItemMeta(im); return item; } @EventHandler public void onClick(InventoryClickEvent evt) { Inventory inv = evt.getInventory(); Player p = (Player)evt.getWhoClicked(); if (MainUtils.chatColor(inv.getName()).equalsIgnoreCase(StorageManager.getMainEnchaner(p).getName())) { evt.setCancelled(true); ItemStack clicked = evt.getCurrentItem(); ItemStack inHand = p.getItemInHand(); String type = MainUtils.getItemType(inHand); if (clicked.isSimilar(MainUtils.getArmorItem())) { p.closeInventory(); new BukkitRunnable() { public void run() { EnchanterListener.inEnchanter.add(p); if (type == null || (!(type.equalsIgnoreCase("armor")))) { p.openInventory(StorageManager.getEnchanterGui(notCorrectItem("Armor"), p, "armor")); } else { p.openInventory(StorageManager.getEnchanterGui(p.getItemInHand(), p, "armor")); } p.playSound(p.getLocation(), Sound.NOTE_PLING, 500, 500); } }.runTaskLater(Main.getInstance(), 1); } else if (clicked.isSimilar(MainUtils.getBowItem())) { p.closeInventory(); new BukkitRunnable() { public void run() { EnchanterListener.inEnchanter.add(p); if (type == null || (!(type.equalsIgnoreCase("bow")))) { p.openInventory(StorageManager.getEnchanterGui(notCorrectItem("Bow"), p, "bow")); } else { p.openInventory(StorageManager.getEnchanterGui(p.getItemInHand(), p, "bow")); } p.playSound(p.getLocation(), Sound.NOTE_PLING, 500, 500); } }.runTaskLater(Main.getInstance(), 1); } else if (clicked.isSimilar(MainUtils.getHoeItem())) { p.closeInventory(); new BukkitRunnable() { public void run() { EnchanterListener.inEnchanter.add(p); if (!(MainUtils.isSimilar(inHand, MainUtils.createHarvesterHoe()))) { p.openInventory(StorageManager.getUpgradeGui(notCorrectItem("Harvester Hoe"),"hoe")); } else { p.openInventory(StorageManager.getUpgradeGui(inHand, "hoe")); } p.playSound(p.getLocation(), Sound.NOTE_PLING, 500, 500); } }.runTaskLater(Main.getInstance(), 1); } else if (clicked.isSimilar(MainUtils.getPickaxeItem())) { p.closeInventory(); new BukkitRunnable() { public void run() { EnchanterListener.inEnchanter.add(p); if (type == null || (!(type.equalsIgnoreCase("pickaxe")))) { p.openInventory(StorageManager.getEnchanterGui(notCorrectItem("Pickaxe"), p, "pickaxe")); } else { p.openInventory(StorageManager.getEnchanterGui(p.getItemInHand(), p, "pickaxe")); } p.playSound(p.getLocation(), Sound.NOTE_PLING, 500, 500); } }.runTaskLater(Main.getInstance(), 1); } else if (clicked.isSimilar(MainUtils.getSwordItem())) { p.closeInventory(); new BukkitRunnable() { public void run() { EnchanterListener.inEnchanter.add(p); if (type == null || (!(type.equalsIgnoreCase("weapon")))) { p.openInventory(StorageManager.getEnchanterGui(notCorrectItem("Sword"), p, "weapon")); } else { p.openInventory(StorageManager.getEnchanterGui(p.getItemInHand(), p, "weapon")); } p.playSound(p.getLocation(), Sound.NOTE_PLING, 500, 500); } }.runTaskLater(Main.getInstance(), 1); } else { return; } } } }
[ "noreply@github.com" ]
zacklacanna.noreply@github.com
dd95a12813d35529b89d96b47f77f2f28f54f824
fe1df5f6884e48d42942a05c57bfcab03b5fded3
/Project/MyApplication/app/src/test/java/com/vinacovre/myapplication/ExampleUnitTest.java
0a359a5651b26020f27b4a29dbe12a5470148468
[]
no_license
paceuniversity/CS3892016team2
e7b7daef0dd6b5ae955fb87d6d23ebda8dda7cd0
3763cc0cc98de9fad868c295459328506df759f1
refs/heads/master
2021-01-21T13:33:45.107985
2016-05-04T18:05:37
2016-05-04T18:05:37
52,329,591
1
2
null
2016-05-07T03:59:07
2016-02-23T04:17:28
Java
UTF-8
Java
false
false
320
java
package com.vinacovre.myapplication; 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); } }
[ "mrod9423@gmail.com" ]
mrod9423@gmail.com
3d96942af19ee6bf07d133e0b5adc68264b85a9a
cc42f3fb9463be6ae830287f05886f22e7904af3
/app/src/androidTest/java/com/wyj/basemvp/ExampleInstrumentedTest.java
7161961caa99945ea66213d608c7d0e0547e0fb6
[]
no_license
darkwyj/mvp
708c786ec2bb56ea51ba7c7c67ad59dce5237307
523f58b79408de22d692aa0bd1d36787af7b5185
refs/heads/master
2020-03-25T04:02:14.569716
2018-08-03T06:10:01
2018-08-03T06:10:01
143,374,442
1
0
null
null
null
null
UTF-8
Java
false
false
714
java
package com.wyj.basemvp; 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.*; /** * Instrumented 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() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.wyj.basemvp", appContext.getPackageName()); } }
[ "wyjsecret@163.com" ]
wyjsecret@163.com
022361a06c767e5dc3c4a119a369a3680af66eca
cae8a75fa5910ddaa165edf995c238083a974887
/src/main/java/com/xuwei/controller/BrokerageRuleController.java
e3295f8efb993edc57f234452ba7845026332689
[]
no_license
xuwei12310/myCrm
47f4c9547f50b80efc70ca636c2ef4e70a100f6f
4a6aba54db18c310021966c6a03ee0ab6e04e9c8
refs/heads/master
2020-03-12T01:14:41.569224
2018-04-20T14:06:13
2018-04-20T14:23:22
130,366,432
0
0
null
null
null
null
UTF-8
Java
false
false
5,422
java
package com.xuwei.controller; import java.util.Arrays; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.baomidou.mybatisplus.plugins.Page; import com.xuwei.bean.BrokerageRule; import com.xuwei.service.IBrokerageRuleService; import com.xuwei.util.JSONUtil; import com.xuwei.util.ServiceResult; import com.xuwei.util.StringUtil; /** * @description: 佣金规则控制器 * @copyright: 福建骏华信息有限公司 (c)2017 * @createTime: 2017年09月25日 19:04:18 * @author: caw * @version: 1.0 */ @Controller @RequestMapping("/dict/brokerageRule") public class BrokerageRuleController extends BaseController<BrokerageRule> { @Resource private IBrokerageRuleService brokerageRuleService; public BrokerageRuleController(){ setResourceIdentity("dict:brokerageRule"); } /** * @description: 转向模块主界面 * @createTime: 2017年09月25日 19:04:18 * @author: caw * @param model * @return */ @RequestMapping(value = "main",method = RequestMethod.GET) public String main(Model model){ return defaultViewPrefix(); } /** * * @description: 获取佣金规则第一条数据 * @createTime: 2017年9月25日 下午7:26:57 * @author: caw * @param model * @param request * @return */ @RequestMapping(value = "selectById", method = RequestMethod.POST) @ResponseBody public Object selectById(Model model, HttpServletRequest request) { BrokerageRule brokerageRule = brokerageRuleService.findByLIMITOne(); String[] properties = {"id","ruleOwner","ruleFollow","ruleCsPrincipal","ruleCsAssistant","note"}; String jsonString = JSONUtil.toJson(brokerageRule, properties); return jsonString; } /** * @description: 添加 * @createTime: 2017年09月25日 19:04:18 * @author: caw * @param m * @return */ @RequestMapping(value = "create",method = RequestMethod.POST) @ResponseBody public Object create(BrokerageRule m){ ServiceResult result = new ServiceResult(false); if(!hasCreatePermission()){ result.setMessage("没有添加权限"); }else{ boolean isSuccess = brokerageRuleService.insert(m); result.setIsSuccess(isSuccess); } String jsonString = result.toJSON(); return jsonString; } /** * @description: 修改 * @createTime: 2017年09月25日 19:04:18 * @author: caw * @param m * @return */ @RequestMapping(value = "update",method = RequestMethod.POST) @ResponseBody public Object update(BrokerageRule m){ ServiceResult result = new ServiceResult(false); if(!hasUpdatePermission()){ result.setMessage("没有修改权限"); }else{ boolean isSuccess = brokerageRuleService.updateAllColumnById(m); result.setIsSuccess(isSuccess); } String jsonString = result.toJSON(); return jsonString; } /** * @description: 删除 * @createTime: 2017年09月25日 19:04:18 * @author: caw * @param ids * @return */ @RequestMapping(value = "mulDelete",method = RequestMethod.POST) @ResponseBody public Object mulDelete(String ids){ ServiceResult result = new ServiceResult(false); if(!hasUpdatePermission()){ result.setMessage("没有删除权限"); }else{ try { String[] idArray = StringUtil.split(ids); if(idArray==null||idArray.length==0){ result.setMessage("请选择要删除的数据行"); return result; } boolean isSuccess = brokerageRuleService.deleteBatchIds(Arrays.asList(idArray)); result.setIsSuccess(isSuccess); } catch (Exception e) { if(e instanceof org.springframework.dao.DataIntegrityViolationException){ result.setMessage("数据已被引用不能删除"); }else{ result.setMessage("删除出错:"+e.getMessage()); } } } String jsonString = result.toJSON(); return jsonString; } /** * @description: 分页查询 * @createTime: 2017年09月25日 19:04:18 * @author: caw * @param m * @param rows * @param page * @return */ @ResponseBody @RequestMapping(value = "listByPage") public Object listByPage(BrokerageRule m, int rows, int page){ if(!hasViewPermission()){ return JSONUtil.EMPTYJSON; } Page<BrokerageRule> pageM= new Page<>(page,rows); EntityWrapper<BrokerageRule> ew = new EntityWrapper<>(m); pageM = brokerageRuleService.selectPage(pageM,ew); String[] properties = {"ruleOwner","ruleFollow","ruleCsPrincipal","ruleCsAssistant","id"}; String jsonString = JSONUtil.toJson(pageM.getRecords(), properties,(long) pageM.getTotal()); return jsonString; } }
[ "1061714188@qq.com" ]
1061714188@qq.com
86f915595e2e84eea05ae55cefe184f86a9aa7a6
7deec35d745598be022707d2da275b3501d3ece2
/src/main/java/cn/wjx/sys/mapper/UserMapper.java
1cd2c588f87b6fd0c5027928263b497b84a41124
[]
no_license
JackyWjx/ssm_lease_car
09a494de95f89a370d29d198b3b70fbb864b321e
d529c544e1a9f036e2bac50fc8c786973e06dc25
refs/heads/master
2022-12-26T07:50:11.976368
2019-10-22T07:33:35
2019-10-22T07:58:25
216,745,920
0
0
null
2022-12-16T04:59:56
2019-10-22T07:06:33
JavaScript
UTF-8
Java
false
false
597
java
package cn.wjx.sys.mapper; import cn.wjx.sys.domain.User; import org.apache.ibatis.annotations.Param; import java.util.List; public interface UserMapper { int deleteByPrimaryKey(Integer userid); int insert(User record); int insertSelective(User record); User selectByPrimaryKey(Integer userid); int updateByPrimaryKeySelective(User record); int updateByPrimaryKey(User record); /** * 登陆 */ User login(User user); List<User> queryAllUser(User user); void insertUserRole(@Param("uid") Integer userId,@Param("rid") Integer rid); }
[ "2411329114@qq.com" ]
2411329114@qq.com
fdf481ae32894dbc606996f88f1de97901519a27
e32877d8d4d76eb728c43e2a10ab915972f04983
/huaming/websocket-s/src/main/java/com/huaming/websocket/xml/WebScoketServiceHandler.java
cd527c66f27021cfbbad8d0a3ff04216bfe94add
[]
no_license
yuzhongzhu/SubComps
404184235e7bfa407112fcdf309e267b9b8c2609
2af731c16a96f4be655ff82876ce520ffb19b58f
refs/heads/master
2020-11-29T11:59:56.517451
2017-05-02T09:15:15
2017-05-02T09:15:15
87,496,602
0
0
null
null
null
null
UTF-8
Java
false
false
2,496
java
package com.huaming.websocket.xml; import java.util.ArrayList; import org.apache.log4j.Logger; import org.springframework.stereotype.Component; import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketMessage; import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.handler.TextWebSocketHandler; import com.huaming.websocket.util.WebSocketConstant; @Component("webSocketHandler") public class WebScoketServiceHandler extends TextWebSocketHandler { private static final Logger logger = Logger.getLogger(WebScoketServiceHandler.class); private static final ArrayList<WebSocketSession> users = new ArrayList<WebSocketSession>(); @Override public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception { super.afterConnectionClosed(session, status); logger.info("websocket chat connection closed......"); users.remove(session); } @Override public void afterConnectionEstablished(WebSocketSession session) throws Exception { super.afterConnectionEstablished(session); System.out.println("connect to the websocket success......"); logger.info("connect to the websocket success......"); users.add(session); String userName = (String) session.getAttributes().get(WebSocketConstant.WEBSOCKET_USERNAME); if (userName != null) { // 查询未读消息 session.getAttributes().get(WebSocketConstant.WEBSOCKET_USERNAME); // int count = webSocketService.getUnReadNews((String)); session.sendMessage(new TextMessage("teststa")); } } /** * 接收客户端发送消息并处理 */ @Override protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception { super.handleTextMessage(session, message); logger.info("接收到的客户端信息"+message.getPayload()); session.sendMessage(new TextMessage(message.getPayload())); } @Override public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception { // TODO Auto-generated method stub super.handleMessage(session, message); } @Override public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception { super.handleTransportError(session, exception); if(session.isOpen()){ session.close(); } logger.info("websocket chat connection closed......"); users.remove(session); } }
[ "yuzhongzhu123@gmail.com" ]
yuzhongzhu123@gmail.com
f595368d8aa9cc6c5a265c523cb6cf5d856e9a34
934c95c490f127ec4dd05333c8befe9906d7674c
/request/src/main/java/com/lin/request/core/ApiConfig.java
a9caa538bb41f6d40e9111010d5d12039f49476d
[]
no_license
linbin91/MyApplication
e41aacc9f0db5ed7e95b4c653b244dc97af0701f
bb7e8da2ab7a188899f253255d64dd8cdbc5554c
refs/heads/master
2020-04-22T04:54:19.949887
2019-03-11T09:43:27
2019-03-11T09:58:29
170,139,339
1
0
null
null
null
null
UTF-8
Java
false
false
4,057
java
package com.lin.request.core; import android.content.Context; import android.util.ArrayMap; import com.lin.request.config.SslSocketConfigure; import com.lin.request.utils.AppContextUtils; import java.io.Serializable; public class ApiConfig implements Serializable { private static int mInvalidateToken; private static String mBaseUrl; private static int mDefaultTimeout = 2000; private static int mSucceedCode; private static String mQuitBroadcastReceiverFilter; private static ArrayMap<String, String> mHeads; private static String mToken = ""; private static boolean mOpenHttps; private static SslSocketConfigure mSslSocketConfigure; private static int maxRetry; private ApiConfig(Builder builder) { mInvalidateToken = builder.invalidateToken; mBaseUrl = builder.baseUrl; mDefaultTimeout = builder.defaultTimeout; mSucceedCode = builder.succeedCode; mQuitBroadcastReceiverFilter = builder.broadcastFilter; mHeads = builder.heads; mOpenHttps = builder.openHttps; mSslSocketConfigure = builder.sslSocketConfigure; maxRetry = builder.maxRetry; } public void init(Context appContext) { AppContextUtils.init(appContext); } public static int getInvalidateToken() { return mInvalidateToken; } public static String getBaseUrl() { return mBaseUrl; } public static int getDefaultTimeout() { return mDefaultTimeout; } public static int getSucceedCode() { return mSucceedCode; } public static String getQuitBroadcastReceiverFilter() { return mQuitBroadcastReceiverFilter; } public static ArrayMap<String, String> getHeads() { return mHeads; } public static void setHeads(ArrayMap<String, String> mHeads) { ApiConfig.mHeads = mHeads; } public static String getToken() { return mToken; } public static void setToken(String mToken) { ApiConfig.mToken = mToken; } public static boolean getOpenHttps() { return mOpenHttps; } public static SslSocketConfigure getSslSocketConfigure() { return mSslSocketConfigure; } public static int getMaxRetry(){ return maxRetry; } public static final class Builder { private int invalidateToken; private String baseUrl; private int defaultTimeout; private int succeedCode; private String broadcastFilter; private ArrayMap<String, String> heads; private boolean openHttps = false; private SslSocketConfigure sslSocketConfigure; private int maxRetry; public Builder setHeads(ArrayMap<String, String> heads) { this.heads = heads; return this; } public Builder setFilter(String filter) { this.broadcastFilter = filter; return this; } public Builder setSucceedCode(int succeedCode) { this.succeedCode = succeedCode; return this; } public Builder setBaseUrl(String mBaseUrl) { this.baseUrl = mBaseUrl; return this; } public Builder setInvalidateToken(int invalidateToken) { this.invalidateToken = invalidateToken; return this; } public Builder setDefaultTimeout(int defaultTimeout) { this.defaultTimeout = defaultTimeout; return this; } public Builder setOpenHttps(boolean open) { this.openHttps = open; return this; } public Builder setSslSocketConfigure(SslSocketConfigure sslSocketConfigure) { this.sslSocketConfigure = sslSocketConfigure; return this; } public Builder setMaxRetry(int maxRetry) { this.maxRetry = maxRetry; return this; } public ApiConfig build() { return new ApiConfig(this); } } }
[ "774520452@qq.com" ]
774520452@qq.com
0dbb1d07e6bf32ad8be1c3322bdd04a140cfaee2
754e7f055e56d6eeddfa00b3fff3f9879c3f96f2
/src/main/java/com/teleonome/webapp/forms/AddAllToWhiteListProcessingHandler.java
51449802e4e8d25da9fbb39e890ef708b08c8b71
[]
no_license
arifainchtein/teleonomewebapp
554ad6669aff3f4301c3527c72455bae22fbe787
2061de182705cdc81f5063fd624f3a372e1fe079
refs/heads/master
2023-08-03T10:51:19.412345
2023-07-26T07:08:47
2023-07-26T07:08:47
131,688,542
0
0
null
2023-04-14T17:28:07
2018-05-01T07:45:55
JavaScript
UTF-8
Java
false
false
3,321
java
package com.teleonome.webapp.forms; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.FileUtils; import org.json.JSONArray; import org.json.JSONObject; import com.teleonome.framework.TeleonomeConstants; import com.teleonome.framework.denome.DenomeUtils; import com.teleonome.framework.exception.MissingDenomeException; import com.teleonome.framework.exception.ServletProcessingException; import com.teleonome.framework.exception.TeleonomeValidationException; import com.teleonome.framework.persistence.PostgresqlPersistenceManager; import com.teleonome.framework.utils.Utils; import com.teleonome.webapp.servlet.ProcessingFormHandler; public class AddAllToWhiteListProcessingHandler extends ProcessingFormHandler { public AddAllToWhiteListProcessingHandler(HttpServletRequest req, HttpServletResponse res, ServletContext servletContext) { super(req, res, servletContext); // TODO Auto-generated constructor stub } @Override public void process() throws ServletProcessingException, IOException { // TODO Auto-generated method stub PostgresqlPersistenceManager aDBManager = (PostgresqlPersistenceManager) getServletContext().getAttribute("DBManager"); // String deviceName = request.getParameter("DeviceName"); // String deviceMacAddress = request.getParameter("DeviceMacAddress"); String clientIp = request.getRemoteAddr(); String commandCode = request.getParameter(TeleonomeConstants.COMMAND_CODE); JSONObject payLoadParentJSONObject = new JSONObject(); JSONObject payLoadJSONObject = new JSONObject(); payLoadParentJSONObject.put("Mutation Name","Add All To WhiteList"); payLoadParentJSONObject.put("Payload", payLoadJSONObject); JSONArray updatesArray = new JSONArray(); payLoadJSONObject.put("Updates" , updatesArray); JSONObject updateJSONObject = new JSONObject(); updateJSONObject.put(TeleonomeConstants.MUTATION_PAYLOAD_UPDATE_TARGET,"@On Load:Update DeneWord:Set DeneWord"); String value = "AddAllDevicesToWhiteList"; updateJSONObject.put(TeleonomeConstants.MUTATION_PAYLOAD_VALUE,value); updatesArray.put(updateJSONObject); command="Add All To WhiteList"; boolean restartRequired=false; String payLoad=payLoadParentJSONObject.toString(); String commandCodeType=TeleonomeConstants.TELEONOME_SECURITY_CODE; JSONObject responseJSON = aDBManager.requestCommandToExecute(command, commandCode,commandCodeType,payLoad, clientIp, restartRequired); logger.debug("sent commandCode=" + commandCode + " command=" + command + " response=" + responseJSON.toString(4)); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); out.print(responseJSON.toString()); // logger.debug("AddToWhiteList deviceName=" + deviceName + " " + deviceMacAddress); // boolean b = aDBManager.addDeviceToWhiteList(deviceName, deviceMacAddress); // logger.debug("AddToWhiteList deviceName=" + deviceName + " " + deviceMacAddress + " " + b); // response.setContentType("text/html;charset=UTF-8"); // PrintWriter out = response.getWriter(); // out.print("Ok"); out.flush(); out.close(); } }
[ "ari@digitalgeppetto.com" ]
ari@digitalgeppetto.com
9a0c2ac21de3b59978c0fddfb8d174bf0826ff57
51bf065171e3dcecd79ad3fc37206d99e21c9773
/polymorphism.java/src/com/company/Pig.java
0ab9835d00baab0aaa1fdcab92226d9c1a50d489
[]
no_license
marymafa/Java
9491d66e1b9c2add50294ecec61df8bc1b8918a6
ae86fececfcf7f0a16c06a889e7cfb5f8e7c86ef
refs/heads/master
2020-04-25T08:55:30.360811
2019-05-31T11:13:19
2019-05-31T11:13:19
172,662,640
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package com.company; public class Pig { public void animalSound(){ System.out.println("the pig says: wee wee"); }; }
[ "you@example.com" ]
you@example.com
8d05c697c61ff8750d73f5c0f9e406987753815b
1963063777fe495089a820130ac2d61d852c7839
/problems/0049/Solution.java
2f91fd9fa1b1d5096c2c144efb63bd7e0642de50
[]
no_license
mark1701/leet-code
6c48f69deb4e8a8aa7274ab7ab876cb0656baa45
6ad5b86221f4703ffc16aac5844e73df4e5e4db6
refs/heads/master
2022-01-23T00:06:45.369210
2022-01-10T22:23:53
2022-01-10T22:23:53
243,752,166
0
0
null
null
null
null
UTF-8
Java
false
false
1,234
java
class Solution { public List<List<String>> groupAnagrams(String[] strs) { Map<Integer,List<String>> groups = new HashMap<>(); for(String s : strs){ int l = s.length(); if(!groups.containsKey(l)) groups.put(l, new ArrayList<>()); List<String> list = groups.get(l); list.add(s); } List<List<String>> res = new ArrayList<>(); for(int length : groups.keySet()){ partition(groups.get(length),res); } return res; } private void partition(List<String> strs, List<List<String>> res){ Map<Integer,List<String>> groups = new HashMap<>(); for(String s : strs){ int hc = getCode(s); if(!groups.containsKey(hc)) groups.put(hc, new ArrayList<>()); List<String> list = groups.get(hc); list.add(s); } for(int hc : groups.keySet()){ res.add(groups.get(hc)); } } private int getCode(String str){ char[] arr = str.toCharArray(); Arrays.sort(arr); return (new String(arr)).hashCode(); } }
[ "marco.passuello@gmail.com" ]
marco.passuello@gmail.com
3d9221ae1bb82e5146fe7563906000007b79b6b7
b4242762c88b4e47dd17edc22928471c2ae96dc7
/src/modulos/sisEducar/om/TipoTela.java
1b45ea408599b76bc0518f39eabf2490729378bc
[]
no_license
siseducar/coruja
f69287e2ebe6bba3291402b21815432ece126958
125111b3a848f2cb0261d5c35e9d5d5bb98362d7
refs/heads/master
2021-06-18T08:47:39.522566
2017-06-15T00:02:28
2017-06-15T00:02:28
28,923,895
0
0
null
null
null
null
UTF-8
Java
false
false
335
java
package modulos.sisEducar.om; public class TipoTela { private String nome; private Integer tipo; public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public Integer getTipo() { return tipo; } public void setTipo(Integer tipo) { this.tipo = tipo; } }
[ "tccsiseducar@gmail.com" ]
tccsiseducar@gmail.com
04e0fb8b07842cbd82bed186ae3d368c6c9d3678
1a1e2bf26dafa9af005eb777b2f6d9059548e12d
/helidon-app01/src/main/java/com/distribuida/dto/Posts.java
14daf651c8d523261938793a23f8b869aad96b08
[]
no_license
mikipmax/dbda20
f0a305ae0922b6b266fd24c623b8e5c28be80a2c
cea05005c6b1fa924402086b9a21a282b1a41b41
refs/heads/master
2022-12-30T13:11:31.333058
2020-10-17T04:20:13
2020-10-17T04:20:13
282,066,751
0
0
null
null
null
null
UTF-8
Java
false
false
589
java
package com.distribuida.dto; public class Posts { private int id; private String title; private String body; private int userId; public Posts() { } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getBody() { return body; } public void setBody(String body) { this.body = body; } public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } }
[ "mfponce@uce.edu.ec" ]
mfponce@uce.edu.ec
d4ad7413ece61e9cae12369bcb2d9d986b08e6a8
9b21b909442425ba9f32eb5b6f82d47d2f0fac62
/src/main/java/com/example/demo/controller/BulkController.java
9bf083743c9f89f56ae62656f66f69c02174a693
[]
no_license
giacomozonneveld/progOOPunivpm
4135dc5d7672bbe674da0d9735a807451e6f124b
880b232c4596937d4ba36014e11be06dd23c9277
refs/heads/master
2020-09-13T22:39:05.266300
2019-12-01T10:47:08
2019-12-01T10:47:08
222,926,238
0
0
null
null
null
null
UTF-8
Java
false
false
2,570
java
package com.example.demo.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestController; import com.example.demo.service.BulkService; @RestController @ControllerAdvice public class BulkController{ @Autowired BulkService bulkService; /** * Metodo che mostra tutte le operazioni possibili * @return */ @RequestMapping(value="/", method=RequestMethod.GET) public ResponseEntity<Object> welcome(){ return new ResponseEntity<>(bulkService.welcome(), HttpStatus.OK); } /** * Metodo che restituisce i dati * @return oggetto costituito da vettore di oggetti e HttpStatus.OK */ @RequestMapping(value="/bulks", method=RequestMethod.GET) public ResponseEntity<Object> getBulks(){ return new ResponseEntity<>(bulkService.getBulks(), HttpStatus.OK); } /** * Metodo che restituisce le statistiche * @param columnHeader nome della colonna inserita nel path * @return oggetto costituito da mappa con risultati statistiche e HttpStatus.OK */ @RequestMapping(value="/bulks/statistics/{columnHeader}", method=RequestMethod.GET) public ResponseEntity<Object> getStatistics(@PathVariable("columnHeader") String columnHeader){ ResponseEntity <Object> response= new ResponseEntity<>(bulkService.getStatistics(columnHeader), HttpStatus.OK); if(!response.hasBody()) { throw new AttribNotFoundException(columnHeader); //Eccezione custom } return response; } /** * Classe custom che produce il messaggio personalizzato "Attributo non presente" * @author jackz * */ @ResponseStatus(value=HttpStatus.BAD_REQUEST, reason="Attributo non presente") public class AttribNotFoundException extends RuntimeException{ AttribNotFoundException(String columnHeader){ } } /** * Metodo che restituisce i metadati * @return oggetto costituito da mappa con metadati e HttpStatus.OK * @throws NoSuchFieldException */ @RequestMapping(value="/bulks/metadata", method=RequestMethod.GET) public ResponseEntity<Object> getMetadata() throws NoSuchFieldException{ return new ResponseEntity<>(bulkService.getMetadata(), HttpStatus.OK); } }
[ "57991150+giacomozonneveld@users.noreply.github.com" ]
57991150+giacomozonneveld@users.noreply.github.com
85ecd4c735c7fafc055ced1c93fcab7b83cf07f9
0b9f8738de5ee16d1a05c3658132708fa3968e85
/src/Attack/Fire.java
8125a69c3dc5c37bbec099a3f19dd704aa139446
[]
no_license
jackltx/tank
d166a09311e867ac12de91971bb1bd31258b9094
3f45dd70113478ed713ebe7da48e336ea557beb0
refs/heads/master
2020-04-30T20:47:30.103745
2020-02-15T09:29:09
2020-02-15T09:32:07
177,077,909
0
0
null
null
null
null
UTF-8
Java
false
false
165
java
package Attack; import Environment.Missile; import Environment.MissileInterface; import Tank.Tank; public interface Fire { MissileInterface fire(Tank tank); }
[ "522576467@qq.com" ]
522576467@qq.com
e1ce0fbc2c08990cb51d0d9007c30af02a832f17
06d1eca4fc1ed2a7ae54b120dc09c319b2a5068c
/org.xtext.example.statemachine.tests/src-gen/org/xtext/example/mydsl/tests/MyDslInjectorProvider.java
48a75b1cac5e91c7a044d8d0e36ef8778d9bb1d8
[]
no_license
abirelhalimi/MDE
f52ebb8619b25d731c8dd9df30bc7dd00e5ed3a8
ef3d9d34e43e87c9a5c5239d67b19699cbd97725
refs/heads/master
2022-04-26T05:32:36.429529
2020-05-01T11:30:43
2020-05-01T11:30:43
260,443,179
1
0
null
null
null
null
UTF-8
Java
false
false
1,313
java
/* * generated by Xtext 2.9.2 */ package org.xtext.example.mydsl.tests; import com.google.inject.Injector; import org.eclipse.xtext.junit4.GlobalRegistries; import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento; import org.eclipse.xtext.junit4.IInjectorProvider; import org.eclipse.xtext.junit4.IRegistryConfigurator; import org.xtext.example.mydsl.MyDslStandaloneSetup; public class MyDslInjectorProvider implements IInjectorProvider, IRegistryConfigurator { protected GlobalStateMemento stateBeforeInjectorCreation; protected GlobalStateMemento stateAfterInjectorCreation; protected Injector injector; static { GlobalRegistries.initializeDefaults(); } @Override public Injector getInjector() { if (injector == null) { stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); this.injector = internalCreateInjector(); stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); } return injector; } protected Injector internalCreateInjector() { return new MyDslStandaloneSetup().createInjectorAndDoEMFRegistration(); } @Override public void restoreRegistry() { stateBeforeInjectorCreation.restoreGlobalState(); } @Override public void setupRegistry() { getInjector(); stateAfterInjectorCreation.restoreGlobalState(); } }
[ "45515682+abirelhalimi@users.noreply.github.com" ]
45515682+abirelhalimi@users.noreply.github.com
b5d16a76e90fc132a912de1c5e2d4c873c5f5b68
957f2fca35fd5d57b015f54e24009cea9639da52
/src/Solution/RemoveElement.java
80a5d3e82093b3e2d8a8253b93074dab75bff06b
[]
no_license
heyan4869/LintCode
4a034a4602b9e002dada75bcbd96115f1849240b
13563d76ec6e6f9da152ef396e1a5ae9fd895922
refs/heads/master
2020-04-29T11:08:46.327158
2015-10-27T15:02:36
2015-10-27T15:02:36
40,071,986
0
0
null
null
null
null
UTF-8
Java
false
false
598
java
package Solution; public class RemoveElement { public static int removeElement(int[] A, int elem) { if (A == null || A.length == 0) { return 0; } int head = 0; int tail = A.length - 1; while (head <= tail) { while (tail >= 0 && A[tail] == elem) { tail--; } // check if tail is less than 0 already if (tail < 0) { break; } if (A[head] != elem) { head++; } else { A[head] = A[tail]; A[tail] = elem; } } return head; } public static void main(String[] args) { int[] A = {4, 4, 4, 4}; System.out.println(removeElement(A, 4)); } }
[ "heyan4869@gmail.com" ]
heyan4869@gmail.com
f3ac6fc6c3a48824471dc3443efec5cab83b35fd
4feab933719252b6e5bfbfdb1c95e10d2e54929d
/aric-springboot-samples-tomcat-jsp/src/main/java/com/aric/tomcat/main/App.java
410695c9e8bca31a972ef693cbb2c2ab5f3f72ef
[ "MIT" ]
permissive
iyangming/aric-springboot-samples
b5ce2b9dc9bceb8e7954edcb2850018c8ec8ae1f
d69fa81841a95edc6e5dc64ba119b5d2685bad13
refs/heads/master
2020-03-18T02:57:11.873354
2018-03-18T07:47:51
2018-03-18T07:47:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,400
java
package com.aric.tomcat.main; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.context.web.SpringBootServletInitializer; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; /** * Created by liyuanjun on 16-10-9. */ @Configuration @EnableAutoConfiguration @ComponentScan("com.aric.tomcat") @EnableCaching public class App extends SpringBootServletInitializer { private static Logger logger = LoggerFactory.getLogger(App.class); @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(App.class); } public static void main(String[] args) throws Exception { ApplicationContext application = SpringApplication.run(App.class, args); if (logger.isDebugEnabled()) { String[] beanDefinitionNames = application.getBeanDefinitionNames(); for (String beanName : beanDefinitionNames) { logger.debug(beanName); } } } }
[ "1123431949@qq.com" ]
1123431949@qq.com
a0e51ff0465aae72f46dd0ea999a2121b6d51276
af354cf5083493f31f5444e255716980f06ab5a7
/app/src/main/java/com/ww/android/esclub/vm/views/user/OrderDetailView.java
06c83cb1cdedeedbac7275fca4fd6fec51cb257f
[]
no_license
Comert007/esclub
2daf63b6cd15f225868b2c9a449bc1fa0af7ccfa
17b80105cfad412e3d496703a29bb24b90de35af
refs/heads/master
2021-06-20T14:53:22.688114
2017-06-30T18:04:19
2017-06-30T18:04:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,730
java
package com.ww.android.esclub.vm.views.user; import android.app.Activity; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.LinearLayoutManager; import android.text.TextUtils; import android.view.View; import android.widget.TextView; import com.ww.android.esclub.R; import com.ww.mvp.view.IView; import butterknife.BindView; import butterknife.ButterKnife; import ww.com.core.widget.CustomRecyclerView; /** * Created by feng on 2017/6/26. */ public class OrderDetailView implements IView { private Context context; private String TYPE_WECHAT = "1"; private String TYPE_ALIPAY ="2"; private String STATUS_DEALING = "2"; private String STATUS_COMPLETED = "3"; @BindView(R.id.crv) CustomRecyclerView crv; @BindView(R.id.tv_title_content) TextView tvTitle; @BindView(R.id.tv_total_price) TextView tvTotalPrice; @BindView(R.id.tv_num) TextView tvNum; @BindView(R.id.tv_pay_way) TextView tvPayWay; @BindView(R.id.tv_pay_status) TextView tvPayStatus; @BindView(R.id.tv_address) TextView tvAddress; @BindView(R.id.tv_created) TextView tvCreated; @Override public void onAttach(@NonNull Activity activity, @NonNull View view) { ButterKnife.bind(this,view); context =view.getContext(); LinearLayoutManager manager = new LinearLayoutManager(context); crv.setLayoutManager(manager); crv.setItemAnimator(new DefaultItemAnimator()); } public void setTitle(String title){ tvTitle.setText(title); } public void setTotalPrice(String totalPrice){ tvTotalPrice.setText("¥ "+totalPrice); } public void setNum(String num){ tvNum.setText("x "+num); } public void setPayWay(String way){ if (TextUtils.equals(TYPE_WECHAT,way)){ tvPayWay.setText("微信支付"); }else if (TextUtils.equals(TYPE_ALIPAY,way)){ tvPayWay.setText("支付宝支付"); }else { tvPayWay.setText("积分支付"); } } public void setPayStatus(String status){ if (TextUtils.equals(STATUS_DEALING,status)){ tvPayStatus.setText("处理中"); }else { tvPayStatus.setText("已完结"); } } public void setAddress(String address) { tvAddress.setText(address); } public void setCreated(String created){ tvCreated.setText(created); } public CustomRecyclerView getCrv() { return crv; } @Override public void onResume() { } @Override public void onDestroy() { } }
[ "lipengfeng@windward.com.cn" ]
lipengfeng@windward.com.cn
01c1dfb05785b8cf96f7a0a071b97c76aa44f736
3d8437193429299334519fb3aff9706353ff56ff
/addressbook-selenium-tests/src/com/example/tests/ContactModificationTests.java
a113e1f5962dd5097dc6a8ec12610f7585b5e388
[ "Apache-2.0" ]
permissive
mariabzheza/TrainingJavaForTesters_23
a5257d7e2c8b82de6cb09fdb987b2e35fc61e63f
199e508170c354665481e86b310f4cdaeba05ce1
refs/heads/master
2021-01-01T18:29:07.547068
2015-09-02T14:04:13
2015-09-02T14:04:13
34,129,235
0
0
null
null
null
null
WINDOWS-1251
Java
false
false
2,225
java
package com.example.tests; import static org.junit.Assert.assertThat; import static org.hamcrest.Matchers.*; //import java.util.Collections; import java.util.Random; import org.testng.annotations.Test; import com.example.utils.SortedListOf; import static com.example.fw.ContactHelper.MODIFICATION; public class ContactModificationTests extends TestBase{ @Test(dataProvider = "randomValidContactGenerator") public void modifySomeContact(ContactData contact) throws Exception { // save old state //SortedListOf<ContactData> oldList = app.getContactHelper().getUiContacts(); SortedListOf<ContactData> oldList = new SortedListOf<ContactData>(app.getModel().getContacts()); // Предусловие для выполнения теста: сущевствует хотя-бы один контакт!!! Random rnd = new Random(); int index = rnd.nextInt(oldList.size()-1); // actions app.getContactHelper().modifyContact(index, contact, MODIFICATION); // save new state //SortedListOf<ContactData> newList = app.getContactHelper().getUiContacts(); SortedListOf<ContactData> newList = app.getModel().getContacts(); // compare old and new states assertThat(newList, equalTo(oldList.without(index).withAdded(contact))); // compare model to implementation // таким способом можна управлять сложностью м частотой проверок if (wantToCheck()) { //check.db параметр берём из файла application.properties if ("yes".equals(app.getProperty("check.db"))) { // сравниваем модель с тем, что видим в базе данных assertThat(app.getModel().getContacts(), equalTo(app.getHibernateHelper().listContacts())); } //check.ui параметр берём из файла application.properties if ("yes".equals(app.getProperty("check.ui"))) { // сравниваем модель с тем, что видим в UI assertThat(app.getModel().getContacts(), equalTo(app.getContactHelper().getUiContacts())); } } } }
[ "maria.bzheza@gmail.com" ]
maria.bzheza@gmail.com
80ab8c76a50710551952e977371bfaf4d048453c
6047450cb92a2b88a9b942b42070975c882e9e42
/src/main/java/lt/lb/fastid/FastID.java
421299265b282437db35158c8f0ecf071950bb34
[]
no_license
laim0nas100/FastID
afcf23237c264d739ad4e7e0a738ef522d3f83a4
b47fa473ac6bdb82f2bb764a3b9ee7ee6e2ad5fc
refs/heads/master
2023-02-05T03:55:33.502055
2020-12-30T12:39:55
2020-12-30T12:39:55
325,538,140
0
0
null
null
null
null
UTF-8
Java
false
false
2,870
java
package lt.lb.fastid; /** * * Fast, counter-based, sequential (in a thread context), sortable, thread-safe * id for disposable object marking. * * @author laim0nas100 */ public class FastID implements Comparable<FastID> { private static final ThreadLocal<FastIDGen> threadGlobal = ThreadLocal.withInitial(() -> new FastIDGen()); /** * Each thread can get a global generator and use it to make some id's. * * @return */ public static FastID getAndIncrementGlobal() { return threadGlobal.get().getAndIncrement(); } /** * Create new FastIDGen. * @return */ public static FastIDGen getNewGenerator() { return new FastIDGen(); } private final long mark; private final long threadId; private final long num; public FastID(long mark, long threadId, long num) { this.mark = mark; this.threadId = threadId; this.num = num; } public static final String MARKER = "M"; public static final String THREAD_ID = "T"; public static final String NUMBER = "N"; public FastID(String str) { int N = str.indexOf(NUMBER); int T = str.indexOf(THREAD_ID); int M = str.indexOf(MARKER); this.mark = Long.parseLong(str.substring(M + 1)); this.threadId = Long.parseLong(str.substring(T + 1, M)); this.num = Long.parseLong(str.substring(N + 1, T)); } @Override public String toString() { return NUMBER + num + THREAD_ID + threadId + MARKER + mark; } /** * The mark that the FastIDGen had while generating this id. * @return */ public long getMark() { return mark; } @Override public int hashCode() { int hash = 5; hash = 37 * hash + (int) (this.mark ^ (this.mark >>> 32)); hash = 37 * hash + (int) (this.threadId ^ (this.threadId >>> 32)); hash = 37 * hash + (int) (this.num ^ (this.num >>> 32)); return hash; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final FastID other = (FastID) obj; if (this.num != other.num) { return false; } if (this.threadId != other.threadId) { return false; } return this.mark == other.mark; } @Override public int compareTo(FastID o) { if (this.threadId == o.threadId && this.mark == o.mark) { return Long.compare(num, o.num); } return 0; } public static int compare(FastID a, FastID b) { if (a == null || b == null) { return 0; } return a.compareTo(b); } }
[ "aciukadsiunciate@gmail.com" ]
aciukadsiunciate@gmail.com
fba91b4b25d7b2addb263cb058a996b5477bbe6d
052b7301f95ad419dcc04add139235913fa83d7e
/03_clonevscopy/src/main/java/com/github/arnaudroger/ArrayIntCopyVsCloneBenchmark.java
8a13b63929e8fed2aab7691914530f87691f70ab
[ "MIT" ]
permissive
zpencer/blog_samples
e5ab066271997b63c813cd646adfdb18f601d18a
b4c6b5acc5e10f8007595d4b001b9c9face4812c
refs/heads/master
2020-03-27T16:54:37.651734
2018-05-29T12:35:05
2018-05-29T12:35:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,765
java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * 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 Oracle 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 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 com.github.arnaudroger; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.CompilerControl; import org.openjdk.jmh.annotations.Param; import org.openjdk.jmh.annotations.Scope; import org.openjdk.jmh.annotations.Setup; import org.openjdk.jmh.annotations.State; import java.util.Arrays; import java.util.Random; @State(Scope.Benchmark) public class ArrayIntCopyVsCloneBenchmark { @Param({"10", "1000", "1000000"}) int size; int[] original; @Setup public void setUp() { original = new int[size]; Random r = new Random(); for(int i = 0; i < original.length; i++) { original[i] = r.nextInt(); } } @Benchmark @CompilerControl(CompilerControl.Mode.DONT_INLINE) public int[] testCopy() { return Arrays.copyOf(original, size); } @Benchmark @CompilerControl(CompilerControl.Mode.DONT_INLINE) public int[] testCopyFixed() { return Arrays.copyOf(original, original.length); } @Benchmark @CompilerControl(CompilerControl.Mode.DONT_INLINE) public int[] testClone() { return original.clone(); } }
[ "arnaud.roger@gmail.com" ]
arnaud.roger@gmail.com
3d310fef41cb222160b8953dea561373104ab780
f684291fbf2561b184e92f27b30f6a18379a4c75
/src/main/java/my/spring/project/AppConfig.java
3ae2da46e6e5cf3dc9e9855528959d05124c550a
[]
no_license
KateLis/toEugene
307e7d4f028ddc91c9015f3a4051eb672f738781
10f502e3d861568d60dfce5aca822cd9364db1b9
refs/heads/master
2023-06-25T17:51:55.044656
2021-07-22T20:03:13
2021-07-22T20:03:13
388,577,034
0
0
null
null
null
null
UTF-8
Java
false
false
297
java
package my.spring.project; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @Configuration @ComponentScan(basePackages = "my.spring.project") public class AppConfig { }
[ "Ekaterina.Zakusova@emc.com" ]
Ekaterina.Zakusova@emc.com
aa0903240f1fdc35475e00c37af183dae0e74e40
d7c0899b1efb3aefced18d34815dfda69b321884
/src/com/mk/springdemo/BaseballCoach.java
967b7bee249cc4e13e8d570bcdef5322a8b37291
[]
no_license
isafesoft/java-spring-ioc
6b746e95cc207fd4047e4114bea619b07921d36b
3dc5d7953dc2a7e2fbdc7aa0d1fc617891b84d61
refs/heads/master
2020-04-10T23:53:16.694752
2018-12-11T17:11:40
2018-12-11T17:11:40
161,367,771
0
0
null
null
null
null
UTF-8
Java
false
false
188
java
package com.mk.springdemo; public class BaseballCoach implements Coach{ @Override public String getDailyWorkout() { return "Spend 30 minutes on batting practice"; } }
[ "isafesoft@hotmail.com" ]
isafesoft@hotmail.com
2f03c446a0c939936e0496cd9e3f31373a70ae34
8d39dfe769089505c720638c7c13e736883709f8
/APP/app/src/main/java/com/example/icardemo/Retrofit/RetrofitClient.java
cc8a1a43675b57d93a122eec34c79700c3eb165d
[]
no_license
vanthuan9699/ICARAPP
7181b8d019ca083bbca92952b61a296d8e124dd2
b247c2a144148499380ae892cc5fe56939dcb832
refs/heads/master
2020-06-28T08:56:10.493794
2019-08-16T07:28:33
2019-08-16T07:28:33
200,193,205
0
0
null
null
null
null
UTF-8
Java
false
false
1,115
java
package com.example.icardemo.Retrofit; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.util.concurrent.TimeUnit; import okhttp3.OkHttpClient; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class RetrofitClient { private static Retrofit retrofit = null; public static Retrofit getClient(String baseurl){ OkHttpClient builder = new OkHttpClient.Builder() .readTimeout(5000, TimeUnit.MILLISECONDS) .writeTimeout(5000, TimeUnit.MILLISECONDS) .connectTimeout(1000, TimeUnit.MILLISECONDS) .retryOnConnectionFailure(true) .build(); Gson gson = new GsonBuilder().setLenient().create(); retrofit = new Retrofit.Builder() .baseUrl(baseurl) .client(builder) .addConverterFactory(GsonConverterFactory.create(gson)) .build(); return retrofit; } }
[ "vanthuan080896@gmail.com" ]
vanthuan080896@gmail.com
17fb87511c01ebd522ddee4836b28288ea3a92cb
32984b74a284a98c43b593914d71a30a8827fe76
/test4j.integrated/src/test/testng/org/test4j/testng/spring/annotations/UserServiceTest_Mock1.java
d3d0cf5758b297e542542a3cc00034b3bd4d2fa7
[]
no_license
hexq/test4j
cd38cf9c2308b5854706d305a93f3884340ed2cc
84b117dcc31143f6da9473016b26ac8107f4e5ce
refs/heads/master
2020-03-20T04:30:47.617949
2018-06-28T13:00:55
2018-06-28T13:01:19
137,186,024
0
0
null
2018-06-13T08:28:44
2018-06-13T08:28:44
null
UTF-8
Java
false
false
1,530
java
package org.test4j.testng.spring.annotations; import mockit.Mocked; import org.test4j.fortest.hibernate.AddressService; import org.test4j.fortest.hibernate.UserService; import org.test4j.module.inject.annotations.Inject; import org.test4j.module.spring.annotations.SpringBeanByName; import org.test4j.module.spring.annotations.SpringContext; import org.test4j.testng.Test4J; import org.testng.annotations.Test; @SpringContext({ "classpath:/org/test4j/fortest/hibernate/project.xml" }) @Test(groups = { "test4j", "hibernate" }) public class UserServiceTest_Mock1 extends Test4J { @SpringBeanByName("userService") private UserService userService; @Mocked @Inject(targets = "userService") private AddressService addressService; @Test public void findAddress() { want.object(addressService).notNull(); want.object(userService).notNull(); new Expectations() { { when(addressService.findAddress()).thenReturn("文二路120#"); } }; String address = userService.findAddress(); want.string(address).contains("120#"); } @Test public void findAddress02() { want.object(addressService).notNull(); want.object(userService).notNull(); new Expectations() { { when(addressService.findAddress()).thenReturn("文二路120#"); } }; String address = userService.findAddress(); want.string(address).contains("120#"); } }
[ "darui.wu@163.com" ]
darui.wu@163.com
e4e8e45d52866699bf99766f526ab2fe80550b95
a18f227f66f6f47e29f218c79e093d63ac758d87
/src/com/supportsys/controller/ChatController.java
197495fe357ccb9f942ccaa85be90aed3ecff612
[]
no_license
V1centR/supportSys
e718a7ac910702302cfc0f79661aae839e188f9f
0d5ce50296c642df70162b4a4914462870347fca
refs/heads/master
2021-09-05T09:10:08.507280
2018-01-25T23:06:56
2018-01-25T23:06:56
102,991,896
0
0
null
null
null
null
UTF-8
Java
false
false
2,385
java
package com.supportsys.controller; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jdom2.JDOMException; import org.json.JSONException; import org.json.JSONObject; import org.springframework.core.io.FileSystemResource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.supportsys.model.ChatModel; import com.supportsys.repo.HelpRepo; /** * XML chat based * for reduce database requests * @author Vicent R. vicentcdb@gmail.com * */ @Controller public class ChatController { @RequestMapping(value="/chat/{idItem}/{hashItem}", method=RequestMethod.POST,produces={"application/xml", "application/json"}) public @ResponseBody FileSystemResource loadChat(@RequestBody Object jsonMsg, @PathVariable Integer idItem, @PathVariable String hashItem, HttpServletResponse response, HttpServletRequest request) throws JSONException, IOException, JDOMException { JSONObject jsonContainer = new JSONObject(); JSONObject jsonItem = new JSONObject(); String jsonData = jsonMsg.toString(); JSONObject jsonMsgUser = new JSONObject(jsonData); String txtMsg = jsonMsgUser.getString("msgTxt").toString(); String mode = jsonMsgUser.getString("setMode").toString(); boolean validChat = new HelpRepo().checkIdAndHash(idItem, hashItem); if(validChat == true) { Object idUser = request.getSession().getAttribute("idUser"); String nameUser = request.getSession().getAttribute("userName").toString(); String userSname = request.getSession().getAttribute("userSname").toString(); String userAvatar = request.getSession().getAttribute("userAvatar").toString(); String userName = nameUser +" "+ userSname; String chatEngaged = new ChatModel().initChat(hashItem,idUser,userName,userAvatar,txtMsg,mode); if(chatEngaged != null) { response.setContentType("application/xml"); return new FileSystemResource(chatEngaged); }else { //return null; } } else { //return Response.SC_UNAUTHORIZED; //return null; } return null; } }
[ "vicentcdb@gmail.com" ]
vicentcdb@gmail.com
76e3eb3b0fff4ba725dd3e10c4b24abb6ae96c9b
bbe34278f3ed99948588984c431e38a27ad34608
/sources/io/reactivex/internal/operators/observable/ObservableUsing.java
2ec4327cbaa591d2a2917dfb5cdefce7dbdaf39e
[]
no_license
sapardo10/parcial-pruebas
7af500f80699697ab9b9291388541c794c281957
938a0ceddfc8e0e967a1c7264e08cd9d1fe192f0
refs/heads/master
2020-04-28T02:07:08.766181
2019-03-10T21:51:36
2019-03-10T21:51:36
174,885,553
0
0
null
null
null
null
UTF-8
Java
false
false
4,780
java
package io.reactivex.internal.operators.observable; import io.reactivex.Observable; import io.reactivex.ObservableSource; import io.reactivex.Observer; import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.CompositeException; import io.reactivex.exceptions.Exceptions; import io.reactivex.functions.Consumer; import io.reactivex.functions.Function; import io.reactivex.internal.disposables.DisposableHelper; import io.reactivex.internal.disposables.EmptyDisposable; import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.plugins.RxJavaPlugins; import java.util.concurrent.Callable; import java.util.concurrent.atomic.AtomicBoolean; public final class ObservableUsing<T, D> extends Observable<T> { final Consumer<? super D> disposer; final boolean eager; final Callable<? extends D> resourceSupplier; final Function<? super D, ? extends ObservableSource<? extends T>> sourceSupplier; static final class UsingObserver<T, D> extends AtomicBoolean implements Observer<T>, Disposable { private static final long serialVersionUID = 5904473792286235046L; final Consumer<? super D> disposer; final Observer<? super T> downstream; final boolean eager; final D resource; Disposable upstream; UsingObserver(Observer<? super T> actual, D resource, Consumer<? super D> disposer, boolean eager) { this.downstream = actual; this.resource = resource; this.disposer = disposer; this.eager = eager; } public void onSubscribe(Disposable d) { if (DisposableHelper.validate(this.upstream, d)) { this.upstream = d; this.downstream.onSubscribe(this); } } public void onNext(T t) { this.downstream.onNext(t); } public void onError(Throwable t) { if (this.eager) { if (compareAndSet(false, true)) { try { this.disposer.accept(this.resource); } catch (Throwable e) { Exceptions.throwIfFatal(e); t = new CompositeException(t, e); } } this.upstream.dispose(); this.downstream.onError(t); return; } this.downstream.onError(t); this.upstream.dispose(); disposeAfter(); } public void onComplete() { if (this.eager) { if (compareAndSet(false, true)) { try { this.disposer.accept(this.resource); } catch (Throwable e) { Exceptions.throwIfFatal(e); this.downstream.onError(e); return; } } this.upstream.dispose(); this.downstream.onComplete(); } else { this.downstream.onComplete(); this.upstream.dispose(); disposeAfter(); } } public void dispose() { disposeAfter(); this.upstream.dispose(); } public boolean isDisposed() { return get(); } void disposeAfter() { if (compareAndSet(false, true)) { try { this.disposer.accept(this.resource); } catch (Throwable e) { Exceptions.throwIfFatal(e); RxJavaPlugins.onError(e); } } } } public ObservableUsing(Callable<? extends D> resourceSupplier, Function<? super D, ? extends ObservableSource<? extends T>> sourceSupplier, Consumer<? super D> disposer, boolean eager) { this.resourceSupplier = resourceSupplier; this.sourceSupplier = sourceSupplier; this.disposer = disposer; this.eager = eager; } public void subscribeActual(Observer<? super T> observer) { try { D resource = this.resourceSupplier.call(); try { ((ObservableSource) ObjectHelper.requireNonNull(this.sourceSupplier.apply(resource), "The sourceSupplier returned a null ObservableSource")).subscribe(new UsingObserver(observer, resource, this.disposer, this.eager)); } catch (Throwable ex) { Exceptions.throwIfFatal(ex); EmptyDisposable.error(new CompositeException(e, ex), (Observer) observer); } } catch (Throwable e) { Exceptions.throwIfFatal(e); EmptyDisposable.error(e, (Observer) observer); } } }
[ "sa.pardo10@uniandes.edu.co" ]
sa.pardo10@uniandes.edu.co
381c15c6fcd1642784bde0ba07aa23660d97b28e
9e819bb6effc79a56a65364d320303d20706eb05
/MaryKaySiteTest/src/com/example/tests/Actions.java
ffa7d160cf12967a7ce3c0d09568950c2b657034
[]
no_license
alex-dylda/MyRepository
264aad1d4887a609ecc7fec41f07751d1b0ec342
771a4929d6686170778500ae2fae0692b1b5b491
refs/heads/master
2021-01-19T06:56:42.952490
2015-09-22T08:44:28
2015-09-22T08:44:28
42,922,532
0
0
null
null
null
null
UTF-8
Java
false
false
10,193
java
package com.example.tests; import java.io.File; import java.io.IOException; import java.util.Random; import org.apache.commons.io.FileUtils; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.OutputType; import org.openqa.selenium.StaleElementReferenceException; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriverException; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedCondition; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.support.ui.WebDriverWait; public class Actions { private static WebDriver driver; public static String url; private static int clickRetryCount = 0; private static int typeRetryCount = 0; protected Actions(WebDriver driver) { Actions.driver = driver; } public void openURL(String url) throws Exception { driver.navigate().to(url); waitForPageLoad(); String currURL = driver.getCurrentUrl().toUpperCase(); String shortURL = url.substring(url.indexOf("www"), url.length()) .toUpperCase(); if (!currURL.contains(shortURL)) throw new Exception("URL: \"" + url + "\" was opened incorrectly"); } public void click(By by) throws InterruptedException { try { driver.findElement(by).click(); clickRetryCount = 0; } catch (StaleElementReferenceException ex) { while (clickRetryCount < 30) { Thread.sleep(200); clickRetryCount++; click(by); } } catch (WebDriverException ex) { while (clickRetryCount < 3) { Thread.sleep(200); clickRetryCount++; click(by); } } } public void clickIfPresent(By by) throws InterruptedException { try { driver.findElement(by).click(); clickRetryCount = 0; } catch (StaleElementReferenceException ex) { while (clickRetryCount < 3) { Thread.sleep(200); clickRetryCount++; clickIfPresent(by); } } catch (WebDriverException ex) { while (clickRetryCount < 3) { Thread.sleep(200); clickRetryCount++; clickIfPresent(by); } } } public void clearinputField(By by) throws InterruptedException { driver.findElement(by).clear(); Thread.sleep(500); } public void closeBrowser() { driver.quit(); } public void type(By by, String textToType) throws InterruptedException { try { String textInField = ""; if (driver.findElement(by).getTagName().equals("input")) textInField = driver.findElement(by).getAttribute("value") .toString().toUpperCase(); else textInField = driver.findElement(by).getText().toString() .toUpperCase(); if (!textInField.isEmpty() || driver.findElement(by).getAttribute("type") .equals("password")) { driver.findElement(by).clear(); Thread.sleep(50); driver.findElement(by).sendKeys(textToType); } else { driver.findElement(by).clear(); Thread.sleep(50); driver.findElement(by).sendKeys(textToType); String typedText = ""; if (driver.findElement(by).getTagName().equals("input")) typedText = driver.findElement(by).getAttribute("value") .toString().toUpperCase(); else typedText = driver.findElement(by).getText().toString() .toUpperCase(); if (!typedText.equals(textToType.toUpperCase()) && typeRetryCount < 3) { typeRetryCount++; type(by, textToType); } } typeRetryCount = 0; } catch (StaleElementReferenceException ex) { while (typeRetryCount < 30) { Thread.sleep(200); typeRetryCount++; type(by, textToType); } } } public void typeIfPresent(By by, String textToType) throws InterruptedException { try { if (driver.findElement(by) != null) { type(by, textToType); } } catch (Exception ex) { } } public void typeWithoutClearing(By by, String text) throws InterruptedException { try { driver.findElement(by).sendKeys(text); typeRetryCount = 0; } catch (StaleElementReferenceException ex) { while (typeRetryCount < 30) { Thread.sleep(200); typeRetryCount++; typeWithoutClearing(by, text); } } } public void typeRandomNumber(By by, int countOfDigits) { String randomValue = ""; Random randomNumber = new Random(); for (int i = 0; i < countOfDigits; i++) { randomValue = randomValue + randomNumber.nextInt(9); } driver.findElement(by).clear(); driver.findElement(by).sendKeys(randomValue); } public void typeRandomNumberWithoutClearing(By by, int countOfDigits) { String randomValue = ""; Random randomNumber = new Random(); for (int i = 0; i < countOfDigits; i++) { randomValue = randomValue + randomNumber.nextInt(9); } driver.findElement(by).sendKeys(randomValue); } public void waitForElementEnabled(By by) throws InterruptedException { for (int i = 0; i < 10; i++) { try { WebElement elem = driver.findElement(by); if (elem.isEnabled()) break; else Thread.sleep(1000); } catch (Exception ex) { Thread.sleep(1000); } } } public void waitForElementPresent(By by, int TimeInSeconds) throws InterruptedException { for (int i = 0; i < TimeInSeconds; i++) { try { driver.findElement(by); break; } catch (Exception ex) { Thread.sleep(1000); } } } public void waitForNotVisible(By by, int TimeInSeconds) throws InterruptedException { for (int i = 0; i < TimeInSeconds; i++) { try { if (driver.findElement(by).isDisplayed()) { Thread.sleep(1000); } else break; } catch (Exception ex) { } } } public void waitForVisible(By by, int TimeInSeconds) throws InterruptedException { for (int i = 0; i < TimeInSeconds; i++) { try { if (!driver.findElement(by).isDisplayed()) { Thread.sleep(1000); } else break; } catch (Exception ex) { } } } public void waitForNumberOfWindowsToEqual(final int numberOfWindows) { WebDriverWait wait = new WebDriverWait(driver, 30, 50); wait.until(new ExpectedCondition<Boolean>() { public Boolean apply(WebDriver d) { return (driver.getWindowHandles().size() == numberOfWindows); } }); } public void waitForTextIsNotNull(By by) throws InterruptedException { String textOfElement = ""; for (int i = 0; i < 30; i++) { try { if (driver.findElement(by).getTagName().toUpperCase() .equals("INPUT")) textOfElement = driver.findElement(by) .getAttribute("value").toString(); else textOfElement = driver.findElement(by).getText(); if (textOfElement.isEmpty()) Thread.sleep(1000); else break; } catch (Exception ex) { Thread.sleep(1000); } } } public void waitForPageLoad() { try { String pageLoadState = (String) ((JavascriptExecutor) driver) .executeScript("return document.readyState"); for (int i = 0; i < 60; i++) { if (pageLoadState.equals("complete") || pageLoadState.equals("loaded")) { break; } else { Thread.sleep(1000); pageLoadState = (String) ((JavascriptExecutor) driver) .executeScript("return document.readyState"); } } } catch (Exception ex) { ex.printStackTrace(); } } public boolean isElementPresent(final By by) { try { driver.findElement(by); return true; } catch (Exception e) { return false; } } public String randomString(int countOfSymbols) { String name = ""; char letters[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; for (int i = 0; i < countOfSymbols; i++) name += letters[(int) (Math.random() * (letters.length - 1))]; return name; } public String randomString_Cyrillic(int countOfSymbols) { String name = ""; char letters[] = { '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?' }; for (int i = 0; i < countOfSymbols; i++) name += letters[(int) (Math.random() * (letters.length - 1))]; return name; } public void selectByValue(By by, String value) { Select select = new Select(driver.findElement(by)); select.selectByValue(value); } public void selectByIndex(By by, int index) { Select select = new Select(driver.findElement(by)); select.selectByIndex(index); } public void selectByVisibleText(By by, String text) throws InterruptedException { try { Select select = new Select(driver.findElement(by)); select.selectByVisibleText(text); } catch (StaleElementReferenceException ex) { Thread.sleep(1000); Select select = new Select(driver.findElement(by)); select.selectByVisibleText(text); } } public void getScreenShot(String path) { try { TakesScreenshot screenShotDriver = ((TakesScreenshot) driver); File screenshot = screenShotDriver.getScreenshotAs(OutputType.FILE); FileUtils.copyFile(screenshot, new File(path), true); } catch (IOException e) { e.printStackTrace(); } } public String randomDate(int startDate, int dispersion) { String date = ""; date += (int) (Math.random() * 19 + 10) + ".0" + (int) (Math.random() * 8 + 1) + "." + (int) (Math.random() * dispersion + startDate); return date; } public boolean isTextPresent(String Text) { try { driver.findElement(By.tagName("body")).getText().contains(Text); return true; } catch (Exception e) { return false; } } public String getTextOfHiddenElement(By by) { WebElement element = driver.findElement(by); String script = "var element = arguments[0];" + "return element.textContent;"; return (String) ((JavascriptExecutor) driver).executeScript(script, element); } public String getTextOfElement(By by) { String textOfElement = ""; WebElement elem = driver.findElement(by); if (elem.getTagName().toString().equals("input")) textOfElement = elem.getAttribute("value").toString(); else textOfElement = elem.getText(); return textOfElement; } public boolean verifyElementIsDisplayed(By by) throws InterruptedException { try { if (driver.findElement(by).isDisplayed()) return true; else return false; } catch (Exception ex) { return false; } } }
[ "sd1990@yandex.ru" ]
sd1990@yandex.ru
46c00b9456982cbf93b9ceeb1382811324d429f1
9efdb7d314e5dc90a2568ce1d613c0ff02ccfc4b
/app/src/main/java/com/yusong/community/ui/community_service/mvp/ImplView/ServiceView.java
d46561a026969d4731d1863dfb80a2c6bf281625
[]
no_license
feisher/community_huangshan2
1cdcb55e2b9c6394e7f0ac043b2d3c02fed04408
aa3fc8103a0e6be8de89d0c7d81d2869724c4443
refs/heads/master
2021-07-14T18:15:52.164494
2017-10-19T03:25:01
2017-10-19T03:25:01
106,365,007
0
0
null
null
null
null
UTF-8
Java
false
false
675
java
package com.yusong.community.ui.community_service.mvp.ImplView; import com.yusong.community.mvp.implView.BaseView; import com.yusong.community.ui.community_service.entity.ServiceBean; import com.yusong.community.ui.community_service.entity.ServiceDetailBean; import com.yusong.community.ui.shoppers.bean.FenLeiBean; import java.util.List; /** * @author Mr_Peng * @created at 2017-09-22. * @describe: null */ public interface ServiceView extends BaseView { void queryServiceSucces(ServiceDetailBean bean); void queryServiceCategorySucces(List<FenLeiBean> datas); void queryServiceListSucces(List<ServiceBean> datas); void queryServiceListError(); }
[ "458079442@qq.com" ]
458079442@qq.com
feb1e7a9fbd48e5ca210e9db869198321d5fdbac
3ff1653890bc885da7f29ad31cc5fe238b058aef
/Exam/src/com/hkit/exam/blackjack/CardTest2.java
b0f3a1bc37126f0d11899049545c9cba7d195f6d
[]
no_license
ParkDoheum/AIClass
33cee18102fa3a6ac0f575da5cc1222529a4e73d
1ce814294eb898efec4641d4b35da4d57db6c0cd
refs/heads/master
2020-09-16T21:34:51.247461
2019-12-02T07:45:25
2019-12-02T07:45:25
223,892,931
0
0
null
null
null
null
UTF-8
Java
false
false
595
java
package com.hkit.exam.blackjack; public class CardTest2 { public static void main(String[] args) { String[] shapes = {"스페이드", "하트", "클로버", "다이아몬드"}; //스페이드, 하트, 클로버, 다이아몬드 Card[] cards = new Card[shapes.length * 13]; int cardsIdx = 0; for(int i=0; i<shapes.length; i++) { for(int z=1; z<=13; z++) { cards[cardsIdx++] = new Card(z, shapes[i]); } } /* for(Card c : cards) { System.out.println(c); } */ for(int i=0; i<cards.length; i++) { Card c = cards[i]; System.out.println(c); } } }
[ "hklee0724@gmail.com" ]
hklee0724@gmail.com
285d198ed0b04bcb9cb5134bc3f43606b2a78dad
62aaa67a468107022635b566cbcf1109d3e4e648
/huiyuan/src/private/nc/bs/hkjt/huiyuan/kaipiaoquery/ace/bp/AceHy_kaipiaoqueryUnSendApproveBP.java
6e3d0d2a8294c58485345a4d87713ce5013be64c
[]
no_license
boblee821226/hongkun
f17a90221683f816f382443f5c223347b41afefc
46c02ab124924f2c976044c5f31e632f706e61cf
refs/heads/master
2021-06-25T03:57:28.516510
2021-02-22T05:42:07
2021-02-22T05:42:07
204,677,636
1
1
null
null
null
null
GB18030
Java
false
false
992
java
package nc.bs.hkjt.huiyuan.kaipiaoquery.ace.bp; import nc.impl.pubapp.pattern.data.bill.BillUpdate; import nc.vo.hkjt.huiyuan.kaipiaoquery.KaipiaoqueryBillVO; import nc.vo.pub.VOStatus; import nc.vo.pub.pf.BillStatusEnum; /** * 标准单据收回的BP */ public class AceHy_kaipiaoqueryUnSendApproveBP { public KaipiaoqueryBillVO[] unSend(KaipiaoqueryBillVO[] clientBills, KaipiaoqueryBillVO[] originBills) { // 把VO持久化到数据库中 this.setHeadVOStatus(clientBills); BillUpdate<KaipiaoqueryBillVO> update = new BillUpdate<KaipiaoqueryBillVO>(); KaipiaoqueryBillVO[] returnVos = update.update(clientBills, originBills); return returnVos; } private void setHeadVOStatus(KaipiaoqueryBillVO[] clientBills) { for (KaipiaoqueryBillVO clientBill : clientBills) { clientBill.getParentVO().setAttributeValue("${vmObject.billstatus}", BillStatusEnum.FREE.value()); clientBill.getParentVO().setStatus(VOStatus.UPDATED); } } }
[ "441814246@qq.com" ]
441814246@qq.com
60f16667c9a305f3639beeccf3642ee7962cbf9f
c774adcd9f684e8d6b586aa212844fc630dd3eed
/src/main/java/com/todo/dataobject/TodoUser.java
e587f3c1a49d7f184a288b07f7ca15e31188208c
[]
no_license
RemEb/Todo
94ede65ae6947d461b257724081ac6475b3146e0
7c12da392866fc9eeba203c7603542ca87148c43
refs/heads/master
2020-04-15T01:37:00.095640
2019-01-06T07:02:02
2019-01-06T07:02:02
164,283,466
1
0
null
null
null
null
UTF-8
Java
false
false
7,302
java
package com.todo.dataobject; import java.util.Date; public class TodoUser { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.id * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private String id; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.gmt_created * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private Date gmtCreated; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.gmt_modified * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private Date gmtModified; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.pwd * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private String pwd; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.encrypt * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private String encrypt; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.lastpwd * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private String lastpwd; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.pwdlength * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private String pwdlength; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column todo_user.slat * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ private String slat; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.id * * @return the value of todo_user.id * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public String getId() { return id; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.id * * @param id the value for todo_user.id * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setId(String id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.gmt_created * * @return the value of todo_user.gmt_created * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public Date getGmtCreated() { return gmtCreated; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.gmt_created * * @param gmtCreated the value for todo_user.gmt_created * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setGmtCreated(Date gmtCreated) { this.gmtCreated = gmtCreated; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.gmt_modified * * @return the value of todo_user.gmt_modified * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public Date getGmtModified() { return gmtModified; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.gmt_modified * * @param gmtModified the value for todo_user.gmt_modified * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.pwd * * @return the value of todo_user.pwd * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public String getPwd() { return pwd; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.pwd * * @param pwd the value for todo_user.pwd * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setPwd(String pwd) { this.pwd = pwd; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.encrypt * * @return the value of todo_user.encrypt * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public String getEncrypt() { return encrypt; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.encrypt * * @param encrypt the value for todo_user.encrypt * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setEncrypt(String encrypt) { this.encrypt = encrypt; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.lastpwd * * @return the value of todo_user.lastpwd * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public String getLastpwd() { return lastpwd; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.lastpwd * * @param lastpwd the value for todo_user.lastpwd * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setLastpwd(String lastpwd) { this.lastpwd = lastpwd; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.pwdlength * * @return the value of todo_user.pwdlength * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public String getPwdlength() { return pwdlength; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.pwdlength * * @param pwdlength the value for todo_user.pwdlength * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setPwdlength(String pwdlength) { this.pwdlength = pwdlength; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column todo_user.slat * * @return the value of todo_user.slat * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public String getSlat() { return slat; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column todo_user.slat * * @param slat the value for todo_user.slat * * @mbg.generated Wed Dec 26 18:51:54 CST 2018 */ public void setSlat(String slat) { this.slat = slat; } }
[ "970557317@qq.com" ]
970557317@qq.com
c01ccfd8bd1c54141296f030b30d056e7dab31aa
d4bdc714d01481d5f57290ad132e22284e4b18f5
/Application_Piste/app/src/main/java/com/inpresairport/nenoxx/application_piste/ListeVolsActivity.java
58f8e663b2ea0f41f1feccab1207874e5d50aaf9
[]
no_license
Nenoxx/JavaBac3
0f986509b2bdd932080f3bf2a9cdca4cbb4b3289
6ebf273fac5e20cb1392d0e7728156c5fe095405
refs/heads/master
2021-08-29T09:59:05.545037
2017-12-13T16:12:16
2017-12-13T16:12:16
104,800,390
0
1
null
2019-04-15T14:39:02
2017-09-25T20:47:00
Java
UTF-8
Java
false
false
4,295
java
package com.inpresairport.nenoxx.application_piste; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.ArrayList; import ProtocoleLUGAP.RequeteLUGAP; public class ListeVolsActivity extends AppCompatActivity{ ListView mListView = null; ArrayAdapter<String> adapter = null; ArrayList<String> ListeVols = null; ObjectInputStream ois = null; ObjectOutputStream oos = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_liste_bagages); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); FloatingActionButton fab = findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } }); Toast.makeText(getApplicationContext(), "Bonjour " + LoginActivity.getUser() + "!", Toast.LENGTH_LONG).show(); ListeVols = new ArrayList<String>(); mListView = (ListView) findViewById(R.id.viewVols); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, ListeVols); mListView.setAdapter(adapter); mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { if(i >= 0){ String numVol = ListeVols.get(i); System.out.println("Vol " + numVol + " sélectionné"); Intent intent = new Intent(getApplicationContext(), ListeBagagesActivity.class); intent.putExtra("numVol", numVol); startActivity(intent); } } }); FlemmeDeDonnerUnNom a = new FlemmeDeDonnerUnNom(); a.execute(); } public class FlemmeDeDonnerUnNom extends AsyncTask<Void, Void, Boolean> { @Override protected void onPostExecute(final Boolean success) { if(success){ if(ListeVols != null && !ListeVols.isEmpty()){ System.out.println("Requête OK"); //adapter = new ArrayAdapter<String>(CallerContext, android.R.layout.simple_list_item_1, ListeVols); for(String s : ListeVols){ adapter.add("Vol " + s); adapter.notifyDataSetChanged(); } } } } @Override protected Boolean doInBackground(Void... voids) { //Récupération des flux déjà créés try { System.out.println("Récupération des flux..."); ois = LoginActivity.ois; oos = LoginActivity.oos; System.out.println("Récupération des vols..."); //Récupération des vols String query = "SELECT numVol from VOLS"; RequeteLUGAP req = new RequeteLUGAP(RequeteLUGAP.GETVOL, query); oos.writeObject(req); oos.flush(); System.out.println("Requête envoyée au serveur distant"); //Attente de la réponse du serveur ListeVols = (ArrayList<String>)ois.readObject(); System.out.println("Requête récupérée"); return true; } catch(Exception ex){ System.out.println("Erreur : " + ex.getLocalizedMessage()); return false; } } } }
[ "nenoxxcraft3@hotmail.fr" ]
nenoxxcraft3@hotmail.fr
ae2fead743aafb0db5a2b24f482b4e12a6027f05
190d7d2e506ca7b4e32ac3c250410536d2d8145d
/FINALPT2-master/Mobile-Final-Project-master/Mobile-Final-Project-master/FinalProject/app/src/main/java/com/example/sib/finalproject/fragments/ProfileFragment.java
2e7cf1e61edccee0ce67ae01d2c9ab38e7b3791c
[]
no_license
RameenB/FINAL
638686012665445fb6f42da093c647d1491d0024
6aa9680a17c931f3ab3cf3fd722b35e15ab58926
refs/heads/master
2021-01-20T09:06:59.505578
2017-05-04T04:21:23
2017-05-04T04:21:23
90,221,254
0
0
null
null
null
null
UTF-8
Java
false
false
1,239
java
package com.example.sib.finalproject.fragments; /** * Created by Rameen Barish on 4/29/2017. */ import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import com.example.sib.finalproject.R; public class ProfileFragment extends Fragment { private TextView profileName, longData, latData, distanceData; private Button mapsButton; private ImageView compassArrow; public static final String TAG_PROFILE_FRAGMENT = "profile_fragment"; public ProfileFragment() { // Required empty public constructor } public static ProfileFragment newInstance() { return new ProfileFragment(); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment Log.d("ProfileFragment:", "Messages Fragment ON_CREATE_VIEW()"); View view = inflater.inflate(R.layout.profile_activity, container, false); return view; } }
[ "rameenb@aol.com" ]
rameenb@aol.com
467f606128e268ee86c97715c2ed570208fe3c30
acd41f3b1cdb4b8a0c0ee47ada0d056d9b68a457
/OOP/Rectangle-constructor-app/src/com/techlabs/rectangle/Rectangle.java
332cafeee263c542b26f8c7993d6a7ac21b24633
[]
no_license
Hello-123/swabhavrepo
da85a51202e79e2432427c30e71268359f530828
d70977cc4d5074b7ffc23643d02e7f68ab38adaa
refs/heads/master
2022-01-18T08:06:20.149722
2019-06-02T17:36:31
2019-06-02T17:36:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
436
java
package com.techlabs.rectangle; public class Rectangle { private int width; private int height; public Rectangle(int newwidth, int newheight ) { width= newwidth; height = newheight; } public Rectangle(int newwidth) { width= newwidth; height = newwidth; } public int getheight() { return height; } public int getwidth() { return width; } public int calculateArea() { return (height*width); } }
[ "benfica.bf@gmail.com" ]
benfica.bf@gmail.com
c301a2a3901a37b3ed9e1b3574d26546f64f1032
2b503082fab7cbcaa7b3ea592c5ef7ef3dd88a8b
/io/WriteObject.java
c31388f36db3d032872f1a6b45434094c762d8d5
[]
no_license
takagotch/java
38d2aceca3bb30ed689d45e43e0315f28fd3ac6f
44d9ed4fd5d0ff438c90f19fd287623a0a16c066
refs/heads/master
2021-04-09T13:14:16.376220
2019-07-09T18:08:00
2019-07-09T18:08:00
103,270,566
0
0
null
null
null
null
UTF-8
Java
false
false
631
java
//public final void writeObject(Object obj) class PrintMessage implements Serializable{ private static final serialVersionUID = 1L; public void doPrint(String name){ System.out.println(name + ""); } } try{ String fn = "chap5/data/obTemp.txt"; try(FileOutputStream o = new FileOutputStream(fn); ObjectOutputStream oObj = new ObjectOutputStream(o)){ oOj.writeObject((Object) (new PrintMessage())); } try(FileInputStream i = new FileInputStream(fn); ObjectInputStream iObj = new ObjectInputStream(i)){ PrintMessage pm = (PrintMessage) iObj.readObject(); pm.doPrint(""); } }
[ "dyaccb@gmail.com" ]
dyaccb@gmail.com
aec510b2073c1edddcfa7dd95a499da86237e1c1
a8caf25b8e1fe4f4152027b831c5cd6164363ef3
/isf/src/main/java/com/wisenut/tea20/types/DictionaryInfo.java
2972b7f652b1aa971a75f9c6b9ab5a5c615bfe97
[]
no_license
smilesyk2/yklab
1dc959d359497c97871dc68fdf4bf0584db3a2e3
b6e223a63357b357be9096613688433e29135397
refs/heads/master
2020-05-22T06:54:20.511717
2018-03-29T09:51:18
2018-03-29T09:51:18
20,396,276
0
0
null
null
null
null
UTF-8
Java
false
false
976
java
package com.wisenut.tea20.types; /** * DTO for Dictionary Info. * * Description for a inner dictionary with some useful metadata. * @author hkseo@wisenut.co.kr * @deprecated */ public final class DictionaryInfo { private String id_; public String getId() { return id_; } public DictionaryType getType() { return type_; } public String getFileName() { return fileName_; } private DictionaryType type_; private String fileName_; /** * Constructor. * * @param id dictionary ID * @param fileName file name of dictionary * @param isBlackWord if true, it's blackword(aka stopword) */ public DictionaryInfo(String id, String fileName, boolean isBlackWord) { id_ = id; fileName_ = fileName; if (isBlackWord) { type_ = DictionaryType.BLACKWORD; } else { type_ = DictionaryType.WHITEWORD; } } public enum DictionaryType { BLACKWORD, WHITEWORD } }
[ "Holly@Holly-THINK" ]
Holly@Holly-THINK
b5183e8d53554ee48c636ca8d76c5aac873c90b0
a5faf695a7e0a8a59f321e8a57272e67ced44160
/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StripeStoreConfig.java
bf07418c7e193c746e82248ee272328ca9e1515c
[ "Apache-2.0", "CPL-1.0", "MPL-1.0" ]
permissive
baishuo/hbase-1.0.0-cdh5.4.7_baishuo
cb6a0e02159df306b23677ddc863a273b0b76a42
011c6ab97d6660051eaf8638afbd8cc2c13be29d
refs/heads/master
2021-01-10T13:25:10.382686
2015-11-15T13:46:18
2015-11-15T13:46:18
46,219,211
0
2
Apache-2.0
2023-03-20T11:55:11
2015-11-15T13:44:35
Java
UTF-8
Java
false
false
7,305
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.hadoop.hbase.regionserver; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.regionserver.compactions.CompactionConfiguration; /** * Configuration class for stripe store and compactions. * See {@link StripeStoreFileManager} for general documentation. * See getters for the description of each setting. */ @InterfaceAudience.Private public class StripeStoreConfig { static final Log LOG = LogFactory.getLog(StripeStoreConfig.class); /** The maximum number of files to compact within a stripe; same as for regular compaction. */ public static final String MAX_FILES_KEY = "hbase.store.stripe.compaction.maxFiles"; /** The minimum number of files to compact within a stripe; same as for regular compaction. */ public static final String MIN_FILES_KEY = "hbase.store.stripe.compaction.minFiles"; /** The minimum number of files to compact when compacting L0; same as minFiles for regular * compaction. Given that L0 causes unnecessary overwriting of the data, should be higher than * regular minFiles. */ public static final String MIN_FILES_L0_KEY = "hbase.store.stripe.compaction.minFilesL0"; /** The size the stripe should achieve to be considered for splitting into multiple stripes. Stripe will be split when it can be fully compacted, and it is above this size. */ public static final String SIZE_TO_SPLIT_KEY = "hbase.store.stripe.sizeToSplit"; /** The target count of new stripes to produce when splitting a stripe. A floating point number, default is 2. Values less than 1 will be converted to 1/x. Non-whole numbers will produce unbalanced splits, which may be good for some cases. In this case the "smaller" of the new stripes will always be the rightmost one. If the stripe is bigger than sizeToSplit when splitting, this will be adjusted by a whole increment. */ public static final String SPLIT_PARTS_KEY = "hbase.store.stripe.splitPartCount"; /** The initial stripe count to create. If the row distribution is roughly the same over time, it's good to set this to a count of stripes that is expected to be achieved in most regions, to get this count from the outset and prevent unnecessary splitting. */ public static final String INITIAL_STRIPE_COUNT_KEY = "hbase.store.stripe.initialStripeCount"; /** Whether to flush memstore to L0 files, or directly to stripes. */ public static final String FLUSH_TO_L0_KEY = "hbase.store.stripe.compaction.flushToL0"; /** When splitting region, the maximum size imbalance to allow in an attempt to split at a stripe boundary, so that no files go to both regions. Most users won't need to change that. */ public static final String MAX_REGION_SPLIT_IMBALANCE_KEY = "hbase.store.stripe.region.split.max.imbalance"; private final float maxRegionSplitImbalance; private final int level0CompactMinFiles; private final int stripeCompactMinFiles; private final int stripeCompactMaxFiles; private final int initialCount; private final long sizeToSplitAt; private final float splitPartCount; private final boolean flushIntoL0; private final long splitPartSize; // derived from sizeToSplitAt and splitPartCount private static final double EPSILON = 0.001; // good enough for this, not a real epsilon. public StripeStoreConfig(Configuration config, StoreConfigInformation sci) { this.level0CompactMinFiles = config.getInt(MIN_FILES_L0_KEY, 4); this.flushIntoL0 = config.getBoolean(FLUSH_TO_L0_KEY, false); int minMinFiles = flushIntoL0 ? 3 : 4; // make sure not to compact tiny files too often. int minFiles = config.getInt(CompactionConfiguration.HBASE_HSTORE_COMPACTION_MIN_KEY, -1); this.stripeCompactMinFiles = config.getInt(MIN_FILES_KEY, Math.max(minMinFiles, minFiles)); this.stripeCompactMaxFiles = config.getInt(MAX_FILES_KEY, config.getInt(CompactionConfiguration.HBASE_HSTORE_COMPACTION_MAX_KEY, 10)); this.maxRegionSplitImbalance = getFloat(config, MAX_REGION_SPLIT_IMBALANCE_KEY, 1.5f, true); float splitPartCount = getFloat(config, SPLIT_PARTS_KEY, 2f, true); if (Math.abs(splitPartCount - 1.0) < EPSILON) { LOG.error("Split part count cannot be 1 (" + splitPartCount + "), using the default"); splitPartCount = 2f; } this.splitPartCount = splitPartCount; // Arbitrary default split size - 4 times the size of one L0 compaction. // If we flush into L0 there's no split compaction, but for default value it is ok. double flushSize = sci.getMemstoreFlushSize(); if (flushSize == 0) { flushSize = 128 * 1024 * 1024; } long defaultSplitSize = (long)(flushSize * getLevel0MinFiles() * 4 * splitPartCount); this.sizeToSplitAt = config.getLong(SIZE_TO_SPLIT_KEY, defaultSplitSize); int initialCount = config.getInt(INITIAL_STRIPE_COUNT_KEY, 1); if (initialCount == 0) { LOG.error("Initial stripe count is 0, using the default"); initialCount = 1; } this.initialCount = initialCount; this.splitPartSize = (long)(this.sizeToSplitAt / this.splitPartCount); } private static float getFloat( Configuration config, String key, float defaultValue, boolean moreThanOne) { float value = config.getFloat(key, defaultValue); if (value < EPSILON) { LOG.warn(String.format( "%s is set to 0 or negative; using default value of %f", key, defaultValue)); value = defaultValue; } else if ((value > 1f) != moreThanOne) { value = 1f / value; } return value; } public float getMaxSplitImbalance() { return this.maxRegionSplitImbalance; } public int getLevel0MinFiles() { return level0CompactMinFiles; } public int getStripeCompactMinFiles() { return stripeCompactMinFiles; } public int getStripeCompactMaxFiles() { return stripeCompactMaxFiles; } public boolean isUsingL0Flush() { return flushIntoL0; } public long getSplitSize() { return sizeToSplitAt; } public int getInitialCount() { return initialCount; } public float getSplitCount() { return splitPartCount; } /** * @return the desired size of the target stripe when splitting, in bytes. * Derived from {@link #getSplitSize()} and {@link #getSplitCount()}. */ public long getSplitPartSize() { return splitPartSize; } }
[ "root@localhost.localdomain" ]
root@localhost.localdomain
dacdb226cdea7e4258c4c8bbc2a4edf5a29b2630
72b09f0ad05d2a9095bd630c63f2f2e1ef8a9771
/src/main/java/au/com/jaycar/validation/annotation/EmailMatcher.java
6b1fae4aa826db0b8221a2ce07a514ce59930524
[]
no_license
mehdizj2000/sample-security
25ae6ed29ed324cd7cd8d7760693cb6b9d39caf9
c0066d80de8fd5b267a1a1021ebac69737c5ee67
refs/heads/master
2020-08-19T14:40:26.478367
2019-12-03T06:09:15
2019-12-03T06:09:15
215,928,428
0
0
null
null
null
null
UTF-8
Java
false
false
707
java
package au.com.jaycar.validation.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; import au.com.jaycar.validation.EmailMatcherValidator; @Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) @Constraint(validatedBy = EmailMatcherValidator.class) @Documented public @interface EmailMatcher { Class<?>[] groups() default {}; String message() default "Emails do not match"; Class<? extends Payload>[] payload() default {}; }
[ "zareimeh@gmail.com" ]
zareimeh@gmail.com
5b2fcfd267b456c9ad5f0c44b98aff21d3c52469
77e542897ef83fe3497ec1a737e19c3aa09dc20a
/src/main/java/net/arcation/allegiance/AllegianceInfo.java
43df5bcf8f064aeacf863ce05024b66a2666f801
[ "MIT" ]
permissive
MrLittleKitty/Allegiance
347ba977842c62feb14d1f7338b8bccbb079924e
5ad994985e58a921dccf11962f14cc3af8365042
refs/heads/master
2020-04-06T04:13:59.017390
2017-05-25T22:07:04
2017-05-25T22:07:04
83,024,403
2
1
null
null
null
null
UTF-8
Java
false
false
153
java
package net.arcation.allegiance; /** * Created by Mr_Little_Kitty on 5/14/2017. */ public enum AllegianceInfo { DETAILED, COMPLETE, OFF }
[ "nuclearcat1337@gmail.com" ]
nuclearcat1337@gmail.com
f2a63781e9822b7b96696bac64c305a3b2908465
1f9118fc1576cff9ac08a7097e381e872a364d92
/src/main/java/brbo/benchmarks/sas21/synthetic/Synthetic027.java
34b4bff64310425bea88bebffb52ad5b961dcb88
[]
no_license
cuplv/brbo
d2a3f074c1699c3edbdb3f3ca6e07b940e2554e9
cb4cd1546d34154bd49939d8ce1b44954a3e79da
refs/heads/master
2023-08-20T01:50:35.231969
2021-10-13T15:20:06
2021-10-13T15:20:06
360,293,807
0
0
null
null
null
null
UTF-8
Java
false
false
683
java
package brbo.benchmarks.sas21.synthetic; import brbo.benchmarks.Common; public abstract class Synthetic027 extends Common { void f(int n) { if (n <= 0) { return; } int R = 0; mostPreciseBound(R <= (n + (n * n + 1 * n))); lessPreciseBound(R <= (n + (n * n + 1 * n)) * 8); for (int it0 = n, entry0 = ndInt2(1, it0); it0 > 0; it0 -= entry0, entry0 = ndInt2(1, it0)) { R = R + entry0; } for (int it1 = n, entry1 = ndInt2(1, it1); it1 > 0; it1 -= entry1, entry1 = ndInt2(1, it1)) { for (int it2 = n, entry2 = ndInt2(1, it2); it2 > 0; it2 -= entry2, entry2 = ndInt2(1, it2)) { R = R + entry2; } R = R + 1; } } }
[ "tianhan.lu@colorado.edu" ]
tianhan.lu@colorado.edu
12e93ae6c377d233af71428e723b2b62735bd838
a447a906170ec6185b6549250495aef9c33485c1
/pd/DAR_PROJECT/src/main/java/com/utils/HibernateUtility.java
8f2069236562693b2e25da7fef63283b01eb2775
[]
no_license
Sovitchi94/pd
eacfdc299954bd4ecb18a7777c06fff6685fe3c5
eb6f67b11ef2670b1690154944bc78fd957b2742
refs/heads/master
2020-04-02T02:05:59.772018
2018-10-20T09:56:52
2018-10-20T09:56:52
153,891,294
0
0
null
null
null
null
UTF-8
Java
false
false
1,512
java
package com.utils; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtility { private static final SessionFactory sessionFactory; // static { // try { //// // Créer une SessionFactory à partir de hibernate.cfg.xml //// StandardServiceRegistry registry; //// registry = new StandardServiceRegistryBuilder().configure("hibernate.cfg.xml").build(); //// //// MetadataSources sources = new MetadataSources(registry); //// //// Metadata metadata = sources.getMetadataBuilder().build(); //// //// sessionFactory = metadata.getSessionFactoryBuilder().build(); //// // Create typesafe ServiceRegistry object // // } catch (Throwable ex) { // // Gestion exception // System.err.println("Echec création SessionFactory" + ex); // throw new ExceptionInInitializerError(ex); // } // } // // public static SessionFactory getSessionFactory() { // return sessionFactory; // } static { try { // Créer une SessionFactory à partir de hibernate.cfg.xml sessionFactory = new Configuration().configure("hibernate.cfg.xml").buildSessionFactory(); } catch (Throwable ex) { // Gestion exception System.err.println("Echec création SessionFactory" + ex); throw new ExceptionInInitializerError(ex); } } public static SessionFactory getSessionFactory() { return sessionFactory; } }
[ "noreply@github.com" ]
Sovitchi94.noreply@github.com
f49a94010bbb571cb6c66efd412716cff5f1823f
046af9baf63f9515e0e8250abfd3b91b80421323
/src/main/java/com/tzt/workLog/vo/GroupUserVO.java
c8de36d99af4de4e5b34f94c8a8e57762e3c169b
[]
no_license
lx747949091/workLog
57a3539766942090e32ec03966b81b719ae72fa8
119af054e51a4db2ed0abb8f2c1b150b63ba73fa
refs/heads/master
2021-03-25T19:08:44.493084
2018-04-03T09:16:36
2018-04-03T09:16:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,158
java
package com.tzt.workLog.vo; import java.util.ArrayList; import java.util.List; import com.tzt.workLog.entity.GzrzGroupUser; public class GroupUserVO implements BaseVO { /** *ID */ private Integer Id; /** *组别名 */ private String Name; /** *工号 */ private String Usercode; /** *项目经理 */ private String manageName; /** *组别内的人员列表 */ private List<GzrzGroupUser> groupUserList = new ArrayList<>(); public Integer getId() { return Id; } public void setId(Integer id) { Id = id; } public String getName() { return Name; } public void setName(String name) { Name = name; } public String getUsercode() { return Usercode; } public void setUsercode(String usercode) { Usercode = usercode; } public List<GzrzGroupUser> getGroupUserList() { return groupUserList; } public void setGroupUserList(List<GzrzGroupUser> groupUserList) { this.groupUserList = groupUserList; } public String getManageName() { return manageName; } public void setManageName(String manageName) { this.manageName = manageName; } @Override public void convertPOToVO(Object poObj) { } }
[ "zy135185@163.com" ]
zy135185@163.com
3d3f037375b2d0def8b78d458ba6e3d9d2a902ee
9918fd727a5bf7d66255aab3f8aef98796b20d04
/app/src/main/java/com/example/android/droidcafe/OrderActivity.java
0833ae9106e32f0860ef9f87b497c2564a213417
[ "Apache-2.0" ]
permissive
angyy11/practical_4.2_task
0c0ef9998a2e550392bd0bc754042e1d135be3bf
274ad2dd84aea2d2a8523875796a52f74306cd07
refs/heads/master
2022-11-19T15:20:50.858861
2020-07-07T05:30:05
2020-07-07T05:30:05
277,725,307
0
0
null
null
null
null
UTF-8
Java
false
false
3,477
java
/* * Copyright (C) 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.example.android.droidcafe; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.RadioButton; import android.widget.Spinner; import android.widget.TextView; import android.widget.Toast; public class OrderActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_order); Intent intent = getIntent(); String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); TextView textView = findViewById(R.id.order_textview); textView.setText(message); Spinner spinner = findViewById(R.id.label_spinner); if (spinner != null) { spinner.setOnItemSelectedListener(this); } ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( this, R.array.labels_array, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); if (spinner != null) { spinner.setAdapter(adapter); } } public void onRadioButtonClicked(View view) { // Is the button now checked? boolean checked = ((RadioButton) view).isChecked(); // Check which radio button was clicked. switch (view.getId()) { case R.id.sameday: if (checked) // Same day service displayToast(getString( R.string.same_day_messenger_service)); break; case R.id.nextday: if (checked) // Next day delivery displayToast(getString( R.string.next_day_ground_delivery)); break; case R.id.pickup: if (checked) // Pick up displayToast(getString(R.string.pick_up)); break; default: // Do nothing. break; } } public void displayToast(String message) { Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); } @Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { String spinnerLabel = adapterView.getItemAtPosition(i).toString(); displayToast(spinnerLabel); } @Override public void onNothingSelected(AdapterView<?> adapterView) { // Do nothing. } }
[ "angyy-wm19@student.tarc.edu.my" ]
angyy-wm19@student.tarc.edu.my
87e97f58843e5b4d039fa812bff5e2c3a909a37f
359538ad7538d822218408fea43cdf9883060986
/chapter5/src/main/java/com/smart/chapter5/dynamic/UserServiceNamespaceHandler.java
15563a27beb56e517f6b997adfdbb08322f5d5ac
[]
no_license
HiAscend/masterSpring
95f0dbe4436f0d76d8c87c7ccf8ff69ccbc40ab0
84ad3b791ae2d335f514e69641f2c0490c90577f
refs/heads/master
2021-01-19T13:39:00.684587
2018-07-13T10:09:17
2018-07-13T10:09:17
100,851,996
1
0
null
null
null
null
UTF-8
Java
false
false
397
java
package com.smart.chapter5.dynamic; import org.springframework.beans.factory.xml.NamespaceHandlerSupport; /** * UserServiceNamespceHandler * * @author zziaa * @date 2017/10/12 */ public class UserServiceNamespaceHandler extends NamespaceHandlerSupport { @Override public void init() { registerBeanDefinitionParser("user-service", new UserServiceDefinitionParser()); } }
[ "poseidon1237@163.com" ]
poseidon1237@163.com
3db433aee7861051d65acd6e3abb64a5fac0fe46
0d9ce74ef91ebf17f4bf34fd91a5bd60d1d96565
/app/src/main/java/com/example/smartgarage/UI/MechanicianList.java
2ef34ba4d7ff40a425f1d73ae849d4ac79c28e13
[]
no_license
jules21/Smart-Garage
95a1c5860d13e93d221abf41504b019dd337282d
531c55d3b9dee26f8ee3dddf05f2fa9bef74499d
refs/heads/master
2020-06-22T21:11:55.156125
2019-08-08T01:56:15
2019-08-08T01:56:15
198,400,653
0
0
null
null
null
null
UTF-8
Java
false
false
4,241
java
package com.example.smartgarage.UI; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.inputmethod.EditorInfo; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.SearchView; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.example.smartgarage.Model.Mechanician; import com.example.smartgarage.R; import com.example.smartgarage.SmartGarageApi; import com.example.smartgarage.adapters.MechanicianAdapter; import com.example.smartgarage.api.APIClient; import com.google.android.material.floatingactionbutton.FloatingActionButton; import java.util.ArrayList; import java.util.List; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class MechanicianList extends AppCompatActivity { private MechanicianAdapter adapter; private List<Mechanician> exampleList; SmartGarageApi smartGarageApi; RecyclerView recyclerView; FloatingActionButton fab; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mechanician_list); recyclerView = findViewById(R.id.destiny_recycler_view); smartGarageApi = APIClient.getClient().create(SmartGarageApi.class); Call<List<Mechanician>> call = smartGarageApi.getMechanicians(); call.enqueue(new Callback<List<Mechanician>>() { @Override public void onResponse(Call<List<Mechanician>> call, Response<List<Mechanician>> response) { Log.i("Responsestring", response.body().toString()); //Toast.makeText() if (!response.isSuccessful()) { // textViewResult.setText("Code " + response.code()); return; } // List<Mechanician> mechanicians = response.body(); exampleList = new ArrayList<>(); exampleList.addAll(response.body()); // recyclerView.setHasFixedSize(true); RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getApplicationContext()); adapter = new MechanicianAdapter(exampleList, new MechanicianAdapter.OnItemClickListener() { @Override public void onItemClick(Mechanician mechanician) { // List<String> test; // test = new ArrayList<String>(); // test.add(Integer.toString(mechanician.getId())); // test.add(mechanician.getNames()); // test.add(mechanician.getAddress()); // test.add(mechanician.getEmail()); // test.add(mechanician.getPhone()); Intent intent = new Intent(MechanicianList.this, MechProfile.class); // String mechanicians = mechanician.toString(); // intent.putExtra("MECHANICS", mechanicians); // intent.putStringArrayListExtra("test", (ArrayList<String>) test); intent.putExtra("mechanician_id", mechanician.getId()); startActivity(intent); } }); recyclerView.setLayoutManager(layoutManager); recyclerView.setAdapter(adapter); } @Override public void onFailure(Call<List<Mechanician>> call, Throwable t) { Toast.makeText(MechanicianList.this, "slow network! please try again ", Toast.LENGTH_SHORT).show(); } }); fab = (FloatingActionButton)findViewById(R.id.fab_addmech); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i = new Intent(MechanicianList.this, RegisterMechanician.class); startActivity(i); } }); } }
[ "julesfabien96@gmail.com" ]
julesfabien96@gmail.com
1fed988e444990eac24f497d9fe76f1384d7cab6
6c322aa33c2d0f135bb0df2e33c2b8039976bf20
/app/src/main/java/com/kaiwukj/android/communityhui/mvp/http/entity/bean/SubImageBean.java
8f0a699ccdf1679d9e4e93e9f21051f22c614d21
[]
no_license
haife/CommunityHui
0adadc0317cc7c3ec33ce732f585793e7509badd
51f46ef0386ac16dbd16a60f3295aebcbf81e6c6
refs/heads/master
2022-02-18T04:20:17.216167
2019-08-13T07:49:17
2019-08-13T07:49:17
196,985,030
6
0
null
null
null
null
UTF-8
Java
false
false
514
java
package com.kaiwukj.android.communityhui.mvp.http.entity.bean; public class SubImageBean { /** * type : 1 * imgUrl : http: //qnzhsq.kaiwumace.com/1557882535468.jpg */ private String type; private String imgUrl; public String getType() { return type; } public void setType(String type) { this.type = type; } public String getImgUrl() { return imgUrl; } public void setImgUrl(String imgUrl) { this.imgUrl = imgUrl; } }
[ "penghaifeng94@gmail.com" ]
penghaifeng94@gmail.com
e6d981c35b3f94bf5deb940f9c803ccf8d4ea6cf
f2f5c891273b6ff6f8189ea0ed078f3d1daa9d8f
/src/main/java/com/allbooks/webapp/enumeration/TokenResponse.java
5a04d337810e7051bb1500600a838d533a31cd17
[]
no_license
damianprog/allbooks-webservice-client
4e0fb11e4a4e053f795ca9849aad6e71402ede73
1a895fccbe9291adb61ddd0f35f4938ca4a510c6
refs/heads/master
2018-10-16T16:52:04.600211
2018-08-31T06:51:14
2018-08-31T06:51:14
117,722,651
0
0
null
null
null
null
UTF-8
Java
false
false
207
java
package com.allbooks.webapp.enumeration; public enum TokenResponse { EXPIRED_TOKEN, INVALID_TOKEN, VALID_TOKEN, ALREADY_AUTHENTICATED, VERIFICATION_TOKEN_RESEND, EMAIL_ERROR, TOKEN_SENT, ALREADY_SENT; }
[ "34951410+damianprog@users.noreply.github.com" ]
34951410+damianprog@users.noreply.github.com
2dcc438c7f368b6a03c93e614edba48073e0c7f1
f91de3335b1da8c1bca1672439a8c64952b88917
/Student.java
3b1e694f6424a5af761d021c14193307b58538f7
[]
no_license
kranthikumar72638/JavaCoding
92a36543fe021e53acde1a6d2f4b5402d62a0788
20c5bceefe179ed98635037a88f000f306ccd908
refs/heads/master
2021-01-20T10:06:34.767135
2017-05-12T01:48:47
2017-05-12T01:48:47
90,323,169
0
0
null
null
null
null
UTF-8
Java
false
false
1,127
java
public class Student{ String studName; String StudNo; int marks; String subName; /*public Student(String DeptId, String DeptName, int noOfStds, int noOfStaff, String blkName, int attendance, String subject, double marks, String name, String no) { super(DeptId, DeptName, noOfStds, noOfStaff, blkName, attendance, subject, marks); this.studName = name; this.StudNo = no; }*/ private Department department; public Student(String studName, String studno, int marks, String subname, Department department) { super(); this.studName = studName; this.StudNo = studno; this.department = department; this.marks = marks; this.subName = subname; } public String getStudName() { return studName; } public String getStudNo() { return StudNo; } public int getMarks() { return marks; } public String getSubName() { return subName; } public Department getDepartment() { return department; } public void isPassed(){ if(marks>=26){ System.out.println("passed in " +subName); } else System.out.println("failed in " +subName); } }
[ "kumar_android@outlook.com" ]
kumar_android@outlook.com
1558edf7c087ffdcc0c905ba7f88fe1d12f3c256
261053ece2f16bdd98cfacb9782d50068d289d91
/default/ovms/ovms-client/ovms-device-client/src/main/java/com/htstar/ovms/device/api/vo/StatisticsMileageVO.java
9f8d83a39d1030635623e1df77bb1c4204fa6657
[]
no_license
jiangdm/java
0e271a2f2980b1bb9f7459bb8c2fcb90d61dfaa9
4d9428619247ba4fa3f9513505c62e506ecdaf3b
refs/heads/main
2023-01-12T15:15:18.300314
2020-11-19T09:43:24
2020-11-19T09:43:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
541
java
package com.htstar.ovms.device.api.vo; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; /** * @author HanGuJi * @Description: 统计 里程数 * @date 2020/6/2317:33 */ @Data public class StatisticsMileageVO implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "获取的里程日期") private int getTime; @ApiModelProperty(value = "这天的里程数") private Integer mileage; }
[ "ovms@email.com" ]
ovms@email.com
538c13496eb6d75ddb83c94c0051890d8a2045a0
3eb70222266bf9b71be8ccd963f0f3645a4c5d29
/src/threads/CountdownLatchDemo.java
05eb592d70af1c4f66c59d18a1509dc36e62ac7e
[]
no_license
giftzl/myJavaApp
5aaa2ffe592ae285883501691b701cccbf9ba71a
1f1664909e3df47bf5a06121ccc646ba038ae059
refs/heads/master
2020-03-25T05:01:52.075224
2019-05-07T09:11:07
2019-05-07T09:11:07
143,425,769
0
0
null
2019-05-07T09:11:08
2018-08-03T12:39:18
null
UTF-8
Java
false
false
2,288
java
package threads; import java.util.concurrent.CountDownLatch; public class CountdownLatchDemo { public static void main(String args[]) { final CountDownLatch latch = new CountDownLatch(3); Thread cacheService = new Thread(new Service("CacheService", 1000, latch)); Thread alertService = new Thread(new Service("AlertService", 3000, latch)); Thread validationService = new Thread(new Service("ValidationService", 5000, latch)); cacheService.start(); //separate thread will initialize CacheService alertService.start(); //another thread for AlertService initialization validationService.start(); // application should not start processing any thread until all service is up // and ready to do there job. // Countdown latch is idle choice here, main thread will start with count 3 // and wait until count reaches zero. each thread once up and read will do // a count down. this will ensure that main thread is not started processing // until all services is up. //count is 3 since we have 3 Threads (Services) try{ latch.await(); //main thread is waiting on CountDownLatch to finish System.out.println("All services are up, Application is starting now"); }catch(InterruptedException ie){ ie.printStackTrace(); } } } /** * Service class which will be executed by Thread using CountDownLatch synchronizer. */ class Service implements Runnable{ private final String name; private final int timeToStart; private final CountDownLatch latch; public Service(String name, int timeToStart, CountDownLatch latch){ this.name = name; this.timeToStart = timeToStart; this.latch = latch; } @Override public void run() { try { Thread.sleep(timeToStart); } catch (InterruptedException ex) { // Logger.getLogger(Service.class.getName()).log(Level.SEVERE, null, ex); } System.out.println( name + " is Up"); latch.countDown(); //reduce count of CountDownLatch by 1 } } //Read more: https://javarevisited.blogspot.com/2012/07/countdownlatch-example-in-java.html#ixzz5N6MW8lwW
[ "vizhu@example.com" ]
vizhu@example.com
f57b0e4b45d08f6d119104bf33c8eca0e5061bcf
889771fc5f58811f030e832b757a4ba8407267a8
/app/src/main/java/com/hipad/bluetoothantilost/activity/MainActivity.java
80914dd8515e1a210e34dc8f144d12af9c199cdf
[]
no_license
hardstruglling/IndividualEvent
bfccd7c4503a6815c5edb62f6a301e65bb2c280e
7e16612d4a0f78a7c2413e123a4088df0f8a56d1
refs/heads/master
2021-08-24T00:06:55.479770
2017-12-07T06:24:35
2017-12-07T06:24:35
113,410,626
1
0
null
null
null
null
UTF-8
Java
false
false
21,956
java
package com.hipad.bluetoothantilost.activity; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; import android.media.MediaPlayer; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.view.View; import android.view.animation.Animation; import android.view.animation.CycleInterpolator; import android.view.animation.TranslateAnimation; import android.widget.CompoundButton; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import com.hipad.bluetoothantilost.R; import com.hipad.bluetoothantilost.base.BaseActivity; import com.hipad.bluetoothantilost.contants.BleContants; import com.hipad.bluetoothantilost.manager.BltManager; import com.hipad.bluetoothantilost.service.BleService; import com.hipad.bluetoothantilost.tool.SharedPreferencesUtils; import com.hipad.bluetoothantilost.tool.VibratorUtil; import com.hipad.bluetoothantilost.tool.ViewUtils; import com.hipad.bluetoothantilost.view.InsLoadingView; import com.hipad.bluetoothantilost.view.RotateLoading; import com.hipad.bluetoothantilost.view.SwitchButton; import com.hipad.bluetoothantilost.viewdrag.DragLayout; import com.nineoldandroids.view.ViewHelper; import java.lang.ref.WeakReference; /** * created by wk */ public class MainActivity extends BaseActivity implements View.OnClickListener, CompoundButton.OnCheckedChangeListener { private ImageView iv_left_ble; private RelativeLayout rl_connected; private TextView tv_ble_name; private TextView tv_not_connect; private InsLoadingView insLoadingView; private TextView tv_add_device; private TextView tv_device_name; private ImageView ivIcon; private ProgressBar progressBar; private View upDateLoadingView; private RotateLoading rotateLoading; private LinearLayout.LayoutParams params; private ProgressBar leftProgressbar; private ImageView iv_success_ion; private MediaPlayer mp; private String bleDeviceName; private TextView tvConnectStatus; private static final String DEFAULT = ""; private static final String OTHER = "other"; private String deviceName; private BleService bleService; private String deviceAddress; private boolean isRemind; private RelativeLayout rl_search_item; private RelativeLayout rl_update_item; private RelativeLayout rl_setting_item; private RelativeLayout rl_help_item; private RelativeLayout rl_about_item; private ImageView iv_left; private DragLayout dl; private RelativeLayout rl_main; private SwitchButton switchDisconnect; private long exitTime = 0; private static final int BACK_MSG = 5; private static final int CONNECT_BLE_COMPLETE_MSG = 6; private static final int CONNECT_BLE_CANCEL_MSG = 7; private static final int CONNECTING_MSG = 8; private static final int UPDATE_MSG = 9; private static final int CONNECT_FAILED_MSG = 10; private static final int REQUEST_ENABLE_BLE = 20; /** * handler message */ private MainHandler handler = new MainHandler(this); /** * receive the info broadcast */ private BroadcastReceiver receiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(BleContants.CONNECTING_BLUETOOTH)) { if (dl.getStatus() == DragLayout.Status.Open){ dl.close(); } deviceName = SharedPreferencesUtils.getString(MainActivity.this, BleContants.BLE_DEVICE_NAME, DEFAULT); if (deviceName != null) { tv_add_device.setText(getResources().getString(R.string.connecting_ble_device) + deviceName); tv_device_name.setText(getResources().getString(R.string.no_device)); } else tv_add_device.setText(getResources().getString(R.string.connecting_ble_device)); Bundle extras = intent.getExtras(); if (extras != null) { deviceAddress = extras.getString(BleContants.BLE_DEVICE_ADDRESS); } Intent gattServiceIntent = new Intent(MainActivity.this, BleService.class); startService(gattServiceIntent); bindService(gattServiceIntent, connection, BIND_AUTO_CREATE); handler.sendEmptyMessage(CONNECTING_MSG); } } }; /** * Register for access to equipment information broadcast */ private void registerBroad() { IntentFilter filter = new IntentFilter(); filter.addAction(BleContants.CONNECTING_BLUETOOTH); registerReceiver(receiver, filter); } /** * unregister broadcast */ private void unregisterBroad() { unregisterReceiver(receiver); } /** * Connect with the service */ private ServiceConnection connection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName name, IBinder service) { bleService = ((BleService.LocalBinder) service).getService(); if (!bleService.initialize()) { Toast.makeText(bleService, getResources().getString(R.string.ble_init_failed), Toast.LENGTH_SHORT).show(); } else { } if (deviceAddress != null) bleService.connect(deviceAddress); } @Override public void onServiceDisconnected(ComponentName name) { } }; /** * Register the device connection status to change the broadcast * * @return */ private static IntentFilter makeGattUpdateIntentFilter() { final IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(BleService.ACTION_GATT_CONNECTED); intentFilter.addAction(BleService.ACTION_GATT_DISCONNECTED); intentFilter.addAction(BleService.ACTION_GATT_SERVICES_DISCOVERED); intentFilter.addAction(BleService.ACTION_DATA_AVAILABLE); intentFilter.addAction(BleService.READ_RSSI); return intentFilter; } /** * Receiving device connection status change broadcast */ private final BroadcastReceiver mGattUpdateReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); if (BleService.ACTION_GATT_CONNECTED.equals(action)) { handler.sendEmptyMessage(CONNECT_BLE_COMPLETE_MSG); } else if (BleService.ACTION_GATT_DISCONNECTED.equals(action)) { if (bleService != null) { if (bleService.scheduler != null) { bleService.scheduler.shutdownNow(); } } handler.sendEmptyMessage(CONNECT_BLE_CANCEL_MSG); } } }; @Override public int getLayout() { return R.layout.activity_main; } @Override public void initView() { BltManager.getInstance().initBltManager(this); mp = MediaPlayer.create(this, R.raw.bibibi); registerBroad(); rl_main = ((RelativeLayout) findViewById(R.id.rl_main)); insLoadingView = ((InsLoadingView) findViewById(R.id.main_ins_loading)); tv_add_device = ((TextView) findViewById(R.id.tv_add_device)); tv_device_name = ((TextView) findViewById(R.id.tv_device_name)); ivIcon = ((ImageView) findViewById(R.id.iv_status_icon)); switchDisconnect = ((SwitchButton) findViewById(R.id.main_switch_disconnect)); progressBar = ((ProgressBar) findViewById(R.id.btl_bar)); iv_success_ion = ((ImageView) findViewById(R.id.iv_success_icon)); tvConnectStatus = ((TextView) findViewById(R.id.tv_connect_status)); rl_search_item = ((RelativeLayout) findViewById(R.id.rl_search_item)); rl_update_item = ((RelativeLayout) findViewById(R.id.rl_update_item)); rl_setting_item = ((RelativeLayout) findViewById(R.id.rl_setting_item)); rl_help_item = ((RelativeLayout) findViewById(R.id.rl_help_item)); rl_about_item = ((RelativeLayout) findViewById(R.id.rl_about_item)); iv_left = ((ImageView) findViewById(R.id.iv_left)); params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT); if (SharedPreferencesUtils.getBoolean(this, BleContants.GUIDE_HELP, true)) { startActivity(new Intent(this, GuideHelpActivity.class)); } tvConnectStatus.setText(getResources().getString(R.string.not_connect)); initDragLayout(); String flag = SharedPreferencesUtils.getString(this, BleContants.BLE_CONNECT_FLAG, DEFAULT); if (flag != null) { if (flag.equals(BleService.CONNECTED)) { Intent gattServiceIntent = new Intent(MainActivity.this, BleService.class); bindService(gattServiceIntent, connection, BIND_AUTO_CREATE); handler.sendEmptyMessage(CONNECT_BLE_COMPLETE_MSG); } else if (flag.equals(BleService.DISCONNECTED)) { handler.sendEmptyMessage(CONNECT_FAILED_MSG); SharedPreferencesUtils.saveString(this, BleContants.BLE_CONNECT_FLAG, OTHER); } else { tv_device_name.setText(getResources().getString(R.string.no_device)); } } else tv_device_name.setText(getResources().getString(R.string.no_device)); insLoadingView.setStatus(InsLoadingView.Status.UNCLICKED); upDateLoadingView = ViewUtils.getUpDateLoadingView(this); rotateLoading = ((RotateLoading) upDateLoadingView.findViewById(R.id.rotateloading)); BltManager.getInstance().checkBleDevice(this); initLeft(); initClick(); } /** * Initialize the left sidebar */ private void initDragLayout() { dl = (DragLayout) findViewById(R.id.dragLayout); dl.setDragListener(new DragLayout.DragListener() { @Override public void onOpen() { //When the user first entered the application prompt on the left side of the function if (SharedPreferencesUtils.getBoolean(MainActivity.this, BleContants.IS_FIRST_OPEN_LEFT, true)) { openLeftAnim(); } } @Override public void onClose() { } @Override public void onDrag(float percent) { ViewHelper.setAlpha(iv_left, 1 - percent); } }); } /** * Open the animation on the left side of the slide */ private void openLeftAnim() { SharedPreferencesUtils.saveBoolean(this, BleContants.IS_FIRST_OPEN_LEFT, false); Animation translateAnimation = new TranslateAnimation(0, 10, 0, 0); translateAnimation.setInterpolator(new CycleInterpolator(5)); translateAnimation.setDuration(800); dl.getVg_left().startAnimation(translateAnimation); } /** * view click */ private void initClick() { ivIcon.setOnClickListener(this); switchDisconnect.setOnCheckedChangeListener(this); rl_search_item.setOnClickListener(this); rl_update_item.setOnClickListener(this); rl_setting_item.setOnClickListener(this); rl_help_item.setOnClickListener(this); rl_about_item.setOnClickListener(this); iv_left.setOnClickListener(this); } /** * connection succeeded */ private void connectComplete() { switchDisconnect.setChecked(true); rl_search_item.setVisibility(View.VISIBLE); tvConnectStatus.setText(getResources().getString(R.string.ble_disconnect)); ivIcon.setVisibility(View.GONE); iv_success_ion.setVisibility(View.VISIBLE); progressBar.setVisibility(View.GONE); rl_connected.setVisibility(View.VISIBLE); leftProgressbar.setVisibility(View.GONE); iv_left_ble.setVisibility(View.VISIBLE); iv_left_ble.setImageResource(R.drawable.bluetooth_white); tv_not_connect.setVisibility(View.GONE); if (bleDeviceName != null) { tv_add_device.setText(getResources().getString(R.string.success_connect) + bleDeviceName); tv_ble_name.setText(bleDeviceName); tv_device_name.setText(bleDeviceName); } insLoadingView.setStartColor(getResources().getColor(R.color.greenC3)); insLoadingView.setStatus(InsLoadingView.Status.UNCLICKED); insLoadingView.postInvalidate(); } /** * Connection failed */ private void connectFailed() { switchDisconnect.setChecked(false); rl_search_item.setVisibility(View.VISIBLE); tvConnectStatus.setText(getResources().getString(R.string.not_connect)); Toast.makeText(this, getResources().getString(R.string.connect_fail_hint), Toast.LENGTH_SHORT).show(); if (bleDeviceName != null) { tv_device_name.setText(bleDeviceName + getResources().getString(R.string.ble_disconnect)); } ivIcon.setVisibility(View.VISIBLE); ivIcon.setImageResource(R.drawable.close); progressBar.setVisibility(View.GONE); rl_connected.setVisibility(View.GONE); leftProgressbar.setVisibility(View.GONE); iv_success_ion.setVisibility(View.GONE); iv_left_ble.setVisibility(View.VISIBLE); iv_left_ble.setImageResource(R.drawable.bluetooth_off_white); iv_left_ble.setOnClickListener(this); tv_not_connect.setVisibility(View.VISIBLE); tv_not_connect.setText(getResources().getString(R.string.cancel_connect)); tv_add_device.setText(getResources().getString(R.string.cancel_connect)); connectFailedAnim(); insLoadingView.setStartColor(getResources().getColor(R.color.redCC)); insLoadingView.setStatus(InsLoadingView.Status.UNCLICKED); insLoadingView.postInvalidate(); } /** * The connection failed to prompt the text to execute the animation */ private void connectFailedAnim() { Animation translateAnimation = new TranslateAnimation(0, 10, 0, 0); translateAnimation.setInterpolator(new CycleInterpolator(5)); translateAnimation.setDuration(800); tv_add_device.startAnimation(translateAnimation); } /** * Is being connected */ private void isConnecting() { ivIcon.setVisibility(View.GONE); progressBar.setVisibility(View.VISIBLE); iv_left_ble.setVisibility(View.GONE); leftProgressbar.setVisibility(View.VISIBLE); tv_not_connect.setVisibility(View.VISIBLE); iv_success_ion.setVisibility(View.GONE); tv_not_connect.setText(getResources().getString(R.string.is_connect_device)); insLoadingView.setStartColor(getResources().getColor(R.color.greenC3)); insLoadingView.setEndColor(getResources().getColor(R.color.redF6)); insLoadingView.setStatus(InsLoadingView.Status.LOADING); insLoadingView.postInvalidate(); } /** * set the left layout */ private void initLeft() { iv_left_ble = ((ImageView) findViewById(R.id.iv_left_ble)); rl_connected = ((RelativeLayout) findViewById(R.id.rl_connected)); tv_ble_name = ((TextView) findViewById(R.id.tv_ble_name)); tv_not_connect = ((TextView) findViewById(R.id.tv_not_connect)); leftProgressbar = ((ProgressBar) findViewById(R.id.main_left_progress_bar)); tv_not_connect.setText(getResources().getString(R.string.not_connect)); } @Override protected void onResume() { super.onResume(); bleDeviceName = SharedPreferencesUtils.getString(this, BleContants.BLE_DEVICE_NAME, DEFAULT); isRemind = SharedPreferencesUtils.getBoolean(MainActivity.this, BleContants.SET_LOST_HINT, true); registerReceiver(mGattUpdateReceiver, makeGattUpdateIntentFilter()); } /** * Click the back button to exit the application */ @Override public void onBackPressed() { /* If the left side slide is not closed, close the left side slide*/ if (dl.getStatus() != DragLayout.Status.Close) { dl.close(); } else { /* If you click the back button, the middle time interval is greater than 1.8 seconds. Press again to exit the application and press the back key twice to exit the application. If the time interval is less than 1.8 seconds, exit the application */ if (System.currentTimeMillis() - exitTime > 1800) { Toast.makeText(this, getResources().getString(R.string.double_quit_app), Toast.LENGTH_SHORT).show(); exitTime = System.currentTimeMillis(); } else { SharedPreferencesUtils.saveString(this, BleContants.BLE_CONNECT_FLAG, OTHER); super.onBackPressed(); } } } @Override protected void onDestroy() { super.onDestroy(); handler.removeCallbacksAndMessages(null); unregisterBroad(); unregisterReceiver(mGattUpdateReceiver); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.iv_status_icon: startActivity(new Intent(this, SearchActivity.class)); break; case R.id.rl_search_item: insLoadingView.setStartColor(getResources().getColor(R.color.greenC3)); Intent intent = new Intent(this, SearchActivity.class); startActivity(intent); break; case R.id.rl_setting_item: startActivity(new Intent(this, SettingActivity.class)); break; case R.id.rl_update_item: rl_main.addView(upDateLoadingView, params); handler.sendEmptyMessageDelayed(UPDATE_MSG, 3000); if (dl.getStatus() == DragLayout.Status.Open){ dl.close(); } break; case R.id.rl_help_item: startActivity(new Intent(this, HelpActivity.class)); break; case R.id.rl_about_item: startActivity(new Intent(this, AboutActivity.class)); break; case R.id.iv_left: dl.open(); break; } } /** * activity get result * * @param requestCode * @param resultCode * @param data */ @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case REQUEST_ENABLE_BLE: break; } } /** * switch click event * * @param buttonView * @param isChecked */ @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { switch (buttonView.getId()) { case R.id.main_switch_disconnect: if (isChecked) { } else { if (bleService != null) { SharedPreferencesUtils.saveString(this, BleContants.BLE_CONNECT_FLAG, OTHER); bleService.disconnect(); } } break; } } /** * Use a weakly referenced handler to prevent handler memory from being leaked */ class MainHandler extends Handler { private WeakReference<MainActivity> activity; public MainHandler(MainActivity mainActivity) { activity = new WeakReference<MainActivity>(mainActivity); } @Override public void handleMessage(Message msg) { super.handleMessage(msg); MainActivity mainActivity = activity.get(); switch (msg.what) { case CONNECT_BLE_COMPLETE_MSG: mainActivity.insLoadingView.setEndColor(getResources().getColor(R.color.greenC3)); mainActivity.connectComplete(); break; case CONNECT_BLE_CANCEL_MSG: if (mainActivity.isRemind) { VibratorUtil.Vibrate(MainActivity.this, 1000); mainActivity.mp.start(); } mainActivity.insLoadingView.setEndColor(getResources().getColor(R.color.redCC)); mainActivity.connectFailed(); break; case CONNECTING_MSG: mainActivity.isConnecting(); break; case UPDATE_MSG: mainActivity.rl_main.removeView(upDateLoadingView); Toast.makeText(MainActivity.this, getResources().getString(R.string.the_latest_version), Toast.LENGTH_SHORT).show(); break; case CONNECT_FAILED_MSG: mainActivity.insLoadingView.setEndColor(getResources().getColor(R.color.redCC)); mainActivity.connectFailed(); break; default: break; } } } }
[ "wuke02@hipad.com" ]
wuke02@hipad.com
055f626cec82562d889f3afc2193e5d68cab2007
005cd2fcfcc8c619a22fc238970a4146623bbaed
/src/leetcode/dp/Rob.java
5cb2dee9394526fcb0ca05d8ba7e8908a067529a
[]
no_license
Brystone/leetcode
fb1f7962e52b2843b15d56e035ac6c5555786df9
95e7fcc0b3bc09ed1e52ac72d67aa0001df7b443
refs/heads/master
2020-06-18T12:24:02.483665
2020-05-30T02:13:00
2020-05-30T02:13:00
263,600,100
0
0
null
null
null
null
UTF-8
Java
false
false
561
java
package leetcode.dp; /** * 题目:198. 打家劫舍 * 思路:状态转移方法:f(i) = max(f(i-1), f(i-2)+A(i)) 偷 或者 不偷 f(i) 表示满足条件的情况下,偷到的最大金额 * * @author :stone * @date :Created in 2020/4/4 21:45 */ public class Rob { public int rob(int[] nums) { int sum = 0; int[] dp = new int[nums.length]; dp[0] = 0; dp[1] = nums[0]; for (int i=2; i<nums.length; i++) { sum = Math.max(dp[i-1], nums[i] + dp[i-2]); } return sum; } }
[ "LLstone10@163.com" ]
LLstone10@163.com
56b91ab6a42d6352993c8ee4496699dc38497513
fc6507496ae93fea464dc08d9bcbe7c5210d5d8e
/StartAndroid_0091_0171/p0111_resvalues/src/androidTest/java/zerodev/p0111_resvalues/ApplicationTest.java
4ea03b62374c714d09526895ccdb8142a6fcc063
[]
no_license
ZeroDevExpert/android_study_startandroid
e43bd34a2dc5a42d3c46878b4b7d0078ae960992
8c5622b530bae2b56db4971125f1486e0a6f263c
refs/heads/main
2023-04-19T07:33:51.182217
2021-05-06T21:09:13
2021-05-06T21:09:13
365,037,051
0
0
null
null
null
null
UTF-8
Java
false
false
354
java
package zerodev.p0111_resvalues; 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); } }
[ "leonardo@gmail.com" ]
leonardo@gmail.com
901f9bedfe2cbd1b54518e138fd01b8948ae5aa6
05c66b76b4d74b5c0a98b7130963647ced8044de
/backend/ejbModule/model/CustomerEntity.java
379d56a6b78e7bdef6145f0f967044459baca6af
[]
no_license
SanzaTS/digibankmanagement
9b0022b17fda49fc50f6c94d4ec194d915d7586e
34d4379447c79a76bc1783f0725f702557cc353d
refs/heads/master
2020-07-30T11:02:41.599693
2019-09-22T19:57:29
2019-09-22T19:57:29
210,205,203
0
0
null
null
null
null
UTF-8
Java
false
false
1,745
java
package model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity(name="customer_tbl") public class CustomerEntity { @Id @GeneratedValue(strategy=GenerationType.AUTO) private Long transactionCode; private String Name; private String SourcePassport; private String DestinationPassport; private String DestinationBank; private String DestinationCountry; private int AccountNumber; private Double Amount; public Long getTransactionCode() { return transactionCode; } public void setTransactionCode(Long transactionCode) { this.transactionCode = transactionCode; } public String getName() { return Name; } public void setName(String name) { Name = name; } public String getSourcePassport() { return SourcePassport; } public void setSourcePassport(String sourcePassport) { SourcePassport = sourcePassport; } public String getDestinationPassport() { return DestinationPassport; } public void setDestinationPassport(String destinationPassport) { DestinationPassport = destinationPassport; } public String getDestinationBank() { return DestinationBank; } public void setDestinationBank(String destinationBank) { DestinationBank = destinationBank; } public String getDestinationCountry() { return DestinationCountry; } public void setDestinationCountry(String destinationCountry) { DestinationCountry = destinationCountry; } public int getAccountNumber() { return AccountNumber; } public void setAccountNumber(int accountNumber) { AccountNumber = accountNumber; } public Double getAmount() { return Amount; } public void setAmount(Double amount) { Amount = amount; } }
[ "sanelesithole001@gmail.com" ]
sanelesithole001@gmail.com
bffae56c6770053b05d243534bc9fd11323b75e8
fe47d066d2857a81ebc939b635f225bbe4208174
/OnlineQuiz/WebContent/WEB-INF/src/co/learn/quiz/controller/LoginController.java
1cfb6e80054e135d18afcfc94e2244d802d16d81
[]
no_license
Manays/quiz
c3ec0379c1b051f576d4c910e7ae2fd7262e9beb
5fea93e81ef28a3c2d093918451b2fcad7098c66
refs/heads/master
2020-05-09T23:24:27.171385
2019-04-15T15:16:58
2019-04-15T15:16:58
181,500,704
0
0
null
null
null
null
UTF-8
Java
false
false
2,563
java
package co.learn.quiz.controller; import java.sql.*; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import co.learn.quiz.DatabaseConnectionFactory; /** * Servlet implementation class LoginController */ @WebServlet("/LoginController") public class LoginController extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public LoginController() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.getWriter().append("Served at: ").append(request.getContextPath()); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String username=request.getParameter("username"); String password=request.getParameter("password"); Connection con=DatabaseConnectionFactory.createConnection(); ResultSet set=null; String id = ""; int i=0; try { Statement st=con.createStatement(); String sql = "Select * from users where username='"+username+"' and password='"+password+"' "; System.out.println(sql); set=st.executeQuery(sql); while(set.next()) { i=1; id = set.getString("id"); } if(i!=0) { HttpSession session=request.getSession(); session.setAttribute("user",username); session.setAttribute("id",id); RequestDispatcher rd=request.getRequestDispatcher("/WEB-INF/jsps/home.jsp"); rd.forward(request, response); } else { request.setAttribute("errorMessage","Invalid username or password"); RequestDispatcher rd=request.getRequestDispatcher("/WEB-INF/jsps/login.jsp"); rd.forward(request, response); } }catch(SQLException sqe){System.out.println("Error : While Fetching records from database");} try { con.close(); }catch(SQLException se){System.out.println("Error : While Closing Connection");} } } }
[ "noreply@github.com" ]
Manays.noreply@github.com
eb82d742471d8819749cddc7d1998f0afeecc329
cf3cfec6b84dfba440c87faea45fa2acc4244629
/Project-6/src/main/java/searching/slagalica/KonfiguracijaSlagalice.java
e0aba3960f9b4882b971cd84592f74230fae509a
[]
no_license
tkurtovic98/Java-Course
ae2c5bf0a7e6807748151e9b7666ca3fd8892068
08fb0b12aeed11328bc05629aaac38c027ec4b17
refs/heads/master
2022-11-25T11:50:52.176529
2020-10-26T10:29:33
2020-10-26T10:29:33
248,767,956
0
0
null
2022-11-24T09:53:34
2020-03-20T13:54:16
Java
UTF-8
Java
false
false
1,145
java
package searching.slagalica; import java.util.Arrays; /** * Class used to store information about * the configuration of the jigsaw * @author Tomislav Kurtović * */ public class KonfiguracijaSlagalice { /** * array of numbers */ private int[] configuration; /** * Default constructor * @param configuration */ public KonfiguracijaSlagalice(int[] configuration) { super(); this.configuration = configuration; } /** * Returns the configuration array * @return configuration array */ public int[] getPolje() { return Arrays.copyOf(configuration,configuration.length); } /** * Returns index of '0' * @return */ public int indexOfSpace() { for(int i : configuration) { if(configuration[i] == 0) return i; } return -1; } @Override public String toString() { StringBuilder builder = new StringBuilder(); int index = indexOfSpace(); for(int i = 0; i < configuration.length; i++) { if(i % 3 == 0) { builder.append("\n"); } if(i == index) { builder.append("*"); continue; } builder.append(configuration[i]); } return builder.toString(); } }
[ "tk50908@fer.hr" ]
tk50908@fer.hr
c8b57bbaddc66f541d6e8189dd4d245987e31dca
5a7fbbb930f3ad8f86d650d563995a7131a8779a
/src/test/java/com/rw/API/Event/Test/TestReminders.java
d7257746c19af6c806dc1f1bdc3cf1eaf5c72816
[]
no_license
LocalBusinessNetwork/API
2294ee31dcbabc313be0a54761690b049726133c
877d0de7cd706215a43685e615decfafb551c5d7
refs/heads/master
2021-01-19T05:09:55.518117
2015-05-05T02:27:02
2015-05-05T02:27:02
35,001,316
0
0
null
null
null
null
UTF-8
Java
false
false
1,498
java
package com.rw.API.Event.Test; import com.mongodb.BasicDBObject; import com.rw.API.ContactDupsMgr; import com.rw.API.EventMgr; import com.rw.API.PartyMgr; import com.rw.API.SecMgr; import com.rw.APItest.*; import static org.junit.Assert.*; import org.json.JSONException; import org.json.JSONObject; import org.junit.After; import org.junit.Before; import org.junit.Test; public class TestReminders { public String id = null; @Before public void setUp() throws Exception { String rwhome = "/Users/sudhakarkaki/RND"; System.setProperty("PARAM1", "localhost"); System.setProperty("JDBC_CONNECTION_STRING", "localhost"); System.setProperty("PARAM3", "STN"); System.setProperty("PARAM5", "rwstaging"); System.setProperty("EMAIL", "production"); System.setProperty("WebRoot", rwhome + "/web/src/main/webapp"); SecMgr sm = new SecMgr(); JSONObject data = new JSONObject(); data.put("act", "login"); data.put("login", "phil@referralwiretest.biz"); data.put("password","123456"); JSONObject retVal = null; try { retVal = sm.handleRequest(data); } catch (Exception e) { e.printStackTrace(); fail("Login Failed"); } id = retVal.get("data").toString(); } @After public void tearDown() throws Exception { } @Test public void test() throws JSONException { EventMgr em = new EventMgr(id); try { //em.sendMeetingReminders(); em.sendMeetingNotes(); } catch (Exception e) { e.printStackTrace(); fail("Login Failed"); } } }
[ "sudhakar.kaki@gmail.com" ]
sudhakar.kaki@gmail.com
187061c08ce396919717729d173f32b3bac832e3
e9b0934401d47c7645ed94a858e416ac653900fe
/batch/src/main/java/com/wedul/wedul_timeline/batch/job/JobCompletionListener.java
69bdae1c5adfeac90546239b8bb4da30e2ba9de5
[]
no_license
seco/timeline-2
bd31307aade160c63aa4ba4b385820da002e483c
dcde0c65203bf5081c615f3fdcd4386f9531d0af
refs/heads/master
2020-09-19T23:38:56.302476
2019-09-28T07:00:54
2019-09-28T07:00:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
598
java
package com.wedul.wedul_timeline.batch.job; import lombok.extern.slf4j.Slf4j; import org.springframework.batch.core.BatchStatus; import org.springframework.batch.core.JobExecution; import org.springframework.batch.core.listener.JobExecutionListenerSupport; import org.springframework.stereotype.Component; @Slf4j @Component public class JobCompletionListener extends JobExecutionListenerSupport { @Override public void afterJob(JobExecution jobExecution) { if (jobExecution.getStatus() == BatchStatus.COMPLETED) { log.info("배치 작업 완료!!"); } } }
[ "wedul.chul@gmail.com" ]
wedul.chul@gmail.com
dc32a4f716f71a8050e01ed29b7431a053db57dc
25cf53a5bba4397517d85fda7ab403f0d24855cc
/app/src/main/java/com/example/haikal/materialdesign2/DragAndSwipeRecyclerView/DragAndSwipeRecyclerViewActivity.java
4e34c6956191d8e11e84addb987e4d9e81e1862b
[]
no_license
michaelhaikal31/MaterialDesign2
2274cc17377fc82e11420ead55ee748eacdfbbd8
f50f729d1ece2d915f73d23b5553b187a5e3b1d0
refs/heads/master
2021-08-31T13:23:58.368852
2017-12-21T13:07:35
2017-12-21T13:07:35
112,086,508
0
0
null
null
null
null
UTF-8
Java
false
false
2,083
java
package com.example.haikal.materialdesign2.DragAndSwipeRecyclerView; import android.os.Handler; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.helper.ItemTouchHelper; import com.example.haikal.materialdesign2.R; public class DragAndSwipeRecyclerViewActivity extends AppCompatActivity { private RecyclerViewAdapter recyclerViewAdapter; private RecyclerView recyclerView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_drag_and_swipe_recycler_view); recyclerView= (RecyclerView)findViewById(R.id.recyclerView_DragAndSwipe); recyclerView.setHasFixedSize(true); recyclerView.setLayoutManager(new LinearLayoutManager(getBaseContext())); recyclerViewAdapter = new RecyclerViewAdapter(); recyclerView.setAdapter(recyclerViewAdapter); ItemTouchHelper.Callback callback = new SimpleTouchAdapterHelperCallback(recyclerViewAdapter); ItemTouchHelper itemTouchHelper= new ItemTouchHelper(callback); itemTouchHelper.attachToRecyclerView(recyclerView); SwipeRefreshLayout swipeRefreshLayout = (SwipeRefreshLayout)findViewById(R.id.swipeRefresh); swipeRefreshLayout.setColorSchemeResources(R.color.colorIndigo, R.color.colorPink, R.color.colorLime); swipeRefreshLayout.setRefreshing(false); swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { swipeRefreshLayout.setRefreshing(true); (new Handler()).postDelayed(new Runnable() { @Override public void run() { swipeRefreshLayout.setRefreshing(false); } },300); } }); } }
[ "michaelhaikal31@gmail.com" ]
michaelhaikal31@gmail.com
8412fe72e063e00f3276665558a90e7f7cbb56aa
3b0c9581c3dc3a4e870ba5861f818b3f6f3f8282
/src/main/java/com/br/donna/service/AuditEventService.java
07c35b57068663c6a3e54dc2a15f558d3d3d0824
[]
no_license
gustavocaraciolo/donnajuri
f4ebb8c196feb8d2f0828b730d8f11d015c97332
6566d7422cc6289e475dae2477dbe4cf4a3721da
refs/heads/master
2022-12-18T01:11:53.174448
2017-11-17T18:27:20
2017-11-17T18:27:20
110,954,576
0
1
null
2020-09-18T08:18:16
2017-11-16T09:59:13
Java
UTF-8
Java
false
false
1,764
java
package com.br.donna.service; import com.br.donna.config.audit.AuditEventConverter; import com.br.donna.repository.PersistenceAuditEventRepository; import org.springframework.boot.actuate.audit.AuditEvent; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.time.Instant; import java.util.Optional; /** * Service for managing audit events. * <p> * This is the default implementation to support SpringBoot Actuator AuditEventRepository */ @Service @Transactional public class AuditEventService { private final PersistenceAuditEventRepository persistenceAuditEventRepository; private final AuditEventConverter auditEventConverter; public AuditEventService( PersistenceAuditEventRepository persistenceAuditEventRepository, AuditEventConverter auditEventConverter) { this.persistenceAuditEventRepository = persistenceAuditEventRepository; this.auditEventConverter = auditEventConverter; } public Page<AuditEvent> findAll(Pageable pageable) { return persistenceAuditEventRepository.findAll(pageable) .map(auditEventConverter::convertToAuditEvent); } public Page<AuditEvent> findByDates(Instant fromDate, Instant toDate, Pageable pageable) { return persistenceAuditEventRepository.findAllByAuditEventDateBetween(fromDate, toDate, pageable) .map(auditEventConverter::convertToAuditEvent); } public Optional<AuditEvent> find(Long id) { return Optional.ofNullable(persistenceAuditEventRepository.findOne(id)).map (auditEventConverter::convertToAuditEvent); } }
[ "gustavocaraciolo@gmail.com" ]
gustavocaraciolo@gmail.com
e0ac2df85a141de98504e39d92810a2e7ae5aeb8
1917d8eb41dcc1e1c28378865750c4870255eb03
/cjw/src/main/java/com/cjw/dao/UserDao.java
ec40650c41d8e24d2c79c46f37abb77a90008534
[ "MIT" ]
permissive
chrisqu97/cjw_all
40c1ef614b785c38e132602b4e516de65d61a24f
a4e03b7584a4ad2b73fbd6fcf22b2f8512bc39e8
refs/heads/master
2020-03-28T05:59:33.378680
2018-11-28T10:48:45
2018-11-28T10:48:45
147,807,885
0
0
MIT
2018-09-28T08:36:09
2018-09-07T10:18:59
JavaScript
UTF-8
Java
false
false
2,291
java
package com.cjw.dao; import com.cjw.common.Constant; import com.cjw.dao.entity.User; import com.cjw.dao.entity.UserExample; import com.cjw.dao.mapper.UserMapper; import com.cjw.utils.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.List; @Component public class UserDao { @Autowired private UserMapper userMapper; public User add(User user) { userMapper.insert(user); return user; } public int update(User user) { return userMapper.updateByPrimaryKey(user); } public User findById(Integer id) { UserExample example = new UserExample(); example.createCriteria() .andUserIdEqualTo(id) .andStateEqualTo(Constant.State.VALUE); List<User> users = userMapper.selectByExample(example); if (CollectionUtils.isNotEmpty(users)) { return users.get(0); } return null; } public User findByOpenId(String openId) { UserExample example = new UserExample(); example.createCriteria() .andOpenIdEqualTo(openId) .andStateEqualTo(Constant.State.VALUE); List<User> users = userMapper.selectByExample(example); if (CollectionUtils.isNotEmpty(users)) { return users.get(0); } return null; } public List<User> findAll() { UserExample example = new UserExample(); example.createCriteria().andStateEqualTo(Constant.State.VALUE); List<User> users = userMapper.selectByExample(example); if (CollectionUtils.isNotEmpty(users)) { return users; } return null; } public Integer countAll() { UserExample example = new UserExample(); example.createCriteria().andStateEqualTo(Constant.State.VALUE); return userMapper.countByExample(example); } public int ifExistUser(Integer userId, String sessionKey) { return userMapper.ifExistUser(userId, sessionKey); } public List<User> getUserIdAndUserName() { return userMapper.getUserIdAndUserName(); } public List<Integer> getAllUserIds() { return userMapper.getAllUserIds(); } }
[ "392788234@qq.com" ]
392788234@qq.com
93d6108a3523a839b61251af0327c09714a0152b
27bd01197bf5019f0924ae9e2a0eb851b8d1cba6
/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/Etunit/impl/TestcaseTypeImpl.java
bc26c7eb6da93c46f0a7e2594a4eff2dd030161c
[]
no_license
florianbehrens/etrice
daa1e9b03a03d4617131634210391135d758dab8
e56b926de863ea97af54427db6321d988ebdabda
refs/heads/master
2020-03-25T11:42:34.034505
2017-10-22T17:44:31
2017-10-22T17:44:31
143,744,322
0
0
null
2018-08-06T14:59:58
2018-08-06T14:59:58
null
UTF-8
Java
false
false
11,412
java
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.etrice.etunit.converter.Etunit.impl; import java.math.BigDecimal; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.eclipse.etrice.etunit.converter.Etunit.ErrorType; import org.eclipse.etrice.etunit.converter.Etunit.EtunitPackage; import org.eclipse.etrice.etunit.converter.Etunit.FailureType; import org.eclipse.etrice.etunit.converter.Etunit.TestcaseType; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Testcase Type</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getError <em>Error</em>}</li> * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getFailure <em>Failure</em>}</li> * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getClassname <em>Classname</em>}</li> * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getName <em>Name</em>}</li> * <li>{@link org.eclipse.etrice.etunit.converter.Etunit.impl.TestcaseTypeImpl#getTime <em>Time</em>}</li> * </ul> * </p> * * @generated */ public class TestcaseTypeImpl extends EObjectImpl implements TestcaseType { /** * The cached value of the '{@link #getError() <em>Error</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getError() * @generated * @ordered */ protected ErrorType error; /** * The cached value of the '{@link #getFailure() <em>Failure</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getFailure() * @generated * @ordered */ protected FailureType failure; /** * The default value of the '{@link #getClassname() <em>Classname</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getClassname() * @generated * @ordered */ protected static final String CLASSNAME_EDEFAULT = null; /** * The cached value of the '{@link #getClassname() <em>Classname</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getClassname() * @generated * @ordered */ protected String classname = CLASSNAME_EDEFAULT; /** * The default value of the '{@link #getName() <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getName() <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getName() * @generated * @ordered */ protected String name = NAME_EDEFAULT; /** * The default value of the '{@link #getTime() <em>Time</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTime() * @generated * @ordered */ protected static final BigDecimal TIME_EDEFAULT = null; /** * The cached value of the '{@link #getTime() <em>Time</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTime() * @generated * @ordered */ protected BigDecimal time = TIME_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected TestcaseTypeImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return EtunitPackage.Literals.TESTCASE_TYPE; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ErrorType getError() { return error; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetError(ErrorType newError, NotificationChain msgs) { ErrorType oldError = error; error = newError; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__ERROR, oldError, newError); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setError(ErrorType newError) { if (newError != error) { NotificationChain msgs = null; if (error != null) msgs = ((InternalEObject)error).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__ERROR, null, msgs); if (newError != null) msgs = ((InternalEObject)newError).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__ERROR, null, msgs); msgs = basicSetError(newError, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__ERROR, newError, newError)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public FailureType getFailure() { return failure; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetFailure(FailureType newFailure, NotificationChain msgs) { FailureType oldFailure = failure; failure = newFailure; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__FAILURE, oldFailure, newFailure); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setFailure(FailureType newFailure) { if (newFailure != failure) { NotificationChain msgs = null; if (failure != null) msgs = ((InternalEObject)failure).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__FAILURE, null, msgs); if (newFailure != null) msgs = ((InternalEObject)newFailure).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EtunitPackage.TESTCASE_TYPE__FAILURE, null, msgs); msgs = basicSetFailure(newFailure, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__FAILURE, newFailure, newFailure)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getClassname() { return classname; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setClassname(String newClassname) { String oldClassname = classname; classname = newClassname; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__CLASSNAME, oldClassname, classname)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__NAME, oldName, name)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BigDecimal getTime() { return time; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTime(BigDecimal newTime) { BigDecimal oldTime = time; time = newTime; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EtunitPackage.TESTCASE_TYPE__TIME, oldTime, time)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EtunitPackage.TESTCASE_TYPE__ERROR: return basicSetError(null, msgs); case EtunitPackage.TESTCASE_TYPE__FAILURE: return basicSetFailure(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case EtunitPackage.TESTCASE_TYPE__ERROR: return getError(); case EtunitPackage.TESTCASE_TYPE__FAILURE: return getFailure(); case EtunitPackage.TESTCASE_TYPE__CLASSNAME: return getClassname(); case EtunitPackage.TESTCASE_TYPE__NAME: return getName(); case EtunitPackage.TESTCASE_TYPE__TIME: return getTime(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case EtunitPackage.TESTCASE_TYPE__ERROR: setError((ErrorType)newValue); return; case EtunitPackage.TESTCASE_TYPE__FAILURE: setFailure((FailureType)newValue); return; case EtunitPackage.TESTCASE_TYPE__CLASSNAME: setClassname((String)newValue); return; case EtunitPackage.TESTCASE_TYPE__NAME: setName((String)newValue); return; case EtunitPackage.TESTCASE_TYPE__TIME: setTime((BigDecimal)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case EtunitPackage.TESTCASE_TYPE__ERROR: setError((ErrorType)null); return; case EtunitPackage.TESTCASE_TYPE__FAILURE: setFailure((FailureType)null); return; case EtunitPackage.TESTCASE_TYPE__CLASSNAME: setClassname(CLASSNAME_EDEFAULT); return; case EtunitPackage.TESTCASE_TYPE__NAME: setName(NAME_EDEFAULT); return; case EtunitPackage.TESTCASE_TYPE__TIME: setTime(TIME_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EtunitPackage.TESTCASE_TYPE__ERROR: return error != null; case EtunitPackage.TESTCASE_TYPE__FAILURE: return failure != null; case EtunitPackage.TESTCASE_TYPE__CLASSNAME: return CLASSNAME_EDEFAULT == null ? classname != null : !CLASSNAME_EDEFAULT.equals(classname); case EtunitPackage.TESTCASE_TYPE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case EtunitPackage.TESTCASE_TYPE__TIME: return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (classname: "); result.append(classname); result.append(", name: "); result.append(name); result.append(", time: "); result.append(time); result.append(')'); return result.toString(); } } //TestcaseTypeImpl
[ "ts@protos.de" ]
ts@protos.de