blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
390
content_id
stringlengths
40
40
detected_licenses
listlengths
0
35
license_type
stringclasses
2 values
repo_name
stringlengths
6
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
539 values
visit_date
timestamp[us]date
2016-08-02 21:09:20
2023-09-06 10:10:07
revision_date
timestamp[us]date
1990-01-30 01:55:47
2023-09-05 21:45:37
committer_date
timestamp[us]date
2003-07-12 18:48:29
2023-09-05 21:45:37
github_id
int64
7.28k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
13 values
gha_event_created_at
timestamp[us]date
2012-06-11 04:05:37
2023-09-14 21:59:18
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-28 02:39:21
gha_language
stringclasses
62 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
128
12.8k
extension
stringclasses
11 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
79
55b7cc59bb7bda34252ee11eb5fa5ccacb87b764
805b2a791ec842e5afdd33bb47ac677b67741f78
/Mage.Sets/src/mage/sets/tempest/ChargingRhino.java
a8a597da627d95ce92fce0518aa9aab1da0dadf3
[]
no_license
klayhamn/mage
0d2d3e33f909b4052b0dfa58ce857fbe2fad680a
5444b2a53beca160db2dfdda0fad50e03a7f5b12
refs/heads/master
2021-01-12T19:19:48.247505
2015-08-04T20:25:16
2015-08-04T20:25:16
39,703,242
2
0
null
2015-07-25T21:17:43
2015-07-25T21:17:42
null
UTF-8
Java
false
false
2,793
java
/* * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``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 BetaSteward_at_googlemail.com 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. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of BetaSteward_at_googlemail.com. */ package mage.sets.tempest; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.common.combat.CantBeBlockedByMoreThanOneSourceEffect; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; import mage.constants.Zone; /** * * @author LevelX2 */ public class ChargingRhino extends CardImpl { public ChargingRhino(UUID ownerId) { super(ownerId, 112, "Charging Rhino", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{3}{G}{G}"); this.expansionSetCode = "TMP"; this.subtype.add("Rhino"); this.power = new MageInt(4); this.toughness = new MageInt(4); // Charging Rhino can't be blocked by more than one creature. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByMoreThanOneSourceEffect())); } public ChargingRhino(final ChargingRhino card) { super(card); } @Override public ChargingRhino copy() { return new ChargingRhino(this); } }
[ "ludwig.hirth@online.de" ]
ludwig.hirth@online.de
392509a45d65ed6ca1f6f557c6fc94acedf0463d
c3d086357565983997d3d4c1c6890266e5607c97
/data/ganttproject/ganttproject-1.10/net/sourceforge/ganttproject/GanttCalendar.java
133927a271c9dcc3f2cd083381ca9556c1e51232
[ "MIT" ]
permissive
hrahmadi71/MultiRefactor
39ab0f4900f27e2b021e48af590f767495f01077
99a15c96d045aa0b798d3d364ecb49153361a5a9
refs/heads/master
2022-11-25T14:27:37.678256
2020-07-27T02:58:13
2020-07-27T02:58:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,102
java
/*************************************************************************** GanttCalendar.java - description ------------------- begin : dec 2002 copyright : (C) 2002 by Thomas Alexandre email : alexthomas(at)ganttproject.org ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ package net.sourceforge.ganttproject; import java.io.Serializable; import java.util.Calendar; import java.util.Date; import net.sourceforge.ganttproject.language.GanttLanguage; import net.sourceforge.ganttproject.time.gregorian.GregorianCalendar; /** * Class use for calendar */ public class GanttCalendar extends GregorianCalendar implements Serializable, Comparable { private GanttLanguage language = GanttLanguage.getInstance(); private boolean isFixed; public boolean isFixed() { return isFixed; } public void setFixed(boolean fixed) { isFixed = fixed; } /** Default constructor */ public GanttCalendar () { super(); } /** Constructor with a year, a month and a day */ public GanttCalendar (int year, int month, int date) { super(year, month, date); } /** Copy constructor */ public GanttCalendar (GanttCalendar g) { super(g.getYear(), g.getMonth(), g.getDate()); } public GanttCalendar (Date date) { super(); setTime(date); } ////////////////////////////////////////////////////////////////////////////////////////////////////// public static GanttCalendar parseXMLDate(String s) { GanttCalendar tmp = new GanttCalendar(); //Get "/" caracters int fb=s.indexOf('/'); int sb=s.indexOf('/',fb+1); //Get all fiels String d = s.substring(0,fb); String m = s.substring(fb+1,sb); String y = s.substring(sb+1); //Set the date tmp.set(Calendar.YEAR, new Integer(y).hashCode()); tmp.set(Calendar.MONTH, new Integer(m).hashCode()-1); tmp.set(Calendar.DATE, new Integer(d).hashCode()); return tmp; } /** Return a clone of the calendar */ public GanttCalendar Clone() { GanttCalendar clone = new GanttCalendar(getYear(), getMonth(), getDay()); clone.setFixed(isFixed()); return clone; } /** Return the date to A string */ public String toString () { return (language.formatDate(this)); } public String toXMLString() { return getDate() + "/" + (getMonth() + 1) + "/" + getYear(); } /** Return the year */ public int getYear() { return this.get(Calendar.YEAR); } /** Return the month */ public int getMonth() { return this.get(Calendar.MONTH); } /** Return the day */ public int getDate() { return this.get(Calendar.DATE); } /** Return the day */ public int getDay() { return this.get(Calendar.DAY_OF_MONTH ); } /** Return the number of the day on the week */ public int getDayWeek() { return this.get(Calendar.DAY_OF_WEEK ); } /** Return the numbner of the week on the year */ public int getWeek() { return this.get(Calendar.WEEK_OF_YEAR ); } /** Return an array with all name of month */ public String [] getDayMonthLanguage() { String [] res = new String [12]; for(int i=0;i<12;i++) res[i] = language.getMonth(i); return res; } /** Return an array with all name of day */ public String [] getDayWeekLanguage() { String [] res = new String [7]; for(int i=0;i<7;i++) res[i] = language.getDay(i); return res; } /** Change the year of the date */ public void setYear(int y) { this.set(Calendar.YEAR, y); } /** Change the month of the date */ public void setMonth(int m) { this.set(Calendar.MONTH, m); } /** Change the date of the date */ public void setDay(int d) { this.set(Calendar.DAY_OF_MONTH, d); } /** Add a number of day to the current date */ public void add (int dayNumber) { this.add(Calendar.DATE, dayNumber); } /** Change the year of the date, and return a copy */ public GanttCalendar newAdd (int dayNumber) { GanttCalendar gc = new GanttCalendar(getYear(), getMonth(), getDate()); gc.add(Calendar.DATE, dayNumber); return gc; } /** Return the difference (in day) between two date */ public int diff( GanttCalendar d ) { int res=0; GanttCalendar d1; GanttCalendar d2; if(this.compareTo(d)==0) return res; else if(compareTo(d)<0) { d1 = this.Clone(); d2 = new GanttCalendar(d); } else { d1 = new GanttCalendar(d); d2 = this.Clone(); } while(d1.compareTo(d2)!=0) { d1.add(1); res++; } return res; } /** Return the string of the month. */ public String getdayMonth() { return language.getMonth(getMonth()); } /** Return the string of the day. */ public String getdayWeek() {return language.getDay(this.get(Calendar.DAY_OF_WEEK)-1);} /** Return the number of day on the month */ public int getNumberOfDay() { return this.getActualMaximum(Calendar.DATE); } /** * This function returns the signal represented by an int **/ private int module(int number){ if (number > 0) return 1; else if (number < 0) return -1; else return 0; } /** This function compare two date * @return 0 If the two date are equals * @return -1 if the date is before when * @return 1 if the date is after when */ public int compareTo (GanttCalendar when) { int[] comparissons = { Calendar.YEAR , Calendar.MONTH , Calendar.DATE }; for (int i = 0; i < comparissons.length ; i++){ switch (module(this.get(comparissons[i]) - when.get(comparissons[i]))){ case -1: return -1; case 1: return 1; default: break; } } return 0; } /** Is the date equals to when */ public boolean equals (GanttCalendar when) { return getYear() == when.getYear() && getMonth() == when.getMonth() && getDay() == when.getDay() ; } /** Change date to next month. */ public void goNextMonth() { this.add(Calendar.MONTH,1); } /** Change date to previous month. */ public void goPrevMonth() { this.add(Calendar.MONTH,-1); } /**Change the value of a filed */ public void go (int field, int value) { this.add(field,value); } /** Return the actually date */ public static String getDateAndTime() { GanttCalendar c= new GanttCalendar(); return c.toString() + " - " + GanttLanguage.getInstance().formatTime(c); } public int compareTo(Object o) { return compareTo((GanttCalendar)o); } }
[ "40020843@eeecs.qub.ac.uk" ]
40020843@eeecs.qub.ac.uk
4faa394edf503380802240c80058a5e865d0ac38
49d4bd08f8dbeca63a5df0c0017da53a9416655b
/metrics4j/src/test/java/org/kairosdb/metrics4j/collectors/LongGaugeTest.java
fe3a9022195db23c69805fd9fd7c9d6c00a757b0
[ "Apache-2.0" ]
permissive
kairosdb/metrics4j
4f169a853cc6164f6ba96cf114bc0c0e5d9aca32
5e60680c2c08a0b065db3e2af8a5d2cfd9cfbc87
refs/heads/master
2023-06-22T22:56:08.093115
2022-12-27T21:40:49
2022-12-27T21:40:49
151,353,422
5
2
Apache-2.0
2023-09-01T18:10:08
2018-10-03T02:56:34
Java
UTF-8
Java
false
false
1,324
java
package org.kairosdb.metrics4j.collectors; import org.junit.jupiter.api.Test; import org.kairosdb.metrics4j.collectors.impl.LongGauge; import org.kairosdb.metrics4j.reporting.LongValue; import org.kairosdb.metrics4j.reporting.MetricReporter; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; class LongGaugeTest { @Test public void testGauge() { MetricReporter reporter = mock(MetricReporter.class); LongGauge gauge = new LongGauge(); gauge.put(1); gauge.put(3); gauge.put(2); gauge.reportMetric(reporter); gauge.reportMetric(reporter); verify(reporter, times(2)).put("gauge", new LongValue(2)); gauge.put(1); gauge.put(2); gauge.put(3); gauge.reportMetric(reporter); verify(reporter).put("gauge", new LongValue(3)); } @Test public void testResetGauge() { MetricReporter reporter = mock(MetricReporter.class); LongGauge gauge = new LongGauge(true); gauge.put(1); gauge.put(3); gauge.put(2); gauge.reportMetric(reporter); verify(reporter).put("gauge", new LongValue(2)); gauge.reportMetric(reporter); verify(reporter).put("gauge", new LongValue(0)); gauge.put(1); gauge.put(2); gauge.put(3); gauge.reportMetric(reporter); verify(reporter).put("gauge", new LongValue(3)); } }
[ "brianhks1@gmail.com" ]
brianhks1@gmail.com
a2e5ac899ce4615dfda943ab5eee89f51ba19df7
0f7817e268c6b03f8db596ae63f749f3a396cfc1
/src/main/java/com/thoughtworks/star/entity/Privilege.java
70f49452206613e23c1f58673834140d670db964
[]
no_license
dhlpj/learn_springboot
2dac8e80aefbd122f524d976fc5575231b207275
17c702ffd73973023ea6fb1ef756bc3697c4c9a9
refs/heads/master
2020-08-27T06:27:20.643824
2019-10-30T09:34:41
2019-10-30T09:34:41
217,269,766
0
0
null
null
null
null
UTF-8
Java
false
false
953
java
package com.thoughtworks.star.entity; import lombok.*; import javax.persistence.*; import java.io.Serializable; @Setter @Getter @Entity @Builder @NoArgsConstructor @AllArgsConstructor @ToString @Table(name = "t_privilege") public class Privilege implements Serializable { public enum Symbol { RETRIEVE_USER("查看用户"), CREATE_USER("创建用户"), UPDATE_USER("更改用户"), DELETE_USER("删除用户"), RETRIEVE_ORDER("查看订单"); private String description; Symbol(String description) { this.description = description; } public String description() { return description; } } @Id @Column(unique = true) @Enumerated(EnumType.STRING) private Symbol symbol; private String name; public void setSymbol(Symbol symbol) { this.symbol = symbol; this.name = symbol.description(); } }
[ "sjyuan@thoughtworks.com" ]
sjyuan@thoughtworks.com
12c851cec259c8d71b4421f7be7c8c13ffbfc25c
034dd8550e48d4b7dfd26fae7bbbfe25a23706d0
/subprojects/autokomercKarting/src/main/MainGameLoop.java
ebd90f20491383bfa2f23257cbe81aec161f4e11
[]
no_license
dtrajko/lwjgl_game
3182a970fc542dc1fb1e606f7c72349d8934e354
91e7e01930f411af3ddc545ce742c6eebf2f5d95
refs/heads/master
2021-05-12T03:02:43.863050
2020-05-01T23:36:35
2020-05-01T23:36:35
117,606,702
1
0
null
null
null
null
UTF-8
Java
false
false
3,595
java
package main; import java.util.ArrayList; import java.util.List; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL30; import org.lwjgl.util.vector.Vector3f; import org.lwjgl.util.vector.Vector4f; import entities.Camera; import entities.Entity; import entities.Light; import entities.Player; import input.GamepadManager; import input.InputHelper; import models.RawModel; import models.TexturedModel; import objConverter.OBJFileLoader; import renderEngine.DisplayManager; import renderEngine.Loader; import renderEngine.MasterRenderer; import sunRenderer.Sun; import sunRenderer.SunRenderer; import renderEngine.Game; import terrains.Terrain; import textures.ModelTexture; import textures.TerrainTexture; import textures.TerrainTexturePack; import textures.Texture; import utils.MyFile; public class MainGameLoop { public static void main(String[] args) { List<Entity> entities = new ArrayList<Entity>(); List<Terrain> terrains = new ArrayList<Terrain>(); List<Light> lights = new ArrayList<Light>(); DisplayManager.createDisplay(); Loader loader = new Loader(); /**************** BEGIN TERRAIN TEXTURE STUFF ****************/ TerrainTexture backgroundTexture = new TerrainTexture(loader.loadTexture("race/black_background")); TerrainTexture rTexture = new TerrainTexture(loader.loadTexture("race/red_curb")); TerrainTexture gTexture = new TerrainTexture(loader.loadTexture("race/blue_asfalt")); TerrainTexture bTexture = new TerrainTexture(loader.loadTexture("race/blue_asfalt")); TerrainTexturePack texturePack = new TerrainTexturePack(backgroundTexture, rTexture, gTexture, bTexture); TerrainTexture blendMap = new TerrainTexture(loader.loadTexture("race/race_track_blend_map")); /**************** END TERRAIN TEXTURE STUFF ****************/ // terrains Terrain terrain = new Terrain(-1f, -1f, loader, texturePack, blendMap, "race/race_track_heightmap"); // player RawModel steveModelRaw = OBJFileLoader.loadOBJ("steve", loader); TexturedModel steveModel = new TexturedModel(steveModelRaw, new ModelTexture(loader.loadTexture("steve"))); Player player = new Player(steveModel, new Vector3f(-285, terrain.getHeightOfTerrain(-285, -70) + 2, -70), 0, 180, 0, 0.5f); // camera Camera camera = new Camera(player, terrain); camera.togglePerspective(); // switch to first person perspective MasterRenderer renderer = new MasterRenderer(loader, camera); GamepadManager.init(); // lights Light sun_light = new Light(new Vector3f(-1500, 1000, -1500), new Vector3f(1f, 1f, 1f)); // world light (sun) lights.add(sun_light); terrains.add(terrain); entities.add(player); //init sun and set sun direction MyFile flareFolder = new MyFile("res", "lensFlare"); Texture sun = Texture.newTexture(new MyFile(flareFolder, "sun.png")).normalMipMap().create(); Sun theSun = new Sun(sun, 40); SunRenderer sunRenderer = new SunRenderer(); theSun.setDirection(WorldSettings.LIGHT_DIR); DisplayManager.startFPS(); while(!Display.isCloseRequested()) { DisplayManager.updateFPS(); DisplayManager.updateDisplayMode(); DisplayManager.updateDisplay(); InputHelper.update(); Game.checkIfRunning(); if (Game.isRunning()) { player.move(terrain, camera); camera.move(); GL11.glDisable(GL30.GL_CLIP_DISTANCE0); renderer.renderScene(entities, terrains, lights, camera, new Vector4f(0, -1, 0, 100000)); sunRenderer.render(theSun, camera); } } sunRenderer.cleanUp(); renderer.cleanUp(); loader.cleanUp(); DisplayManager.closeDisplay(); } }
[ "dtrajko@gmail.com" ]
dtrajko@gmail.com
7c4ccb6fc288d710e55affc20aeb09ae07f21a18
0af8b92686a58eb0b64e319b22411432aca7a8f3
/api-vs-impl-small/app/src/main/java/org/gradle/testapp/performancenull_47/Productionnull_4659.java
319c9996e10b632549a078de2dfd1dcc7d2d7fc1
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
588
java
package org.gradle.testapp.performancenull_47; public class Productionnull_4659 { private final String property; public Productionnull_4659(String param) { this.property = param; } public String getProperty() { return property; } private String prop0; public String getProp0() { return prop0; } public void setProp0(String value) { prop0 = value; } private String prop1; public String getProp1() { return prop1; } public void setProp1(String value) { prop1 = value; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
1fadb1ba66ad7254e89e6ebbe88ee4aeb39fb9ec
5112b1d7720a6b72aaa6763f2d3616f6abb37236
/common-component/v2.3.2/src/main/java/egovframework/com/sym/ccm/adc/service/AdministCodeVO.java
95484d19e0c5e8a6a4c12ea9b8c055ef7b1512cd
[]
no_license
dasomel/egovframework
1c5435f7b5ce6834379ec7f66cc546db18862b0b
a2fcdbf0a0a98e5a2ab8a3193f33cab9f1cd26e7
refs/heads/master
2021-06-03T10:44:26.848513
2020-11-03T07:27:05
2020-11-03T07:27:05
24,672,345
3
3
null
null
null
null
UTF-8
Java
false
false
4,026
java
package egovframework.com.sym.ccm.adc.service; import java.io.Serializable; /** * * 행정코드 VO 클래스 * @author 공통서비스 개발팀 이중호 * @since 2009.04.01 * @version 1.0 * @see * * <pre> * << 개정이력(Modification Information) >> * * 수정일 수정자 수정내용 * ------- -------- --------------------------- * 2009.04.01 이중호 최초 생성 * * </pre> */ public class AdministCodeVO extends AdministCode implements Serializable { /** 검색조건 */ private String searchCondition = ""; /** 검색Keyword */ private String searchKeyword = ""; /** 검색사용여부 */ private String searchUseYn = ""; /** 현재페이지 */ private int pageIndex = 1; /** 페이지갯수 */ private int pageUnit = 10; /** 페이지사이즈 */ private int pageSize = 10; /** firstIndex */ private int firstIndex = 1; /** lastIndex */ private int lastIndex = 1; /** recordCountPerPage */ private int recordCountPerPage = 10; /** * searchCondition attribute 를 리턴한다. * @return String */ public String getSearchCondition() { return searchCondition; } /** * searchCondition attribute 값을 설정한다. * @param searchCondition String */ public void setSearchCondition(String searchCondition) { this.searchCondition = searchCondition; } /** * searchKeyword attribute 를 리턴한다. * @return String */ public String getSearchKeyword() { return searchKeyword; } /** * searchKeyword attribute 값을 설정한다. * @param searchKeyword String */ public void setSearchKeyword(String searchKeyword) { this.searchKeyword = searchKeyword; } /** * searchUseYn attribute 를 리턴한다. * @return String */ public String getSearchUseYn() { return searchUseYn; } /** * searchUseYn attribute 값을 설정한다. * @param searchUseYn String */ public void setSearchUseYn(String searchUseYn) { this.searchUseYn = searchUseYn; } /** * pageIndex attribute 를 리턴한다. * @return int */ public int getPageIndex() { return pageIndex; } /** * pageIndex attribute 값을 설정한다. * @param pageIndex int */ public void setPageIndex(int pageIndex) { this.pageIndex = pageIndex; } /** * pageUnit attribute 를 리턴한다. * @return int */ public int getPageUnit() { return pageUnit; } /** * pageUnit attribute 값을 설정한다. * @param pageUnit int */ public void setPageUnit(int pageUnit) { this.pageUnit = pageUnit; } /** * pageSize attribute 를 리턴한다. * @return int */ public int getPageSize() { return pageSize; } /** * pageSize attribute 값을 설정한다. * @param pageSize int */ public void setPageSize(int pageSize) { this.pageSize = pageSize; } /** * firstIndex attribute 를 리턴한다. * @return int */ public int getFirstIndex() { return firstIndex; } /** * firstIndex attribute 값을 설정한다. * @param firstIndex int */ public void setFirstIndex(int firstIndex) { this.firstIndex = firstIndex; } /** * lastIndex attribute 를 리턴한다. * @return int */ public int getLastIndex() { return lastIndex; } /** * lastIndex attribute 값을 설정한다. * @param lastIndex int */ public void setLastIndex(int lastIndex) { this.lastIndex = lastIndex; } /** * recordCountPerPage attribute 를 리턴한다. * @return int */ public int getRecordCountPerPage() { return recordCountPerPage; } /** * recordCountPerPage attribute 값을 설정한다. * @param recordCountPerPage int */ public void setRecordCountPerPage(int recordCountPerPage) { this.recordCountPerPage = recordCountPerPage; } }
[ "dasomell@gmail.com" ]
dasomell@gmail.com
559e6a6edfa0a9f8fd0893e7fe1542c9f7242534
36039da7fa435199ec205c8f72e30f0d383068bc
/iptv_minipad/src/com/pro/pojo/Result.java
38dad0030c6cd524dd314ec80b4d18c9cb57904a
[]
no_license
yfm049/yfmcode
e01cb931fa2c76c83ae8482dae919a61e43b7eee
12876498ceef55f8b6020ceaabda0b076db4eaf1
refs/heads/master
2021-01-22T17:57:43.452319
2015-08-20T13:48:26
2015-08-20T13:48:26
33,175,141
5
13
null
null
null
null
UTF-8
Java
false
false
380
java
package com.pro.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; @XStreamAlias("result") public class Result{ @XStreamAsAttribute public String ret; @XStreamAsAttribute public String reason; @XStreamAsAttribute public String op_clock_used; @XStreamAsAttribute public String op_clock_start; }
[ "yfm049@163.com" ]
yfm049@163.com
e86d4bad31996012d5e036922fce5a35be97f4ea
52fbe7a7ed03593c05356c469bdb858c68d391d0
/src/test/java/org/demo/test/InvoiceTransRelationEntityFactoryForTest.java
b49b2e3411c2dedc9f0dd537b4c3343daf1a9f6e
[]
no_license
altansenel/maven-project
4d165cb10da24159f58d083f4d5e4442ab3265b2
0f2e392553e5fb031235c9df776a4a01b077c349
refs/heads/master
2016-08-12T05:51:51.359531
2016-02-25T07:26:28
2016-02-25T07:26:28
52,504,851
0
0
null
null
null
null
UTF-8
Java
false
false
476
java
package org.demo.test; import org.demo.bean.jpa.InvoiceTransRelationEntity; public class InvoiceTransRelationEntityFactoryForTest { private MockValues mockValues = new MockValues(); public InvoiceTransRelationEntity newInvoiceTransRelationEntity() { Integer id = mockValues.nextInteger(); InvoiceTransRelationEntity invoiceTransRelationEntity = new InvoiceTransRelationEntity(); invoiceTransRelationEntity.setId(id); return invoiceTransRelationEntity; } }
[ "altan.senel@gunessigorta.com.tr" ]
altan.senel@gunessigorta.com.tr
887c731bd7d86815499d1bef4378a53be6e5ad8d
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/zhihu/android/api/model/EBookListParcelablePlease.java
1119374143681800f414b923a521ef316b04052d
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
475
java
package com.zhihu.android.api.model; import android.os.Parcel; class EBookListParcelablePlease { EBookListParcelablePlease() { } static void writeToParcel(EBookList eBookList, Parcel parcel, int i) { parcel.writeString(eBookList.name); parcel.writeInt(eBookList.count); } static void readFromParcel(EBookList eBookList, Parcel parcel) { eBookList.name = parcel.readString(); eBookList.count = parcel.readInt(); } }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
a16f921f0957a06b95c41c233f78c03498b495c1
e7c533864a230055846950cfa06bf2661ebe9a6e
/app/src/main/java/com/example/lenovo/hd_beijing_meseum/utils/AppUtil.java
35528591fd5998dbb78ed4bb483281938b0bfa23
[]
no_license
lliqiang/HD_BJGJZBWG
a1445fbfd28e4e91957ccd71727fc53606b57fb7
271a6a9901973bb38d2c824183694cff187b027d
refs/heads/master
2020-06-17T12:51:16.747363
2017-06-13T01:35:35
2017-06-13T01:35:35
94,156,395
0
0
null
null
null
null
UTF-8
Java
false
false
4,571
java
package com.example.lenovo.hd_beijing_meseum.utils; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.net.Uri; import java.util.List; /** * 作者:Tailyou (祝文飞) * 时间:2016/5/17 10:36 * 邮箱:tailyou@163.com * 描述: */ public class AppUtil { private AppUtil() { /* cannot be instantiated */ throw new UnsupportedOperationException("cannot be instantiated"); } /** * 获取应用程序名称 */ public static String getAppName(Context context) { try { PackageManager packageManager = context.getPackageManager(); PackageInfo packageInfo = packageManager.getPackageInfo( context.getPackageName(), 0); int labelRes = packageInfo.applicationInfo.labelRes; return context.getResources().getString(labelRes); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return null; } /** * 获取应用程序版本名称 * * @param context * @return */ public static String getVersionName(Context context) { try { PackageManager packageManager = context.getPackageManager(); PackageInfo packageInfo = packageManager.getPackageInfo( context.getPackageName(), 0); return packageInfo.versionName; } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return null; } /** * 获取应用程序版本号 * * @param context * @return */ public static int getVersionCode(Context context) { try { PackageManager packageManager = context.getPackageManager(); PackageInfo packageInfo = packageManager.getPackageInfo( context.getPackageName(), 0); return packageInfo.versionCode; } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); return 0; } } /** * 安装apk文件 * * @param context * @param apkPath */ public static void installApk(Context context, String apkPath) { Intent installIntent = new Intent(Intent.ACTION_VIEW); installIntent.setDataAndType( Uri.parse("file://" + apkPath), "application/vnd.android.package-archive"); installIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(installIntent); } /** * 根据指定报名检查程序是否安装 * * @param context * @param packageName * @return */ public static boolean checkInstallByPackageName(Context context, String packageName) { PackageInfo packageInfo = null; try { packageInfo = context.getPackageManager().getPackageInfo(packageName, 0); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return packageInfo != null; } /** * 根据包名启动应用 * * @param context * @param packageName */ public static void startAppWithPackageName(Context context, String packageName) { PackageInfo packageinfo = null; try { packageinfo = context.getPackageManager().getPackageInfo(packageName, 0); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } if (packageinfo == null) { return; } Intent resolveIntent = new Intent(Intent.ACTION_MAIN, null); resolveIntent.addCategory(Intent.CATEGORY_LAUNCHER); resolveIntent.setPackage(packageinfo.packageName); List<ResolveInfo> resolveInfoList = context.getPackageManager() .queryIntentActivities(resolveIntent, 0); ResolveInfo resolveinfo = resolveInfoList.iterator().next(); if (resolveinfo != null) { String pcgName = resolveinfo.activityInfo.packageName; String className = resolveinfo.activityInfo.name; Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName(pcgName, className); intent.setComponent(cn); context.startActivity(intent); } } }
[ "13821062095@163.com" ]
13821062095@163.com
aa52541dd5f88a5fa3386bd81de8b5c77951649e
b58bc2afe95484bf0623e5b4da99509fc1b0c346
/Src-ActionBar-Search/java/activity/ExampleActivity.java
63f65cc8a3bd05c8c873f956b120a3518e012433
[ "Apache-2.0" ]
permissive
fnastyCalvin/Android-Templates-And-Utilities
0660c358e3cacb83227c18ffada2356cc3991e78
c3a741a13dcaea49d34c31c0b51ecfc2e1fb43c8
refs/heads/master
2020-05-20T12:59:13.143992
2015-03-22T00:01:18
2015-03-22T00:01:18
33,596,794
1
0
null
2015-04-08T09:15:01
2015-04-08T09:15:01
null
UTF-8
Java
false
false
4,266
java
package com.example.activity; import android.app.SearchManager; import android.database.Cursor; import android.database.MatrixCursor; import android.os.Bundle; import android.provider.BaseColumns; import android.support.v4.view.MenuItemCompat; import android.support.v7.app.ActionBarActivity; import android.support.v7.widget.SearchView; import android.support.v7.widget.SearchView.OnQueryTextListener; import android.support.v7.widget.SearchView.OnSuggestionListener; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.widget.AutoCompleteTextView; import android.widget.Toast; import com.example.R; import com.example.adapter.SearchSuggestionAdapter; public class ExampleActivity extends ActionBarActivity { private final String[] SEARCH_SUGGESTION_CURSOR_COLUMNS = { BaseColumns._ID, SearchManager.SUGGEST_COLUMN_TEXT_1, SearchManager.SUGGEST_COLUMN_TEXT_2 }; private SearchView mSearchView; private SearchSuggestionAdapter mSearchSuggestionAdapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_example); } @Override public boolean onCreateOptionsMenu(Menu menu) { // action bar menu MenuInflater menuInflater = getMenuInflater(); menuInflater.inflate(R.menu.menu_example, menu); // search view mSearchView = new SearchView(getSupportActionBar().getThemedContext()); setupSearchView(mSearchView); // search menu item MenuItem searchMenuItem = menu.add(Menu.NONE, Menu.NONE, 1, R.string.menu_search); searchMenuItem.setIcon(R.drawable.ic_menu_search); MenuItemCompat.setActionView(searchMenuItem, mSearchView); MenuItemCompat.setShowAsAction(searchMenuItem, MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW); return super.onCreateOptionsMenu(menu); } private void setupSearchView(SearchView searchView) { // search hint searchView.setQueryHint(getString(R.string.menu_search_hint)); // text color AutoCompleteTextView searchText = (AutoCompleteTextView) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text); searchText.setTextColor(getResources().getColor(R.color.global_text_primary_inverse)); searchText.setHintTextColor(getResources().getColor(R.color.global_text_secondary_inverse)); // suggestion listeners searchView.setOnQueryTextListener(new OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String query) { // TODO Toast.makeText(ExampleActivity.this, "search: " + query, Toast.LENGTH_SHORT).show(); return true; } @Override public boolean onQueryTextChange(String query) { if(query.length()>2) { updateSearchSuggestion(query); } return true; } }); searchView.setOnSuggestionListener(new OnSuggestionListener() { @Override public boolean onSuggestionSelect(int position) { return false; } @Override public boolean onSuggestionClick(int position) { Cursor cursor = (Cursor) mSearchSuggestionAdapter.getItem(position); String title = cursor.getString(cursor.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_1)); String subtitle = cursor.getString(cursor.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2)); // TODO Toast.makeText(ExampleActivity.this, "suggestion: " + title + " / " + subtitle, Toast.LENGTH_SHORT).show(); return true; } }); } private void updateSearchSuggestion(String query) { // cursor // TODO MatrixCursor cursor = new MatrixCursor(SEARCH_SUGGESTION_CURSOR_COLUMNS); cursor.addRow(new String[] { "1", query + "ica", "Lorem" }); cursor.addRow(new String[] { "2", query + "dam", "Ipsum" }); cursor.addRow(new String[] { "3", query + "rap", "Dolor" }); // searchview content if(mSearchSuggestionAdapter==null) { // create adapter mSearchSuggestionAdapter = new SearchSuggestionAdapter(this, cursor); // set adapter mSearchView.setSuggestionsAdapter(mSearchSuggestionAdapter); } else { // refill adapter mSearchSuggestionAdapter.refill(this, cursor); // set adapter mSearchView.setSuggestionsAdapter(mSearchSuggestionAdapter); } } }
[ "petr.nohejl@gmail.com" ]
petr.nohejl@gmail.com
dd2cc1611f9c5481ed407e57fe76252031c6a9d0
073c693a67aa7253e651d333663073ff99d26517
/src/main/java/no/stelar7/api/r4j/pojo/lol/replay/ReplayPlaybackInfo.java
a6c71ebcda15903559d869848a20f4dcabbd7747
[ "Apache-2.0" ]
permissive
owen1317/R4J
4dfc610f7232bd66358635399251bc197d86cc3f
03938b5c029af3fda3f8b813b86a9024122ebfe7
refs/heads/master
2022-10-16T07:56:12.342832
2020-06-14T00:36:14
2020-06-14T00:36:14
273,186,986
1
0
Apache-2.0
2020-06-18T08:44:58
2020-06-18T08:44:57
null
UTF-8
Java
false
false
1,887
java
package no.stelar7.api.r4j.pojo.lol.replay; import java.util.Objects; public class ReplayPlaybackInfo { /** * Total length of the replay in seconds */ float length; /** * True if the replay is paused */ boolean paused; /** * True if the replay is fast forwarding or rewinding */ boolean seeking; /** * Replay playback speed (0.5 is half speed, 2.0 is double speed etc) */ float speed; /** * Current time of the replay in seconds since the beginning of the game. */ float time; public float getLength() { return length; } public boolean isPaused() { return paused; } public boolean isSeeking() { return seeking; } public float getSpeed() { return speed; } public float getTime() { return time; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ReplayPlaybackInfo that = (ReplayPlaybackInfo) o; return Float.compare(that.length, length) == 0 && paused == that.paused && seeking == that.seeking && Float.compare(that.speed, speed) == 0 && Float.compare(that.time, time) == 0; } @Override public int hashCode() { return Objects.hash(length, paused, seeking, speed, time); } @Override public String toString() { return "ReplayPlaybackInfo{" + "length=" + length + ", paused=" + paused + ", seeking=" + seeking + ", speed=" + speed + ", time=" + time + '}'; } }
[ "dudedbz@gmail.com" ]
dudedbz@gmail.com
72024d012ed432116ca1507e4555c0d9baed23a0
ddce6aa9aa6ac13312376ec08e6b0453d3412e57
/alternativmud-server/src/main/java/net/alternativmud/lib/util/StringWriter.java
32ae14ecb006a2f74912fc4d709192a775aaab37
[ "MIT" ]
permissive
Jblew/alternativ-mud
d5cc1a587d462eeb3d01b809e80fd4205ff5083a
7845d89b3c92aa3d41704dde628c391bfe1cb264
refs/heads/master
2021-01-01T17:05:05.206726
2019-06-23T11:24:10
2019-06-23T11:24:10
15,583,256
2
1
MIT
2020-10-23T22:06:26
2014-01-02T12:37:40
Java
UTF-8
Java
false
false
334
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package net.alternativmud.lib.util; import java.io.IOException; /** * * @author jblew */ public interface StringWriter { public void print(String s) throws IOException; public void println(String s) throws IOException; }
[ "jedrzejblew@gmail.com" ]
jedrzejblew@gmail.com
aa0b0bd4bcbd815deb6d206e7820e7ac3bab1634
40f81f3e9171575214c5f7fd71536af3596480c9
/src/main/java/cn/com/lingnan/mapper/CombinebillMapper.java
a0795de7e6e3253314d867a959b44996c6b2b9fa
[ "Apache-2.0" ]
permissive
chenxianda-3/wuliu
c7f8ffa1efbe2f81956fbbb9d2037211605141d4
0571ad2faa100a167e6f1ceeee8e7827ba440308
refs/heads/master
2022-12-22T21:52:50.587795
2020-07-09T00:03:16
2020-07-09T00:03:16
195,647,244
2
0
Apache-2.0
2022-12-16T07:14:20
2019-07-07T12:15:23
Java
UTF-8
Java
false
false
904
java
package cn.com.lingnan.mapper; import cn.com.lingnan.pojo.Combinebill; import cn.com.lingnan.pojo.CombinebillExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CombinebillMapper { int countByExample(CombinebillExample example); int deleteByExample(CombinebillExample example); int deleteByPrimaryKey(String id); int insert(Combinebill record); int insertSelective(Combinebill record); List<Combinebill> selectByExample(CombinebillExample example); Combinebill selectByPrimaryKey(String id); int updateByExampleSelective(@Param("record") Combinebill record, @Param("example") CombinebillExample example); int updateByExample(@Param("record") Combinebill record, @Param("example") CombinebillExample example); int updateByPrimaryKeySelective(Combinebill record); int updateByPrimaryKey(Combinebill record); }
[ "l" ]
l
b70c738886b76c2b97f7c4d1e9ee56c318afee95
8b13547d2cd4be8d5cfeb7d4ce83eaa84df887ea
/src/main/java/com/aplos/ecommerce/backingpage/shipping/FreeShippingServiceEditPage.java
8e4d455beeb5447cb93b4e647db7b7091e78be8b
[]
no_license
aplossystems/aplos-ecommerce
0b7b20cf6b19ccbb5750e3650bb07dc7a9ef0fe1
ad7ceceeb96a934d02823817b8fe6c84b0e1bac2
refs/heads/master
2016-09-05T17:08:21.290910
2015-08-17T09:35:14
2015-08-17T09:35:14
40,127,040
0
1
null
null
null
null
UTF-8
Java
false
false
1,514
java
package com.aplos.ecommerce.backingpage.shipping; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import javax.faces.model.SelectItem; import com.aplos.common.annotations.AssociatedBean; import com.aplos.common.backingpage.EditPage; import com.aplos.common.beans.AplosBean; import com.aplos.common.beans.PostalZone; import com.aplos.common.utils.JSFUtil; import com.aplos.ecommerce.beans.couriers.CourierService; import com.aplos.ecommerce.beans.couriers.FreeShippingService; @ManagedBean @SessionScoped @AssociatedBean(beanClass=FreeShippingService.class) public class FreeShippingServiceEditPage extends EditPage { private static final long serialVersionUID = -162517171883682886L; public FreeShippingServiceEditPage() { getBeanDao().setListPageClass( CourierShippingServiceListPage.class ); } @Override public void applyBtnAction() { saveAction(); } @Override public void okBtnAction() { saveAction(); super.cancelBtnAction(); } public void saveAction() { FreeShippingService freeShippingService = JSFUtil.getBeanFromScope( FreeShippingService.class ); boolean wasNew = freeShippingService.isNew(); super.applyBtnAction(); if( wasNew ) { CourierService courierService = JSFUtil.getBeanFromScope( CourierService.class ); courierService.getShippingServices().add( freeShippingService ); courierService.saveDetails(); } } public SelectItem[] getPostalZoneSelectItemBeans() { return AplosBean.getSelectItemBeans( PostalZone.class ); } }
[ "info@aplossystems.co.uk" ]
info@aplossystems.co.uk
e64ef03a7f7d0574a94f8afaff770b03e7638a64
ddc6a947c1e56465e89d9275ae16d0bad048cb67
/gwt/SynaptixGWTServer/src/main/java/com/synaptix/gwt/server/constants/IHtmlPageLocaleSession.java
e59c3f6c0e9f765608b66700337e2154a35634d2
[]
no_license
TalanLabs/SynaptixLibs
15ad37af6fd575f6e366deda761ba650d9e18237
cbff7279e1f2428754fce3d83fcec5a834898747
refs/heads/master
2020-03-22T16:08:53.617289
2018-03-07T16:07:22
2018-03-07T16:07:22
140,306,435
1
0
null
null
null
null
UTF-8
Java
false
false
194
java
package com.synaptix.gwt.server.constants; import java.util.Locale; public interface IHtmlPageLocaleSession { /** * Get current Locale * * @return */ public Locale getLocale(); }
[ "gabriel.allaigre@synaptix-labs.com" ]
gabriel.allaigre@synaptix-labs.com
290ac59a5ad858f66525fc05d8efd444a78bef65
c87fd6d93631a1a98e77fede930eb59702002a82
/connectors/misc/translator-jpa/src/test/java/org/teiid/translator/jpa/model/Exchange.java
ee23ff762017c5b8138ac41ed2b3515d5981d3cd
[ "Apache-2.0" ]
permissive
Freakey17/teiid
6a216d844b5f79993d6aca7b82225270fd3e3175
76d29a5580f018fa42c842c1ccb2f5ee6b4b9cdb
refs/heads/master
2020-04-30T10:57:40.183351
2019-03-20T18:03:04
2019-03-20T18:03:04
176,790,018
0
0
NOASSERTION
2019-03-20T18:02:24
2019-03-20T18:02:24
null
UTF-8
Java
false
false
1,449
java
/* * Copyright Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags and * the COPYRIGHT.txt file distributed with this work. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.teiid.translator.jpa.model; import java.io.Serializable; import java.util.Collection; import javax.persistence.ElementCollection; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Exchange implements Serializable { @Id private String name; @ElementCollection(targetClass=Marketdata.class) private Collection<Marketdata> quotes; public Collection<Marketdata> getQuotes() { return quotes; } public void setQuotes(Collection<Marketdata> quotes) { this.quotes = quotes; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "shawkins@redhat.com" ]
shawkins@redhat.com
bcbf0158a56f093e4b7761663a6194ed2d5949a0
b214f96566446763ce5679dd2121ea3d277a9406
/sandbox/sand-language-plugin/src/main/java/consulo/sandboxPlugin/ide/module/extension/SandModuleExtensionProvider.java
7383d4d135e4036f427d2b230af086cdf7fb1aa7
[ "Apache-2.0", "LicenseRef-scancode-jgraph" ]
permissive
consulo/consulo
aa340d719d05ac6cbadd3f7d1226cdb678e6c84f
d784f1ef5824b944c1ee3a24a8714edfc5e2b400
refs/heads/master
2023-09-06T06:55:04.987216
2023-09-01T06:42:16
2023-09-01T06:42:16
10,116,915
680
54
Apache-2.0
2023-06-05T18:28:51
2013-05-17T05:48:18
Java
UTF-8
Java
false
false
1,904
java
/* * Copyright 2013-2022 consulo.io * * 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 consulo.sandboxPlugin.ide.module.extension; import consulo.annotation.component.ExtensionImpl; import consulo.localize.LocalizeValue; import consulo.module.content.layer.ModuleExtensionProvider; import consulo.module.content.layer.ModuleRootLayer; import consulo.module.extension.ModuleExtension; import consulo.module.extension.MutableModuleExtension; import consulo.platform.base.icon.PlatformIconGroup; import consulo.ui.image.Image; import jakarta.annotation.Nonnull; /** * @author VISTALL * @since 24-Jun-22 */ @ExtensionImpl public class SandModuleExtensionProvider implements ModuleExtensionProvider<SandModuleExtension> { @Nonnull @Override public String getId() { return "sand"; } @Nonnull @Override public LocalizeValue getName() { return LocalizeValue.localizeTODO("Sand"); } @Nonnull @Override public Image getIcon() { return PlatformIconGroup.nodesStatic(); } @Nonnull @Override public ModuleExtension<SandModuleExtension> createImmutableExtension(@Nonnull ModuleRootLayer layer) { return new SandModuleExtension(getId(), layer); } @Nonnull @Override public MutableModuleExtension<SandModuleExtension> createMutableExtension(@Nonnull ModuleRootLayer layer) { return new SandMutableModuleExtension(getId(), layer); } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
b07f324340e9556140f8d3292aeecb94bed2982f
57ffb6533b017dce5dde27afcaaa7acd6220449b
/src/JavaFoundation/InnerClass/InnerClassTest1.java
313751948235f50072a11c6f88d85b72d3efb5e5
[]
no_license
piaomengyao/OJ
df53a5383eaa73d6a75696692b3ac6f11968ae86
21365558e932a18b8de67e9f6573090f31e6ab13
refs/heads/master
2022-05-30T10:00:23.718598
2022-05-12T09:42:59
2022-05-12T09:42:59
153,991,233
0
0
null
2018-10-21T09:17:41
2018-10-21T09:17:41
null
UTF-8
Java
false
false
661
java
package JavaFoundation.InnerClass; /* * 面试题: * 要求请填空分别输出30,20,10。 * * 注意: * 1:内部类和外部类没有继承关系。 * 2:通过外部类名限定this对象 * Outer.this */ class Outerr { public int num = 10; class Inner { public int num = 20; public void show() { int num = 30; System.out.println(num); System.out.println(this.num); System.out.println(new Outerr().num);// 方法一 System.out.println(Outerr.this.num);// 方法二,更好 } } } class InnerClassTest1 { public static void main(String[] args) { Outerr.Inner oi = new Outerr().new Inner(); oi.show(); } }
[ "abelzyp@foxmail.com" ]
abelzyp@foxmail.com
46edbb1afcd9eedf04e502097b7c358351e9d50d
a5d01febfd8d45a61f815b6f5ed447e25fad4959
/Source Code/5.5.1/sources/kotlin/reflect/jvm/internal/impl/builtins/d.java
41e91d15c1aa953177b803018dd456f22dbe79c9
[]
no_license
kkagill/Decompiler-IQ-Option
7fe5911f90ed2490687f5d216cb2940f07b57194
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
refs/heads/master
2020-09-14T20:44:49.115289
2019-11-04T06:58:55
2019-11-04T06:58:55
223,236,327
1
0
null
2019-11-21T18:17:17
2019-11-21T18:17:16
null
UTF-8
Java
false
false
1,794
java
package kotlin.reflect.jvm.internal.impl.builtins; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import kotlin.jvm.internal.h; import kotlin.reflect.jvm.internal.impl.name.a; import kotlin.reflect.jvm.internal.impl.name.b; import kotlin.reflect.jvm.internal.impl.resolve.c; /* compiled from: CompanionObjectMapping.kt */ public final class d { private static final LinkedHashSet<a> exj; public static final d exk = new d(); static { Set set = PrimitiveType.NUMBER_TYPES; h.d(set, "PrimitiveType.NUMBER_TYPES"); Iterable<PrimitiveType> iterable = set; Collection arrayList = new ArrayList(n.e(iterable, 10)); for (PrimitiveType d : iterable) { arrayList.add(g.d(d)); } Iterable<b> i = u.i((Collection) u.i((Collection) (List) arrayList, (Object) g.exC.exO.btP()), (Object) g.exC.exZ.btP()); arrayList = new LinkedHashSet(); for (b t : i) { arrayList.add(a.t(t)); } exj = (LinkedHashSet) arrayList; } private d() { } public final Set<a> baA() { Set<a> unmodifiableSet = Collections.unmodifiableSet(exj); h.d(unmodifiableSet, "Collections.unmodifiableSet(classIds)"); return unmodifiableSet; } public final boolean b(kotlin.reflect.jvm.internal.impl.descriptors.d dVar) { h.e(dVar, "classDescriptor"); if (c.D(dVar)) { Iterable iterable = exj; a c = kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.a.c(dVar); if (u.b(iterable, c != null ? c.btI() : null)) { return true; } } return false; } }
[ "yihsun1992@gmail.com" ]
yihsun1992@gmail.com
55912ee360a3b7b78128c5c5bb13487bb250da96
8b5cdda28454b0aab451a4b3216a58ca87517c41
/AL-Game/src/com/aionemu/gameserver/utils/stats/DropRewardEnum.java
539e194536fa461dfc0a597f922f2ddee1c91ae7
[]
no_license
flroexus/aelp
ac36cd96963bd12847e37118531b68953f9e8440
4f6cca6b462419accf53b58c454be0cf6abe39c0
refs/heads/master
2023-05-28T18:36:47.919387
2020-09-05T07:27:49
2020-09-05T07:27:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,077
java
package com.aionemu.gameserver.utils.stats; import java.util.NoSuchElementException; public enum DropRewardEnum { MINUS_10(-10, 0), MINUS_9(-9, 39), MINUS_8(-8, 79), MINUS_7(-7, 100); private int dropRewardPercent; private int levelDifference; private DropRewardEnum(int levelDifference, int dropRewardPercent) { this.levelDifference = levelDifference; this.dropRewardPercent = dropRewardPercent; } public int rewardPercent() { return dropRewardPercent; } /** * @param levelDifference * between two objects * @return Drop reward percentage */ public static int dropRewardFrom(int levelDifference) { if (levelDifference < MINUS_10.levelDifference) { return MINUS_10.dropRewardPercent; } if (levelDifference > MINUS_7.levelDifference) { return MINUS_7.dropRewardPercent; } for (DropRewardEnum dropReward : values()) { if (dropReward.levelDifference == levelDifference) { return dropReward.dropRewardPercent; } } throw new NoSuchElementException("Drop reward for such level difference was not found"); } }
[ "luiz.philip@amedigital.com" ]
luiz.philip@amedigital.com
5eed4806aef84bb5a1058b1e56213e63d80a9d9b
8341549a002086aa2ef3c9294a5f15bfec219199
/web/src/main/java/com/ydzb/web/message/controller/MessageController.java
e48f0d8281bd407e59c2d7618215021bdd169491
[]
no_license
songziyang/ydzb
2498204b9ee3d8e101a64ee7e366d8115514908c
e8483e26efab94a110821a7612fbaee3b08e66d5
refs/heads/master
2021-01-19T22:41:01.600194
2017-04-20T09:20:24
2017-04-20T09:20:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,744
java
package com.ydzb.web.message.controller; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.ydzb.core.controller.BaseController; import com.ydzb.core.entity.search.Searchable; import com.ydzb.message.service.IMessageService; import com.ydzb.sms.entity.Message; import com.ydzb.web.message.condition.MessageCondition; import org.apache.commons.lang3.StringUtils; import org.apache.shiro.authz.annotation.Logical; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort.Direction; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpSession; @Controller @RequestMapping(value = "infoMessage/message") public class MessageController extends BaseController { @Autowired private IMessageService messageService; @RequestMapping(value = "listMessage", method = {RequestMethod.GET, RequestMethod.POST}) @RequiresPermissions("message_list") public String pageQuery( @RequestParam(value = "pageSize", defaultValue = PAGE_SIZE) int pageSize, @RequestParam(value = "pageCurrent", defaultValue = PAGE_CURRENT) int pageCurrent, @ModelAttribute(value = "condition") String condition, @ModelAttribute MessageCondition messageCondition, Model model) { Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation() .create(); if (condition != null && condition.length() > 0) { messageCondition = gson.fromJson(condition, MessageCondition.class); } // 创建查询 Searchable searchable = Searchable.newSearchable(); // 添加查询条件 searchable.addSearchFilters(messageCondition.getAndFilters()); // 设置分页参数 searchable.setPage(pageCurrent, pageSize); // 设置排序条件 searchable.addSort(new Sort(Direction.DESC, "created")); model.addAttribute("condition", gson.toJson(messageCondition)); model.addAttribute("page", messageService.findAll(searchable)); return "infoMessage/message/list"; } // 添加 @RequestMapping(value = "createMessage", method = {RequestMethod.GET, RequestMethod.POST}) @RequiresPermissions("message_create") public String createMessage(Model model) { return "infoMessage/message/edit"; } // 编辑 @RequestMapping(value = "editMessage/{id}", method = {RequestMethod.GET, RequestMethod.POST}) @RequiresPermissions("message_edit") public String editAdmin(@PathVariable("id") Long id, Model model) { model.addAttribute("messages", messageService.findOne(id)); return "infoMessage/message/edit"; } // 删除 @RequestMapping(value = "deleteMessage/{id}", method = {RequestMethod.GET, RequestMethod.POST}) @RequiresPermissions("message_del") public String delete(@PathVariable("id") Long id, HttpSession session) throws Exception { messageService.delete(id); session.setAttribute("message", "删除成功"); return "redirect:/infoMessage/message/listMessage"; } // 批量删除 @RequestMapping(value = "deleteMessages", method = {RequestMethod.GET, RequestMethod.POST}) @RequiresPermissions("message_del") public String deleteMessages(Long[] ids, HttpSession session) throws Exception { messageService.delete(ids); session.setAttribute("message", "删除成功"); return "redirect:/infoMessage/message/listMessage"; } // 保存 @RequestMapping(value = "saveMessage", method = RequestMethod.POST) @RequiresPermissions(value = {"message_create", "message_edit"}, logical = Logical.OR) public String save(String username, Message messages, HttpSession session, Model model) throws Exception { String result = messageService.saveMessage(messages); if (StringUtils.isEmpty(result)) { session.setAttribute("message", SAVE_SUCCESS); return "redirect:/infoMessage/message/listMessage"; } else { session.setAttribute("error", result); model.addAttribute("messages", messages); return "infoMessage/message/edit"; } } public IMessageService getMessageService() { return messageService; } public void setMessageService(IMessageService messageService) { this.messageService = messageService; } }
[ "447587850@qq.com" ]
447587850@qq.com
464d5ca295341d25ddd3f64e823ab23b6a07fbbf
affe223efe18ba4d5e676f685c1a5e73caac73eb
/clients/webservice/src/main/java/com/vmware/vim25/VirtualPCIPassthroughDeviceBackingOption.java
e94ff9cee6fc66d8201aea0ab2ba5e93ef8bd739
[]
no_license
RohithEngu/VM27
486f6093e0af2f6df1196115950b0d978389a985
f0f4f177210fd25415c2e058ec10deb13b7c9247
refs/heads/master
2021-01-16T00:42:30.971054
2009-08-14T19:58:16
2009-08-14T19:58:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,630
java
/** * VirtualPCIPassthroughDeviceBackingOption.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.vmware.vim25; public class VirtualPCIPassthroughDeviceBackingOption extends com.vmware.vim25.VirtualDeviceDeviceBackingOption implements java.io.Serializable { /** * */ private static final long serialVersionUID = 1L; public VirtualPCIPassthroughDeviceBackingOption() { } public VirtualPCIPassthroughDeviceBackingOption( java.lang.String dynamicType, com.vmware.vim25.DynamicProperty[] dynamicProperty, java.lang.String type, com.vmware.vim25.BoolOption autoDetectAvailable) { super(dynamicType, dynamicProperty, type, autoDetectAvailable); } private java.lang.Object __equalsCalc = null; @Override public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof VirtualPCIPassthroughDeviceBackingOption)) { return false; } VirtualPCIPassthroughDeviceBackingOption other = (VirtualPCIPassthroughDeviceBackingOption) obj; if (obj == null) { return false; } if (this == obj) { return true; } if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; @Override public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc( VirtualPCIPassthroughDeviceBackingOption.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25", "VirtualPCIPassthroughDeviceBackingOption")); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc); } }
[ "sankarachary@intalio.com" ]
sankarachary@intalio.com
1ea410c898f2c6187ac5bf24aa1e8bedaf83cc6e
e7d891ebdd86bb378cdbbea235773f07a53755e8
/src/main/java/com/fy/framework/annotation/FYRequestParms.java
f2e65af7c4b7b92aa674f35fc41dcae8d5110f87
[]
no_license
MrFyingLiu/flying-spring-hadd
bc981a1326d46c784582ecaa431b6482fbe4e530
d051b8cd3663a78fd6b6dd5d706650ce6db088c6
refs/heads/master
2020-06-20T00:37:44.255393
2019-07-15T06:43:52
2019-07-15T06:43:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
216
java
package com.fy.framework.annotation; import java.lang.annotation.*; @Target({ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface FYRequestParms { String value() default ""; }
[ "123@123.com" ]
123@123.com
cc446e52e948254ad30b8b4b36e47cdd78670a23
b17e8b87a21877e2c0208065b0303de7cbec4a04
/HD_MQP/src/hd/client/profile/Size.java
4aa24ac3a724b31df25389eb4ccd4f8d86b86159
[]
no_license
jaithakai91/egreer-wpi
63b799c7fc54cd638c35b8086d6cc71beb37e8f9
628122efb2b717c3906cafffdd1ba0f9ecea3136
refs/heads/master
2023-04-18T14:31:35.452030
2011-03-06T06:31:39
2011-03-06T06:31:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
534
java
package hd.client.profile; /** Shirt Size enumeration: * Sizes: * Small * Medium * Large * Extra Large * 2XL * 3XL * @author Eric Greer (egreer@alum.wpi.edu) * @author Jason Codding (jcodding@alum.wpi.edu) * WPI Helpdesk MQP 2009-2010 */ public enum Size{ U(""), S("Small"), M("Medium"), L("Large"), XL("Extra Large"), XXL("2XL"), XXXL("3XL"); private String size; Size(String size) { this.size = size; } @Override public String toString() { return size; } }
[ "greer.eric@gmail.com" ]
greer.eric@gmail.com
6df8de93bcda907a67ad97768649a2cfbc761c23
fe02f3a48cd516469abce09fff7255e50279dbbb
/solr-tachyon-fs-directory/src/main/java/org/apache/solr/store/tfs/TfsIndexInput.java
d6a859bffb40b29e21ef9f7c67cdb8feb916a3e1
[ "MIT" ]
permissive
devsunny/app-galleries
149cd74d04f2547093e20c34ddaf86be289e2cce
98aed1b18031ded93056ad12bda5b2c62c40a85b
refs/heads/master
2022-12-21T05:20:40.210246
2018-09-20T01:40:20
2018-09-20T01:40:20
21,674,470
0
1
MIT
2022-12-16T06:42:58
2014-07-10T01:20:03
Java
UTF-8
Java
false
false
3,550
java
package org.apache.solr.store.tfs; import java.io.IOException; import java.lang.invoke.MethodHandles; import org.apache.commons.io.IOUtils; import org.apache.lucene.store.IndexInput; import org.apache.solr.store.blockcache.CustomBufferedIndexInput; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import tachyon.TachyonURI; import tachyon.client.file.FileInStream; import tachyon.client.file.FileOutStream; import tachyon.client.file.TachyonFile; import tachyon.client.file.TachyonFileSystem; import tachyon.exception.FileAlreadyExistsException; import tachyon.exception.InvalidPathException; import tachyon.exception.TachyonException; public class TfsIndexInput extends IndexInput { private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private final TachyonURI path; private final FileInStream inputStream; private final TachyonFileSystem fileSystem; private final long length; private boolean clone = false; private long position = 0; private int bz; public TfsIndexInput(String name, TachyonFileSystem fileSystem, TachyonURI path, int bufferSize) throws IOException { super(name); this.path = path; this.fileSystem = fileSystem; this.bz = bufferSize; try { TachyonFile file = fileSystem.open(path); System.out.println(path.getPath()); this.length = fileSystem.getInfo(file).length; System.out.println(this.length); this.inputStream = fileSystem.getInStream(file); } catch (TachyonException e) { throw new IOException(e); } } @Override public long length() { return this.length; } public boolean isClone() { return clone; } public void setClone(boolean clone) { this.clone = clone; } public TachyonURI getPath() { return path; } public FileInStream getInputStream() { return inputStream; } public long getLength() { return length; } @Override public void close() throws IOException { this.inputStream.close(); } @Override public long getFilePointer() { LOG.debug("GET File Ponter:" + this.position); return this.position; } @Override public void seek(long pos) throws IOException { LOG.debug("seek File Ponter:" + pos); this.inputStream.seek(pos); this.position = pos; } @Override public IndexInput slice(String sliceDescription, long offset, long length) throws IOException { try { TachyonURI pathslice = new TachyonURI(path.getParent(), new TachyonURI(sliceDescription)); FileOutStream fout = fileSystem.getOutStream(pathslice); try { seek(offset); long tobecopy = length; int cp = 0; byte[] buf = new byte[this.bz]; while (tobecopy > 0 && (cp = this.inputStream.read(buf)) > -1) { fout.write(buf, 0, cp); tobecopy = tobecopy - cp; } this.position = this.position + length; fout.flush(); } finally { fout.close(); } return new TfsIndexInput(sliceDescription, fileSystem, pathslice, this.bz); } catch (TachyonException e) { e.printStackTrace(); throw new IOException(e); } } @Override public byte readByte() throws IOException { LOG.debug("readByte File Ponter:"); int b = this.inputStream.read(); if (b != -1) { position++; } return (byte) b; } @Override public void readBytes(byte[] b, int offset, int len) throws IOException { LOG.debug("readBytes [{}]", len); int lenx = 0; int rlen = 0; int os = offset; while (rlen < len) { lenx = this.inputStream.read(b, os, len - rlen); os = os + lenx; rlen = rlen + lenx; } this.position = this.position + len; } }
[ "sunnyliu2@gmail.com" ]
sunnyliu2@gmail.com
ace39a71358f1cc1519f95c0890d978019832756
58f9c885845cfb01f05a5b4e1455a6b0bde0e4e1
/src-gen/org/w3/_1999/xsl/transform/MessageType.java
e0b537847f314506f06494c811426720057bf04a
[]
no_license
AresEkb/xmodel
d13ef168cdb602435e5426ab34f9f5b17d4e36c1
aaa37c6a3a0e290427528ad119be5f8337c7e221
refs/heads/master
2021-01-17T07:22:52.117481
2016-06-03T08:07:09
2016-06-03T08:07:09
38,496,705
0
0
null
null
null
null
UTF-8
Java
false
false
3,378
java
/** */ package org.w3._1999.xsl.transform; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Message Type</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.w3._1999.xsl.transform.MessageType#getSelect <em>Select</em>}</li> * <li>{@link org.w3._1999.xsl.transform.MessageType#getTerminate <em>Terminate</em>}</li> * </ul> * * @see org.w3._1999.xsl.transform.XSLT20Package#getMessageType() * @model extendedMetaData="name='message_._type' kind='mixed'" * @generated */ public interface MessageType extends SequenceConstructor { /** * Returns the value of the '<em><b>Select</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Select</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Select</em>' attribute. * @see #setSelect(String) * @see org.w3._1999.xsl.transform.XSLT20Package#getMessageType_Select() * @model dataType="org.w3._1999.xsl.transform.Expression" * extendedMetaData="kind='attribute' name='select'" * @generated */ String getSelect(); /** * Sets the value of the '{@link org.w3._1999.xsl.transform.MessageType#getSelect <em>Select</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Select</em>' attribute. * @see #getSelect() * @generated */ void setSelect(String value); /** * Returns the value of the '<em><b>Terminate</b></em>' attribute. * The default value is <code>"no"</code>. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Terminate</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Terminate</em>' attribute. * @see #isSetTerminate() * @see #unsetTerminate() * @see #setTerminate(String) * @see org.w3._1999.xsl.transform.XSLT20Package#getMessageType_Terminate() * @model default="no" unsettable="true" dataType="org.w3._1999.xsl.transform.Avt" * extendedMetaData="kind='attribute' name='terminate'" * @generated */ String getTerminate(); /** * Sets the value of the '{@link org.w3._1999.xsl.transform.MessageType#getTerminate <em>Terminate</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Terminate</em>' attribute. * @see #isSetTerminate() * @see #unsetTerminate() * @see #getTerminate() * @generated */ void setTerminate(String value); /** * Unsets the value of the '{@link org.w3._1999.xsl.transform.MessageType#getTerminate <em>Terminate</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetTerminate() * @see #getTerminate() * @see #setTerminate(String) * @generated */ void unsetTerminate(); /** * Returns whether the value of the '{@link org.w3._1999.xsl.transform.MessageType#getTerminate <em>Terminate</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Terminate</em>' attribute is set. * @see #unsetTerminate() * @see #getTerminate() * @see #setTerminate(String) * @generated */ boolean isSetTerminate(); } // MessageType
[ "denis.nikif@gmail.com" ]
denis.nikif@gmail.com
e45791b499d79a15f06475f34fdaf292ab07accd
b7a0a97e8135f3489b2dbcebe6dac7afba07de98
/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/session/SessionsWebEndpointExtension.java
fbed5298512459ec1b4f34b25239f9b52c6529ef
[ "Apache-2.0" ]
permissive
RahulBendre1/spring-boot
87ee030eb21c05b5ddfd1301f0c35ae440211e7c
5d05347e6156a967003cb2225585208a9dfb77c4
refs/heads/master
2023-08-28T05:42:56.430089
2017-09-26T19:40:39
2017-09-27T02:36:48
104,978,436
0
0
Apache-2.0
2023-09-14T19:56:02
2017-09-27T06:03:03
Java
UTF-8
Java
false
false
1,681
java
/* * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.boot.actuate.session; import org.springframework.boot.actuate.endpoint.annotation.ReadOperation; import org.springframework.boot.actuate.endpoint.web.WebEndpointResponse; import org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointExtension; import org.springframework.boot.actuate.session.SessionsEndpoint.SessionsReport; /** * {@link WebEndpointExtension} for the {@link SessionsEndpoint}. * * @author Vedran Pavic * @since 2.0.0 */ @WebEndpointExtension(endpoint = SessionsEndpoint.class) public class SessionsWebEndpointExtension { private final SessionsEndpoint delegate; public SessionsWebEndpointExtension(SessionsEndpoint delegate) { this.delegate = delegate; } @ReadOperation public WebEndpointResponse<SessionsReport> sessionsForUsername(String username) { if (username == null) { return new WebEndpointResponse<>(WebEndpointResponse.STATUS_BAD_REQUEST); } SessionsReport sessions = this.delegate.sessionsForUsername(username); return new WebEndpointResponse<>(sessions); } }
[ "snicoll@pivotal.io" ]
snicoll@pivotal.io
8924c744276c076cb1962a43ceb141e67ec482e4
208ba847cec642cdf7b77cff26bdc4f30a97e795
/cb/ca/src/main/java/org.wp.ca/ui/reader/actions/ReaderTagActions.java
fff8931ff00654923043a3e8280a8b3e4ca56201
[]
no_license
kageiit/perf-android-large
ec7c291de9cde2f813ed6573f706a8593be7ac88
2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8
refs/heads/master
2021-01-12T14:00:19.468063
2016-09-27T13:10:42
2016-09-27T13:10:42
69,685,305
0
0
null
2016-09-30T16:59:49
2016-09-30T16:59:48
null
UTF-8
Java
false
false
6,419
java
package org.wp.ca.ui.reader.actions; import com.android.volley.VolleyError; import com.wordpress.rest.RestRequest; import org.json.JSONArray; import org.json.JSONObject; import org.wp.ca.WordPress; import org.wp.ca.datasets.ReaderTagTable; import org.wp.ca.models.ReaderTag; import org.wp.ca.models.ReaderTagList; import org.wp.ca.models.ReaderTagType; import org.wp.ca.ui.reader.ReaderConstants; import org.wp.ca.ui.reader.utils.ReaderUtils; import org.wp.ca.util.AppLog; import org.wp.ca.util.AppLog.T; import org.wp.ca.util.JSONUtils; import org.wp.ca.util.VolleyUtils; public class ReaderTagActions { private ReaderTagActions() { throw new AssertionError(); } public static boolean deleteTag(final ReaderTag tag, final ReaderActions.ActionListener actionListener) { if (tag == null) { ReaderActions.callActionListener(actionListener, false); return false; } final String tagNameForApi = ReaderUtils.sanitizeWithDashes(tag.getTagSlug()); final String path = "read/tags/" + tagNameForApi + "/mine/delete"; com.wordpress.rest.RestRequest.Listener listener = new RestRequest.Listener() { @Override public void onResponse(JSONObject jsonObject) { AppLog.i(T.READER, "delete tag succeeded"); ReaderActions.callActionListener(actionListener, true); } }; RestRequest.ErrorListener errorListener = new RestRequest.ErrorListener() { @Override public void onErrorResponse(VolleyError volleyError) { // treat it as a success if the error says the user isn't following the deleted tag String error = VolleyUtils.errStringFromVolleyError(volleyError); if (error.equals("not_subscribed")) { AppLog.w(T.READER, "delete tag succeeded with error " + error); ReaderActions.callActionListener(actionListener, true); return; } AppLog.w(T.READER, " delete tag failed"); AppLog.e(T.READER, volleyError); // add back original tag ReaderTagTable.addOrUpdateTag(tag); ReaderActions.callActionListener(actionListener, false); } }; ReaderTagTable.deleteTag(tag); WordPress.getRestClientUtilsV1_1().post(path, listener, errorListener); return true; } public static boolean addTag(final ReaderTag tag, final ReaderActions.ActionListener actionListener) { if (tag == null) { ReaderActions.callActionListener(actionListener, false); return false; } final String tagNameForApi = ReaderUtils.sanitizeWithDashes(tag.getTagSlug()); final String path = "read/tags/" + tagNameForApi + "/mine/new"; String endpoint = "/read/tags/" + tagNameForApi + "/posts"; ReaderTag newTag = new ReaderTag( tag.getTagSlug(), tag.getTagDisplayName(), tag.getTagTitle(), endpoint, ReaderTagType.FOLLOWED); com.wordpress.rest.RestRequest.Listener listener = new RestRequest.Listener() { @Override public void onResponse(JSONObject jsonObject) { AppLog.i(T.READER, "add tag succeeded"); // the response will contain the list of the user's followed tags ReaderTagList tags = parseFollowedTags(jsonObject); ReaderTagTable.replaceFollowedTags(tags); ReaderActions.callActionListener(actionListener, true); } }; RestRequest.ErrorListener errorListener = new RestRequest.ErrorListener() { @Override public void onErrorResponse(VolleyError volleyError) { // treat is as a success if we're adding a tag and the error says the user is // already following it String error = VolleyUtils.errStringFromVolleyError(volleyError); if (error.equals("already_subscribed")) { AppLog.w(T.READER, "add tag succeeded with error " + error); ReaderActions.callActionListener(actionListener, true); return; } AppLog.w(T.READER, "add tag failed"); AppLog.e(T.READER, volleyError); // revert on failure ReaderTagTable.deleteTag(tag); ReaderActions.callActionListener(actionListener, false); } }; ReaderTagTable.addOrUpdateTag(newTag); WordPress.getRestClientUtilsV1_1().post(path, listener, errorListener); return true; } /* * return the user's followed tags from the response to read/tags/{tag}/mine/new */ /* { "added_tag": "84776", "subscribed": true, "tags": [ { "display_name": "fitness", "ID": "5189", "slug": "fitness", "title": "Fitness", "URL": "https://public-api.wordpress.com/rest/v1.1/read/tags/fitness/posts" }, ... } */ private static ReaderTagList parseFollowedTags(JSONObject jsonObject) { if (jsonObject == null) { return null; } JSONArray jsonTags = jsonObject.optJSONArray(ReaderConstants.JSON_TAG_TAGS_ARRAY); if (jsonTags == null || jsonTags.length() == 0) { return null; } ReaderTagList tags = new ReaderTagList(); for (int i=0; i < jsonTags.length(); i++) { JSONObject jsonThisTag = jsonTags.optJSONObject(i); String tagTitle = JSONUtils.getStringDecoded(jsonThisTag, ReaderConstants.JSON_TAG_TITLE); String tagDisplayName = JSONUtils.getStringDecoded(jsonThisTag, ReaderConstants.JSON_TAG_DISPLAY_NAME); String tagSlug = JSONUtils.getStringDecoded(jsonThisTag, ReaderConstants.JSON_TAG_SLUG); String endpoint = JSONUtils.getString(jsonThisTag, ReaderConstants.JSON_TAG_URL); tags.add(new ReaderTag(tagSlug, tagDisplayName, tagTitle, endpoint, ReaderTagType.FOLLOWED)); } return tags; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
104af9abf94f6df082e6c1d054b96c70cb93dc8e
d3f8ddafea7937c3fac918ddab50f5a21c2dc373
/app/src/main/java/com/simpletool/goodhabit/widgets/ScoreWidgetProvider.java
a49dbaf22340870cd1b556abdca5ddbe4f9a323b
[]
no_license
hangocmaiii90/Habit-sample
872cf39cf7ea98517df8f4a1c24fbd02a23ac76f
66080e69467e0612d16ffbbbc3c81ff3e27ecf15
refs/heads/master
2020-04-13T05:30:12.887197
2018-12-24T13:42:14
2018-12-24T13:42:14
162,994,168
0
0
null
null
null
null
UTF-8
Java
false
false
1,205
java
/* * Copyright (C) 2016 Álinson Santos Xavier <isoron@gmail.com> * * This file is part of Loop Habit Tracker. * * Loop Habit Tracker is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * Loop Habit Tracker is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.simpletool.goodhabit.widgets; import android.content.*; import android.support.annotation.*; import com.simpletool.goodhabit.models.*; public class ScoreWidgetProvider extends BaseWidgetProvider { @NonNull @Override protected BaseWidget getWidgetFromId(@NonNull Context context, int id) { Habit habit = getHabitFromWidgetId(id); return new ScoreWidget(context, id, habit); } }
[ "32545917+phuongbkatp@users.noreply.github.com" ]
32545917+phuongbkatp@users.noreply.github.com
4f3e24f55b36c0aa6be1edbb2413839e40d293d6
8ef0a9081792fb6cada0cc46312a7a4d0054d295
/src/main/java/com/project/hibernate/entity/Task.java
56efad8abc9fc5baada8cbc7a911864d301eef73
[]
no_license
hiejulia/hibernate-springboot
8c1c1480d139f3eec35f92e15f40e73c2d0128e0
e86ed982f5224769b31478c4681c817de7e08247
refs/heads/master
2021-04-09T13:13:42.822149
2018-03-25T20:25:31
2018-03-25T20:25:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,006
java
package com.project.hibernate.entity; import lombok.Data; import javax.persistence.*; import java.util.Date; import java.util.List; @Data @Entity @Table public class Task { @Id @Column(name="id") @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "name") private String name; @Column(name = "description") private String description; @Column(name = "isComplete") private boolean isComplete; @Column(name = "startDate") private Date startDate; @Column(name = "endDate") private Date endDate; // RELATIONSHIP JOIN TABLE @OneToMany @JoinColumn(name="task_id", referencedColumnName="id") private List<TaskDetail> taskDetails; @ManyToMany(cascade = CascadeType.ALL) @JoinTable(name = "task_user", joinColumns = @JoinColumn(name = "task_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "user_id", referencedColumnName = "id")) private List<User> users; }
[ "hienminhnguyen711@gmail.com" ]
hienminhnguyen711@gmail.com
426fc3bd19e067c2f9503bf56508702d1b79ff0f
4772cca3cc1c9240ef9a5aae96dccea4a235a132
/ch.kostceco.tools.siardval.checksum.impl/src/ch/kostceco/tools/siardval/checksum/impl/internal/service/ValidationStepChecksumServiceComponent.java
d7592d191a3bb54a62e800bb6b900a6c668981f7
[]
no_license
ceugster/SIARD.val.OSGi
46151522caefcbf522f57ac1ba7136d58fbdc522
1d18ea5b72e5fafd1e26f99264592d3f9fb40386
refs/heads/master
2016-09-05T18:40:31.956028
2012-05-07T09:50:10
2012-05-07T09:50:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
857
java
package ch.kostceco.tools.siardval.checksum.impl.internal.service; import java.io.File; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import ch.kostceco.tools.siardval.checksum.api.service.ChecksumValidator; import ch.kostceco.tools.siardval.service.api.AbstractValidationStepService; public class ValidationStepChecksumServiceComponent extends AbstractValidationStepService { private ChecksumValidator checksumValidator; protected void bindChecksumValidator(ChecksumValidator validator) { this.checksumValidator = validator; } protected void unbindChecksumValidator(ChecksumValidator validator) { this.checksumValidator = null; } @Override public IStatus validate(File file) { // TODO checksumValidator.getAvailableAlgorithms(); return Status.OK_STATUS; } }
[ "christian.eugster@gmx.net" ]
christian.eugster@gmx.net
0705a0da19a57f93819f50f623e21cd223461b2f
f9c637ab9501b0a68fa0d18a061cbd555abf1f79
/test/import-data/InitCommissionFee/src/com/adr/bigdata/fullimport/sql/dao/AbstractDAO.java
cf4f61e93ae8f7f10e6dd9a4112b16f58e4daa95
[]
no_license
minha361/leanHTMl
c05000a6447b31f7869b75c532695ca2b0cd6968
dc760e7d149480c0b36f3c7064b97d0f3d4b3872
refs/heads/master
2022-06-01T02:54:46.048064
2020-08-11T03:20:34
2020-08-11T03:20:34
48,735,593
0
0
null
2022-05-20T20:49:57
2015-12-29T07:55:48
Java
UTF-8
Java
false
false
788
java
package com.adr.bigdata.fullimport.sql.dao; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import com.adr.bigdata.fullimport.sql.mapper.SQLMapper; public abstract class AbstractDAO { private Statement stmt; protected <T> List<T> getList(String sql, Class<? extends SQLMapper<T>> clazz) throws InstantiationException, IllegalAccessException, SQLException { SQLMapper<T> mapper = clazz.newInstance(); List<T> result = new ArrayList<>(); try (ResultSet rs = stmt.executeQuery(sql)) { while (rs.next()) { result.add(mapper.map(0, rs)); } } return result; } public Statement getStmt() { return stmt; } public void setStmt(Statement stmt) { this.stmt = stmt; } }
[ "v.minhlq2@adayroi.com" ]
v.minhlq2@adayroi.com
22a4dd717799f6fc07196c64a782637957bd40c2
b125535a21b9d5cb4ed25bac535b377d2300e8dd
/src/test/java/org/intellij/xquery/runner/ui/run/main/variables/ValueColumnInfoTest.java
4379fb8c8bb2a20f87bd65112d6972bdc45186f0
[ "Apache-2.0" ]
permissive
Darpholgshon/intellij-xquery
d4bb1ac4d0b6724f0bdd5df1b258dd44adb4a738
cebd5dec8d21a82cce76db95c99ba218b1ce4033
refs/heads/master
2020-12-29T01:11:45.574802
2013-12-04T21:28:42
2013-12-04T21:28:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,649
java
/* * Copyright 2013 Grzegorz Ligas <ligasgr@gmail.com> and other contributors (see the CONTRIBUTORS file). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.intellij.xquery.runner.ui.run.main.variables; import org.intellij.xquery.runner.state.run.XQueryRunVariable; import org.junit.Before; import org.junit.Test; import static org.hamcrest.Matchers.is; import static org.intellij.xquery.runner.ui.run.main.variables.ValueColumnInfo.HEADER; import static org.junit.Assert.assertThat; /** * User: ligasgr * Date: 09/11/13 * Time: 21:38 */ public class ValueColumnInfoTest { private ValueColumnInfo columnInfo; @Before public void setUp() throws Exception { columnInfo = new ValueColumnInfo(); } @Test public void shouldReturnHeader() { assertThat(columnInfo.getName(), is(HEADER)); } @Test public void shouldReturnValueOfVariable() { XQueryRunVariable variable = new XQueryRunVariable(); String value = "value"; variable.setValue(value); String result = columnInfo.valueOf(variable); assertThat(result, is(value)); } }
[ "ligasgr@gmail.com" ]
ligasgr@gmail.com
7a2294e1b77e4f9bd981c8dc9f682c88a6032dbe
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a087/A087215Test.java
e4e1ad3ae85eb5f703b045fdcdea718bf7a0fb5f
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
195
java
package irvine.oeis.a087; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A087215Test extends AbstractSequenceTest { }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
09f943a2fe812b851075dec9cab62a3ef8ae6eea
5488e9f60783613b94c4d01435b04233296b15e6
/services/tomcat/src/main/java/org/atteo/moonshine/tomcat/TomcatConnectorConfig.java
fb0ce1d5c2057a6d3d8e9d42a26aeb13e2fa7c02
[ "Apache-2.0" ]
permissive
zscgrhg/moonshine
e58b2df2aa2d07d5bc43322afcfdb152af2c206d
f6c9dd56d9a49d3ae298ab649bfecd86b7964a9a
refs/heads/master
2020-06-12T03:24:27.269049
2017-02-28T20:50:03
2017-02-28T20:50:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,130
java
/* * Copyright 2013 Atteo. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.atteo.moonshine.tomcat; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import org.atteo.config.AbstractConfigurable; @XmlRootElement(name = "connector") public class TomcatConnectorConfig extends AbstractConfigurable { /** * Port on which to listen. */ @XmlElement private int port = 0; /** * Coyote protocol. */ @XmlElement private String protocol = "HTTP/1.1"; public int getPort() { return port; } public String getProtocol() { return protocol; } }
[ "sentinel@atteo.com" ]
sentinel@atteo.com
4109ec029019358d91015ebad730cb457554d7c6
5488189f5563c67535bbdb5b6c7ed3343607ce65
/core/core/core/support/idAllot/CrossIdAllotService.java
d94afc1d2db2cf2889f94e94009c78538feabfb0
[]
no_license
CodeChina888/ogretsamymtel
a4ac7d54c1dcd07ab60f4af1c4bc34365b2b9ba7
b257844c465ca505601be2dbb3066a908d5c5e61
refs/heads/master
2022-11-13T07:52:44.945973
2019-01-04T03:29:46
2019-01-04T03:29:46
172,315,627
1
1
null
null
null
null
UTF-8
Java
false
false
1,748
java
package core.support.idAllot; import core.Port; import core.Record; import core.Service; import core.dbsrv.DB; import core.dbsrv.entity.IdAllot; import core.gen.proxy.DistrClass; import core.gen.proxy.DistrMethod; import core.support.Distr; import core.support.Param; /** * ID分配服务基类 */ @DistrClass(servId = Distr.CROSS_SERV_ID_ALLOT) public class CrossIdAllotService extends Service { // 数据库中记录最大ID数的主键 private static final long DB_ID = 1; // humanId范围(100000-999999],非humanId范围(1000000, 12个9] private static final long humanDigitMin = 100000L; private static final long humanDigitMax = 999999L; private static final long otherIdMin = humanDigitMax + 1; private IdAllot idAllot; // ID分配记录 public CrossIdAllotService(Port port) { super(port); } /** * 初始化 */ public void init() { // 用同步获取数据库初始ID DB db = DB.newInstance(IdAllot.tableName); db.get(DB_ID); Param param = db.waitForResult(); Record r = param.get(); // 首次 初始化 if (r == null) { idAllot = new IdAllot(); idAllot.setId(DB_ID); idAllot.setMaxID(otherIdMin); idAllot.setHumanDigit(humanDigitMin); idAllot.persist(); } else { // 恢复之前记录值 idAllot = new IdAllot(r); } } @Override public Object getId() { return Distr.CROSS_SERV_ID_ALLOT; } /** * 申请ID:范围=(1000000, 12个9] */ @DistrMethod public void apply(int num) { // 分配数量 long idMin = idAllot.getMaxID() + 1; long idMax = idAllot.getMaxID() + num; // 记录分配 idAllot.setMaxID(idMax); // 不延迟更新 立即同步到数据库 idAllot.update(true); // 返回值 port.returns("begin", idMin, "end", idMax); } }
[ "marsyung@163.com" ]
marsyung@163.com
68d1849057b2cd0dee5740d16f46cc820c5c7f41
8153654b29ab5063dbd7b69aab37bbe334169565
/src/nez/main/ext/Llpeg.java
a49bdf14bcb8baf1cdb6b52bad292a7e98e4d76f
[]
no_license
kensuketamura/nez-1
db8de861a2fa7b34589559d7e178e9c87c7b5fd4
87abc2a72585e76ecd63d04ed6ee7ba62158c583
refs/heads/master
2020-12-11T08:09:07.524820
2015-07-28T11:13:18
2015-07-28T11:13:18
33,966,749
0
0
null
2015-06-26T09:08:23
2015-04-15T01:42:33
Java
UTF-8
Java
false
false
270
java
package nez.main.ext; import nez.generator.GeneratorLoader; public class Llpeg { static { GeneratorLoader.regist("lpeg", nez.generator.LPegGrammarGenerator.class); // File Extension GeneratorLoader.regist(".lua", nez.generator.LPegGrammarGenerator.class); } }
[ "kimio@konohascript.org" ]
kimio@konohascript.org
a94e5d50d36fc0943e9c48fc964731dab8449b4d
4d41728f620d6be9916b3c8446da9e01da93fa4c
/src/main/java/org/bukkit/material/Command.java
60d7460345d8319cdb4d682c49b80de44314543a
[]
no_license
TechCatOther/um_bukkit
a634f6ccf7142b2103a528bba1c82843c0bc4e44
836ed7a890b2cb04cd7847eff2c59d7a2f6d4d7b
refs/heads/master
2020-03-22T03:13:57.898936
2018-07-02T09:20:00
2018-07-02T09:20:00
139,420,415
3
2
null
null
null
null
UTF-8
Java
false
false
1,273
java
package org.bukkit.material; import org.bukkit.Material; /** * Represents a command block */ public class Command extends MaterialData implements Redstone { public Command() { super(Material.COMMAND); } /** * @deprecated Magic value */ @Deprecated public Command(final int type) { super(type); } public Command(final Material type) { super(type); } /** * @deprecated Magic value */ @Deprecated public Command(final int type, final byte data) { super(type, data); } /** * @deprecated Magic value */ @Deprecated public Command(final Material type, final byte data) { super(type, data); } /** * Gets the current state of this Material, indicating if it's powered or * unpowered * * @return true if powered, otherwise false */ public boolean isPowered() { return (getData() & 1) != 0; } /** * Sets the current state of this Material * * @param bool whether or not the command block is powered */ public void setPowered(boolean bool) { setData((byte) (bool ? (getData() | 1) : (getData() & -2))); } @Override public String toString() { return super.toString() + " " + (isPowered() ? "" : "NOT ") + "POWERED"; } @Override public Command clone() { return (Command) super.clone(); } }
[ "alone.inbox@gmail.com" ]
alone.inbox@gmail.com
849720ec418148320c72ebcb35d6610670577a89
8d0af25fcb0cfbf0ab8465d5969e2f8895bd2199
/src/main/java/tu/faas/web/interceptors/UserPagesInterceptor.java
466e2636f7b4ff0661dd1bb9225233a630663bb4
[]
no_license
AleksandarBoev/Food-as-a-Service
d8d034e0e8b6482ce2a95f0b8864ce630b27db2b
542fb57076ab489fdb5b1b08dec00f3d053cb211
refs/heads/master
2022-01-27T12:57:31.282756
2020-04-01T14:36:09
2020-04-01T14:36:09
204,029,653
0
0
null
2022-01-21T23:29:07
2019-08-23T15:57:19
Java
UTF-8
Java
false
false
825
java
package tu.faas.web.interceptors; import org.springframework.stereotype.Component; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import tu.faas.domain.constants.RoleConstants; import tu.faas.web.session.UserData; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @Component public class UserPagesInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { UserData userData = (UserData) request.getSession().getAttribute(UserData.NAME); if (!userData.getRoles().contains(RoleConstants.ROLE_USER)) { response.sendRedirect("/login"); return false; } return true; } }
[ "aleksandarboev95@gmail.com" ]
aleksandarboev95@gmail.com
1333c757981930635cf4479997a5c4b89f3f6cb7
4dd8e1c81838b6c657b686a960afcc8cffff5d63
/app/src/main/java/zenghao/com/study/plugin/ReSkin/attr/base/DynamicAttr.java
9dd251c0b8adceddd3e35d9f10caa6afebbb90c2
[]
no_license
darrennight/AndroidPhoneStudyDemo
5da817641370599e449770ee09fc9bca8bbf91cf
67889cf34aa88b1338d77e71756bd9e5b428a4a2
refs/heads/master
2022-11-02T17:34:54.229943
2022-10-20T10:06:05
2022-10-20T10:06:05
63,564,914
1
0
null
null
null
null
UTF-8
Java
false
false
501
java
package zenghao.com.study.plugin.ReSkin.attr.base; /** * Created by _SOLID * Date:2016/4/14 * Time:10:21 */ public class DynamicAttr { /** * attr name , defined from {@link AttrFactory} :<br> * should be */ public String attrName; /** * resource id from default context , eg: "R.drawable.app_bg" */ public int refResId; public DynamicAttr(String attrName, int refResId) { this.attrName = attrName; this.refResId = refResId; } }
[ "zenghao@breadtrip.com" ]
zenghao@breadtrip.com
950d569222ffee756536ea1b936b94f0393f8772
bf76adb6518f66e1633f08c47083d9afa6e3f007
/Y2017JC79PRO/src/Teacher/OOP_CONCEPT/GENERICS/SAMPLE02/GENERICS_CLASS/Students.java
dfacf02fd1dec0d6f8ca17a14463c2465375e11f
[]
no_license
dongbuihuu/Y2017JC79DB
0699e394fdd2e2f7dc06e915a42374e98b76ea00
36ba4d22a35bd2defa6b851a0de24e8547c4808d
refs/heads/master
2021-08-28T10:47:53.207455
2017-12-12T01:20:39
2017-12-12T01:20:39
105,788,617
2
0
null
null
null
null
UTF-8
Java
false
false
963
java
package JAVACORE_TRAINING.TEACHER.OOP_CONCEPT.GENERICS.SAMPLE02.GENERICS_CLASS; public class Students { private int RollNo; private String FullName; private int Age; private double Mark; public Students(int rollNo, String fullName, int age, double mark) { super(); RollNo = rollNo; FullName = fullName; Age = age; Mark = mark; } public int getRollNo() { return RollNo; } public void setRollNo(int rollNo) { RollNo = rollNo; } public String getFullName() { return FullName; } public void setFullName(String fullName) { FullName = fullName; } public int getAge() { return Age; } public void setAge(int age) { Age = age; } public double getMark() { return Mark; } public void setMark(double mark) { Mark = mark; } }
[ "silamy1927@gmail.com" ]
silamy1927@gmail.com
dbc7adc4b96159e215a3725935fa0dfb1c4337d7
ed6fbf4119aa18b8b336af1984967429785999c6
/legend-engine-executionPlan-dependencies/src/main/java/org/finos/legend/engine/plan/dependencies/domain/date/Quarter.java
6a9b760381843cc11c595cb076f5e265d295a18a
[ "Apache-2.0", "CC0-1.0" ]
permissive
stephanof/legend-engine
8d1e2a7fa77439b79e7fe43f484380471c281c54
474f98926bf0d5f7fd082a1a031818204f50a417
refs/heads/master
2023-08-16T20:22:31.213161
2021-10-12T06:07:01
2021-10-12T06:07:01
316,520,901
0
0
Apache-2.0
2021-07-12T10:15:05
2020-11-27T14:18:34
Java
UTF-8
Java
false
false
711
java
// Copyright 2020 Goldman Sachs // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.finos.legend.engine.plan.dependencies.domain.date; public enum Quarter { Q1, Q2, Q3, Q4 }
[ "pierre.debelen@gs.com" ]
pierre.debelen@gs.com
7566c56ae7fce6acaef75a6d061aab7518feeffe
5456a38a3374f32e3b0b36b5df47bf3e281c979a
/rest/workspace-csra-pjsetup/utils/src/main/java/com/hcentive/utils/ftl/service/FreeMarkerTemplateLookupService.java
0883c45a19297947052f9d2b50c4dee4c78dd6ed
[]
no_license
kietutorial/kiesetup
960ea0887af1a605bc3fbe516f1070946d2611ed
d856e7e2dbc31d9e928288313a6d942c4a054a09
refs/heads/master
2022-12-21T20:56:43.711869
2019-09-01T01:06:32
2019-09-01T01:06:32
205,611,561
0
0
null
2022-12-16T01:21:47
2019-09-01T00:41:55
Java
UTF-8
Java
false
false
607
java
package com.hcentive.utils.ftl.service; import java.io.IOException; import com.hcentive.utils.exception.HCException; import com.hcentive.utils.notification.domain.FreeMarkerTemplate; public interface FreeMarkerTemplateLookupService { public String doFreeMarkerTemplateLookUp(String templateName, String stateCode, Long issuerCode) throws HCException; public String doFreeMarkerTemplateLookUp(FreeMarkerTemplate template, String stateCode, Long issuerCode) throws HCException, IOException; public FreeMarkerTemplate getTemplateObjByName(String templateName) throws HCException; }
[ "demo@demo.net" ]
demo@demo.net
0ecef7996c13d4193231e31bc9e82676ad309d06
ca7da6499e839c5d12eb475abe019370d5dd557d
/spring-context/src/main/java/org/springframework/format/number/money/MonetaryAmountFormatter.java
0fbfa28a1abdb5afb36dbaad9235e1951fea8895
[ "Apache-2.0" ]
permissive
yangfancoming/spring-5.1.x
19d423f96627636a01222ba747f951a0de83c7cd
db4c2cbcaf8ba58f43463eff865d46bdbd742064
refs/heads/master
2021-12-28T16:21:26.101946
2021-12-22T08:55:13
2021-12-22T08:55:13
194,103,586
0
1
null
null
null
null
UTF-8
Java
false
false
2,166
java
package org.springframework.format.number.money; import java.util.Locale; import javax.money.MonetaryAmount; import javax.money.format.MonetaryAmountFormat; import javax.money.format.MonetaryFormats; import org.springframework.format.Formatter; import org.springframework.lang.Nullable; /** * Formatter for JSR-354 {@link javax.money.MonetaryAmount} values, * delegating to {@link javax.money.format.MonetaryAmountFormat#format} * and {@link javax.money.format.MonetaryAmountFormat#parse}. * * @since 4.2 * @see #getMonetaryAmountFormat */ public class MonetaryAmountFormatter implements Formatter<MonetaryAmount> { @Nullable private String formatName; /** * Create a locale-driven MonetaryAmountFormatter. */ public MonetaryAmountFormatter() { } /** * Create a new MonetaryAmountFormatter for the given format name. * @param formatName the format name, to be resolved by the JSR-354 * provider at runtime */ public MonetaryAmountFormatter(String formatName) { this.formatName = formatName; } /** * Specify the format name, to be resolved by the JSR-354 provider * at runtime. * Default is none, obtaining a {@link MonetaryAmountFormat} * based on the current locale. */ public void setFormatName(String formatName) { this.formatName = formatName; } @Override public String print(MonetaryAmount object, Locale locale) { return getMonetaryAmountFormat(locale).format(object); } @Override public MonetaryAmount parse(String text, Locale locale) { return getMonetaryAmountFormat(locale).parse(text); } /** * Obtain a MonetaryAmountFormat for the given locale. * The default implementation simply calls * {@link javax.money.format.MonetaryFormats#getAmountFormat} * with either the configured format name or the given locale. * @param locale the current locale * @return the MonetaryAmountFormat (never {@code null}) * @see #setFormatName */ protected MonetaryAmountFormat getMonetaryAmountFormat(Locale locale) { if (this.formatName != null) { return MonetaryFormats.getAmountFormat(this.formatName); } else { return MonetaryFormats.getAmountFormat(locale); } } }
[ "34465021+jwfl724168@users.noreply.github.com" ]
34465021+jwfl724168@users.noreply.github.com
fc9cad6956b4dd82c9e714ceedab5f4d7365a391
37cbb9e3eb8b58734ebeb4a088dc63ddc224d6a1
/evaluation/fop-0.95/src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java
a90600945f1d838485c01fcb2b2b3c66ec384be4
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
lu-cs-sde/IntraJSCAM2021
d4713c4488e763b55c241f8a249f56a8d168f45d
088cb8fdfb59748febbd0ffc54c8fabadab5c662
refs/heads/main
2023-04-15T11:50:42.418534
2023-02-06T09:21:54
2023-02-06T09:21:54
392,981,505
0
0
null
null
null
null
UTF-8
Java
false
false
5,243
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. */ /* $Id: InlineKnuthSequence.java 557337 2007-07-18 17:37:14Z adelmelle $ */ package org.apache.fop.layoutmgr; import java.util.LinkedList; import java.util.List; import org.apache.fop.layoutmgr.inline.InlineLevelLayoutManager; import org.apache.fop.layoutmgr.inline.KnuthInlineBox; /** * Represents a list of inline Knuth elements. * If closed, it represents all elements of a Knuth paragraph. */ public class InlineKnuthSequence extends KnuthSequence { private boolean isClosed = false; /** * Creates a new and empty list. */ public InlineKnuthSequence() { super(); } /** * Creates a new list from an existing list. * @param list The list from which to create the new list. */ public InlineKnuthSequence(List list) { super(list); } /** * Is this an inline or a block sequence? * @return false */ public boolean isInlineSequence() { return true; } /* (non-Javadoc) * {@inheritDoc} */ public boolean canAppendSequence(KnuthSequence sequence) { return sequence.isInlineSequence() && !isClosed; } /* (non-Javadoc) * {@inheritDoc} */ public boolean appendSequence(KnuthSequence sequence) { if (!canAppendSequence(sequence)) { return false; } // does the first element of the first paragraph add to an existing word? ListElement lastOldElement, firstNewElement; lastOldElement = getLast(); firstNewElement = sequence.getElement(0); if (firstNewElement.isBox() && !((KnuthElement) firstNewElement).isAuxiliary() && lastOldElement.isBox() && ((KnuthElement) lastOldElement).getW() != 0) { addALetterSpace(); } addAll(sequence); return true; } /* (non-Javadoc) * {@inheritDoc} */ public boolean appendSequence(KnuthSequence sequence, boolean keepTogether, BreakElement breakElement) { return appendSequence(sequence); } /* (non-Javadoc) * {@inheritDoc} */ public KnuthSequence endSequence() { if (!isClosed) { add(new KnuthPenalty(0, -KnuthElement.INFINITE, false, null, false)); isClosed = true; } return this; } public void addALetterSpace() { KnuthBox prevBox = (KnuthBox) getLast(); if (prevBox.isAuxiliary() && (size() < 4 || !getElement(size() - 2).isGlue() || !getElement(size() - 3).isPenalty() || !getElement(size() - 4).isBox() ) ) { // Not the sequence we are expecting return; } removeLast(); LinkedList oldList = new LinkedList(); // if there are two consecutive KnuthBoxes the // first one does not represent a whole word, // so it must be given one more letter space if (!prevBox.isAuxiliary()) { // if letter spacing is constant, // only prevBox needs to be replaced; oldList.add(prevBox); } else { // prevBox is the last element // in the sub-sequence // <box> <aux penalty> <aux glue> <aux box> // the letter space is added to <aux glue>, // while the other elements are not changed oldList.add(prevBox); oldList.addFirst((KnuthGlue) removeLast()); oldList.addFirst((KnuthPenalty) removeLast()); oldList.addFirst((KnuthBox) removeLast()); } // adding a letter space could involve, according to the text // represented by oldList, replacing a glue element or adding // new elements addAll(((InlineLevelLayoutManager) prevBox.getLayoutManager()) .addALetterSpaceTo(oldList)); // prevBox may not be a KnuthInlineBox; // this may happen if it is a padding box; see bug 39571. if ( prevBox instanceof KnuthInlineBox && ((KnuthInlineBox) prevBox).isAnchor()) { // prevBox represents a footnote citation: copy footnote info // from prevBox to the new box KnuthInlineBox newBox = (KnuthInlineBox) getLast(); newBox.setFootnoteBodyLM(((KnuthInlineBox) prevBox).getFootnoteBodyLM()); } } }
[ "riouakidriss@hotmail.it" ]
riouakidriss@hotmail.it
783b9494003968fdbcefe667cf413db6bd2261a1
27511a2f9b0abe76e3fcef6d70e66647dd15da96
/src/com/instagram/common/analytics/ae.java
ed11548a2e5cbe89a76c3059da4472f5da930a7f
[]
no_license
biaolv/com.instagram.android
7edde43d5a909ae2563cf104acfc6891f2a39ebe
3fcd3db2c3823a6d29a31ec0f6abcf5ceca995de
refs/heads/master
2022-05-09T15:05:05.412227
2016-07-21T03:48:36
2016-07-21T03:48:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
367
java
package com.instagram.common.analytics; import android.content.Intent; import com.instagram.common.r.a; final class ae implements a { ae(ao paramao) {} public final void a(Intent paramIntent) { ao.a(a, ap.d); } } /* Location: * Qualified Name: com.instagram.common.analytics.ae * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
e717f3d1f29c3bd5f6381efb5f8f3db2a99adbbc
d16f17f3b9d0aa12c240d01902a41adba20fad12
/src/leetcode/leetcode7xx/leetcode763/Solution.java
4b056a09983cbd8f3a2875c22a61ce9d22d7ffb1
[]
no_license
redsun9/leetcode
79f9293b88723d2fd123d9e10977b685d19b2505
67d6c16a1b4098277af458849d352b47410518ee
refs/heads/master
2023-06-23T19:37:42.719681
2023-06-09T21:11:39
2023-06-09T21:11:39
242,967,296
38
3
null
null
null
null
UTF-8
Java
false
false
665
java
package leetcode.leetcode7xx.leetcode763; import java.util.LinkedList; import java.util.List; public class Solution { public List<Integer> partitionLabels(String s) { int n = s.length(); int[] left = new int[26]; for (int i = 0; i < n; i++) left[s.charAt(i) - 'a'] = i; List<Integer> ans = new LinkedList<>(); for (int i = 0, start = 0, curLeft = 0; i < n; i++) { curLeft = Math.max(curLeft, left[s.charAt(i) - 'a']); if (curLeft == i) { ans.add(i - start + 1); start = i + 1; curLeft = i + 1; } } return ans; } }
[ "mokeev.vladimir@gmail.com" ]
mokeev.vladimir@gmail.com
29b99ecceb3a862d1ed0db372c73a6bf3c837d47
9b9c3236cc1d970ba92e4a2a49f77efcea3a7ea5
/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/KeucereusAllianceBase/LindviorScene.java
421c21ada1d2c09b08ae825f65217246e54bfe5b
[]
no_license
BETAJIb/ikol
73018f8b7c3e1262266b6f7d0a7f6bbdf284621d
f3709ea10be2d155b0bf1dee487f53c723f570cf
refs/heads/master
2021-01-05T10:37:17.831153
2019-12-24T22:23:02
2019-12-24T22:23:02
240,993,482
0
0
null
null
null
null
UTF-8
Java
false
false
4,253
java
/* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package ai.areas.KeucereusAllianceBase; import java.util.Calendar; import java.util.GregorianCalendar; import org.l2jmobius.gameserver.datatables.SpawnTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.NpcStringId; import ai.AbstractNpcAI; /** * Lindvior Scene AI. * @author nonom */ public class LindviorScene extends AbstractNpcAI { private static final int LINDVIOR_CAMERA = 18669; private static final int TOMARIS = 32552; private static final int ARTIUS = 32559; private static final int RESET_HOUR = 18; private static final int RESET_MIN = 58; private static final int RESET_DAY_1 = Calendar.TUESDAY; private static final int RESET_DAY_2 = Calendar.FRIDAY; private static boolean ALT_MODE = false; private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled private Npc _lindviorCamera = null; private Npc _tomaris = null; private Npc _artius = null; public LindviorScene() { scheduleNextLindviorVisit(); } @Override public String onAdvEvent(String event, Npc npc, PlayerInstance player) { switch (event) { case "tomaris_shout1": { npc.broadcastSay(ChatType.NPC_SHOUT, NpcStringId.HUH_THE_SKY_LOOKS_FUNNY_WHAT_S_THAT); break; } case "artius_shout": { npc.broadcastSay(ChatType.NPC_SHOUT, NpcStringId.A_POWERFUL_SUBORDINATE_IS_BEING_HELD_BY_THE_BARRIER_ORB_THIS_REACTION_MEANS); break; } case "tomaris_shout2": { npc.broadcastSay(ChatType.NPC_SHOUT, NpcStringId.BE_CAREFUL_SOMETHING_S_COMING); break; } case "lindvior_scene": { if (npc != null) { playMovie(World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000), Movie.SC_LINDVIOR); } break; } case "start": { _lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn(); _tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn(); _artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn(); startQuestTimer("tomaris_shout1", 1000, _tomaris, null); startQuestTimer("artius_shout", 60000, _artius, null); startQuestTimer("tomaris_shout2", 90000, _tomaris, null); startQuestTimer("lindvior_scene", 120000, _lindviorCamera, null); scheduleNextLindviorVisit(); break; } } return super.onAdvEvent(event, npc, player); } public void scheduleNextLindviorVisit() { final long delay = (ALT_MODE) ? ALT_MODE_MIN * 60000 : scheduleNextLindviorDate(); startQuestTimer("start", delay, null, null); } protected long scheduleNextLindviorDate() { final GregorianCalendar date = new GregorianCalendar(); date.set(Calendar.MINUTE, RESET_MIN); date.set(Calendar.HOUR_OF_DAY, RESET_HOUR); if (System.currentTimeMillis() >= date.getTimeInMillis()) { date.add(Calendar.DAY_OF_WEEK, 1); } final int dayOfWeek = date.get(Calendar.DAY_OF_WEEK); if (dayOfWeek <= RESET_DAY_1) { date.add(Calendar.DAY_OF_WEEK, RESET_DAY_1 - dayOfWeek); } else if (dayOfWeek <= RESET_DAY_2) { date.add(Calendar.DAY_OF_WEEK, RESET_DAY_2 - dayOfWeek); } else { date.add(Calendar.DAY_OF_WEEK, 1 + RESET_DAY_1); } return date.getTimeInMillis() - System.currentTimeMillis(); } public static void main(String[] args) { new LindviorScene(); } }
[ "mobius@cyber-wizard.com" ]
mobius@cyber-wizard.com
153a70a934f17e2658cf0f5c6be4e98dcdcf3865
4991436c2b266b2892363b4e8d421247a8d29c6e
/checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/sizes/linelength/InputLineLengthLongLink.java
c3acd4e189d4f37f030ff98ba5c3040bba4dda86
[ "Apache-2.0" ]
permissive
spoole167/java-static-analysis-samples
d9f970104bb69abb968e0ecf09c11aa25c364ebd
880f9b394e531d8c03af425b1b4e5a95302a3359
refs/heads/main
2023-08-14T22:26:12.012352
2021-09-15T05:50:20
2021-09-15T05:50:20
406,629,824
0
0
Apache-2.0
2021-09-15T05:49:41
2021-09-15T05:49:41
null
UTF-8
Java
false
false
473
java
/* LineLength fileExtensions = (default)all files ignorePattern = ^ *\\* *([^ ]+|\\{@code .*|<a href="[^"]+">)$ max = (default)80 */ package com.puppycrawl.tools.checkstyle.checks.sizes.linelength; /** * <a href="a long string that has exceeded the 80 character per line limit">with inline title</a> // violation * <a href="another long string that has exceeded the 80 character per line limit"> * with wrapped title</a> */ public class InputLineLengthLongLink { }
[ "spoole167@googlemail.com" ]
spoole167@googlemail.com
fab4c2b6635d375c26ad200ef77d4ddc03c8022f
0894b0cf38d0c99ff0628a752ece5f6948566009
/src/main/java/com/spingular/chat/repository/PersistenceAuditEventRepository.java
16dfd39ebc9a4fc4ef59986abdd4123529b3abe0
[]
no_license
Tonterias/spingularchat
d61b9aa4cad4773bd725e525fad204737b953816
5f6e39c7fa26997d3585ccc56c7b325659015f65
refs/heads/master
2023-05-13T19:12:07.088374
2019-10-05T10:25:22
2019-10-05T10:25:22
212,974,243
3
0
null
2023-05-06T22:58:12
2019-10-05T09:28:02
Java
UTF-8
Java
false
false
882
java
package com.spingular.chat.repository; import com.spingular.chat.domain.PersistentAuditEvent; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import java.time.Instant; import java.util.List; /** * Spring Data JPA repository for the {@link PersistentAuditEvent} entity. */ public interface PersistenceAuditEventRepository extends JpaRepository<PersistentAuditEvent, Long> { List<PersistentAuditEvent> findByPrincipal(String principal); List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfterAndAuditEventType(String principal, Instant after, String type); Page<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable); List<PersistentAuditEvent> findByAuditEventDateBefore(Instant before); }
[ "ecorreos@htomail.com" ]
ecorreos@htomail.com
dee096483e3a581ff07407ffb62acfddb7ccefc9
58a7576fbb256d328f082342792e00739145b0ea
/forge/mcp/temp/src/minecraft/net/minecraft/server/integrated/IntegratedPlayerList.java
ed09d0c2dcf59e830e9a6d9733097fe103f0397e
[ "BSD-3-Clause" ]
permissive
thatsimplekid/KitchenCraft
a6761dfd977d5796d07f11dd59657665209310c7
3d75f21e646a06e0c9987e6d32851f233c1dd36e
refs/heads/master
2021-01-01T05:38:39.059615
2013-10-22T19:02:13
2013-10-22T19:02:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,513
java
package net.minecraft.server.integrated; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.net.SocketAddress; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.server.MinecraftServer; import net.minecraft.server.integrated.IntegratedServer; import net.minecraft.server.management.ServerConfigurationManager; @SideOnly(Side.CLIENT) public class IntegratedPlayerList extends ServerConfigurationManager { private NBTTagCompound field_72416_e = null; public IntegratedPlayerList(IntegratedServer p_i3125_1_) { super(p_i3125_1_); this.field_72402_d = 10; } protected void func_72391_b(EntityPlayerMP p_72391_1_) { if(p_72391_1_.func_70005_c_().equals(this.func_72415_s().func_71214_G())) { this.field_72416_e = new NBTTagCompound(); p_72391_1_.func_70109_d(this.field_72416_e); } super.func_72391_b(p_72391_1_); } public String func_72399_a(SocketAddress p_72399_1_, String p_72399_2_) { return p_72399_2_.equalsIgnoreCase(this.func_72415_s().func_71214_G())?"That name is already taken.":super.func_72399_a(p_72399_1_, p_72399_2_); } public IntegratedServer func_72415_s() { return (IntegratedServer)super.func_72365_p(); } public NBTTagCompound func_72378_q() { return this.field_72416_e; } // $FF: synthetic method public MinecraftServer func_72365_p() { return this.func_72415_s(); } }
[ "anteater46@polegamers.com" ]
anteater46@polegamers.com
b9fb60dd083508f1c7506742a7b5fd1d8e5f8e9b
a1093ccbced9b64ac99ff25df68dd3350e27e452
/src/main/java/com/novaindripuspita/islamiapp/HalalActivity.java
17042af350dc93ed4c4db68b6eee92b2aeab5ea7
[]
no_license
novaindripuspita/IslamiApp
9fd974fba47dcf8af56c5871fea1e92f38a433cd
a2484b6031a32ffbce69d57345d97eb1aa1174bf
refs/heads/master
2020-07-08T16:51:15.697829
2019-08-22T06:16:52
2019-08-22T06:16:52
203,719,324
0
0
null
null
null
null
UTF-8
Java
false
false
3,489
java
package com.novaindripuspita.islamiapp; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.SearchView; import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.os.Bundle; import android.util.Log; import android.widget.ProgressBar; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; public class HalalActivity extends AppCompatActivity { private ListProdukAdapter mAdapter; private ArrayList<Produk> mListProduk; private SearchView searchView; private RecyclerView recyclerView; private ProgressBar progressBar; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_halal); recyclerView = (RecyclerView)findViewById(R.id.recyeler_view); searchView = (SearchView)findViewById(R.id.search_view); progressBar = (ProgressBar)findViewById(R.id.progress_bar); mListProduk = new ArrayList<Produk>(); mAdapter = new ListProdukAdapter(mListProduk); LinearLayoutManager mLayoutManager = new LinearLayoutManager(this); recyclerView.setLayoutManager(mLayoutManager); recyclerView.addItemDecoration(new DividerItemDecoration(this, mLayoutManager.getOrientation())); recyclerView.setAdapter(mAdapter); searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener(){ @Override public boolean onQueryTextSubmit(String query) { loadData (query); return false; } @Override public boolean onQueryTextChange(String query) { return false; } }); } private void loadData(String kw) { Log.d("KW_DATA", kw); try { String url = "?menu=nama_produk&query="+kw; ClientAsyncTaskHalal task = new ClientAsyncTaskHalal(this, url, new ClientAsyncTaskHalal.OnPostExecuteListener() { @Override public void OnPostExecute(String result) { Log.d("HalalData", result); try { JSONObject jsonObject = new JSONObject(result); JSONArray jsonArray =jsonObject.getJSONArray("data"); mListProduk.clear(); for (int i=0; i<jsonArray.length(); i++) { JSONObject obj = jsonArray.getJSONObject(i); Produk produk = new Produk(); produk.nama = obj.getString("nama_produk"); produk.no_sertifikat = obj.getString("nomor_sertifikat"); produk.produsen = obj.getString("nama_produsen"); produk.berlaku = obj.getString("berlaku_hingga"); mListProduk.add(produk); } mAdapter.notifyDataSetChanged(); }catch (JSONException e) { e.printStackTrace(); } } }); task.setmProgress(this.progressBar); task.execute(); }catch (Exception e) { e.printStackTrace(); } } }
[ "=" ]
=
056d9816d87d90e2f1d9360447033ad1eeccef39
0a443175b12eb68c24e1cf5f4f5a021455ac9eb4
/sos-client/src/sos/police_v2/base/AbstractPoliceOfficeActivity.java
a9db5dd14d5b86ae2d330d7c5d9a596a3dacf03d
[ "MIT" ]
permissive
reyhanehpahlevan/SOS_rescue_agent
7b52302b14f9bd927f9f82f358439248f1c26303
4dafa5a6cb3ff5ef2b34abeafbd82fc78f8b79f8
refs/heads/main
2023-03-03T07:33:42.883404
2021-02-15T10:19:50
2021-02-15T10:19:50
304,570,285
0
0
MIT
2020-10-16T09:12:56
2020-10-16T08:46:36
null
UTF-8
Java
false
false
449
java
package sos.police_v2.base; import sos.base.CenterActivity; import sos.base.SOSAgent; import sos.base.SOSConstant.AgentType; /** * SOS centre agent. */ public class AbstractPoliceOfficeActivity extends CenterActivity { public AbstractPoliceOfficeActivity(SOSAgent<?> sosAgent) { super(sosAgent); } @Override public String toString() { return "PoliceOfficeActivity"; } public AgentType type() { return AgentType.FireStation; } }
[ "reyhaneh.pahlevan@gmail.com" ]
reyhaneh.pahlevan@gmail.com
16b71c11406f305f41c0c6ecfe03b35f7d619fd8
d7c5121237c705b5847e374974b39f47fae13e10
/airspan.netspan/src/main/java/Netspan/NBI_17_0/Statistics/StatsLteLiteCompResponse.java
76b210d78244e8f82ec24df67c3ca5b0e5acf274
[]
no_license
AirspanNetworks/SWITModules
8ae768e0b864fa57dcb17168d015f6585d4455aa
7089a4b6456621a3abd601cc4592d4b52a948b57
refs/heads/master
2022-11-24T11:20:29.041478
2020-08-09T07:20:03
2020-08-09T07:20:03
184,545,627
1
0
null
2022-11-16T12:35:12
2019-05-02T08:21:55
Java
UTF-8
Java
false
false
2,208
java
package Netspan.NBI_17_0.Statistics; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for StatsLteLiteCompResponse complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="StatsLteLiteCompResponse"&gt; * &lt;complexContent&gt; * &lt;extension base="{http://Airspan.Netspan.WebServices}WsResponse"&gt; * &lt;sequence&gt; * &lt;element name="StatisticsResult" type="{http://Airspan.Netspan.WebServices}NodeLteLiteCompStatsResult" maxOccurs="unbounded" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/extension&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StatsLteLiteCompResponse", propOrder = { "statisticsResult" }) public class StatsLteLiteCompResponse extends WsResponse { @XmlElement(name = "StatisticsResult") protected List<NodeLteLiteCompStatsResult> statisticsResult; /** * Gets the value of the statisticsResult property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the statisticsResult property. * * <p> * For example, to add a new item, do as follows: * <pre> * getStatisticsResult().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link NodeLteLiteCompStatsResult } * * */ public List<NodeLteLiteCompStatsResult> getStatisticsResult() { if (statisticsResult == null) { statisticsResult = new ArrayList<NodeLteLiteCompStatsResult>(); } return this.statisticsResult; } }
[ "dshalom@airspan.com" ]
dshalom@airspan.com
6b55256d17015bc75a41ef95bd4ad2dd63790507
a102f88c9b29a591d8abb8b9917ca841c48ed4d1
/bitreview-spring-ioc/src/main/java/bitcamp/java106/step12/ex4/Exam01.java
a346ce8c7d2989748bd6b1b90f249a421a2d216f
[]
no_license
pparksuuu/bitreview
11c4a15b1dd0b7396e9075f6654ea569bfc16382
64e078d1ea24282b6d26fdd31113fb5c84604984
refs/heads/master
2021-01-24T20:58:26.346723
2019-04-16T06:30:32
2019-04-16T06:30:32
123,263,991
0
0
null
null
null
null
UTF-8
Java
false
false
1,307
java
package bitcamp.java106.step12.ex4; import java.util.HashMap; import java.util.List; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import bitcamp.java106.BeanUtils; import bitcamp.java106.step12.Board; public class Exam01 { public static void main(String[] args) throws Exception { ApplicationContext iocContainer = new ClassPathXmlApplicationContext( "bitcamp/java106/step12/ex4/application-context.xml"); BeanUtils.printBeanNames(iocContainer); BoardDao boardDao = iocContainer.getBean(BoardDao.class); // 1) 게시물 입력 Board board = new Board(); board.setTitle("제목입니다."); board.setContent("내용입니다."); boardDao.insert(board); // 2) 게시물 목록 조회 HashMap<String,Object> params = new HashMap<>(); params.put("startIndex", 0); params.put("pageSize", 5); List<Board> list = boardDao.selectList(params); for (Board b : list) { System.out.printf("%d, %s, %s\n", b.getNo(), b.getTitle(), b.getRegisteredDate()); } } }
[ "supr2000@gmail.com" ]
supr2000@gmail.com
1f958f60982e1b9b33f612f72af20449e94ec3c8
380fc00286058f32e825738e642dfdec1dd98a5e
/taoZhuMa/src/main/java/com/ruiyu/taozhuma/activity/TzmSettingActivity.java
dbd8ce55d1cc8acc265fd67ae5b57e6a78876174
[]
no_license
huangbo877/TaoZhuMabase
b3af94d22c2d6e83fab77394ec011a93a5378286
b02b69e892253c8323ccfb364392ad536938108a
refs/heads/master
2021-01-10T10:12:07.400658
2016-02-25T06:19:24
2016-02-25T06:19:24
52,503,026
0
0
null
null
null
null
UTF-8
Java
false
false
6,750
java
package com.ruiyu.taozhuma.activity; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import com.lidroid.xutils.BitmapUtils; import com.ruiyu.taozhuma.R; import com.ruiyu.taozhuma.config.AppConfig; import com.ruiyu.taozhuma.dialog.CustomCommonDialog; import com.ruiyu.taozhuma.utils.UserInfoUtils; import com.ruiyu.taozhuma.utils.ToastUtils; import com.ruiyu.taozhuma.utils.ProgressDialogUtil; import com.umeng.update.UmengUpdateAgent; import com.umeng.update.UmengUpdateListener; import com.umeng.update.UpdateResponse; import com.umeng.update.UpdateStatus; public class TzmSettingActivity extends Activity { private Button btn_head_left, settin_btn_exit; private TextView txt_head_title; private RelativeLayout rl_feedback, rl_reSetPassWork, rl_help_centre, rl_aboutus, rl_clear, rl_update; private Boolean isLogin; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tzm_setting_activity); initView(); checkLogin(); } private void initView() { rl_update = (RelativeLayout) this.findViewById(R.id.rl_update); rl_update.setOnClickListener(clickListener); rl_clear = (RelativeLayout) this.findViewById(R.id.rl_clear); rl_clear.setOnClickListener(clickListener); btn_head_left = (Button) this.findViewById(R.id.btn_head_left); rl_feedback = (RelativeLayout) this .findViewById(R.id.setting_rl_feedback); txt_head_title = (TextView) this.findViewById(R.id.txt_head_title); btn_head_left.setOnClickListener(clickListener); rl_feedback.setOnClickListener(clickListener); settin_btn_exit = (Button) this.findViewById(R.id.settin_btn_exit); settin_btn_exit.setOnClickListener(clickListener); txt_head_title.setText("设置"); rl_reSetPassWork = (RelativeLayout) findViewById(R.id.rl_reSetPassWork); rl_reSetPassWork.setOnClickListener(clickListener); rl_help_centre = (RelativeLayout) this .findViewById(R.id.rl_help_centre); rl_help_centre.setOnClickListener(clickListener); rl_aboutus = (RelativeLayout) findViewById(R.id.rl_aboutus); rl_aboutus.setOnClickListener(clickListener); checkLogin(); if (!isLogin) { rl_reSetPassWork.setVisibility(View.GONE); settin_btn_exit.setVisibility(View.GONE); } } View.OnClickListener clickListener = new OnClickListener() { @Override public void onClick(View v) { switch (v.getId()) { case R.id.rl_update: ProgressDialogUtil.openProgressDialog(TzmSettingActivity.this, "", ""); UmengUpdateAgent.setUpdateAutoPopup(false); UmengUpdateAgent.setUpdateListener(new UmengUpdateListener() { @Override public void onUpdateReturned(int updateStatus, UpdateResponse updateInfo) { ProgressDialogUtil.closeProgressDialog(); switch (updateStatus) { case UpdateStatus.Yes: // has update UmengUpdateAgent.showUpdateDialog( TzmSettingActivity.this, updateInfo); break; case UpdateStatus.No: // has no update ToastUtils.showShortToast(TzmSettingActivity.this, "您好,已经是最新版本!"); break; case UpdateStatus.NoneWifi: // none wifi // Toast.makeText(TzmSettingActivity.this, // "没有wifi连接, 只在wifi下更新", // Toast.LENGTH_SHORT).show(); break; case UpdateStatus.Timeout: // time out ToastUtils.showShortToast(TzmSettingActivity.this, "连接超时,请您稍后再试"); break; } } }); UmengUpdateAgent.forceUpdate(TzmSettingActivity.this); break; case R.id.rl_clear: CustomCommonDialog.Builder builder2 = new CustomCommonDialog.Builder( TzmSettingActivity.this); builder2.setTitle("确定要清除所有缓存吗?"); builder2.setNegativeButtonText("取消"); builder2.setPositiveButtonText("清除"); builder2.setNegativeButton(new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); builder2.setPositiveButton(new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { ProgressDialogUtil.openProgressDialog( TzmSettingActivity.this, "", ""); try { BitmapUtils bitmapUtils = new BitmapUtils( TzmSettingActivity.this); bitmapUtils.clearDiskCache(); UserInfoUtils.clearSearchHistory(); ToastUtils.showShortToast(TzmSettingActivity.this, "缓存清理完成"); } catch (Exception e) { ToastUtils.showShortToast(TzmSettingActivity.this, "清理失败,请稍后再试"); } ProgressDialogUtil.closeProgressDialog(); dialog.dismiss(); } }); builder2.create().show(); break; case R.id.rl_help_centre: startActivity(new Intent(TzmSettingActivity.this, TzmHelpTypeListActivity.class)); break; case R.id.btn_head_left: onBackPressed(); break; case R.id.setting_rl_feedback: Intent intent_feedback = new Intent(TzmSettingActivity.this, TzmFeedbackActivity.class); startActivity(intent_feedback); break; case R.id.settin_btn_exit: AlertDialog.Builder builder = new Builder( TzmSettingActivity.this); builder.setMessage("确认退出登录吗?"); builder.setTitle("提示"); builder.setPositiveButton("确认", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { UserInfoUtils.signOut(); Intent intent = new Intent(); setResult(AppConfig.TZM_LOGIN_OUT, intent); finish(); } }); builder.setNegativeButton("取消", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); builder.create().show(); break; case R.id.rl_reSetPassWork: Intent intent_reSetPassWork = new Intent( TzmSettingActivity.this, TzmReSetPassWork.class); startActivity(intent_reSetPassWork); break; case R.id.rl_aboutus: Intent intent_aboutus = new Intent(TzmSettingActivity.this, TzmAboutusActivity.class); startActivity(intent_aboutus); break; } } }; // 检查用户是否登陆 private void checkLogin() { isLogin = UserInfoUtils.isLogin(); } }
[ "黄博" ]
黄博
67e8003e9fdd435ae6933f5c279db6fee102f25b
963b9d3658094434fd6528dcdc01183d83663740
/src/main/java/org/jboss/logmanager/ext/formatters/XmlFormatter.java
88d40391b7c60e08bc38840398f47f60495fe2df
[]
no_license
marschall/jboss-logmanager-ext
6ce1a43c7c5da2ab19f024e14e46a7b6f0650a7d
edc1e10fbf17d5b5dfc6359202beb77f202c38d6
refs/heads/master
2021-01-18T05:28:58.538281
2015-07-25T22:26:28
2015-07-25T22:26:28
52,677,195
0
1
null
2016-02-27T16:52:11
2016-02-27T16:52:11
null
UTF-8
Java
false
false
6,237
java
/* * JBoss, Home of Professional Open Source. * * Copyright 2015 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.logmanager.ext.formatters; import java.io.Writer; import java.util.Map; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; /** * A formatter that outputs the record in XML format. * <p/> * The details include; * <ul> * <li>{@link org.jboss.logmanager.ExtLogRecord#getSourceClassName() source class name}</li> * <li>{@link org.jboss.logmanager.ExtLogRecord#getSourceFileName() source file name}</li> * <li>{@link org.jboss.logmanager.ExtLogRecord#getSourceMethodName() source method name}</li> * <li>{@link org.jboss.logmanager.ExtLogRecord#getSourceLineNumber() source line number}</li> * </ul> * <p/> * * @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a> */ public class XmlFormatter extends StructuredFormatter { private volatile boolean prettyPrint = false; /** * Creates a new XML formatter */ public XmlFormatter() { } /** * Creates a new XML formatter. * * @param keyOverrides a map of the default keys to override */ public XmlFormatter(final Map<Key, String> keyOverrides) { super(keyOverrides); } /** * Indicates whether or not pretty printing is enabled. * * @return {@code true} if pretty printing is enabled, otherwise {@code false} */ public boolean isPrettyPrint() { return prettyPrint; } /** * Turns on or off pretty printing. * * @param b {@code true} to turn on pretty printing or {@code false} to turn it off */ public void setPrettyPrint(final boolean b) { prettyPrint = b; } @Override protected Generator createGenerator(final Writer writer) throws Exception { return new XmlGenerator(writer); } private class XmlGenerator extends Generator { private final XMLStreamWriter xmlWriter; private XmlGenerator(final Writer writer) throws XMLStreamException { final XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newInstance(); if (prettyPrint) { xmlWriter = new IndentingXmlWriter(xmlOutputFactory.createXMLStreamWriter(writer)); } else { xmlWriter = xmlOutputFactory.createXMLStreamWriter(writer); } } @Override public Generator begin() throws Exception { writeStart(getKey(Key.RECORD)); return this; } @Override public Generator add(final String key, final Map<String, ?> value) throws Exception { if (value == null) { writeEmpty(key); } else { writeStart(key); for (Map.Entry<String, ?> entry : value.entrySet()) { final String k = entry.getKey(); final Object v = entry.getValue(); if (v == null) { writeEmpty(k); } else { add(k, String.valueOf(v)); } } writeEnd(); } return this; } @Override public Generator add(final String key, final String value) throws Exception { if (value == null) { writeEmpty(key); } else { writeStart(key); xmlWriter.writeCharacters(value); writeEnd(); } return this; } @Override public Generator addStackTrace(final Throwable throwable) throws Exception { if (throwable != null) { writeStart(getKey(Key.EXCEPTION)); add(getKey(Key.EXCEPTION_MESSAGE), throwable.getMessage()); final StackTraceElement[] elements = throwable.getStackTrace(); for (StackTraceElement e : elements) { writeStart(getKey(Key.EXCEPTION_FRAME)); add(getKey(Key.EXCEPTION_FRAME_CLASS), e.getClassName()); add(getKey(Key.EXCEPTION_FRAME_METHOD), e.getMethodName()); final int line = e.getLineNumber(); if (line >= 0) { add(getKey(Key.EXCEPTION_FRAME_LINE), e.getLineNumber()); } writeEnd(); // end exception element } writeEnd(); // end exception } return this; } @Override public Generator end() throws Exception { writeEnd(); // end record safeFlush(xmlWriter); safeClose(xmlWriter); return this; } private void writeEmpty(final String name) throws XMLStreamException { xmlWriter.writeEmptyElement(name); } private void writeStart(final String name) throws XMLStreamException { xmlWriter.writeStartElement(name); } private void writeEnd() throws XMLStreamException { xmlWriter.writeEndElement(); } public void safeFlush(final XMLStreamWriter flushable) { if (flushable != null) try { flushable.flush(); } catch (Throwable ignore) { } } public void safeClose(final XMLStreamWriter closeable) { if (closeable != null) try { closeable.close(); } catch (Throwable ignore) { } } } }
[ "jperkins@redhat.com" ]
jperkins@redhat.com
52b21f499ae8bf43b52864eb823937a6474c5fff
2a65e05f2bde13de1c49b3a6bbd9246e1bf1cf81
/src/clases/Persona.java
3cbcf77d786d284320202c3f5b86b45c0148e011
[]
no_license
diegomotta/bibliotek
0d96587c62ed9370080b1ad90e3bf04e16c96560
c9c883ee2cb6a51fa5e899e0fb59555faf33b777
refs/heads/master
2021-01-20T17:55:14.617720
2016-06-16T22:00:57
2016-06-16T22:00:57
61,245,414
0
0
null
null
null
null
UTF-8
Java
false
false
2,223
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 clases; import java.util.Date; /** * * @author diego */ public class Persona { private Integer id; private String nombre; private String apellido; private String telefono; private Date fechaNacimiento; private String email; private String nacionalidad; public Persona(Integer id, String nombre, String apellido, String telefono, Date fechaNacimiento, String email,String nacionalidad) { this.id = id; this.nombre = nombre; this.apellido = apellido; this.telefono = telefono; this.fechaNacimiento = fechaNacimiento; this.email = email; this.nacionalidad = nacionalidad; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getNacionalidad() { return nacionalidad; } public void setNacionalidad(String nacionalidad) { this.nacionalidad = nacionalidad; } public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public String getApellido() { return apellido; } public void setApellido(String apellido) { this.apellido = apellido; } public String getTelefono() { return telefono; } public void setTelefono(String telefono) { this.telefono = telefono; } public Date getFechaNacimiento() { return fechaNacimiento; } public void setFechaNacimiento(Date fechaNacimiento) { this.fechaNacimiento = fechaNacimiento; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @Override public String toString() { return "Persona{" + "nombre=" + nombre + ", apellido=" + apellido + ", telefono=" + telefono + ", fechaNacimiento=" + fechaNacimiento + ", email=" + email + ", nacionalidad=" + nacionalidad + '}'; } }
[ "diegomotta18@gmail.com" ]
diegomotta18@gmail.com
3d339b35a52f9d2584aba13f48ff36fae7572dc1
b8a86d2ceca828d7f08a53270fd29ac9460fa696
/app/src/main/java/com/biaoyuan/transfernet/ui/login/ForgetPasswordAty.java
a96d96557156dd98277cbecdafc0d0624f61ce06
[]
no_license
enmaoFu/qmcs_net
3de8c2963bba0bbf95fe3d73f751bd0e0dab5ddf
767d4f5389a72cd33236a0f54c44760624088036
refs/heads/master
2021-07-04T14:50:12.504650
2017-09-20T12:47:35
2017-09-20T12:47:36
104,214,241
0
0
null
null
null
null
UTF-8
Java
false
false
1,176
java
package com.biaoyuan.transfernet.ui.login; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.EditText; import com.biaoyuan.transfernet.R; import com.biaoyuan.transfernet.base.BaseAty; import butterknife.Bind; import butterknife.OnClick; /** * Title : 忘记密码页面 * Create : 2017/5/22 * Author :enmaoFu */ public class ForgetPasswordAty extends BaseAty { @Bind(R.id.toolbar) Toolbar toolbar; //手机号 @Bind(R.id.phone) EditText inputPhoe; //验证码 @Bind(R.id.code) EditText inputCode; @Override public int getLayoutId() { return R.layout.activity_forget_password; } @Override public void initData() { initToolbar(toolbar, "找回密码"); } @Override public boolean setIsInitRequestData() { return false; } @Override public void requestData() { } @OnClick({R.id.tv_commit}) @Override public void btnClick(View view) { switch (view.getId()) { case R.id.tv_commit: startActivity(ResetPasswordActvity.class, null); break; } } }
[ "fuenmao@126.com" ]
fuenmao@126.com
697c845e1c1053afc9fc63236cc9397a8e0f51dd
b2a37f46a4c64621e7a9cf74d9f12b4b6e36ff93
/src/main/java/com/herton/kits/notification/config/annotation/configurer/MobileAppBroadcastConfigurer.java
bbb9dc064a531e010782a96e297b804b312ad915
[]
no_license
herton7362/invoicing
7974e7195529c8c751983eba15886bf9c13a535a
b0b2d9c21c8b001c4f746c0bee4d8dcd27311a44
refs/heads/master
2018-10-16T05:02:48.906604
2018-08-14T08:30:33
2018-08-14T08:30:33
124,479,445
0
0
null
null
null
null
UTF-8
Java
false
false
969
java
package com.herton.kits.notification.config.annotation.configurer; import com.herton.kits.notification.NotificationProvider; import com.herton.kits.notification.config.annotation.NotificationBuilder; import com.herton.kits.notification.config.annotation.builder.NotificationProviders; import com.herton.kits.notification.message.MobileAppBroadcastMessage; /** * 手机应用推送配置,需要注入 {@link NotificationProviders} 用来获取通知提供商的配置 * @param <B> 当前正在构建的Builder * @param <H> 当前的消息类型,用来确定 {@link NotificationProvider} 的具体类型 */ public class MobileAppBroadcastConfigurer<B extends NotificationBuilder, H extends MobileAppBroadcastMessage> extends NotificationTypeConfigurer<B, H> { private NotificationProviders providerConfigurer; public MobileAppBroadcastConfigurer(NotificationProviders providerConfigurer) { this.providerConfigurer = providerConfigurer; } }
[ "he.tang@everydayratings.com" ]
he.tang@everydayratings.com
a473b56561beeb7cf88e1b7e8f5030fa55543a25
4fab44e9f3205863c0c4e888c9de1801919dc605
/AL-Game/src/com/aionemu/gameserver/model/templates/serial_killer/RankRestriction.java
90fc910a78b8b570ae73fdc36fd9462965ad1ffe
[]
no_license
YggDrazil/AionLight9
fce24670dcc222adb888f4a5d2177f8f069fd37a
81f470775c8a0581034ed8c10d5462f85bef289a
refs/heads/master
2021-01-11T00:33:15.835333
2016-07-29T19:20:11
2016-07-29T19:20:11
70,515,345
2
0
null
null
null
null
UTF-8
Java
false
false
2,859
java
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Aion-Lightning is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Aion-Lightning. * If not, see <http://www.gnu.org/licenses/>. */ package com.aionemu.gameserver.model.templates.serial_killer; import javax.xml.bind.annotation.*; import com.aionemu.gameserver.model.Race; import java.util.ArrayList; import java.util.List; /** * @author Dtem */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RankRestriction", propOrder = { "penaltyAttr" }) public class RankRestriction { @XmlElement(name = "penalty_attr") protected List<RankPenaltyAttr> penaltyAttr; @XmlAttribute(name = "id", required = true) protected int id; @XmlAttribute(name = "race", required = true) protected Race race; @XmlAttribute(name = "rank_num", required = true) protected int rankNum; @XmlAttribute(name = "restrict_direct_portal", required = true) protected boolean restrictDirectPortal; @XmlAttribute(name = "restrict_dynamic_bindstone", required = true) protected boolean restrictDynamicBindstone; /** * @return the restrictDirectPortal */ public boolean isRestrictDirectPortal() { return restrictDirectPortal; } /** * @param restrictDirectPortal the restrictDirectPortal to set */ public void setRestrictDirectPortal(boolean restrictDirectPortal) { this.restrictDirectPortal = restrictDirectPortal; } /** * @return the restrictDynamicBindstone */ public boolean isRestrictDynamicBindstone() { return restrictDynamicBindstone; } /** * @param restrictDynamicBindstone the restrictDynamicBindstone to set */ public void setRestrictDynamicBindstone(boolean restrictDynamicBindstone) { this.restrictDynamicBindstone = restrictDynamicBindstone; } public List<RankPenaltyAttr> getPenaltyAttr() { if (penaltyAttr == null) { penaltyAttr = new ArrayList<RankPenaltyAttr>(); } return this.penaltyAttr; } public int getRankNum() { return rankNum; } public void setRankNum(int value) { this.rankNum = value; } public int getId() { return id; } public Race getRace() { return race; } }
[ "michelgorter@outlook.com" ]
michelgorter@outlook.com
f32596b41e8966c08e3102dbd7adb035341a10ec
ec7cdb58fa20e255c23bc855738d842ee573858f
/java/defpackage/adl$a.java
3f0cbe60b18159c31a548c9f6418e7f4fd78c226
[]
no_license
BeCandid/JaDX
591e0abee58764b0f58d1883de9324bf43b52c56
9a3fa0e7c14a35bc528d0b019f850b190a054c3f
refs/heads/master
2021-01-13T11:23:00.068480
2016-12-24T10:39:48
2016-12-24T10:39:48
77,222,067
1
0
null
null
null
null
UTF-8
Java
false
false
5,879
java
package defpackage; import android.os.Binder; import android.os.Bundle; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; import com.google.android.gms.maps.GoogleMapOptions; public abstract class adl$a extends Binder implements adl { public static adl a(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); return (queryLocalInterface == null || !(queryLocalInterface instanceof adl)) ? new adl$a$a(iBinder) : (adl) queryLocalInterface; } public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { IBinder iBinder = null; switch (code) { case uu$h.com_facebook_profile_picture_view_com_facebook_is_cropped /*1*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); adj a = a(); reply.writeNoException(); reply.writeStrongBinder(a != null ? a.asBinder() : null); return true; case uu$h.com_facebook_login_view_com_facebook_logout_text /*2*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); a((aag) aag$a.zzbs(data.readStrongBinder()), data.readInt() != 0 ? GoogleMapOptions.CREATOR.a(data) : null, data.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(data) : null); reply.writeNoException(); return true; case uu$h.com_facebook_login_view_com_facebook_tooltip_mode /*3*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); a(data.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(data) : null); reply.writeNoException(); return true; case uu$h.com_facebook_like_view_com_facebook_auxiliary_view_position /*4*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); aag a2 = a((aag) aag$a.zzbs(data.readStrongBinder()), (aag) aag$a.zzbs(data.readStrongBinder()), data.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(data) : null); reply.writeNoException(); if (a2 != null) { iBinder = a2.asBinder(); } reply.writeStrongBinder(iBinder); return true; case uu$h.com_facebook_like_view_com_facebook_horizontal_alignment /*5*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); b(); reply.writeNoException(); return true; case uu$h.CardView_cardUseCompatPadding /*6*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); c(); reply.writeNoException(); return true; case uu$h.CardView_cardPreventCornerOverlap /*7*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); d(); reply.writeNoException(); return true; case uu$h.CardView_contentPadding /*8*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); e(); reply.writeNoException(); return true; case uu$h.CardView_contentPaddingLeft /*9*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); f(); reply.writeNoException(); return true; case uu$h.CardView_contentPaddingRight /*10*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); Bundle bundle = data.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(data) : null; b(bundle); reply.writeNoException(); if (bundle != null) { reply.writeInt(1); bundle.writeToParcel(reply, 1); return true; } reply.writeInt(0); return true; case uu$h.CardView_contentPaddingTop /*11*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); boolean g = g(); reply.writeNoException(); reply.writeInt(g ? 1 : 0); return true; case uu$h.CardView_contentPaddingBottom /*12*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); a(aem$a.a(data.readStrongBinder())); reply.writeNoException(); return true; case ha$a.Toolbar_titleMarginStart /*13*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); c(data.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(data) : null); reply.writeNoException(); return true; case ha$a.Toolbar_titleMarginEnd /*14*/: data.enforceInterface("com.google.android.gms.maps.internal.IMapFragmentDelegate"); h(); reply.writeNoException(); return true; case 1598968902: reply.writeString("com.google.android.gms.maps.internal.IMapFragmentDelegate"); return true; default: return super.onTransact(code, data, reply, flags); } } }
[ "admin@timo.de.vc" ]
admin@timo.de.vc
60315e9635e19f2276682c7b3062bfcf1035e5ae
31bb59512044dd4ece9dd25baefc06e29176e86e
/project/hs-data-init-test/src/test/java/com/neusoft/hs/data/init/TempTest.java
57441ce4a38de579c1b6cbce753e545b10d8dd6e
[]
no_license
AppSecAI-TEST/hospital
58302dadfcbdf4379266d5a9c4167e4aa4150a8b
908581b6d1d5f48606cfb93daf36ea0e8446a6c6
refs/heads/master
2021-01-16T15:07:15.251844
2017-08-11T06:30:43
2017-08-11T06:30:43
100,001,000
1
0
null
2017-08-11T06:51:55
2017-08-11T06:51:55
null
UTF-8
Java
false
false
436
java
package com.neusoft.hs.data.init; import java.util.Random; import com.neusoft.hs.data.batch.OrgBatchDataService; import com.neusoft.hs.data.batch.UserBatchDataService; public class TempTest { public static void main(String[] args) { Random random = new Random(); for (int i = 0; i < UserBatchDataService.UserCount; i++) { System.out.println(random.nextInt(OrgBatchDataService.DeptCount - 1)); } } }
[ "wangdg@neusoft.com" ]
wangdg@neusoft.com
d8caf218d4f932693768c94363246b7d5126cf23
5947cfe58348f6cdf30588b8e411ebf55ec50e05
/anjbo-credit-common/src/main/java/com/anjbo/bean/ccb/BusInfoTask.java
6653f8f67110f42527943715aa776fe5b15f0596
[]
no_license
superJack2222/work-credit
197de8c94df3691f0d1e249ea431c526ca6f3867
4d6dfdabe92d8fee2b49de96fc08e281763a31ba
refs/heads/master
2023-04-28T05:09:40.511601
2020-07-21T00:43:07
2020-07-21T00:43:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,261
java
package com.anjbo.bean.ccb; import java.util.Date; public class BusInfoTask { private int id; // id private String orderNo; // 订单号 private String name; // 任务名 private String code; //code private String status; // 状态 private String result; // 结果 private Date updatetime; // 时间 private String remark; //备注 public int getId() { return id; } public void setId(int id) { this.id = id; } public String getOrderNo() { return orderNo; } public void setOrderNo(String orderNo) { this.orderNo = orderNo; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public Date getUpdatetime() { return updatetime; } public void setUpdatetime(Date updatetime) { this.updatetime = updatetime; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } }
[ "395859675@qq.com" ]
395859675@qq.com
7deaf3ccb6c9d412d168a13c01d9e0192b1e8ba7
9e92540d8d29e642e42cee330aeb9c81c3ab11db
/D2FSClient/src/main/java/com/emc/d2fs/services/preference_service/GetPreferenceResponse.java
13a769539767101ea5504b99bfaa95ebc508796b
[]
no_license
ambadan1/demotrial
c8a64f6f26b5f0e5a9c8a2047dfb11d354ddec42
9b4dd17ad423067eca376a4bad204986ed039fee
refs/heads/master
2020-04-29T10:52:03.614348
2019-03-17T09:26:26
2019-03-17T09:26:26
176,076,767
0
0
null
2019-03-17T09:26:27
2019-03-17T08:48:00
Java
UTF-8
Java
false
false
1,671
java
package com.emc.d2fs.services.preference_service; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import com.emc.d2fs.models.preference.Preference; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element ref="{http://www.emc.com/d2fs/models/preference}preference"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "preference" }) @XmlRootElement(name = "getPreferenceResponse") public class GetPreferenceResponse { @XmlElement(namespace = "http://www.emc.com/d2fs/models/preference", required = true) protected Preference preference; /** * Gets the value of the preference property. * * @return * possible object is * {@link Preference } * */ public Preference getPreference() { return preference; } /** * Sets the value of the preference property. * * @param value * allowed object is * {@link Preference } * */ public void setPreference(Preference value) { this.preference = value; } }
[ "aniket.ambadkar@novartis.com" ]
aniket.ambadkar@novartis.com
6c609b17b02d20c98a525ae2f85eba03836af417
56319e53f4155b0f0ae4ab249b1d3249fc8ddd98
/apache-tomcat-8.0.39/converted/org/apache/tomcat/util/buf/MainForTestAscii_testParseLong3.java
5469ce82b3e937d5e5331dcba968c825f80448ef
[]
no_license
SnowOnion/J2mConvertedTestcases
2f904e2f2754f859f6125f248d3672eb1a70abd1
e74b0e4c08f12e5effeeb8581670156ace42640a
refs/heads/master
2021-01-11T19:01:42.207334
2017-01-19T12:22:22
2017-01-19T12:22:22
79,295,183
1
0
null
null
null
null
UTF-8
Java
false
false
369
java
package org.apache.tomcat.util.buf; import org.apache.tomcat.util.buf.TestAscii; public class MainForTestAscii_testParseLong3 { public static void main(String[] args) { try { TestAscii objTestAscii = new TestAscii(); objTestAscii.testParseLong3(); } catch (Throwable e) { e.printStackTrace(); } } }
[ "snowonionlee@gmail.com" ]
snowonionlee@gmail.com
6d7f08aa2796ba4870d070723a46f6d32db7f7f4
1b0c578992559628dc9b5f7c3abaf0d467a23899
/Kevin_G_Exercises/Chapter_23_Sorting/Programming_Exercise_07.java
959d26eb3dbd014a8656461815398d4ac10f07ae
[]
no_license
RomaniEzzatYoussef/Exercises
c9897b92507abf2d7ddc79f7e05b8b3d208f1dad
396900c05dac95954f7ddbc424c5023deb562242
refs/heads/master
2020-09-25T05:52:16.701228
2019-12-13T19:26:12
2019-12-13T19:26:12
225,932,027
1
1
null
null
null
null
UTF-8
Java
false
false
843
java
package Chapter_23_Sorting; import utilities.Heap; import utilities.HeapSort; /** * Min-heap * The heap presented in the text is also known as a max-heap, in which each node is greater than or equal to any of its children. * A min-heap is a heap in which each node is less than or equal to any of its children. * Min-heaps are often used to implement priority queues. * Revise the Heap class in Listing 23.9 to implement a min-heap. * * 02/09/2017 * @author kevgu * */ public class Programming_Exercise_07 { public static void main(String[] args) { Integer[] list = {-44, -5, -3, 3, 3, 1, -4, 0, 1, 2, 4, 5, 53}; Heap<Integer> heap = new Heap<>(list, false); System.out.println(heap.toString()); HeapSort.heapSort(list, true); for (int i = 0; i < list.length; i++) System.out.print(list[i] + " "); } }
[ "romaniezzat@hotmail.com" ]
romaniezzat@hotmail.com
b8b568fe5d1f11ba598d1e187d960df2a5d3ef83
473fc28d466ddbe9758ca49c7d4fb42e7d82586e
/app/src/main/java/com/syd/source/aosp/cts/tests/tests/location/src/android/location/cts/asn1/supl2/rrlp_components/GANSS_ID3.java
cdd19f7900eed1fb9dcb2065b1576ac609a29f25
[]
no_license
lz-purple/Source
a7788070623f2965a8caa3264778f48d17372bab
e2745b756317aac3c7a27a4c10bdfe0921a82a1c
refs/heads/master
2020-12-23T17:03:12.412572
2020-01-31T01:54:37
2020-01-31T01:54:37
237,205,127
4
2
null
null
null
null
UTF-8
Java
false
false
3,283
java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.location.cts.asn1.supl2.rrlp_components; /* */ // // import android.location.cts.asn1.base.Asn1Null; import android.location.cts.asn1.base.Asn1SequenceOf; import android.location.cts.asn1.base.Asn1Tag; import android.location.cts.asn1.base.BitStream; import android.location.cts.asn1.base.BitStreamReader; import com.google.common.collect.ImmutableList; import java.util.Collection; import javax.annotation.Nullable; /** */ public class GANSS_ID3 extends Asn1SequenceOf<GANSS_ID3_element> { // private static final Asn1Tag TAG_GANSS_ID3 = Asn1Tag.fromClassAndNumber(-1, -1); public GANSS_ID3() { super(); setMinSize(1); setMaxSize(64); } @Override @Nullable protected Asn1Tag getTag() { return TAG_GANSS_ID3; } @Override protected boolean isTagImplicit() { return true; } public static Collection<Asn1Tag> getPossibleFirstTags() { if (TAG_GANSS_ID3 != null) { return ImmutableList.of(TAG_GANSS_ID3); } else { return Asn1SequenceOf.getPossibleFirstTags(); } } /** * Creates a new GANSS_ID3 from encoded stream. */ public static GANSS_ID3 fromPerUnaligned(byte[] encodedBytes) { GANSS_ID3 result = new GANSS_ID3(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; } /** * Creates a new GANSS_ID3 from encoded stream. */ public static GANSS_ID3 fromPerAligned(byte[] encodedBytes) { GANSS_ID3 result = new GANSS_ID3(); result.decodePerAligned(new BitStreamReader(encodedBytes)); return result; } @Override public GANSS_ID3_element createAndAddValue() { GANSS_ID3_element value = new GANSS_ID3_element(); add(value); return value; } @Override public Iterable<BitStream> encodePerUnaligned() { return super.encodePerUnaligned(); } @Override public Iterable<BitStream> encodePerAligned() { return super.encodePerAligned(); } @Override public void decodePerUnaligned(BitStreamReader reader) { super.decodePerUnaligned(reader); } @Override public void decodePerAligned(BitStreamReader reader) { super.decodePerAligned(reader); } @Override public String toString() { return toIndentedString(""); } public String toIndentedString(String indent) { StringBuilder builder = new StringBuilder(); builder.append("GANSS_ID3 = [\n"); final String internalIndent = indent + " "; for (GANSS_ID3_element value : getValues()) { builder.append(internalIndent) .append(value.toIndentedString(internalIndent)); } builder.append(indent).append("];\n"); return builder.toString(); } }
[ "997530783@qq.com" ]
997530783@qq.com
1a54976223360ed6f1c17d8f325dbcad6d34d510
5dd84e9ca419ed669e11c236a845b0c1645cf180
/com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_ReadLanguage.java
2982bf64919302ca6665e0d5bf1477d5ded3f527
[ "Apache-2.0" ]
permissive
jmbflat/CoffeeMud
0ab169f8d473f0aa3534ffe3c0ae82ed9a221ec8
c6e48d89aa58332ae030904550442155e673488c
refs/heads/master
2023-02-16T04:21:26.845481
2021-01-09T01:36:11
2021-01-09T01:36:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,745
java
package com.planet_ink.coffee_mud.Abilities.Prayers; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; /* Copyright 2020-2020 Bo Zimmerman 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. */ public class Prayer_ReadLanguage extends Prayer { @Override public String ID() { return "Prayer_ReadLanguage"; } private final static String localizedName = CMLib.lang().L("Read Language"); @Override public String name() { return localizedName; } private final static String localizedStaticDisplay = CMLib.lang().L("(Ability to read languages)"); @Override public String displayText() { return localizedStaticDisplay; } @Override protected int canTargetCode() { return CAN_ITEMS; } @Override public long flags() { return Ability.FLAG_NEUTRAL; } @Override public int classificationCode() { return Ability.ACODE_PRAYER | Ability.DOMAIN_COMMUNING; } @Override public int abstractQuality() { return Ability.QUALITY_INDIFFERENT; } @Override public boolean appropriateToMyFactions(final MOB mob) { if(mob == null) return true; return true; } protected volatile Physical readWhatP = null; @Override public boolean invoke(final MOB mob, final List<String> commands, final Physical givenTarget, final boolean auto, final int asLevel) { // first, using the commands vector, determine // the target of the spell. If no target is specified, // the system will assume your combat target. String parms=""; if((commands.size()>1) &&(commands.get(0).equalsIgnoreCase("all")||commands.get(0).equalsIgnoreCase("new"))) parms = commands.remove(0); else if((commands.size()>1) &&(CMath.isInteger(commands.get(0)))) parms = commands.remove(0); final Physical target=getTarget(mob,null,givenTarget,commands,Wearable.FILTER_ANY); if(target==null) return false; if( ((target instanceof Item)&&(!(((Item)target).isReadable()))) ||((target instanceof Exit)&&(!(((Exit)target).isReadable()))) ||(target instanceof Room) ||(target instanceof MOB)) { mob.tell(L("@x1 doesn't look readable.",target.name(mob))); return false; } if(!super.invoke(mob,commands,givenTarget,auto,asLevel)) return false; final boolean success=proficiencyCheck(mob,0,auto); if(success) { Language langA = null; for(final Enumeration<Ability> a= target.effects();a.hasMoreElements();) { final Ability A=a.nextElement(); if((A instanceof Language) &&(((Language)A).isANaturalLanguage())) langA=(Language)A; } Language myA=null; Language delA=null; int oldProf=0; try { if(langA!=null) { myA=(Language)mob.fetchEffect(langA.ID()); if(myA!=null) { oldProf=myA.proficiency(); myA.setProficiency(100); } else { delA=(Language)langA.copyOf(); delA.setAffectedOne(mob); delA.setProficiency(100); mob.addEffect(delA); } } CMLib.commands().postRead(mob, target, parms, false); } finally { if(myA!=null) myA.setProficiency(oldProf); else if(delA!=null) mob.delEffect(delA); } } else return beneficialWordsFizzle(mob,target,L("<S-NAME> pray(s) and gaze(s) over <T-NAMESELF>, but nothing more happens.")); // return whether it worked return success; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
b227366a8fe419a583961f42c1342079c4563427
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/23/23_94d9f6078d73da7b18cbe4a7aa818061ccfcd340/TelnetAppender/23_94d9f6078d73da7b18cbe4a7aa818061ccfcd340_TelnetAppender_s.java
b198a47bbd6ae6bbafecc35a0c3f33da1b501e52
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
6,048
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.log4j.net; import java.io.*; import java.net.*; import java.util.*; import org.apache.log4j.Layout; import org.apache.log4j.spi.LoggingEvent; import org.apache.log4j.AppenderSkeleton; import org.apache.log4j.helpers.LogLog; /** <p>The TelnetAppender is a log4j appender that specializes in writing to a read-only socket. The output is provided in a telnet-friendly way so that a log can be monitored over TCP/IP. Clients using telnet connect to the socket and receive log data. This is handy for remote monitoring, especially when monitoring a servlet. <p>Here is a list of the available configuration options: <table border=1> <tr> <th>Name</th> <th>Requirement</th> <th>Description</th> <th>Sample Value</th> </tr> <tr> <td>Port</td> <td>optional</td> <td>This parameter determines the port to use for announcing log events. The default port is 23 (telnet).</td> <td>5875</td> </table> @author <a HREF="mailto:jay@v-wave.com">Jay Funnell</a> */ public class TelnetAppender extends AppenderSkeleton { private SocketHandler sh; private int port = 23; /** This appender requires a layout to format the text to the attached client(s). */ public boolean requiresLayout() { return true; } /** all of the options have been set, create the socket handler and wait for connections. */ public void activateOptions() { try { sh = new SocketHandler(port); sh.start(); } catch(Exception e) { e.printStackTrace(); } super.activateOptions(); } public int getPort() { return port; } public void setPort(int port) { this.port = port; } /** shuts down the appender. */ public void close() { if (sh != null) { sh.close(); try { sh.join(); } catch(InterruptedException ex) { } } } /** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { sh.send(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { sh.send(s[i]); sh.send(Layout.LINE_SEP); } } } } //---------------------------------------------------------- SocketHandler: /** The SocketHandler class is used to accept connections from clients. It is threaded so that clients can connect/disconnect asynchronously. */ protected class SocketHandler extends Thread { private Vector writers = new Vector(); private Vector connections = new Vector(); private ServerSocket serverSocket; private int MAX_CONNECTIONS = 20; public void finalize() { close(); } /** * make sure we close all network connections when this handler is destroyed. * @since 1.2.15 */ public void close() { for(Enumeration e = connections.elements();e.hasMoreElements();) { try { ((Socket)e.nextElement()).close(); } catch(Exception ex) { } } try { serverSocket.close(); } catch(Exception ex) { } } /** sends a message to each of the clients in telnet-friendly output. */ public void send(String message) { Enumeration ce = connections.elements(); for(Enumeration e = writers.elements();e.hasMoreElements();) { Socket sock = (Socket)ce.nextElement(); PrintWriter writer = (PrintWriter)e.nextElement(); writer.print(message); if(writer.checkError()) { // The client has closed the connection, remove it from our list: connections.remove(sock); writers.remove(writer); } } } /** Continually accepts client connections. Client connections are refused when MAX_CONNECTIONS is reached. */ public void run() { while(!serverSocket.isClosed()) { try { Socket newClient = serverSocket.accept(); PrintWriter pw = new PrintWriter(newClient.getOutputStream()); if(connections.size() < MAX_CONNECTIONS) { connections.addElement(newClient); writers.addElement(pw); pw.print("TelnetAppender v1.0 (" + connections.size() + " active connections)\r\n\r\n"); pw.flush(); } else { pw.print("Too many connections.\r\n"); pw.flush(); newClient.close(); } } catch(Exception e) { if (!serverSocket.isClosed()) { LogLog.error("Encountered error while in SocketHandler loop.", e); } break; } } try { serverSocket.close(); } catch(IOException ex) { } } public SocketHandler(int port) throws IOException { serverSocket = new ServerSocket(port); setName("TelnetAppender-" + getName() + "-" + port); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
0fd82f886f2656c04cd45da9bec5ad7668b0c9d1
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Hibernate/Hibernate7504.java
5dfa3af43c1f57829ef68fa2238ae54e347a7a69
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
685
java
@Test public void testEnumImplicitOverrideStringType() { MapValue mapValue = create(); mapValue.enumImplicitOverrideString = ImplicitEnumMapKey.VALUE_2; mapValue.mapEntity.enumImplicitOverrideStringType.put( mapValue.enumImplicitOverrideString, mapValue ); MapEntity found = persist( mapValue.mapEntity ); assertEquals( 1, found.enumImplicitOverrideStringType.size() ); MapValue foundValue = found.enumImplicitOverrideStringType.get( ImplicitEnumMapKey.VALUE_2 ); assertEquals( ImplicitEnumMapKey.VALUE_2, foundValue.enumImplicitOverrideString ); assertEquals( "VALUE_2", findDatabaseValue( foundValue, "enumImplicitOverrideString" ) ); getSession().close(); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
dc41f5816189e380e22b5225cab1d197732b7d72
6903150fe80d8c1b3909f0094b4f030421aaac48
/base-utils/src/test/java/com/application/base/test/DDDD.java
59e7e31b57a1d91b2abd6ffba19513d06d0e25ed
[]
no_license
luckysoftgo/base-parent
57ccbab292ff71874872a65471d70c6b3c02528f
fede598a91e438144d628082d519ae7996df9536
refs/heads/master
2022-12-17T23:29:32.806321
2020-11-24T07:10:43
2020-11-24T07:10:43
154,773,631
5
4
null
2022-12-06T00:42:04
2018-10-26T03:44:02
Java
UTF-8
Java
false
false
389
java
package com.application.base.test; import java.math.BigDecimal; /** * Created by 孤狼 on 2017/11/16. */ public class DDDD extends CCCC { private String d1; private BigDecimal d2; public String getD1() { return d1; } public void setD1(String d1) { this.d1 = d1; } public BigDecimal getD2() { return d2; } public void setD2(BigDecimal d2) { this.d2 = d2; } }
[ "supingemail@126.com" ]
supingemail@126.com
a7e243f187d4731ccb716c23e2c687602eb6e725
09b51886063f97c1d25bde8408e6db7ddc0c3398
/project/mine/imsCommon/src/main/java/com/gf/imsCommon/memcache/Webutil.java
526898fb5c400f88a81a42ea80195afb56a9c8d4
[]
no_license
amxsa/gfxiangGit
e3aaa6a36d829def497ee68a3b10ebcd808d1b78
28d42196c30347092f6c03daa758b2ccff4df737
refs/heads/master
2021-01-24T10:49:27.282124
2017-07-19T13:17:21
2017-07-19T13:17:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,103
java
package com.gf.imsCommon.memcache; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class Webutil { private static final Log log = LogFactory.getLog(Webutil.class); private static String useMemcache = ""; /** * 资源文件名 */ private static final String GLOBAL_PROPERTIES="memcached.properties"; /** * 持久属性集 */ private static Properties properties; private static String propertyname = "useMemcache"; static{ ClassLoader cl = Thread.currentThread().getContextClassLoader(); InputStream input = cl.getResourceAsStream(GLOBAL_PROPERTIES); properties = new Properties(); try { properties.load(input); useMemcache = (String) properties.getProperty(propertyname); } catch (IOException e) { e.printStackTrace(); log.info("load properties文件出错!文件名称:" + GLOBAL_PROPERTIES); } } /** * 设置request属性 * @param request * @param attrname 属性名称 * @param value 属性值<br> * 调用方式如:Webutil.setRequestAttribute(req,usernam,allen) */ public static void setRequestAttribute(HttpServletRequest request,String attrname,Object value){ request.setAttribute(attrname, value); } /** * 获取某属性在request中的属性 * @param request * @param attrname 属性名称 * 调用方式如:Webutil.getRequestAttribute(req,usernam) */ public static Object getRequestAttribute(HttpServletRequest request,String attrname){ return request.getAttribute(attrname); } /** * 设置session属性 * @param request request对象 * @param attrname 属性名称 * @param value 属性值<br> * 调用方式如:Webutil.setSessionAttribute(request,usernam,allen) */ public static void setSessionAttribute(HttpServletRequest request,String attrname,Object value){ if(!"false".equals(useMemcache) && useMemcache!=null){ String cid = getCid(request); String key = cid+"_"+attrname; SessionService.getInstance().save(key, value); }else{ request.getSession().setAttribute(attrname, value); } } /** * getSid:取session id * * @param @param request * @param @return 设定文件 * @return String DOM对象 * @throws * @since CodingExample Ver 1.0 * @author daihf * @Date 2011 May 5, 2011 1:35:48 PM */ private static String getSid(HttpServletRequest request){ StringBuffer sb = new StringBuffer(request.getSession().getId()); sb.append("_"); sb.append(Constants.serverName); return sb.toString(); } /** * getCid:取cookie id * * @param @param request * @param @return 设定文件 * @return String DOM对象 * @throws * @since CodingExample Ver 1.0 * @author daihf * @Date 2011 May 5, 2011 1:36:16 PM */ public static String getCid(HttpServletRequest request){ Cookie cookie = RequestUtils.getCookie(request, Constants.session_key_flag_of_cookie); if (cookie != null) { // 取出session的ID return cookie.getValue(); }else{ return ""; } } public static void setCookie(HttpServletRequest request,HttpServletResponse response){ //如果cookie未空,则设置一个;如果不为空,则什么都不做 if(null==RequestUtils.getCookie(request, Constants.session_key_flag_of_cookie)||"".equals(RequestUtils.getCookie(request, Constants.session_key_flag_of_cookie))){ String sid = getSid( request); RequestUtils.setCookie(request, response, Constants.session_key_flag_of_cookie, sid); } } public static void validateCookie(HttpServletRequest request,HttpServletResponse response){ Cookie cookie = RequestUtils.getCookie(request, Constants.session_key_flag_of_cookie); if (cookie != null) { // 清除cookie RequestUtils.setCookie(request, response, Constants.session_key_flag_of_cookie, "", 0); } } /** * 获取某属性在session中的属性 * @param request * @param attrname 属性名称 * 调用方式如:Webutil.getSessionAttribute(request,usernam) */ public static Object getSessionAttribute(HttpServletRequest request,String attrname){ if(!"false".equals(useMemcache)){ String cid = getCid( request); if("".equals(cid)){ return null; } String key = cid+"_"+attrname; return SessionService.getInstance().get(key, true); }else{ return request.getSession().getAttribute(attrname); } } public static Object getSessionAttribute(HttpServletRequest request, String cookieId, String attrname){ if(!"false".equals(useMemcache)){ if("".equals(cookieId)){ return null; } String key = cookieId+"_"+attrname; return SessionService.getInstance().get(key, true); }else{ return request.getSession().getAttribute(attrname); } } /** * 获取某属性在session中的属性 * @param request * @param attrname 属性名称 * 调用方式如:Webutil.getSessionAttribute(request,usernam) */ public static Object getAttribute(HttpServletRequest request,String attrname){ if(!"false".equals(useMemcache)){ String sid = getSid( request); String key = sid+"_"+attrname; return SessionService.getInstance().get(key, true); }else{ return request.getSession().getAttribute(attrname); } } /** * 设置session属性 * @param request request对象 * @param attrname 属性名称 * @param value 属性值<br> * 调用方式如:Webutil.setSessionAttribute(request,usernam,allen) */ public static void setAttribute(HttpServletRequest request,String attrname,String value){ if(!"false".equals(useMemcache) && useMemcache!=null){ String sid = getSid( request); String key = sid+"_"+attrname; SessionService.getInstance().save(key, value); }else{ request.getSession().setAttribute(attrname, value); } } /** * 从session中移除某一属性值 * @param session * @param attrname */ public static void removeSessionAttribute(HttpSession session,String attrname){ session.removeAttribute(attrname); } /** * 从session中移除某一属性值 * @param session * @param attrname */ public static void removeSessionAttribute(HttpServletRequest request,String attrname){ String cid = getCid( request); String key = cid+"_"+attrname; SessionService.getInstance().remove(key); } /** * 设置session失效 * @param session */ public static void sessionInvalidate(HttpSession session){ session.invalidate(); } /** * 取得Sessionid * @param session * @return */ public static String getSessionId(HttpSession session){ return session.getId(); } public static void sessionInvalidate(HttpServletRequest request){ String cid = getCid( request); SessionService.getInstance().remove(cid); } }
[ "846662924@qq.com" ]
846662924@qq.com
576e964c5e6c5649d66bf866156fe65bb45ac2e4
19dc4b795d50f177a74438a0192af69c3849ac5e
/goshop-common-shiro/src/main/java/org/goshop/shiro/service/RedisSessionDAO.java
61cb0af0dee04a347f4faa9752ad6adf3f234962
[]
no_license
spidermandl/stoneshop
6e2d469ce0fe05d66c3bb56e04f160b54dd63ebc
ecff96a61d8f2fc3b5cd279e7209da0ae07bc26d
refs/heads/master
2021-09-09T17:44:14.847907
2018-03-18T17:05:03
2018-03-18T17:05:03
111,582,391
0
1
null
null
null
null
UTF-8
Java
false
false
4,086
java
package org.goshop.shiro.service; import org.goshop.common.utils.SerializeUtils; import org.goshop.redis.service.JedisClient; import org.apache.shiro.session.Session; import org.apache.shiro.session.UnknownSessionException; import org.apache.shiro.session.mgt.eis.AbstractSessionDAO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import java.io.Serializable; import java.util.Collection; import java.util.HashSet; import java.util.Set; public class RedisSessionDAO extends AbstractSessionDAO { private static Logger logger = LoggerFactory.getLogger(RedisSessionDAO.class); /** * shiro-redis的session对象前缀 */ private String keyPrefix = "goshop2_shiro_redis_session:"; /** * 设置缓存永不过期 */ private static int expire = 0; @Autowired private JedisClient jedisClient; public JedisClient getJedisClient() { return jedisClient; } public void setJedisClient(JedisClient jedisClient) { this.jedisClient = jedisClient; } @Override public void update(Session session) throws UnknownSessionException { this.saveSession(session); } /** * save session * @param session * @throws UnknownSessionException */ private void saveSession(Session session) throws UnknownSessionException{ if(session == null || session.getId() == null){ logger.error("session or session id is null"); return; } byte[] key = getByteKey(session.getId()); byte[] value = SerializeUtils.serialize(session); session.setTimeout(this.expire*1000); try { this.jedisClient.set(key, value, this.expire); }catch (Exception e){ e.printStackTrace(); } } @Override public void delete(Session session) { if(session == null || session.getId() == null){ logger.error("session or session id is null"); return; } jedisClient.del(this.getByteKey(session.getId())); } //用来统计当前活动的session @Override public Collection<Session> getActiveSessions() { Set<Session> sessions = new HashSet<Session>(); try { Set<byte[]> keys = jedisClient.keys(this.keyPrefix + "*"); if (keys != null && keys.size() > 0) { for (byte[] key : keys) { Session s = (Session) SerializeUtils.deserialize(jedisClient.get(key)); sessions.add(s); } } }catch (Exception e){ e.printStackTrace(); } return sessions; } @Override protected Serializable doCreate(Session session) { Serializable sessionId = this.generateSessionId(session); this.assignSessionId(session, sessionId); this.saveSession(session); return sessionId; } @Override protected Session doReadSession(Serializable sessionId) { if(sessionId == null){ logger.error("session id is null"); return null; } try { byte[] c = jedisClient.get(this.getByteKey(sessionId)); if (c == null) { return null; } Session s = (Session) SerializeUtils.deserialize(c); return s; }catch (Exception e){ e.printStackTrace(); return null; } } /** * 获得byte[]型的key * @return */ private byte[] getByteKey(Serializable sessionId){ String preKey = this.keyPrefix + sessionId; return preKey.getBytes(); } /** * Returns the Redis session keys * prefix. * @return The prefix */ public String getKeyPrefix() { return keyPrefix; } /** * Sets the Redis sessions key * prefix. * @param keyPrefix The prefix */ public void setKeyPrefix(String keyPrefix) { this.keyPrefix = keyPrefix; } }
[ "Desmond@Desmonds-MacBook-Pro.local" ]
Desmond@Desmonds-MacBook-Pro.local
df2c723240d63c9dc54b5f76571b9deae195c9cf
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project18/src/test/java/org/gradle/test/performance18_2/Test18_132.java
0a71abbe3df7742c053ee94f1521773b986f7f59
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
292
java
package org.gradle.test.performance18_2; import static org.junit.Assert.*; public class Test18_132 { private final Production18_132 production = new Production18_132("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
f6c640ed93df26a699985a40b0ddb6c6a77b1536
a52d6bb42e75ef0678cfcd291e5696a9e358fc4d
/af_webapp/src/main/java/org/kuali/kfs/module/ld/businessobject/lookup/LongRowTableDecorator.java
a44f98045e776603965db2b24cf92b9a25cbaba1
[]
no_license
Ariah-Group/Finance
894e39cfeda8f6fdb4f48a4917045c0bc50050c5
ca49930ca456799f99aad57e1e974453d8fe479d
refs/heads/master
2021-01-21T12:11:40.987504
2016-03-24T14:22:40
2016-03-24T14:22:40
26,879,430
0
0
null
null
null
null
UTF-8
Java
false
false
3,573
java
/* * Copyright 2007 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * 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.kuali.kfs.module.ld.businessobject.lookup; import java.util.List; import org.apache.commons.lang.StringUtils; import org.displaytag.decorator.TableDecorator; import org.displaytag.properties.MediaTypeEnum; import org.kuali.rice.kns.web.ui.Column; import org.kuali.rice.kns.web.ui.ResultRow; /** * Decorator class for the Long Row Table. */ public class LongRowTableDecorator extends TableDecorator { private static final int numOfColumnInEachRow = 12; private static final int numOfColumnInFirstRow = 14; /** * @see org.displaytag.decorator.TableDecorator#finishRow() * * KRAD Conversion: Performs customization of the row. * * No uses data dictionary. */ @Override public String finishRow() { MediaTypeEnum mediaType = (MediaTypeEnum) getPageContext().getAttribute("mediaType"); ResultRow row = (ResultRow) getCurrentRowObject(); if (MediaTypeEnum.HTML.equals(mediaType)) { StringBuffer rowBuffer = new StringBuffer(); List columns = row.getColumns(); int columnCount = columns.size(); int numOfRows = (int) Math.ceil(1.0 * (columnCount - numOfColumnInFirstRow) / numOfColumnInEachRow); rowBuffer.append("<tr>").append("<td colspan='" + numOfColumnInFirstRow + "'><br/><center>"); rowBuffer.append("<table class='datatable-80' cellspacing='0' cellpadding='0' >"); for (int rowIndex = 0; rowIndex < numOfRows; rowIndex++) { rowBuffer.append("<tr>"); for (int columnIndex = 0; columnIndex < numOfColumnInEachRow; columnIndex++) { int currentPosition = rowIndex * numOfColumnInEachRow + columnIndex + numOfColumnInFirstRow; String title = currentPosition < columnCount ? ((Column) columns.get(currentPosition)).getColumnTitle() : null; rowBuffer.append("<th>"); rowBuffer.append(!StringUtils.isBlank(title) ? title : "&nbsp;"); rowBuffer.append("</th>"); } rowBuffer.append("</tr>"); rowBuffer.append("<tr>"); for (int columnIndex = 0; columnIndex < numOfColumnInEachRow; columnIndex++) { int currentPosition = rowIndex * numOfColumnInEachRow + columnIndex + numOfColumnInFirstRow; String value = currentPosition < columnCount ? ((Column) columns.get(currentPosition)).getPropertyValue() : null; rowBuffer.append("<td class='infocell'>"); rowBuffer.append(!StringUtils.isBlank(value) ? value : "&nbsp;"); rowBuffer.append("</td>"); } rowBuffer.append("</tr>"); } rowBuffer.append("</table></center><br/><br/></td></tr>"); return rowBuffer.toString(); } return super.finishRow(); } }
[ "code@ariahgroup.org" ]
code@ariahgroup.org
acbdced35e99e9cdbd00ab1772bb68731b2af9d2
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/com/thoughtworks/go/config/JobConfigsTest.java
ec02168e7ed22481e7b77ea0095d4d854e070b15
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
6,450
java
/** * Copyright 2018 ThoughtWorks, 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.thoughtworks.go.config; import JobConfig.NAME; import com.thoughtworks.go.helper.PipelineConfigMother; import com.thoughtworks.go.util.DataStructureUtils; import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Test; import org.mockito.ArgumentMatchers; import org.mockito.Mockito; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue; public class JobConfigsTest { @Test public void shouldAddJobsGivenInTheAttributesMapAfterClearingExistingJobs() throws Exception { JobConfigs jobs = new JobConfigs(); jobs.add(new JobConfig("quux")); jobs.setConfigAttributes(DataStructureUtils.a(DataStructureUtils.m(NAME, "foo"), DataStructureUtils.m(NAME, "bar"))); Assert.assertThat(jobs.get(0).name(), Matchers.is(new CaseInsensitiveString("foo"))); Assert.assertThat(jobs.get(1).name(), Matchers.is(new CaseInsensitiveString("bar"))); Assert.assertThat(jobs.size(), Matchers.is(2)); } @Test public void shouldNotFailForRepeatedJobNames_shouldInsteedSetErrorsOnValidation() throws Exception { CruiseConfig config = new BasicCruiseConfig(); PipelineConfig pipelineConfig = PipelineConfigMother.pipelineConfig("pipeline"); config.addPipeline("grp", pipelineConfig); JobConfigs jobs = pipelineConfig.get(0).getJobs(); jobs.add(new JobConfig("quux")); jobs.setConfigAttributes(DataStructureUtils.a(DataStructureUtils.m(NAME, "foo"), DataStructureUtils.m(NAME, "foo"))); Assert.assertThat(jobs.size(), Matchers.is(2)); JobConfig firstFoo = jobs.get(0); JobConfig secondFoo = jobs.get(1); Assert.assertThat(firstFoo.name(), Matchers.is(new CaseInsensitiveString("foo"))); Assert.assertThat(secondFoo.name(), Matchers.is(new CaseInsensitiveString("foo"))); Assert.assertThat(firstFoo.errors().isEmpty(), Matchers.is(true)); Assert.assertThat(secondFoo.errors().isEmpty(), Matchers.is(true)); jobs.validate(ConfigSaveValidationContext.forChain(config, config.getGroups(), config.getGroups().get(0), pipelineConfig, pipelineConfig.get(0), jobs)); Assert.assertThat(firstFoo.errors().on(NAME), Matchers.is("You have defined multiple jobs called 'foo'. Job names are case-insensitive and must be unique.")); Assert.assertThat(secondFoo.errors().on(NAME), Matchers.is("You have defined multiple jobs called 'foo'. Job names are case-insensitive and must be unique.")); } @Test public void shouldValidateTree() throws Exception { PipelineConfig pipelineConfig = PipelineConfigMother.pipelineConfig("pipeline"); JobConfigs jobs = pipelineConfig.get(0).getJobs(); jobs.add(new JobConfig("quux")); jobs.setConfigAttributes(DataStructureUtils.a(DataStructureUtils.m(NAME, "foo"), DataStructureUtils.m(NAME, "foo"))); Assert.assertThat(jobs.size(), Matchers.is(2)); JobConfig firstFoo = jobs.get(0); JobConfig secondFoo = jobs.get(1); Assert.assertThat(firstFoo.name(), Matchers.is(new CaseInsensitiveString("foo"))); Assert.assertThat(secondFoo.name(), Matchers.is(new CaseInsensitiveString("foo"))); Assert.assertThat(firstFoo.errors().isEmpty(), Matchers.is(true)); Assert.assertThat(secondFoo.errors().isEmpty(), Matchers.is(true)); jobs.validate(PipelineConfigSaveValidationContext.forChain(true, "group", pipelineConfig, pipelineConfig.get(0), jobs)); Assert.assertThat(firstFoo.errors().on(NAME), Matchers.is("You have defined multiple jobs called 'foo'. Job names are case-insensitive and must be unique.")); Assert.assertThat(secondFoo.errors().on(NAME), Matchers.is("You have defined multiple jobs called 'foo'. Job names are case-insensitive and must be unique.")); } @Test public void shouldReturnTrueIfAllDescendentsAreValid() { JobConfig jobConfig = Mockito.mock(JobConfig.class); Mockito.when(jobConfig.validateTree(ArgumentMatchers.any(PipelineConfigSaveValidationContext.class))).thenReturn(true); JobConfigs jobConfigs = new JobConfigs(jobConfig); boolean isValid = jobConfigs.validateTree(PipelineConfigSaveValidationContext.forChain(true, "group", new PipelineConfig())); assertTrue(isValid); Mockito.verify(jobConfig).validateTree(ArgumentMatchers.any(PipelineConfigSaveValidationContext.class)); } @Test public void shouldReturnFalseIfAnyDescendentIsInvalid() { JobConfig jobConfig = Mockito.mock(JobConfig.class); Mockito.when(jobConfig.validateTree(ArgumentMatchers.any(PipelineConfigSaveValidationContext.class))).thenReturn(false); JobConfigs jobConfigs = new JobConfigs(jobConfig); boolean isValid = jobConfigs.validateTree(PipelineConfigSaveValidationContext.forChain(true, "group", new PipelineConfig())); assertFalse(isValid); Mockito.verify(jobConfig).validateTree(ArgumentMatchers.any(PipelineConfigSaveValidationContext.class)); } @Test public void shouldClearExistingJobsWhenNullGivenAsAttributeMap() throws Exception { JobConfigs jobs = new JobConfigs(); jobs.add(new JobConfig("quux")); jobs.setConfigAttributes(null); Assert.assertThat(jobs.size(), Matchers.is(0)); } @Test public void shouldGetJobConfigByJobName() { JobConfigs configs = new JobConfigs(); JobConfig expected = new JobConfig("job-1"); configs.add(expected); configs.add(new JobConfig("job-2")); JobConfig actual = configs.getJob(new CaseInsensitiveString("job-1")); Assert.assertThat(actual, Matchers.is(expected)); Assert.assertThat(configs.getJob(new CaseInsensitiveString("some-junk")), Matchers.is(Matchers.nullValue())); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
2756b51b056475ac97347ffb60941da5ff51dc33
5a027c7a6d9afc1bbc8b2bc86e43e96b80dd9fa8
/workspace_movistar_wl11/zejbSolTecClient/ejbModule/co/com/telefonica/atiempo/soltec/ejb/eb/ReglaKey.java
98841902a9f2701b185bf64f4ffa9593862724b9
[]
no_license
alexcamp/ArrobaTiempoGradle
00135dc6f101e99026a377adc0d3b690cb5f2bd7
fc4a845573232e332c5f1211b72216ce227c3f38
refs/heads/master
2020-12-31T00:18:57.337668
2016-05-27T15:02:04
2016-05-27T15:02:04
59,520,455
0
0
null
null
null
null
UTF-8
Java
false
false
1,007
java
package co.com.telefonica.atiempo.soltec.ejb.eb; /** * Key class for Entity Bean: Regla */ public class ReglaKey implements java.io.Serializable { static final long serialVersionUID = 3206093459760846163L; /** * Implementation field for persistent attribute: id_regla */ public java.lang.Long id_regla; /** * Creates an empty key for Entity Bean: Regla */ public ReglaKey() { } /** * Creates a key for Entity Bean: Regla */ public ReglaKey(java.lang.Long id_regla) { this.id_regla = id_regla; } /** * Returns true if both keys are equal. */ public boolean equals(java.lang.Object otherKey) { if (otherKey instanceof co.com.telefonica.atiempo.soltec.ejb.eb.ReglaKey) { co.com.telefonica.atiempo.soltec.ejb.eb.ReglaKey o = (co.com.telefonica.atiempo.soltec.ejb.eb.ReglaKey) otherKey; return ((this.id_regla.equals(o.id_regla))); } return false; } /** * Returns the hash code for the key. */ public int hashCode() { return (id_regla.hashCode()); } }
[ "alexander5075@hotmail.com" ]
alexander5075@hotmail.com
01e6b649f22604b5a84d80c51a09f6c914c6af8e
0144030fd822ff06d875e4ac2b1201c2cc04c77d
/IDE/src/main/java/org/jdesktop/swingx/prompt/BuddySupport.java
b81e83b633afb6aba9245873ce677c879328c0f6
[ "MIT" ]
permissive
xiaolongWangDev/SikuliX1
56ecffe16f41aad888541328080210f2cb18474d
cad35cdc580ca12762f2410f279e06366c9e7cc2
refs/heads/master
2020-04-20T10:17:38.051534
2019-02-05T06:58:52
2019-02-05T06:58:52
168,786,983
0
0
MIT
2019-02-02T02:46:01
2019-02-02T02:46:00
null
UTF-8
Java
false
false
4,534
java
/* * Copyright (c) 2010-2018, sikuli.org, sikulix.com - MIT license */ package org.jdesktop.swingx.prompt; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Insets; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.swing.Box; import javax.swing.JComponent; import javax.swing.JTextField; import javax.swing.plaf.basic.BasicTextUI; import org.jdesktop.swingx.plaf.TextUIWrapper; public class BuddySupport { public enum Position { LEFT, RIGHT }; public static final String OUTER_MARGIN = "outerMargin"; public static void addLeft(Component c, JTextField textField) { add(c, Position.LEFT, textField); } public static void addRight(Component c, JTextField textField) { add(c, Position.RIGHT, textField); } public static void add(Component c, Position pos, JTextField textField) { TextUIWrapper.getDefaultWrapper().install(textField, true); List<Component> leftBuddies = buddies(Position.LEFT, textField); List<Component> rightBuddies = buddies(Position.RIGHT, textField); // ensure buddies are added setLeft(textField, leftBuddies); setRight(textField, rightBuddies); // check if component is already here if (isBuddy(c, textField)) { throw new IllegalStateException("Component already added."); } if (Position.LEFT == pos) { leftBuddies.add(c); } else { rightBuddies.add(0, c); } addToComponentHierarchy(c, pos, textField); } public static void addGap(int width, Position pos, JTextField textField) { add(createGap(width), pos, textField); } public static void setRight(JTextField textField, List<Component> rightBuddies) { set(rightBuddies, Position.RIGHT, textField); } public static void setLeft(JTextField textField, List<Component> leftBuddies) { set(leftBuddies, Position.LEFT, textField); } public static void set(List<Component> buddies, Position pos, JTextField textField) { textField.putClientProperty(pos, buddies); } private static void addToComponentHierarchy(Component c, Position pos, JTextField textField) { String strPos = BorderLayout.WEST; if (Position.RIGHT.equals(pos)) { strPos = BorderLayout.EAST; } textField.add(c, strPos); } public static List<Component> getLeft(JTextField textField) { return getBuddies(Position.LEFT, textField); } public static List<Component> getRight(JTextField textField) { return getBuddies(Position.RIGHT, textField); } public static List<Component> getBuddies(Position pos, JTextField textField) { return Collections.unmodifiableList(buddies(pos, textField)); } @SuppressWarnings("unchecked") private static List<Component> buddies(Position pos, JTextField textField) { List<Component> buddies = (List<Component>) textField.getClientProperty(pos); if (buddies != null) { return buddies; } return new ArrayList<Component>(); } public static boolean isBuddy(Component c, JTextField textField) { return buddies(Position.LEFT, textField).contains(c) || buddies(Position.RIGHT, textField).contains(c); } /** * Because {@link BasicTextUI} removes all components when uninstalled and * therefore all buddies are removed when the LnF changes. * * @param c * @param textField */ public static void remove(JComponent c, JTextField textField) { buddies(Position.LEFT, textField).remove(c); buddies(Position.RIGHT, textField).remove(c); textField.remove(c); } public static void removeAll(JTextField textField) { List<Component> left = buddies(Position.LEFT, textField); for (Component c : left) { textField.remove(c); } left.clear(); List<Component> right = buddies(Position.RIGHT, textField); for (Component c : right) { textField.remove(c); } right.clear(); } public static void setOuterMargin(JTextField buddyField, Insets margin) { buddyField.putClientProperty(OUTER_MARGIN, margin); } public static Insets getOuterMargin(JTextField buddyField) { return (Insets) buddyField.getClientProperty(OUTER_MARGIN); } public static void ensureBuddiesAreInComponentHierarchy(JTextField textField) { for (Component c : BuddySupport.getLeft(textField)) { addToComponentHierarchy(c, Position.LEFT, textField); } for (Component c : BuddySupport.getRight(textField)) { addToComponentHierarchy(c, Position.RIGHT, textField); } } /** * Create a gap to insert between to buddies. * * @param width * @return */ public static Component createGap(int width) { return Box.createHorizontalStrut(width); } }
[ "rmhdevelop@me.com" ]
rmhdevelop@me.com
fd48ae3976577313dfb037d47b4f5dc58f819498
55aca439e180a9bcf0a36f60320013979905d1e5
/efreight-afbase/src/main/java/com/efreight/afbase/entity/Carrier.java
cfd4241b25131c4f0e9d4196b6e6985430c09d0f
[]
no_license
zhoudy-github/efreight-cloud
1a8f791f350a37c1f2828985ebc20287199a8027
fc669facfdc909b51779a88575ab4351e275bd25
refs/heads/master
2023-03-18T07:24:18.001404
2021-03-23T06:55:54
2021-03-23T06:55:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,881
java
package com.efreight.afbase.entity; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import java.io.Serializable; import java.util.Date; /** * <p> * * </p> * * @author wangxx * @since 2019-07-17 */ @Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) @TableName("af_carrier") public class Carrier implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "carrier_id", type = IdType.AUTO) private Integer carrierId; /** * 航司二字代码 */ private String carrierCode; /** * 航司名称 */ private String carrierNameCn; /** * 航司英文名称 */ private String carrierNameEn; @TableField(exist = false) private String carrierName; /** * 航司三字码 */ private String carrierPrefix; /** * 航司制单要求 */ private String carrierAwbRequirement; /** * 航司主单模板_格打 */ @TableField(strategy= FieldStrategy.IGNORED) private String carrierMawbModFormat; /** * 航司主单模板_套打 */ @TableField(strategy=FieldStrategy.IGNORED) private String carrierMawbModOver; /** * 航司分单模板_格打 */ @TableField(strategy=FieldStrategy.IGNORED) private String carrierHawbModFormat; /** * 航司分单模板_套打 */ @TableField(strategy=FieldStrategy.IGNORED) private String carrierHawbModOver; /** * 航司主单模板_格打(excel) */ @TableField(strategy= FieldStrategy.IGNORED) private String carrierMawbModFormatExcel; /** * 航司主单模板_套打(excel) */ @TableField(strategy=FieldStrategy.IGNORED) private String carrierMawbModOverExcel; /** * 航司分单模板_格打(excel) */ @TableField(strategy=FieldStrategy.IGNORED) private String carrierHawbModFormatExcel; /** * 航司分单模板_套打(excel) */ @TableField(strategy=FieldStrategy.IGNORED) private String carrierHawbModOverExcel; /** * 创建人ID */ private Integer creatorId; /** * 创建人名称 */ private String creatorName; /** * 创建时间 */ private Date createTime; /** * 修改人ID */ private Integer editorId; /** * 修改人名称 */ private String editorName; /** * 修改人时间 */ private Date editTime; /** * 航司二字代码,用于后台判断是否更改过此值 */ @TableField(exist = false) private String carrierCode1; /** * 航司三字码,用于后台判断是否更改过此值 */ @TableField(exist = false) private String carrierPrefix1; }
[ "yeliang_sun@163.com" ]
yeliang_sun@163.com
6338e0ba24da0537e7d1c344b45680bd2d5a1a3d
fc6c869ee0228497e41bf357e2803713cdaed63e
/weixin6519android1140/src/sourcecode/com/tencent/mm/modelsimple/g.java
830f22674543be1cb10a6de6e8126d26c1c83dbb
[]
no_license
hyb1234hi/reverse-wechat
cbd26658a667b0c498d2a26a403f93dbeb270b72
75d3fd35a2c8a0469dbb057cd16bca3b26c7e736
refs/heads/master
2020-09-26T10:12:47.484174
2017-11-16T06:54:20
2017-11-16T06:54:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,062
java
package com.tencent.mm.modelsimple; import com.tencent.gmtrace.GMTrace; import com.tencent.mm.ad.b.a; import com.tencent.mm.ad.b.b; import com.tencent.mm.ad.b.c; import com.tencent.mm.network.q; import com.tencent.mm.protocal.c.azh; import com.tencent.mm.protocal.c.es; import com.tencent.mm.protocal.c.su; import com.tencent.mm.protocal.c.sv; import com.tencent.mm.sdk.platformtools.bg; import com.tencent.mm.sdk.platformtools.w; import com.tencent.mm.storage.t; import com.tencent.mm.y.at; import com.tencent.mm.y.c; public final class g extends com.tencent.mm.ad.k implements com.tencent.mm.network.k { private com.tencent.mm.ad.b fUa; private com.tencent.mm.ad.e fUd; public int opType; public g(int paramInt, String paramString) { GMTrace.i(1361638850560L, 10145); this.opType = paramInt; Object localObject = new b.a(); ((b.a)localObject).gtF = new su(); ((b.a)localObject).gtG = new sv(); ((b.a)localObject).uri = "/cgi-bin/micromsg-bin/facebookauth"; ((b.a)localObject).gtE = 183; ((b.a)localObject).gtH = 0; ((b.a)localObject).gtI = 0; this.fUa = ((b.a)localObject).DA(); su localsu = (su)this.fUa.gtC.gtK; localObject = paramString; if (bg.nm(paramString)) { localObject = ""; } localsu.uiM = ((String)localObject); localsu.lQF = paramInt; GMTrace.o(1361638850560L, 10145); } public final int a(com.tencent.mm.network.e parame, com.tencent.mm.ad.e parame1) { GMTrace.i(1361773068288L, 10146); this.fUd = parame1; int i = a(parame, this.fUa, this); GMTrace.o(1361773068288L, 10146); return i; } public final void a(int paramInt1, int paramInt2, int paramInt3, String paramString, q paramq, byte[] paramArrayOfByte) { GMTrace.i(1362041503744L, 10148); w.d("MicroMsg.NetSceneFaceBookAuth", "onGYNetEnd errType:" + paramInt2 + " errCode:" + paramInt3); if ((paramInt2 == 0) && (paramInt3 == 0)) { paramq = (sv)this.fUa.gtD.gtK; paramInt1 = paramq.uND.tST; if (paramInt1 != 0) { w.e("MicroMsg.NetSceneFaceBookAuth", "baseresponse.ret = " + paramInt1); this.fUd.a(4, paramInt1, paramString, this); GMTrace.o(1362041503744L, 10148); return; } w.d("MicroMsg.NetSceneFaceBookAuth", "fbuserid = " + paramq.uiO + ", fbusername = " + paramq.uiP); if ((this.opType == 0) || (this.opType == 1)) { at.AR(); c.xh().set(65825, paramq.uiO); com.tencent.mm.ac.b.hL(paramq.uiO); at.AR(); c.xh().set(65826, paramq.uiP); at.AR(); c.xh().kL(true); } } this.fUd.a(paramInt2, paramInt3, paramString, this); GMTrace.o(1362041503744L, 10148); } public final int getType() { GMTrace.i(1361907286016L, 10147); GMTrace.o(1361907286016L, 10147); return 183; } } /* Location: D:\tools\apktool\weixin6519android1140\jar\classes-dex2jar.jar!\com\tencent\mm\modelsimple\g.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "robert0825@gmail.com" ]
robert0825@gmail.com
1ab0630e21e5b8d41e7deb5bce585d626e3b9844
4c45fd10460f88c7176a01c450db5b0aa3314b9b
/src/com/earthman/app/widget/timepickerview/MessageHandler.java
d74cd86f753f39e04edd900ff549a6b880aa49eb
[]
no_license
WenJunKing/diqiuren
b5c60134ba655bb45014a4a75d9b05313a585fb5
b4440085fccc413c1390db2678cd5da893217afc
refs/heads/master
2021-06-01T07:31:33.432581
2016-08-19T07:44:12
2016-08-19T07:44:12
66,062,997
0
1
null
null
null
null
UTF-8
Java
false
false
881
java
package com.earthman.app.widget.timepickerview; import android.os.Handler; import android.os.Message; final class MessageHandler extends Handler { public static final int WHAT_INVALIDATE_LOOP_VIEW = 1000; public static final int WHAT_SMOOTH_SCROLL = 2000; public static final int WHAT_ITEM_SELECTED = 3000; final WheelView loopview; MessageHandler(WheelView loopview) { this.loopview = loopview; } @Override public final void handleMessage(Message msg) { switch (msg.what) { case WHAT_INVALIDATE_LOOP_VIEW: loopview.invalidate(); break; case WHAT_SMOOTH_SCROLL: loopview.smoothScroll(WheelView.ACTION.FLING); break; case WHAT_ITEM_SELECTED: loopview.onItemSelected(); break; } } }
[ "472759693@qq.com" ]
472759693@qq.com
af34262b1887350b1ac489e6ef422ce451fb05f4
aebc64415090ab67574aea581f0935c6af7df350
/commons/src/main/java/springcommonsmodule/exception/NullPointerException.java
6e8346ec32311a84889fc739cb2417a885f67af8
[]
no_license
emanyeruke/emanyeruke
12d1828535322e8aef89c1158a8a048076e5a9ec
da5a0faef7053a3b384b1a236c71e5e7f405f8a5
refs/heads/main
2023-09-06T09:18:40.677758
2021-11-09T13:33:36
2021-11-09T13:33:36
425,185,901
0
0
null
null
null
null
UTF-8
Java
false
false
178
java
package springcommonsmodule.exception; public class NullPointerException extends RuntimeException { public NullPointerException(final String s) { super(s); } }
[ "annettez@sonity.net" ]
annettez@sonity.net
30e462816cc90028b0e40f67a067df482fcbb278
868e46ac8ec7413b0723e2c8c8866d6db54dfff9
/src/drlc/generate/drc1/DataInfo.java
e5c5c9aeb62da5058db87b045d89635a84f43910
[ "MIT" ]
permissive
12345AVD/Dodd-Redstone-Language-Compiler
0739c79b62be2a536d8ff04e6408920ee3f70ae9
9adee176cbbb0ec4a077ca4c2ae2df7acf88ce12
refs/heads/main
2023-06-28T12:06:59.236267
2021-07-27T06:38:38
2021-07-27T06:38:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,263
java
package drlc.generate.drc1; import java.util.Objects; public class DataInfo { public final String routineName, argName; public final DataType type; public final int id; public DataInfo(String routineName, String argName, DataType type, int id) { this.routineName = routineName; this.argName = argName; this.type = type; this.id = id; } @Override public int hashCode() { return Objects.hash(routineName, argName, type, id); } public boolean equals(DataInfo other, boolean ignoreArgName) { return routineName.equals(other.routineName) && (ignoreArgName || argName.equals(other.argName)) && type == other.type && id == other.id; } @Override public boolean equals(Object obj) { if (!(obj instanceof DataInfo)) { return false; } return equals((DataInfo) obj, false); } @Override public String toString() { return routineName.concat(", ").concat(argName).concat(", ").concat(type.toString()).concat(", ").concat(Integer.toString(id)); } public static enum DataType { DATA, TEMP, STATIC; @Override public String toString() { switch (this) { case DATA: return "DATA"; case TEMP: return "TEMP"; case STATIC: return "STATIC"; default: return null; } } } }
[ "joedodd35@gmail.com" ]
joedodd35@gmail.com
35dc6ffe8e2d9b87d930b119498aeddd1d1768f2
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/taihao-20210331/src/main/java/com/aliyun/taihao20210331/models/ListConfigVersionsShrinkRequest.java
bf9e78c502d8b61a22b27e432512021866c4a48e
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
885
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.taihao20210331.models; import com.aliyun.tea.*; public class ListConfigVersionsShrinkRequest extends TeaModel { // listConfigVersionsParam @NameInMap("listConfigVersionsParam") public String listConfigVersionsParamShrink; public static ListConfigVersionsShrinkRequest build(java.util.Map<String, ?> map) throws Exception { ListConfigVersionsShrinkRequest self = new ListConfigVersionsShrinkRequest(); return TeaModel.build(map, self); } public ListConfigVersionsShrinkRequest setListConfigVersionsParamShrink(String listConfigVersionsParamShrink) { this.listConfigVersionsParamShrink = listConfigVersionsParamShrink; return this; } public String getListConfigVersionsParamShrink() { return this.listConfigVersionsParamShrink; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
e40c4e586d462eddbde8599ebba4954e723ce456
6b780b1f637fd9ee1229e08a7efdc9399c6e2db2
/hazelcast/src/test/java/com/hazelcast/internal/adapter/ICacheCompletionListener.java
51c92be796a23653710d3cbadd949ab45bda9b6d
[ "Apache-2.0" ]
permissive
sancar/hazelcast
fc25cc7840f8bc67d61ed47c8dd1605a67db2d90
664d44822862bb54ef211cbac613de372c4d47eb
refs/heads/master
2022-12-22T16:55:08.778072
2018-04-05T14:16:40
2018-04-05T14:16:40
12,152,804
2
0
Apache-2.0
2021-09-16T12:35:21
2013-08-16T06:59:07
Java
UTF-8
Java
false
false
1,433
java
/* * Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.hazelcast.internal.adapter; import com.hazelcast.test.HazelcastTestSupport; import javax.cache.integration.CompletionListener; import java.util.concurrent.CountDownLatch; import static com.hazelcast.util.ExceptionUtil.rethrow; public class ICacheCompletionListener implements CompletionListener { private final CountDownLatch completed = new CountDownLatch(1); private volatile Exception exception; @Override public void onCompletion() { completed.countDown(); } @Override public void onException(Exception e) { exception = e; completed.countDown(); } public void await() { HazelcastTestSupport.assertOpenEventually(completed); if (exception != null) { throw rethrow(exception); } } }
[ "github@thunderphreak.de" ]
github@thunderphreak.de
b092be6949a1d28502fa52141fb1d4c53521429a
357c37822ce15cee4d3c865044a390ec3775e19f
/konzi_gyakok/movieservice/src/main/java/movieservice/CreateMovieCommand.java
8e721b6d7b92aef25094f393e1d4f8cb27a35cab
[]
no_license
djtesla/senior-solutions
5fd0cec5513759057c4df46ca31bf90141110392
69894da3607fe499c5b599a859481d2ea4ddf8c9
refs/heads/master
2023-07-01T21:37:52.957857
2021-07-30T12:40:13
2021-07-30T12:40:13
373,088,997
0
0
null
null
null
null
UTF-8
Java
false
false
357
java
package movieservice; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class CreateMovieCommand { private long id; private String name; private double lengthInMin; public CreateMovieCommand(String name, double lengthInMin) { this.name = name; this.lengthInMin = lengthInMin; } }
[ "djtesla@gmailcom" ]
djtesla@gmailcom
a92315bf42028848f00d95df02d9ba198a1532d5
4f2112f58e2bededf437bb8eefa9d2b9dcfa8c55
/src/com/bit2015/mysite/web/action/member/LoginFormAction.java
055982f8d68c26c1af4b9167b4d41cd35cc4db34
[]
no_license
soojinchoi/mysite
333f92e4aaa144ce91b57e80e8995f4fed23c82e
fed368b8be4f8ec18273fc2be5f53da10b1c5fa8
refs/heads/master
2021-01-10T04:13:32.023893
2015-10-16T00:16:50
2015-10-16T00:16:50
44,160,002
0
0
null
null
null
null
UTF-8
Java
false
false
562
java
package com.bit2015.mysite.web.action.member; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.bit2015.web.WebUtil; import com.bit2015.web.action.Action; public class LoginFormAction implements Action { @Override public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { WebUtil.forwarding(request, response, "/views/user/loginform.jsp"); } }
[ "bit-user@bit" ]
bit-user@bit
eeffcb99fd0d3a16d42868e3eb5751137ec1ee77
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/62/org/apache/commons/math/dfp/Dfp_intValue_1047.java
814c725e8f6d778b587c66852208fe7161d05072
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
3,971
java
org apach common math dfp decim float point librari java float point built radix decim design goal decim math close settabl precis mix number set portabl code portabl perform accuraci result ulp basic algebra oper compli ieee ieee note trade off memori foot print memori repres number perform digit bigger round greater loss decim digit base digit partial fill number repres form pre sign time mant time radix exp pre sign plusmn mantissa repres fraction number mant signific digit exp rang ieee note differ ieee requir radix radix requir met subclass made make behav radix number opinion behav radix number requir met radix chosen faster oper decim digit time radix behavior realiz add addit round step ensur number decim digit repres constant ieee standard specif leav intern data encod reason conclud subclass radix system encod radix system ieee specifi exist normal number entiti signific radix digit support gradual underflow rais underflow flag number expon exp min expmin flush expon reach min exp digit smallest number repres min exp digit digit min exp ieee defin impli radix point li signific digit left remain digit implement put impli radix point left digit includ signific signific digit radix point fine detail matter definit side effect render invis subclass dfp field dfpfield version revis date dfp field element fieldel dfp convert integ greater return 2147483648 return 2147483648 convert number intvalu dfp round result round rint round greater greaterthan instanc newinst round lessthan instanc newinst 2147483648 2147483648 mant length mant length round exp result result radix round mant round sign result result result
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
1617a013d53315f04db6431b38b8b3a64f9cf18d
f5b90d10db8841381dc23ab65502dca43135295e
/Three_Step/crm/electronicBusinessInvoicingSystem/src/main/java/com/javasm/sys/service/impl/GiftServiceImpl.java
509aab3539d9612b9d2abc5524f13a31034d3e5c
[ "LicenseRef-scancode-mulanpsl-2.0-en", "MulanPSL-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fsjhut/shangMaStudy
f8edf1f6d55478615d6bd8b1a4add211de98ba36
c0abad4a87e2000dd13225ffdc7e95293625fb55
refs/heads/master
2023-07-17T09:15:31.931156
2021-09-01T02:18:18
2021-09-01T02:18:18
364,105,148
2
0
null
null
null
null
UTF-8
Java
false
false
1,017
java
package com.javasm.sys.service.impl; import com.javasm.sys.entity.Gift; import com.javasm.sys.dao.GiftDao; import com.javasm.sys.service.GiftService; import org.springframework.stereotype.Service; import com.javasm.commons.base.BaseServiceImpl; import java.util.List; @Service("giftService") public class GiftServiceImpl extends BaseServiceImpl<GiftDao, Gift> implements GiftService { @Override public List<Gift> selectBrand(String giftBrand) { List<Gift> list = getDao().selectBrand(giftBrand); if(list.size()>0) return list; return null; } @Override public List<Gift> selectColor(String color) { List<Gift> strings = getDao().selectColor(color); if(strings.size()>0)return strings; return null; } @Override public List<Gift> selectType(String giftType) { List<Gift> list = getDao().selectType(giftType); System.out.println("赠品类型"+list); if(list.size()>0)return list; return null; } }
[ "1067224906@qq.com" ]
1067224906@qq.com
fb9bb23a05af26ec47cf3569b25ecd5273a22250
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a136/A136860.java
5e2929d42677b0fbf4c7ebc0d8a259d1a4e3582c
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package irvine.oeis.a136; // Generated by gen_seq4.pl squaredig 01467 at 2019-07-11 10:10 // DO NOT EDIT here! import irvine.oeis.SquareDigitsSequence; /** * A136860 Numbers n such that n and the square of n use only the digits <code>0, 1, 4, 6</code> and 7. * @author Georg Fischer */ public class A136860 extends SquareDigitsSequence { /** Construct the sequence. */ public A136860() { super(1, 10, 2, "01467"); } }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
422a55ead743f2efc43d9c028b9bfe82882da388
955bc1c4a7b71bb71802017c5598cadb6d054bc4
/src/main/java/com/tiza/gw/support/factory/CbFactory.java
1e4802fa5074bb21a13f511b83b03d2647a88179
[]
no_license
diyiliu/cbms-gw2
ce14918f19754bed4e0d24522ae3fe3845a86d38
f967b62f295c1dd5a0c9406be052daaa22ceab15
refs/heads/master
2020-03-09T23:56:29.462696
2018-04-18T03:00:47
2018-04-18T03:00:47
129,069,797
0
0
null
null
null
null
UTF-8
Java
false
false
1,319
java
package com.tiza.gw.support.factory; import com.tiza.gw.protocol.CbBaseParser; import com.tiza.gw.support.utils.SpringUtil; import org.springframework.stereotype.Component; import org.springframework.util.CollectionUtils; import java.util.Collection; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * Description: * Author: Wolf * Created:Wolf-(2015-09-02 15:31) * Version: 1.0 * Updated: */ @Component public class CbFactory extends AbstractProFactory<Integer , CbBaseParser> { private static final Map<Integer, CbBaseParser> SONS = new ConcurrentHashMap(); @Override public void addCmd(Integer key, CbBaseParser val) { SONS.put(key , val); } @Override public CbBaseParser getCmd(Integer key) { return SONS.get(key); } @Override public void init() { Map<String, CbBaseParser> parsers = SpringUtil.getBeansOfType(CbBaseParser.class); Collection<CbBaseParser> vals = parsers.values(); if (!CollectionUtils.isEmpty(vals)) { for (CbBaseParser cmdParse : vals) { if(null != cmdParse.getCmdId()){ this.addCmd(cmdParse.getCmdId(), cmdParse); } } } } @Override public int getProtocolId() { return 0; } }
[ "572772828@qq.com" ]
572772828@qq.com
2fdf831f44e8a5f79580e90c1f4ad90166a65d64
9b9b03283397462ae336b4d64532b6b979442943
/app/src/main/java/com/rongxun/xqlc/Gesture/photoview/scrollerproxy/ScrollerProxy.java
fc3ae6a3cf9cf7759ae52c349f2690a7af9479b6
[]
no_license
woshilinyujie/xqlc
52fd3b2d561f4b47555e2ce3521c8bcefb66fe2f
313cb81470311b76fd5fc00763862b93418164c8
refs/heads/master
2020-03-28T04:02:58.798975
2018-09-11T05:13:55
2018-09-11T05:13:55
147,690,924
0
0
null
null
null
null
UTF-8
Java
false
false
1,789
java
/******************************************************************************* * Copyright 2011, 2012 Chris Banes. * * 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.rongxun.xqlc.Gesture.photoview.scrollerproxy; import android.content.Context; import android.os.Build.VERSION; import android.os.Build.VERSION_CODES; public abstract class ScrollerProxy { public static ScrollerProxy getScroller(Context context) { if (VERSION.SDK_INT < VERSION_CODES.GINGERBREAD) { return new PreGingerScroller(context); } else if (VERSION.SDK_INT < VERSION_CODES.ICE_CREAM_SANDWICH) { return new GingerScroller(context); } else { return new IcsScroller(context); } } public abstract boolean computeScrollOffset(); public abstract void fling(int startX, int startY, int velocityX, int velocityY, int minX, int maxX, int minY, int maxY, int overX, int overY); public abstract void forceFinished(boolean finished); public abstract boolean isFinished(); public abstract int getCurrX(); public abstract int getCurrY(); }
[ "418265421@qq.com" ]
418265421@qq.com
194e7fda938432ccc7fdd4369cba632a218dc8b4
af750c0d49be9d6b732105c6ad1e87a1d3459007
/study-primitive-types/src/com/example/StudyString.java
b1e70d4b37aca13d0fb585240242e3d62caabbec
[ "MIT" ]
permissive
deepcloudlabs/dcl204-2020-apr-13
f8937e60ba89b60240618e105afbb86b49b46eb7
1492fc00763c0f87f6a7f703452dd6b1191c65e2
refs/heads/master
2021-05-25T23:44:23.931591
2020-04-17T14:13:03
2020-04-17T14:13:03
253,968,368
0
0
null
null
null
null
UTF-8
Java
false
false
513
java
package com.example; /** * @author Binnur Kurt <binnur.kurt@gmail.com> */ public class StudyString { public static void main(String[] args) { String s = new String("Jack"); // Heap String p = "Jack"; // CP: Constant Pool (Cache) String q = "Jack"; // Object Caching --> Immutable s = s.intern(); // internalized System.out.println("p==q: " + (p.equals(q))); System.out.println("p==s: " + (p.equals(s))); System.out.println("2+2=" + (2 + 2)); } }
[ "deepcloudlabs@gmail.com" ]
deepcloudlabs@gmail.com
3da424e2556cd51e2ad3a7daf5609f4435151a40
9d18776fd39c8fd4546e496b59a4ae8491736abb
/012-core-java/src/main/java/com/keqi/corejava/enumtest/DataSourceTypeEnum.java
8fea1a7c5f5737aef4d9487b832c40144ccfd192
[ "Apache-2.0" ]
permissive
WendellTeam/code-java
2da6d127fcd7ccbe59ec5b7d4b92904a43614f65
054aee871f7e25c0a5766ce5422e71be49dd543f
refs/heads/master
2023-06-11T23:53:22.087548
2021-07-02T13:51:46
2021-07-02T13:51:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
338
java
package com.keqi.corejava.enumtest; /** * 数据源(数据源枚举类,枚举类即使不指定属性,也是可以直接用的, * 就相当于是一个字符串属性,只是不用显示的写出来了 * ) * * @author ruoyi */ public enum DataSourceTypeEnum { /** * 主库 */ MASTER, /** * 从库 */ SLAVE }
[ "iskeqi@126.com" ]
iskeqi@126.com
d5ca008af39d5acf1181c40529028723457b9b45
df134b422960de6fb179f36ca97ab574b0f1d69f
/com/google/common/cache/RemovalCause.java
7e10d4981880959392d126f356fe50056cd764b3
[]
no_license
TheShermanTanker/NMS-1.16.3
bbbdb9417009be4987872717e761fb064468bbb2
d3e64b4493d3e45970ec5ec66e1b9714a71856cc
refs/heads/master
2022-12-29T15:32:24.411347
2020-10-08T11:56:16
2020-10-08T11:56:16
302,324,687
0
1
null
null
null
null
UTF-8
Java
false
false
1,599
java
/* */ package com.google.common.cache; /* */ /* */ import com.google.common.annotations.GwtCompatible; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ @GwtCompatible /* */ public enum RemovalCause /* */ { /* 35 */ EXPLICIT /* */ { /* */ boolean wasEvicted() { /* 38 */ return false; /* */ } /* */ }, /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* 48 */ REPLACED /* */ { /* */ boolean wasEvicted() { /* 51 */ return false; /* */ } /* */ }, /* */ /* */ /* */ /* */ /* */ /* */ /* 60 */ COLLECTED /* */ { /* */ boolean wasEvicted() { /* 63 */ return true; /* */ } /* */ }, /* */ /* */ /* */ /* */ /* */ /* 71 */ EXPIRED /* */ { /* */ boolean wasEvicted() { /* 74 */ return true; /* */ } /* */ }, /* */ /* */ /* */ /* */ /* */ /* 82 */ SIZE /* */ { /* */ boolean wasEvicted() { /* 85 */ return true; /* */ } /* */ }; /* */ /* */ abstract boolean wasEvicted(); /* */ } /* Location: C:\Users\Josep\Downloads\Decompile Minecraft\tuinity-1.16.3.jar!\com\google\common\cache\RemovalCause.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
99fd3ae8e58c476082fe503320f715dc3763336a
967502523508f5bb48fdaac93b33e4c4aca20a4b
/aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/transform/S3DestinationUpdateJsonUnmarshaller.java
2be9aae7c0a4426733d81e3a34eceb59b88c56d1
[ "Apache-2.0", "JSON" ]
permissive
hanjk1234/aws-sdk-java
3ac0d8a9bf6f7d9bf1bc5db8e73a441375df10c0
07da997c6b05ae068230401921860f5e81086c58
refs/heads/master
2021-01-17T18:25:34.913778
2015-10-23T03:20:07
2015-10-23T03:20:07
44,951,249
1
0
null
2015-10-26T06:53:25
2015-10-26T06:53:24
null
UTF-8
Java
false
false
4,402
java
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.kinesisfirehose.model.transform; import java.util.Map; import java.util.Map.Entry; import com.amazonaws.services.kinesisfirehose.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * S3DestinationUpdate JSON Unmarshaller */ public class S3DestinationUpdateJsonUnmarshaller implements Unmarshaller<S3DestinationUpdate, JsonUnmarshallerContext> { public S3DestinationUpdate unmarshall(JsonUnmarshallerContext context) throws Exception { S3DestinationUpdate s3DestinationUpdate = new S3DestinationUpdate(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("RoleARN", targetDepth)) { context.nextToken(); s3DestinationUpdate.setRoleARN(StringJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("BucketARN", targetDepth)) { context.nextToken(); s3DestinationUpdate.setBucketARN(StringJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("Prefix", targetDepth)) { context.nextToken(); s3DestinationUpdate.setPrefix(StringJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("BufferingHints", targetDepth)) { context.nextToken(); s3DestinationUpdate .setBufferingHints(BufferingHintsJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("CompressionFormat", targetDepth)) { context.nextToken(); s3DestinationUpdate .setCompressionFormat(StringJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("EncryptionConfiguration", targetDepth)) { context.nextToken(); s3DestinationUpdate .setEncryptionConfiguration(EncryptionConfigurationJsonUnmarshaller .getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals( currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return s3DestinationUpdate; } private static S3DestinationUpdateJsonUnmarshaller instance; public static S3DestinationUpdateJsonUnmarshaller getInstance() { if (instance == null) instance = new S3DestinationUpdateJsonUnmarshaller(); return instance; } }
[ "aws@amazon.com" ]
aws@amazon.com
7fc8d14a88a078b93d95c0959a81f115c365985d
582cf146893bcef5e374db9f873ca0aa1116a1f6
/src/main/com/mi/game/module/talisman/data/TalismanShardData.java
1978bb640bae9b5884ade751b59ed8b704485428
[]
no_license
hexiaoweiff8/GameServer
09e69880847d061d7416a21be297439255da50ca
19d80004ff558c3c69cab8c3a2247f00dc4224e3
refs/heads/master
2021-01-17T12:50:30.448481
2016-06-15T03:40:48
2016-06-15T03:40:48
59,183,210
0
1
null
null
null
null
UTF-8
Java
false
false
1,635
java
package com.mi.game.module.talisman.data; import com.mi.core.engine.annotation.XmlTemplate; import com.mi.core.template.BaseTemplate; @XmlTemplate(template = {"com/mi/template/TalismanComposePrototype.xml"}) public class TalismanShardData extends BaseTemplate{ private int PlayerRate; private int NPCRate; private int talismanID; private int type; private int postion; private int snatchPlayerRate; private int snatchNPCRate; private int isDefult; private int quality; public int getQuality() { return quality; } public void setQuality(int quality) { this.quality = quality; } public int getIsDefult() { return isDefult; } public void setIsDefult(int isDefult) { this.isDefult = isDefult; } public int getSnatchPlayerRate() { return snatchPlayerRate; } public void setSnatchPlayerRate(int snatchPlayerRate) { this.snatchPlayerRate = snatchPlayerRate; } public int getSnatchNPCRate() { return snatchNPCRate; } public void setSnatchNPCRate(int snatchNPCRate) { this.snatchNPCRate = snatchNPCRate; } public int getPostion() { return postion; } public void setPostion(int postion) { this.postion = postion; } public int getPlayerRate() { return PlayerRate; } public void setPlayerRate(int playerRate) { PlayerRate = playerRate; } public int getNPCRate() { return NPCRate; } public void setNPCRate(int nPCRate) { NPCRate = nPCRate; } public int getTalismanID() { return talismanID; } public void setTalismanID(int talismanID) { this.talismanID = talismanID; } public int getType() { return type; } public void setType(int type) { this.type = type; } }
[ "hexiaoweiff8@sina.com" ]
hexiaoweiff8@sina.com