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
82090a199c5e03b299aa4a4722f29e836796205d
b092732608234c9f1ab25afbc0122f67fcaac94b
/src/main/java/com/mawujun/org/OrgChange.java
6a7a8e6f1de7b2cdc7587974f97e4f035cb7787f
[]
no_license
mawujun1234/dwmeta
86e06cafbf65cc8e7214ae7e890b867a2e5cdc0c
79d6adbde6587e0c8968a18654f2b9c388831092
refs/heads/master
2020-12-30T10:23:40.294521
2017-09-22T09:04:57
2017-09-22T09:04:57
98,868,863
0
0
null
null
null
null
UTF-8
Java
false
false
2,054
java
package com.mawujun.org; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import com.mawujun.annotation.FieldDefine; /** * 组织单元汇报关系 * @author mawujun qq:16064988 mawujun1234@163.com * */ //@Entity //@Table(name="hr_org_change") public class OrgChange { @Id @FieldDefine(title="id",sort=7,hidden=true) private Integer id;//以操作变更的时间为单位 @Column(length=30,nullable=true,unique=false) @FieldDefine(title="名称",sort=6) private String name; @Column(length=30,nullable=true,unique=false) @FieldDefine(title="编码",sort=6) private String code; private Boolean isroot;//是否是根节点 @FieldDefine(title="层级",sort=4,hidden=false) private Integer level; private Boolean status;//状态 @FieldDefine(title="排序",sort=4,hidden=false) private Integer sort; @Column(length=30,nullable=true) @FieldDefine(title="电话号码",sort=4,hidden=false) private String phonenumber; @Column(length=30,nullable=true) @FieldDefine(title="传真",sort=4,hidden=false) private String fax; @Column(length=30,nullable=true) @FieldDefine(title="地址",sort=4,hidden=false) private String address; @Column(length=30,nullable=true) @FieldDefine(title="邮编",sort=4,hidden=false) private String postalcode; @Column(length=30,nullable=true) @FieldDefine(title="E-mail",sort=4,hidden=false) private String email; @Column(length=30,nullable=true) @FieldDefine(title="网址",sort=4,hidden=false) private String web; @Column(length=30,nullable=true) @FieldDefine(title="介绍",sort=4,hidden=false) private String introduction; @Column(length=36,nullable=true) @FieldDefine(title="组织单元类型",sort=4,hidden=false) private String orgtype_id; @Column(length=36,nullable=true) @FieldDefine(title="操作者id",sort=4,hidden=false) private String operator_id; private Date operatetime; }
[ "mawujun1234@163.com" ]
mawujun1234@163.com
5ac97b99ebad2a5ea4867f9f8c156a26b5f00ef1
97fd02f71b45aa235f917e79dd68b61c62b56c1c
/src/main/java/com/tencentcloudapi/dasb/v20191018/models/CreateDeviceAccountRequest.java
15eb69a65b5a5bfeee7d5ea9a16941e68331c111
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-java
7df922f7c5826732e35edeab3320035e0cdfba05
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
refs/heads/master
2023-09-04T10:51:57.854153
2023-09-01T03:21:09
2023-09-01T03:21:09
129,837,505
537
317
Apache-2.0
2023-09-13T02:42:03
2018-04-17T02:58:16
Java
UTF-8
Java
false
false
2,583
java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.tencentcloudapi.dasb.v20191018.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class CreateDeviceAccountRequest extends AbstractModel{ /** * 主机记录ID */ @SerializedName("DeviceId") @Expose private Long DeviceId; /** * 账号名 */ @SerializedName("Account") @Expose private String Account; /** * Get 主机记录ID * @return DeviceId 主机记录ID */ public Long getDeviceId() { return this.DeviceId; } /** * Set 主机记录ID * @param DeviceId 主机记录ID */ public void setDeviceId(Long DeviceId) { this.DeviceId = DeviceId; } /** * Get 账号名 * @return Account 账号名 */ public String getAccount() { return this.Account; } /** * Set 账号名 * @param Account 账号名 */ public void setAccount(String Account) { this.Account = Account; } public CreateDeviceAccountRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public CreateDeviceAccountRequest(CreateDeviceAccountRequest source) { if (source.DeviceId != null) { this.DeviceId = new Long(source.DeviceId); } if (source.Account != null) { this.Account = new String(source.Account); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "DeviceId", this.DeviceId); this.setParamSimple(map, prefix + "Account", this.Account); } }
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
7602ed4f8a52b760fb7d43528205efa10b76b947
81db1d9f1bdc607955479aac16b0b552c555d7d1
/app/src/main/java/com/sdjy/sdjymall/model/CommonDataModel.java
ec4adc669484ab2ff5509d76bb29e220ecbd8461
[]
no_license
ebike/LaifukouShop
0031136635b9afda639ce27232efe31c5a92f148
4b0e5a5f10d23fdaf524c3623e8830de71315d75
refs/heads/master
2020-05-22T00:04:27.329215
2016-10-26T08:07:52
2016-10-26T08:07:52
62,570,998
0
0
null
null
null
null
UTF-8
Java
false
false
303
java
package com.sdjy.sdjymall.model; /** * 常见字段的类 */ public class CommonDataModel { //ID public String id; //名称 public String name; //图片地址 public String imageUrl; //是否被选中 public boolean isChecked; public CommonDataModel() { } }
[ "hu.gw@ikcrm.com" ]
hu.gw@ikcrm.com
31f613cf303aee4150cfd4ae48a78ea2ce9f50bd
6081aeb4920e6d40583fec1d066e0093b92ed1f2
/bizideal/com-bizideal-whoami-service-meeting/src/main/java/com/bizideal/whoami/core/meeting/mapper/HallLinkUserMapper.java
ec4489fb3822560182921f3beb8cc5f2824b77d8
[]
no_license
xie-summer/BZD
8201b909d84b04ce146a054c7066f6d4350d45df
6214e91e01905bacd6109e3490292f8ea2d7fca9
refs/heads/master
2021-06-22T04:44:43.993988
2017-04-23T12:11:18
2017-04-23T12:13:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
814
java
package com.bizideal.whoami.core.meeting.mapper; import java.util.List; import com.bizideal.whoami.facade.meeting.entity.HallLinkUser; import tk.mybatis.mapper.common.Mapper; /** * @ClassName HallLinkUserMapper * @Description TODO(会议厅关注的用户) * @Author Zj.Qu * @Date 2017-01-10 16:12:01 */ public interface HallLinkUserMapper extends Mapper<HallLinkUser> { /** * 统计某个会议厅的关注人数 * @param hallId 会议厅id * @return 关注数 */ int countUserIdByHallId(Integer hallId); /** * 会议厅的粉丝信息 * @param hallId * @return */ List<HallLinkUser> ListUserIdByHallId(Integer hallId); /** * 我关注的会议厅 * @param userId * @return */ List<HallLinkUser> ListHallByUserId(String userId); }
[ "xieshengrong@live.com" ]
xieshengrong@live.com
c6865b0d5d7f0819d9f8ddcaef07f65953d82eb2
06acfbba37776cc8ce920779fe9b947044831d58
/jts/java/src/com/vividsolutions/jtstest/testbuilder/ui/tools/PanTool.java
bc0d55159542e6630ca55842ed8c7385b925abe2
[]
no_license
oschrenk/jts
d2c50831cb4d46d96202bdb0142cae74815018fc
2f402b3f75043a684bbbc73e6e00a98b67eafbdb
HEAD
2016-09-05T09:10:31.331179
2011-07-21T05:11:44
2011-07-21T05:11:44
1,387,011
2
0
null
null
null
null
UTF-8
Java
false
false
2,610
java
/* * The JTS Topology Suite is a collection of Java classes that * implement the fundamental operations required to validate a given * geo-spatial data set to a known topological specification. * * Copyright (C) 2001 Vivid Solutions * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * For more information, contact: * * Vivid Solutions * Suite #1A * 2328 Government Street * Victoria BC V8T 5G5 * Canada * * (250)385-6040 * www.vividsolutions.com */ package com.vividsolutions.jtstest.testbuilder.ui.tools; import java.awt.Cursor; import java.awt.Toolkit; import java.awt.event.MouseEvent; import java.awt.geom.Point2D; import com.vividsolutions.jtstest.testbuilder.*; /** * @version 1.7 */ public class PanTool extends BasicTool { private static PanTool singleton = null; public static PanTool getInstance() { if (singleton == null) singleton = new PanTool(); return singleton; } private Point2D source; private Cursor cursorHand = Toolkit.getDefaultToolkit().createCustomCursor( IconLoader.icon("Hand.gif").getImage(), new java.awt.Point(7, 7), "Pan"); private PanTool() { } public Cursor getCursor() { return cursorHand; } public void activate() { source = null; } public void mousePressed(MouseEvent e) { source = toModel(e.getPoint()); } public void mouseReleased(MouseEvent e) { if (source == null) return; Point2D destination = toModel(e.getPoint()); double xDisplacement = destination.getX() - source.getX(); double yDisplacement = destination.getY() - source.getY(); panel().zoomPan(xDisplacement, yDisplacement); /* getViewport().setViewOrigin(getViewport().getViewOriginX() - xDisplacement, getViewport().getViewOriginY() - yDisplacement); */ } }
[ "dr_jts@3b1963ad-ff86-43ac-bf88-fa91f6ade54d" ]
dr_jts@3b1963ad-ff86-43ac-bf88-fa91f6ade54d
88e57149be853ab94a75b45e3ae2bfe11864df26
ded0659122dbc4a5463fbb66a7327136eef54b68
/Codeforces/Codeforces_round_162_div_2_ColorfulStones.java
d86de1832b1fbece4c8ccc817e49b13cae41dc46
[]
no_license
alvin319/competitive-programming
7eea6aa3d6162aa6afdf57978bd3769757242ed4
2ca6fd60a0cdd08d77a05c76eed67cc37c45c8ae
refs/heads/master
2021-01-24T10:47:57.648721
2019-12-20T06:36:37
2019-12-20T06:36:37
40,688,685
0
2
null
2017-06-13T06:29:22
2015-08-14T00:59:45
Java
UTF-8
Java
false
false
1,833
java
import java.io.*; import java.util.StringTokenizer; /** * Created by Alvin on 7/31/2016. */ public class Codeforces_round_162_div_2_ColorfulStones { public static void main(String[] args) { FScanner input = new FScanner(); out = new PrintWriter(new BufferedOutputStream(System.out), true); String current = input.nextLine(); String command = input.nextLine(); int index = 0; for (int i = 0; i < command.length(); i++) { char currentCommand = command.charAt(i); char currentSpot = current.charAt(index); if (currentCommand == currentSpot) { index++; } } out.println(index + 1); out.close(); } public static PrintWriter out; public static class FScanner { BufferedReader br; StringTokenizer st; public FScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } private String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ "alvin.q.deng@utexas.edu" ]
alvin.q.deng@utexas.edu
769f24a60e217cb4cf127ead708270d10b056367
8b5cdda28454b0aab451a4b3216a58ca87517c41
/AL-Game/data/scripts/system/handlers/quest/tiamaranta/_41598MakingBalaurLuck.java
99195281f8304be5b8743bafb4e6bef5f9c14dd8
[]
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
2,469
java
package quest.tiamaranta; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.network.aion.serverpackets.SM_SYSTEM_MESSAGE; import com.aionemu.gameserver.questEngine.handlers.QuestHandler; import com.aionemu.gameserver.questEngine.model.*; import com.aionemu.gameserver.services.QuestService; import com.aionemu.gameserver.utils.PacketSendUtility; /** * @author Luzien * */ public class _41598MakingBalaurLuck extends QuestHandler { private final static int questId = 41598; public _41598MakingBalaurLuck() { super(questId); } @Override public void register() { qe.registerQuestNpc(730555).addOnQuestStart(questId); qe.registerQuestNpc(730555).addOnTalkEvent(questId); } @Override public boolean onDialogEvent(QuestEnv env) { Player player = env.getPlayer(); int targetId = env.getTargetId(); QuestState qs = player.getQuestStateList().getQuestState(questId); QuestDialog dialog = env.getDialog(); if (qs == null || qs.getStatus() == QuestStatus.NONE || qs.canRepeat()) { if (targetId == 730555) { switch (dialog) { case USE_OBJECT: { if (!QuestService.inventoryItemCheck(env, true)) { return true; } else return sendQuestDialog(env, 1011); } case ACCEPT_QUEST_SIMPLE: { if (!player.getInventory().isFullSpecialCube()) { if (QuestService.startQuest(env)) { return sendQuestDialog(env, 2375); } } else { PacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.STR_MSG_FULL_INVENTORY); return sendQuestSelectionDialog(env); } } } } } else if (qs != null && qs.getStatus() == QuestStatus.START) { if (targetId == 730555) { if (dialog.equals(QuestDialog.CHECK_COLLECTED_ITEMS_SIMPLE)) { if (QuestService.collectItemCheck(env, false)) { changeQuestStep(env, 0, 0, true); return sendQuestDialog(env, 5); } } return sendQuestDialog(env, 2375); } } else if (qs != null && qs.getStatus() == QuestStatus.REWARD) { if (targetId == 730555) { if (dialog == QuestDialog.SELECT_NO_REWARD) { if (QuestService.collectItemCheck(env, true)) return sendQuestEndDialog(env); } else { return QuestService.abandonQuest(player, questId); } } } return false; } @Override public boolean onCanAct(QuestEnv env, QuestActionType questEventType, Object... objects) { return env.getTargetId() == 730555; } }
[ "luiz.philip@amedigital.com" ]
luiz.philip@amedigital.com
fa24202270df71f9509859a2fc1ca596cc75bd34
75f516d7a87a88d293b912418f02d6e493d6a47a
/src/main/java/mate/model/User.java
bf4b90a46e4ec0e9f98dc37d129970259244ab60
[]
no_license
dimmxx/ServletTest
d4ab93c3971008868fc48c7656ee046853ec9289
3cb7383592f0ea9eb84403e03336744d55f90989
refs/heads/master
2021-07-14T15:42:09.007762
2019-10-18T18:45:03
2019-10-18T18:45:03
215,946,085
0
0
null
2020-10-13T16:49:18
2019-10-18T05:14:27
Java
UTF-8
Java
false
false
418
java
package mate.model; public class User { private String name; private int age; public User() { this.name = "Peter"; this.age = 20; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } }
[ "dimmxx@gmail.com" ]
dimmxx@gmail.com
24b19b5774724156c701c1f5eba94c0fd348d0ad
62d9abd57126ddea50bd29848ec586a5379c59d6
/src/test/java/com/fishercoder/_421Test.java
cfeb55f8a690217120d767c9afb5c5c10c209cb9
[ "Apache-2.0" ]
permissive
cy19890513/Leetcode-1
95d84e03d7208ec6efa3ce537dcd580dacd5e4d4
93cfafc3d4f92b97145ee5306aa4f155c49f9dfb
refs/heads/master
2020-06-10T21:33:32.711913
2018-01-02T00:38:04
2018-01-02T00:38:04
75,867,295
2
1
Apache-2.0
2018-01-02T00:38:04
2016-12-07T19:09:39
Java
UTF-8
Java
false
false
648
java
package com.fishercoder; import com.fishercoder.solutions._421; import org.junit.BeforeClass; import org.junit.Test; import static junit.framework.Assert.assertEquals; /** * Created by fishercoder on 4/28/17. */ public class _421Test { private static _421 test; private static int expected; private static int actual; private static int[] nums; @BeforeClass public static void setup() { test = new _421(); } @Test public void test1() { nums = new int[]{3, 10, 5, 25, 2, 8}; expected = 28; actual = test.findMaximumXOR(nums); assertEquals(expected, actual); } }
[ "stevesun@coupang.com" ]
stevesun@coupang.com
793f70573a75e30b187ca284cff636e09d746fb0
83d56024094d15f64e07650dd2b606a38d7ec5f1
/sicc_druida/fuentes/java/CobBaseEscalLPStartUpRemove.java
6653eed523be23555c31629145e352c7e80a43e8
[]
no_license
cdiglesias/SICC
bdeba6af8f49e8d038ef30b61fcc6371c1083840
72fedb14a03cb4a77f62885bec3226dbbed6a5bb
refs/heads/master
2021-01-19T19:45:14.788800
2016-04-07T16:20:51
2016-04-07T16:20:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,033
java
/* INDRA/CAR/mmg $Id: CobBaseEscalLPStartUpRemove.java,v 1.1 2009/12/03 18:33:54 pecbazalar Exp $ DESC */ import es.indra.druida.belcorp.MMGDruidaBase; // Definicion de la clase public class CobBaseEscalLPStartUpRemove extends MMGDruidaBase{ public void inicio() throws Exception { //No tiene asociado xml ya que simpelmente redirecciona } public void ejecucion() throws Exception { conectorAction("CobBaseEscalLPStartUp"); conectorActionParametro(PARAMETRO_GENERICO_ACCION, "remove"); conectorActionParametro(PARAMETRO_GENERICO_ORIGEN, "menu"); conectorActionParametro("idFuncion", conectorParametro("idFuncion") == null?"": conectorParametro("idFuncion")); conectorActionParametro(PARAMETRO_MENU_FROM_MENU, conectorParametro(PARAMETRO_MENU_FROM_MENU) == null?"": conectorParametro(PARAMETRO_MENU_FROM_MENU)); conectorActionParametro(PARAMETRO_MENU_CDOS_IDIOMA, conectorParametro(PARAMETRO_MENU_CDOS_IDIOMA) == null? "": conectorParametro(PARAMETRO_MENU_CDOS_IDIOMA)); rastreo(); } }
[ "hp.vega@hotmail.com" ]
hp.vega@hotmail.com
7d0f94370b4c31683bcf14cd8a37dbd21a54a6da
50478f93d5d15cc9857e128c589de4fede29e8ef
/hibernate_2/src/test/java/test/HibernateTestDemo.java
d6c9a4e62990bb5408eb1fa7744ea5ecabc2a6fd
[]
no_license
ladanniel/Hibernate
2da755f909cc22225932484382e2ee3deda80c48
3d09c9524f77617ba56a1eda74a909f40ab3b0d7
refs/heads/master
2020-04-26T11:32:44.015880
2019-03-03T02:06:48
2019-03-03T02:06:48
173,520,401
0
0
null
null
null
null
GB18030
Java
false
false
2,024
java
package test; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.junit.Test; import Utils.HibernateUtils; import com.itcast.entity.User; public class HibernateTestDemo { @Test public void testUpdate(){ SessionFactory sessionFactory = HibernateUtils.getSessionFactory(); //获取session Session session = sessionFactory.openSession(); //开启事务 Transaction trans = session.beginTransaction(); //根据id查询 User user = session.get(User.class, "297e278c693442bb01693442c1270000"); System.out.println(user); //向返回的user对象里面设置修改之后的值 user.setUsername("东方不败"); session.update(user); System.out.println("执行过程:到user对象里找到uid值,根据uid进行修改"); trans.commit(); } @Test public void testAdd(){ /*//第一步:加载hibernate核心配置文件 hibernate.cfg.xml //到src下找到名称是hibernate.cfg.xml //在hibernate里面封装对象 Configuration configuration = new Configuration().configure("hibernate.cfg.xml");*/ //第二步:创建sessionFactory对象 读取hibernacle核心配置文件内容,创建sessionFactory //在过程中,根据映射关系,在配置数据库里创建表 /* SessionFactory sessionFactory = configuration.buildSessionFactory();*/ SessionFactory sessionFactory = HibernateUtils.getSessionFactory(); //第三步:使用sessionFactory创建session对象 类似jdbc连接 Session session = sessionFactory.openSession(); //第四步:开启事务 Transaction tx = session.beginTransaction(); //第五步:写具体逻辑crud操作 User user = new User(); user.setUsername("周冬雨"); user.setPassword("1234567"); user.setAddress("上海市黄浦江区"); //调用session方法提交 session.save(user); //处理操作回滚 /*tx.rollback();*/ //第六步:提交事务 tx.commit(); //第七步:关闭资源 session.close(); sessionFactory.close(); } }
[ "ldanniel@sina.com" ]
ldanniel@sina.com
1c752b8317d1c0a5387b342a19ebf7200eb281cf
425b39fd89dde81a6c4c905f34071e838cd67e10
/05.HibernateCodeFirst/problem5/src/main/java/entities/BillingDetail.java
956d1a08911da81e8d9d7f4dd2314c6944c79a66
[]
no_license
rayailieva/DatabaseFrameworks
c68d484615eaa360df2bc90dcbef7313832f4db1
00d98576855cfe20b07273ce324bcd0d96b8c41f
refs/heads/master
2020-04-02T14:27:38.071295
2018-12-20T11:40:46
2018-12-20T11:40:46
154,525,582
0
1
null
null
null
null
UTF-8
Java
false
false
541
java
package entities; import javax.persistence.*; @Entity @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public abstract class BillingDetail { private String number; private User owner; @Id @Column(name = "number") public String getNumber() { return this.number; } public void setNumber(String number) { this.number = number; } @ManyToOne public User getOwner() { return this.owner; } public void setOwner(User owner) { this.owner = owner; } }
[ "you@example.com" ]
you@example.com
04abb6cb85a9f73cbbb77f226168e1434a774659
ba96081716b984d1132239db9abc9eae3d60ebad
/marathon-core/src/main/java/net/sourceforge/marathon/junit/textui/TestRunner.java
d8dcf88a9dcc2243f5881224ae2e5a9ee5f4e5d7
[ "Apache-2.0" ]
permissive
pranasblk/marathonv5
05f0b46b64f07f4b6974b57cbd4904b8c5af6d73
0bda018ac14a65bdb2c8fd3c9a530e3de505f2da
refs/heads/master
2021-01-18T21:53:22.591748
2017-03-31T09:04:47
2017-03-31T09:04:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,174
java
/******************************************************************************* * Copyright 2016 Jalian Systems Pvt. Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package net.sourceforge.marathon.junit.textui; import java.io.File; import java.io.IOException; import java.util.List; import org.junit.internal.TextListener; import org.junit.runner.Result; import junit.framework.Test; import net.sourceforge.marathon.ArgumentProcessor; import net.sourceforge.marathon.junit.MarathonTestCase; import net.sourceforge.marathon.junit.MarathonTestRunner; import net.sourceforge.marathon.junit.StdOutConsole; import net.sourceforge.marathon.junit.TestCreator; import net.sourceforge.marathon.runtime.api.Constants; import net.sourceforge.marathon.testrunner.fxui.AllureMarathonRunListener; import net.sourceforge.marathon.util.AllureUtils; public class TestRunner { ArgumentProcessor argProcessor; private Test currentTest; private TestCreator creator; private String runReportDir; public TestRunner() { } public Result doRun(Test suite, boolean wait) { MarathonTestRunner runner = new MarathonTestRunner(); runReportDir = argProcessor.getReportDir(); String resultsDir = new File(runReportDir, "results").getAbsolutePath(); if (runReportDir != null) { System.setProperty(Constants.PROP_REPORT_DIR, runReportDir); System.setProperty(Constants.PROP_IMAGE_CAPTURE_DIR, runReportDir); System.setProperty("allure.results.directory", resultsDir); runner.addListener(new AllureMarathonRunListener()); } runner.addListener(new TextListener(System.out)); Result result = runner.run(suite); MarathonTestCase.reset(); if (runReportDir != null) { AllureUtils.launchAllure(false, resultsDir, new File(runReportDir, "reports").getAbsolutePath()); } return result; } public Result runTests(ArgumentProcessor argProcessor) throws Exception { this.argProcessor = argProcessor; List<String> tests = this.argProcessor.getTests(); try { creator = createTestCreator(); currentTest = creator.getTest(tests); return doRun(currentTest, false); } catch (Exception e) { throw new Exception("Could not create test suite for argument: " + tests, e); } } protected TestCreator createTestCreator() throws IOException { return new TestCreator(this.argProcessor.getAcceptChecklists(), new StdOutConsole()); } }
[ "dakshinamurthy.karra@jaliansystems.com" ]
dakshinamurthy.karra@jaliansystems.com
ad4213e33292b804db7976456f2c002ee705ef11
0f8d0cb844683f0e084c743553c65ceefd5b2e0e
/mapper-spring-boot-samples/mapper-spring-boot-sample-annotation/src/main/java/tk/mybatis/sample/SampleMapperApplication.java
883264f287b5c7bdd1576bfa532bf3ed819497f2
[ "MIT" ]
permissive
Aluluyao/mapper-boot-starter
bf06d01799415ae9781dcdc777005d47f721be39
19d63239c53873ee16630e43ad576619854f1e2f
refs/heads/master
2021-05-13T23:09:36.437782
2017-12-17T13:27:33
2017-12-17T13:27:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,162
java
/* * The MIT License (MIT) * * Copyright (c) 2017 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package tk.mybatis.sample; import org.mybatis.spring.annotation.MapperScan; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import tk.mybatis.sample.domain.Country; import tk.mybatis.sample.mapper.CountryMapper; import java.util.List; @MapperScan(basePackages = "tk.mybatis.sample") @SpringBootApplication public class SampleMapperApplication implements CommandLineRunner { @Autowired private CountryMapper countryMapper; public static void main(String[] args) { SpringApplication.run(SampleMapperApplication.class, args); } @Override public void run(String... args) throws Exception { List<Country> countries = countryMapper.selectAll(); for (Country country : countries) { System.out.println("Country Name: " + country.getCountryname()); } } }
[ "abel533@gmail.com" ]
abel533@gmail.com
50ca7371b2d7f2948212a3b779cc28b54c65d605
79943487f9311a0886a2cc2e5f1732f32c1b04ff
/engine/src/main/java/org/entando/entando/aps/system/services/userprofile/model/UserProfile.java
dcf5cfd0e6e8146812f0437e80d23d64b7f8c10b
[]
no_license
Denix80/entando-core
f3b8827f9fe0789169f6e6cc160fbc2c6f322d45
c861199d39d28edb2d593203450d43a8ecaad7b4
refs/heads/master
2021-01-17T21:28:57.188088
2015-09-21T10:56:40
2015-09-21T10:56:40
42,932,167
0
0
null
2015-09-22T12:26:06
2015-09-22T12:26:06
null
UTF-8
Java
false
false
4,022
java
/* * Copyright 2013-Present Entando Corporation (http://www.entando.com) All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package org.entando.entando.aps.system.services.userprofile.model; import java.util.List; import com.agiletec.aps.system.SystemConstants; import com.agiletec.aps.system.common.entity.model.ApsEntity; import com.agiletec.aps.system.common.entity.model.attribute.AbstractComplexAttribute; import com.agiletec.aps.system.common.entity.model.attribute.AttributeInterface; import com.agiletec.aps.system.common.entity.model.attribute.BooleanAttribute; import com.agiletec.aps.system.common.entity.model.attribute.DateAttribute; import com.agiletec.aps.system.common.entity.model.attribute.ITextAttribute; import com.agiletec.aps.system.common.entity.model.attribute.NumberAttribute; /** * A IUserProfile implementation. * It contains a set of attributes specified in the configuration of ProfileManager. * @author E.Santoboni */ public class UserProfile extends ApsEntity implements IUserProfile { @Override public String getUsername() { return this.getId(); } @Override public String getDisplayName() { String displayName = (String) this.getValueByRole(SystemConstants.USER_PROFILE_ATTRIBUTE_ROLE_FULL_NAME); //diplayName may contain an empty string if (null == displayName || displayName.trim().length() == 0) { displayName = this.getUsername(); } return displayName; } @Override public String toString() { return this.getDisplayName(); } @Override public Object getValue(String key) { AttributeInterface attribute = (AttributeInterface) this.getAttribute(key); if (null != attribute) { return this.getValue(attribute); } return null; } @Override public Object getValueByRole(String rolename) { AttributeInterface attribute = (AttributeInterface) this.getAttributeByRole(rolename); if (null != attribute) { return this.getValue(attribute); } return null; } private Object getValue(AttributeInterface attribute) { if (null == attribute) return ""; if (attribute.isTextAttribute()) { return ((ITextAttribute) attribute).getText(); } else if (attribute instanceof NumberAttribute) { return ((NumberAttribute) attribute).getValue(); } else if (attribute instanceof BooleanAttribute) { return ((BooleanAttribute) attribute).getValue(); } else if (attribute instanceof DateAttribute) { return ((DateAttribute) attribute).getDate(); } else if (!attribute.isSimple()) { String text = ""; List<AttributeInterface> attributes = ((AbstractComplexAttribute) attribute).getAttributes(); for (int i=0; i<attributes.size(); i++) { if (i>0) text += ","; AttributeInterface attributeElem = attributes.get(i); text += this.getValue(attributeElem); } return text; } return null; } @Override public String getFullNameAttributeName() { AttributeInterface attribute = this.getAttributeByRole(SystemConstants.USER_PROFILE_ATTRIBUTE_ROLE_FULL_NAME); if (null != attribute) { return attribute.getName(); } return null; } @Override public String getMailAttributeName() { AttributeInterface attribute = this.getAttributeByRole(SystemConstants.USER_PROFILE_ATTRIBUTE_ROLE_MAIL); if (null != attribute) { return attribute.getName(); } return null; } @Override public boolean isPublicProfile() { return _publicProfile; } @Override public void setPublicProfile(boolean publicProfile) { this._publicProfile = publicProfile; } private boolean _publicProfile; }
[ "eugenio.santoboni@gmail.com" ]
eugenio.santoboni@gmail.com
bd9d51d3c84954b7586b754d9d5752acab35e069
50add8286b791d2a1ed21f3fe807c1cf87d64173
/kettle5.0.1-src-eclipse/engine/org/pentaho/di/trans/steps/randomccnumber/RandomCCNumberGenerator.java
b8134b7860d1d79fbc245822f78c273237277180
[ "Apache-2.0" ]
permissive
Piouy/pentaho-kettle-serial
418f63d981429eeab56160169deb0555a91008f6
5a915839de1ee5b0435f3fb6dbe9657f638d36a8
refs/heads/master
2021-09-10T06:11:54.094488
2018-03-21T09:58:15
2018-03-21T09:58:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,368
java
/******************************************************************************* * * Pentaho Data Integration * * Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * 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.pentaho.di.trans.steps.randomccnumber; import org.pentaho.di.core.Const; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.row.RowDataUtil; import org.pentaho.di.core.row.RowMeta; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.trans.Trans; import org.pentaho.di.trans.TransMeta; import org.pentaho.di.trans.step.BaseStep; import org.pentaho.di.trans.step.StepDataInterface; import org.pentaho.di.trans.step.StepInterface; import org.pentaho.di.trans.step.StepMeta; import org.pentaho.di.trans.step.StepMetaInterface; /** * Generate random credit card number. * * @author Samatar * @since 01-4-2010 */ public class RandomCCNumberGenerator extends BaseStep implements StepInterface { private static Class<?> PKG = RandomCCNumberGeneratorMeta.class; // for i18n purposes, needed by Translator2!! $NON-NLS-1$ private RandomCCNumberGeneratorMeta meta; private RandomCCNumberGeneratorData data; public RandomCCNumberGenerator(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans) { super(stepMeta, stepDataInterface, copyNr, transMeta, trans); } /** * Build an empty row based on the meta-data... * * @return */ private Object[] buildEmptyRow() { Object[] rowData = RowDataUtil.allocateRowData(data.outputRowMeta.size()); return rowData; } public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { if (first) { first = false; data.outputRowMeta = new RowMeta(); meta.getFields(data.outputRowMeta, getStepname(), null, null, this, repository, metaStore); } for(int i=0; i< data.cardTypes.length && !isStopped(); i++) { // Return card numbers String[] cardNumber = RandomCreditCardNumberGenerator.GenerateCreditCardNumbers(data.cardTypes[i], data.cardLen[i], data.cardSize[i]); for(int j=0; j<cardNumber.length && !isStopped(); j++) { // Create a new row Object[] row = buildEmptyRow(); incrementLinesRead(); int index=0; // add card number row[index++]=cardNumber[j]; if(data.addCardTypeOutput) { // add card type row[index++]=meta.getFieldCCType()[i]; } if(data.addCardLengthOutput) { // add card len row[index++]= new Long(data.cardLen[i]); } if (isRowLevel()) logRowlevel(BaseMessages.getString(PKG, "RandomCCNumberGenerator.Log.ValueReturned",data.outputRowMeta.getString(row))); putRow(data.outputRowMeta, row); } } setOutputDone(); return false; } public boolean init(StepMetaInterface smi, StepDataInterface sdi) { meta = (RandomCCNumberGeneratorMeta) smi; data = (RandomCCNumberGeneratorData) sdi; if (super.init(smi, sdi)) { // Add init code here. if(meta.getFieldCCType()==null) { logError(BaseMessages.getString(PKG, "RandomCCNumberGenerator.Log.NoFieldSpecified")); return false; } if(meta.getFieldCCType().length==0) { logError(BaseMessages.getString(PKG, "RandomCCNumberGenerator.Log.NoFieldSpecified")); return false; } if(Const.isEmpty(meta.getCardNumberFieldName())) { logError(BaseMessages.getString(PKG, "RandomCCNumberGenerator.Log.CardNumberFieldMissing")); return false; } data.cardTypes = new int[meta.getFieldCCType().length]; data.cardLen = new int[meta.getFieldCCType().length]; data.cardSize = new int[meta.getFieldCCType().length]; for(int i=0; i<meta.getFieldCCType().length; i++) { data.cardTypes[i] = RandomCreditCardNumberGenerator.getCardType(meta.getFieldCCType()[i]); String len= environmentSubstitute(meta.getFieldCCLength()[i]); data.cardLen[i] = Const.toInt(len, -1); if(data.cardLen[i]<0) { logError(BaseMessages.getString(PKG, "RandomCCNumberGenerator.Log.WrongLength", len, String.valueOf(i))); return false; } String size= environmentSubstitute(meta.getFieldCCSize()[i]); data.cardSize[i] = Const.toInt(size, -1); if(data.cardSize[i]<0) { logError(BaseMessages.getString(PKG, "RandomCCNumberGenerator.Log.WrongSize", size, String.valueOf(i))); return false; } } data.addCardTypeOutput= !Const.isEmpty(meta.getCardTypeFieldName()); data.addCardLengthOutput= !Const.isEmpty(meta.getCardLengthFieldName()); return true; } return false; } public void dispose(StepMetaInterface smi, StepDataInterface sdi) { super.dispose(smi, sdi); } }
[ "sct1302120@163.com" ]
sct1302120@163.com
b66704ded2497b2d6fafdd4f11069fb9ee21f668
377e5e05fb9c6c8ed90ad9980565c00605f2542b
/temp/hybris/extgen_final/yacceleratorfulfilmentprocess/testsrc/org/training/fulfilmentprocess/test/actions/SplitOrder.java
dda84aedf97b4bf90a330d1cb0637fff5912ec81
[]
no_license
automaticinfotech/HybrisProject
c22b13db7863e1e80ccc29774f43e5c32e41e519
fc12e2890c569e45b97974d2f20a8cbe92b6d97f
refs/heads/master
2021-07-20T18:41:04.727081
2017-10-30T13:24:11
2017-10-30T13:24:11
108,957,448
0
0
null
null
null
null
UTF-8
Java
false
false
3,008
java
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE or an SAP affiliate company. * All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package org.training.fulfilmentprocess.test.actions; import de.hybris.platform.core.Registry; import de.hybris.platform.orderprocessing.model.OrderProcessModel; import de.hybris.platform.ordersplitting.model.ConsignmentProcessModel; import de.hybris.platform.processengine.BusinessProcessService; import de.hybris.platform.processengine.enums.ProcessState; import de.hybris.platform.processengine.model.BusinessProcessModel; import de.hybris.platform.processengine.model.BusinessProcessParameterModel; import org.training.fulfilmentprocess.constants.TrainingFulfilmentProcessConstants; import java.util.Arrays; import org.apache.log4j.Logger; /** * */ public class SplitOrder extends TestActionTemp { private static final Logger LOG = Logger.getLogger(SplitOrder.class); private int subprocessCount = 1; public void setSubprocessCount(final int subprocessCount) { this.subprocessCount = subprocessCount; } @Override public String execute(final BusinessProcessModel process) throws Exception //NOPMD { LOG.info("Process: " + process.getCode() + " in step " + getClass()); final BusinessProcessParameterModel warehouseCounter = new BusinessProcessParameterModel(); warehouseCounter.setName(TrainingFulfilmentProcessConstants.CONSIGNMENT_COUNTER); warehouseCounter.setProcess(process); warehouseCounter.setValue(Integer.valueOf(subprocessCount)); save(warehouseCounter); final BusinessProcessParameterModel params = new BusinessProcessParameterModel(); params.setName(TrainingFulfilmentProcessConstants.PARENT_PROCESS); params.setValue(process.getCode()); for (int i = 0; i < subprocessCount; i++) { final ConsignmentProcessModel consProcess = modelService.create(ConsignmentProcessModel.class); consProcess.setParentProcess((OrderProcessModel) process); consProcess.setCode(process.getCode() + "_" + i); consProcess.setProcessDefinitionName("consignment-process-test"); params.setProcess(consProcess); consProcess.setContextParameters(Arrays.asList(params)); consProcess.setState(ProcessState.CREATED); modelService.save(consProcess); getBusinessProcessService().startProcess(consProcess); LOG.info("Subprocess: " + process.getCode() + "_" + i + " started"); } //getQueueService().actionExecuted(process, this); return "OK"; } /** * @return the businessProcessService */ @Override public BusinessProcessService getBusinessProcessService() { return (BusinessProcessService) Registry.getApplicationContext().getBean("businessProcessService"); } }
[ "santosh.kshirsagar@automaticinfotech.com" ]
santosh.kshirsagar@automaticinfotech.com
e77a52ba3305ece0b675b810b6264f35ff8152e6
c9828eb0af9f00efff7966e3de70588879bd827e
/src/example/TestForm.java
baee42b4ec965450a4947c379a6b3f6741aba951
[]
no_license
IdeaUJetBrains/Tomcat8JaxRS3
5d5261380175c8ace9447c5f89d63c1fbbbf30e1
4fd7aa6bedb903fc388ffda22050f48135dad5f9
refs/heads/master
2021-01-10T17:56:23.067701
2016-02-12T12:02:29
2016-02-12T12:02:29
48,371,929
0
0
null
null
null
null
UTF-8
Java
false
false
1,046
java
package example; import javax.ws.rs.*; /** * Created by Olga Pavlova on 12/15/2015. */ @Path("/form") public class TestForm { @POST @Path("/test") public String getClichedMessage( @FormParam("name") String name ){ return "Hello, " + name; } @GET @Produces("text/html") @Path("test1") // form/test1 public String form(){ return "<html>\n" + "<body>\n" + "\t<h1>JAX-RS @FormQuery Testing</h1>\n" + "\n" + "\t<form action=\"/super/sub/test\" method=\"post\">\n" + "\t\t<p>\n" + "\t\t\tName : <input type=\"text\" name=\"name\" />\n" + "\t\t</p>\n" + "\t</form>\n" + "\n" + "</body>\n" + "</html>"; } @GET @Path("test2") // form/test1 public String form1() { return "<form action=\"/form\" method=\"post\">" + "Name : <input type=\"text\" name=\"name\" /></form>"; } }
[ "olga.pavlova@jetbrains.com" ]
olga.pavlova@jetbrains.com
1042ead55e002afd25c3a111f49cc9e4fb3eb226
02accd85cb86f7819ccb8100a7edcb9c8ab06232
/20190724-LibrarySocket/src/test/Test.java
05a353131ba702312edffd56669924845448eb69
[]
no_license
select26/telran
77c7747297d59951c61b9081d468e5ea1d406658
72ea0765fac32a33e8b2f78c471b08dd01bfe42a
refs/heads/master
2022-12-25T14:35:59.139473
2019-10-24T11:47:14
2019-10-24T11:47:14
191,749,937
0
0
null
null
null
null
UTF-8
Java
false
false
2,133
java
package test; import java.io.IOException; import dto.Book; import exceptions.WrongLinesException; import library.Library; import library.LibraryMaps; public class Test { private static final int NUM_BOOKS = 5; public static void main(String[] args) throws IOException, WrongLinesException { Library lib = new LibraryMaps(); lib.fillLibrary(NUM_BOOKS); for (Book book : lib.getAllBooks())System.out.println(book); //Library lib = LibraryMaps.of(NUM_BOOKS); /*TreeMap<String, Long> test = lib.getAllBooksAsStream() .collect(Collectors.groupingBy( book -> book.getPublisher().getCountry(), TreeMap<String, Long> :: new, Collectors.counting() )); for (String country : test.keySet()) System.out.println(country+": "+test.get(country));*/ /*for(Book book : lib.getAllBooksSortedByAuthors()) System.out.println(book);*/ //Book book = lib.getAllBooks().iterator().next(); /*System.out.println(Validators .authorsValidator .test(book.getAuthors().toString().replaceAll("[\\[\\]]","")));*/ /*System.out.println(Validators .titleValidator .test(book.getTitle().getValue()));*/ /*System.out.println(Validators .dateValidator .test(book.getPublishingDate().toString()));*/ /*System.out.println(Validators .publisherValidator .test(book.getPublisher().toString()));*/ //System.out.println(Serializers.bookToCSV(book)); //String csv = "2221460027717;[Fisher John, Fisher Thomas, Smith Samuel];Wind and Rain;2011-09-26;Germany, Blue star;966.57"; //System.out.println(Serializers.csvToBook(csv)); // LibraryMaps.of(10).toCSV("libraryDB.txt", false); /* Library libCSV = new LibraryMaps(); try { libCSV.fromCSV("libraryDB.txt"); } catch (WrongLinesException e) { System.err.print(e); System.err.println(e.getLinesSkept()+" lines skept"); } for (Book book : libCSV.getAllBooks())System.out.println(book); */ } }
[ "Dennis@Chertkov.info" ]
Dennis@Chertkov.info
b9b5fa3a7e810a6e530ff1cc92d400bd4067479a
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/30/30_793322959bbef25e555bc1f4a0909663c866cd77/StyledModule/30_793322959bbef25e555bc1f4a0909663c866cd77_StyledModule_s.java
54dc7cc8057f6b2b3a2e401bed71516103cf197b
[]
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
1,792
java
package com.lorepo.icplayer.client.module; import com.google.gwt.user.client.ui.Widget; import com.lorepo.icplayer.client.framework.module.IStyleListener; import com.lorepo.icplayer.client.framework.module.IStyledModule; import com.lorepo.icplayer.client.utils.DOMUtils; /** * Klasa implementuje bazowe functionalności potrzebne wszystkim modułom * * @author Krzysztof Langner */ class StyledModule extends AbsolutePositioningModule implements IStyledModule { private IStyleListener styleListener; private String style = ""; private String styleClass; public StyledModule(String name) { super(name); } @Override public void addStyleListener(IStyleListener listener){ styleListener = listener; } @Override public String getInlineStyle() { return style; } @Override public String getStyleClass() { if(styleClass == null){ return ""; } return styleClass; } @Override public void setInlineStyle(String style){ this.style = style; if(styleListener != null){ styleListener.onStyleChanged(); } } @Override public void setStyleClass(String styleClass){ if(styleClass != null && styleClass.length() > 0){ this.styleClass = styleClass; } else{ this.styleClass = null; } if(styleListener != null){ styleListener.onStyleChanged(); } } /** * Wstawienie stylu inline do elementu DOM * @param element * @param style */ protected void applyInlineStyle(Widget widget){ DOMUtils.applyInlineStyle(widget.getElement(), getInlineStyle()); if(getStyleClass() != null && getStyleClass().length() > 0){ widget.addStyleName(getStyleClass()); } } @Override public String getClassNamePrefix() { return ""; }; }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
21f54ba0b0fbc6c5bbde9450ffa843def61a4761
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/validation/com/vaadin/v7/tests/server/component/grid/declarative/GridStructureDeclarativeTest.java
65593eb4e04809758312ac703b9221d53d73a002
[]
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
1,050
java
package com.vaadin.v7.tests.server.component.grid.declarative; import com.vaadin.ui.declarative.DesignException; import com.vaadin.v7.ui.Grid; import org.junit.Test; public class GridStructureDeclarativeTest extends GridDeclarativeTestBase { @Test public void testReadEmptyGrid() { String design = "<vaadin7-grid />"; testRead(design, new Grid(), false); } @Test public void testEmptyGrid() { String design = "<vaadin7-grid></vaadin7-grid>"; Grid expected = new Grid(); testWrite(design, expected); testRead(design, expected, true); } @Test(expected = DesignException.class) public void testMalformedGrid() { String design = "<vaadin7-grid><vaadin-label /></vaadin7-grid>"; testRead(design, new Grid()); } @Test(expected = DesignException.class) public void testGridWithNoColGroup() { String design = "<vaadin7-grid><table><thead><tr><th>Foo</tr></thead></table></vaadin7-grid>"; testRead(design, new Grid()); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
63ebd366c7bb3e2a6b98d54077137f3ff1cbcc51
f998902aa77a59210e262d45b5c1a8b063b1e55e
/app/utils/Util.java
5e939e4d57831964c796558571ecb53196bb2af9
[]
no_license
ManikHossain08/Tweet_Analytics_WebSockets_SBT_build
4a7cdf9fd9af868eda44b89524087984c23cc0b9
040c53028becb22e95c507c38cfef6b713ef1ac6
refs/heads/main
2023-02-11T16:13:23.882934
2020-12-28T20:23:53
2020-12-28T20:23:53
315,798,108
1
0
null
null
null
null
UTF-8
Java
false
false
714
java
package utils; import com.fasterxml.jackson.databind.node.ObjectNode; import play.libs.Json; /** * Contains utility methods which is common for entire application * * @author HGG02 * @version 1.0.0 */ public class Util { /** * Generates JSON Response from this specified object * @param response Response Object * @param success Success * @return JSON Object Response * @author HGG02 */ public static ObjectNode createResponse(Object response, boolean success) { ObjectNode result = Json.newObject(); result.put("isSuccessful", success); result.putPOJO("data", response); return result; } }
[ "manik083017@gmail.com" ]
manik083017@gmail.com
3fa642b1afbeca10c61b7e1e97ebd54b4e99cc40
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/16/16_73010247f8d57d98ac017231225c57156bd6f25c/CrossServerChat/16_73010247f8d57d98ac017231225c57156bd6f25c_CrossServerChat_t.java
810f44765168959ea58869a27699a63e0a1734fe
[]
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
3,778
java
package me.blha303; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.yaml.snakeyaml.Yaml; import com.google.common.eventbus.Subscribe; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.event.ChatEvent; import net.md_5.bungee.api.plugin.Listener; import net.md_5.bungee.api.plugin.Plugin; public class CrossServerChat extends Plugin implements Listener { private Yaml yaml; private File file; private Map<String, String> data; @Override public void onEnable() { String defaultmsg = "&7<&2%s&8-&2%s&7> &f%s"; file = new File("plugins" + File.pathSeparator + this.getDescription().getName() + File.pathSeparator + "config.yml"); yaml = new Yaml(); loadYAML(); if (Integer.parseInt(data.get("version")) < Integer.parseInt(this.getDescription().getVersion())) { String a = get("string"); if (get("string") == defaultmsg) data.clear(); put("version", this.getDescription().getVersion()); put("help", "%s is replaced with (in order) server name, player display name, message. Make sure you have all three."); if (a != defaultmsg) put("string", a); put("server.lobby", "Lobby"); } ProxyServer.getInstance().getPluginManager().registerListener(this); } @Subscribe public void onChat(ChatEvent e) { String m = e.getMessage(); String servername = ""; String msg = ChatColor.translateAlternateColorCodes('&', data.get("string")); if (e.getSender() instanceof ProxiedPlayer) { ProxiedPlayer pl = (ProxiedPlayer) e.getSender(); if (containsKey("server." + pl.getServer().getInfo().getName().toLowerCase())) { servername = ChatColor.translateAlternateColorCodes('&', get("server." + pl.getServer().getInfo().getName().toLowerCase())); } else { servername = pl.getServer().getInfo().getName().toLowerCase(); } for (ProxiedPlayer p : ProxyServer.getInstance().getPlayers()) { if (p.getServer().getInfo().getName() != pl.getServer().getInfo().getName()) { p.sendMessage(String.format(msg, servername, pl.getDisplayName(), m)); } } } } /** * Initialize YAML */ @SuppressWarnings("unchecked") public void loadYAML() { try { file.createNewFile(); } catch (IOException e) { ProxyServer.getInstance().getLogger().log(Level.WARNING, "Could not create config file", e); } try { FileReader rd = new FileReader(file); data = yaml.loadAs(rd, Map.class); } catch (IOException ex) { ProxyServer.getInstance().getLogger().log(Level.WARNING, "Could not load CrossServerChat config", ex); } if (data == null) { data = new ConcurrentHashMap<>(); } else { data = new ConcurrentHashMap<>(data); } } /** * Save YAML to file */ public void saveYAML() { try { FileWriter wr = new FileWriter(file); yaml.dump(data, wr); } catch (IOException ex) { ProxyServer.getInstance().getLogger().log(Level.WARNING, "Could not load CrossServerChat config", ex); } } /** * Get a key value from YAML * * @param key Key name * @return Value of key */ public String get(String key) { return data.get(key); } /** * Put a key value into YAML * * @param key Key name * @param value Key value */ public void put(String key, String value) { data.put(key, value); } public boolean containsKey(String key) { return data.containsKey(key); } public boolean containsValue(String value) { return data.containsValue(value); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
a558b565c5cd3cbb0547c6c63698ab447d24742c
b202e081c5815d188ad9264d64b46d5465a42cee
/src/main/java/org/zerock/controller/SecureController.java
c7fca40b5e660c1f7734e31b88974d2f02c6f1af
[]
no_license
dailydevp/spring-ex00-20210614
6c542942e83a92b507e6ae72f73ce111ed307040
31a4fe80ff346fe536c05ebc1f09c56304d6f209
refs/heads/master
2023-08-05T11:11:57.905250
2021-09-25T12:18:22
2021-09-25T12:18:22
376,743,380
0
0
null
null
null
null
UTF-8
Java
false
false
966
java
package org.zerock.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import lombok.extern.log4j.Log4j; @Controller @RequestMapping("/secure") @Log4j public class SecureController { @GetMapping(value="/all", produces = "text/plain; charset=utf-8") @ResponseBody public String doAll() { log.info("secure all method"); return "모두 접근 가능 경로"; } @GetMapping(value="/member", produces = "text/plain; charset=utf-8") @ResponseBody public String doMember() { log.info("secure member method"); return "멤버만 접근 가능 경로"; } @GetMapping(value="/admin", produces = "text/plain; charset=utf-8") @ResponseBody public String doAdmin() { log.info("secure admin method"); return "관리자 접근 가능 경로"; } }
[ "hyde8547@naver.com" ]
hyde8547@naver.com
e6766326b8ae1f3e61bae0ad263c0b8d55f869da
e8f6b009e9d63e02ef2b916410c1caafc30bafe6
/ModInterface/Bees/TileEntityCrystalApiary.java
05cd679a6722e19aa6b73066f054d5780c445a39
[]
no_license
Barhandar/ChromatiCraft
00391ee695921004737813c179432ef59f3c8435
968fdf7e321f030d9d1ca4e7adfdfcc5d67453ba
refs/heads/master
2021-05-14T23:43:42.566537
2017-09-15T00:40:38
2017-09-15T00:40:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,132
java
/******************************************************************************* * @author Reika Kalseki * * Copyright 2017 * * All rights reserved. * Distribution of the software in any form is only allowed with * explicit, prior permission from the owner. ******************************************************************************/ package Reika.ChromatiCraft.ModInterface.Bees; import net.minecraft.util.ChunkCoordinates; import net.minecraft.util.Vec3; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; import Reika.ChromatiCraft.Base.TileEntity.TileEntityChromaticBase; import Reika.ChromatiCraft.Registry.ChromaTiles; import Reika.DragonAPI.ASM.APIStripper.Strippable; import com.mojang.authlib.GameProfile; import forestry.api.apiculture.IBeeHousing; import forestry.api.apiculture.IBeeHousingInventory; import forestry.api.apiculture.IBeeListener; import forestry.api.apiculture.IBeeModifier; import forestry.api.apiculture.IBeekeepingLogic; import forestry.api.core.EnumHumidity; import forestry.api.core.EnumTemperature; import forestry.api.core.IErrorLogic; @Strippable(value={"forestry.api.apiculture.IBeeHousing"}) @Deprecated public class TileEntityCrystalApiary extends TileEntityChromaticBase implements IBeeHousing { @Override public ChunkCoordinates getCoordinates() { // TODO Auto-generated method stub return null; } @Override public IErrorLogic getErrorLogic() { // TODO Auto-generated method stub return null; } @Override public Iterable<IBeeModifier> getBeeModifiers() { // TODO Auto-generated method stub return null; } @Override public Iterable<IBeeListener> getBeeListeners() { // TODO Auto-generated method stub return null; } @Override public IBeeHousingInventory getBeeInventory() { // TODO Auto-generated method stub return null; } @Override public IBeekeepingLogic getBeekeepingLogic() { // TODO Auto-generated method stub return null; } @Override public EnumTemperature getTemperature() { // TODO Auto-generated method stub return null; } @Override public EnumHumidity getHumidity() { // TODO Auto-generated method stub return null; } @Override public int getBlockLightValue() { // TODO Auto-generated method stub return 0; } @Override public boolean canBlockSeeTheSky() { // TODO Auto-generated method stub return false; } @Override public World getWorld() { // TODO Auto-generated method stub return null; } @Override public BiomeGenBase getBiome() { // TODO Auto-generated method stub return null; } @Override public GameProfile getOwner() { // TODO Auto-generated method stub return null; } @Override public Vec3 getBeeFXCoordinates() { // TODO Auto-generated method stub return null; } @Override public ChromaTiles getTile() { // TODO Auto-generated method stub return null; } @Override public void updateEntity(World world, int x, int y, int z, int meta) { // TODO Auto-generated method stub } @Override protected void animateWithTick(World world, int x, int y, int z) { // TODO Auto-generated method stub } }
[ "reikasminecraft@gmail.com" ]
reikasminecraft@gmail.com
651244b8d6d8266c526b21b4fd92b65b41070b07
1d73232ed967213d44af9d75f4bd965ef342c0c3
/Programs/Assorted/BinaryHash.java
762d7b311f2e84cb1003a6e0ecec9eba3184b932
[]
no_license
sirkibsirkib/old_B_CS_code
8e95ac5345ef83f8ef17da34ec4ae0632a7885a6
bbaed7bdde2c803e788423cf5e84007bf883720f
refs/heads/master
2021-05-07T22:43:55.487410
2017-10-17T14:52:46
2017-10-17T14:52:46
107,283,289
0
0
null
null
null
null
UTF-8
Java
false
false
589
java
package Assorted; import java.util.Scanner; public class BinaryHash { private void start(){ Scanner in = new Scanner(System.in); while(true){ System.out.println(hashify(in.nextLine())); } } private boolean hashify(String in) { return isEven((int) (Math.pow(countify(in), 1.2 + (in.length() / 5)))); } private int countify(String in) { int v = 0; for(int i = 0; i < in.length(); i++){ v += in.charAt(i) - 'a'; } return v; } private boolean isEven(int x) { return x == x/2*2; } public static void main(String[] args){ new BinaryHash().start(); } }
[ "christopher.esterhuyse@gmail.com" ]
christopher.esterhuyse@gmail.com
9758b0e86278a38ad028d520655d5d9d80b00e25
a95fbe4532cd3eb84f63906167f3557eda0e1fa3
/dist/gameserver/data/scripts/ai/PaganTemplete/TriolsLayperson.java
ec2be51885481bcabff3e5a3844848d049687820
[ "MIT" ]
permissive
Kryspo/L2jRamsheart
a20395f7d1f0f3909ae2c30ff181c47302d3b906
98c39d754f5aba1806f92acc9e8e63b3b827be49
refs/heads/master
2021-04-12T10:34:51.419843
2018-03-26T22:41:39
2018-03-26T22:41:39
126,892,421
2
0
null
null
null
null
UTF-8
Java
false
false
1,361
java
package ai.PaganTemplete; import l2f.commons.util.Rnd; import l2f.gameserver.ai.Fighter; import l2f.gameserver.model.Creature; import l2f.gameserver.model.Player; import l2f.gameserver.model.World; import l2f.gameserver.model.instances.NpcInstance; import l2f.gameserver.utils.Location; /** * @author PaInKiLlEr * - AI for the monster Triols Layperson (22142). * - If you see a player in a range of 500 when its party composes more than 4 Membury. * - Then throw on a random coordinates of the first who saw the player. * - AI is tested and works. */ public class TriolsLayperson extends Fighter { private boolean _tele = true; public static final Location[] locs = {new Location( -16128, -35888, -10726), new Location( -17029, -39617, -10724), new Location( -15729, -42001, -10724)}; public TriolsLayperson(NpcInstance actor) { super(actor); } @Override protected boolean thinkActive() { NpcInstance actor = getActor(); if (actor == null) return true; for (Player player : World.getAroundPlayers(actor, 500, 500)) { if (player == null || !player.isInParty()) continue; if (player.getParty().size() >= 5 && _tele) { _tele = false; player.teleToLocation(Rnd.get(locs)); } } return true; } @Override protected void onEvtDead(Creature killer) { _tele = true; super.onEvtDead(killer); } }
[ "cristianleon48@gmail.com" ]
cristianleon48@gmail.com
45a3cb4dc94be03d3ef7185e26848243867f6f13
4e6ea6fc1bf67e5ca135f6a80acc8fc27b76896a
/app/src/main/java/zhou/com/demo/ui/fragment/send/record/RecordSendFragment.java
6ecbf90de849842a566a8f89a853933dbbc562d2
[]
no_license
zhengjinzhou/Demo
25fae5fc847f55880f6597726f12a10ca0f1d400
f654fd33fc9722d43d1fe38a668a8e692d7f12e6
refs/heads/master
2021-01-25T13:23:24.515366
2018-03-06T10:21:35
2018-03-06T10:21:35
123,560,399
0
0
null
null
null
null
UTF-8
Java
false
false
487
java
package zhou.com.demo.ui.fragment.send.record; import zhou.com.demo.R; import zhou.com.demo.base.BaseFragment; /** * Created by zhou on 2018/2/28. * 办理记录 */ public class RecordSendFragment extends BaseFragment { @Override public int getLayoutResId() { return R.layout.fragment_record_send; } @Override public void attachView() { } @Override public void initDatas() { } @Override public void configViews() { } }
[ "1457594845@qq.com" ]
1457594845@qq.com
43146851f1eb2e582e343f273786ac0b9121b294
3d76c53efb357fb040fa563c580f6505cd802f1b
/src/ch19/E19_5.java
a17319b78cca7178835e30325e4c692b56177c1a
[]
no_license
powerdawg45/BigJavaEO
9c3c30c01e11cacaa2179dfe2fd6336f86eed7d2
1673604dd02a1c03c66e2a286404f1a0582ca770
refs/heads/master
2022-11-30T23:22:01.177120
2020-08-16T01:11:51
2020-08-16T01:11:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
632
java
package ch19; import java.util.stream.Collectors; import java.util.stream.Stream; /* * E19.5 Write a method * public static <T> String toString(Stream<T> stream, int n) * that turns a Stream<T> into a comma-separated list of its first n elements. */ public class E19_5 { public static <T> String toString(Stream<T> stream, int n){ return stream.limit(n).map(e -> e.toString()).collect(Collectors.joining(",")); } public static void main(String[] args){ Stream<Double> doubles = Stream.of(3.0d, 1.5d, 4.0d, 10.2d, 9.0d); System.out.println(E19_5.toString(doubles, 4)); } }
[ "qiruihu@gmail.com" ]
qiruihu@gmail.com
29b82ebdf9196638bce4f498b0c84251722ee8b6
7dd62def55f1b1ac029aa534336daf209e2d1b01
/src/org/andengine/util/algorithm/path/astar/EuclideanHeuristic.java
8e3a934a42d8cb86d7d11af5a65f29c71807d7c7
[ "Apache-2.0" ]
permissive
heinrisch/AndEngine
fa45d0dc8ef060f1ed30bb0415630c6c58b2b85e
60f9b0af2095cc0a41185c11e344691961d5b09c
refs/heads/GLES2
2021-01-18T00:29:05.175822
2014-06-23T08:39:57
2014-06-23T08:39:57
15,848,439
0
1
Apache-2.0
2021-01-29T06:00:48
2014-01-12T18:56:46
Java
UTF-8
Java
false
false
1,674
java
package org.andengine.util.algorithm.path.astar; import org.andengine.util.algorithm.path.IPathFinderMap; import android.util.FloatMath; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 22:58:01 - 16.08.2010 */ public class EuclideanHeuristic<T> implements IAStarHeuristic<T> { // =========================================================== // Constants // =========================================================== // =========================================================== // Fields // =========================================================== // =========================================================== // Constructors // =========================================================== // =========================================================== // Getter & Setter // =========================================================== // =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== @Override public float getExpectedRestCost(final IPathFinderMap<T> pPathFinderMap, final T pEntity, final int pFromX, final int pFromY, final int pToX, final int pToY) { final float dX = pToX - pFromX; final float dY = pToY - pFromY; return FloatMath.sqrt(dX * dX + dY * dY); } // =========================================================== // Methods // =========================================================== // =========================================================== // Inner and Anonymous Classes // =========================================================== }
[ "ngramlich@zynga.com" ]
ngramlich@zynga.com
5808e72638d838527a4ab3c5369cd00ee398a6ef
9c65284a0069cf6d0e3bf19919fc229fd74789ba
/gt_front_server/src/main/java/com/gt/dao/FuserFaceIDDAO.java
e6190939c5722704371c144f4babb3dcf8b13eed
[]
no_license
moguli/powex
95aa2699b6fbf92aef6ab7b5203864148af29467
56348db54db9456234010e5a20f9f8a09d234c64
refs/heads/master
2022-12-28T03:52:59.442332
2019-09-08T10:04:25
2019-09-08T10:04:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,561
java
package com.gt.dao; import java.util.List; import org.hibernate.Query; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Repository; import com.gt.dao.comm.HibernateDaoSupport; import com.gt.entity.FuserFaceID; @Repository public class FuserFaceIDDAO extends HibernateDaoSupport { private static final Logger log = LoggerFactory.getLogger(FuserFaceIDDAO.class); public void save(FuserFaceID transientInstance) { log.debug("saving FuserFaceID instance"); try { getSession().save(transientInstance); log.debug("save successful"); } catch (RuntimeException re) { log.error("save failed", re); throw re; } } public void attachDirty(FuserFaceID instance) { log.debug("attaching dirty FuserFaceID instance"); try { getSession().saveOrUpdate(instance); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } } public FuserFaceID findByUserId(Integer userId) { log.debug("finding FuserFaceID instance with userId "); try { String queryString = "from FuserFaceID as model where model.userId = ? order by model.id desc"; Query queryObject = getSession().createQuery(queryString); queryObject.setParameter(0, userId); List<FuserFaceID> userFaceIDList = queryObject.list(); if(userFaceIDList != null && userFaceIDList.size() > 0) { return userFaceIDList.get(0); } } catch (RuntimeException re) { log.error("find by property name failed", re); throw re; } return null; } }
[ "185428479@qq.com" ]
185428479@qq.com
6ae79b4e5817ba39b3586a618745100eb7541c16
7a493cb447fa7e415940c092b3203ebdf873a04d
/CloudSchoolBusGradle/app/src/com/Manga/Activity/myChildren/Reports/ReportDetailActivity.java
83c9bdb98bb1f2618e28a6ba625b2626c9d5a274
[ "Apache-2.0" ]
permissive
GuokrSpaceTech/CloudSchoolBusAndroid
255bfc549015faa12263069144c0a911d12761ab
24c0aab45b5c59bb5525c5ad36159e8a5f23808f
refs/heads/master
2021-05-30T06:45:03.802614
2016-01-17T10:34:56
2016-01-17T10:34:56
28,945,730
0
1
null
null
null
null
UTF-8
Java
false
false
3,798
java
package com.Manga.Activity.myChildren.Reports; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ListView; import android.widget.TextView; import com.Manga.Activity.BaseActivity; import com.Manga.Activity.R; import com.umeng.analytics.MobclickAgent; public class ReportDetailActivity extends BaseActivity { private SimpleDateFormat spl = new SimpleDateFormat("yyyy-MM-dd"); private TextView tv_time, tv_name; private ListView listview_content; private static LayoutInflater mInflater; Bundle bundle; SerializableMap detailSerMap; Map detailMap; ExamListAdapter reprotDetailAdapter; List<ContentBean> contentList; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_reprot_detail); mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); tv_time = (TextView) findViewById(R.id.tv_time); tv_name = (TextView) findViewById(R.id.tv_name); listview_content = (ListView) findViewById(R.id.listview_content); Intent intent = this.getIntent(); detailSerMap = (SerializableMap) intent.getSerializableExtra("reportinfo"); detailMap = detailSerMap.getMap(); String reprotTime = (String) detailMap.get("reporttime"); long fooTemp = Long.parseLong(reprotTime) * 1000; reprotTime = spl.format(new Date(fooTemp)); tv_time.setText(reprotTime); tv_name.setText((String) detailMap.get("studentname")); init(); } private void init() { contentList = new ArrayList<ContentBean>(); reprotDetailAdapter = new ExamListAdapter(new ArrayList<ContentBean>()); listview_content.setAdapter(reprotDetailAdapter); try { JSONArray jsonTemp = new JSONArray((String) detailMap.get("content")); for (int i = 0; i < jsonTemp.length(); i++) { ContentBean cb = new ContentBean(); JSONObject temp = jsonTemp.getJSONObject(i); cb.setAnswer(temp.getString("answer")); cb.setTitle(temp.getString("title")); contentList.add(cb); } } catch (JSONException e) { e.printStackTrace(); } if (contentList.size() != 0) { reprotDetailAdapter = new ExamListAdapter(contentList); reprotDetailAdapter.notifyDataSetChanged(); listview_content.setAdapter(reprotDetailAdapter); } } public void cancel(View view) { finish(); } class ExamListAdapter extends BaseAdapter { // 数据源 private List<ContentBean> data; public ExamListAdapter(List<ContentBean> data) { super(); this.data = data; } @Override public int getCount() { return data.size(); } @Override public Object getItem(int position) { return data != null ? data.get(position) : null; } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = mInflater.inflate(R.layout.item_report_detail, null); } TextView a = (TextView) convertView.findViewById(R.id.tv_report_detail_title); TextView b = (TextView) convertView.findViewById(R.id.tv_report_detail_content); a.setText((position + 1) + ". " + data.get(position).getTitle()); b.setText(data.get(position).getAnswer()); return convertView; } } public void onResume() { super.onResume(); MobclickAgent.onResume(this); } public void onPause() { super.onPause(); MobclickAgent.onPause(this); } }
[ "qch1970@gmail.com" ]
qch1970@gmail.com
4c56f62f1d54645c4d5c6ba4a03595d5cb2c9a65
53157a772ff187867681436e2749b1b43304bd6c
/gui/src/main/java/io/github/vocabhunter/gui/model/FilterGridModel.java
c20a6fb2a2f10df6b5a16eb762dfbf9c5ecfbb6f
[ "Apache-2.0" ]
permissive
softwareinspiration/VocabHunter
b51eeed936f1276c6eabc00a8faa786c8621ef7c
04bd046eaa984d21d2d5971b7472825e05951515
refs/heads/master
2022-04-17T15:47:38.481925
2020-04-12T13:34:35
2020-04-12T13:34:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,431
java
/* * Open Source Software published under the Apache Licence, Version 2.0. */ package io.github.vocabhunter.gui.model; import io.github.vocabhunter.analysis.grid.GridLine; import io.github.vocabhunter.analysis.grid.TextGrid; import javafx.beans.binding.Bindings; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.value.ObservableIntegerValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import java.nio.file.Path; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.IntStream; import static java.util.stream.Collectors.toList; public class FilterGridModel extends AbstractFilterModel { public static final Set<Integer> DEFAULT_COLUMNS = Set.of(0); private final ObservableList<GridLine> lines = FXCollections.observableArrayList(); private final SimpleIntegerProperty count = new SimpleIntegerProperty(); private TextGrid grid; private FilterFileMode mode; private final ObservableList<BooleanProperty> columnSelections = FXCollections.observableArrayList(); public FilterGridModel(final Path file, final TextGrid grid, final FilterFileMode mode, final Set<Integer> columns) { super(file); setupValues(grid, mode, columns); bindValues(); } public void replaceContent(final Path file, final TextGrid grid, final FilterFileMode mode, final Set<Integer> columns) { replaceContent(file); setupValues(grid, mode, columns); } private void setupValues(final TextGrid grid, final FilterFileMode mode, final Set<Integer> columns) { this.grid = grid; this.mode = mode; lines.setAll(grid.getLines()); columnSelections.setAll(buildColumnProperties(columns)); count.unbind(); count.bind(Bindings.createIntegerBinding(this::calculateCount, selectionsArray())); } private BooleanProperty[] selectionsArray() { return columnSelections.stream() .toArray(BooleanProperty[]::new); } private List<BooleanProperty> buildColumnProperties(final Set<Integer> columns) { return columnIndexStream() .mapToObj(i -> new SimpleBooleanProperty(columns.contains(i))) .collect(toList()); } @Override public ObservableIntegerValue wordCountProperty() { return count; } private int calculateCount() { return columnIndexStream() .filter(this::isSelectedColumn) .map(i -> grid.getColumns().get(i).getAcceptedCount()) .sum(); } public ObservableList<GridLine> getLines() { return lines; } public FilterFileMode getMode() { return mode; } public ObservableList<BooleanProperty> getColumnSelections() { return columnSelections; } public Set<Integer> getColumns() { return columnIndexStream() .filter(this::isSelectedColumn) .boxed() .collect(Collectors.toSet()); } private boolean isSelectedColumn(final int i) { return columnSelections.get(i).get(); } private IntStream columnIndexStream() { return IntStream.range(0, getColumnCount()); } public int getColumnCount() { return grid.getColumns().size(); } }
[ "AdamCarroll@users.noreply.github.com" ]
AdamCarroll@users.noreply.github.com
bbbb1dc608bd379b2864570dd369e7dd04ec2f63
5038f96a70e40b58a4fd0210af0447e32c855bbf
/src/com/bergerkiller/bukkit/mw/commands/WorldInfo.java
3ffe0c9a3f27709745169301bb21282f7ae59d56
[]
no_license
Fronix/MyWorlds
231e93486234cc5c9ee6014923f96c47ab2ecf5e
4700f24ad820a8cdefaa450f5e2f098836e302f7
refs/heads/master
2021-01-20T21:59:47.055900
2012-11-05T21:56:09
2012-11-05T21:56:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,262
java
package com.bergerkiller.bukkit.mw.commands; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.GameMode; import org.bukkit.World; import com.bergerkiller.bukkit.mw.Permission; import com.bergerkiller.bukkit.mw.WorldConfig; import com.bergerkiller.bukkit.mw.WorldManager; public class WorldInfo extends Command { public WorldInfo() { super(Permission.COMMAND_INFO, "world.info"); } public void execute() { this.genWorldname(0); if (worldname != null) { com.bergerkiller.bukkit.mw.WorldInfo info = WorldManager.getInfo(worldname); if (info == null) { message(ChatColor.RED + "' " + worldname + "' is broken, no information can be shown!"); } else { WorldConfig wc = WorldConfig.get(worldname); message(ChatColor.YELLOW + "Information about the world: " + worldname); message(ChatColor.WHITE + "Internal name: " + ChatColor.YELLOW + info.name); message(ChatColor.WHITE + "Environment: " + ChatColor.YELLOW + wc.worldmode.toString()); if (wc.chunkGeneratorName == null) { message(ChatColor.WHITE + "Chunk generator: " + ChatColor.YELLOW + "Default"); } else { message(ChatColor.WHITE + "Chunk generator: " + ChatColor.YELLOW + wc.chunkGeneratorName); } message(ChatColor.WHITE + "Auto-saving: " + ChatColor.YELLOW + wc.autosave); message(ChatColor.WHITE + "Keep spawn loaded: " + ChatColor.YELLOW + wc.keepSpawnInMemory); message(ChatColor.WHITE + "World seed: " + ChatColor.YELLOW + info.seed); if (info.size > 1000000) { message(ChatColor.WHITE + "World size: " + ChatColor.YELLOW + (info.size / 1000000) + " Megabytes"); } else if (info.size > 1000) { message(ChatColor.WHITE + "World size: " + ChatColor.YELLOW + (info.size / 1000) + " Kilobytes"); } else if (info.size > 1) { message(ChatColor.WHITE + "World size: " + ChatColor.YELLOW + (info.size) + " Bytes"); } else { message(ChatColor.WHITE + "World size: " + ChatColor.YELLOW + "Unknown (calculation is disabled)"); } //PvP if (wc.pvp) { message(ChatColor.WHITE + "PvP: " + ChatColor.GREEN + "Enabled"); } else { message(ChatColor.WHITE + "PvP: " + ChatColor.YELLOW + "Disabled"); } //Difficulty message(ChatColor.WHITE + "Difficulty: " + ChatColor.YELLOW + wc.difficulty.toString().toLowerCase()); //Game mode GameMode mode = wc.gameMode; if (mode == null) { message(ChatColor.WHITE + "Game mode: " + ChatColor.YELLOW + "Not set"); } else { message(ChatColor.WHITE + "Game mode: " + ChatColor.YELLOW + mode.name().toLowerCase()); } //Time String timestr = wc.timeControl.getTime(info.time); message(ChatColor.WHITE + "Time: " + ChatColor.YELLOW + timestr); //Weather if (wc.holdWeather) { if (info.raining) { if (info.thundering) { message(ChatColor.WHITE + "Weather: " + ChatColor.YELLOW + "Endless storm with lightning"); } else { message(ChatColor.WHITE + "Weather: " + ChatColor.YELLOW + "Endless rain and snow"); } } else { message(ChatColor.WHITE + "Weather: " + ChatColor.YELLOW + "No bad weather expected"); } } else { if (info.raining) { if (info.thundering) { message(ChatColor.WHITE + "Weather: " + ChatColor.YELLOW + "Stormy with lightning"); } else { message(ChatColor.WHITE + "Weather: " + ChatColor.YELLOW + "Rain and snow"); } } else { message(ChatColor.WHITE + "Weather: " + ChatColor.YELLOW + "The sky is clear"); } } World w = Bukkit.getServer().getWorld(worldname); if (w != null) { int playercount = w.getPlayers().size(); if (playercount > 0) { String msg = ChatColor.WHITE + "Status: " + ChatColor.GREEN + "Loaded" + ChatColor.WHITE + " with "; msg += playercount + ((playercount <= 1) ? " player" : " players"); message(msg); } else { message(ChatColor.WHITE + "Status: " + ChatColor.YELLOW + "Stand-by"); } } else { message(ChatColor.WHITE + "Status: " + ChatColor.RED + "Unloaded"); } } } else { message(ChatColor.RED + "World not found!"); } } }
[ "bergerkiller@gmail.com" ]
bergerkiller@gmail.com
cf22bd229d4e1b1f19ddba201bcd71fddb2009db
f140118cd3f1b4a79159154087e7896960ca0c88
/mllib/target/java/org/apache/spark/ml/classification/LogisticRegressionModel.java
fd1ad95fa3028d23eaf8b665f551b4fc05359bd1
[]
no_license
loisZ/miaomiaomiao
d45dc779355e2280fe6f505d959b5e5c475f9b9c
6236255e4062d1788d7a212fa49af1849965f22c
refs/heads/master
2021-08-24T09:22:41.648169
2017-12-09T00:56:41
2017-12-09T00:56:41
111,349,685
1
0
null
null
null
null
UTF-8
Java
false
false
1,725
java
package org.apache.spark.ml.classification; /** * :: AlphaComponent :: * Model produced by {@link LogisticRegression}. */ public class LogisticRegressionModel extends org.apache.spark.ml.Model<org.apache.spark.ml.classification.LogisticRegressionModel> implements org.apache.spark.ml.classification.LogisticRegressionParams { public org.apache.spark.ml.classification.LogisticRegression parent () { throw new RuntimeException(); } public org.apache.spark.ml.param.ParamMap fittingParamMap () { throw new RuntimeException(); } // not preceding public LogisticRegressionModel (org.apache.spark.ml.classification.LogisticRegression parent, org.apache.spark.ml.param.ParamMap fittingParamMap, org.apache.spark.mllib.linalg.Vector weights) { throw new RuntimeException(); } public org.apache.spark.ml.classification.LogisticRegressionModel setThreshold (double value) { throw new RuntimeException(); } public org.apache.spark.ml.classification.LogisticRegressionModel setFeaturesCol (java.lang.String value) { throw new RuntimeException(); } public org.apache.spark.ml.classification.LogisticRegressionModel setScoreCol (java.lang.String value) { throw new RuntimeException(); } public org.apache.spark.ml.classification.LogisticRegressionModel setPredictionCol (java.lang.String value) { throw new RuntimeException(); } public org.apache.spark.sql.catalyst.types.StructType transformSchema (org.apache.spark.sql.catalyst.types.StructType schema, org.apache.spark.ml.param.ParamMap paramMap) { throw new RuntimeException(); } public org.apache.spark.sql.SchemaRDD transform (org.apache.spark.sql.SchemaRDD dataset, org.apache.spark.ml.param.ParamMap paramMap) { throw new RuntimeException(); } }
[ "283802073@qq.com" ]
283802073@qq.com
bda1b95f39de4ab0cf4a6cfa7e7a892cb9d22b16
182b7e5ca415043908753d8153c541ee0e34711c
/StreamMeetUp/src/main/java/com/vinay/streammeetup/lambdafunctions/PredicateCompositionExample.java
0ec5befcd3d85cc3375f544bced95aaf7ffe0893
[]
no_license
akamatagi/Java9AndAbove
2b62886441241ef4cd62990243d7b29e895452f7
ff002a2395edf506091b3571a470c15fa0742550
refs/heads/master
2023-02-09T17:38:21.467950
2020-12-30T14:47:59
2020-12-30T14:47:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
671
java
package com.vinay.streammeetup.lambdafunctions; import java.util.Arrays; import java.util.List; import java.util.function.Predicate; public class PredicateCompositionExample { public static void main(String[] args) { List<String> names = Arrays.asList("John", "Smith","Sye", "Samueal", "Catley", "Sie"); Predicate<String> nameStartsWithS = str -> str.startsWith("S"); Predicate<String> nameEndsWithWithE = str -> str.endsWith("e"); names.stream().filter(nameStartsWithS.and(nameEndsWithWithE)).forEach(System.out::println); names.stream().filter(nameStartsWithS.or(nameEndsWithWithE)).forEach(System.out::println); } }
[ "vinayagam.d.ganesh@gmail.com" ]
vinayagam.d.ganesh@gmail.com
b73cb5510fcd45ee89f4780ee3dfc9e1be90b3b4
0ec8c324ed8eca079a650997eb240d2c50b2bbae
/src/main/java/org/assertj/core/error/AssertionErrorCreator.java
16d472f76ec5da38dd41ae89749212e6ae02882e
[ "Apache-2.0" ]
permissive
viclovsky/assertj-core
a3aad0288bb2128beea98b326dd15357b57e1b7f
94307cabbfce604becf260b01dadc6e628b386f6
refs/heads/master
2020-06-13T13:48:33.200825
2019-06-30T21:51:02
2019-06-30T21:51:02
194,675,991
1
0
NOASSERTION
2019-07-01T13:15:54
2019-07-01T13:15:54
null
UTF-8
Java
false
false
5,558
java
/* * 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. * * Copyright 2012-2019 the original author or authors. */ package org.assertj.core.error; import static org.assertj.core.util.Arrays.array; import static org.assertj.core.util.Throwables.describeErrors; import java.util.List; import java.util.Optional; import org.assertj.core.api.SoftAssertionError; import org.assertj.core.description.Description; import org.assertj.core.internal.Failures; import org.assertj.core.util.VisibleForTesting; import org.assertj.core.util.introspection.PropertyOrFieldSupport; // TODO deprecate AssertionErrorFactory public class AssertionErrorCreator { private static final Class<?>[] MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR = array(String.class, Object.class, Object.class); private static final Class<?>[] MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES = array(String.class, List.class); @VisibleForTesting ConstructorInvoker constructorInvoker; public AssertionErrorCreator() { this(new ConstructorInvoker()); } public AssertionErrorCreator(ConstructorInvoker constructorInvoker) { this.constructorInvoker = constructorInvoker; } // single assertion error public AssertionError assertionError(String message, Object actual, Object expected) { return assertionFailedError(message, actual, expected).orElse(assertionError(message)); } private Optional<AssertionError> assertionFailedError(String message, Object actual, Object expected) { try { Object o = constructorInvoker.newInstance("org.opentest4j.AssertionFailedError", MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR, message, expected, actual); if (o instanceof AssertionError) { AssertionError assertionError = (AssertionError) o; return Optional.of(assertionError); } // TODO: single return return Optional.empty(); } catch (Throwable e) { return Optional.empty(); } } private static AssertionError assertionError(String message) { return new AssertionError(message); } // multiple assertions error public AssertionError multipleSoftAssertionsError(List<? extends Throwable> errors) { Optional<AssertionError> multipleFailuresError = tryBuildingMultipleFailuresError(errors); return multipleFailuresError.orElse(new SoftAssertionError(describeErrors(errors))); } public AssertionError multipleAssertionsError(Description description, List<? extends AssertionError> errors) { String heading = headingFrom(description); Optional<AssertionError> multipleFailuresError = tryBuildingMultipleFailuresError(heading, errors); return multipleFailuresError.orElse(new MultipleAssertionsError(description, errors)); } public void tryThrowingMultipleFailuresError(List<? extends Throwable> errorsCollected) { tryBuildingMultipleFailuresError(errorsCollected).ifPresent(AssertionErrorCreator::throwError); } // syntactic sugar private static void throwError(AssertionError error) { throw error; } private static String headingFrom(Description description) { return description == null ? null : DescriptionFormatter.instance().format(description); } private Optional<AssertionError> tryBuildingMultipleFailuresError(List<? extends Throwable> errorsCollected) { return tryBuildingMultipleFailuresError(null, errorsCollected); } private Optional<AssertionError> tryBuildingMultipleFailuresError(String heading, List<? extends Throwable> errorsCollected) { if (errorsCollected.isEmpty()) return Optional.empty(); try { Object[] constructorArguments = array(heading, errorsCollected); Object multipleFailuresError = constructorInvoker.newInstance("org.opentest4j.MultipleFailuresError", MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES, constructorArguments); if (multipleFailuresError instanceof AssertionError) { // means that we were able to build a MultipleFailuresError List<Throwable> failures = extractFailuresOf(multipleFailuresError); // we switch to AssertJMultipleFailuresError in order to control the formatting of the error message. AssertionError assertionError = new AssertJMultipleFailuresError(heading, failures); Failures.instance().removeAssertJRelatedElementsFromStackTraceIfNeeded(assertionError); return Optional.of(assertionError); } } catch (Exception e) { // do nothing, MultipleFailuresError was not in the classpath } return Optional.empty(); } private static List<Throwable> extractFailuresOf(Object multipleFailuresError) { return (List<Throwable>) PropertyOrFieldSupport.EXTRACTION.getValueOf("failures", multipleFailuresError); } }
[ "joel.costigliola@gmail.com" ]
joel.costigliola@gmail.com
739104a9e706785ea2de971c4f33ddfa5549547e
5be2a68d3f6e5cc49b5fce7ed361ffd127498d5a
/panda-framework/src/main/java/org/panda_lang/framework/language/architecture/type/TypeInstance.java
4161c1783ab826e4fda20518ca070907b8b0e76c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jofrantoba/panda
51c4a92403a9352987abf94ca0ad0957fcdc6352
b31547c8441406922714d629f2283a3d9d322872
refs/heads/master
2022-11-14T16:41:14.643470
2020-07-07T23:00:44
2020-07-07T23:00:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,018
java
/* * Copyright (c) 2020 Dzikoysk * * 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.panda_lang.framework.language.architecture.type; import org.panda_lang.framework.design.architecture.dynamic.Frame; import org.panda_lang.framework.design.architecture.dynamic.Frameable; public interface TypeInstance extends Frameable { @SuppressWarnings("unused") TypeFrame __panda__get_frame(); @Override default Frame __panda__to_frame() { return __panda__get_frame(); } }
[ "dzikoysk@dzikoysk.net" ]
dzikoysk@dzikoysk.net
86e9978124db166cb3024a79dbe2a70d4e34621c
3955f3bc4b1e9c41ffabb34fcdbfbfb3a8b2f77c
/bizcore/WEB-INF/youbenben_core_src/com/youbenben/youbenben/quicklink/QuickLinkManagerException.java
28effb71a26b166f0eaa8761997fd9cf5ee06759
[]
no_license
1342190832/youbenben
c9ba34117b30988419d4d053a35960f35cd2c3f0
f68fb29f17ff4f74b0de071fe11bc9fb10fd8744
refs/heads/master
2022-04-25T10:17:48.674515
2020-04-25T14:22:40
2020-04-25T14:22:40
258,133,780
0
0
null
null
null
null
UTF-8
Java
false
false
573
java
package com.youbenben.youbenben.quicklink; //import com.youbenben.youbenben.EntityNotFoundException; import com.youbenben.youbenben.YoubenbenException; import com.youbenben.youbenben.Message; import java.util.List; public class QuickLinkManagerException extends YoubenbenException { private static final long serialVersionUID = 1L; public QuickLinkManagerException(String string) { super(string); } public QuickLinkManagerException(Message message) { super(message); } public QuickLinkManagerException(List<Message> messageList) { super(messageList); } }
[ "1342190832@qq.com" ]
1342190832@qq.com
2e4319faf8183a154c074e13286b374b7cf5883f
e5a3b0a88097e40b844000fb06e8fac3c8da453e
/src/main/java/org/neo4j/ogm/benchmark/entityscan/entities/SimpleEntity702.java
8863eedcf374f99fbebe9e905bd4d6bd5533fd17
[]
no_license
nmervaillie/neo4j-ogm-jmh-performance-benchmark
473fba908aec8df71b397b65170f15ee2189210b
d85281080e0495143da4f3bd98199ff40f094612
refs/heads/master
2020-12-30T14:44:23.214665
2017-10-06T07:50:15
2017-10-06T07:50:15
91,077,827
0
1
null
2017-10-06T07:50:16
2017-05-12T09:59:17
Java
UTF-8
Java
false
false
940
java
package org.neo4j.ogm.benchmark.entityscan.entities; import java.util.List; import org.neo4j.ogm.annotation.NodeEntity; import org.neo4j.ogm.annotation.Relationship; /** * Template for single entity * * Run src/main/resouces.copy.sh to create copies in sources directory. * * @author Frantisek Hartman */ @NodeEntity public class SimpleEntity702 { Long id; String name; @Relationship(type = "REL") List<SimpleEntity702> entities; public SimpleEntity702() { } public SimpleEntity702(String name) { this.name = name; } public Long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List<SimpleEntity702> getEntities() { return entities; } public void setEntities(List<SimpleEntity702> entities) { this.entities = entities; } }
[ "frant.hartm@gmail.com" ]
frant.hartm@gmail.com
cb4b68e452b973f0d06e61a38423ea362b73b3db
3f9ca534451e8c37af060b60e0f9738cb2001b59
/openapi-generator-for-spring-api/src/main/java/de/qaware/openapigeneratorforspring/common/reference/HasReferencedItemConsumer.java
49ad505483db0c02373b7c7e9cff05cafe7986d7
[ "Apache-2.0" ]
permissive
norberto-enomoto/openapi-generator-for-spring
69538e712c1f220ccb0993a8223f0666c58daa95
70562323ddb26dd0d2acf0077f5ddda47e636277
refs/heads/master
2023-02-09T21:31:58.532958
2021-01-12T16:49:02
2021-01-12T16:50:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,332
java
/*- * #%L * OpenAPI Generator for Spring Boot :: API * %% * Copyright (C) 2020 QAware GmbH * %% * 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. * #L% */ package de.qaware.openapigeneratorforspring.common.reference; /** * Trait for providing a {@link ReferencedItemConsumer} * of specific sub-type. Typically implemented by using * a {@link ReferencedItemConsumerSupplier} instance. */ public interface HasReferencedItemConsumer { /** * Get the specific referenced item consumer. * * @param referencedItemConsumerClazz type of the consumer * @param <C> consumer type, extends {@link ReferencedItemConsumer}. * @return referenced item consumer */ <C extends ReferencedItemConsumer> C getReferencedItemConsumer(Class<C> referencedItemConsumerClazz); }
[ "andreas.grub@qaware.de" ]
andreas.grub@qaware.de
8d1a1fc7209809912dbc2842140d576cf57021ef
da1215c7471b787bc0599ebeadc538d58cc03748
/src/main/java/cn/itcast/utils/HibernateUtils.java
34b7d924c4afb52746791a804d65bca29a3e2975
[]
no_license
hufanglei/hibernateDemo
7f5aa4d3834d7f0c802ac4c11eb0ffc85fc4edf1
4fb6ee52d62d932a71e17ed2dc765345a745f201
refs/heads/master
2021-05-09T04:18:01.901886
2018-01-28T15:09:35
2018-01-28T15:09:35
119,268,985
0
0
null
null
null
null
UTF-8
Java
false
false
358
java
package cn.itcast.utils; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { public static SessionFactory sf; static { sf = new Configuration().buildSessionFactory(); } public static Session getSession(){ return sf.openSession(); } }
[ "690328661@qq.com" ]
690328661@qq.com
1840acd207d6e23b6049cb7f1fa3f74c78126e75
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/java/baiduads-sdk-auto/src/main/java/com/baidu/dev2/api/sdk/searchfeed/model/GetMediasRequestWrapper.java
5c0bd8c11b4a8162005eb20af693edd2e7831680
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Java
false
false
3,764
java
/* * dev2 api schema * 'dev2.baidu.com' api schema * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.baidu.dev2.api.sdk.searchfeed.model; import java.util.Objects; import java.util.Arrays; import com.baidu.dev2.api.sdk.searchfeed.model.SearchMediaFeedRequest; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * GetMediasRequestWrapper */ @JsonPropertyOrder({ GetMediasRequestWrapper.JSON_PROPERTY_HEADER, GetMediasRequestWrapper.JSON_PROPERTY_BODY }) @JsonTypeName("GetMediasRequestWrapper") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GetMediasRequestWrapper { public static final String JSON_PROPERTY_HEADER = "header"; private com.baidu.dev2.api.sdk.common.ApiRequestHeader header; public static final String JSON_PROPERTY_BODY = "body"; private SearchMediaFeedRequest body; public GetMediasRequestWrapper() { } public GetMediasRequestWrapper header(com.baidu.dev2.api.sdk.common.ApiRequestHeader header) { this.header = header; return this; } /** * Get header * @return header **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public com.baidu.dev2.api.sdk.common.ApiRequestHeader getHeader() { return header; } @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeader(com.baidu.dev2.api.sdk.common.ApiRequestHeader header) { this.header = header; } public GetMediasRequestWrapper body(SearchMediaFeedRequest body) { this.body = body; return this; } /** * Get body * @return body **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_BODY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SearchMediaFeedRequest getBody() { return body; } @JsonProperty(JSON_PROPERTY_BODY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBody(SearchMediaFeedRequest body) { this.body = body; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetMediasRequestWrapper getMediasRequestWrapper = (GetMediasRequestWrapper) o; return Objects.equals(this.header, getMediasRequestWrapper.header) && Objects.equals(this.body, getMediasRequestWrapper.body); } @Override public int hashCode() { return Objects.hash(header, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetMediasRequestWrapper {\n"); sb.append(" header: ").append(toIndentedString(header)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "jiangyuan04@baidu.com" ]
jiangyuan04@baidu.com
4d4bd47889f50450285b2956a42f03dd9bdffdf9
10df45931db3b40cc39f7f4d890582e1dabcf067
/src/main/java/com/starlix/service/id3/GetAuthenticationsResponse.java
59a65d77e877244afd393b1fbc56fc13f1851256
[]
no_license
duyvu5/id3global-sample
0785ba46a881f14b1a68c58a660e9bba81f4b4f5
c12f2a602a9a2028e2ba730e194a042f17122915
refs/heads/main
2023-07-02T09:18:20.067442
2021-07-27T09:10:19
2021-07-27T09:10:19
389,917,845
0
0
null
null
null
null
UTF-8
Java
false
false
2,065
java
package com.starlix.service.id3; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElementRef; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; /** * <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 name="GetAuthenticationsResult" type="{http://www.id3global.com/ID3gWS/2013/04}GlobalAuthentications" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "getAuthenticationsResult" }) @XmlRootElement(name = "GetAuthenticationsResponse") public class GetAuthenticationsResponse { @XmlElementRef(name = "GetAuthenticationsResult", namespace = "http://www.id3global.com/ID3gWS/2013/04", type = JAXBElement.class, required = false) protected JAXBElement<GlobalAuthentications> getAuthenticationsResult; /** * Gets the value of the getAuthenticationsResult property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link GlobalAuthentications }{@code >} * */ public JAXBElement<GlobalAuthentications> getGetAuthenticationsResult() { return getAuthenticationsResult; } /** * Sets the value of the getAuthenticationsResult property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link GlobalAuthentications }{@code >} * */ public void setGetAuthenticationsResult(JAXBElement<GlobalAuthentications> value) { this.getAuthenticationsResult = value; } }
[ "duy.vu@vacuumlabs.com" ]
duy.vu@vacuumlabs.com
d7ce564931fcf678a38e1781d85d5f4aed925c3f
e833f8efdf7a3afe7c629de79f8ce9f19f59fa54
/app/src/main/java/com/flayvr/receivers/GDNotificaionReceiver.java
6007f4fc995235c01c69e886a93efa5414334ff5
[]
no_license
Happyandhappy/Flayvrdoctor-Android
b620365386d7469c3cb4d797f63a2331ee8a6058
09ce61fc4baa4f51b5bdafadb14c261f99a6cda5
refs/heads/master
2021-03-27T20:13:24.441916
2017-09-29T15:11:02
2017-09-29T15:11:02
105,281,807
0
0
null
null
null
null
UTF-8
Java
false
false
3,556
java
package com.flayvr.receivers; import android.content.*; import android.util.Log; import com.flayvr.myrollshared.managers.UserManager; import com.flayvr.screens.dashboard.GalleryDoctorDashboardActivity; import com.flayvr.screens.settings.SettingsFragment; import com.parse.*; import java.util.Date; import org.json.JSONException; import org.json.JSONObject; public class GDNotificaionReceiver extends ParsePushBroadcastReceiver { private static final String NOTIFICATION_TYPE_KEY = "type"; public static final String SILENT_PUSH = "silent"; private static final String TAG = GDNotificaionReceiver.class.getSimpleName(); public static final String UPDATE_PUSH = "update"; public GDNotificaionReceiver() { } private void handleSilentNotification(JSONObject jsonobject) { try { Object obj = jsonobject.get("server_time"); ParseInstallation parseinstallation = ParseInstallation.getCurrentInstallation(); parseinstallation.put("last_keep_alive_server", obj); parseinstallation.put("last_keep_alive_client", new Date()); parseinstallation.saveInBackground(); ParseObject parseobject = new ParseObject("KeepAlive"); parseobject.put("user_id", UserManager.getInstance().getUserId()); parseobject.put("server_time", obj); parseobject.put("device_time", new Date()); parseobject.saveInBackground(); } catch(JSONException jsonexception) { Log.w(TAG, jsonexception.getMessage(), jsonexception); } } public void onPushOpen(Context context, Intent intent) { try { if(intent.hasExtra("type") && "update".equals(intent.getStringExtra("type"))) { Intent intent2 = new Intent("android.intent.action.VIEW", SettingsFragment.getAppLink(context)); intent2.setFlags(0x10000000); context.startActivity(intent2); } else { Intent intent1 = new Intent(context, GalleryDoctorDashboardActivity.class); intent1.putExtras(intent.getExtras()); intent1.setFlags(0x10000000); context.startActivity(intent1); } } catch(ActivityNotFoundException activitynotfoundexception) { } } public void onReceive(Context context, Intent intent) { JSONObject jsonobject; boolean flag; String s; Log.i(TAG, (new StringBuilder()).append("Received notification: ").append(intent.toString()).toString()); if(!intent.hasExtra("com.parse.Data")) { super.onReceive(context, intent); return; } try { jsonobject = new JSONObject(intent.getStringExtra("com.parse.Data")); Log.i(TAG, (new StringBuilder()).append("data: ").append(jsonobject).toString()); flag = jsonobject.has("type"); s = null; if(flag) s = jsonobject.getString("type"); if("silent".equals(s)) { handleSilentNotification(jsonobject); return; } if("update".equals(s)) { intent.putExtra("type", "update"); } super.onReceive(context, intent); } catch(JSONException jsonexception) { Log.w(TAG, jsonexception.getMessage(), jsonexception); } } }
[ "greyfrapps@gmail.com" ]
greyfrapps@gmail.com
5a2b5ce0ba4bfb1d0c9d1556ba4a70d5b5374747
b7965ce1378bb170164e2e7c8caa92936f3c9b32
/hikaricp-multi/src/main/java/com/ryan/hikaricpmulti/HikaricpMultiApplication.java
a0833d3d6ff85256ea78fb880c3c0930361d6d3f
[]
no_license
Raofy/connection-pool
d855dabecb60837cacf28ff0e5fb5da1255ffe83
de33df20a83e4f4b4d26a785de9c1d446b3feae0
refs/heads/master
2022-12-21T10:34:38.945661
2020-09-22T15:48:31
2020-09-22T15:48:31
297,627,133
0
0
null
null
null
null
UTF-8
Java
false
false
341
java
package com.ryan.hikaricpmulti; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class HikaricpMultiApplication { public static void main(String[] args) { SpringApplication.run(HikaricpMultiApplication.class, args); } }
[ "1312170600@qq.com" ]
1312170600@qq.com
e95e1d80ae0eac48f63ecbe105054de089241cc6
da93bacb0db69ff3c55c0c60351833e9b60cf6b7
/application/src/main/java/ir/kmozafari/general/web/controller/model/ReturnObject.java
090a9cf1072a0984c77f97e02ecc4cef7ec5caf2
[]
no_license
kmozafari/general
020511d3770f47d14e39748370dd54e5c82e0b4b
02a0cc9387f9b9c1ea4d0d1f355ad51c4466a659
refs/heads/master
2021-01-17T16:40:28.345570
2016-10-04T22:35:18
2016-10-04T22:35:18
65,681,952
0
0
null
null
null
null
UTF-8
Java
false
false
686
java
package ir.kmozafari.general.web.controller.model; /** * Created by k.mozafari on 08/17/2016. */ public class ReturnObject { private boolean success; private Object data; public ReturnObject(Object data) { this.success = true; this.data = data; } public ReturnObject(boolean success, Object data) { this.success = success; this.data = data; } public boolean isSuccess() { return success; } public void setSuccess(boolean success) { this.success = success; } public Object getData() { return data; } public void setData(Object data) { this.data = data; } }
[ "you@example.com" ]
you@example.com
3e4c142075bd484b304bc90b80dc23182d2ec29a
9814174ccd741a4bed469dc3f1bdc70b16956a21
/app/src/main/java/com/android/customer/music/view/MainView.java
92cba0de52d94f4f49ce82111a82dc49be87680b
[]
no_license
gyadministrator/SoloMusic
67e55cdaae27d842eacc003207b5eb3cf652456a
04040dec5e487b47bc1153724cd5e739391506cb
refs/heads/master
2020-09-26T14:36:25.856814
2020-01-21T03:38:05
2020-01-21T03:38:05
226,273,433
0
0
null
null
null
null
UTF-8
Java
false
false
281
java
package com.android.customer.music.view; import com.android.customer.music.model.RecommendMusicModel; /** * Description: CustomerMusic * Created by gy(1984629668@qq.com) * Created Time on 2019/11/2 18:38 */ public interface MainView extends BaseView<RecommendMusicModel> { }
[ "1562211757@qq.com" ]
1562211757@qq.com
c86b3ae59519a1c9b649e72c103b53b243382f7b
ce426f9c027b80c01624e7322b39a0dab4a52e7a
/src/compiler/tac/IREmitter.java
74ec1609e93d30afbdcfcd29cb4aff353cf01bba
[]
no_license
widdakay/Kitteh2
32f638810db3aa4ee7aa9135e19fa14a6e5f6fea
14261418769fef49a331abf9ca1a993f4bd0d5a2
refs/heads/master
2020-06-12T15:49:00.935509
2017-01-07T06:14:58
2017-01-07T06:14:58
75,797,291
0
0
null
2016-12-07T03:52:38
2016-12-07T03:52:37
null
UTF-8
Java
false
false
2,400
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 compiler.tac; import compiler.Context; import java.util.ArrayList; /** * A growing list of TAC statements, with extra information like the * currentContext, and the destination of break and continue statements * * @author leijurv */ public class IREmitter {//extends ArrayList XDDD private final ArrayList<TACStatement> result; private Context currentContext; private Integer breakTo; private Integer continueTo; public IREmitter() { this.result = new ArrayList<>(); this.currentContext = null; this.breakTo = null; this.continueTo = null; } public boolean canBreak() { return breakTo != null; } public boolean canContinue() { return continueTo != null; } public int breakTo() {//Don't change this to return an Integer. I want the nullpointerexception if canBreak / canContinue aren't checked first. return breakTo; } public int continueTo() { return continueTo; } public void setBreak(int i) { breakTo = i; } public void setContinue(int i) { continueTo = i; } public void clearBreakContinue() { breakTo = null; continueTo = null; } public void updateContext(Context context) { this.currentContext = context; } public void clearContext() { this.currentContext = null; } public void emit(TACStatement ts) { if (currentContext == null) { throw new IllegalStateException("The FitnessGram pacer test is a multistage aerobic capacity test"); } ts.setContext(currentContext); result.add(ts); } public int lineNumberOfNextStatement() { return result.size(); } public int mostRecentLineNumber() { return result.size() - 1; } public ArrayList<TACStatement> getResult() { if (currentContext != null) { throw new IllegalStateException("YOU CAN NEVER ESCAPE THE FITNESSGRAM"); } if (!(result.get(result.size() - 1) instanceof TACReturn)) { throw new RuntimeException("return should have been added in command define function"); } return result; } }
[ "leijurv@gmail.com" ]
leijurv@gmail.com
29f6a9ea5d1d35701c893ecbf6f53a23ceee43a9
537b3a622f307ff8f5d32c92e02c0ffca721b1be
/mystudy/HeadFirst/src/main/java/design/patterns/command/undo/CeilingFanLowCommand.java
ed55b588e26987af9e9b61321b842ecef5d5ce83
[]
no_license
hotinh/mygit
b01cb92efcd6e037acf897db6ed73bba01ad5a0a
54d6a8c5ed8f66afbb97baf482dcbc6982d91b9b
refs/heads/master
2021-07-12T03:05:57.519248
2019-01-26T13:41:43
2019-01-26T13:41:43
104,535,060
0
0
null
null
null
null
UTF-8
Java
false
false
607
java
package design.patterns.command.undo; public class CeilingFanLowCommand implements Command { CeilingFan ceilingFan; int prevSpeed; public CeilingFanLowCommand(CeilingFan ceilingFan) { this.ceilingFan = ceilingFan; } public void execute() { prevSpeed = ceilingFan.getSpeed(); ceilingFan.low(); } public void undo() { if (prevSpeed == CeilingFan.HIGH) { ceilingFan.high(); } else if (prevSpeed == CeilingFan.MEDIUM) { ceilingFan.medium(); } else if (prevSpeed == CeilingFan.LOW) { ceilingFan.low(); } else if (prevSpeed == CeilingFan.OFF) { ceilingFan.off(); } } }
[ "chenw0571@outlook.com" ]
chenw0571@outlook.com
84c3c08b82b5a4682c3bba2ea4873e3fa6a54d14
c5952387041849db5b9563912f8e5b715f6bc589
/app/src/main/java/manager/love/i/hmmanager/ui/custom/dialog/MySelfPayDialog.java
9ef6097c412f0a99d228171988a3dff442685613
[]
no_license
wodejiusannian/HMManager
4b19ad845d8dddf4ed6a0a60fc5fe2ddc86f43b6
facc5962f34113134373aa84ed7182dac485b36a
refs/heads/master
2019-07-14T05:18:15.540507
2018-05-31T08:12:48
2018-05-31T08:12:48
95,539,046
0
0
null
null
null
null
UTF-8
Java
false
false
3,468
java
package manager.love.i.hmmanager.ui.custom.dialog; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.support.annotation.IdRes; import android.view.View; import android.widget.Button; import android.widget.RadioGroup; import android.widget.TextView; import manager.love.i.hmmanager.R; /** * Created by 小五 on 2016/12/26. */ public class MySelfPayDialog extends Dialog { private Button mButtonNo, mButtonYes; private String mNo, mYes, mTitle; private OnNoClickListener mNoListener; private OnYesClickListener mYesListener; private TextView mTextViewTitle; private String isALiOrWeChat = "2"; private RadioGroup mRg; public void setOnNoListener(String no, OnNoClickListener noListener) { if (no != null) { mNo = no; } mNoListener = noListener; } public void setOnYesListener(String yes, OnYesClickListener yesListener) { if (yes != null) { mYes = yes; } mYesListener = yesListener; } public void setTitle(String title) { if (title != null) { mTitle = title; } } public MySelfPayDialog(Context context) { super(context, R.style.MySelfDialog); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pay_self_dialog); setCanceledOnTouchOutside(false); initView(); initData(); setListener(); } private void initView() { mButtonNo = (Button) findViewById(R.id.my_self_no); mButtonYes = (Button) findViewById(R.id.my_self_yes); mTextViewTitle = (TextView) findViewById(R.id.my_self_title); mRg = (RadioGroup) findViewById(R.id.rg_pay); } private void initData() { if (mTitle != null) { mTextViewTitle.setText(mTitle); } if (mNo != null) { mButtonNo.setText(mNo); } if (mYes != null) { mButtonYes.setText(mYes); } } private void setListener() { mButtonNo.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (mNoListener != null) { mNoListener.onClick(); } dismiss(); } }); mButtonYes.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (mYesListener != null) { mYesListener.onClick(isALiOrWeChat); } dismiss(); } }); mRg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) { switch (checkedId) { case R.id.rb_main_wechat: isALiOrWeChat = "2"; break; case R.id.rb_main_alipay: isALiOrWeChat = "1"; break; default: break; } } }); } public interface OnNoClickListener { void onClick(); } public interface OnYesClickListener { void onClick(String tag); } }
[ "752443668@qq.com" ]
752443668@qq.com
0326cc5a83ee49f9ee219a56e9f3d1c3db59bc9a
cf729a7079373dc301d83d6b15e2451c1f105a77
/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201509/o/IdeaTextFilterSearchParameter.java
2510c04fd579f20f582a96650961a3e095464c31
[]
no_license
cvsogor/Google-AdWords
044a5627835b92c6535f807ea1eba60c398e5c38
fe7bfa2ff3104c77757a13b93c1a22f46e98337a
refs/heads/master
2023-03-23T05:49:33.827251
2021-03-17T14:35:13
2021-03-17T14:35:13
348,719,387
0
0
null
null
null
null
UTF-8
Java
false
false
3,618
java
package com.google.api.ads.adwords.jaxws.v201509.o; 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.XmlType; /** * * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that * specifies a collection of strings by which the results should be * constrained. This guarantees that each idea in the result will match * at least one of the {@code included} values. * * For this {@link SearchParameter}, excluded items will always take * priority over included ones. * * This can handle a maximum of 200 (included + excluded) elements. * <p>This element is supported by following {@link IdeaType}s: KEYWORD. * <p>This element is supported by following {@link RequestType}s: IDEAS, STATS. * * * <p>Java class for IdeaTextFilterSearchParameter complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="IdeaTextFilterSearchParameter"> * &lt;complexContent> * &lt;extension base="{https://adwords.google.com/api/adwords/o/v201509}SearchParameter"> * &lt;sequence> * &lt;element name="included" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="excluded" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "IdeaTextFilterSearchParameter", propOrder = { "included", "excluded" }) public class IdeaTextFilterSearchParameter extends SearchParameter { protected List<String> included; protected List<String> excluded; /** * Gets the value of the included 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 included property. * * <p> * For example, to add a new item, do as follows: * <pre> * getIncluded().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getIncluded() { if (included == null) { included = new ArrayList<String>(); } return this.included; } /** * Gets the value of the excluded 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 excluded property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExcluded().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getExcluded() { if (excluded == null) { excluded = new ArrayList<String>(); } return this.excluded; } }
[ "vacuum13@gmail.com" ]
vacuum13@gmail.com
6f6937ef85329c4eefeeba994a64a04bceb60c22
d38e1d1b9f6d6e4bfcc23328a3d364cedcd3f2ae
/demo2/app/src/main/java/com/example/demo/HomeFragment.java
e155bd5dc6734ea26bc4d99eb4a61794fe2783ed
[]
no_license
nguyenkiemhieu1/demotest
f444d428d855a75de87b33f539b15456d275dd05
8032e2ff8800f7d57cb105597659a51d3602366a
refs/heads/master
2022-10-02T00:21:08.434790
2020-06-05T02:42:24
2020-06-05T02:42:24
269,514,159
0
0
null
null
null
null
UTF-8
Java
false
false
549
java
package com.example.demo; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; public class HomeFragment extends Fragment { @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_home, container, false); } }
[ "hieunguyen18021999@gmail.com" ]
hieunguyen18021999@gmail.com
6b43220b8f1c7022a609e06b5395481c74fc7c28
992905f13b869d6f9d9e09767d0f2ef3aa46dbf7
/source/core/src/main/java/org/pcsoft/framework/jnode3d/camera/PerspectiveLookAtCamera.java
9035a73ba0084d35431662e49d0b86f123e11952
[ "Apache-2.0" ]
permissive
KleinerHacker/JNode3D
78baa3cdac5a318439bf1e40756b05cb6c3008cc
2abc0ca46a1534d99f775a7ae9b6119aca072ba2
refs/heads/master
2020-03-07T05:00:47.214301
2018-04-19T19:49:48
2018-04-19T19:49:48
127,283,047
1
0
null
null
null
null
UTF-8
Java
false
false
1,261
java
package org.pcsoft.framework.jnode3d.camera; import org.joml.Matrix4f; import org.joml.Vector3f; import org.pcsoft.framework.jnode3d.ogl.OpenGL; public final class PerspectiveLookAtCamera extends PerspectiveCamera { private Vector3f lookAt = new Vector3f(); private Vector3f upDirection = new Vector3f(0f, 1f, 0f); public Vector3f getLookAt() { return lookAt; } public void setLookAt(Vector3f lookAt) { this.lookAt = lookAt; } public void setLookAt(float x, float y, float z) { setLookAt(new Vector3f(x, y, z)); } public Vector3f getUpDirection() { return upDirection; } public void setUpDirection(Vector3f upDirection) { this.upDirection = upDirection; } public void setUpDirection(float x, float y, float z) { setUpDirection(new Vector3f(x, y, z)); } @Override protected void applyTransformation(OpenGL OGL, int width, int height) { super.applyTransformation(OGL, width, height); Matrix4f matrix4f = new Matrix4f(); matrix4f.perspective((float) Math.toRadians(getAngle()), getAspect(), getNear(), getFar()); matrix4f.lookAt(getPosition(), lookAt, upDirection); OGL.glLoadMatrix(matrix4f); } }
[ "Christoph.Pfeiffer.Berlin@freenet.de" ]
Christoph.Pfeiffer.Berlin@freenet.de
3ddb51ad8fa7af29aee8b353c516b416dec015fd
e53daa94a988135b8b1379c2a1e19e25bb045091
/cp_movie/app/src/main/java/com/uyt/ying/yuan/uuuu/iuymn/mkjnb/eventBusModel/AppUpdateModel.java
fa17802b4818aec38d48a2c59b0980409aea2b70
[]
no_license
2020xiaotu/trunk
f90c9bf15c9000a1bb18c7c0a3c0a96d4daf8e68
ba19836c64828c2994e1f0db22fb5d26b4a014f5
refs/heads/master
2023-08-27T08:10:41.709940
2021-10-05T06:27:12
2021-10-05T06:27:12
413,684,673
0
0
null
null
null
null
UTF-8
Java
false
false
1,363
java
package com.uyt.ying.yuan.uuuu.iuymn.mkjnb.eventBusModel; public class AppUpdateModel { boolean isUpdate; private boolean isForceUpdate; private int uiTypeValue; private int sourceTypeVaule; private boolean isCheckFileMD5; private boolean isAutoUpdateBackground; public boolean isAutoUpdateBackground() { return isAutoUpdateBackground; } public void setAutoUpdateBackground(boolean autoUpdateBackground) { isAutoUpdateBackground = autoUpdateBackground; } public boolean isCheckFileMD5() { return isCheckFileMD5; } public void setCheckFileMD5(boolean checkFileMD5) { isCheckFileMD5 = checkFileMD5; } public int getUiTypeValue() { return uiTypeValue; } public void setUiTypeValue(int uiTypeValue) { this.uiTypeValue = uiTypeValue; } public boolean isForceUpdate() { return isForceUpdate; } public void setForceUpdate(boolean forceUpdate) { isForceUpdate = forceUpdate; } public int getSourceTypeVaule() { return sourceTypeVaule; } public void setSourceTypeVaule(int sourceTypeVaule) { this.sourceTypeVaule = sourceTypeVaule; } public boolean isUpdate() { return isUpdate; } public void setUpdate(boolean update) { isUpdate = update; } }
[ "xiaotu20201016@gmail.com" ]
xiaotu20201016@gmail.com
df8457792ba64a961fc8353168b363e0ba21e2be
b21956ea72a6fd6615d67709b2c82e121d8c1668
/qmx-app-admin/src/main/java/com/qmx/admin/remoteapi/hotel/HotelProductRemoteService.java
8ed7b503011e33c1c31d06b718b7be289c0ca04a
[]
no_license
qq296326738/NewSB
71bacbb83883b01c2f2413c1671564a54493ad49
bd8d00a8da7719dd5a21675678774da995f26dad
refs/heads/master
2020-03-27T23:03:01.608764
2018-09-04T04:06:58
2018-09-04T04:06:58
147,284,843
0
1
null
null
null
null
UTF-8
Java
false
false
345
java
package com.qmx.admin.remoteapi.hotel; import com.qmx.hotel.api.facade.IHotelProductServiceFacade; import org.springframework.cloud.netflix.feign.FeignClient; /** * Created by earnest on 2017/10/13 0013. */ @FeignClient("${com.qmx.eureka.hotelservice.name}") public interface HotelProductRemoteService extends IHotelProductServiceFacade { }
[ "296326738@qq.com" ]
296326738@qq.com
f4a254b30cd365395b6431e4bab79422ace240c3
49e154b216269517be7c1c5f39037345409bec11
/Lecture-14/src/com/codingblocks/Main.java
dba8e4298c53ca78fd8e1110395e0fd59a1bfd00
[ "Apache-2.0" ]
permissive
samikshaw4/Crux-Noida-2018-Aug-Evening
11191cd8203183e8f7335c15af9c182a87e0c5b9
a392bb80bf59ecc2b218b4f1c00b00d40246a484
refs/heads/master
2020-04-03T05:09:40.873512
2018-10-27T08:48:30
2018-10-27T08:48:30
155,036,646
1
0
Apache-2.0
2018-10-28T04:54:48
2018-10-28T04:54:48
null
UTF-8
Java
false
false
753
java
package com.codingblocks; public class Main { public static void main(String[] args) { LinkedList list = new LinkedList(); list.insertLast("Amit"); list.insertLast("Bhanu"); list.insertLast("Girja"); list.insertLast("Shubham"); LinkedList list2 = new LinkedList(); list2.insertLast("Anuj"); list2.insertLast("Chacha"); list2.insertLast("Happy"); list2.insertLast("Manoj"); // list.duplicates(); LinkedList m = LinkedList.merge(list, list2); m.display(); // list.insertFirst("Mohini"); // list.insertFirst("Mohit"); // // list.display(); // // list.insertLast("Shobhit"); // // list.display(); } }
[ "anujgargcse@gmail.com" ]
anujgargcse@gmail.com
386577fa77ed82efc62527c07d78c0d353702764
f39e0f1b7aac526a7ce2f13e1f78a48d988f5d94
/core/src/com/crashinvaders/texturepackergui/events/ProjectPropertyChangedEvent.java
2a11d263d71815aa59b5e079b840afc72bc71707
[ "Apache-2.0" ]
permissive
devjn/gdx-texture-packer-gui
d15a44ae117468e75e70a7ddaefaf15ae2570fe0
ed3ef6a2bbe761d33bda131d303a3638a3e57c15
refs/heads/master
2021-01-23T02:09:59.201964
2017-03-18T05:30:41
2017-03-18T05:30:41
85,969,161
0
0
null
2017-03-23T15:58:26
2017-03-23T15:58:26
null
UTF-8
Java
false
false
663
java
package com.crashinvaders.texturepackergui.events; import com.crashinvaders.texturepackergui.services.model.ProjectModel; public class ProjectPropertyChangedEvent { private final ProjectModel project; private final Property property; public ProjectPropertyChangedEvent(ProjectModel project, Property property) { this.project = project; this.property = property; } public ProjectModel getProject() { return project; } public Property getProperty() { return property; } public enum Property { SELECTED_PACK, PACKS, PNG_COMPRESSION, PREVIEW_BG_COLOR, } }
[ "metaphore@bk.ru" ]
metaphore@bk.ru
cbdedd4f66fcfec0ab83faae2fa12f037757eaf0
e79745ad4853f544c645453e3a3018546788ad4a
/cs356/java-oop-reivew/src/edu/csupomona/cs356/ClassParent.java
2b1afac4af9d6e103cdda24f158890a1262a269f
[]
no_license
sunyu912/courses
0b3669cd6d005df0dc961b24e260e94b9ca53c0a
d5bce5b922d73836114c123b92ef3a459982f034
refs/heads/master
2016-09-06T17:06:48.892372
2014-10-21T07:03:26
2014-10-21T07:03:26
22,823,692
2
2
null
null
null
null
UTF-8
Java
false
false
512
java
package edu.csupomona.cs356; class ClassParent { public void method1(int i) { } public void method2(int i) { } public static void method3(int i) { } public static void method4(int i) { } public void method5(int i) { } protected void method6(int i) { } } class ClassChild extends ClassParent { public static void method1(int i) { } public void method2(int i) { } public void method3(int i) { } public static void method4(int i) { } protected void method5(int i) { } public void method6(int i) { } }
[ "yu.sun.cs@gmail.com" ]
yu.sun.cs@gmail.com
84e57e6fac2f18574dace1cf3f6bb978f3e97944
249d2ec159a37488ecdf22b3f7ac0d7c5426c651
/Girl/src/main/java/cn/gch/girl/controller/GirlController.java
7c8f2045379a8ba6e7e5e8843c2985efb7417f36
[]
no_license
chenxh23/sell
a3d38390bd68074fa7d5854a0a9033ba1005b150
a3e91ad9bacb189625c8427db54f579bd005463e
refs/heads/master
2022-11-09T22:13:17.182490
2018-01-19T09:05:46
2018-01-19T09:05:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,735
java
package cn.gch.girl.controller; import cn.gch.girl.entity.Girl; import cn.gch.girl.entity.Result; import cn.gch.girl.repository.GirlRepository; import cn.gch.girl.service.GirlService; import cn.gch.girl.utils.ResultUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; import java.util.List; @RestController public class GirlController { private final static Logger logger = LoggerFactory.getLogger(GirlController.class) ; @Autowired private GirlRepository girlRepository ; @Autowired private GirlService girlService ; /** * 查询所有女生列表 * @return */ @GetMapping(value = "/girls") public List<Girl> girlList(){ logger.info("方法执行中girlList"); return this.girlRepository.findAll() ; } /** * 保存女生 * @return */ @PostMapping(value = "/girls") public Result<Girl> girlAdd(@Valid Girl g, BindingResult bindingResult){ if (bindingResult.hasErrors()){ return ResultUtil.error(1,bindingResult.getFieldError().getDefaultMessage()); } Girl girl = new Girl() ; girl.setName(g.getName()); girl.setCupSize(g.getCupSize()); girl.setAge(g.getAge()); return ResultUtil.success() ; } // 查询一个女生 @GetMapping(value = "/girls/{id}") public Girl girlFindOne(@PathVariable Integer id){ return this.girlRepository.findOne(id) ; } // 更新 @PutMapping(value = "/girls/{id}") public Girl girlUpdate(@PathVariable(value = "id") Integer id, @RequestParam(value = "name") String name, @RequestParam(value = "cupSize") String cupSize, @RequestParam(value = "age") Integer age){ Girl girl = new Girl() ; girl.setId(id); girl.setName(name); girl.setCupSize(cupSize); girl.setAge(age); return this.girlRepository.save(girl) ; } // 删除 @DeleteMapping(value = "/girls/{id}") public void girlDelete(@PathVariable(value = "id") Integer id){ this.girlRepository.delete(id); } // 根据年龄查询女生 @GetMapping(value = "/girls/age/{age}") public List<Girl> girlListByAge(@PathVariable(value = "age") Integer age){ return girlRepository.findByAge(age) ; } @GetMapping(value = "/girls/getAge/{id}") public void getAge(@PathVariable("id") Integer id) throws Exception{ this.girlService.getAge(id); } }
[ "cxh231196@163.com" ]
cxh231196@163.com
cdcaee617ac5110b43444f8ace00acff39d053c1
bf9e08394160c9f52c69bcc2c2e57fd83ceb75d7
/src/main/java/com/alipay/api/domain/AlipayAccountExrateConfigSyncModel.java
1e8b537aec333aa2ec005f9d2eb807cadce5b959
[ "Apache-2.0" ]
permissive
xldc/alipay-sdk-java-all
549bbb62913979eff49119d4d92bd1032dc8842f
47bb7667299259457c915cc88022e12d89d82488
refs/heads/master
2023-03-24T06:24:15.060355
2021-03-23T13:20:25
2021-03-23T13:20:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,133
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 国际同步主站配置通用接口 * * @author auto create * @since 1.0, 2021-03-12 19:52:23 */ public class AlipayAccountExrateConfigSyncModel extends AlipayObject { private static final long serialVersionUID = 2777133751186513512L; /** * 自定义规则,字符串的形式。国际要同步到主站的拓展信息 */ @ApiField("task_context") private String taskContext; /** * 调度任务状态 */ @ApiField("task_status") private String taskStatus; /** * 配置信息的调度类型 */ @ApiField("task_type") private String taskType; public String getTaskContext() { return this.taskContext; } public void setTaskContext(String taskContext) { this.taskContext = taskContext; } public String getTaskStatus() { return this.taskStatus; } public void setTaskStatus(String taskStatus) { this.taskStatus = taskStatus; } public String getTaskType() { return this.taskType; } public void setTaskType(String taskType) { this.taskType = taskType; } }
[ "junying.wjy@alipay.com" ]
junying.wjy@alipay.com
1ccbc2fcc4009457bc74ad8cf52626e62865ffa9
a4a51084cfb715c7076c810520542af38a854868
/src/main/java/com/shopee/app/ui/home/a/h.java
486967aaee150daf7e8dfb1a7b20ef1c247907f5
[]
no_license
BharathPalanivelu/repotest
ddaf56a94eb52867408e0e769f35bef2d815da72
f78ae38738d2ba6c9b9b4049f3092188fabb5b59
refs/heads/master
2020-09-30T18:55:04.802341
2019-12-02T10:52:08
2019-12-02T10:52:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
693
java
package com.shopee.app.ui.home.a; import android.content.Context; import android.widget.RelativeLayout; import com.shopee.app.data.viewmodel.ActivityItemInfo; import com.shopee.app.ui.a.n; public class h extends RelativeLayout implements n<ActivityItemInfo> { /* renamed from: a reason: collision with root package name */ com.shopee.app.ui.common.h f22048a; public h(Context context) { super(context); } /* access modifiers changed from: package-private */ public void a() { this.f22048a.setAutoRotate(true); } public void a(ActivityItemInfo activityItemInfo) { this.f22048a.setBannerData(activityItemInfo.getBanners()); } }
[ "noiz354@gmail.com" ]
noiz354@gmail.com
c19a3192eaa2f2bd10927688656aeba80baa8811
ed5618b24d4cc49b55ed0631d465b18fc240db5c
/tests/org/elixir_lang/elixir_flex_lexer/group_heredoc_end/sigil/regex/TripleSingleQuotesTest.java
f9fbab1fb494ba978b2eb62c5cf2d53ef18b49f0
[ "Apache-2.0" ]
permissive
Invoker-liu/intellij-elixir
9282a2a8fd1a86e14020ba4c7a1c3ca7b72ece44
43b787b3e9c6dccbc51b97b917085ad976a5f614
refs/heads/master
2023-05-08T17:51:16.095818
2021-05-28T15:07:03
2021-05-28T15:07:03
262,931,800
0
0
NOASSERTION
2021-05-28T18:12:59
2020-05-11T03:45:03
Java
UTF-8
Java
false
false
1,465
java
package org.elixir_lang.elixir_flex_lexer.group_heredoc_end.sigil.regex; import com.intellij.psi.tree.IElementType; import org.elixir_lang.ElixirFlexLexer; import org.elixir_lang.psi.ElixirTypes; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.util.Arrays; import java.util.Collection; /** * Created by luke.imhoff on 9/8/14. */ @RunWith(Parameterized.class) public class TripleSingleQuotesTest extends Test { /* * Constants */ public static final IElementType FRAGMENT_TYPE = ElixirTypes.CHAR_LIST_FRAGMENT; public static final IElementType TERMINATOR_TYPE = ElixirTypes.CHAR_LIST_HEREDOC_TERMINATOR; /* * Constructors */ public TripleSingleQuotesTest(CharSequence charSequence, IElementType tokenType, int lexicalState, boolean consumeAll) { super(charSequence, tokenType, lexicalState, consumeAll); } /* * Methods */ @Parameterized.Parameters( name = "\"{0}\" parses as {1} token and advances to state {2}" ) public static Collection<Object[]> generateData() { return Arrays.asList( new Object[][]{ {"'''", TERMINATOR_TYPE, ElixirFlexLexer.ADDITION_OR_SUBTRACTION_MAYBE, true }, {"\"\"\"", FRAGMENT_TYPE, ElixirFlexLexer.GROUP_HEREDOC_LINE_BODY, true } } ); } protected String promoter() { return "'''"; } }
[ "Kronic.Deth@gmail.com" ]
Kronic.Deth@gmail.com
f7439d1ad5a76e0e2869b898311842e683796d68
8d37a6c61f8f1034161698cb19a9a8558eb49f2d
/src/main/java/aufgabe12_9/Statement.java
0625a3216a2807652d524a5d88f22fea56c9eb0c
[ "MIT" ]
permissive
rasaford/info1
2a0f33ed60c43b1547282561be050e85f4da9bb0
f22fa9cb303c581a5d75125b84d2143268e00c53
refs/heads/master
2021-03-30T17:45:21.403673
2018-10-11T12:04:19
2018-10-11T12:04:19
108,091,996
2
0
null
null
null
null
UTF-8
Java
false
false
309
java
package aufgabe12_9; // utf8: "Köpfchen in das Wasser, Schwänzchen in die Höh." -CIA-Verhörmethode public abstract class Statement implements Visitable { @Override public String toString() { FormatVisitor visitor = new FormatVisitor(); accept(visitor); return visitor.getResult(); } }
[ "fruehaufmaximilian@gmail.com" ]
fruehaufmaximilian@gmail.com
91994463b4fa03857e1da5ff1906177d92831286
293b148b54fb61c9fa8ec9660a74585e97740018
/src/be/openclinic/knowledge/Growth.java
6e00e735cbb9ae47acf4eacb5f70f8dee4814a92
[]
no_license
carlvalve/openclinic
1f8888400c6eafba4b0ed862c8f88bd71029da0d
3b306699e7ffd8830e280e16d6de9a7c97c11da0
refs/heads/master
2020-05-27T13:57:17.264196
2019-05-26T06:14:44
2019-05-26T06:14:44
188,643,222
0
0
null
null
null
null
UTF-8
Java
false
false
1,887
java
package be.openclinic.knowledge; import java.sql.*; import be.mxs.common.util.db.MedwanQuery; public class Growth { public static double getZScore(double height,double weight, String gender){ double zScore=-999; if(gender.toUpperCase().startsWith("M")){ gender="m"; } else{ gender="f"; } try{ Connection conn = MedwanQuery.getInstance().getOpenclinicConnection(); PreparedStatement ps = conn.prepareStatement("select * from OC_GROWTH where height>=? and gender=? order by height"); ps.setDouble(1, height); ps.setString(2, gender); ResultSet rs = ps.executeQuery(); if(rs.next()){ if(weight<rs.getDouble("SD3neg")){ zScore= -3-(rs.getDouble("SD3neg")-weight)/(rs.getDouble("SD3neg")-rs.getDouble("SD4neg")); } else if(weight<rs.getDouble("SD2neg")){ zScore= -2-(rs.getDouble("SD2neg")-weight)/(rs.getDouble("SD2neg")-rs.getDouble("SD3neg")); } else if(weight<rs.getDouble("SD1neg")){ zScore= -1-(rs.getDouble("SD1neg")-weight)/(rs.getDouble("SD1neg")-rs.getDouble("SD2neg")); } else if(weight<rs.getDouble("SD0")){ zScore= 0-(rs.getDouble("SD0")-weight)/(rs.getDouble("SD0")-rs.getDouble("SD1neg")); } else if(weight<rs.getDouble("SD1")){ zScore= 1-(rs.getDouble("SD1")-weight)/(rs.getDouble("SD1")-rs.getDouble("SD0")); } else if(weight<rs.getDouble("SD2")){ zScore= 2-(rs.getDouble("SD2")-weight)/(rs.getDouble("SD2")-rs.getDouble("SD1")); } else if(weight<rs.getDouble("SD3")){ zScore= 3-(rs.getDouble("SD3")-weight)/(rs.getDouble("SD3")-rs.getDouble("SD2")); } else { zScore= 4-(rs.getDouble("SD4")-weight)/(rs.getDouble("SD4")-rs.getDouble("SD3")); } } rs.close(); ps.close(); conn.close(); } catch(Exception e){ e.printStackTrace(); } return zScore; } }
[ "frankverbeke@fff6d2c3-ad4f-46bf-9e3e-7ed8f9d13556" ]
frankverbeke@fff6d2c3-ad4f-46bf-9e3e-7ed8f9d13556
36286ea1481757b56f88fc31e13cd2db50af5534
ca0e9689023cc9998c7f24b9e0532261fd976e0e
/src/com/tencent/mm/ui/friend/RecommendFriendUI$2$1.java
c118f7137d65db397b17cf9056a3d12a216e052f
[]
no_license
honeyflyfish/com.tencent.mm
c7e992f51070f6ac5e9c05e9a2babd7b712cf713
ce6e605ff98164359a7073ab9a62a3f3101b8c34
refs/heads/master
2020-03-28T15:42:52.284117
2016-07-19T16:33:30
2016-07-19T16:33:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
543
java
package com.tencent.mm.ui.friend; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; final class RecommendFriendUI$2$1 implements DialogInterface.OnClickListener { RecommendFriendUI$2$1(RecommendFriendUI.2 param2) {} public final void onClick(DialogInterface paramDialogInterface, int paramInt) { RecommendFriendUI.c(lsp.lso); } } /* Location: * Qualified Name: com.tencent.mm.ui.friend.RecommendFriendUI.2.1 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
8812940d6f01a326f284b3accef8fcde90b81644
350a028b43ef498f6bcf748c7855f00c74379ecb
/3.Java Fundamentals SoftUni/Java Advanced SoftUni/StringProcessing/src/CountSubstringOccurrences.java
ce08c1884293e9504834a553b66104cb22fe35e8
[]
no_license
martinrangelov96/SoftUni-Lections-Exercises-And-Homeworks
e2322ba51de0b354ba94ec4d19415de8938ee5b4
009a21268621238027b288a95b2dfc6a09578155
refs/heads/master
2022-12-02T15:58:02.790326
2019-07-17T07:15:30
2019-07-17T07:15:30
168,360,969
1
0
null
2022-11-24T09:51:29
2019-01-30T14:57:54
Java
UTF-8
Java
false
false
568
java
import java.util.Scanner; public class CountSubstringOccurrences { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String input = scanner.nextLine().toLowerCase(); String countAppearances = scanner.nextLine(); int count = 0; for (int i = 0; i < input.length() - countAppearances.length(); i++) { if (input.substring(i, countAppearances.length() + i).equals(countAppearances)) { count++; } } System.out.println(count); } }
[ "martin.rangelov96@gmail.com" ]
martin.rangelov96@gmail.com
d4fc0b90bbd6e53127f9a86265d0f2c0d039a8f9
5ccf28cec123481ef77a3a6a865266dab5552f2a
/facesys-data/src/main/java/com/ss/facesys/data/collect/common/model/FrequencyNightPerson.java
5e4d96eafa6f9ac66441f234de841936b4d65bfd
[]
no_license
liangmuxue/facesys
dde7199a62fdc1b5727faf14e5c4fd40a068a2b8
ffa838a10216cecf2aea4b54c180f3c5443742ea
refs/heads/master
2022-12-21T15:54:59.846101
2021-04-07T09:17:34
2021-04-07T09:17:34
224,800,426
2
5
null
2022-12-16T10:56:21
2019-11-29T07:30:22
Java
UTF-8
Java
false
false
6,824
java
package com.ss.facesys.data.collect.common.model; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.List; public class FrequencyNightPerson { private String id; private String capturePath; private String panoramaPath; private Integer days; private String deviceNo; private String doorCode; private String doorName; private String villageId; private String villageName; private String regionCode; private Integer state; private Integer keyState; private Integer excludeFlag; private Date createdTime; private Date updateTime; private String peopleId; private String peopleName; private String remark; private Integer count = Integer.valueOf(3); private String residenceAddress; private String credentialNo; private Date lastCaptureTime; private String label; private List<FrequencyNightPersonDetail> detail; private String facePitch; private String faceYaw; private String faceRoll; private String facex; private String facey; private String faceWidth; private String faceHeight; private int index; public FrequencyNightPerson() {} public FrequencyNightPerson(String id, Integer state) { this.id = id; this.state = state; } public int getIndex() { return this.index; } public void setIndex(int index) { this.index = index; } public String getRemark() { return this.remark; } public void setRemark(String remark) { this.remark = remark; } public String getId() { return this.id; } public void setId(String id) { this.id = id; } public String getCapturePath() { return this.capturePath; } public void setCapturePath(String capturePath) { this.capturePath = capturePath; } public String getPanoramaPath() { return this.panoramaPath; } public void setPanoramaPath(String panoramaPath) { this.panoramaPath = panoramaPath; } public Integer getDays() { return this.days; } public void setDays(Integer days) { this.days = days; } public String getDeviceNo() { return this.deviceNo; } public void setDeviceNo(String deviceNo) { this.deviceNo = deviceNo; } public String getDoorCode() { return this.doorCode; } public void setDoorCode(String doorCode) { this.doorCode = doorCode; } public String getDoorName() { return this.doorName; } public void setDoorName(String doorName) { this.doorName = doorName; } public String getVillageId() { return this.villageId; } public void setVillageId(String villageId) { this.villageId = villageId; } public String getVillageName() { if (null == this.peopleId || this.peopleId.length() == 0) { return "--"; } return this.villageName; } public void setVillageName(String villageName) { this.villageName = villageName; } public String getRegionCode() { return this.regionCode; } public void setRegionCode(String regionCode) { this.regionCode = regionCode; } public Integer getState() { return this.state; } public void setState(Integer state) { this.state = state; } public Integer getKeyState() { return this.keyState; } public void setKeyState(Integer keyState) { this.keyState = keyState; } public Integer getExcludeFlag() { return this.excludeFlag; } public void setExcludeFlag(Integer excludeFlag) { this.excludeFlag = excludeFlag; } public Date getCreatedTime() { return this.createdTime; } public void setCreatedTime(Date createdTime) { this.createdTime = createdTime; } public String getPeopleId() { return this.peopleId; } public void setPeopleId(String peopleId) { this.peopleId = peopleId; } public String getPeopleName() { if (null == this.peopleId || this.peopleId.length() == 0) { return "--"; } return this.peopleName; } public void setPeopleName(String peopleName) { this.peopleName = peopleName; } public Integer getCount() { return this.count; } public void setCount(Integer count) { this.count = count; } public String getResidenceAddress() { if (null == this.peopleId || this.peopleId.length() == 0) { return "--"; } return this.residenceAddress; } public void setResidenceAddress(String residenceAddress) { this.residenceAddress = residenceAddress; } public String getCredentialNo() { if (null == this.peopleId || this.peopleId.length() == 0) { return "--"; } return this.credentialNo; } public void setCredentialNo(String credentialNo) { this.credentialNo = credentialNo; } public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public Date getLastCaptureTime() { return this.lastCaptureTime; } public void setLastCaptureTime(Date lastCaptureTime) { this.lastCaptureTime = lastCaptureTime; } public String getLabel() { return this.label; } public void setLabel(String label) { this.label = label; } public List<FrequencyNightPersonDetail> getDetail() { return this.detail; } public void setDetail(List<FrequencyNightPersonDetail> detail) { Collections.sort(detail, new Comparator<FrequencyNightPersonDetail>() { public int compare(FrequencyNightPersonDetail o1, FrequencyNightPersonDetail o2) { if (null != o1.getCaptureTime() && null != o2.getCaptureTime()) { if (o1.getCaptureTime().getTime() > o2.getCaptureTime().getTime()) return 1; if (o1.getCaptureTime().getTime() < o2.getCaptureTime().getTime()) { return -1; } return 0; } return 0; } }); this.detail = detail; } public String getFacePitch() { return this.facePitch; } public void setFacePitch(String facePitch) { this.facePitch = facePitch; } public String getFaceYaw() { return this.faceYaw; } public void setFaceYaw(String faceYaw) { this.faceYaw = faceYaw; } public String getFaceRoll() { return this.faceRoll; } public void setFaceRoll(String faceRoll) { this.faceRoll = faceRoll; } public String getFacex() { return this.facex; } public void setFacex(String facex) { this.facex = facex; } public String getFacey() { return this.facey; } public void setFacey(String facey) { this.facey = facey; } public String getFaceWidth() { return this.faceWidth; } public void setFaceWidth(String faceWidth) { this.faceWidth = faceWidth; } public String getFaceHeight() { return this.faceHeight; } public void setFaceHeight(String faceHeight) { this.faceHeight = faceHeight; } }
[ "francis_isys@163.com" ]
francis_isys@163.com
862c7718e69ce79a3a2ab7de1afdcc14da73de7b
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Hibernate/Hibernate7207.java
fb86c39031d48044155905fc9264f904d4ae073d
[]
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
537
java
@Test public void testCollectionCacheEvictionInsert() { People people = createPeople(); people = initCache( people.id ); Session session = openSession(); session.beginTransaction(); people = session.get( People.class, people.id ); Person person = new Person(); session.save( person ); people.people.add( person ); session.getTransaction().commit(); session.close(); session = openSession(); people = session.get( People.class, people.id ); assertEquals( 3, people.people.size() ); session.close(); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
3222b5ffe5277e9eda86a67d7c7a5b66de8f7c26
ee461488c62d86f729eda976b421ac75a964114c
/tags/HtmlUnit-2.17/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/idb/IDBObjectStore.java
f2dd4c5e7b2ad20c279bb064b235f1c9467e6c49
[ "Apache-2.0" ]
permissive
svn2github/htmlunit
2c56f7abbd412e6d9e0efd0934fcd1277090af74
6fc1a7d70c08fb50fef1800673671fd9cada4899
refs/heads/master
2023-09-03T10:35:41.987099
2015-07-26T13:12:45
2015-07-26T13:12:45
37,107,064
0
1
null
null
null
null
UTF-8
Java
false
false
1,636
java
/* * Copyright (c) 2002-2015 Gargoyle Software 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.gargoylesoftware.htmlunit.javascript.host.idb; import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.CHROME; import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.FF; import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.IE; import com.gargoylesoftware.htmlunit.javascript.SimpleScriptable; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor; import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser; /** * A JavaScript object for {@code IDBObjectStore}. * * @version $Revision$ * @author Ahmed Ashour */ @JsxClass(browsers = { @WebBrowser(CHROME), @WebBrowser(FF), @WebBrowser(value = IE, minVersion = 11) }) public class IDBObjectStore extends SimpleScriptable { /** * Creates a new instance. */ @JsxConstructor({ @WebBrowser(CHROME), @WebBrowser(FF) }) public IDBObjectStore() { } }
[ "asashour@5f5364db-9458-4db8-a492-e30667be6df6" ]
asashour@5f5364db-9458-4db8-a492-e30667be6df6
890b3e3dea42dd59b853d8fe63f48e4f15818080
09534c278861e04441712475790c08fe0b92f279
/app/src/main/java/com/walktour/gui/task/parsedata/model/task/sms/sendreceive/TaskSmsSendReceiveModel.java
84be74cad282fb131868fcdaed63a41754068de0
[]
no_license
copslock/Walktour4
077eee3500387abd9a8b74727dd3c5727cc11384
46b7e77e2a5e54c4f2a83f23448f7031c8b37537
refs/heads/master
2023-07-17T13:05:58.825418
2019-08-20T07:12:35
2019-08-20T07:12:35
397,678,508
1
0
null
null
null
null
UTF-8
Java
false
false
3,779
java
package com.walktour.gui.task.parsedata.model.task.sms.sendreceive; import com.google.gson.annotations.SerializedName; import com.walktour.Utils.WalkCommonPara; import com.walktour.Utils.WalkStruct; import com.walktour.gui.task.parsedata.model.base.TaskModel; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlSerializer; import java.util.List; import java.util.Map; /** * 短信自发自收测试 * * */ public class TaskSmsSendReceiveModel extends TaskModel { private static final long serialVersionUID = -4726179818719423834L; public TaskSmsSendReceiveModel(){ setTypeProperty(WalkCommonPara.TypeProperty_None); setTaskType(WalkStruct.TaskType.SMSSendReceive.toString()); } @SerializedName("serverNumber") private String serverNumber="000"; //服务中心号码 @SerializedName("smsSelfTestConfig") private SMSSelfTestConfig smsSelfTestConfig=new SMSSelfTestConfig(); /** * 获得当前测试计划写入RCU文件的字符串 * @author tangwq * @return */ public String getTestPlanStr(){ StringBuffer testTask = new StringBuffer(); testTask.append(getBaseModelStr()); testTask.append("sendTimeOut ="+ smsSelfTestConfig.getSendTimeout() +"\r\n"); testTask.append("receiveTimeOut ="+ smsSelfTestConfig.getRecvTimeout() +"\r\n"); testTask.append("serverNumber ="+ getServerNumber() +"\r\n"); testTask.append("desNumber ="+ smsSelfTestConfig.getReceiverNum() +"\r\n"); testTask.append("content ="+ smsSelfTestConfig.getSmsText() +"\r\n"); return testTask.toString(); } public String getContent() { return smsSelfTestConfig.getSmsText(); } public void setContent(String content) { smsSelfTestConfig.setSmsText(content); } public String getServerNumber() { return smsSelfTestConfig.getSmsc(); } public void setServerNumber(String serverNumber) { if (serverNumber.length() <= 1) { this.serverNumber = "000"; } else { this.serverNumber = serverNumber; } smsSelfTestConfig.setSmsc(this.serverNumber); } public String getDesNumber() { return smsSelfTestConfig.getReceiverNum(); } public void setDesNumber(String desNumber) { if( desNumber.trim().length()==0 ){ smsSelfTestConfig.setReceiverNum("000"); }else{ smsSelfTestConfig.setReceiverNum(desNumber); } } public int getSendTimeOut() { return smsSelfTestConfig.getSendTimeout(); } public void setSendTimeOut(int sendTimeOut) { smsSelfTestConfig.setSendTimeout(sendTimeOut); } public int getReceiveTimeOut() { return smsSelfTestConfig.getRecvTimeout(); } public void setReceiveTimeOut(int receiveTimeOut) { smsSelfTestConfig.setRecvTimeout(receiveTimeOut); } public SMSSelfTestConfig getSmsSelfTestConfig() { return smsSelfTestConfig; } public void parseXml(XmlPullParser parser,List<TaskModel> tasks,Map<String,String> map) throws Exception { int eventType = parser.getEventType(); String tagName = ""; while (eventType != XmlPullParser.END_DOCUMENT) { switch (eventType) { case XmlPullParser.START_DOCUMENT: tagName = parser.getName(); break; case XmlPullParser.START_TAG: tagName = parser.getName(); if (tagName.equals("SMSSelfTestConfig")) { smsSelfTestConfig.parseXml(parser); } else {// 解析公共属性 parsrXmlPublic(parser,map); } break; case XmlPullParser.END_TAG: tagName = parser.getName(); if (tagName.equals("TaskConfig")) { tasks.add(this); return; } break; } eventType = parser.next(); } } public void writeXml(XmlSerializer serializer) throws Exception { super.writeXml(serializer); if(null!=smsSelfTestConfig) smsSelfTestConfig.writeXml(serializer); } @Override public String getServerTaskType() { return WalkStruct.TaskType.SMSSendReceive.getXmlTaskType(); } }
[ "15015912346@163.com" ]
15015912346@163.com
9b039dda1e2bfce9982ab4c2772f7d1c5e28f04a
a276832f4fc5074994292246d272d75de7891e8c
/gmall-pms/src/main/java/com/ww/gmall/pms/controller/BaseCatalog3Controller.java
ce4967f4ecc8da69766493ba90fc81a85786d8ce
[]
no_license
jimmywang1994/gmall
52e366011e6ed57626db8805ed5bc2664062d8da
00fa8d3d6226cb057c02a574169668837659f38d
refs/heads/master
2022-10-12T16:07:53.420260
2020-02-21T08:56:49
2020-02-21T08:56:49
232,516,988
0
0
null
null
null
null
UTF-8
Java
false
false
935
java
package com.ww.gmall.pms.controller; import com.netflix.discovery.converters.Auto; import com.ww.gmall.pms.bean.BaseCatalog3; import com.ww.gmall.pms.service.BaseCatalog3Service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * <p> * 前端控制器 * </p> * * @author wwei * @since 2020-01-12 */ @RestController @RequestMapping("/pms/base-catalog3") public class BaseCatalog3Controller { @Autowired BaseCatalog3Service baseCatalog3Service; @RequestMapping("getCatalog3") public List<BaseCatalog3> getCatalog3s(@RequestParam("catalog2Id")String catalog2Id){ List<BaseCatalog3> catalog3s=baseCatalog3Service.getCatalog3s(catalog2Id); return catalog3s; } }
[ "429744781@qq.com" ]
429744781@qq.com
a567d33507b760fc098470770ebd69f9859b8289
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/edas-20170801/src/main/java/com/aliyun/edas20170801/models/DeleteUserDefineRegionRequest.java
5b2e008d8c68d3da5005b64259e39f6c8e362fc4
[ "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
1,153
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.edas20170801.models; import com.aliyun.tea.*; public class DeleteUserDefineRegionRequest extends TeaModel { /** * <p>The unique ID of the custom namespace. You can call the ListUserDefineRegion operation to query the ID. For more information, see [ListUserDefineRegion](~~149377~~).</p> */ @NameInMap("Id") public Long id; /** * <p>The tag of the custom namespace.</p> */ @NameInMap("RegionTag") public String regionTag; public static DeleteUserDefineRegionRequest build(java.util.Map<String, ?> map) throws Exception { DeleteUserDefineRegionRequest self = new DeleteUserDefineRegionRequest(); return TeaModel.build(map, self); } public DeleteUserDefineRegionRequest setId(Long id) { this.id = id; return this; } public Long getId() { return this.id; } public DeleteUserDefineRegionRequest setRegionTag(String regionTag) { this.regionTag = regionTag; return this; } public String getRegionTag() { return this.regionTag; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
4aa839f0883fd9bebaa9c5758c0b601b04e90146
a15e6062d97bd4e18f7cefa4fe4a561443cc7bc8
/src/combit/ListLabel24/Dom/PropertyRepresentationCodes.java
de451935c05b447dd00bdaffc08048639f15fa43
[]
no_license
Javonet-io-user/e66e9f78-68be-483d-977e-48d29182c947
017cf3f4110df45e8ba4a657ba3caba7789b5a6e
02ec974222f9bb03a938466bd6eb2421bb3e2065
refs/heads/master
2020-04-15T22:55:05.972920
2019-01-10T16:01:59
2019-01-10T16:01:59
165,089,187
0
0
null
null
null
null
UTF-8
Java
false
false
5,783
java
package combit.ListLabel24.Dom; import Common.Activation; import static Common.Helper.Convert; import static Common.Helper.getGetObjectName; import static Common.Helper.getReturnObjectName; import static Common.Helper.ConvertToConcreteInterfaceImplementation; import Common.Helper; import com.javonet.Javonet; import com.javonet.JavonetException; import com.javonet.JavonetFramework; import com.javonet.api.NObject; import com.javonet.api.NEnum; import com.javonet.api.keywords.NRef; import com.javonet.api.keywords.NOut; import com.javonet.api.NControlContainer; import java.util.concurrent.atomic.AtomicReference; import java.util.Iterator; import java.lang.*; import combit.ListLabel24.Dom.*; public class PropertyRepresentationCodes extends DomItem { protected NObject javonetHandle; /** SetProperty */ public void setCondEnd(java.lang.String value) { try { javonetHandle.set("CondEnd", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getCondEnd() { try { java.lang.String res = javonetHandle.get("CondEnd"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setCondSep(java.lang.String value) { try { javonetHandle.set("CondSep", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getCondSep() { try { java.lang.String res = javonetHandle.get("CondSep"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setCondStart(java.lang.String value) { try { javonetHandle.set("CondStart", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getCondStart() { try { java.lang.String res = javonetHandle.get("CondStart"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setExprSep(java.lang.String value) { try { javonetHandle.set("ExprSep", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getExprSep() { try { java.lang.String res = javonetHandle.get("ExprSep"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setLockNextChar(java.lang.String value) { try { javonetHandle.set("LockNextChar", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getLockNextChar() { try { java.lang.String res = javonetHandle.get("LockNextChar"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setPhantomSpace(java.lang.String value) { try { javonetHandle.set("PhantomSpace", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getPhantomSpace() { try { java.lang.String res = javonetHandle.get("PhantomSpace"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setRet(java.lang.String value) { try { javonetHandle.set("Ret", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getRet() { try { java.lang.String res = javonetHandle.get("Ret"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } /** SetProperty */ public void setTab(java.lang.String value) { try { javonetHandle.set("Tab", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ public java.lang.String getTab() { try { java.lang.String res = javonetHandle.get("Tab"); if (res == null) return ""; return (java.lang.String) res; } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return ""; } } public PropertyRepresentationCodes(NObject handle) { super(handle); this.javonetHandle = handle; } public void setJavonetHandle(NObject handle) { this.javonetHandle = handle; } static { try { Activation.initializeJavonet(); } catch (java.lang.Exception e) { e.printStackTrace(); } } }
[ "support@javonet.com" ]
support@javonet.com
d1b168f604f71145eb01d32a0ca221cd117153b8
d07d55419449586786f494e9c0f5ab6aea225dcb
/src/test/java/ru/r2cloud/jradio/dstar1/Dstar1Test.java
275f7378a064ad13014c9f9d5417501d72d05601
[ "Apache-2.0" ]
permissive
richnavarro/jradio
1f98593e950d7d6b72372f862e28b3294e8cee6d
ec86db80ab6b36b6222bb0d3978abba89f555ac4
refs/heads/master
2023-08-02T19:25:16.258642
2021-09-14T11:25:54
2021-09-14T11:25:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,181
java
package ru.r2cloud.jradio.dstar1; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Test; import ru.r2cloud.jradio.AssertJson; import ru.r2cloud.jradio.blocks.CorrelateSyncword; import ru.r2cloud.jradio.blocks.MultiplyConst; import ru.r2cloud.jradio.blocks.SoftToHard; import ru.r2cloud.jradio.demod.FskDemodulator; import ru.r2cloud.jradio.source.WavFileSource; import ru.r2cloud.jradio.tubix20.CMX909bBeacon; public class Dstar1Test { private Dstar1 input; @Test public void testSucess() throws Exception { WavFileSource source = new WavFileSource(Dstar1Test.class.getClassLoader().getResourceAsStream("dstar_one.wav")); MultiplyConst mc = new MultiplyConst(source, -1.0f); FskDemodulator demod = new FskDemodulator(mc, 4800); SoftToHard s2h = new SoftToHard(demod); CorrelateSyncword correlate = new CorrelateSyncword(s2h, 6, "11001100110011000101011101100101", CMX909bBeacon.MAX_SIZE * 8); input = new Dstar1(correlate); assertTrue(input.hasNext()); AssertJson.assertObjectsEqual("Dstar1Beacon.json", input.next()); } @After public void stop() throws Exception { if (input != null) { input.close(); } } }
[ "rodionovamp@mail.ru" ]
rodionovamp@mail.ru
3faa9912631ffdda8a25d11c4f1990130df7296d
e270a1af644ecd053d613636b8225b22a7bfa8d9
/app/src/main/java/com/szhua/linesdefinedflowlayout/flowlayout/TagView.java
503fd1eb6470141b95837ea6a7cb0bdba4b17bd1
[]
no_license
szhua/LinesDefinedFlowLayout
de855b0278f140537ca31f0ccecd1c15aba18297
39b35989c2df9fd07d65f2b8862d123d41277f83
refs/heads/master
2020-07-26T08:18:23.997196
2016-12-07T13:04:55
2016-12-07T13:04:55
67,781,305
6
0
null
null
null
null
UTF-8
Java
false
false
1,470
java
package com.szhua.linesdefinedflowlayout.flowlayout; import android.content.Context; import android.view.View; import android.widget.Checkable; import android.widget.FrameLayout; /** * Created by zhy on 15/9/10. */ public class TagView extends FrameLayout implements Checkable { private boolean isChecked; private static final int[] CHECK_STATE = new int[]{android.R.attr.state_checked}; public TagView(Context context) { super(context); } public View getTagView() { return getChildAt(0); } @Override public int[] onCreateDrawableState(int extraSpace) { int[] states = super.onCreateDrawableState(extraSpace + 1); if (isChecked()) { mergeDrawableStates(states, CHECK_STATE); } return states; } /** * Change the checked state of the view * * @param checked The new checked state */ @Override public void setChecked(boolean checked) { if (this.isChecked != checked) { this.isChecked = checked; refreshDrawableState(); } } /** * @return The current checked state of the view */ @Override public boolean isChecked() { return isChecked; } /** * Change the checked state of the view to the inverse of its current state */ @Override public void toggle() { setChecked(!isChecked); } }
[ "389894467@qq.com" ]
389894467@qq.com
a6370e04da480fdbb70cd55b5cfa702dd5430e50
6a516b3939751b7c4ee1859280569151124dd2c2
/src/com/javarush/test/level20/lesson07/task03/Solution.java
a4abca2c494d4776530f79436bb058e4b7d71d4a
[]
no_license
SirMatters/JavaRush-Solutions
690d34b0680ca2f2b220ce3fce666937cb59050d
fe3592308428baac735fb3c443356b54e38a4f8d
refs/heads/master
2020-12-24T11:45:45.233258
2018-04-14T18:50:25
2018-04-14T18:50:25
73,015,759
0
0
null
null
null
null
UTF-8
Java
false
false
3,286
java
package com.javarush.test.level20.lesson07.task03; import java.io.*; import java.util.ArrayList; import java.util.List; /* Externalizable Person Класс Person должен сериализоваться с помощью интерфейса Externalizable. Подумайте, какие поля не нужно сериализовать. Исправьте ошибку сериализации. Сигнатуры методов менять нельзя. */ public class Solution implements Serializable{ public static void main(String[] args) throws IOException, ClassNotFoundException { Person person = new Person("Mark", "Markson", 30); Person mom = new Person("Lady", "Markson", 55); Person dad = new Person("Sir", "Markson", 49); Person child1 = new Person("boy", "Markson", 4); Person child2 = new Person("girl", "Markson", 1); person.setFather(dad); person.setMother(mom); List<Person> list = new ArrayList<Person>(); list.add(child1); list.add(child2); person.setChildren(list); System.out.println(person.firstName+" "+person.lastName+" "+person.age+" "+person.father.firstName+" "+person.mother.firstName+" "+person.children); File file = new File("C:/Users/K.Perov/Desktop/JAVA/t.txt"); ObjectOutputStream OOS = new ObjectOutputStream(new FileOutputStream(file)); OOS.writeObject(person); OOS.close(); ObjectInputStream OIS = new ObjectInputStream(new FileInputStream(file)); Person newPerson = (Person) OIS.readObject(); OIS.close(); System.out.println(newPerson.firstName+" "+newPerson.lastName+" "+newPerson.age+" "+newPerson.father.firstName+" "+newPerson.mother.firstName+" "+newPerson.children); } public static class Person implements Externalizable { private String firstName; private String lastName; private int age; private Person mother; private Person father; private List<Person> children; public Person() {} public Person(String firstName, String lastName, int age) { this.firstName = firstName; this.lastName = lastName; this.age = age; } public void setMother(Person mother) { this.mother = mother; } public void setFather(Person father) { this.father = father; } public void setChildren(List<Person> children) { this.children = children; } @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(mother); out.writeObject(father); out.writeObject(firstName); out.writeObject(lastName); out.writeInt(age); out.writeObject(children); } @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { mother = (Person)in.readObject(); father = (Person)in.readObject(); firstName = (String)in.readObject(); lastName = (String)in.readObject(); age = in.readInt(); children = (List<Person>)in.readObject(); } } }
[ "perov.krll@gmail.com" ]
perov.krll@gmail.com
9e33254c46e976d8c21306cee0db27dbe609f991
72a772c29f683f032137dd9b92ada6b7569f68fb
/02 .Quiz/QuizProject/src/chapter06/Q6_10.java
9239f80d3c6173484824d018bdf891af9098ecc0
[]
no_license
taeheon1/Java
746ecda2378da9f2815a8726ca2c811bfa63238c
2207b569839f3c8a6d47068bcc62cf31b7eca353
refs/heads/master
2022-04-10T17:16:25.657114
2020-03-25T09:42:57
2020-03-25T09:42:57
238,585,417
0
0
null
null
null
null
UTF-8
Java
false
false
815
java
package chapter06; import java.util.Scanner; public class Q6_10 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int sum = 0; for(int i=0; i<5; i++) { System.out.printf("정수입력 %d 번째 : ", i+1); int num = sc.nextInt(); if(num<1) { while(num<1) { System.out.printf("재입력 하세요 : "); num = sc.nextInt(); } } sum = sum + num; } System.out.printf("정수 의 합 = %d ",sum); sc.close(); } } /*사용자로부터 5개의 정수를 입력받아서 합을 구하여 출력한다. 만약 입력받는 숫자가 1미만의 숫자라면 재입력을 요구해야 한다. 그래서 1이상의 정수 5개를 입력받아야 프로그램이 완성된다. */
[ "pengdoong95@gmail.com" ]
pengdoong95@gmail.com
d84f4f734081c4c64835aa8fb6e11a4e468dd6b7
1b200cbeb540878a72f732991149bce3eb5ce3a2
/server-wildfly/src/main/java/org/jboss/tools/rsp/server/wildfly/servertype/JBossVMRegistryDiscovery.java
b4e14bd2e4b3904bb2646cc2239d798f351b596e
[]
no_license
dgolovin/rsp-server
8a41197b1b16e1ba0af0ab27443e5882d8691f09
7cf1b42ef22f3e99c556ef933eaa176108e51208
refs/heads/master
2020-03-27T05:22:00.617371
2018-08-24T10:44:29
2018-08-24T14:47:22
146,013,457
0
0
null
2018-08-24T16:13:18
2018-08-24T16:13:18
null
UTF-8
Java
false
false
1,637
java
/******************************************************************************* * Copyright (c) 2018 Red Hat, Inc. Distributed under license by Red Hat, Inc. * All rights reserved. This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html * * Contributors: Red Hat, Inc. ******************************************************************************/ package org.jboss.tools.rsp.server.wildfly.servertype; import java.io.File; import org.jboss.tools.rsp.eclipse.jdt.launching.IVMInstall; import org.jboss.tools.rsp.eclipse.jdt.launching.IVMInstallRegistry; import org.jboss.tools.rsp.eclipse.jdt.launching.IVMRunner; import org.jboss.tools.rsp.server.LauncherSingleton; import org.jboss.tools.rsp.server.spi.servertype.IServerDelegate; public class JBossVMRegistryDiscovery { public static IVMInstall findVMInstall(IServerDelegate delegate) { String vmPath = delegate.getServer().getAttribute(IJBossServerAttributes.VM_INSTALL_PATH, (String)null); IVMInstall vmi = null; if( vmPath == null ) { vmi = getDefaultRegistry().getDefaultVMInstall(); } else { vmi = getDefaultRegistry().findVMInstall(new File(vmPath)); } return vmi; } public static IVMRunner getVMRunner(IServerDelegate delegate, String mode) { IVMInstall vmi = findVMInstall(delegate); if( vmi == null ) { return null; } return vmi.getVMRunner(mode); } public static IVMInstallRegistry getDefaultRegistry() { return LauncherSingleton.getDefault().getLauncher().getModel().getVMInstallModel(); } }
[ "rob@oxbeef.net" ]
rob@oxbeef.net
fdfef3c875251848ce5ae3c9240fdc36afe55297
53189efbfed5423821a84f631da404d07a80e404
/storage/app/Al-QuranIndonesia_com.andi.alquran.id_source_from_JADX/com/google/android/gms/internal/nf.java
64707261436445b888b9c635321b42ba472ccc79
[ "MIT" ]
permissive
dwijpr/islam
0c9b77028d34862b6d06858c5b0d6ffec91b5014
6077291a619ac2f5b30a77e284c0a7361e7c8ad4
refs/heads/master
2021-01-19T17:16:49.818251
2017-03-13T23:00:08
2017-03-13T23:00:08
82,430,213
0
0
null
null
null
null
UTF-8
Java
false
false
183
java
package com.google.android.gms.internal; import android.os.Bundle; @op public class nf implements ng { public sn<Bundle> m7763a() { return new sl(new Bundle()); } }
[ "dwijpr@gmail.com" ]
dwijpr@gmail.com
d9b6634e5104f0cefdaae7579a3faee037665403
7e1511cdceeec0c0aad2b9b916431fc39bc71d9b
/flakiness-predicter/input_data/original_tests/square-okhttp/nonFlakyMethods/com.squareup.okhttp.internal.http.HttpOverSpdy3Test-acceptAndTransmitCookies.java
a4a1a7f7fef817acc6efd465655d448662e8dc8d
[ "BSD-3-Clause" ]
permissive
Taher-Ghaleb/FlakeFlagger
6fd7c95d2710632fd093346ce787fd70923a1435
45f3d4bc5b790a80daeb4d28ec84f5e46433e060
refs/heads/main
2023-07-14T16:57:24.507743
2021-08-26T14:50:16
2021-08-26T14:50:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
898
java
@Test public void acceptAndTransmitCookies() throws Exception { CookieManager cookieManager=new CookieManager(); client.setCookieHandler(cookieManager); server.enqueue(new MockResponse().addHeader("set-cookie: c=oreo; domain=" + server.getCookieDomain()).setBody("A")); server.enqueue(new MockResponse().setBody("B")); server.play(); URL url=server.getUrl("/"); assertContent("A",client.open(url),Integer.MAX_VALUE); Map<String,List<String>> requestHeaders=Collections.emptyMap(); assertEquals(Collections.singletonMap("Cookie",Arrays.asList("c=oreo")),cookieManager.get(url.toURI(),requestHeaders)); assertContent("B",client.open(url),Integer.MAX_VALUE); RecordedRequest requestA=server.takeRequest(); assertContainsNoneMatching(requestA.getHeaders(),"Cookie.*"); RecordedRequest requestB=server.takeRequest(); assertContains(requestB.getHeaders(),"cookie: c=oreo"); }
[ "aalsha2@masonlive.gmu.edu" ]
aalsha2@masonlive.gmu.edu
073dca3ae14a1d85dc745916bd88ea74bfc17210
64f0a73f1f35078d94b1bc229c1ce6e6de565a5f
/dataset/Top APKs Java Files/com.cmcm.lite-com-cleanmaster-function-security-scan-engine-l.java
4f9224cc4bb8525e309dc4447799462b497069d3
[ "MIT" ]
permissive
S2-group/mobilesoft-2020-iam-replication-package
40d466184b995d7d0a9ae6e238f35ecfb249ccf0
600d790aaea7f1ca663d9c187df3c8760c63eacd
refs/heads/master
2021-02-15T21:04:20.350121
2020-10-05T12:48:52
2020-10-05T12:48:52
244,930,541
2
2
null
null
null
null
UTF-8
Java
false
false
5,556
java
package com.cleanmaster.function.security.scan.engine; import android.content.Context; import android.os.RemoteException; public class l extends Thread { private Context a; private ISecurityScanCallback b; private byte[] c = new byte[0]; private volatile boolean d; private long e; private long f; private volatile boolean g; private volatile boolean h; private a i; private e j = new m(this); private int k = 0; public l(Context paramContext, ISecurityScanCallback paramISecurityScanCallback, int paramInt) { super("SecurityScanThread"); if ((paramContext == null) || (paramISecurityScanCallback == null)) { throw new IllegalArgumentException("The context or callback of the SecurityScanThread can't be null."); } this.k = paramInt; this.a = paramContext; this.b = paramISecurityScanCallback; } private void a(String paramString) {} private void b() { synchronized (this.c) { if (this.i != null) { this.i.a(); this.i = null; } this.d = true; return; } } private void c() { synchronized (this.c) { if ((!this.d) && (!this.g) && (this.h)) { a("onScanDone : " + (System.currentTimeMillis() - this.e) + " ms"); } try { if (this.b != null) { this.b.b(); } this.g = true; return; } catch (RemoteException localRemoteException) { for (;;) { localRemoteException.printStackTrace(); } } } } public void a() { b(); } /* Error */ public void run() { // Byte code: // 0: aload_0 // 1: getfield 32 com/cleanmaster/function/security/scan/engine/l:c [B // 4: astore 4 // 6: aload 4 // 8: monitorenter // 9: aload_0 // 10: getfield 60 com/cleanmaster/function/security/scan/engine/l:d Z // 13: ifne +95 -> 108 // 16: aload_0 // 17: invokestatic 92 java/lang/System:currentTimeMillis ()J // 20: putfield 94 com/cleanmaster/function/security/scan/engine/l:e J // 23: aload_0 // 24: ldc 118 // 26: invokespecial 57 com/cleanmaster/function/security/scan/engine/l:a (Ljava/lang/String;)V // 29: aload_0 // 30: getfield 41 com/cleanmaster/function/security/scan/engine/l:k I // 33: istore_1 // 34: iload_1 // 35: iconst_3 // 36: if_icmpne +19 -> 55 // 39: aload_0 // 40: getfield 50 com/cleanmaster/function/security/scan/engine/l:b Lcom/cleanmaster/function/security/scan/engine/ISecurityScanCallback; // 43: ifnull +12 -> 55 // 46: aload_0 // 47: getfield 50 com/cleanmaster/function/security/scan/engine/l:b Lcom/cleanmaster/function/security/scan/engine/ISecurityScanCallback; // 50: invokeinterface 119 1 0 // 55: aconst_null // 56: astore_2 // 57: aload_0 // 58: getfield 48 com/cleanmaster/function/security/scan/engine/l:a Landroid/content/Context; // 61: invokevirtual 125 android/content/Context:getPackageManager ()Landroid/content/pm/PackageManager; // 64: iconst_0 // 65: invokevirtual 131 android/content/pm/PackageManager:getInstalledPackages (I)Ljava/util/List; // 68: astore_3 // 69: aload_3 // 70: astore_2 // 71: aload_0 // 72: getfield 41 com/cleanmaster/function/security/scan/engine/l:k I // 75: iconst_2 // 76: iand // 77: ifeq +31 -> 108 // 80: aload_0 // 81: new 69 com/cleanmaster/function/security/scan/engine/a // 84: dup // 85: aload_0 // 86: getfield 48 com/cleanmaster/function/security/scan/engine/l:a Landroid/content/Context; // 89: aload_0 // 90: getfield 39 com/cleanmaster/function/security/scan/engine/l:j Lcom/cleanmaster/function/security/scan/engine/e; // 93: aload_2 // 94: iconst_1 // 95: invokespecial 134 com/cleanmaster/function/security/scan/engine/a:<init> (Landroid/content/Context;Lcom/cleanmaster/function/security/scan/engine/e;Ljava/util/List;Z)V // 98: putfield 67 com/cleanmaster/function/security/scan/engine/l:i Lcom/cleanmaster/function/security/scan/engine/a; // 101: aload_0 // 102: getfield 67 com/cleanmaster/function/security/scan/engine/l:i Lcom/cleanmaster/function/security/scan/engine/a; // 105: invokevirtual 137 com/cleanmaster/function/security/scan/engine/a:start ()V // 108: aload 4 // 110: monitorexit // 111: return // 112: astore_2 // 113: aload_2 // 114: invokevirtual 110 android/os/RemoteException:printStackTrace ()V // 117: goto -62 -> 55 // 120: astore_2 // 121: aload 4 // 123: monitorexit // 124: aload_2 // 125: athrow // 126: astore_3 // 127: goto -56 -> 71 // Local variable table: // start length slot name signature // 0 130 0 this l // 33 4 1 m int // 56 38 2 localObject1 Object // 112 2 2 localRemoteException RemoteException // 120 5 2 localObject2 Object // 68 2 3 localList java.util.List // 126 1 3 localException Exception // 4 118 4 arrayOfByte byte[] // Exception table: // from to target type // 39 55 112 android/os/RemoteException // 9 34 120 finally // 39 55 120 finally // 57 69 120 finally // 71 108 120 finally // 108 111 120 finally // 113 117 120 finally // 121 124 120 finally // 57 69 126 java/lang/Exception } }
[ "ibrahimkanj@outlook.com" ]
ibrahimkanj@outlook.com
435ecf20fc6801895431e031e3caf43df0c2298c
0fe412c5e3fd375a829dd327f319c8624660bd52
/src/cn/cherry/se/d_thread_othercomponent/CallableTest.java
643b042445f59534ec63a10fefc5ca2b75a3addc
[]
no_license
gyoomi/cherry
3dfff9bfd622c5751020a4a4006b8938488b8652
6935a0792f278308eaa5d8fbb54cf9e1278b2a87
refs/heads/master
2020-03-09T12:20:12.358931
2018-08-19T08:32:33
2018-08-19T08:32:33
128,775,887
0
0
null
null
null
null
UTF-8
Java
false
false
1,253
java
/** * Copyright © 2018, TaoDing * <p> * All Rights Reserved. */ package cn.cherry.se.d_thread_othercomponent; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; /** * Callable+Future使用示例 * * @author Leon * @version 2018/5/11 15:00 */ public class CallableTest { static class CallableThread implements Callable<String> { @Override public String call() throws Exception { System.out.println("进入CallableThread的call()方法,开始睡觉,睡觉时间为:" + System.currentTimeMillis()); Thread.sleep(10000); return "123"; } } public static void main(String[] args) throws Exception{ ExecutorService es = Executors.newCachedThreadPool(); CallableThread ct = new CallableThread(); Future<String> f = es.submit(ct); es.shutdown(); Thread.sleep(5000); System.out.println("主线程等待5秒,当前Time = " + System.currentTimeMillis()); String str = f.get(); System.out.println("Future已拿到数据,str = " + str + " 当前时间为:" + System.currentTimeMillis()); } }
[ "gyoomi0709@foxmail.com" ]
gyoomi0709@foxmail.com
454f90e734c539bf8f9ae5d1b1112312442806d2
deafb13f36b59f0b2b3e996d1b77a7c191ec5a48
/src/com/jinzht/pro/qiniu/http/AsyncHttpClientMod.java
18f79c9eda3ff550f2c5e01f3904a38419da61f9
[]
no_license
zanqging/PE
464f7393b295e0f12a0d50d829456ddfca12c911
09b3bfcdf489784dc3a55362b90ce08c1269df66
refs/heads/master
2021-01-01T05:17:17.481757
2016-04-13T09:04:01
2016-04-13T09:04:04
56,134,315
0
0
null
null
null
null
UTF-8
Java
false
false
1,142
java
package com.jinzht.pro.qiniu.http; import com.loopj.android.http.AsyncHttpClient; import com.qiniu.android.dns.DnsManager; import org.apache.http.conn.ClientConnectionManager; import org.apache.http.conn.scheme.SchemeRegistry; import org.apache.http.params.BasicHttpParams; /** * Created by bailong on 15/7/4. */ public final class AsyncHttpClientMod extends AsyncHttpClient { static final ThreadLocal<DnsManager> local = new ThreadLocal<>(); static final ThreadLocal<String> ip = new ThreadLocal<>(); private final DnsManager dns; private AsyncHttpClientMod(DnsManager dns) { this.dns = dns; } public static AsyncHttpClientMod create(DnsManager dns) { local.set(dns); AsyncHttpClientMod a = new AsyncHttpClientMod(dns); local.remove(); return a; } //在父类构造函数中调用 @Override protected ClientConnectionManager createConnectionManager(SchemeRegistry schemeRegistry, BasicHttpParams httpParams) { DnsManager d = dns == null ? local.get() : dns; return new ThreadSafeClientConnManager(httpParams, schemeRegistry, d); } }
[ "csz1126@0314" ]
csz1126@0314
1063c4cd63e6e9a8080cc166438f4d5c653f0329
4aaa8ea32f59428eb10c8fc18b5701617c0117a5
/core/src/main/java/com/first1444/frc/robot2019/deepspace/SlotLevel.java
ecc493a3667e792a7e942b1262b72c3750014fc0
[]
no_license
frc1444/robot2019-sim
98005c9f7b9d82063fc8648a4f2f003916be533a
792eb63a137bb12b8f3fb32a07ee07c6efdc0fa4
refs/heads/master
2020-09-09T02:00:27.038342
2020-01-22T00:14:47
2020-01-22T00:14:47
221,310,308
1
0
null
null
null
null
UTF-8
Java
false
false
307
java
package com.first1444.frc.robot2019.deepspace; public enum SlotLevel { /** Refers to the level 1 hatch, level 1 cargo, or cargo ship cargo, depending on context*/ LEVEL1, /** Refers to level 2 hatch or level 2 cargo*/ LEVEL2, /** Refers to level 3 hatch or level 3 cargo*/ LEVEL3 }
[ "retrodaredevil@gmail.com" ]
retrodaredevil@gmail.com
fa1c34e9ca014c85e02d2361615ab3d8bbf916bd
be020210b88d5e59936db53043ae325bc9927173
/src-ui/org/pentaho/di/ui/core/dialog/EnterNumberDialog.java
1f3323b3a62324ed82703fb63958d759d818600f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cskason/pentaho-kettle4.4
124a245e26789ab81cfbea767f2a1d635de0917c
d59882f7076588e2cd007ac9bda5c95edc0bee19
refs/heads/master
2021-01-20T01:52:52.888969
2017-08-07T09:05:38
2017-08-07T09:05:38
89,341,173
0
0
null
null
null
null
UTF-8
Java
false
false
6,949
java
/******************************************************************************* * * Pentaho Data Integration * * Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * 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.pentaho.di.ui.core.dialog; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.ShellAdapter; import org.eclipse.swt.events.ShellEvent; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.MessageBox; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.pentaho.di.core.Const; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.ui.core.PropsUI; import org.pentaho.di.ui.core.gui.GUIResource; import org.pentaho.di.ui.core.gui.WindowProperty; import org.pentaho.di.ui.trans.step.BaseStepDialog; /** * This dialog allows you to enter a number. * * @author Matt * @since 19-06-2003 */ public class EnterNumberDialog extends Dialog { private static Class<?> PKG = EnterNumberDialog.class; // for i18n purposes, needed by Translator2!! $NON-NLS-1$ private Label wlNumber; private Text wNumber; private FormData fdlNumber, fdNumber; private Button wOK, wCancel; private Listener lsOK, lsCancel; private boolean hideCancelButton; private Shell shell; private SelectionAdapter lsDef; private int samples; private String shellText; private String lineText; private PropsUI props; /** * @deprecated Use the CT without the <i>Props</i> parameter (at 2nd position) */ public EnterNumberDialog(Shell parent, PropsUI props, int samples, String shellText, String lineText) { super(parent, SWT.NONE); this.props = props; this.samples = samples; this.shellText = shellText; this.lineText = lineText; } public EnterNumberDialog(Shell parent, int samples, String shellText, String lineText) { super(parent, SWT.NONE); this.props = PropsUI.getInstance(); this.samples = samples; this.shellText = shellText; this.lineText = lineText; } public int open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE); props.setLook(shell); shell.setImage(GUIResource.getInstance().getImageSpoon()); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(shellText); int length = Const.LENGTH; int margin = Const.MARGIN; // From step line wlNumber = new Label(shell, SWT.NONE); wlNumber.setText(lineText); props.setLook(wlNumber); fdlNumber = new FormData(); fdlNumber.left = new FormAttachment(0, 0); fdlNumber.top = new FormAttachment(0, margin); wlNumber.setLayoutData(fdlNumber); wNumber = new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wNumber.setText("100"); props.setLook(wNumber); fdNumber = new FormData(); fdNumber.left = new FormAttachment(0, 0); fdNumber.top = new FormAttachment(wlNumber, margin); fdNumber.right = new FormAttachment(0, length); wNumber.setLayoutData(fdNumber); // Some buttons Button[] buttons=null; wOK = new Button(shell, SWT.PUSH); wOK.setText(BaseMessages.getString(PKG, "System.Button.OK")); if (!hideCancelButton) { wCancel = new Button(shell, SWT.PUSH); wCancel.setText(BaseMessages.getString(PKG, "System.Button.Cancel")); buttons = new Button[] { wOK, wCancel }; } else { buttons = new Button[] { wOK }; } BaseStepDialog.positionBottomButtons(shell, buttons, margin, wNumber); // Add listeners lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; if (!hideCancelButton) { lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; } wOK.addListener (SWT.Selection, lsOK ); wCancel.addListener(SWT.Selection, lsCancel ); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wNumber.addSelectionListener(lsDef); // Detect [X] or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); getData(); BaseStepDialog.setSize(shell); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return samples; } public void dispose() { props.setScreen(new WindowProperty(shell)); shell.dispose(); } public void getData() { wNumber.setText(Integer.toString(samples)); wNumber.selectAll(); } private void cancel() { samples = -1; dispose(); } private void ok() { try { samples = Integer.parseInt(wNumber.getText()); dispose(); } catch (Exception e) { MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR); mb.setMessage(BaseMessages.getString(PKG, "Dialog.Error.EnterInteger")); mb.setText(BaseMessages.getString(PKG, "Dialog.Error.Header")); mb.open(); wNumber.selectAll(); } } public void setHideCancel(boolean hideCancel) { hideCancelButton = hideCancel; } }
[ "cskason@gmail.com" ]
cskason@gmail.com
74758bd038c3f1882f48852624cb9f2d0cf5ac9f
9b01ffa3db998c4bca312fd28aa977f370c212e4
/app/src/streamA/java/com/loki/singlemoduleapp/stub/SampleClass612.java
5aee0dabea2f76328cebed61461ac81fd009f75e
[]
no_license
SergiiGrechukha/SingleModuleApp
932488a197cb0936785caf0e73f592ceaa842f46
b7fefea9f83fd55dbbb96b506c931cc530a4818a
refs/heads/master
2022-05-13T17:15:21.445747
2017-07-30T09:55:36
2017-07-30T09:56:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
358
java
package stub; import com.jenzz.pojobuilder.api.Builder; import com.jenzz.pojobuilder.api.Ignore; @Builder public class SampleClass612 { @Ignore private SampleClass613 sampleClass; public SampleClass612() { sampleClass = new SampleClass613(); } public String getClassName() { return sampleClass.getClassName(); } }
[ "sergey.grechukha@gmail.com" ]
sergey.grechukha@gmail.com
75a82f729a9ac5ac8a45aed6c2d40f3cb7b9ae6e
687fbe32adf4099d511abb4d458bfcf9e6be650e
/LayerCanvasDemo/app/src/androidTest/java/com/iamasoldier6/layercanvasdemo/ApplicationTest.java
dcbf9531c967d74fb89c60aad9d4b065d3771bdf
[]
no_license
brucejing/AndroidExerciseDemos
2b7b0e5bd38ac3d1c9def8d2bf82fd63526c9e57
02df9d0821e6da016881582d3ad31f1b5180029e
refs/heads/master
2020-06-17T16:38:25.534323
2018-05-06T06:19:35
2018-05-06T06:19:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
363
java
package com.iamasoldier6.layercanvasdemo; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
[ "iamasoldiersix@gmail.com" ]
iamasoldiersix@gmail.com
638ef56bb7b97761c7a47d26a91d1aca843ceb67
e27942cce249f7d62b7dc8c9b86cd40391c1ddd4
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201708/cm/ConversionTrackerOperation.java
9f0b9668099f178a7d70686ff9581c965a153760
[ "Apache-2.0" ]
permissive
mo4ss/googleads-java-lib
b4b6178747d25d16ae6aa0c80d80ee18a2dfe01a
efaa9c3bd8a46a3ed4b00963dc9760c6dd8bd641
refs/heads/master
2022-12-05T00:30:56.740813
2022-11-16T10:47:15
2022-11-16T10:47:15
108,132,394
0
0
Apache-2.0
2022-11-16T10:47:16
2017-10-24T13:41:43
Java
UTF-8
Java
false
false
2,218
java
// Copyright 2017 Google 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.google.api.ads.adwords.jaxws.v201708.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * Operations for conversion tracker. * * * <p>Java class for ConversionTrackerOperation complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="ConversionTrackerOperation"> * &lt;complexContent> * &lt;extension base="{https://adwords.google.com/api/adwords/cm/v201708}Operation"> * &lt;sequence> * &lt;element name="operand" type="{https://adwords.google.com/api/adwords/cm/v201708}ConversionTracker" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ConversionTrackerOperation", propOrder = { "operand" }) public class ConversionTrackerOperation extends Operation { protected ConversionTracker operand; /** * Gets the value of the operand property. * * @return * possible object is * {@link ConversionTracker } * */ public ConversionTracker getOperand() { return operand; } /** * Sets the value of the operand property. * * @param value * allowed object is * {@link ConversionTracker } * */ public void setOperand(ConversionTracker value) { this.operand = value; } }
[ "jradcliff@users.noreply.github.com" ]
jradcliff@users.noreply.github.com
15bf30eece94361338e81607b0b09ec7e879e988
cf2a7c8b42ed5776ed592534ff7a376a0b8a37a3
/com/planet_ink/coffee_mud/Races/Svirfneblin.java
710b05d66f4006d3eefefd75b0877f90f145b811
[ "Apache-2.0" ]
permissive
renokun/CoffeeMud
bb9318c69303c7d2d805426abb5396ebb44ed2de
a35127725ccc953cb28673314ed74384ebc47943
refs/heads/master
2021-01-17T15:45:22.618450
2015-06-20T19:32:21
2015-06-20T19:32:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,674
java
package com.planet_ink.coffee_mud.Races; 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 2008-2015 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. */ @SuppressWarnings({"unchecked","rawtypes"}) public class Svirfneblin extends StdRace { @Override public String ID(){ return "Svirfneblin"; } @Override public String name(){ return "Svirfneblin"; } @Override public int shortestMale(){return 40;} @Override public int shortestFemale(){return 36;} @Override public int heightVariance(){return 6;} @Override public int lightestWeight(){return 60;} @Override public int weightVariance(){return 50;} @Override public long forbiddenWornBits(){return 0;} @Override public String racialCategory(){return "Gnome";} private final String[]culturalAbilityNames={"Gnomish","Digging","Undercommon"}; private final int[]culturalAbilityProficiencies={100,50,25}; @Override public String[] culturalAbilityNames(){return culturalAbilityNames;} @Override public int[] culturalAbilityProficiencies(){return culturalAbilityProficiencies;} // an ey ea he ne ar ha to le fo no gi mo wa ta wi private static final int[] parts={0 ,2 ,2 ,1 ,1 ,2 ,2 ,1 ,2 ,2 ,1 ,0 ,1 ,1 ,0 ,0 }; @Override public int[] bodyMask(){return parts;} private final int[] agingChart={0,1,5,40,100,150,200,230,260}; @Override public int[] getAgingChart(){return agingChart;} protected static Vector<RawMaterial> resources=new Vector<RawMaterial>(); @Override public void affectPhyStats(Physical affected, PhyStats affectableStats) { super.affectPhyStats(affected,affectableStats); affectableStats.setSensesMask(affectableStats.sensesMask()|PhyStats.CAN_SEE_INFRARED); } @Override public void affectCharStats(MOB affectedMOB, CharStats affectableStats) { super.affectCharStats(affectedMOB, affectableStats); affectableStats.setStat(CharStats.STAT_STRENGTH,affectableStats.getStat(CharStats.STAT_STRENGTH)+2); affectableStats.setStat(CharStats.STAT_MAX_STRENGTH_ADJ,affectableStats.getStat(CharStats.STAT_MAX_STRENGTH_ADJ)+2); affectableStats.setStat(CharStats.STAT_CONSTITUTION,affectableStats.getStat(CharStats.STAT_CONSTITUTION)-2); affectableStats.setStat(CharStats.STAT_MAX_CONSTITUTION_ADJ,affectableStats.getStat(CharStats.STAT_MAX_CONSTITUTION_ADJ)-2); affectableStats.setStat(CharStats.STAT_INTELLIGENCE,affectableStats.getStat(CharStats.STAT_INTELLIGENCE)+1); affectableStats.setStat(CharStats.STAT_MAX_INTELLIGENCE_ADJ,affectableStats.getStat(CharStats.STAT_MAX_INTELLIGENCE_ADJ)+1); affectableStats.setStat(CharStats.STAT_WISDOM,affectableStats.getStat(CharStats.STAT_WISDOM)-1); affectableStats.setStat(CharStats.STAT_MAX_WISDOM_ADJ,affectableStats.getStat(CharStats.STAT_MAX_WISDOM_ADJ)-1); affectableStats.setStat(CharStats.STAT_SAVE_MIND,affectableStats.getStat(CharStats.STAT_SAVE_MIND)+10); affectableStats.setStat(CharStats.STAT_SAVE_OVERLOOKING,affectableStats.getStat(CharStats.STAT_SAVE_OVERLOOKING)+10); } @Override public List<Item> outfit(MOB myChar) { if(outfitChoices==null) { outfitChoices=new Vector(); // Have to, since it requires use of special constructor final Armor s1=CMClass.getArmor("GenShirt"); s1.setName(L("a small patchy scale tunic")); s1.setDisplayText(L("a small patchy scale tunic has been left here.")); s1.setDescription(L("This small tunic is made of bits and pieces of several scaley hides, it seems. There are lots of tiny hidden compartments on it, and loops for hanging tools.")); s1.text(); outfitChoices.add(s1); final Armor s2=CMClass.getArmor("GenShoes"); s2.setName(L("a pair of small scaley shoes")); s2.setDisplayText(L("a pair of small scaley shoes lie here.")); s2.setDescription(L("This pair of small scaley shoes appears to be a hodgepodge of scaley materials and workmanship.")); s2.text(); outfitChoices.add(s2); final Armor p1=CMClass.getArmor("GenPants"); p1.setName(L("a pair of small patchy scale pants")); p1.setDisplayText(L("a pair of small patchy scale pants lie here.")); p1.setDescription(L("This pair of small pants is made of bits and pieces of several scaley hides, it seems. There are lots of tiny hidden compartments on it, and loops for hanging tools.")); p1.text(); outfitChoices.add(p1); final Armor s3=CMClass.getArmor("GenBelt"); outfitChoices.add(s3); } return outfitChoices; } @Override public Weapon myNaturalWeapon() { return funHumanoidWeapon(); } @Override public String healthText(MOB viewer, MOB mob) { final double pct=(CMath.div(mob.curState().getHitPoints(),mob.maxState().getHitPoints())); if(pct<.10) return L("^r@x1^r is curiously close to death.^N",mob.name(viewer)); else if(pct<.20) return L("^r@x1^r is covered in excessive bloody wounds.^N",mob.name(viewer)); else if(pct<.30) return L("^r@x1^r is bleeding badly from a plethora of small wounds.^N",mob.name(viewer)); else if(pct<.40) return L("^y@x1^y has numerous bloody wounds and unexpected gashes.^N",mob.name(viewer)); else if(pct<.50) return L("^y@x1^y has some alarming wounds and small gashes.^N",mob.name(viewer)); else if(pct<.60) return L("^p@x1^p has some small unwanted bloody wounds.^N",mob.name(viewer)); else if(pct<.70) return L("^p@x1^p is cut and bruised in strange places.^N",mob.name(viewer)); else if(pct<.80) return L("^g@x1^g has some small cuts and bruises.^N",mob.name(viewer)); else if(pct<.90) return L("^g@x1^g has a few bruises and interesting scratches.^N",mob.name(viewer)); else if(pct<.99) return L("^g@x1^g has a few small curious bruises.^N",mob.name(viewer)); else return L("^c@x1^c is in perfect health.^N",mob.name(viewer)); } @Override public List<RawMaterial> myResources() { synchronized(resources) { if(resources.size()==0) { resources.addElement(makeResource ("a pair of "+name().toLowerCase()+" eyes",RawMaterial.RESOURCE_MEAT)); resources.addElement(makeResource ("some "+name().toLowerCase()+" blood",RawMaterial.RESOURCE_BLOOD)); resources.addElement(makeResource ("a pile of "+name().toLowerCase()+" bones",RawMaterial.RESOURCE_BONE)); } } return resources; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
daa9b19a62066460106d5bf47500cfe995e6d902
a832174809c324b0f99152fe49461f8339805c8f
/app/src/main/java/com/s2paa/Listener/AttendanceListener.java
12e84755a686146ed4ce7e790ffd52153b1aac3f
[]
no_license
nisargtrivedi/S2p
e247b6ad45b5451a6e4e43f81872fb4a562b7908
d51f0c2dabd6692233731b42f11b79a58edb51b2
refs/heads/main
2023-01-08T10:02:53.068152
2020-11-10T06:39:30
2020-11-10T06:39:30
311,568,886
0
0
null
null
null
null
UTF-8
Java
false
false
135
java
package com.s2paa.Listener; /** * Created by admin on 8/4/2017. */ public interface AttendanceListener { void Item_Click(); }
[ "nisarg.trivedi@vovance.com" ]
nisarg.trivedi@vovance.com
574bed088c6eb4e00c1d3db44305d4f6811b6bc1
58afe8815f26dd6d9703d1cd9131fc7a4bdba09a
/predavanja/primeri-java/src/rs/math/oop1/z190300/javaNiti/z99/neuhvaceniIzuzeci/TestUncaughtExceptionHandler.java
199eb488eaa94282c8330b7f34fa5fb2efdf8151
[ "MIT" ]
permissive
MatfOOP/OOP
098213709417006ccb13519eea7208d9e6f32900
98eea2bb90c23973ad80c56dfcba42eaf1757b71
refs/heads/master
2023-07-07T01:34:49.955311
2023-06-30T17:13:48
2023-06-30T17:13:48
138,500,698
7
0
null
null
null
null
UTF-8
Java
false
false
1,072
java
package rs.math.oop1.z190300.javaNiti.z99.neuhvaceniIzuzeci; import java.lang.Thread.UncaughtExceptionHandler; public class TestUncaughtExceptionHandler { public static void main(String[] args) { // podrazumevani (globalni) handler koji ce se pozivati ukoliko za nit nije postavljen sopstveni handler Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() { @Override public void uncaughtException(Thread t, Throwable e) { System.out.println("Default handler: Nit " + t.getName() + " je dovela do izbacivanja RuntimeException: " + e); } }); // drugi argument konstruktora je ime niti Thread t1 = new Thread(new Nit(" 123"), "* 123*"); t1.setUncaughtExceptionHandler(new UncaughtExceptionHandler() { @Override public void uncaughtException(Thread t, Throwable e) { System.out.println("t1 handler: Nit " + t.getName() + " je dovela do izbacivanja RuntimeException: " + e); } }); t1.start(); new Thread(new Nit(" 234"), "* 234*").start(); new Thread(new Nit("345"), "*345*").start(); } }
[ "vladofilipovic@hotmail.com" ]
vladofilipovic@hotmail.com
1ec9e0389e0c9ae6c7137a222c0376de1fe78cf4
2a3f19a4a2b91d9d715378aadb0b1557997ffafe
/sources/com/facebook/stetho/common/android/FragmentCompatFramework.java
2e3e408a4f6b8910604517ab90a9a5197fa1912f
[]
no_license
amelieko/McDonalds-java
ce5062f863f7f1cbe2677938a67db940c379d0a9
2fe00d672caaa7b97c4ff3acdb0e1678669b0300
refs/heads/master
2022-01-09T22:10:40.360630
2019-04-21T14:47:20
2019-04-21T14:47:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,122
java
package com.facebook.stetho.common.android; import android.annotation.TargetApi; import android.app.Activity; import android.app.Dialog; import android.app.DialogFragment; import android.app.Fragment; import android.app.FragmentManager; import android.content.res.Resources; import android.os.Build.VERSION; import android.view.View; import javax.annotation.Nullable; @TargetApi(11) final class FragmentCompatFramework extends FragmentCompat<Fragment, DialogFragment, FragmentManager, Activity> { private static final DialogFragmentAccessorFramework sDialogFragmentAccessor = new DialogFragmentAccessorFramework(sFragmentAccessor); private static final FragmentAccessorFrameworkHoneycomb sFragmentAccessor; private static final FragmentActivityAccessorFramework sFragmentActivityAccessor = new FragmentActivityAccessorFramework(); private static final FragmentManagerAccessorViaReflection<FragmentManager, Fragment> sFragmentManagerAccessor = new FragmentManagerAccessorViaReflection(); private static class DialogFragmentAccessorFramework implements DialogFragmentAccessor<DialogFragment, Fragment, FragmentManager> { private final FragmentAccessor<Fragment, FragmentManager> mFragmentAccessor; public DialogFragmentAccessorFramework(FragmentAccessor<Fragment, FragmentManager> fragmentAccessor) { this.mFragmentAccessor = fragmentAccessor; } public Dialog getDialog(DialogFragment dialogFragment) { return dialogFragment.getDialog(); } @Nullable public FragmentManager getFragmentManager(Fragment fragment) { return (FragmentManager) this.mFragmentAccessor.getFragmentManager(fragment); } public Resources getResources(Fragment fragment) { return this.mFragmentAccessor.getResources(fragment); } public int getId(Fragment fragment) { return this.mFragmentAccessor.getId(fragment); } @Nullable public String getTag(Fragment fragment) { return this.mFragmentAccessor.getTag(fragment); } @Nullable public View getView(Fragment fragment) { return this.mFragmentAccessor.getView(fragment); } @Nullable public FragmentManager getChildFragmentManager(Fragment fragment) { return (FragmentManager) this.mFragmentAccessor.getChildFragmentManager(fragment); } } private static class FragmentAccessorFrameworkHoneycomb implements FragmentAccessor<Fragment, FragmentManager> { private FragmentAccessorFrameworkHoneycomb() { } @Nullable public FragmentManager getFragmentManager(Fragment fragment) { return fragment.getFragmentManager(); } public Resources getResources(Fragment fragment) { return fragment.getResources(); } public int getId(Fragment fragment) { return fragment.getId(); } @Nullable public String getTag(Fragment fragment) { return fragment.getTag(); } @Nullable public View getView(Fragment fragment) { return fragment.getView(); } @Nullable public FragmentManager getChildFragmentManager(Fragment fragment) { return null; } } @TargetApi(17) private static class FragmentAccessorFrameworkJellyBean extends FragmentAccessorFrameworkHoneycomb { private FragmentAccessorFrameworkJellyBean() { super(); } @Nullable public FragmentManager getChildFragmentManager(Fragment fragment) { return fragment.getChildFragmentManager(); } } private static class FragmentActivityAccessorFramework implements FragmentActivityAccessor<Activity, FragmentManager> { private FragmentActivityAccessorFramework() { } @Nullable public FragmentManager getFragmentManager(Activity activity) { return activity.getFragmentManager(); } } FragmentCompatFramework() { } static { if (VERSION.SDK_INT >= 17) { sFragmentAccessor = new FragmentAccessorFrameworkJellyBean(); } else { sFragmentAccessor = new FragmentAccessorFrameworkHoneycomb(); } } public Class<Fragment> getFragmentClass() { return Fragment.class; } public Class<DialogFragment> getDialogFragmentClass() { return DialogFragment.class; } public Class<Activity> getFragmentActivityClass() { return Activity.class; } public FragmentAccessorFrameworkHoneycomb forFragment() { return sFragmentAccessor; } public DialogFragmentAccessorFramework forDialogFragment() { return sDialogFragmentAccessor; } public FragmentManagerAccessorViaReflection<FragmentManager, Fragment> forFragmentManager() { return sFragmentManagerAccessor; } public FragmentActivityAccessorFramework forFragmentActivity() { return sFragmentActivityAccessor; } }
[ "makfc1234@gmail.com" ]
makfc1234@gmail.com
50ef50365bb8aa09e9c28fdf9a368d4004c127a5
77ab252244005f80fbfc33f8e931a41e65e83e5a
/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchDatabaseInitializer.java
20785e22228ed94f4d824ead9df354d3b2c3c230
[ "Apache-2.0" ]
permissive
llsydn/spring-boot
d4401969d8ca51937bda7736fabea82944417c39
b88906cf98c4aa307952d27696897b2d4384b7e8
refs/heads/master
2023-01-03T12:14:42.767063
2019-09-26T08:53:10
2019-09-26T08:53:10
171,982,414
2
1
Apache-2.0
2022-12-27T14:50:56
2019-02-22T02:44:30
Java
UTF-8
Java
false
false
1,781
java
/* * Copyright 2012-2016 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.autoconfigure.batch; import javax.sql.DataSource; import org.springframework.boot.autoconfigure.AbstractDatabaseInitializer; import org.springframework.core.io.ResourceLoader; import org.springframework.util.Assert; /** * Initialize the Spring Batch schema (ignoring errors, so should be idempotent). * * @author Dave Syer * @author Vedran Pavic */ public class BatchDatabaseInitializer extends AbstractDatabaseInitializer { private final BatchProperties properties; public BatchDatabaseInitializer(DataSource dataSource, ResourceLoader resourceLoader, BatchProperties properties) { super(dataSource, resourceLoader); Assert.notNull(properties, "BatchProperties must not be null"); this.properties = properties; } @Override protected boolean isEnabled() { return this.properties.getInitializer().isEnabled(); } @Override protected String getSchemaLocation() { return this.properties.getSchema(); } @Override protected String getDatabaseName() { String databaseName = super.getDatabaseName(); if ("oracle".equals(databaseName)) { return "oracle10g"; } return databaseName; } }
[ "1091391667@qq.com" ]
1091391667@qq.com
88003607d27f14ffaa25dc301a8934e771f1f102
9573f936174ccbcda704e1b83d596a3f093f727c
/OPERAcraft New/src 2015-11-04/minecraft/net/minecraft/src/BlockMycelium.java
e98505bd49a5fffb020767837ab92c831082c614
[]
no_license
operacraft/Minecraft
17466d8538be6253f4d689926d177614c6accf5b
89c4012b11cf5fa118cd5e63b0f51d03ee1ddc09
refs/heads/master
2021-01-10T05:54:10.056575
2016-02-24T15:54:29
2016-02-24T15:54:49
51,405,369
1
2
null
null
null
null
UTF-8
Java
false
false
3,867
java
package net.minecraft.src; import java.util.Random; public class BlockMycelium extends Block { private Icon field_94422_a; private Icon field_94421_b; protected BlockMycelium(int par1) { super(par1, Material.grass); this.setTickRandomly(true); this.setCreativeTab(CreativeTabs.tabBlock); } /** * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata */ public Icon getIcon(int par1, int par2) { return par1 == 1 ? this.field_94422_a : (par1 == 0 ? Block.dirt.getBlockTextureFromSide(par1) : this.blockIcon); } /** * Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side */ public Icon getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) { if (par5 == 1) { return this.field_94422_a; } else if (par5 == 0) { return Block.dirt.getBlockTextureFromSide(par5); } else { Material var6 = par1IBlockAccess.getBlockMaterial(par2, par3 + 1, par4); return var6 != Material.snow && var6 != Material.craftedSnow ? this.blockIcon : this.field_94421_b; } } /** * When this method is called, your block should register all the icons it needs with the given IconRegister. This * is the only chance you get to register icons. */ public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("mycel_side"); this.field_94422_a = par1IconRegister.registerIcon("mycel_top"); this.field_94421_b = par1IconRegister.registerIcon("snow_side"); } /** * Ticks the block if it's been scheduled */ public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { if (!par1World.isRemote) { if (par1World.getBlockLightValue(par2, par3 + 1, par4) < 4 && Block.lightOpacity[par1World.getBlockId(par2, par3 + 1, par4)] > 2) { par1World.setBlock(par2, par3, par4, Block.dirt.blockID); } else if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9) { for (int var6 = 0; var6 < 4; ++var6) { int var7 = par2 + par5Random.nextInt(3) - 1; int var8 = par3 + par5Random.nextInt(5) - 3; int var9 = par4 + par5Random.nextInt(3) - 1; int var10 = par1World.getBlockId(var7, var8 + 1, var9); if (par1World.getBlockId(var7, var8, var9) == Block.dirt.blockID && par1World.getBlockLightValue(var7, var8 + 1, var9) >= 4 && Block.lightOpacity[var10] <= 2) { par1World.setBlock(var7, var8, var9, this.blockID); } } } } } /** * A randomly called display update to be able to add particles or other items for display */ public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) { super.randomDisplayTick(par1World, par2, par3, par4, par5Random); if (par5Random.nextInt(10) == 0) { par1World.spawnParticle("townaura", (double)((float)par2 + par5Random.nextFloat()), (double)((float)par3 + 1.1F), (double)((float)par4 + par5Random.nextFloat()), 0.0D, 0.0D, 0.0D); } } /** * Returns the ID of the items to drop on destruction. */ public int idDropped(int par1, Random par2Random, int par3) { return Block.dirt.idDropped(0, par2Random, par3); } }
[ "operacraft@googlegroups.com" ]
operacraft@googlegroups.com
39df88ca7e48e22895e2f8847f70fe6fd50eb483
59c911e0268dd1899898ee0c0af6bcab4684444c
/app/src/main/java/com/smm/sapp/sproject/Fragments/CurrentAccountFragment.java
be275779efb53823559e037fc6cdb753a7c1de44
[]
no_license
HodaTabasi/DesignProject
24af0e772ab25ded3b4747e345cfa70728edb8ff
eee86ef5e1ea77161f58ebd2ef700c7d94269759
refs/heads/master
2020-03-27T07:07:27.369352
2019-12-25T11:54:14
2019-12-25T11:54:14
146,164,430
0
0
null
2018-11-09T22:19:06
2018-08-26T08:34:15
Java
UTF-8
Java
false
false
4,668
java
package com.smm.sapp.sproject.Fragments; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.smm.sapp.sproject.ConstantInterFace; import com.smm.sapp.sproject.HelperClass.MyProgressDialog; import com.smm.sapp.sproject.MyRequest; import com.smm.sapp.sproject.OkHttpCallback; import com.smm.sapp.sproject.R; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import java.util.HashMap; import java.util.Map; import me.anwarshahriar.calligrapher.Calligrapher; import okhttp3.Call; import okhttp3.Response; /** * A simple {@link Fragment} subclass. */ public class CurrentAccountFragment extends Fragment { /** * 0.00 */ private TextView mHangingCuBalance; /** * 0.00 */ private TextView mTotalCuBalance; /** * 0.00 */ private TextView mRetractableCuBalance; /** * 0.00 */ private TextView mAvailableCuBalance; ImageView ic_back; public CurrentAccountFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_current_account, container, false); } private void initView() { mHangingCuBalance = getView().findViewById(R.id.hanging_cu_balance); mTotalCuBalance = getView().findViewById(R.id.total_cu_balance); mRetractableCuBalance = getView().findViewById(R.id.retractable_cu_balance); mAvailableCuBalance = getView().findViewById(R.id.available_cu_balance); ic_back = getView().findViewById(R.id.ic_back); } private void addCurrentAccountRequest() { MyRequest myRequest = new MyRequest(); MyProgressDialog.showDialog(getContext()); Map<String, String> stringMap = new HashMap<>(); stringMap.put("token", ConstantInterFace.USER.getToken()); myRequest.PostCall("http://smm.smmim.com/waell/public/api/mycredit", stringMap, new OkHttpCallback() { @Override public void onFailure(Call call, IOException e) { MyProgressDialog.dismissDialog(); Log.e("tag", e.getMessage()); } @Override public void onResponse(Call call, final Response response) throws IOException, JSONException { MyProgressDialog.dismissDialog(); // Log.e("tagr", response.body().string()); final JSONObject object = new JSONObject(response.body().string()); final JSONObject statusObject = object.getJSONObject("status"); getActivity().runOnUiThread(new Runnable() { @Override public void run() { try { if (statusObject.getBoolean("success")) { mHangingCuBalance.setText(object.getString("hanged")); mTotalCuBalance.setText(object.getString("all")); mRetractableCuBalance.setText(object.getString("drawable")); mAvailableCuBalance.setText(object.getString("avaliable")); // Toast.makeText(getContext(), " " + statusObject.getString("message"), Toast.LENGTH_SHORT).show(); } else { Toast.makeText(getContext(), " " + statusObject.getString("message"), Toast.LENGTH_SHORT).show(); } } catch (JSONException e) { e.printStackTrace(); } } }); } }); } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Calligrapher calligrapher = new Calligrapher(getContext()); calligrapher.setFont(getActivity(), "JFFlatregular.ttf", true); initView(); addCurrentAccountRequest(); ic_back.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getFragmentManager().popBackStack(); } }); } }
[ "you@example.com" ]
you@example.com
a5a91129f6a297afe2b0123070ede99a4a8b8cb7
0d11833d7b7235b25648d30e91d19f3b44f744ed
/src/main/java/svenhjol/meson/helper/SoundHelper.java
7e7497d3b9b65e894d131f6531c4405a7f465605
[ "MIT" ]
permissive
SokyranTheDragon/Charm
a43c033869f605c4d346e8514d8fd713d5184cc4
76e6906e30c24f4190564dd60a46d9f880a68457
refs/heads/master
2023-02-02T14:56:30.258515
2020-08-16T00:32:53
2020-08-16T00:32:53
286,748,472
0
0
MIT
2020-08-11T13:13:34
2020-08-11T13:13:33
null
UTF-8
Java
false
false
2,241
java
package svenhjol.meson.helper; import net.minecraft.client.Minecraft; import net.minecraft.client.audio.ISound; import net.minecraft.client.audio.SoundHandler; import net.minecraft.client.audio.SoundManager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.SoundCategory; import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.ReflectionHelper; import java.util.Map; import java.util.Random; public class SoundHelper { public static void playSoundAtPos(World world, BlockPos pos, SoundEvent sound, float volume, float pitch) { playSoundAtPos(world, pos, sound, SoundCategory.AMBIENT, volume, pitch); } public static void playSoundAtPos(World world, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) { world.playSound(pos.getX(), pos.getY(), pos.getZ(), sound, category, volume, pitch, false); } public static void playerSound(EntityPlayer player, SoundEvent sound, float volume, float pitch) { playerSound(player, sound, volume, pitch, SoundCategory.AMBIENT); } public static void playerSound(EntityPlayer player, SoundEvent sound, float volume, float pitch, SoundCategory category) { if (category == null) { category = SoundCategory.AMBIENT; } player.world.playSound(player, player.posX, player.posY, player.posZ, sound, category, volume, pitch); } public static void playerSound(EntityPlayer player, SoundEvent sound, float volume, float pitch, float pitchVariation, SoundCategory category) { pitch += (pitchVariation - (pitchVariation * new Random().nextFloat()) * 2); playerSound(player, sound, volume, pitch, category); } public static Map<String, ISound> getPlayingSounds() { return ReflectionHelper.getPrivateValue(SoundManager.class, getSoundManager(), ObfuscationHelper.Fields.PLAYING_SOUNDS); } public static SoundManager getSoundManager() { return ReflectionHelper.getPrivateValue(SoundHandler.class, Minecraft.getMinecraft().getSoundHandler(), ObfuscationHelper.Fields.SNDMANAGER); } }
[ "sven.hjol@protonmail.com" ]
sven.hjol@protonmail.com
8fab0ab36114abd4527c5de2e6a6320ee41cdc03
9e3c6b6a47c960e0b4dd235357983bc5b1855398
/yangjian-agent-plugins/agent-plugin-mysql/src/main/java/com/yametech/yangjian/agent/plugin/mysql/druid/sql/ast/statement/SQLSelectStatement.java
1ac79b8db1c1ee10ba705f9526123923f48717ec
[ "Apache-2.0" ]
permissive
liuzhaozhao/yangjian
d316586c59da6cba2e8a78c279016440e496a79e
6fb34080ce514d9ac83ed44c0a7051b24efac3fc
refs/heads/master
2021-02-28T23:07:52.485368
2020-03-09T07:17:50
2020-03-09T07:17:50
245,739,392
0
0
Apache-2.0
2020-03-08T02:31:22
2020-03-08T02:31:21
null
UTF-8
Java
false
false
2,680
java
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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.yametech.yangjian.agent.plugin.mysql.druid.sql.ast.statement; import java.util.Collections; import java.util.List; import com.yametech.yangjian.agent.plugin.mysql.druid.sql.ast.SQLCommentHint; import com.yametech.yangjian.agent.plugin.mysql.druid.sql.ast.SQLExpr; import com.yametech.yangjian.agent.plugin.mysql.druid.sql.ast.SQLObject; import com.yametech.yangjian.agent.plugin.mysql.druid.sql.ast.SQLStatementImpl; import com.yametech.yangjian.agent.plugin.mysql.druid.sql.visitor.SQLASTVisitor; public class SQLSelectStatement extends SQLStatementImpl { protected SQLSelect select; public SQLSelectStatement(){ } public SQLSelectStatement(String dbType){ super (dbType); } public SQLSelectStatement(SQLSelect select){ this.setSelect(select); } public SQLSelectStatement(SQLSelect select, String dbType){ this(dbType); this.setSelect(select); } public SQLSelect getSelect() { return this.select; } public void setSelect(SQLSelect select) { if (select != null) { select.setParent(this); } this.select = select; } public void output(StringBuffer buf) { this.select.output(buf); } protected void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, this.select); } visitor.endVisit(this); } public SQLSelectStatement clone() { SQLSelectStatement x = new SQLSelectStatement(); if (select != null) { x.setSelect(select.clone()); } if (headHints != null) { for (SQLCommentHint h : headHints) { SQLCommentHint h2 = h.clone(); h2.setParent(x); x.headHints.add(h2); } } return x; } @Override public List<SQLObject> getChildren() { return Collections.singletonList(select); } public boolean addWhere(SQLExpr where) { return select.addWhere(where); } }
[ "liming.d.pro@gmail.com" ]
liming.d.pro@gmail.com
e2cd4d95418bd6853bb170731eaf2eb05d4531fc
324f6c696c6d0ff8e3df7a89c431c65bc19950ae
/src/main/java/org/onvif/ver10/schema/Polygon.java
2b5463ad298f5a923302eb9168bed410c1e4972b
[]
no_license
nightdeveloper/WebCamera
731ebd81341bc43a20740b10b39651ab5f1c9110
be69873691c669da8a1f7e0edd35cc6d985a7a86
refs/heads/master
2021-01-01T20:42:59.190684
2017-07-31T18:16:02
2017-07-31T18:16:02
98,915,806
2
1
null
null
null
null
UTF-8
Java
false
false
1,835
java
package org.onvif.ver10.schema; 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 Polygon complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="Polygon"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="Point" type="{http://www.onvif.org/ver10/schema}Vector" maxOccurs="unbounded" minOccurs="3"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Polygon", propOrder = { "point" }) public class Polygon { @XmlElement(name = "Point", required = true) protected List<Vector> point; /** * Gets the value of the point 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 point property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPoint().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Vector } * * */ public List<Vector> getPoint() { if (point == null) { point = new ArrayList<Vector>(); } return this.point; } }
[ "pri@vate.localhost" ]
pri@vate.localhost
05d247d884270ada83a41ddf0c2715c0b307b095
dfe5caf190661c003619bfe7a7944c527c917ee4
/src/main/java/com/vmware/vim25/GuestRegValueQwordSpec.java
827641bc5b68c6152e45eb40ef3ce6d9b25c7b1a
[ "BSD-3-Clause" ]
permissive
timtasse/vijava
c9787f9f9b3116a01f70a89d6ea29cc4f6dc3cd0
5d75bc0bd212534d44f78e5a287abf3f909a2e8e
refs/heads/master
2023-06-01T08:20:39.601418
2022-10-31T12:43:24
2022-10-31T12:43:24
150,118,529
4
1
BSD-3-Clause
2023-05-01T21:19:53
2018-09-24T14:46:15
Java
UTF-8
Java
false
false
408
java
package com.vmware.vim25; /** * Created by Stefan Dilk {@literal <stefan.dilk@freenet.ag>} on 31.03.2018 * * @author Stefan Dilk <stefan.dilk@freenet.ag> * @since 6.0 */ public class GuestRegValueQwordSpec extends GuestRegValueDataSpec { public long value; public long getValue() { return value; } public void setValue(final long value) { this.value = value; } }
[ "stefan.dilk@freenet.ag" ]
stefan.dilk@freenet.ag