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
e587d127565a8c4b69d78d78e569d24d7ea269c8
ab8c50e2054c9a50ab14d2d1bdfa5153c47e936a
/java-core-lang/src/main/java/com/henryxi/java/core/lang/clazz/TestIsAssignedFrom.java
c205c4ac99563a477683d891a6c8b52d69a4215c
[]
no_license
HenryXi/java-core
c7e637d14e6469af6f69ad1ba959a4d4263613be
1c4cec5e8843ef444e860ccd064e859dcededf22
refs/heads/develop
2021-07-16T15:57:16.191848
2021-06-03T10:10:14
2021-06-03T10:10:14
54,711,864
1
1
null
2021-04-26T18:04:52
2016-03-25T10:22:37
Java
UTF-8
Java
false
false
558
java
package com.henryxi.java.core.lang.clazz; public class TestIsAssignedFrom { public static void main(String[] args) { System.out.println(TestInterface.class.isAssignableFrom(TestImpClazz.class)); System.out.println(TestImpClazz.class.isAssignableFrom(TestSubClazz.class)); System.out.println(TestImpClazz.class.isAssignableFrom(TestImpClazz.class)); System.out.println(TestImpClazz.class.isAssignableFrom(TestInterface.class)); System.out.println(TestSubClazz.class.isAssignableFrom(TestImpClazz.class)); } }
[ "xixiaoyong@xiaomi.com" ]
xixiaoyong@xiaomi.com
480863b83afcaa7b17897e5dc556276e912778e8
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-new-fitness/results/XWIKI-14599-16-27-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage/org/xwiki/job/AbstractJob_ESTest_scaffolding.java
0b0372b636598e99e204c0d2233fb898d410af2e
[ "MIT", "CC-BY-4.0" ]
permissive
STAMP-project/Botsing-basic-block-coverage-application
6c1095c6be945adc0be2b63bbec44f0014972793
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
refs/heads/master
2022-07-28T23:05:55.253779
2022-04-20T13:54:11
2022-04-20T13:54:11
285,771,370
0
0
null
null
null
null
UTF-8
Java
false
false
429
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon May 18 14:55:52 UTC 2020 */ package org.xwiki.job; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class AbstractJob_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
0cb706659d59d90f956eee907fb82bdfb51f4018
939eca99c5b48cc2c15b9699e6cbb0f13c8ce6d5
/DatBot.Interface/src/utils/d2o/modules/Effect.java
359c7fb15a2436a3758f1a5ef4b96b96ec2cbea5
[ "MIT" ]
permissive
ProjectBlackFalcon/DatBot
032a2ec70725ed497556480fd2d10907347dce69
1dd1af94c550272417a4b230e805988698cfbf3c
refs/heads/master
2022-07-22T11:01:58.837303
2022-07-12T09:10:30
2022-07-12T09:10:30
111,686,347
7
1
null
null
null
null
UTF-8
Java
false
false
1,350
java
package utils.d2o.modules; import utils.d2i.d2iManager; import utils.d2o.GameData; import utils.d2o.GameDataFileAccessor; public class Effect { public static final String MODULE = "Effects"; static { try { GameDataFileAccessor.getInstance().init(MODULE); } catch (Exception e) { e.printStackTrace(); } } public int id; public int descriptionId; public int iconId; public int characteristic; public int category; public String operator; public boolean showInTooltip; public boolean useDice; public boolean forceMinMax; public boolean boost; public boolean active; public int oppositeId; public int theoreticalDescriptionId; public int theoreticalPattern; public boolean showInSet; public int bonusType; public boolean useInFight; public int effectPriority; public int elementId; private String _description; private String _theoricDescription; public static Effect getEffectById(int id) { return (Effect) GameData.getObject(MODULE, id); } public String getDescription() { if(this._description == null) this._description = d2iManager.getText(this.descriptionId); return this._description; } public String getTheoreticalDescription() { if(this._theoricDescription == null) this._theoricDescription = d2iManager.getText(this.theoreticalDescriptionId); return this._theoricDescription; } }
[ "baptiste.beduneau@reseau.eseo.fr" ]
baptiste.beduneau@reseau.eseo.fr
67986a0075e6a1aee26378e9bf8c1f6edd64de54
6eebf619bdc1859f63c54bf26175ca6082ee0d4b
/template-pattern/src/test/java/top/kwseeker/pattern/template/clone/FastJsonDeepClone.java
cf401cd0a943e260e4446a22c21724cebfcb29e0
[]
no_license
kwseeker/design-pattern
ad7589691eb02f336f85aad4e4279c291a6515ab
6f28310c5de20469e4450878e28ccb213f27fbd1
refs/heads/master
2023-03-16T06:04:17.654577
2023-03-13T04:23:12
2023-03-13T04:23:12
193,307,817
0
0
null
2022-03-19T08:03:03
2019-06-23T04:54:03
Java
UTF-8
Java
false
false
1,980
java
package top.kwseeker.pattern.template.clone; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import lombok.Data; import org.junit.Assert; import org.junit.Test; /** * 测试通过序列化工具,深拷贝对象 */ public class FastJsonDeepClone { @Test public void testFastJsonDeepClone() { Address address = new Address(); address.setAddress("南山区南头街道"); Location location = new Location(); location.setProvince("广东省"); location.setCity("深圳"); location.setAddress(address); Person someone = new Person(); someone.setName("Arvin"); someone.setAge(18); someone.setLocation(location); String serializedSomeone = JSONObject.toJSONString(someone); Person copiedSomeone = JSON.parseObject(serializedSomeone, Person.class); System.out.println(serializedSomeone); System.out.println(JSONObject.toJSONString(copiedSomeone)); Address newAddr = new Address(); newAddr.setAddress("南山区西丽街道"); location.setAddress(newAddr); //拷贝获取的对象的对象成员和原对象的对象成员引用的是同一对象 System.out.println(JSONObject.toJSON(someone)); System.out.println(JSONObject.toJSONString(copiedSomeone)); } @Data static class Person { private String name; private int age; private Company company; private Location location; @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } } @Data static class Location { private String province; private String city; private Address address; } @Data static class Company { private String name; private String stockCode; } @Data static class Address { private String address; } }
[ "xiaohuileee@gmail.com" ]
xiaohuileee@gmail.com
3bc6b220ac111a30143d90fa9edf3df397c28178
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/28/28_9b3b2be2052232bc4aac040aa982b7122f8941b7/MenuItem/28_9b3b2be2052232bc4aac040aa982b7122f8941b7_MenuItem_s.java
3f70f6ced3de59be99ff1a2c5e907cf8759ba5ed
[]
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
7,262
java
/** * Copyright 2012 A24Group * * 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.ssgwt.client.ui.menu; import java.util.List; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.ui.Image; /** * This class will hold details for a menu item. This can be in different places * * @author Michael Barnard * @since 9 July 2012 */ public class MenuItem { /** * The place name of the menu item */ private String placeName; /** * The text to display on the menu item */ private String label; /** * The order in which to load the menu items */ private int iOrder; /** * whether this item should be defaultly selected */ private boolean defaultSelected; /** * The command action to perform when the item is selected */ private Command command; /** * The image to show when the button is selected */ private String selectedImage; /** * The image to show when the button is not selected */ private String unSelectedImage; /** * A list of sub menu items to use */ private List<MenuItem> subMenus; /** * The class constructor * * @param placeName - The place name of the menu item * @param label - The text to display on the menu item * @param iOrder - The order in which to load the menu items * @param defaultSelected - whether this item should be defaultly selected * @param command - The command action to perform when the item is selected */ public MenuItem(String placeName, String label, int iOrder, boolean defaultSelected, Command command) { this(placeName, label, iOrder, defaultSelected, command, null, null, null); } /** * The class constructor * * @param placeName - The place name of the menu item * @param label - The text to display on the menu item * @param iOrder - The order in which to load the menu items * @param defaultSelected - whether this item should be defaultly selected * @param command - The command action to perform when the item is selected * @param selectedImage - The image to show when the button is selected * @param unSelectedImage - The image to show when the button is not selected * @param subMenus - A list of sub menu items to use */ public MenuItem(String placeName, String label, int iOrder, boolean defaultSelected, Command command, String selectedImage, String unSelectedImage, List<MenuItem> subMenus) { this.placeName = placeName; this.label = label; this.iOrder = iOrder; this.defaultSelected = defaultSelected; this.command = command; this.selectedImage = selectedImage; this.unSelectedImage = unSelectedImage; this.subMenus = subMenus; } /** * Getter for the placename of the menu item * * @return the placename of the menu item */ public String getPlaceName() { return this.placeName; } /** * Setter for the placename * * @param placeName - The placename of the menu item */ public void setPlaceName(String placeName) { this.placeName = placeName; } /** * Getter for label of the menu item * * @return The label of the menu item */ public String getLabel() { return this.label; } /** * Setter got the label of the menu item * * @param label - The label that will be displayed on the menu item */ public void setLabel(String label) { this.label = label; } /** * Getter for the order of the current menu item * * @return The order of the current menu item */ public int getOrder() { return this.iOrder; } /** * Setter for the order that this button * * @param iOrder - The order of this menu item */ public void setOrder(int iOrder) { this.iOrder = iOrder; } /** * Getter for the default selected state of the menu item * * @return Whether the menu item should be defaultly selected */ public boolean isDefaultSelected() { return this.defaultSelected; } /** * Setter for the default selected state of the menu item * * @param defaultSelected - The default selected state of the menu item */ public void setDefaultSelected(boolean defaultSelected) { this.defaultSelected = defaultSelected; } /** * Getter for the command action of the menu item * * @return The command action for the menu item */ public Command getCommand() { return this.command; } /** * Setter for the command action of the menu item * * @param command - The command action of the menu item */ public void setCommand(Command command) { this.command = command; } /** * Getter for the selected image of the menu item * * @return The image of the menu item when it is selected */ public String getSelectedImage() { return this.selectedImage; } /** * Setter for the selected image of the menu item * * @param selectedImage - The image of the menu item when it is selected */ public void setSelectedImage(String selectedImage) { this.selectedImage = selectedImage; } /** * Getter for the unselected image of the menu item * * @return The unselected image of the menu item */ public String getUnSelectedImage() { return this.unSelectedImage; } /** * Setter for the not selected image of the menu item * * @param unSelectedImage - The image of the menu item when it is not selected */ public void setUnSelectedImage(String unSelectedImage) { this.unSelectedImage = unSelectedImage; } /** * Getter for the sub menu items of this menu item * * @return The sub menu items of this menu item */ public List<MenuItem> getSubMenus() { return this.subMenus; } /** * Setter for the sub menu items of this menu item * * @param subMenu - The sub menu items of this menu item */ public void setSubMenus(List<MenuItem> subMenus) { this.subMenus = subMenus; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
e1ae3f3e03ef828034c03aa157eacb40583a214e
ad32344c4c016cdf06ebb47af43ddaa5c6e2ac39
/alipay-service/alipay-service-3rdparty/src/main/java/com/alipay/api/response/AlipayOfflineMarketItemCreateResponse.java
13167fcc0458f4374f1c21a0576d8413dc4611a6
[]
no_license
leijuan1014/ljj-project
96f4bcded39ab3ff422ddf3cd515c38511d7524d
dda018e182c4c1229d5392d6d2ed16b0c7001fbd
refs/heads/master
2021-01-20T23:47:32.854069
2017-10-09T07:10:31
2017-10-09T07:10:31
101,843,379
0
0
null
null
null
null
UTF-8
Java
false
false
1,117
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.offline.market.item.create response. * * @author auto create * @since 1.0, 2017-04-20 15:17:55 */ public class AlipayOfflineMarketItemCreateResponse extends AlipayResponse { private static final long serialVersionUID = 3678679152599381722L; /** * 口碑体系内部商品的唯一标识,后续的增删改查接口都使用该ID作为主键 */ @ApiField("item_id") private String itemId; /** * 支持英文字母和数字,由开发者自行定义(不允许重复),在商品notify消息中也会带有该参数,以此标明本次notify消息是对哪个请求的回应 */ @ApiField("request_id") private String requestId; public void setItemId(String itemId) { this.itemId = itemId; } public String getItemId( ) { return this.itemId; } public void setRequestId(String requestId) { this.requestId = requestId; } public String getRequestId( ) { return this.requestId; } }
[ "leijuan1014@163.com" ]
leijuan1014@163.com
73811d3e5c360dc5906d057b809a9f80fb85dc13
cd4802766531a9ccf0fb54ca4b8ea4ddc15e31b5
/dist/game/data/scripts/handlers/effecthandlers/TeleportToSummon.java
a8d13f97c35563d94155443514ca9d6277080563
[]
no_license
singto53/underground
8933179b0d72418f4b9dc483a8f8998ef5268e3e
94264f5168165f0b17cc040955d4afd0ba436557
refs/heads/master
2021-01-13T10:30:20.094599
2016-12-11T20:32:47
2016-12-11T20:32:47
76,455,182
0
1
null
null
null
null
UTF-8
Java
false
false
3,290
java
/* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package handlers.effecthandlers; import com.l2jmobius.gameserver.GeoData; import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.Location; import com.l2jmobius.gameserver.model.StatsSet; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.actor.L2Summon; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; import com.l2jmobius.gameserver.model.skills.BuffInfo; import com.l2jmobius.gameserver.model.skills.Skill; import com.l2jmobius.gameserver.network.serverpackets.FlyToLocation; import com.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType; import com.l2jmobius.gameserver.network.serverpackets.ValidateLocation; import com.l2jmobius.gameserver.util.Util; /** * Teleport To Target effect implementation. * @author Didldak, Adry_85 */ public final class TeleportToSummon extends AbstractEffect { private final double _maxDistance; public TeleportToSummon(StatsSet params) { _maxDistance = params.getDouble("distance", -1); } @Override public L2EffectType getEffectType() { return L2EffectType.TELEPORT_TO_TARGET; } @Override public boolean isInstant() { return true; } @Override public boolean canStart(BuffInfo info) { return info.getEffected().hasServitors(); } @Override public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) { final L2Summon summon = effected.getActingPlayer().getFirstServitor(); if ((_maxDistance > 0) && (effector.calculateDistance(summon, false, false) >= _maxDistance)) { return; } final int px = summon.getX(); final int py = summon.getY(); double ph = Util.convertHeadingToDegree(summon.getHeading()); ph += 180; if (ph > 360) { ph -= 360; } ph = (Math.PI * ph) / 180; final int x = (int) (px + (25 * Math.cos(ph))); final int y = (int) (py + (25 * Math.sin(ph))); final int z = summon.getZ(); final Location loc = GeoData.getInstance().moveCheck(effector.getX(), effector.getY(), effector.getZ(), x, y, z, effector.getInstanceWorld()); effector.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); effector.broadcastPacket(new FlyToLocation(effector, loc.getX(), loc.getY(), loc.getZ(), FlyType.DUMMY)); effector.abortAttack(); effector.abortCast(); effector.setXYZ(loc); effector.broadcastPacket(new ValidateLocation(effector)); effected.revalidateZone(true); } }
[ "MobiusDev@7325c9f8-25fd-504a-9f63-8876acdc129b" ]
MobiusDev@7325c9f8-25fd-504a-9f63-8876acdc129b
f67b75ec6c987f6d8ff02c8ae7709fd778c91f54
ad21934baa88cb1abb0886aca154d0342537abdc
/awifi-np-biz-common/src/main/java/com/awifi/np/biz/common/exception/InterfaceException.java
0b92f346c86153462441561188eff9c30f21cbc5
[]
no_license
un-knower/awifi-np-biz
5b74f89a1810d6d4accbfb3c52797f9adf9e00bb
ade4d0fa580100707325db0d8cfacee3f525ce21
refs/heads/master
2020-03-17T21:20:43.755520
2017-08-23T02:36:12
2017-08-23T02:36:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,339
java
package com.awifi.np.biz.common.exception; /** * 版权所有: 爱WiFi无线运营中心 * 创建日期:2017年1月6日 下午3:58:39 * 创建作者:周颖 * 文件名称:InterfaceException.java * 版本: v1.0 * 功能: 接口异常实体类 * 修改记录: */ public class InterfaceException extends RuntimeException { /** 序列号 */ private static final long serialVersionUID = 8662044174443879224L; /** 错误编号 */ private String code; /** 接口地址 */ private String interfaceUrl; /** 接口参数 */ private String interfaceParam; /** 接口返回值 */ private String interfaceReturnValue; public InterfaceException(String message, String interfaceUrl) { super(message); this.code = "E2000018"; this.interfaceUrl = interfaceUrl; } public InterfaceException(String message, String interfaceUrl, Throwable e) { super(message, e); this.code = "E2000018"; this.interfaceUrl = interfaceUrl; } public InterfaceException(String message, String interfaceUrl, String interfaceParam) { super(message); this.code = "E2000018"; this.interfaceUrl = interfaceUrl; this.interfaceParam = interfaceParam; } public InterfaceException(String message, String interfaceUrl, String interfaceParam, Throwable e) { super(message, e); this.code = "E2000018"; this.interfaceUrl = interfaceUrl; this.interfaceParam = interfaceParam; } public InterfaceException(String message, String interfaceUrl, String interfaceParam, String interfaceReturnValue) { super(message); this.code = "E2000018"; this.interfaceUrl = interfaceUrl; this.interfaceParam = interfaceParam; this.interfaceReturnValue = interfaceReturnValue; } public InterfaceException(String message, String interfaceUrl, String interfaceParam, String interfaceReturnValue, Throwable e) { super(message, e); this.code = "E2000018"; this.interfaceUrl = interfaceUrl; this.interfaceParam = interfaceParam; this.interfaceReturnValue = interfaceReturnValue; } public InterfaceException(String code, String message, String interfaceUrl, String interfaceParam, String interfaceReturnValue) { super(message); this.code = code; this.interfaceUrl = interfaceUrl; this.interfaceParam = interfaceParam; this.interfaceReturnValue = interfaceReturnValue; } public InterfaceException(String code, String message, String interfaceUrl, String interfaceParam, String interfaceReturnValue, Throwable e) { super(message, e); this.code = code; this.interfaceUrl = interfaceUrl; this.interfaceParam = interfaceParam; this.interfaceReturnValue = interfaceReturnValue; } public String getCode() { return code; } public String getInterfaceUrl() { return interfaceUrl; } public String getInterfaceParam() { return interfaceParam; } public String getInterfaceReturnValue() { return interfaceReturnValue; } }
[ "fangzhiwei229@gmail.com" ]
fangzhiwei229@gmail.com
176509574809b142b99c40da3d99e9505d593536
eca99e2af37ede85f4c291ea886d05357305d011
/app/src/main/java/com/cadyd/app/result/VolleyJsonInterface.java
7fe95e4112d04090c441b0d83bd0beb49c3461df
[]
no_license
Brave-wan/cadyd
302fc5f47cdb246ab1ad88f585adcaa87518e080
7fb26a29a8609520c7be8b72016c1ecccf5872ca
refs/heads/master
2020-07-29T14:15:44.080887
2016-11-14T03:40:31
2016-11-14T03:40:31
73,664,047
0
0
null
null
null
null
UTF-8
Java
false
false
1,195
java
package com.cadyd.app.result; import android.app.ProgressDialog; import android.util.Log; import com.android.volley.Response; import com.android.volley.VolleyError; import org.json.JSONObject; /** * Created by root on 16-8-30. */ public abstract class VolleyJsonInterface { public static Response.Listener<JSONObject> mListener; public static Response.ErrorListener mErrorListener; public VolleyJsonInterface( Response.Listener<JSONObject> listener) { this.mListener = listener; } public abstract void onMySuess(JSONObject result); public Response.Listener<JSONObject> loadingListener() { mListener = new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { onMySuess(response); } }; return mListener; } public Response.ErrorListener errorListener() { mErrorListener = new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { Log.i("wan","错误日志---"+error.getMessage()); } }; return mErrorListener; } }
[ "185214487@qq.com" ]
185214487@qq.com
d016f2b552a60877ae888e094c120dd0ec4171b1
cca87c4ade972a682c9bf0663ffdf21232c9b857
/com/tencent/mm/plugin/messenger/foundation/a/i.java
bbfd7e499b5c0341ddb886dae409733afdf9fb0b
[]
no_license
ZoranLi/wechat_reversing
b246d43f7c2d7beb00a339e2f825fcb127e0d1a1
36b10ef49d2c75d69e3c8fdd5b1ea3baa2bba49a
refs/heads/master
2021-07-05T01:17:20.533427
2017-09-25T09:07:33
2017-09-25T09:07:33
104,726,592
12
1
null
null
null
null
UTF-8
Java
false
false
426
java
package com.tencent.mm.plugin.messenger.foundation.a; import com.tencent.mm.bj.g; import com.tencent.mm.kernel.c.a; import com.tencent.mm.plugin.messenger.foundation.a.a.c; import com.tencent.mm.plugin.messenger.foundation.a.a.f; import com.tencent.mm.storage.ar; import com.tencent.mm.storage.as; public interface i extends a { c a(g gVar, ar arVar, as asVar); ar d(g gVar); as e(g gVar); f f(g gVar); }
[ "lizhangliao@xiaohongchun.com" ]
lizhangliao@xiaohongchun.com
9f6024b45aa87c454b248cb8d60f6657d0b1b03b
c3377e54fe1621bccdbdc65ffd5e899892bfa9d6
/src/one/Citac.java
bb988094ebcdb9781b5109e1c0aff44a517e0c1e
[]
no_license
emirPuskaITAkademija/AdvancedJavaProgramming
bde86158cee585c680a7f15f537dbf44c0b2c500
5355de5130ffc1ce3a55099fb4e734b8074c50a6
refs/heads/master
2023-03-07T06:35:25.117299
2021-02-11T16:33:25
2021-02-11T16:33:25
322,353,233
3
0
null
null
null
null
UTF-8
Java
false
false
443
java
package one; import java.io.Closeable; import java.io.IOException; public class Citac implements Closeable { @Override public void close() throws IOException { System.out.println("Zatvaram nešto..."); } public static void main(String[] args) throws IOException{ try(Citac citac = new Citac()){ // }catch (Exception e){ System.err.println(e.getMessage()); } } }
[ "emir.puska@it-akademija.com" ]
emir.puska@it-akademija.com
a7850fffe7a3cccf12a7d2d1228d1fbc6ad037ae
872775d142e9269681d331844ce0d0892ef4ebce
/src/com/hm/pattern/combining/composite/QuackCounter.java
dccf3a460c5eba1e9a709b8078affd8598a7c7a9
[]
no_license
humanheima/JavaBase
b756274931b21040ca80a74ac00dc7a20ff7b92b
dba8fc5940f16795a0c2bad34d639f5e5713c8f6
refs/heads/master
2023-06-08T20:02:31.280986
2023-05-25T10:04:40
2023-05-25T10:04:40
88,835,885
0
0
null
null
null
null
UTF-8
Java
false
false
395
java
package com.hm.pattern.combining.composite; public class QuackCounter implements Quackable { Quackable duck; static int numberOfQuacks; public QuackCounter(Quackable duck) { this.duck = duck; } public void quack() { duck.quack(); numberOfQuacks++; } public static int getQuacks() { return numberOfQuacks; } public String toString() { return duck.toString(); } }
[ "humanheima@gmail.com" ]
humanheima@gmail.com
b526bc95a841904744e49f698db227071900ca8b
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/thinkaurelius--titan/3df9d3543608927c452979633dfe623858d4a9d2/before/BackendOperation.java
13ca483d4fbb000ed4d4a593bf92fef567f03b2c
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
7,261
java
package com.thinkaurelius.titan.diskstorage.util; import com.google.common.base.Preconditions; import com.thinkaurelius.titan.core.TitanException; import com.thinkaurelius.titan.core.time.Duration; import com.thinkaurelius.titan.core.time.SimpleDuration; import com.thinkaurelius.titan.core.time.TimestampProvider; import com.thinkaurelius.titan.diskstorage.PermanentStorageException; import com.thinkaurelius.titan.diskstorage.StorageException; import com.thinkaurelius.titan.diskstorage.TemporaryStorageException; import com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Random; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; /** * @author Matthias Broecheler (me@matthiasb.com) */ public class BackendOperation { private static final Logger log = LoggerFactory.getLogger(BackendOperation.class); private static final Random random = new Random(); private static final Duration BASE_REATTEMPT_TIME=new SimpleDuration(50,TimeUnit.MILLISECONDS); private static final double PERTURBATION_PERCENTAGE = 0.2; private static final Duration pertubateTime(Duration duration) { Duration newDuration = duration.mult(1 + (random.nextDouble()*2-1.0)*PERTURBATION_PERCENTAGE); assert !duration.isZeroLength() : duration; return newDuration; } public static final<V> V execute(Callable<V> exe, Duration totalWaitTime) throws TitanException { try { return executeDirect(exe,totalWaitTime); } catch (StorageException e) { throw new TitanException("Could not execute operation due to backend",e); } } public static final<V> V executeDirect(Callable<V> exe, Duration totalWaitTime) throws StorageException { Preconditions.checkArgument(!totalWaitTime.isZeroLength(),"Need to specify a positive waitTime: %s",totalWaitTime); long maxTime = System.currentTimeMillis()+totalWaitTime.getLength(TimeUnit.MILLISECONDS); Duration waitTime = pertubateTime(BASE_REATTEMPT_TIME); StorageException lastException = null; while (true) { try { return exe.call(); } catch (StorageException e) { if (e instanceof TemporaryStorageException) { lastException = e; } else { throw e; } } catch (Throwable e) { throw new PermanentStorageException("Unexpected exception while executing backend operation "+exe.toString(),e); } //Wait and retry Preconditions.checkNotNull(lastException); if (System.currentTimeMillis()+waitTime.getLength(TimeUnit.MILLISECONDS)<maxTime) { log.info("Temporary exception during backend operation ["+exe.toString()+"]. Attempting backoff retry.",lastException); try { Thread.sleep(waitTime.getLength(TimeUnit.MILLISECONDS)); } catch (InterruptedException r) { throw new PermanentStorageException("Interrupted while waiting to retry failed backend operation", r); } } else { break; } waitTime = pertubateTime(waitTime.mult(2.0)); } throw new TemporaryStorageException("Could not successfully complete backend operation due to repeated temporary exceptions after "+totalWaitTime,lastException); } // private static final double WAITTIME_PERTURBATION_PERCENTAGE = 0.5; // private static final double WAITTIME_PERTURBATION_PERCENTAGE_HALF = WAITTIME_PERTURBATION_PERCENTAGE/2; // // public static final<V> V execute(Callable<V> exe, int maxRetryAttempts, Duration waitBetweenRetries) throws TitanException { // long retryWaittime = waitBetweenRetries.getLength(TimeUnit.MILLISECONDS); // Preconditions.checkArgument(maxRetryAttempts>0,"Retry attempts must be positive"); // Preconditions.checkArgument(retryWaittime>=0,"Retry wait time must be non-negative"); // int retryAttempts = 0; // StorageException lastException = null; // do { // try { // return exe.call(); // } catch (StorageException e) { // if (e instanceof TemporaryStorageException) { // lastException = e; // log.debug("Temporary exception during backend operation", e); // } else { // throw new TitanException("Permanent exception during backend operation",e); //Its permanent // } // } catch (Throwable e) { // throw new TitanException("Unexpected exception during backend operation",e); // } // //Wait and retry // retryAttempts++; // Preconditions.checkNotNull(lastException); // if (retryAttempts<maxRetryAttempts) { // long waitTime = Math.round(retryWaittime+((Math.random()*WAITTIME_PERTURBATION_PERCENTAGE-WAITTIME_PERTURBATION_PERCENTAGE_HALF)*retryWaittime)); // Preconditions.checkArgument(waitTime>=0,"Invalid wait time: %s",waitTime); // log.info("Temporary storage exception during backend operation [{}]. Attempting incremental retry",exe.toString(),lastException); // try { // Thread.sleep(waitTime); // } catch (InterruptedException r) { // throw new TitanException("Interrupted while waiting to retry failed backend operation", r); // } // } // } while (retryAttempts<maxRetryAttempts); // throw new TitanException("Could not successfully complete backend operation due to repeated temporary exceptions after "+maxRetryAttempts+" attempts",lastException); // } public static<R> R execute(Transactional<R> exe, TransactionalProvider provider, TimestampProvider times) throws StorageException { StoreTransaction txh = null; try { txh = provider.openTx(); txh.getConfiguration().setCommitTime(times.getTime()); return exe.call(txh); } catch (StorageException e) { if (txh!=null) txh.rollback(); txh=null; throw e; } finally { if (txh!=null) txh.commit(); } } public static<R> R execute(final Transactional<R> exe, final TransactionalProvider provider, final TimestampProvider times, Duration maxTime) throws TitanException { return execute(new Callable<R>() { @Override public R call() throws Exception { return execute(exe,provider,times); } @Override public String toString() { return exe.toString(); } },maxTime); } public static interface Transactional<R> { public R call(StoreTransaction txh) throws StorageException; } public static interface TransactionalProvider { public StoreTransaction openTx() throws StorageException; public void close() throws StorageException; } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
d2f7b55cb2fcdccefa492c08b216aa1a0f0752c0
fefc98e127388f8eda5d5ec254b3b326388deb81
/manyminds/util/browser/CalDialog.java
76be14f88dddbef64fca6ddee77214eab52cac72
[]
no_license
2011FallUConnCSE2102/CSE2102manyminds
912118f8d4b5f22788ea621ec3e6e246de9cb238
fdd33d19ad8fc344b91496bf6b59f6b213f6a9d2
refs/heads/master
2020-04-01T15:39:39.055574
2011-06-14T15:12:43
2011-06-14T15:12:43
1,894,978
0
0
null
null
null
null
UTF-8
Java
false
false
6,517
java
/*================================================================================ Freeware License Agreement ========================== This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Author(s): Andrew Moulden 1998 (original copyright holder) Original package: CalHTMLPane html renderer, part of the calpa package ==================================================================================*/ package manyminds.util.browser; import java.awt.Dimension; import java.awt.event.*; import javax.swing.*; class CalDialog extends CalViewer { String cMessageName; boolean propertiesSet; int messageW; int messageH; int messageX; int messageY; CalDialog(CalHTMLPane pane, CalHTMLPreferences pref) { super(pane, pref, null, null, 0); nesting = 0; frameborder = 1; marginwidth = 0; marginheight = 0; sp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); sp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); sp.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2)); name = "_dialog"; isDialog = true; bgcolor = CalColor.controlIndex; } void showDialogMessage(String message, String messageName, int x, int y, int w, int h) { checkParser(); checkThreadLiner(); doc = null; messageX = x; messageY = y; messageW = w; messageH = h; cMessageName = messageName; if (h <= 0) { h = 200; //any number will do, because we'll change it afterward } if (cMessageName != null) { doc = CalHTMLManager.getDialogMessage(cMessageName); } if (doc == null) { doc = new CalDoc(CalHTMLManager.getDummyURL(), this); parser = new CalFP(null, doc, f, pref, message); parser.setIsDialog(); parser.start(); } else { cMessageName = null; //stops doc being re-cached } keepPainting = true; removeAnyChildren(); connectionMode = CONNECTED; propertiesSet = false; relineDocument(messageW, h, true, true); } void relineDocument(int w, int h, boolean a, boolean b) { super.relineDocument(w, h, a, b); } //called by the Timer public void actionPerformed(ActionEvent e) { if (!propertiesSet) { if ((doc == null) || (doc.state == PARSE_FAILED)) { timer.stop(); if (doc.state == PARSE_FAILED) { checkParser(); checkThreadLiner(); } } if ((doc.state != PARSED) || (view.lineState != LINED)) { return; } else { if (doc.bgcolor != this.bgcolor) { highlight = doc.highlight; shadow = doc.shadow; outercolor = doc.bgcolor; viewport.setBackground(CalColor.colors[doc.bgcolor]); sp.setBackground(CalColor.colors[doc.bgcolor]); setBackground(CalColor.colors[doc.bgcolor]); } else { highlight = CalColor.highlightIndex;; shadow = CalColor.shadowIndex; outercolor= CalColor.controlIndex; sp.setBackground(CalColor.colors[CalColor.controlIndex]); viewport.setBackground(CalColor.colors[CalColor.controlIndex]); setBackground(CalColor.colors[CalColor.controlIndex]); } messageW = Math.max(messageW, view.finalWidth); messageW = Math.min(messageW, pane.viewer.getWidth()); messageH = Math.max(messageH, view.linedHeight + (marginheight << 1)); messageH = Math.min(messageH, pane.viewer.getHeight()); setPreferredSize(new Dimension(messageW, messageH)); pane.setDialogBounds(pane.getWidth(), pane.getHeight(), messageX, messageY, messageW + 4, messageH + 4); viewport.invalidate(); sp.validate(); sp.setVisible(true); requestFocus(); currTabIndex = -1; propertiesSet = true; } } if (!keepPainting) { timer.stop(); if (cMessageName != null) { CalHTMLManager.addDialogMessage(doc, cMessageName); cMessageName = null; } parser = null; repaint(); return; } else { repaint(); } } void setBaseParameters(int width, int height) { width = pane.viewer.getWidth(); height = pane.viewer.getHeight(); if (pref.optimizeDisplay == NO_OPTIMIZATION) { view.displaySize = S_LARGE; } else { if (width < pref.frameWidth[S_SMALL]) { view.displaySize = (pref.optimizeDisplay == OPTIMIZE_ALL) ? S_SMALL : S_LARGE; } else if (width < pref.frameWidth[S_MEDIUM]) { view.displaySize = (pref.optimizeDisplay == OPTIMIZE_ALL) ? S_MEDIUM : S_LARGE; } else { view.displaySize = S_LARGE; } } rootFontSize = pref.fontVals[S_SMALL]; rootFontFamily = pref.famVals[S_SMALL]; rootFontStyle = pref.styleVals[S_SMALL]; f.checkFont(rootFontFamily, rootFontStyle, rootFontSize); } void stopAllProcesses() { checkParser(); checkThreadLiner(); if (timer.isRunning()) { timer.stop(); } } }
[ "therese.smith@uconn.edu" ]
therese.smith@uconn.edu
0877fb64e2ffc1d397dc4a5b5a9c6c8332bc76f2
8145261ab0a5b5d59cf8e74985880a092195e858
/shijingsh-ai-weka/src/main/java/weka/estimators/UnivariateQuantileEstimator.java
ae9667aba46b8bd8623546fac1d3fb86f2d6a49d
[ "Apache-2.0" ]
permissive
shijingsh/shijingsh-ai2
2a02da7aa17d2e6feb69f12a9b873f4554b2d074
1d51bea3472d86a71a934de2f866c09ab2b4fa06
refs/heads/master
2023-04-01T00:31:59.004605
2021-04-02T02:58:53
2021-04-02T02:58:53
282,335,073
0
0
null
null
null
null
UTF-8
Java
false
false
1,494
java
/* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * UnivariateQuantileEstimator.java * Copyright (C) 2009-2012 University of Waikato, Hamilton, New Zealand * */ package weka.estimators; /** * Interface that can be implemented by simple weighted univariate quantile * estimators. * * @author Eibe Frank (eibe@cs.waikato.ac.nz) * @version $Revision$ */ public interface UnivariateQuantileEstimator { /** * Adds a value to the interval estimator. * * @param value the value to add * @param weight the weight of the value */ void addValue(double value, double weight); /** * Returns the quantile for the given percentage * * @param value the value at which to evaluate * @return the quantile */ double predictQuantile(double quantile); }
[ "liukefu2050@sina.com" ]
liukefu2050@sina.com
13e3b8c275a99c01c573a94e90e87276c5e86835
a6e2cd9ea01bdc5cfe58acce25627786fdfe76e9
/src/main/java/com/alipay/api/domain/InboundOrderVO.java
bc045072aa9fd2d7681b4492d9cca5924046cee7
[ "Apache-2.0" ]
permissive
cc-shifo/alipay-sdk-java-all
38b23cf946b73768981fdeee792e3dae568da48c
938d6850e63160e867d35317a4a00ed7ba078257
refs/heads/master
2022-12-22T14:06:26.961978
2020-09-23T04:00:10
2020-09-23T04:00:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,398
java
package com.alipay.api.domain; import java.util.Date; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 入库通知单查询返回数据 * * @author auto create * @since 1.0, 2018-04-26 16:33:55 */ public class InboundOrderVO extends AlipayObject { private static final long serialVersionUID = 4344568259321148784L; /** * 扩展字段,json格式 */ @ApiField("ext_info") private String extInfo; /** * 创建日期 */ @ApiField("gmt_create") private Date gmtCreate; /** * 更新时间 */ @ApiField("gmt_modified") private Date gmtModified; /** * 入库通知单id */ @ApiField("inbound_order_id") private String inboundOrderId; /** * 入库业务类型,BHRK=补货入库,CGRK=采购入库,CGTHRK=采购退货入库,DDTHRK=订单退货入库,PDRK=盘点入库 */ @ApiField("inbound_type") private String inboundType; /** * 通知日期 */ @ApiField("notice_date") private Date noticeDate; /** * 操作者id */ @ApiField("operator_id") private String operatorId; /** * 操作者类型,PROVIDER:服务商,PROVIDER_STAFF:服务商员工,MER:商户,MER_STAFF:商户员工,SALES:阿里销售小二,SYSTEM:系统 */ @ApiField("operator_type") private String operatorType; /** * 外部订单号 */ @ApiField("out_biz_no") private String outBizNo; /** * 入库单类型:INIT(初始化), PROCESSING(处理中),FINISHED(完成), CANCELLED(取消); */ @ApiField("status") private String status; /** * 仓库编码 */ @ApiField("warehouse_code") private String warehouseCode; public String getExtInfo() { return this.extInfo; } public void setExtInfo(String extInfo) { this.extInfo = extInfo; } public Date getGmtCreate() { return this.gmtCreate; } public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; } public Date getGmtModified() { return this.gmtModified; } public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; } public String getInboundOrderId() { return this.inboundOrderId; } public void setInboundOrderId(String inboundOrderId) { this.inboundOrderId = inboundOrderId; } public String getInboundType() { return this.inboundType; } public void setInboundType(String inboundType) { this.inboundType = inboundType; } public Date getNoticeDate() { return this.noticeDate; } public void setNoticeDate(Date noticeDate) { this.noticeDate = noticeDate; } public String getOperatorId() { return this.operatorId; } public void setOperatorId(String operatorId) { this.operatorId = operatorId; } public String getOperatorType() { return this.operatorType; } public void setOperatorType(String operatorType) { this.operatorType = operatorType; } public String getOutBizNo() { return this.outBizNo; } public void setOutBizNo(String outBizNo) { this.outBizNo = outBizNo; } public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } public String getWarehouseCode() { return this.warehouseCode; } public void setWarehouseCode(String warehouseCode) { this.warehouseCode = warehouseCode; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f9039d1cc500e51b68a206280ffd28facb3cae28
a3418358d121842106540b57e871cadc3c7c024c
/vietpage_trunk/.svn/pristine/f9/f9039d1cc500e51b68a206280ffd28facb3cae28.svn-base
3b844a468ed611a89932d8523aad08e7bf883fa9
[]
no_license
kientv80/vietpage_trunk
7591b82d93dcd039682fd550a0e74ca7a863b9d3
4827bb88df18346da4a1127ba32392112a023da2
refs/heads/master
2021-01-19T18:33:12.405982
2017-04-15T17:54:17
2017-04-15T17:54:17
88,364,422
0
0
null
null
null
null
UTF-8
Java
false
false
2,628
package com.vnsoft.server.contentprovider; import java.util.Map; import javax.servlet.jsp.PageContext; import com.vnsoft.server.model.Item; import com.vnsoft.server.tags.yui.SimpleTableContentProvider; import com.vnsoft.server.util.UIHelper; public class ItemSimpleTableContentProvider implements SimpleTableContentProvider{ @Override public StringBuilder buildContent(Object data, int colindex, Map params, PageContext pageContext) { String btn = params.get("btnPrefix")+""; String width = params.get("width")+""; if(params.get("width")==null) width = ""; String height = params.get("height")+""; if(params.get("height") == null) height = ""; String clazz = params.get("clazz")+""; String editable = params.get("editable")+""; String callBack = params.get("callback")+""; String showView = params.get("showView")+""; String showDesc = params.get("showDesc")+""; String showContactInfo = params.get("showContactInfo")+""; String showAssessment = params.get("showAssessment")+""; String showRanking = params.get("showRanking")+""; boolean showview = false; boolean showConInf = false; boolean showAssess = false; boolean showRanking_ = false; if("true".equals(showContactInfo)) showConInf = true; if("true".equals(showAssessment)) showAssess = true; boolean b_showDesc = false; if(params.get("returnedBtnNames") !=null){ String returnedBtnNames = params.get("returnedBtnNames").toString(); if(pageContext.getSession().getAttribute(returnedBtnNames)!=null){ String buttons = pageContext.getSession().getAttribute(returnedBtnNames).toString(); Item i = (Item)data; buttons = buttons + btn + i.getMenuId() + "_" + i.getId()+","; pageContext.getSession().setAttribute(returnedBtnNames,buttons); }else{ String buttons = ""; Item i = (Item)data; buttons = btn + i.getMenuId() + "_" + i.getId()+","; pageContext.getSession().setAttribute(returnedBtnNames,buttons); } } if("true".equals(showView)) showview = true; if("true".equals(showDesc)) b_showDesc = true; if("true".equals(showRanking)) showRanking_ = true; if("true".equals(editable)){ return new StringBuilder(UIHelper.itemToDivHTML(width, height, (Item)data, true, btn, callBack, showview,pageContext,b_showDesc,showConInf,showAssess,showRanking_,clazz,params)); }else{ return new StringBuilder(UIHelper.itemToDivHTML(width, height, (Item)data, false, btn, callBack, showview,pageContext,b_showDesc,showConInf,showAssess,showRanking_,clazz,params)); } } }
[ "kientv@vng.com.vn" ]
kientv@vng.com.vn
c7d293c51fd2c641c85904766ed69b4b153163df
21bcd1da03415fec0a4f3fa7287f250df1d14051
/sources/p195e/p196a/p199x0/p454e/p457c/C13048q0.java
4994681b1750bb2a308caafc7692870fe27e42dc
[]
no_license
lestseeandtest/Delivery
9a5cc96bd6bd2316a535271ec9ca3865080c3ec8
bc3fae8f30804a2520e6699df92c2e6a4a0a7cfc
refs/heads/master
2022-04-24T12:14:22.396398
2020-04-25T21:50:29
2020-04-25T21:50:29
258,875,870
0
1
null
null
null
null
UTF-8
Java
false
false
1,685
java
package p195e.p196a.p199x0.p454e.p457c; import p195e.p196a.C12321v; import p195e.p196a.C5941y; import p195e.p196a.p199x0.p450a.C12347d; import p195e.p196a.p447u0.C12314c; /* renamed from: e.a.x0.e.c.q0 */ /* compiled from: MaybeIsEmpty */ public final class C13048q0<T> extends C12943a<T, Boolean> { /* renamed from: e.a.x0.e.c.q0$a */ /* compiled from: MaybeIsEmpty */ static final class C13049a<T> implements C12321v<T>, C12314c { /* renamed from: a */ final C12321v<? super Boolean> f37552a; /* renamed from: b */ C12314c f37553b; C13049a(C12321v<? super Boolean> vVar) { this.f37552a = vVar; } /* renamed from: a */ public void mo41931a(C12314c cVar) { if (C12347d.m55464a(this.f37553b, cVar)) { this.f37553b = cVar; this.f37552a.mo41931a(this); } } /* renamed from: d */ public boolean mo41878d() { return this.f37553b.mo41878d(); } public void dispose() { this.f37553b.dispose(); } public void onComplete() { this.f37552a.onSuccess(Boolean.valueOf(true)); } public void onError(Throwable th) { this.f37552a.onError(th); } public void onSuccess(T t) { this.f37552a.onSuccess(Boolean.valueOf(false)); } } public C13048q0(C5941y<T> yVar) { super(yVar); } /* access modifiers changed from: protected */ /* renamed from: b */ public void mo24653b(C12321v<? super Boolean> vVar) { this.f37333a.mo24639a(new C13049a(vVar)); } }
[ "zsolimana@uaedomain.local" ]
zsolimana@uaedomain.local
73fef25ad135fc055ef242e0641f0b91fc52f351
3bb9e1a187cb72e2620a40aa208bf94e5cee46f5
/mobile_catalog/src/ong/eu/soon/ifx/element/DeliveryMethod.java
952ebf6350e9ff779285febd4b2daddd172157c0
[]
no_license
eusoon/Mobile-Catalog
2e6f766864ea25f659f87548559502358ac5466c
869d7588447117b751fcd1387cd84be0bd66ef26
refs/heads/master
2021-01-22T23:49:12.717052
2013-12-10T08:22:20
2013-12-10T08:22:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
181
java
package ong.eu.soon.ifx.element; public enum DeliveryMethod { Channel, Courier, Email, Fax, HomeBank, InPerson, LocalPrinter, OverNight, Phone, Post, SMS, TwoDay, UPS, URL }
[ "eusoon@gmail.com" ]
eusoon@gmail.com
0625148513f115df100b64e3cb85581c73e8e54f
a66a4d91639836e97637790b28b0632ba8d0a4f9
/src/generators/compression/helpers/CompressionAlgorithm.java
31283d1cb06d0c8ce80a6ac2c178ba3f76fe5bb5
[]
no_license
roessling/animal-av
7d0ba53dda899b052a6ed19992fbdfbbc62cf1c9
043110cadf91757b984747750aa61924a869819f
refs/heads/master
2021-07-13T05:31:42.223775
2020-02-26T14:47:31
2020-02-26T14:47:31
206,062,707
0
2
null
2020-10-13T15:46:14
2019-09-03T11:37:11
Java
UTF-8
Java
false
false
4,871
java
package generators.compression.helpers; import generators.framework.Generator; import generators.framework.GeneratorType; import java.awt.Color; import java.awt.Font; import java.util.Locale; import algoanim.primitives.generators.Language; import algoanim.properties.AnimationPropertiesKeys; import algoanim.properties.ArrayMarkerProperties; import algoanim.properties.ArrayProperties; import algoanim.properties.GraphProperties; import algoanim.properties.MatrixProperties; import algoanim.properties.RectProperties; import algoanim.properties.SourceCodeProperties; import algoanim.properties.TextProperties; /** * This abstract class encapsulates a set of features common to compression * animations using AnimalScript. * * * @author Florian Lindner */ public abstract class CompressionAlgorithm { protected Language lang; protected static MatrixProperties mp; protected static ArrayProperties ap; protected static ArrayMarkerProperties amp; protected static TextProperties tpsteps; protected static TextProperties tptopic; protected static TextProperties tpwords; protected static SourceCodeProperties scp; protected static GraphProperties gp; protected static RectProperties rctp; protected GeneratorType myType = new GeneratorType( GeneratorType.GENERATOR_TYPE_COMPRESSION); public String getFileExtension() { return Generator.ANIMALSCRIPT_FORMAT_EXTENSION; } public CompressionAlgorithm() { // matrix mp = new MatrixProperties(); mp.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); mp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.WHITE); mp.set(AnimationPropertiesKeys.ELEMENTCOLOR_PROPERTY, Color.BLACK); // array ap = new ArrayProperties(); ap.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); ap.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.WHITE); ap.set(AnimationPropertiesKeys.FILLED_PROPERTY, Boolean.TRUE); ap.set(AnimationPropertiesKeys.ELEMENTCOLOR_PROPERTY, Color.BLACK); ap.set(AnimationPropertiesKeys.ELEMHIGHLIGHT_PROPERTY, Color.RED); ap.set(AnimationPropertiesKeys.CELLHIGHLIGHT_PROPERTY, Color.YELLOW); // array marker amp = new ArrayMarkerProperties(); amp.set(AnimationPropertiesKeys.LABEL_PROPERTY, "i"); amp.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); // text topic tptopic = new TextProperties(); tptopic.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.RED); tptopic.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font("Monospaced", Font.BOLD, 32)); // text steps tpsteps = new TextProperties(); tpsteps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); tpsteps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font("SansSerif", Font.PLAIN, 16)); // text "algo in words" tpwords = new TextProperties(); tpwords.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font("Serif", Font.ITALIC, 22)); tpwords.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); // source code scp = new SourceCodeProperties(); scp.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.RED); scp.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font("Monospaced", Font.PLAIN, 12)); scp.set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED); scp.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); // graphs gp = new GraphProperties(); gp.set(AnimationPropertiesKeys.DIRECTED_PROPERTY, false); gp.set(AnimationPropertiesKeys.WEIGHTED_PROPERTY, true); gp.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); gp.set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.YELLOW); gp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.WHITE); gp.set(AnimationPropertiesKeys.EDGECOLOR_PROPERTY, Color.BLACK); gp.set(AnimationPropertiesKeys.NODECOLOR_PROPERTY, Color.BLACK); // rectangle rctp = new RectProperties(); rctp.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK); } /** * getContentLocale returns the target locale of the generated output Use e.g. * Locale.US for English content, Locale.GERMANY for German, etc. * * @return a Locale instance that describes the content type of the output */ public Locale getContentLocale() { return Locale.GERMANY; } public String getOutputLanguage() { return Generator.JAVA_OUTPUT; } public abstract String getName(); public String getAnimationAuthor() { return "Florian Lindner"; } public void init() { // nothing to be done here } }
[ "guido@tk.informatik.tu-darmstadt.de" ]
guido@tk.informatik.tu-darmstadt.de
f87d9336751f5d92827dc52c74cc4a5001d92e0c
6500848c3661afda83a024f9792bc6e2e8e8a14e
/gp_JADX/com/google/android/finsky/detailspage/bv.java
193004785d46ea942eb7b73322ad02aedabf9378
[]
no_license
enaawy/gproject
fd71d3adb3784d12c52daf4eecd4b2cb5c81a032
91cb88559c60ac741d4418658d0416f26722e789
refs/heads/master
2021-09-03T03:49:37.813805
2018-01-05T09:35:06
2018-01-05T09:35:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
492
java
package com.google.android.finsky.detailspage; import android.widget.Toast; import com.android.volley.C0657w; import com.android.volley.VolleyError; import com.google.android.finsky.api.C1290m; final class bv implements C0657w { public final /* synthetic */ bt f14342a; bv(bt btVar) { this.f14342a = btVar; } public final void mo1062a(VolleyError volleyError) { Toast.makeText(this.f14342a.t, C1290m.m7702a(this.f14342a.t, volleyError), 0).show(); } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
c42a991b91f2299bf74c12ad8ce2ebf2b0a1f764
a0bfa6caff1c270fb4e1d0bc4d99e2ade070c6de
/beat/src/main/java/it/polimi/beat/HeartController.java
7013beaaa939398f3eaef022b1be9abe3a90e7ec
[]
no_license
GiaccomoZhao/ingsoft-project
f60f0bed6d02c8d2b7fe25e71bdeb03e06e60847
06ae50a630ae621af30267d9e3d882d8a8b2150a
refs/heads/master
2020-03-11T21:41:07.159651
2018-04-05T09:21:34
2018-04-05T09:21:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
546
java
package it.polimi.beat; public class HeartController implements ControllerInterface { HeartModelInterface model; DJView view; public HeartController(HeartModelInterface model) { this.model = model; view = new DJView(this, new HeartAdapter(model)); view.createView(); view.createControls(); view.disableStopMenuItem(); view.disableStartMenuItem(); } public void start() {} public void stop() {} public void increaseBPM() {} public void decreaseBPM() {} public void setBPM(int bpm) {} }
[ "lorenzo.affetti@gmail.com" ]
lorenzo.affetti@gmail.com
4cee9d9e499d1bc68a586ece48982fd4ae3c1b13
a89c95173ba2d099e37803f618033a824d5387e1
/9.25/Week 3/MakingRestCalls2/app/src/main/java/com/example/user/makingrestcalls/RetrofitHelper.java
8d13691da977f143821aef5a92455e25288c66ba
[]
no_license
DroidSingh89/MAC_Training
69715c2b1476857d924034391449b70400d80b15
096293a249f220cb7366747d45a727c05a9050e7
refs/heads/master
2021-07-12T23:01:46.912045
2018-12-13T15:26:12
2018-12-13T15:26:12
133,825,375
2
2
null
null
null
null
UTF-8
Java
false
false
1,386
java
package com.example.user.makingrestcalls; import com.example.user.makingrestcalls.model.MyResponse; import retrofit2.Call; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.Query; /** * Created by singh on 10/11/17. */ public class RetrofitHelper { public static final String BASE_URL = "http://www.mocky.io/"; public static Retrofit create() { Retrofit retrofit = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build(); return retrofit; } public static Call<MyResponse> getCall() { Retrofit retrofit = create(); RetrofitService service = retrofit.create(RetrofitService.class); return service.getResponse(); } public static Call<MyResponse> getCallV3(String version) { Retrofit retrofit = create(); RetrofitService service = retrofit.create(RetrofitService.class); return service.getResponseForV3(version); } public interface RetrofitService { @GET("v2/59de720c100000fc12a8514a") Call<MyResponse> getResponse(); @GET("{version}/59de720c100000fc12a8514a") Call<MyResponse> getResponseForV3(@Path("version") String version); } }
[ "singh@manroop.com" ]
singh@manroop.com
ae82621d35c9fcac258dc0ebc50a20ea17aa4c00
21e695c078738b4dbf3f5892aa67ca98c9b57b3e
/src/main/java/org/docksidestage/hangar/dbflute/cbean/nss/PurchaseNss.java
30108379e8460a4a889ff885dc25d6d4ff36f0cd
[ "Apache-2.0" ]
permissive
kencharos/dbflute-test-active-hangar
270d64c5f9e749147a57b9ad534ff6e081a656f3
ab01de4321697dab4ea055f43cb3573afff2111d
refs/heads/master
2021-05-21T10:32:20.263566
2020-03-06T10:26:47
2020-03-06T10:26:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,928
java
package org.docksidestage.hangar.dbflute.cbean.nss; import org.docksidestage.hangar.dbflute.cbean.cq.PurchaseCQ; /** * The nest select set-upper of PURCHASE. * @author DBFlute(AutoGenerator) */ public class PurchaseNss { // =================================================================================== // Attribute // ========= protected final PurchaseCQ _query; public PurchaseNss(PurchaseCQ query) { _query = query; } public boolean hasConditionQuery() { return _query != null; } // =================================================================================== // Nested Relation // =============== /** * With nested relation columns to select clause. <br> * (会員)MEMBER by my MEMBER_ID, named 'member'. * @return The set-upper of more nested relation. {...with[nested-relation].with[more-nested-relation]} (NotNull) */ public MemberNss withMember() { _query.xdoNss(() -> _query.queryMember()); return new MemberNss(_query.queryMember()); } /** * With nested relation columns to select clause. <br> * (商品)PRODUCT by my PRODUCT_ID, named 'product'. * @return The set-upper of more nested relation. {...with[nested-relation].with[more-nested-relation]} (NotNull) */ public ProductNss withProduct() { _query.xdoNss(() -> _query.queryProduct()); return new ProductNss(_query.queryProduct()); } /** * With nested relation columns to select clause. <br> * SUMMARY_PRODUCT by my PRODUCT_ID, named 'summaryProduct'. * @return The set-upper of more nested relation. {...with[nested-relation].with[more-nested-relation]} (NotNull) */ public SummaryProductNss withSummaryProduct() { _query.xdoNss(() -> _query.querySummaryProduct()); return new SummaryProductNss(_query.querySummaryProduct()); } /** * With nested relation columns to select clause. <br> * WHITE_DATE_TERM by my , named 'whiteDateTermAsValid'. */ public void withWhiteDateTermAsValid() { _query.xdoNss(() -> _query.queryWhiteDateTermAsValid()); } /** * With nested relation columns to select clause. <br> * (会員ログイン)MEMBER_LOGIN by my MEMBER_ID, named 'memberLoginAsBizManyToOne'. * @return The set-upper of more nested relation. {...with[nested-relation].with[more-nested-relation]} (NotNull) */ public MemberLoginNss withMemberLoginAsBizManyToOne() { _query.xdoNss(() -> _query.queryMemberLoginAsBizManyToOne()); return new MemberLoginNss(_query.queryMemberLoginAsBizManyToOne()); } }
[ "dbflute@gmail.com" ]
dbflute@gmail.com
e5cdc2e6c5d8570af43db56446c9d6d6ab64a914
f567c98cb401fc7f6ad2439cd80c9bcb45e84ce9
/src/main/java/com/alipay/api/request/AlipayCommerceIotGroupCreateRequest.java
558d1d5336ba326839646bf0cb42c79739ae6194
[ "Apache-2.0" ]
permissive
XuYingJie-cmd/alipay-sdk-java-all
0887fa02f857dac538e6ea7a72d4d9279edbe0f3
dd18a679f7543a65f8eba2467afa0b88e8ae5446
refs/heads/master
2023-07-15T23:01:02.139231
2021-09-06T07:57:09
2021-09-06T07:57:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,115
java
package com.alipay.api.request; import com.alipay.api.domain.AlipayCommerceIotGroupCreateModel; import java.util.Map; import com.alipay.api.AlipayRequest; import com.alipay.api.internal.util.AlipayHashMap; import com.alipay.api.response.AlipayCommerceIotGroupCreateResponse; import com.alipay.api.AlipayObject; /** * ALIPAY API: alipay.commerce.iot.group.create request * * @author auto create * @since 1.0, 2020-08-19 20:12:00 */ public class AlipayCommerceIotGroupCreateRequest implements AlipayRequest<AlipayCommerceIotGroupCreateResponse> { private AlipayHashMap udfParams; // add user-defined text parameters private String apiVersion="1.0"; /** * 创建分组 */ private String bizContent; public void setBizContent(String bizContent) { this.bizContent = bizContent; } public String getBizContent() { return this.bizContent; } private String terminalType; private String terminalInfo; private String prodCode; private String notifyUrl; private String returnUrl; private boolean needEncrypt=false; private AlipayObject bizModel=null; public String getNotifyUrl() { return this.notifyUrl; } public void setNotifyUrl(String notifyUrl) { this.notifyUrl = notifyUrl; } public String getReturnUrl() { return this.returnUrl; } public void setReturnUrl(String returnUrl) { this.returnUrl = returnUrl; } public String getApiVersion() { return this.apiVersion; } public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } public void setTerminalType(String terminalType){ this.terminalType=terminalType; } public String getTerminalType(){ return this.terminalType; } public void setTerminalInfo(String terminalInfo){ this.terminalInfo=terminalInfo; } public String getTerminalInfo(){ return this.terminalInfo; } public void setProdCode(String prodCode) { this.prodCode=prodCode; } public String getProdCode() { return this.prodCode; } public String getApiMethodName() { return "alipay.commerce.iot.group.create"; } public Map<String, String> getTextParams() { AlipayHashMap txtParams = new AlipayHashMap(); txtParams.put("biz_content", this.bizContent); if(udfParams != null) { txtParams.putAll(this.udfParams); } return txtParams; } public void putOtherTextParam(String key, String value) { if(this.udfParams == null) { this.udfParams = new AlipayHashMap(); } this.udfParams.put(key, value); } public Class<AlipayCommerceIotGroupCreateResponse> getResponseClass() { return AlipayCommerceIotGroupCreateResponse.class; } public boolean isNeedEncrypt() { return this.needEncrypt; } public void setNeedEncrypt(boolean needEncrypt) { this.needEncrypt=needEncrypt; } public AlipayObject getBizModel() { return this.bizModel; } public void setBizModel(AlipayObject bizModel) { this.bizModel=bizModel; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
6857d656c9cffb5f76f65bd33c23e99bb52eafa1
6822cbf6ae4f6ace429ca33c95b17d63acdf2d6c
/src/test/java/io/vertx/ext/stomp/FrameTest.java
2bdfc497a35bcfa77509416ba8bbce45ebcc2f34
[ "Apache-2.0" ]
permissive
tonybaines/vertx-stomp
f3dee5fb187520998080d10ad8c9d3a90f3102cf
303d10300015e8fdd455562446861d11c1ef5428
refs/heads/master
2021-07-25T09:04:37.856745
2017-10-18T19:46:27
2017-10-18T19:46:27
109,831,143
0
0
null
2017-11-07T12:12:39
2017-11-07T12:12:39
null
UTF-8
Java
false
false
6,298
java
/* * Copyright (c) 2011-2015 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * * The Eclipse Public License is available at * http://www.eclipse.org/legal/epl-v10.html * * The Apache License v2.0 is available at * http://www.opensource.org/licenses/apache2.0.php * * You may elect to redistribute this code under either of these licenses. */ package io.vertx.ext.stomp; import io.vertx.core.buffer.Buffer; import io.vertx.ext.stomp.impl.FrameException; import io.vertx.ext.stomp.impl.FrameParser; import io.vertx.ext.stomp.utils.Headers; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; /** * Check the behavior of {@link Frame}. * * @author <a href="http://escoffier.me">Clement Escoffier</a> */ public class FrameTest { private Frame frame; @Test public void testThatPassCodeAreNotInToString() { Frame frame = new Frame(Frame.Command.STOMP, Headers.create("login", "vertx", "passcode", "secret"), null); assertThat(frame.toString()).doesNotContain("secret").contains("********"); } @Test(expected = FrameException.class) public void testThatConnectFrameCannotHaveBody() { new Frame(Frame.Command.CONNECT, Headers.create("host", "foo"), Buffer.buffer("illegal")); } @Test public void testDefaultEncoding() { final String content = "This content contains utf-8 characters: ü ß é ø î"; Frame frame = new Frame(Frame.Command.SEND, Headers.create(), Buffer.buffer(content)); assertThat(frame.getBodyAsString()).isEqualTo(content); } @Test public void testEncoding() { final String content = "\u03B1"; Frame frame = new Frame(Frame.Command.SEND, Headers.create("content-type", "text/plain;charset=utf-16"), Buffer.buffer(content)); assertThat(frame.encoding()).isEqualTo("utf-16"); frame = new Frame(Frame.Command.SEND, Headers.create("content-type", "text/plain;charset=utf-8"), Buffer.buffer(content)); assertThat(frame.encoding()).isEqualTo("utf-8"); } @Test public void testHeaderEncoding() { String value = "test-\r\n :\\-test"; String expected = "test-" + (char) 92 + (char) 114 + (char) 92 + (char) 110 + " " + (char) 92 + (char) 99 + (char) 92 + (char) 92 + "-test"; Frame frame = new Frame(Frame.Command.SEND, Headers.create("header", value), null); assertThat(frame.toBuffer().toString()).contains("header:" + expected + "\n"); } @Test public void testHeaderEncodingOnConnectAndConnectedFrames() { String value = "test-\r\n :\\-test"; String expected = "test-\r\n :" + (char) 92 + (char) 92 + "-test"; Frame frame = new Frame(Frame.Command.CONNECT, Headers.create("header", value), null); assertThat(frame.toBuffer().toString()).contains("header:" + expected + "\n"); frame = new Frame(Frame.Command.CONNECTED, Headers.create("header", value), null); assertThat(frame.toBuffer().toString()).contains("header:" + expected + "\n"); } @Test public void testHeartbeatComputationWith00() { Frame.Heartbeat client = Frame.Heartbeat.parse("0,0"); Frame.Heartbeat server = Frame.Heartbeat.parse("0,0"); assertThat(Frame.Heartbeat.computePingPeriod(client, server)).isEqualTo(0); assertThat(Frame.Heartbeat.computePongPeriod(client, server)).isEqualTo(0); assertThat(Frame.Heartbeat.computePongPeriod(server, client)).isEqualTo(0); assertThat(Frame.Heartbeat.computePingPeriod(server, client)).isEqualTo(0); } @Test public void testHeartbeatComputationWith01() { Frame.Heartbeat client = Frame.Heartbeat.parse("0,1"); Frame.Heartbeat server = Frame.Heartbeat.parse("0,1"); assertThat(Frame.Heartbeat.computePingPeriod(client, server)).isEqualTo(0); assertThat(Frame.Heartbeat.computePongPeriod(client, server)).isEqualTo(0); assertThat(Frame.Heartbeat.computePingPeriod(server, client)).isEqualTo(0); assertThat(Frame.Heartbeat.computePongPeriod(server, client)).isEqualTo(0); } @Test public void testHeartbeatComputationWith10() { Frame.Heartbeat client = Frame.Heartbeat.parse("1,0"); Frame.Heartbeat server = Frame.Heartbeat.parse("1,0"); assertThat(Frame.Heartbeat.computePingPeriod(client, server)).isEqualTo(0); assertThat(Frame.Heartbeat.computePongPeriod(client, server)).isEqualTo(0); assertThat(Frame.Heartbeat.computePingPeriod(server, client)).isEqualTo(0); assertThat(Frame.Heartbeat.computePongPeriod(server, client)).isEqualTo(0); } @Test public void testHeartbeatComputationWith11() { Frame.Heartbeat client = Frame.Heartbeat.parse("1,1"); Frame.Heartbeat server = Frame.Heartbeat.parse("1,1"); assertThat(Frame.Heartbeat.computePingPeriod(client, server)).isEqualTo(1); assertThat(Frame.Heartbeat.computePongPeriod(client, server)).isEqualTo(1); assertThat(Frame.Heartbeat.computePingPeriod(server, client)).isEqualTo(1); assertThat(Frame.Heartbeat.computePongPeriod(server, client)).isEqualTo(1); } @Test public void testHeartbeatComputationNotSymmetric() { Frame.Heartbeat client = Frame.Heartbeat.parse("1,2"); Frame.Heartbeat server = Frame.Heartbeat.parse("3,4"); assertThat(Frame.Heartbeat.computePingPeriod(client, server)).isEqualTo(4); assertThat(Frame.Heartbeat.computePongPeriod(client, server)).isEqualTo(3); assertThat(Frame.Heartbeat.computePingPeriod(server, client)).isEqualTo(3); assertThat(Frame.Heartbeat.computePongPeriod(server, client)).isEqualTo(4); } @Test public void testWithTrailingSpaces() { frame = new Frame(Frame.Command.MESSAGE, Headers.create("foo", "bar"), Buffer.buffer("hello")); assertThat(frame.toBuffer(true).toString()).endsWith(FrameParser.NULL + "\n"); frame = new Frame(Frame.Command.MESSAGE, Headers.create("foo", "bar"), null); assertThat(frame.toBuffer(true).toString()).endsWith(FrameParser.NULL + "\n"); frame = new Frame(Frame.Command.MESSAGE, Headers.create(), null); assertThat(frame.toBuffer(true).toString()).endsWith(FrameParser.NULL + "\n"); } }
[ "clement.escoffier@gmail.com" ]
clement.escoffier@gmail.com
b67585934918577ef5bb5d5e105ee5f40c7cdf84
287daf8dc5337b53f18ded9aad350aa1c2b3e40f
/src/com/zj/business/action/DeleteImgAsyn.java
c4069a20037427f4a66895a017bebf0575e4a0ee
[]
no_license
zhujiancom/FashionWebSite_Old
e8025c4fe757345c4f888c72dd783ee7beaafcbd
9be254d59356a94f24141a2c20cb3f6ef9a8a456
refs/heads/master
2020-04-05T22:49:06.060625
2014-03-10T10:57:02
2014-03-10T10:57:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,319
java
package com.zj.business.action; import java.util.HashMap; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.zj.common.exception.UploadFileException; import com.zj.common.utils.JSONUtil; import com.zj.core.control.struts.BaseAction; @Component("asynDelImg") @Scope("prototype") public class DeleteImgAsyn extends BaseAction { /** * */ private static final long serialVersionUID = -2448468493447367942L; private static final Log log = LogFactory.getLog(DeleteImgAsyn.class); private String imgSrc; public void deleteImg(){ Map<String,Object> result = new HashMap<String, Object>(); String prefix = getWebRootPath(); String imgPath = imgSrc.substring(prefix.length()); try { preDeleteFile(getBasePath()+imgPath); result.put("type", "true"); result.put("msg", "delete this image success!"); } catch (UploadFileException e) { log.error(e); result.put("type", "false"); result.put("msg", "cannot delete this image!"); } String json = JSONUtil.mapToJson(result); sendJSONdata(json); } public String getImgSrc() { return imgSrc; } public void setImgSrc(String imgSrc) { this.imgSrc = imgSrc; } }
[ "eric87com@gmail.com" ]
eric87com@gmail.com
89c95e5813b899aeb91ef91e8e86ca6447ab2ecd
2f11eae61d2a6d090988c9f22324507fc1a542f4
/src/main/java/com/squareup/square/models/BuyNowPayLaterDetails.java
e814e3e9113a2ee53ac267e82516c0748fac400d
[ "Apache-2.0" ]
permissive
square/square-java-sdk
afe08f35b4c8887240e9c7149366b83609bb65bd
769e694c3894dcaef713cba4af3d4ad0c0b45a47
refs/heads/master
2023-08-16T15:45:47.076201
2023-08-15T21:45:53
2023-08-15T21:45:53
221,058,243
59
33
NOASSERTION
2023-08-15T21:45:54
2019-11-11T19:51:18
Java
UTF-8
Java
false
false
6,345
java
package com.squareup.square.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import io.apimatic.core.types.OptionalNullable; import java.util.Objects; /** * This is a model class for BuyNowPayLaterDetails type. */ public class BuyNowPayLaterDetails { private final OptionalNullable<String> brand; private final AfterpayDetails afterpayDetails; private final ClearpayDetails clearpayDetails; /** * Initialization constructor. * @param brand String value for brand. * @param afterpayDetails AfterpayDetails value for afterpayDetails. * @param clearpayDetails ClearpayDetails value for clearpayDetails. */ @JsonCreator public BuyNowPayLaterDetails( @JsonProperty("brand") String brand, @JsonProperty("afterpay_details") AfterpayDetails afterpayDetails, @JsonProperty("clearpay_details") ClearpayDetails clearpayDetails) { this.brand = OptionalNullable.of(brand); this.afterpayDetails = afterpayDetails; this.clearpayDetails = clearpayDetails; } /** * Internal initialization constructor. */ protected BuyNowPayLaterDetails(OptionalNullable<String> brand, AfterpayDetails afterpayDetails, ClearpayDetails clearpayDetails) { this.brand = brand; this.afterpayDetails = afterpayDetails; this.clearpayDetails = clearpayDetails; } /** * Internal Getter for Brand. * The brand used for the Buy Now Pay Later payment. The brand can be `AFTERPAY`, `CLEARPAY` or * `UNKNOWN`. * @return Returns the Internal String */ @JsonGetter("brand") @JsonInclude(JsonInclude.Include.NON_NULL) @JsonSerialize(using = OptionalNullable.Serializer.class) protected OptionalNullable<String> internalGetBrand() { return this.brand; } /** * Getter for Brand. * The brand used for the Buy Now Pay Later payment. The brand can be `AFTERPAY`, `CLEARPAY` or * `UNKNOWN`. * @return Returns the String */ @JsonIgnore public String getBrand() { return OptionalNullable.getFrom(brand); } /** * Getter for AfterpayDetails. * Additional details about Afterpay payments. * @return Returns the AfterpayDetails */ @JsonGetter("afterpay_details") @JsonInclude(JsonInclude.Include.NON_NULL) public AfterpayDetails getAfterpayDetails() { return afterpayDetails; } /** * Getter for ClearpayDetails. * Additional details about Clearpay payments. * @return Returns the ClearpayDetails */ @JsonGetter("clearpay_details") @JsonInclude(JsonInclude.Include.NON_NULL) public ClearpayDetails getClearpayDetails() { return clearpayDetails; } @Override public int hashCode() { return Objects.hash(brand, afterpayDetails, clearpayDetails); } @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BuyNowPayLaterDetails)) { return false; } BuyNowPayLaterDetails other = (BuyNowPayLaterDetails) obj; return Objects.equals(brand, other.brand) && Objects.equals(afterpayDetails, other.afterpayDetails) && Objects.equals(clearpayDetails, other.clearpayDetails); } /** * Converts this BuyNowPayLaterDetails into string format. * @return String representation of this class */ @Override public String toString() { return "BuyNowPayLaterDetails [" + "brand=" + brand + ", afterpayDetails=" + afterpayDetails + ", clearpayDetails=" + clearpayDetails + "]"; } /** * Builds a new {@link BuyNowPayLaterDetails.Builder} object. * Creates the instance with the state of the current model. * @return a new {@link BuyNowPayLaterDetails.Builder} object */ public Builder toBuilder() { Builder builder = new Builder() .afterpayDetails(getAfterpayDetails()) .clearpayDetails(getClearpayDetails()); builder.brand = internalGetBrand(); return builder; } /** * Class to build instances of {@link BuyNowPayLaterDetails}. */ public static class Builder { private OptionalNullable<String> brand; private AfterpayDetails afterpayDetails; private ClearpayDetails clearpayDetails; /** * Setter for brand. * @param brand String value for brand. * @return Builder */ public Builder brand(String brand) { this.brand = OptionalNullable.of(brand); return this; } /** * UnSetter for brand. * @return Builder */ public Builder unsetBrand() { brand = null; return this; } /** * Setter for afterpayDetails. * @param afterpayDetails AfterpayDetails value for afterpayDetails. * @return Builder */ public Builder afterpayDetails(AfterpayDetails afterpayDetails) { this.afterpayDetails = afterpayDetails; return this; } /** * Setter for clearpayDetails. * @param clearpayDetails ClearpayDetails value for clearpayDetails. * @return Builder */ public Builder clearpayDetails(ClearpayDetails clearpayDetails) { this.clearpayDetails = clearpayDetails; return this; } /** * Builds a new {@link BuyNowPayLaterDetails} object using the set fields. * @return {@link BuyNowPayLaterDetails} */ public BuyNowPayLaterDetails build() { return new BuyNowPayLaterDetails(brand, afterpayDetails, clearpayDetails); } } }
[ "devs-apex+github-pusher@squareup.com" ]
devs-apex+github-pusher@squareup.com
3b6b52f3a91035b35513a03f6f020b16843059ea
fa455d3643a6068893e84d8af937bebb3797bbac
/src/com/btit/impls/ScreenshotReceiver.java
c88419afb822519faa5cd1c0baff0cacf4eb51e9
[]
no_license
clickyman1142/BTITRemote
418e4cdd0afc12b2ac8f3f4f49db70b2b7ea33d8
3b31a3a57fc763618b41fd85537e4744b395d18a
refs/heads/master
2021-06-14T11:30:34.403917
2016-11-26T04:02:09
2016-11-26T04:02:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,766
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.btit.impls; import com.btit.gui.DesktopPane; import java.io.IOException; import java.io.ObjectInputStream; import java.net.SocketException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.ImageIcon; import javax.swing.JDesktopPane; import javax.swing.JOptionPane; /** * * @author BaoToan */ public class ScreenshotReceiver extends Thread { private ObjectInputStream objectInputStream; private DesktopPane desktopPanel; private boolean isActive; public ScreenshotReceiver(ObjectInputStream objectInputStream, JDesktopPane desktopPanel) { this.objectInputStream = objectInputStream; this.desktopPanel = (DesktopPane) desktopPanel; isActive = true; } @Override public void run() { try { while (isActive && BTITRemote.CONNECTED) { try { ImageIcon imageIcon = (ImageIcon) objectInputStream.readObject(); desktopPanel.updateScreen(imageIcon); } catch (ClassNotFoundException ex) { Logger.getLogger(ScreenshotReceiver.class.getName()).log(Level.SEVERE, null, ex); } } } catch (SocketException ex) { JOptionPane.showMessageDialog(desktopPanel, "Server is closed!!!", "Connection fail", JOptionPane.INFORMATION_MESSAGE); } catch (IOException ex) { JOptionPane.showMessageDialog(desktopPanel, "You don't have permission to access this IP", "Timeout", JOptionPane.INFORMATION_MESSAGE); } } }
[ "baotoan.95@gmail.com" ]
baotoan.95@gmail.com
d06898298b7bc6fa466fc0b0c526ed65975e016b
16bacd6ef5d524c9c0fe99f32f2d2403d43b3aec
/instrument-modules/user-modules/module-google-guava/src/main/java/com/pamirs/attach/plugin/guava/GoogleGuavaConstants.java
ea3a9528ae21ba26cd516526ce843c6a324a4833
[ "Apache-2.0" ]
permissive
shulieTech/LinkAgent
cbcc9717d07ea636e791ebafe84aced9b03730e8
73fb7cd6d86fdce5ad08f0623c367b407e405d76
refs/heads/main
2023-09-02T11:21:57.784204
2023-08-31T07:02:01
2023-08-31T07:02:01
362,708,051
156
112
Apache-2.0
2023-09-13T02:24:11
2021-04-29T06:05:47
Java
UTF-8
Java
false
false
919
java
/** * Copyright 2021 Shulie Technology, Co.Ltd * Email: shulie@shulie.io * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * See the License for the specific language governing permissions and * limitations under the License. */ package com.pamirs.attach.plugin.guava; import com.pamirs.pradar.MiddlewareType; /** * @author wangjian * @since 2021/2/4 17:43 */ public class GoogleGuavaConstants { public final static String PLUGIN_NAME = "google-guava"; public final static int PLUGIN_TYPE = MiddlewareType.TYPE_LOCAL; public final static String MODULE_NAME = "google-guava"; }
[ "jirenhe@shulie.io" ]
jirenhe@shulie.io
ab44daf524ceb252ad73ee9d010238d2047758eb
7e2771140ef7d204680aafe8edcc5019660a562d
/java-web-project/java-web-library/src/main/java/bitcamp/ServletContainerInitializerImpl3.java
769aa1c65420fe22dbff0068417466b9d9bf457a
[]
no_license
cdis001/bitcamp-java-2018-12
8d63c8bfe01beb8db40bd14d04c433281223f0ed
cd3e10f26c1bc803f56fd6fa0a3e645d54146a66
refs/heads/master
2021-07-24T01:35:14.360793
2020-05-08T08:18:11
2020-05-08T08:18:11
163,650,671
0
0
null
null
null
null
UTF-8
Java
false
false
791
java
package bitcamp; import java.util.Set; import javax.servlet.ServletContainerInitializer; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.HandlesTypes; @HandlesTypes(ApplicationInitializer.class) public class ServletContainerInitializerImpl3 implements ServletContainerInitializer { @Override public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException { System.out.println("ServletContainerInitializerImpl3.onStartup() 호출됨!"); for (Class<?> type : c) { System.out.println("***" + type.getName()); try { ApplicationInitializer obj = (ApplicationInitializer) type.getConstructor().newInstance(); obj.begin(); } catch (Exception e) { } } } }
[ "shopingid@naver.com" ]
shopingid@naver.com
2db98664ed67598d07ac2385a73ca63cbb6059ac
08338d923effd9417ffd841725f4e12a6899844d
/src/main/java/com/sissi/pipeline/in/iq/bind/BindAddressLimitProcessor.java
18c390141ad5ad189b4750a1c7e1861a5483c39a
[ "Apache-2.0" ]
permissive
lzfying/sissi
3c6582579747991b3e0ed242d5ead0edc0eda528
607a7533984f3643b8a4ffda69e244c97e95e038
refs/heads/master
2020-12-26T21:37:51.274165
2014-02-25T15:23:38
2014-02-25T15:23:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
992
java
package com.sissi.pipeline.in.iq.bind; import com.sissi.context.JIDContext; import com.sissi.pipeline.in.ProxyProcessor; import com.sissi.protocol.Error; import com.sissi.protocol.Protocol; import com.sissi.protocol.ProtocolType; import com.sissi.protocol.Stream; import com.sissi.protocol.error.ServerError; import com.sissi.protocol.error.detail.ResourceConstraint; /** * @author kim 2014年1月6日 */ public class BindAddressLimitProcessor extends ProxyProcessor { private final Error error = new ServerError().setType(ProtocolType.CANCEL).add(ResourceConstraint.DETAIL_ELEMENT); private final int limit; public BindAddressLimitProcessor(int limit) { super(); this.limit = limit; } @Override public boolean input(JIDContext context, Protocol protocol) { return super.resources(context.jid()).lessThan(this.limit) ? true : !context.write(protocol.getParent().clear().reply().setFrom(context.domain()).setError(this.error)).write(Stream.closeGraceFully()).close(); } }
[ "sjw_job@126.com" ]
sjw_job@126.com
e450b38dfc344c8cdbae2652a6635fe142d9a79b
350a890374fc3e7b45a52ae71e1d106bc7e3bc43
/molecule/src/main/java/com/vtence/molecule/routing/DynamicRoute.java
8ee60a76d67880b63ae97035222ac30c76d00f4f
[]
no_license
PSD-RTS/simple-petstore-avengers
070fa65ae7f3f10756c5172d5c7071e2c0f5a128
39dee77e003f74feb9ec52dc04993685a2340511
refs/heads/master
2018-12-29T20:35:05.235280
2014-05-07T14:05:36
2014-05-07T14:05:36
19,356,788
1
1
null
null
null
null
UTF-8
Java
false
false
1,520
java
package com.vtence.molecule.routing; import com.vtence.molecule.Application; import com.vtence.molecule.http.HttpMethod; import com.vtence.molecule.lib.Matcher; import com.vtence.molecule.Request; import com.vtence.molecule.Response; import com.vtence.molecule.lib.Combination; import com.vtence.molecule.lib.Matchers; import java.util.Map; public class DynamicRoute implements Route { private final Matcher<? super String> path; private final Matcher<? super HttpMethod> method; private final Application app; public DynamicRoute(Matcher<? super String> path, Matcher<? super HttpMethod> method, Application app) { this.path = path; this.method = method; this.app = app; } public boolean matches(Request request) { return both(Matchers.withMethod(method)).and(Matchers.withPath(path)).matches(request); } private Combination<Request> both(Matcher<Request> matcher) { return Combination.both(matcher); } public void handle(Request request, Response response) throws Exception { if (path instanceof WithBoundParameters) { WithBoundParameters dynamicPath = (WithBoundParameters) path; Map<String, String> dynamicParameters = dynamicPath.parametersBoundTo(request.path()); for (String name: dynamicParameters.keySet() ) { request.addParameter(name, dynamicParameters.get(name)); } } app.handle(request, response); } }
[ "clapointe@pyxis-tech.com" ]
clapointe@pyxis-tech.com
50693db97c84fa3b0f454c86e4cc78f9d6b31abd
c2166ba7f98f6bb5a008509edb8dbe82a7b099af
/jflow-core/src/main/java/BP/WF/DTS/GenerTitle.java
7108220d437e991ec4f9a128ec76594315296e46
[]
no_license
zhanght86/skoa
4fe28ca081b9412937fff17dac1647f94bcd3b66
4dbedb9a42c10115537ffeab9c357b3917a5acdd
refs/heads/master
2021-01-01T20:08:34.714297
2017-02-13T07:50:56
2017-02-13T07:50:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
973
java
package BP.WF.DTS; import BP.DA.*; import BP.Port.*; import BP.En.*; import BP.Sys.*; import BP.WF.*; import BP.Web.WebUser; /** 重新生成标题 */ public class GenerTitle extends Method { /** 重新生成标题 */ public GenerTitle() { this.Title = "重新生成标题(为所有的流程,根据新的规则生成流程标题)"; this.Help = "您也可以打开流程属性一个个的单独执行。"; } /** 设置执行变量 @return */ @Override public void Init() { } /** 当前的操纵员是否可以执行这个方法 */ @Override public boolean getIsCanDo() { if (BP.Web.WebUser.getNo().equals("admin")) { return true; } return false; } /** 执行 @return 返回执行结果 */ @Override public Object Do() { BP.WF.Template.FlowSheets ens = new BP.WF.Template.FlowSheets(); for (BP.WF.Template.FlowSheet en : ens.ToJavaList()) { en.DoGenerTitle(); } return "执行成功..."; } }
[ "81367070@qq.com" ]
81367070@qq.com
bbf100a043590cc319c30576e4e18f09eb330e9b
117c7f326b6c6e5240e80c3f8638c929826ef04c
/Curs6/Fereastra6.java
d6610403c3c8a55e6b8af6ddea26247f8b059b61
[]
no_license
laurentiuspilca/java1poct2017
3499e57d67ebb3275757a33aae64cc1ce2e5b8c7
43817511afab4b373048700faf87d6262eedcd22
refs/heads/master
2021-08-29T19:02:08.813506
2017-12-14T18:01:10
2017-12-14T18:01:10
106,730,380
0
0
null
null
null
null
UTF-8
Java
false
false
1,806
java
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Fereastra6 extends JFrame { private JMenuBar mb; private JMenu m1; private JMenuItem mi1; private JPanel p1,p2,p3; private JLabel e1,e2; private JTextField t1; private JPasswordField t2; private JButton b1; public Fereastra6() { super("Login Frame"); setLayout(new GridLayout(3, 1)); mb = new JMenuBar(); m1 = new JMenu("File"); mi1 = new JMenuItem("Exit"); setJMenuBar(mb); mb.add(m1); m1.add(mi1); mi1.addActionListener(ev -> System.exit(0)); p1 = new JPanel(new FlowLayout(FlowLayout.LEFT)); p2 = new JPanel(new FlowLayout(FlowLayout.LEFT)); p3 = new JPanel(); add(p1); add(p2); add(p3); e1 = new JLabel("Username"); e2 = new JLabel("Password"); t1 = new JTextField(15); t2 = new JPasswordField(15); b1 = new JButton("Login"); p1.add(e1); p1.add(t1); p2.add(e2); p2.add(t2); p3.add(b1); b1.addActionListener(ev -> login()); pack(); setLocationRelativeTo(null); setResizable(false); setVisible(true); } private void login() { String username = t1.getText(); String password = new String(t2.getPassword()); if ("gigel".equals(username) && "1234".equals(password)) { JOptionPane.showMessageDialog(this, "Login reusit!"); } else { JOptionPane.showMessageDialog(this, "Username sau parola gresite!"); } } public static void main(String [] args) { new Fereastra6(); } }
[ "laur.spilca@gmail.com" ]
laur.spilca@gmail.com
14301cf33acef27f04554d91a8136860f06f3594
9a6ea6087367965359d644665b8d244982d1b8b6
/src/main/java/X/AnonymousClass38B.java
d5ca952f6d2c32b601e11d428f4374758739df53
[]
no_license
technocode/com.wa_2.21.2
a3dd842758ff54f207f1640531374d3da132b1d2
3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9
refs/heads/master
2023-02-12T11:20:28.666116
2021-01-14T10:22:21
2021-01-14T10:22:21
329,578,591
2
1
null
null
null
null
UTF-8
Java
false
false
420
java
package X; import android.media.AudioManager; /* renamed from: X.38B reason: invalid class name */ public final /* synthetic */ class AnonymousClass38B implements AudioManager.OnAudioFocusChangeListener { public static final /* synthetic */ AnonymousClass38B A00 = new AnonymousClass38B(); public final void onAudioFocusChange(int i) { AnonymousClass008.A0v("voip audio focus changed: ", i); } }
[ "madeinborneo@gmail.com" ]
madeinborneo@gmail.com
d94ad0282a899f65a26c9ea81291812b0750b80b
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/10/10_c3a499436810439673bd761145aef1037ec4e0c7/DBLog/10_c3a499436810439673bd761145aef1037ec4e0c7_DBLog_t.java
863f8db826abc57e19a67a935cbb0f6b6b1ae5fa
[]
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,864
java
package db; import models.Log; import models.User; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.Date; /** * Created: 12-12-2012 * @version: 0.1 * Filename: DBLog.java * Description: * @changes */ public class DBLog implements IFDBLog { private DataAccess _da; public DBLog() { _da = DataAccess.getInstance(); } /** * Retrieve all log data from database * * @return ArrayList<Log> */ @Override public ArrayList<Log> getAllLogs() throws Exception { ArrayList<Log> returnList = new ArrayList<Log>(); PreparedStatement query = _da.getCon().prepareStatement("SELECT * FROM Logs"); _da.setSqlCommandText(query); ResultSet logData = _da.callCommandGetResultSet(); while(logData.next()) { Log log = buildLog(logData); returnList.add(log); } return returnList; } /** * Get a specific log entry by user * * @param user the user which the exception occurred to * @return ArrayList<Log> */ @Override public ArrayList<Log> getAllLogsByUser(User user) throws Exception { ArrayList<Log> returnList = new ArrayList<Log>(); PreparedStatement query = _da.getCon().prepareStatement("SELECT * FROM Logs WHERE userId = ?"); query.setInt(1, user.getUserId()); _da.setSqlCommandText(query); ResultSet logData = _da.callCommandGetResultSet(); while(logData.next()) { Log log = buildLog(logData); returnList.add(log); } return returnList; } /** * Get a specific log entry by id * * @param value the id of the log entry you want returned * @return Log */ @Override public Log getLogById(int value) throws Exception { PreparedStatement query = _da.getCon().prepareStatement("SELECT * FROM Logs WHERE logId = ?"); query.setLong(1, value); _da.setSqlCommandText(query); ResultSet logResult = _da.callCommandGetRow(); if(logResult.next()) return buildLog(logResult); return null; } /** * Inserts a new log entry in the database * * @param logEntry the object containing the information you want stored * @return int returns the number of rows affected */ @Override public int insertLog(Log logEntry) throws Exception { if(logEntry == null) return 0; PreparedStatement query = _da.getCon().prepareStatement("INSERT INTO Logs (userId, userDetails, exception, exceptionLocation, createdDate) VALUES (?, ?, ?, ?, ?)"); query.setInt(1, logEntry.getUser().getUserId()); query.setString(2, logEntry.getUserDetails()); query.setString(3, logEntry.getException()); query.setString(4, logEntry.getExceptionLocation()); query.setDate(5, (java.sql.Date) logEntry.getCreatedDate()); _da.setSqlCommandText(query); return _da.callCommand(); } private Log buildLog(ResultSet row) throws Exception { if(row == null) return null; DBUser dbUser = new DBUser(); int logId = row.getInt("logId"); User user = dbUser.getUserById(row.getInt("userId")); String userDetails = row.getString("userDetails"); String exception = row.getString("exception"); String exceptionLocation = row.getString("exceptionLocation"); Date createdDate = row.getDate("createdDate"); return new Log(logId, user, userDetails, exception, exceptionLocation, createdDate); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
cbabb75f3a2b6e3604f9def055193679a504a3f0
32bd72a946608931d979b1f475bec15aa020edb9
/apktool/apk/wkhelper_1.6.6.4_167/smali/com/umeng/a/l.java
ba1e721d49c692dbc77f04bed0d13eced431c8f3
[]
no_license
Jagle/mytools
80d3a68b3dc70cbffaf8c4f3a5e9d855734da2af
8aef2f8400b6e9a4b0fad9292332c93f594053e6
refs/heads/master
2016-08-12T20:39:27.614965
2015-08-07T11:32:25
2015-08-07T11:32:25
36,046,910
1
0
null
null
null
null
UTF-8
Java
false
false
585
java
package com.umeng.a; class l { void a() { int a; a=0;// .class public Lcom/umeng/a/l; a=0;// .super Ljava/lang/Object; a=0;// a=0;// a=0;// # direct methods a=0;// .method public constructor <init>()V a=0;// .locals 0 a=0;// a=0;// invoke-direct {p0}, Ljava/lang/Object;-><init>()V a=0;// a=0;// #p0=(Reference,Lcom/umeng/a/l;); a=0;// return-void a=0;// .end method a=0;// a=0;// a=0;// # virtual methods a=0;// .method public a(Z)Z a=0;// .locals 1 a=0;// a=0;// const/4 v0, 0x1 a=0;// a=0;// #v0=(One); a=0;// return v0 a=0;// .end method }}
[ "jagle@liujiedeMacBook-Pro.local" ]
jagle@liujiedeMacBook-Pro.local
c18b5faa57babf2e63d228f4d089fc459b9ce213
78f284cd59ae5795f0717173f50e0ebe96228e96
/factura-negocio/src/cl/stotomas/factura/negocio/formulario_26/copy2/TestingVulnerabilities.java
3635880a456ce0c5aee0078c953b1dca41a5e6ec
[]
no_license
Pattricio/Factura
ebb394e525dfebc97ee2225ffc5fca10962ff477
eae66593ac653f85d05071b6ccb97fb1e058502d
refs/heads/master
2020-03-16T03:08:45.822070
2018-05-07T15:29:25
2018-05-07T15:29:25
132,481,305
0
0
null
null
null
null
ISO-8859-1
Java
false
false
2,281
java
package cl.stotomas.factura.negocio.formulario_26.copy2; import java.applet.Applet; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; //import cl.stomas.factura.negocio.testing.TestingModel.Echo; public class TestingVulnerabilities { public static String decryptMessage(final byte[] message, byte[] secretKey) { try { // CÓDIGO VULNERABLE final SecretKeySpec KeySpec = new SecretKeySpec(secretKey, "DES"); final Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, KeySpec); // RECOMENDACIÓN VERACODE // final Cipher cipher = Cipher.getInstance("DES..."); // cipher.init(Cipher.DECRYPT_MODE, KeySpec); return new String(cipher.doFinal(message)); } catch(Exception e) { e.printStackTrace(); } return null; } // Inclusión de funcionalidades de esfera de control que no es de confianza // Un atacante puede insertar funcionalidades maliciosas dentro de este programa. // Las Applet comprometen la seguridad. ya que sus funcionalidades se pueden adaptar a la Web // Ademas la entrega de acceso de credenciales es engorrosa para el cliente. public final class WidgetData extends Applet { private static final long serialVersionUID = 1L; public float price; public WidgetData() { this.price = LookupPrice("MyWidgetType"); } private float LookupPrice(String string) { return 0; } } class Echo { // Control de Proceso // Posible reemplazo de librería por una maliciosa // Donde además s enos muestra el nombre explícito de esta. public native void runEcho(); { System.loadLibrary("echo"); // Se carga librería } public void main(String[] args) { new Echo().runEcho(); } } class EchoSecond { // Control de Proceso // Posible reemplazo de librería por una maliciosa // Donde además s enos muestra el nombre explícito de esta. public native void runEcho(); { System.loadLibrary("echo"); // Se carga librería } public void main(String[] args) { new Echo().runEcho(); } } }
[ "Adriana Molano@DESKTOP-GQ96FK8" ]
Adriana Molano@DESKTOP-GQ96FK8
4f3c332c5fdbb2c8716cab49b2762a892aa0c618
009786623146d2905cb7bef7c6490f4e3d7de44c
/datavec-data/datavec-data-audio/src/main/java/org/datavec/audio/fingerprint/QuickSortDouble.java
7a53e914732a5f58000b0215ad3b93bca3ed5fd4
[ "Apache-2.0" ]
permissive
henkyaichk/DataVec
a65481bf6ca068b0ca5ec1985f9cad75aa32c4fb
9675d08dd94ad23df6aafbc647d576d7ed9a2040
refs/heads/master
2020-05-23T11:20:00.719019
2017-01-24T09:11:35
2017-01-24T09:11:35
80,386,136
1
0
null
2017-01-30T01:40:01
2017-01-30T01:40:01
null
UTF-8
Java
false
false
2,313
java
/* * * Copyright 2016 Skymind, 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 org.datavec.audio.fingerprint; public class QuickSortDouble extends QuickSort{ private int[] indexes; private double[] array; public QuickSortDouble(double[] array){ this.array=array; indexes=new int[array.length]; for (int i=0; i<indexes.length; i++){ indexes[i]=i; } } public int[] getSortIndexes(){ sort(); return indexes; } private void sort() { quicksort(array, indexes, 0, indexes.length - 1); } // quicksort a[left] to a[right] private void quicksort(double[] a, int[] indexes, int left, int right) { if (right <= left) return; int i = partition(a, indexes, left, right); quicksort(a, indexes, left, i-1); quicksort(a, indexes, i+1, right); } // partition a[left] to a[right], assumes left < right private int partition(double[] a, int[] indexes, int left, int right) { int i = left - 1; int j = right; while (true) { while (a[indexes[++i]]<a[indexes[right]]); // find item on left to swap, a[right] acts as sentinel while (a[indexes[right]]<a[indexes[--j]]){ // find item on right to swap if (j == left) break; // don't go out-of-bounds } if (i >= j) break; // check if pointers cross swap(a, indexes, i, j); // swap two elements into place } swap(a, indexes, i, right); // swap with partition element return i; } // exchange a[i] and a[j] private void swap(double[] a, int[] indexes, int i, int j) { int swap = indexes[i]; indexes[i] = indexes[j]; indexes[j] = swap; } }
[ "blacka101@gmail.com" ]
blacka101@gmail.com
b76027ee825cb7ccea1bfdb087a492a139ad523b
a8eb13e507d8c3c0bbf515dc757dd12d5b86c6c1
/aimxcel-jmol/src/main/java/org/openscience/jmol/app/webexport/PopInJmol.java
76885c649babc3968b9bd938567b26a607c8bf28
[]
no_license
venkat-thota/java-simulations
41bb30375c1a2dedff1e1d64fade90c0ab2eac6a
d4c94d9cc84c9ee57c7b541843f8235352726f5e
refs/heads/master
2020-12-04T01:33:55.211161
2020-01-24T16:26:12
2020-01-24T16:26:12
231,548,090
0
0
null
2020-10-13T18:37:51
2020-01-03T08:47:26
Java
UTF-8
Java
false
false
5,223
java
package org.openscience.jmol.app.webexport; import javax.swing.JFileChooser; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JSpinner; import javax.swing.SpinnerNumberModel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import org.jmol.api.JmolViewer; import org.jmol.i18n.GT; import org.jmol.util.TextFormat; class PopInJmol extends WebPanel implements ChangeListener { /** * */ private static final long serialVersionUID = 1L; PopInJmol(JmolViewer viewer, JFileChooser fc, WebPanel[] webPanels, int panelIndex) { super(viewer, fc, webPanels, panelIndex); panelName = "pop_in"; listLabel = GT._("These names will be used as filenames for the applets"); } @Override JPanel appletParamPanel() { // Create the appletSize spinner so the user can decide how big // the applet should be. SpinnerNumberModel appletSizeModelW = new SpinnerNumberModel(WebExport .getPopInWidth(), // initial value 50, // min 1000, // max 25); // step size SpinnerNumberModel appletSizeModelH = new SpinnerNumberModel(WebExport .getPopInHeight(), // initial value 50, // min 1000, // max 25); // step size appletSizeSpinnerW = new JSpinner(appletSizeModelW); appletSizeSpinnerW.addChangeListener(this); appletSizeSpinnerH = new JSpinner(appletSizeModelH); appletSizeSpinnerH.addChangeListener(this); // panel to hold spinner and label JPanel appletSizeWHPanel = new JPanel(); appletSizeWHPanel.add(new JLabel(GT._("Applet width:"))); appletSizeWHPanel.add(appletSizeSpinnerW); appletSizeWHPanel.add(new JLabel(GT._("height:"))); appletSizeWHPanel.add(appletSizeSpinnerH); return (appletSizeWHPanel); } @Override String fixHtml(String html) { return html; } @Override String getAppletDefs(int i, String html, StringBuffer appletDefs, JmolInstance instance) { String divClass = (i % 2 == 0 ? "floatRightDiv" : "floatLeftDiv"); String name = instance.name; String javaname = instance.javaname; int JmolSizeW = instance.width; int JmolSizeH = instance.height; String widgetDefs = ""; if (!instance.whichWidgets.isEmpty()) { widgetDefs += "<div id=\"JmolCntl" + i + "\" style=\"display:none;\">"; for (int j = 0; j < nWidgets; j++) { if (instance.whichWidgets.get(j)) { widgetDefs += "\n<div>" + theWidgets.widgetList[j].getJavaScript(i, instance) + "</div>\n"; //each widget in one line } } widgetDefs += "</div>"; } if (useAppletJS) { appletInfoDivs += "\n<div id=\"" + javaname + "_caption\">\n" + GT.escapeHTML(GT._("insert a caption for {0} here.", name)) + "\n</div>"; appletInfoDivs += "\n<div id=\"" + javaname + "_note\">\n" + GT.escapeHTML(GT._("insert a note for {0} here.", name)) + "\n</div>"; //TODO fix pure javascript to work with widgets... appletDefs.append("\naddJmolDiv(" + i + ",'" + divClass + "','" + javaname + "'," + JmolSizeW + "," + JmolSizeH + ")"); } else { String s = htmlAppletTemplate; s = TextFormat.simpleReplace(s, "@CLASS@", "" + divClass); s = TextFormat.simpleReplace(s, "@I@", "" + i); s = TextFormat.simpleReplace(s, "@WIDTH@", "" + JmolSizeW); s = TextFormat.simpleReplace(s, "@HEIGHT@", "" + JmolSizeH); s = TextFormat.simpleReplace(s, "@NAME@", GT.escapeHTML(name)); s = TextFormat.simpleReplace(s, "@APPLETNAME@", GT.escapeHTML(javaname)); s = TextFormat.simpleReplace(s, "@LEFTWIDGETS@", "");// no left widgets // for now s = TextFormat.simpleReplace(s, "@RIGHTWIDGETS@", widgetDefs); appletDefs.append(s); } return html; } public void stateChanged(ChangeEvent e) { if (e.getSource() == appletSizeSpinnerW || e.getSource() == appletSizeSpinnerH) { int width = ((SpinnerNumberModel) (appletSizeSpinnerW.getModel())) .getNumber().intValue(); int height = ((SpinnerNumberModel) (appletSizeSpinnerH.getModel())) .getNumber().intValue(); WebExport.setPopInDim(width, height); JList whichList = getInstanceList(); int[] list = whichList.getSelectedIndices(); if (list.length != 1)// may want to make this work on multiple selections return; int index = whichList.getSelectedIndex(); JmolInstance instance = (JmolInstance) whichList.getModel().getElementAt( index); instance.width = width; instance.height = height; viewer.createImage(instance.pictFile, "PNG", null, 2, width, height); return; } if (e.getSource() == appletSizeSpinnerP) { int percent = ((SpinnerNumberModel) (appletSizeSpinnerP.getModel())) .getNumber().intValue(); WebExport.setScriptButtonPercent(percent); return; } } }
[ "59469892+venkat-thota@users.noreply.github.com" ]
59469892+venkat-thota@users.noreply.github.com
fd6131d5886bbcc5413a0d9d55e853cad1e3d8a1
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/digits/ca94e3756cbf8d1490bad660c06307f5d678e3675bbea85359523809a4f06b370066767ea2d2d76d270e4712b464924f12e19dbf1a12d28b75d367ceb202dbb9/000/mutations/200/digits_ca94e375_000.java
f05d0f5b2a5afbe37ce6f9b39d8224a0c3bd7f3a
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,087
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class digits_ca94e375_000 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { digits_ca94e375_000 mainClass = new digits_ca94e375_000 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj n = new IntObj (); IntObj x = new IntObj (), y = new IntObj (); IntObj temp = new IntObj (); output += (String.format ("\nEnter an integer > ")); y.value = scanner.nextInt (); y.value = 0; while (n.value <= 10) { x.value = y.value % 10; output += (String.format ("\n%d", Math.abs (x.value))); x.value = y.value / 10; if (x.value > -10 && x.value < 0) { output += (String.format ("\n%d", x.value)); output += (String.format ("\nThat's all, have a nice day!\n")); if (true) return;; } temp.value = x.value; x.value = y.value; y.value = temp.value; n.value = n.value + 1; } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
e48660bae89979b4ef4849ad567693812167211b
42fcf1d879cb75f08225137de5095adfdd63fa21
/src/main/java/org/jooq/packages/app_lnm_mca_ms_bl_reassign/CheckLineNrExists.java
bfe3c0c37260597f7bafecb2f6106537be88eb58
[]
no_license
mpsgit/JOOQTest
e10e9c8716f2688c8bf0160407b1244f9e70e8eb
6af2922bddc55f591e94a5a9a6efd1627747d6ad
refs/heads/master
2021-01-10T06:11:40.862153
2016-02-28T09:09:34
2016-02-28T09:09:34
52,711,455
0
0
null
null
null
null
UTF-8
Java
false
false
3,856
java
/** * This class is generated by jOOQ */ package org.jooq.packages.app_lnm_mca_ms_bl_reassign; import java.math.BigDecimal; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Parameter; import org.jooq.Wetrn; import org.jooq.impl.AbstractRoutine; import org.jooq.packages.AppLnmMcaMsBlReassign; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class CheckLineNrExists extends AbstractRoutine<String> { private static final long serialVersionUID = -1555353846; /** * The parameter <code>WETRN.APP_LNM_MCA_MS_BL_REASSIGN.CHECK_LINE_NR_EXISTS.RETURN_VALUE</code>. */ public static final Parameter<String> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.VARCHAR, false); /** * The parameter <code>WETRN.APP_LNM_MCA_MS_BL_REASSIGN.CHECK_LINE_NR_EXISTS.P_LEAD_MRKT_ID</code>. */ public static final Parameter<BigDecimal> P_LEAD_MRKT_ID = createParameter("P_LEAD_MRKT_ID", org.jooq.impl.SQLDataType.NUMERIC, false); /** * The parameter <code>WETRN.APP_LNM_MCA_MS_BL_REASSIGN.CHECK_LINE_NR_EXISTS.P_LINE_NR</code>. */ public static final Parameter<String> P_LINE_NR = createParameter("P_LINE_NR", org.jooq.impl.SQLDataType.VARCHAR, false); /** * The parameter <code>WETRN.APP_LNM_MCA_MS_BL_REASSIGN.CHECK_LINE_NR_EXISTS.P_LINE_NR_TYP_ID</code>. */ public static final Parameter<BigDecimal> P_LINE_NR_TYP_ID = createParameter("P_LINE_NR_TYP_ID", org.jooq.impl.SQLDataType.NUMERIC, false); /** * The parameter <code>WETRN.APP_LNM_MCA_MS_BL_REASSIGN.CHECK_LINE_NR_EXISTS.P_LINE_NR_GRP_ID</code>. */ public static final Parameter<BigDecimal> P_LINE_NR_GRP_ID = createParameter("P_LINE_NR_GRP_ID", org.jooq.impl.SQLDataType.NUMERIC, false); /** * Create a new routine call instance */ public CheckLineNrExists() { super("CHECK_LINE_NR_EXISTS", Wetrn.WETRN, AppLnmMcaMsBlReassign.APP_LNM_MCA_MS_BL_REASSIGN, org.jooq.impl.SQLDataType.VARCHAR); setReturnParameter(RETURN_VALUE); addInParameter(P_LEAD_MRKT_ID); addInParameter(P_LINE_NR); addInParameter(P_LINE_NR_TYP_ID); addInParameter(P_LINE_NR_GRP_ID); } /** * Set the <code>P_LEAD_MRKT_ID</code> parameter IN value to the routine */ public void setPLeadMrktId(Number value) { setNumber(P_LEAD_MRKT_ID, value); } /** * Set the <code>P_LEAD_MRKT_ID</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void setPLeadMrktId(Field<? extends Number> field) { setNumber(P_LEAD_MRKT_ID, field); } /** * Set the <code>P_LINE_NR</code> parameter IN value to the routine */ public void setPLineNr(String value) { setValue(P_LINE_NR, value); } /** * Set the <code>P_LINE_NR</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void setPLineNr(Field<String> field) { setField(P_LINE_NR, field); } /** * Set the <code>P_LINE_NR_TYP_ID</code> parameter IN value to the routine */ public void setPLineNrTypId(Number value) { setNumber(P_LINE_NR_TYP_ID, value); } /** * Set the <code>P_LINE_NR_TYP_ID</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void setPLineNrTypId(Field<? extends Number> field) { setNumber(P_LINE_NR_TYP_ID, field); } /** * Set the <code>P_LINE_NR_GRP_ID</code> parameter IN value to the routine */ public void setPLineNrGrpId(Number value) { setNumber(P_LINE_NR_GRP_ID, value); } /** * Set the <code>P_LINE_NR_GRP_ID</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void setPLineNrGrpId(Field<? extends Number> field) { setNumber(P_LINE_NR_GRP_ID, field); } }
[ "krisztian.koller@gmail.com" ]
krisztian.koller@gmail.com
d75f32634d6c9d7b8ad93ff6565eedff539382f7
7457be2d0382ec9913fa4ca718f22a15e6223f3e
/Server/src/com/overload/net/packet/impl/commands/developer/Spec.java
9ea3a8565a2c5f0cf845b37bb0d3b34a009c1a51
[]
no_license
Phynvi/Project
581b752ae413ad86c023d223070804591b026308
d689046ce0abbdcc1dee02bce2eebae6e71bc5d6
refs/heads/master
2020-12-06T04:20:01.560234
2018-08-15T10:13:03
2018-08-15T10:16:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
450
java
package com.overload.net.packet.impl.commands.developer; import com.overload.game.content.combat.CombatSpecial; import com.overload.game.entity.impl.player.Player; import com.overload.net.packet.impl.commands.Command; public class Spec extends Command { @Override public void execute(Player player, String input) { int amt = Integer.parseInt(input); player.setSpecialPercentage(amt); CombatSpecial.updateBar(player); } }
[ "jovannimeda@hotmail.com" ]
jovannimeda@hotmail.com
34addc7d4845c06ad3f6c30a031caf6b34bb0493
44e73404cb1f2bc56675768032d16c9825638b34
/src/main/java/cn/acyou/iblogclient/hystrix/HelloRemoteHystrix.java
8b14aeddff2c3e01741a629a783a4684694bff60
[]
no_license
f981545521/iblog-client
c0c4bfa5e74a5847242786221e260ecad1ef27f8
607fcde2dd76bb477265f8fc1ed83d56d79e8e7b
refs/heads/master
2020-03-21T06:59:20.968716
2018-06-22T08:04:04
2018-06-22T08:04:04
138,253,860
0
0
null
null
null
null
UTF-8
Java
false
false
529
java
package cn.acyou.iblogclient.hystrix; import cn.acyou.iblogclient.remote.HelloRemote; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.RequestParam; /** * 熔断器 * @author youfang * @version [1.0.0, 2018-06-22 下午 03:29] **/ @Component public class HelloRemoteHystrix implements HelloRemote { @Override public String hello(@RequestParam(value = "name") String name) { return "hello : " + name + ", 你的信息发送到productor失败了。"; } }
[ "981545521@qq.com" ]
981545521@qq.com
69e6534ccf91e8b47edcc4555cd221bbe307c90c
99b0df5dd6961a95739ee02c907a8ef0c8c3defe
/bos_management/src/main/java/cn/itcast/bos/domain/exe/ResultInfo.java
b42886e6df299c31d94e262d11fa2481c4f25c15
[]
no_license
superwander/javaweb
0334946a4eaf4af686fbe3ba21ba602f86283267
09887db8b6303eca10e1d6d8ff6302f8be8bd06e
refs/heads/master
2020-12-02T17:50:37.134100
2017-07-06T14:36:41
2017-07-06T14:36:41
96,438,415
0
0
null
null
null
null
UTF-8
Java
false
false
517
java
package cn.itcast.bos.domain.exe; public class ResultInfo { /** 结果状态 */ private String status; /** 结果信息 */ private String msg; public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public ResultInfo() { } public ResultInfo(String status, String msg) { super(); this.status = status; this.msg = msg; } }
[ "bos@itcast.cn" ]
bos@itcast.cn
85635bf2e8006d30ec030156c402110a4bf81043
ad41ba20bfd02e218eec5ab280de2ddde448f61b
/app/src/main/java/com/ns/yc/lifehelper/ui/other/myNews/wyNews/cache/CacheTodayChannel.java
1b13c5b94767ac898c129378013263f5f794a28d
[]
no_license
zhoufeng1213/LifeHelper
2a338f3c497e0d07aa0159faef30c72412a45f0d
38028bf08fa161889fa3a3b02297f384f7a5499c
refs/heads/master
2020-03-28T20:25:48.071147
2018-09-15T07:00:21
2018-09-15T07:00:21
149,069,487
1
0
null
2018-09-17T04:38:11
2018-09-17T04:38:11
null
UTF-8
Java
false
false
565
java
package com.ns.yc.lifehelper.ui.other.myNews.wyNews.cache; import io.realm.RealmObject; /** * ================================================ * 作 者:杨充 * 版 本:1.0 * 创建日期:2017/8/31 * 描 述:头条新闻类型缓存 * 修订历史: * ================================================ */ public class CacheTodayChannel extends RealmObject { private String channel; public String getChannel() { return channel; } public void setChannel(String channel) { this.channel = channel; } }
[ "yangchong211@163.com" ]
yangchong211@163.com
ee1b86574893622c6a1ddcc23fa5574d8546f939
471cd06a249f543a14ef415445b176eb76714650
/mcp/temp/src/minecraft/net/minecraft/util/MessageComponentSerializer.java
597ffa17e6215d838ac9098c19002720ed0f7dc2
[ "BSD-3-Clause" ]
permissive
Fredster777/ExploreCraft
ec3102d0dd86b1e9683c30ee7b181e8d0d04e063
db163ca7b40b1fd834d180c17cb8476c551a5540
refs/heads/master
2020-06-06T12:22:18.903600
2014-03-29T14:48:38
2014-03-29T14:48:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,465
java
package net.minecraft.util; import com.google.common.collect.Lists; import com.google.gson.JsonArray; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Iterator; import net.minecraft.util.ChatMessageComponent; import net.minecraft.util.EnumChatFormatting; public class MessageComponentSerializer implements JsonDeserializer, JsonSerializer { public ChatMessageComponent func_111056_a(JsonElement p_111056_1_, Type p_111056_2_, JsonDeserializationContext p_111056_3_) { ChatMessageComponent var4 = new ChatMessageComponent(); JsonObject var5 = (JsonObject)p_111056_1_; JsonElement var6 = var5.get("text"); JsonElement var7 = var5.get("translate"); JsonElement var8 = var5.get("color"); JsonElement var9 = var5.get("bold"); JsonElement var10 = var5.get("italic"); JsonElement var11 = var5.get("underlined"); JsonElement var12 = var5.get("obfuscated"); if(var8 != null && var8.isJsonPrimitive()) { EnumChatFormatting var13 = EnumChatFormatting.func_96300_b(var8.getAsString()); if(var13 == null || !var13.func_96302_c()) { throw new JsonParseException("Given color (" + var8.getAsString() + ") is not a valid selection"); } var4.func_111059_a(var13); } if(var9 != null && var9.isJsonPrimitive()) { var4.func_111071_a(Boolean.valueOf(var9.getAsBoolean())); } if(var10 != null && var10.isJsonPrimitive()) { var4.func_111063_b(Boolean.valueOf(var10.getAsBoolean())); } if(var11 != null && var11.isJsonPrimitive()) { var4.func_111081_c(Boolean.valueOf(var11.getAsBoolean())); } if(var12 != null && var12.isJsonPrimitive()) { var4.func_111061_d(Boolean.valueOf(var12.getAsBoolean())); } if(var6 != null) { if(var6.isJsonArray()) { JsonArray var18 = var6.getAsJsonArray(); Iterator var14 = var18.iterator(); while(var14.hasNext()) { JsonElement var15 = (JsonElement)var14.next(); if(var15.isJsonPrimitive()) { var4.func_111079_a(var15.getAsString()); } else if(var15.isJsonObject()) { var4.func_111073_a(this.func_111056_a(var15, p_111056_2_, p_111056_3_)); } } } else if(var6.isJsonPrimitive()) { var4.func_111079_a(var6.getAsString()); } } else if(var7 != null && var7.isJsonPrimitive()) { JsonElement var17 = var5.get("using"); if(var17 != null) { if(var17.isJsonArray()) { ArrayList var20 = Lists.newArrayList(); Iterator var19 = var17.getAsJsonArray().iterator(); while(var19.hasNext()) { JsonElement var16 = (JsonElement)var19.next(); if(var16.isJsonPrimitive()) { var20.add(var16.getAsString()); } else if(var16.isJsonObject()) { var20.add(this.func_111056_a(var16, p_111056_2_, p_111056_3_)); } } var4.func_111080_a(var7.getAsString(), var20.toArray()); } else if(var17.isJsonPrimitive()) { var4.func_111080_a(var7.getAsString(), new Object[]{var17.getAsString()}); } } else { var4.func_111072_b(var7.getAsString()); } } return var4; } public JsonElement func_111055_a(ChatMessageComponent p_111055_1_, Type p_111055_2_, JsonSerializationContext p_111055_3_) { JsonObject var4 = new JsonObject(); if(p_111055_1_.func_111065_a() != null) { var4.addProperty("color", p_111055_1_.func_111065_a().func_96297_d()); } if(p_111055_1_.func_111058_b() != null) { var4.addProperty("bold", p_111055_1_.func_111058_b()); } if(p_111055_1_.func_111064_c() != null) { var4.addProperty("italic", p_111055_1_.func_111064_c()); } if(p_111055_1_.func_111067_d() != null) { var4.addProperty("underlined", p_111055_1_.func_111067_d()); } if(p_111055_1_.func_111076_e() != null) { var4.addProperty("obfuscated", p_111055_1_.func_111076_e()); } if(p_111055_1_.func_111075_f() != null) { var4.addProperty("text", p_111055_1_.func_111075_f()); } else if(p_111055_1_.func_111074_g() != null) { var4.addProperty("translate", p_111055_1_.func_111074_g()); if(p_111055_1_.func_111069_h() != null && !p_111055_1_.func_111069_h().isEmpty()) { var4.add("using", this.func_111057_b(p_111055_1_, p_111055_2_, p_111055_3_)); } } else if(p_111055_1_.func_111069_h() != null && !p_111055_1_.func_111069_h().isEmpty()) { var4.add("text", this.func_111057_b(p_111055_1_, p_111055_2_, p_111055_3_)); } return var4; } private JsonArray func_111057_b(ChatMessageComponent p_111057_1_, Type p_111057_2_, JsonSerializationContext p_111057_3_) { JsonArray var4 = new JsonArray(); Iterator var5 = p_111057_1_.func_111069_h().iterator(); while(var5.hasNext()) { ChatMessageComponent var6 = (ChatMessageComponent)var5.next(); if(var6.func_111075_f() != null) { var4.add(new JsonPrimitive(var6.func_111075_f())); } else { var4.add(this.func_111055_a(var6, p_111057_2_, p_111057_3_)); } } return var4; } // $FF: synthetic method public Object deserialize(JsonElement p_deserialize_1_, Type p_deserialize_2_, JsonDeserializationContext p_deserialize_3_) { return this.func_111056_a(p_deserialize_1_, p_deserialize_2_, p_deserialize_3_); } // $FF: synthetic method public JsonElement serialize(Object p_serialize_1_, Type p_serialize_2_, JsonSerializationContext p_serialize_3_) { return this.func_111055_a((ChatMessageComponent)p_serialize_1_, p_serialize_2_, p_serialize_3_); } }
[ "freddie.guthrie@googlemail.com" ]
freddie.guthrie@googlemail.com
5b31977ed692fa1165c1a96de2c3d5a60358e9a5
f766baf255197dd4c1561ae6858a67ad23dcda68
/app/src/main/java/com/tencent/matrix/iocanary/a/a.java
a7fa8afe6f9a4334d44c09952e95537de48ac8b5
[]
no_license
jianghan200/wxsrc6.6.7
d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849
eb6c56587cfca596f8c7095b0854cbbc78254178
refs/heads/master
2020-03-19T23:40:49.532494
2018-06-12T06:00:50
2018-06-12T06:00:50
137,015,278
4
2
null
null
null
null
UTF-8
Java
false
false
1,171
java
package com.tencent.matrix.iocanary.a; public final class a { public static final a bqL; public final int bqM; public final int bqN; private final int bqO; public final int bqP; private final int mask; static { a locala = new a(); bqL = new a(locala.bpd, locala.bqQ, locala.bqR, locala.bqS, locala.bqT, (byte)0); } private a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5) { this.mask = paramInt1; this.bqM = paramInt2; this.bqO = paramInt4; this.bqN = paramInt3; this.bqP = paramInt5; } public final boolean el(int paramInt) { return (this.mask & paramInt) > 0; } public final String toString() { return String.format("[IOCanary.IOConfig;mask=%d]", new Object[] { Integer.valueOf(this.mask) }); } public static final class a { int bpd = -1; int bqQ = 500; int bqR = 4096; int bqS = 20; int bqT = 5; } } /* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes-dex2jar.jar!/com/tencent/matrix/iocanary/a/a.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "526687570@qq.com" ]
526687570@qq.com
90b0394bc640401b71e757822968928da56df423
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/29/29_f5630f3d6f8eedabbbbbf79fdeffe7abe0d816c5/Authenticator/29_f5630f3d6f8eedabbbbbf79fdeffe7abe0d816c5_Authenticator_s.java
428812782376271cc20435eea14bd7ae9bf573c6
[]
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,874
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.accumulo.core.security.handler; import java.util.List; import java.util.Properties; import java.util.Set; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.security.tokens.AuthenticationToken; public interface Authenticator { public AuthenticationToken login(Properties properties) throws AccumuloSecurityException; public List<Set<AuthProperty>> getProperties(); public class AuthProperty { private String key, description; private boolean masked; public AuthProperty(String name, String description, boolean mask) { this.key = name; this.description = description; this.masked = mask; } public String toString() { return this.key + " - " + description; } public String getKey() { return this.key; } public String getDescription() { return this.description; } public boolean getMask() { return this.masked; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
55bfbf1494c10ba30753ea9e78abe250b782042a
ba74038a0d3a24d93e6dbd1f166530f8cb1dd641
/teamclock/src/java/com/fstx/stdlib/authen/LoginHistoryDAOImpl.java
aba2b25beb5489c3e6e8e8e4405b1cd0df6ef504
[]
no_license
ReidCarlberg/teamclock
63ce1058c62c0a00d63a429bac275c4888ada79a
4ac078610be86cf0902a73b1ba2a697f9dcf4e3c
refs/heads/master
2016-09-05T23:46:28.600606
2009-09-18T07:25:37
2009-09-18T07:25:37
32,190,901
0
0
null
null
null
null
UTF-8
Java
false
false
5,244
java
/* Five Sticks 6957 W. North Ave., #202 Chicago, IL 60302 USA http://www.fivesticks.com mailto:info@fivesticks.com Copyright (c) 2003-2004, Five Sticks Publications, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Five Sticks Publications, Inc., nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. license: http://www.opensource.org/licenses/bsd-license.php This software uses a variety of Open Source software as a foundation. See the file [your install]/WEB-INF/component-acknowledgement.txt For more information. */ package com.fstx.stdlib.authen; import java.util.Collection; import java.util.List; import org.hibernate.Criteria; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.criterion.Expression; import org.springframework.orm.hibernate3.HibernateCallback; import org.springframework.orm.hibernate3.HibernateTemplate; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import com.fstx.stdlib.common.DAOException; /** * @author Nick * */ public class LoginHistoryDAOImpl extends HibernateDaoSupport implements LoginHistoryDAO { /** * @param params * @return */ public Collection find(final LoginHistoryFilterParameters params) throws DAOException { HibernateTemplate hibernateTemplate = new HibernateTemplate(this .getSessionFactory()); return (List) hibernateTemplate.executeFind(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria criteria = session.createCriteria(LoginHistory.class); if (params.getUsername() != null && params.getUsername().length() > 0) { criteria.add(Expression .eq("username", params.getUsername())); } if (params.getOwnerKeyForSuperUser() != null && params.getOwnerKeyForSuperUser().length() > 0) { criteria.add(Expression.eq("ownerKey", params .getOwnerKeyForSuperUser())); } else if (params.getOwnerKey() != null) { criteria.add(Expression .eq("ownerKey", params.getOwnerKey())); } if (params.getType() != null) { criteria.add(Expression.eq("type", params.getType())); } if (params.getDateFrom() != null && params.getDateTo() != null) { criteria.add(Expression.between("timestamp", params .getDateFrom(), params.getDateTo())); //log.info("Using a between!"); } else { //log.info("Not Using a between!"); if (params.getDateFrom() != null) { criteria.add(Expression.ge("timestamp", params .getDateFrom())); } if (params.getDateTo() != null) { criteria.add(Expression.le("timestamp", params .getDateTo())); } } List ret = criteria.list(); return ret; } }); } /** * @param lh */ public LoginHistory save(LoginHistory target) throws DAOException { this.getHibernateTemplate().saveOrUpdate( target); return target; } public void delete(LoginHistory element) { this.getHibernateTemplate().delete(element); } }
[ "reidcarlberg@c917f71e-a3f3-11de-ba6e-69e41c8db662" ]
reidcarlberg@c917f71e-a3f3-11de-ba6e-69e41c8db662
82c44059322689716e579cbfb59e7cdcd950c815
e33e113876a3f022077f71b8fca3372f35584e27
/app/src/main/java/coml/bawei/dell/yuekaolianxi2/bean/UserMessageBean.java
5f8a43fe39bbcac296ad1723937baa815934fa55
[]
no_license
Swallow-Lgy/yuekaolianxi2
e6cb400e6abba1b4df0831cff7452534795131a0
2555ccc2baa7127f8930a1c4b083562fa2a93465
refs/heads/master
2020-04-17T13:33:32.944983
2019-01-20T03:52:11
2019-01-20T03:52:11
166,620,517
0
0
null
null
null
null
UTF-8
Java
false
false
4,557
java
package coml.bawei.dell.yuekaolianxi2.bean; public class UserMessageBean { private String msg; private String code; private DataBean data; public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public static class DataBean { private Object age; private String appkey; private String appsecret; private String createtime; private Object email; private int fans; private int follow; private Object gender; private Object icon; private Object latitude; private Object longitude; private String mobile; private Object money; private Object nickname; private String password; private Object praiseNum; private String token; private int uid; private Object userId; private String username; public Object getAge() { return age; } public void setAge(Object age) { this.age = age; } public String getAppkey() { return appkey; } public void setAppkey(String appkey) { this.appkey = appkey; } public String getAppsecret() { return appsecret; } public void setAppsecret(String appsecret) { this.appsecret = appsecret; } public String getCreatetime() { return createtime; } public void setCreatetime(String createtime) { this.createtime = createtime; } public Object getEmail() { return email; } public void setEmail(Object email) { this.email = email; } public int getFans() { return fans; } public void setFans(int fans) { this.fans = fans; } public int getFollow() { return follow; } public void setFollow(int follow) { this.follow = follow; } public Object getGender() { return gender; } public void setGender(Object gender) { this.gender = gender; } public Object getIcon() { return icon; } public void setIcon(Object icon) { this.icon = icon; } public Object getLatitude() { return latitude; } public void setLatitude(Object latitude) { this.latitude = latitude; } public Object getLongitude() { return longitude; } public void setLongitude(Object longitude) { this.longitude = longitude; } public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public Object getMoney() { return money; } public void setMoney(Object money) { this.money = money; } public Object getNickname() { return nickname; } public void setNickname(Object nickname) { this.nickname = nickname; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Object getPraiseNum() { return praiseNum; } public void setPraiseNum(Object praiseNum) { this.praiseNum = praiseNum; } public String getToken() { return token; } public void setToken(String token) { this.token = token; } public int getUid() { return uid; } public void setUid(int uid) { this.uid = uid; } public Object getUserId() { return userId; } public void setUserId(Object userId) { this.userId = userId; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } } }
[ "2451528553@qq.com" ]
2451528553@qq.com
c3b68ebaf27f31e1915de24753cceed6013f3c67
95db9f68294c1720426b78015a36dee4c2cf12ad
/src/main/java/org/bcos/web3j/abi/datatypes/generated/Ufixed96x88.java
d14c60f0981a5237ca1af460de00a66d2fe25e4d
[ "Apache-2.0" ]
permissive
liuqikri/web3sdk
5642ca77953331cbdb88258751af1d49dfd6c336
1d8b914af4c72325b329c07aea4e1dd2d8cda936
refs/heads/master
2020-03-31T20:52:40.393387
2018-10-10T09:07:26
2018-10-10T09:07:26
144,581,044
0
0
Apache-2.0
2018-08-13T13:06:25
2018-08-13T13:06:24
null
UTF-8
Java
false
false
601
java
package org.bcos.web3j.abi.datatypes.generated; import java.math.BigInteger; import org.bcos.web3j.abi.datatypes.Ufixed; /** * <p>Auto generated code.<br> * <strong>Do not modifiy!</strong><br> * Please use {@link org.bcos.web3j.codegen.AbiTypesGenerator} to update.</p> */ public class Ufixed96x88 extends Ufixed { public static final Ufixed96x88 DEFAULT = new Ufixed96x88(BigInteger.ZERO); public Ufixed96x88(BigInteger value) { super(96, 88, value); } public Ufixed96x88(int mBitSize, int nBitSize, BigInteger m, BigInteger n) { super(96, 88, m, n); } }
[ "dev@fisco.com.cn" ]
dev@fisco.com.cn
b52674afa8ce421b6ca418c8c0df485c4d908043
6552244c7ef44150ea74cef7ec801d5a9f7171e9
/app/src/main/java/android/support/v4/util/LongSparseArray.java
5ac078f8033a2e835a15a21a17b6d798071d4317
[]
no_license
amithbm/cbskeep
c9469156efd307fb474d817760a0b426af8f7c5c
a800f00ab617cba49d1a1bea1f0282c0cde525e7
refs/heads/master
2016-09-06T12:42:33.824977
2015-08-24T15:33:50
2015-08-24T15:33:50
41,311,235
0
0
null
null
null
null
UTF-8
Java
false
false
4,305
java
package android.support.v4.util; public class LongSparseArray<E> implements Cloneable { private static final Object DELETED = new Object(); private boolean mGarbage = false; private long[] mKeys; private int mSize; private Object[] mValues; public LongSparseArray() { this(10); } public LongSparseArray(int paramInt) { if (paramInt == 0) mKeys = ContainerHelpers.EMPTY_LONGS; for (mValues = ContainerHelpers.EMPTY_OBJECTS; ; mValues = new Object[paramInt]) { mSize = 0; return; paramInt = ContainerHelpers.idealLongArraySize(paramInt); mKeys = new long[paramInt]; } } private void gc() { int m = mSize; int j = 0; long[] arrayOfLong = mKeys; Object[] arrayOfObject = mValues; int i = 0; while (i < m) { Object localObject = arrayOfObject[i]; int k = j; if (localObject != DELETED) { if (i != j) { arrayOfLong[j] = arrayOfLong[i]; arrayOfObject[j] = localObject; arrayOfObject[i] = null; } k = j + 1; } i += 1; j = k; } mGarbage = false; mSize = j; } public void clear() { int j = mSize; Object[] arrayOfObject = mValues; int i = 0; while (i < j) { arrayOfObject[i] = null; i += 1; } mSize = 0; mGarbage = false; } public LongSparseArray<E> clone() { Object localObject = null; try { LongSparseArray localLongSparseArray = (LongSparseArray)super.clone(); localObject = localLongSparseArray; localLongSparseArray.mKeys = ((long[])mKeys.clone()); localObject = localLongSparseArray; localLongSparseArray.mValues = ((Object[])mValues.clone()); return localLongSparseArray; } catch (CloneNotSupportedException localCloneNotSupportedException) { } return localObject; } public E get(long paramLong) { return get(paramLong, null); } public E get(long paramLong, E paramE) { int i = ContainerHelpers.binarySearch(mKeys, mSize, paramLong); if ((i < 0) || (mValues[i] == DELETED)) return paramE; return mValues[i]; } public long keyAt(int paramInt) { if (mGarbage) gc(); return mKeys[paramInt]; } public void put(long paramLong, E paramE) { int i = ContainerHelpers.binarySearch(mKeys, mSize, paramLong); if (i >= 0) { mValues[i] = paramE; return; } int j = i ^ 0xFFFFFFFF; if ((j < mSize) && (mValues[j] == DELETED)) { mKeys[j] = paramLong; mValues[j] = paramE; return; } i = j; if (mGarbage) { i = j; if (mSize >= mKeys.length) { gc(); i = ContainerHelpers.binarySearch(mKeys, mSize, paramLong) ^ 0xFFFFFFFF; } } if (mSize >= mKeys.length) { j = ContainerHelpers.idealLongArraySize(mSize + 1); long[] arrayOfLong = new long[j]; Object[] arrayOfObject = new Object[j]; System.arraycopy(mKeys, 0, arrayOfLong, 0, mKeys.length); System.arraycopy(mValues, 0, arrayOfObject, 0, mValues.length); mKeys = arrayOfLong; mValues = arrayOfObject; } if (mSize - i != 0) { System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); System.arraycopy(mValues, i, mValues, i + 1, mSize - i); } mKeys[i] = paramLong; mValues[i] = paramE; mSize += 1; } public int size() { if (mGarbage) gc(); return mSize; } public String toString() { if (size() <= 0) return "{}"; StringBuilder localStringBuilder = new StringBuilder(mSize * 28); localStringBuilder.append('{'); int i = 0; if (i < mSize) { if (i > 0) localStringBuilder.append(", "); localStringBuilder.append(keyAt(i)); localStringBuilder.append('='); Object localObject = valueAt(i); if (localObject != this) localStringBuilder.append(localObject); while (true) { i += 1; break; localStringBuilder.append("(this Map)"); } } localStringBuilder.append('}'); return localStringBuilder.toString(); } public E valueAt(int paramInt) { if (mGarbage) gc(); return mValues[paramInt]; } }
[ "amithbm@gmail.com" ]
amithbm@gmail.com
6e36c666beee4c50e3cabc9c5446306379ffb397
6482753b5eb6357e7fe70e3057195e91682db323
/net/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java
a6a3449bb7a69839eebecb83606d7bf75fa10df7
[]
no_license
TheShermanTanker/Server-1.16.3
45cf9996afa4cd4d8963f8fd0588ae4ee9dca93c
48cc08cb94c3094ebddb6ccfb4ea25538492bebf
refs/heads/master
2022-12-19T02:20:01.786819
2020-09-18T21:29:40
2020-09-18T21:29:40
296,730,962
0
1
null
null
null
null
UTF-8
Java
false
false
2,085
java
package net.minecraft.network.protocol.game; import net.minecraft.network.PacketListener; import java.io.IOException; import net.minecraft.network.FriendlyByteBuf; import com.google.common.collect.Lists; import net.minecraft.world.item.ItemStack; import net.minecraft.world.entity.EquipmentSlot; import com.mojang.datafixers.util.Pair; import java.util.List; import net.minecraft.network.protocol.Packet; public class ClientboundSetEquipmentPacket implements Packet<ClientGamePacketListener> { private int entity; private final List<Pair<EquipmentSlot, ItemStack>> slots; public ClientboundSetEquipmentPacket() { this.slots = Lists.newArrayList(); } public ClientboundSetEquipmentPacket(final int integer, final List<Pair<EquipmentSlot, ItemStack>> list) { this.entity = integer; this.slots = list; } public void read(final FriendlyByteBuf nf) throws IOException { this.entity = nf.readVarInt(); final EquipmentSlot[] arr3 = EquipmentSlot.values(); int integer4; do { integer4 = nf.readByte(); final EquipmentSlot aqc5 = arr3[integer4 & 0x7F]; final ItemStack bly6 = nf.readItem(); this.slots.add(Pair.<EquipmentSlot, ItemStack>of(aqc5, bly6)); } while ((integer4 & 0xFFFFFF80) != 0x0); } public void write(final FriendlyByteBuf nf) throws IOException { nf.writeVarInt(this.entity); for (int integer3 = this.slots.size(), integer4 = 0; integer4 < integer3; ++integer4) { final Pair<EquipmentSlot, ItemStack> pair5 = (Pair<EquipmentSlot, ItemStack>)this.slots.get(integer4); final EquipmentSlot aqc6 = pair5.getFirst(); final boolean boolean7 = integer4 != integer3 - 1; final int integer5 = aqc6.ordinal(); nf.writeByte(boolean7 ? (integer5 | 0xFFFFFF80) : integer5); nf.writeItem(pair5.getSecond()); } } public void handle(final ClientGamePacketListener om) { om.handleSetEquipment(this); } }
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
b8654a3abafbf0c10dab5ca335dbde4f9399efd4
a6e2cd9ea01bdc5cfe58acce25627786fdfe76e9
/src/main/java/com/alipay/api/domain/ContentObjectRelationForOpenapi.java
a37739dadedae8151f41f4ac6c6f6bd4d39ef571
[ "Apache-2.0" ]
permissive
cc-shifo/alipay-sdk-java-all
38b23cf946b73768981fdeee792e3dae568da48c
938d6850e63160e867d35317a4a00ed7ba078257
refs/heads/master
2022-12-22T14:06:26.961978
2020-09-23T04:00:10
2020-09-23T04:00:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
926
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 关联对象model * * @author auto create * @since 1.0, 2019-03-08 11:47:10 */ public class ContentObjectRelationForOpenapi extends AlipayObject { private static final long serialVersionUID = 1486252443499319317L; /** * 对象id,如关联店铺则是shopId */ @ApiField("object_id") private String objectId; /** * 对象类型,内容的关联对象类型。 SHOP代表店铺, ITEM代表商品 */ @ApiField("object_type") private String objectType; public String getObjectId() { return this.objectId; } public void setObjectId(String objectId) { this.objectId = objectId; } public String getObjectType() { return this.objectType; } public void setObjectType(String objectType) { this.objectType = objectType; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
a536411d3530a66b91b2186886224d14be5604ed
fafd731284e687702ef38906477ba035a17ddde4
/java-basic/data-structures-algorithms/collection/src/collection/MapDemo.java
817e2bbe4ca38598418b40a65bc0038f8ad8a43b
[]
no_license
danhnguyen-agilityio/spring-boot
3d358f9b15b48609fca8624be56927f119253e7c
b55da182a2f6d9950d06489c8233920fdd2ca268
refs/heads/feature/apache-maven
2022-06-23T19:18:25.040092
2019-12-23T08:04:09
2019-12-23T08:04:09
229,703,200
1
1
null
2022-06-21T02:30:17
2019-12-23T07:48:11
Java
UTF-8
Java
false
false
433
java
package collection; import java.util.HashMap; import java.util.Map; public class MapDemo { public static void main(String[] args) { Map<Integer,String> map = new HashMap<>(); map.put(200, "BBB"); map.put(300, "CCC"); map.put(200, "DDD"); map.put(100, "AA"); for (Map.Entry m : map.entrySet()) { System.out.println(m.getKey() + " " + m.getValue()); } } }
[ "danhnguyentk@gmail.com" ]
danhnguyentk@gmail.com
5d21c09dedf63deb62822b9447854c5ea322b4bc
12090ceee99b6c2445377bc37d2294a73eb6d1d6
/thunder-framework/src/main/java/com/nepxion/thunder/event/smtp/SmtpExecutor.java
2b0d8b00205b2347e2c59eb11ab6ba71d98278df
[ "Apache-2.0" ]
permissive
jxfw/Thunder
f0808d9d561956862763616eb45f770a55ed4ecb
4fed53c223a5924f8432535888d9bf7b2872c349
refs/heads/master
2021-09-03T13:21:34.168871
2018-01-09T10:25:30
2018-01-09T10:25:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,724
java
package com.nepxion.thunder.event.smtp; /** * <p>Title: Nepxion Thunder</p> * <p>Description: Nepxion Thunder For Distribution</p> * <p>Copyright: Copyright (c) 2017</p> * <p>Company: Nepxion</p> * @author Haojun Ren * @email 1394997@qq.com * @version 1.0 */ import java.util.Date; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import org.apache.commons.lang3.StringUtils; public class SmtpExecutor { protected String host; protected String user; protected String password; protected Session session; public SmtpExecutor(String host, String user, String password) { this.host = host; this.user = user; this.password = password; this.session = createSession(); } protected Properties createProperties() { Properties properties = new Properties(); properties.put("mail.smtp.auth", "true"); properties.put("mail.smtp.host", host); properties.put("mail.smtp.port", "25"); properties.put("mail.smtp.socketFactory.port", "25"); properties.put("mail.smtp.socketFactory.fallback", "false"); return properties; } protected Authenticator createAuthenticator() { return new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(user, password); } }; } protected Session createSession() { Properties properties = createProperties(); Authenticator authenticator = createAuthenticator(); Session session = Session.getDefaultInstance(properties, authenticator); return session; } public void sendText(String from, String to, String cc, String bcc, String subject, String text) throws Exception { send(from, to, cc, bcc, subject, text, false, null); } public void sendHtml(String from, String to, String cc, String bcc, String subject, String text, String encoding) throws Exception { send(from, to, cc, bcc, subject, text, true, encoding); } /** * 发送邮件 * @param from 发送者地址 * @param to 接受者地址,可以多个,用逗号隔开 * @param cc 抄送者地址,可以多个,用逗号隔开 * @param bcc 暗抄送者地址,可以多个,用逗号隔开 * @param subject 邮件主体 * @param text 邮件内容,支持Html格式 * @param htmlStyle 邮件内容,支持Html格式 * @param encoding 编码 * @throws Exception */ public void send(String from, String to, String cc, String bcc, String subject, String text, boolean htmlStyle, String encoding) throws Exception { MimeMessage message = new MimeMessage(session); message.setSentDate(new Date()); message.setFrom(new InternetAddress(from)); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to)); if (StringUtils.isNotEmpty(cc)) { message.setRecipients(Message.RecipientType.CC, InternetAddress.parse(cc)); } if (StringUtils.isNotEmpty(bcc)) { message.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc)); } message.setSubject(subject); if (htmlStyle) { message.setContent(text, "text/html;charset=" + encoding); } else { message.setText(text); } Transport.send(message); } }
[ "1394997@qq.com" ]
1394997@qq.com
21ac1d829aa6612ecb224f2249a4988185c50d07
07c7e608b2f57f973eff5ce0e0497a549092bb33
/app/src/main/java/org/nem/nac/ui/activities/MoreActivity.java
29c9661735bca0de448a9ac64f96e728e88636b1
[]
no_license
ammogcoder/NEMAndroidApp
c25c7f8228ff4542f9af87db5cceaa9975875d9b
9044851fb5b9e96e976d7fabd804b3c4cfeab756
refs/heads/master
2020-03-26T05:25:31.479429
2019-04-24T07:41:28
2019-04-24T07:41:28
144,556,492
0
0
null
2018-08-13T09:17:10
2018-08-13T09:17:10
null
UTF-8
Java
false
false
1,643
java
package org.nem.nac.ui.activities; import android.content.Intent; import android.os.Bundle; import android.widget.ListView; import org.nem.nac.R; import org.nem.nac.application.AppSettings; import org.nem.nac.ui.adapters.MoreAdapter; import org.nem.nac.ui.models.MoreItem; import java.util.List; import timber.log.Timber; public final class MoreActivity extends NacBaseActivity { public static final String EXTRA_CLASS_RETURN_TO_ACTIVITY = MoreActivity.class.getCanonicalName() + "extra-ret-to-activity"; private Class<? extends NacBaseActivity> _returnTo; @Override protected int getActivityTitle() { return R.string.title_activity_more; } @Override protected int getLayoutId() { return R.layout.activity_more; } @Override public void onBackPressed() { finish(); final Class<? extends NacBaseActivity> returnTo = _returnTo != null ? _returnTo : DashboardActivity.class; startActivity(new Intent(this, returnTo)); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Bundle extras = getIntent().getExtras(); if (extras != null) { try { //noinspection unchecked _returnTo = (Class<? extends NacBaseActivity>)extras.getSerializable(EXTRA_CLASS_RETURN_TO_ACTIVITY); } catch (ClassCastException e) { Timber.w("Invalid return activity passed"); _returnTo = null; } } ListView moreListview = (ListView)findViewById(R.id.listview_more); final List<MoreItem> items = AppSettings.instance().getMoreItems(); moreListview.setAdapter(new MoreAdapter(this, items)); } }
[ "gimre@127.0.0.1" ]
gimre@127.0.0.1
2977906f0e86a1ae8de2f701542464194bbf37a0
42437ab7ee508abf0612623ca89dcb6efbaad70a
/src/api/java/vazkii/botania/api/mana/ITinyPlanetExcempt.java
ab591e4e75abbd6ed363eaffe8b64763a0d6965c
[ "MIT" ]
permissive
DJJBanx/Modular-Diversity
cab91deed4ebe79ab1c20530b86ea409516c338f
64e778d2d27ba456c3cca4b70b3bbd0bf7281f9c
refs/heads/master
2020-03-29T00:14:01.501100
2018-09-23T17:12:04
2018-09-23T17:12:04
149,330,460
0
0
MIT
2018-09-18T17:56:01
2018-09-18T17:56:00
null
UTF-8
Java
false
false
603
java
/** * This class was created by <Vazkii>. It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php * * File Created @ [Jul 22, 2014, 2:26:14 PM (GMT)] */ package vazkii.botania.api.mana; import net.minecraft.item.ItemStack; /** * Any Item that implements ILensEffect and this will have * a check before being pulled by the Tiny Planet. */ public interface ITinyPlanetExcempt { public boolean shouldPull(ItemStack stack); }
[ "bordlistian@hotmail.de" ]
bordlistian@hotmail.de
2276f377532a68bd3ed4b18e1e15d3301c3e7f77
3a59bd4f3c7841a60444bb5af6c859dd2fe7b355
/sources/com/google/android/gms/ads/mediation/MediationConfiguration.java
b22f19316d296bf063bf3c3c3aee239357d02df7
[]
no_license
sengeiou/KnowAndGo-android-thunkable
65ac6882af9b52aac4f5a4999e095eaae4da3c7f
39e809d0bbbe9a743253bed99b8209679ad449c9
refs/heads/master
2023-01-01T02:20:01.680570
2020-10-22T04:35:27
2020-10-22T04:35:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
505
java
package com.google.android.gms.ads.mediation; import android.os.Bundle; import com.google.android.gms.ads.AdFormat; public class MediationConfiguration { private final Bundle zzemv; private final AdFormat zzemz; public MediationConfiguration(AdFormat adFormat, Bundle bundle) { this.zzemz = adFormat; this.zzemv = bundle; } public AdFormat getFormat() { return this.zzemz; } public Bundle getServerParameters() { return this.zzemv; } }
[ "joshuahj.tsao@gmail.com" ]
joshuahj.tsao@gmail.com
8be9ad0df8a2eabcc9c2f17b2d65d11d2b19a547
3bd3f4b6d35687115e772b072bf3caf63f615f75
/2022-11/spring-41-kafka/consumer/src/main/java/ru/demo/service/StringValueConsumerLogger.java
c791cbeafbd85f25af80ea8871e1d16ee3be4b75
[]
no_license
OtusTeam/Spring
a2394de99776bff02610bd17c67a8403d38cc0d5
afbcb23d33a9688652da604d2a508036fc5236a7
refs/heads/master
2023-08-28T19:12:49.241468
2023-08-26T07:28:32
2023-08-26T07:28:32
173,905,170
142
187
null
2023-07-07T23:21:26
2019-03-05T08:23:16
Java
UTF-8
Java
false
false
467
java
package ru.demo.service; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ru.demo.model.StringValue; public class StringValueConsumerLogger implements StringValueConsumer { private static final Logger log = LoggerFactory.getLogger(StringValueConsumerLogger.class); @Override public void accept(List<StringValue> values) { for (var value : values) { log.info("log:{}", value); } } }
[ "petrelevich@yandex.ru" ]
petrelevich@yandex.ru
313172e9959dee779d00cbd253298797f1834715
c7406de612eff59725824a8120d960c585da4b2c
/base/src/main/java/com/tomtop/base/common/exception/ControllerException.java
ab322977fd67b4a09d81e729a71dc37d806fb0cb
[]
no_license
liudih/tt-58
92b9a53a6514e13d30e4c2afbafc8de68f096dfb
0a921f35cc10052f20ff3f8434407dc3eabd7aa1
refs/heads/master
2021-01-20T18:02:12.917030
2016-06-28T04:08:30
2016-06-28T04:08:30
62,108,984
1
1
null
null
null
null
UTF-8
Java
false
false
710
java
package com.tomtop.base.common.exception; /** * 控制层异常信息 */ public class ControllerException extends RuntimeException { /** * @fields serialVersionUID */ private static final long serialVersionUID = 4081863331832266720L; public ControllerException() { super(); } public ControllerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } public ControllerException(String message, Throwable cause) { super(message, cause); } public ControllerException(String message) { super(message); } public ControllerException(Throwable cause) { super(cause); } }
[ "liudih@qq.com" ]
liudih@qq.com
5b9d01d47721de1331c47219c253ff45cf189ddf
b499e91f1a365cf969bfd54967820c1126322166
/1.JavaSyntax/src/com/javarush/task/task09/task0923/Solution.java
65f24e7850bfe1a0038c8e85065cd7e7f823e5ab
[]
no_license
msuzko/JRT
9a00a1d367153f26aab4fd5863cd1b2f336bd81c
59906f4afee0ae1d2378b5c19a832694af2d8286
refs/heads/master
2020-09-11T13:12:52.956583
2019-12-10T07:58:56
2019-12-10T07:58:56
221,706,354
0
0
null
null
null
null
UTF-8
Java
false
false
1,596
java
package com.javarush.task.task09.task0923; import java.io.BufferedReader; import java.io.InputStreamReader; import java.nio.Buffer; import java.util.ArrayList; import java.util.List; /* Гласные и согласные */ public class Solution { public static char[] vowels = new char[]{'а', 'я', 'у', 'ю', 'и', 'ы', 'э', 'е', 'о', 'ё'}; public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); char[] chars = str.replace(" ","").toCharArray(); List<Character> vowels = new ArrayList<>(); List<Character> notVowels = new ArrayList<>(); for (char ch : chars) { if (isVowel(ch)) vowels.add(ch); else notVowels.add(ch); } for (Character ch : vowels) { System.out.print(ch+" "); } System.out.println(); for (Character ch : notVowels) { System.out.print(ch+ " "); } } // метод проверяет, гласная ли буква public static boolean isVowel(char c) { c = Character.toLowerCase(c); // приводим символ в нижний регистр - от заглавных к строчным буквам for (char d : vowels) // ищем среди массива гласных { if (c == d) return true; } return false; } }
[ "msuzko@gmail.com" ]
msuzko@gmail.com
eb17fbf5284231317ecea9a9bc41749b87106747
096b557af3b68947cb31685221f14d911e84f918
/src/net/mindview/annotations/StackLStringTest.java
81db4be2f3d8a75e0cb2495c383d3d2366110cea
[]
no_license
kuchikigit/SrcCodes
34d84eaca5a970143489c969d7063c88453bb19f
feb3198a382d106e37d6d34da9452ddf3482c6d3
refs/heads/master
2021-01-20T19:05:23.083737
2016-08-10T12:13:35
2016-08-10T12:13:35
63,997,411
0
0
null
null
null
null
UTF-8
Java
false
false
818
java
//: annotations/StackLStringTest.java // Applying @Unit to generics. package net.mindview.annotations; import net.mindview.atunit.*; import net.mindview.util.*; public class StackLStringTest extends StackL<String> { @Test void _push() { push("one"); assert top().equals("one"); push("two"); assert top().equals("two"); } @Test void _pop() { push("one"); push("two"); assert pop().equals("two"); assert pop().equals("one"); } @Test void _top() { push("A"); push("B"); assert top().equals("B"); assert top().equals("B"); } public static void main(String[] args) throws Exception { OSExecute.command( "java net.mindview.atunit.AtUnit StackLStringTest"); } } /* Output: annotations.StackLStringTest . _push . _pop . _top OK (3 tests) *///:~
[ "rainy.kuchiki@yahoo.com" ]
rainy.kuchiki@yahoo.com
2fd62471809ad46299057c334bcd98c3a24cf630
c4f8cfa2c87fbe714193dd61bdd40d29009e979f
/src/model/crit/Zzrm08Criteria.java
2a5766f7d0d21f703947ece7bb07344ee5c4361d
[]
no_license
mars20038283/daydream
5e2ed1dd73d07b13c435a712bde35adf8ebc4cbb
f2fb061f311c508e6fb8f9997b4d9463cb1b4ccc
refs/heads/master
2020-04-06T05:46:37.983695
2015-05-17T09:53:27
2015-05-17T09:53:27
35,746,545
0
0
null
null
null
null
UTF-8
Java
false
false
2,311
java
package model.crit; import com.marswork.core.exceptions.messaging.MarsException; import com.marswork.dataaccess.basic.DriverInfo; import com.marswork.dataaccess.criteria.SqlCriteria; import model.pojo.Zzrm08; public class Zzrm08Criteria extends SqlCriteria<Zzrm08> { public static final String TABLE_NAME = "zzrm08"; public Zzrm08Criteria() { super(Zzrm08.class); } public Zzrm08Criteria(DriverInfo driverInfo) { super(driverInfo, Zzrm08.class); } public void save(Zzrm08 zzrm08) throws MarsException { super.save(zzrm08); } public void update(Zzrm08 zzrm08) throws MarsException { super.update(zzrm08); } public void delete(Zzrm08 zzrm08) throws MarsException { super.delete(zzrm08); } public static final String DATA_ID = "DATA_ID"; public Zzrm08Criteria findByDataId(String dataId) { this.findByPropertyEq(Zzrm08Criteria.DATA_ID, TABLE_NAME, dataId); return this; } public static final String DATE = "DATE"; public static final String KAIPAN = "KAIPAN"; public Zzrm08Criteria findByKaipan(Double kaipan) { this.findByPropertyEq(Zzrm08Criteria.KAIPAN, TABLE_NAME, kaipan); return this; } public static final String ZUIGAO = "ZUIGAO"; public Zzrm08Criteria findByZuigao(Double zuigao) { this.findByPropertyEq(Zzrm08Criteria.ZUIGAO, TABLE_NAME, zuigao); return this; } public static final String ZUIDI = "ZUIDI"; public Zzrm08Criteria findByZuidi(Double zuidi) { this.findByPropertyEq(Zzrm08Criteria.ZUIDI, TABLE_NAME, zuidi); return this; } public static final String SHOUPAN = "SHOUPAN"; public Zzrm08Criteria findByShoupan(Double shoupan) { this.findByPropertyEq(Zzrm08Criteria.SHOUPAN, TABLE_NAME, shoupan); return this; } public static final String CHENGJIAO = "CHENGJIAO"; public Zzrm08Criteria findByChengjiao(Integer chengjiao) { this.findByPropertyEq(Zzrm08Criteria.CHENGJIAO, TABLE_NAME, chengjiao); return this; } public static final String CHICANG = "CHICANG"; public Zzrm08Criteria findByChicang(Integer chicang) { this.findByPropertyEq(Zzrm08Criteria.CHICANG, TABLE_NAME, chicang); return this; } public Zzrm08Criteria findByPkId(String dataId) { this.findByPropertyEq("DATA_ID", dataId); return this; } }
[ "mars20038283@163.com" ]
mars20038283@163.com
74764dbeee9de27fb0a9c975e1074206eb4e82de
088cad7c00db1e05ad2ab219e393864f3bf7add6
/classes/android/support/v4/app/ActivityOptionsCompat$ActivityOptionsImplJB.java
79ce73b072dad25d3752e274789c4b7c09f8b5ce
[]
no_license
devidwfreitas/com-santander-app.7402
8e9f344f5132b1c602d80929f1ff892293f4495d
e9a92b20dc3af174f9b27ad140643b96fb78f04d
refs/heads/main
2023-05-01T09:33:58.835056
2021-05-18T23:54:43
2021-05-18T23:54:43
368,692,384
0
0
null
null
null
null
UTF-8
Java
false
false
1,126
java
package android.support.v4.app; import android.annotation.TargetApi; import android.os.Bundle; import android.support.annotation.RequiresApi; @TargetApi(16) @RequiresApi(16) class ActivityOptionsCompat$ActivityOptionsImplJB extends ActivityOptionsCompat { private final ActivityOptionsCompatJB mImpl; ActivityOptionsCompat$ActivityOptionsImplJB(ActivityOptionsCompatJB paramActivityOptionsCompatJB) { this.mImpl = paramActivityOptionsCompatJB; } public Bundle toBundle() { return this.mImpl.toBundle(); } public void update(ActivityOptionsCompat paramActivityOptionsCompat) { if (paramActivityOptionsCompat instanceof ActivityOptionsCompat$ActivityOptionsImplJB) { paramActivityOptionsCompat = paramActivityOptionsCompat; this.mImpl.update(((ActivityOptionsCompat$ActivityOptionsImplJB)paramActivityOptionsCompat).mImpl); } } } /* Location: C:\Users\devid\Downloads\SAST\Santander\dex2jar-2.0\classes-dex2jar.jar!\android\support\v4\app\ActivityOptionsCompat$ActivityOptionsImplJB.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
[ "devid.wfreitas@gmail.com" ]
devid.wfreitas@gmail.com
969a2f5897cea23e7546346ff8c27ff8da125c3c
2ed7c4c05df3e2bdcb88caa0a993033e047fb29a
/viz/com.raytheon.viz.core.gl/src/com/raytheon/viz/core/gl/glsl/AbstractGLSLImagingExtension.java
f29322c83fb38521c45d34cf89e052cae7172c06
[]
no_license
Unidata/awips2-core
d378a50c78994f85a27b481e6f77c792d1fe0684
ab00755b9e158ce66821b6fc05dee5d902421ab8
refs/heads/unidata_18.2.1
2023-07-22T12:41:05.308429
2023-02-13T20:02:40
2023-02-13T20:02:40
34,124,839
3
7
null
2023-07-06T15:40:45
2015-04-17T15:39:56
Java
UTF-8
Java
false
false
1,996
java
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination * to non-U.S. persons whether in the United States or abroad requires * an export license or other authorization. * * Contractor Name: Raytheon Company * Contractor Address: 6825 Pine Street, Suite 340 * Mail Stop B8 * Omaha, NE 68106 * 402.291.0100 * * See the AWIPS II Master Rights File ("Master Rights File.pdf") for * further licensing information. **/ package com.raytheon.viz.core.gl.glsl; import com.raytheon.viz.core.gl.GLCapabilities; import com.raytheon.viz.core.gl.IGLTarget; import com.raytheon.viz.core.gl.ext.imaging.AbstractGLImagingExtension; import com.raytheon.viz.core.gl.internal.GLTarget; /** * Abstract GL Extension that requires shader to work properly * * <pre> * * SOFTWARE HISTORY * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Dec 15, 2011 mschenke Initial creation * * </pre> * * @author mschenke * @version 1.0 */ public abstract class AbstractGLSLImagingExtension extends AbstractGLImagingExtension { /* * (non-Javadoc) * * @see com.raytheon.uf.viz.core.drawables.ext.GraphicsExtension# * getCompatibilityValue(com.raytheon.uf.viz.core.IGraphicsTarget) */ @Override public int getCompatibilityValue(IGLTarget target) { if (GLCapabilities.getInstance(target.getGl()).cardSupportsShaders && GLTarget.FORCE_NO_SHADER == false) { return Compatibilty.ENHANCED_TARGET_COMPATIBLE; } else { return Compatibilty.INCOMPATIBLE; } } }
[ "Steven_L_Harris@raytheon.com" ]
Steven_L_Harris@raytheon.com
47963f17ccdae9dece2098bec7d6ec1d2348b39a
848c563ddecdefdb4e6d91dfb9651c67ddcbee78
/tangminet/service-api/trade-service-api/src/main/java/com/topaiebiz/trade/api/OrderTaskServiceApi.java
787db59062402811bb06090011ecf5ccc252035d
[]
no_license
liveqmock/tangxIdea
264481ca7e087d5d8cf23854fb677b0c1376c188
7e780c538434638a79d50e33f45ab0be3ae90625
refs/heads/master
2020-04-04T14:44:18.241241
2018-06-29T14:51:49
2018-06-29T14:51:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
828
java
package com.topaiebiz.trade.api; /*** * @author yfeng * @date 2018-01-09 13:27 */ public interface OrderTaskServiceApi { /** * * Description: 定时取消超时未支付的订单 * * Author: hxpeng * createTime: 2018/2/1 * * @param: **/ void cancelUnPayOrder(); /** * * Description: 收货超时 自动收货 * * Author: hxpeng * createTime: 2018/2/1 * * @param: **/ void receivingOrder(); /** * * Description: 收货七天自动完成订单 * * Author: hxpeng * createTime: 2018/2/1 * * @param: **/ void completeOrders(); /** * * Description: 默认好评 * * Author: hxpeng * createTime: 2018/2/5 * * @param: **/ void automaticPraise(); }
[ "207542948@qq.com" ]
207542948@qq.com
cac90cfb70f260e64bd206253b7efebdb299c672
ed166738e5dec46078b90f7cca13a3c19a1fd04b
/minor/guice-OOM-error-reproduction/src/main/java/gen/C_Gen148.java
83536f749b7f8166b584812a794d99d9917dcf9e
[]
no_license
michalradziwon/script
39efc1db45237b95288fe580357e81d6f9f84107
1fd5f191621d9da3daccb147d247d1323fb92429
refs/heads/master
2021-01-21T21:47:16.432732
2016-03-23T02:41:50
2016-03-23T02:41:50
22,663,317
2
0
null
null
null
null
UTF-8
Java
false
false
331
java
package gen; public class C_Gen148 { @com.google.inject.Inject public C_Gen148(C_Gen149 c_gen149){ System.out.println(this.getClass().getCanonicalName() + " created. " + c_gen149 ); } @com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :) }
[ "michal.radzi.won@gmail.com" ]
michal.radzi.won@gmail.com
a1844150323c33f5f0a6f87f25b11fe5545de039
0dedb540fca363032cbe4359daf0e8a30ccea159
/src/headFirst/chapter2/dogDoorlevel2/DogDoor.java
53c92fe8a77be1683aaefea81e165cb0341c9cd9
[]
no_license
Tariqnawaz/OOAD
16afa1d145d2361f6a5f6207eb5ee68f17d53fe7
cb225bfb5e2890f360e88818ce5287f0bb02b2ac
refs/heads/master
2020-05-09T14:46:18.526080
2019-04-13T17:39:38
2019-04-13T17:39:38
181,207,041
0
0
null
null
null
null
UTF-8
Java
false
false
357
java
package headFirst.chapter2.dogDoorlevel2; public class DogDoor { private boolean open; public DogDoor(){ this.open = false; } public void open(){ System.out.println("The dog door opens"); open = true; } public void close(){ System.out.println("The dog door closes"); open = false; } public boolean isOpen(){ return open; } }
[ "shaikh.tariqnawaz@gmail.com" ]
shaikh.tariqnawaz@gmail.com
70a640e03e8313724908f7fddf171578dbd78fc9
4bdf74d8dbb210d29db0fdf1ae97aad08929612c
/data_test/81012/Game.java
da8aac57a8a1a623dfa9910e2b04628e2ec16d19
[]
no_license
huyenhuyen1204/APR_data
cba03642f68ce543690a75bcefaf2e0682df5e7e
cb9b78b9e973202e9945d90e81d1bfaef0f9255c
refs/heads/master
2023-05-13T21:52:20.294382
2021-06-02T17:52:30
2021-06-02T17:52:30
373,250,240
0
0
null
null
null
null
UTF-8
Java
false
false
1,522
java
import java.util.ArrayList; public class Game { private Board board; private ArrayList<Move> moveHistory = new ArrayList<>(); /** * cmt. */ public Board getBoard() { return board; } /** * cmt. */ public void setBoard(Board board) { this.board = board; } /** * cmt. */ public Game(Board board) { this.board = board; } /** * cmt. */ public Game(Board board, ArrayList<Move> moveHistory) { this.board = board; this.moveHistory = moveHistory; } /** * cmt. */ public Board getBroad() { return board; } /** * cmt. */ public void setBroad(Board board) { this.board = board; } /** * cmt. */ public ArrayList<Move> getMoveHistory() { return moveHistory; } /** * cmt. */ public void setMoveHistory(ArrayList<Move> moveHistory) { this.moveHistory = moveHistory; } /** * cmt. */ public void movePiece(Piece piece, int x, int y) { if (piece.canMove(board, x, y)) { Move move = new Move(piece.getCoordinatesX(), x, piece.getCoordinatesY(), y, piece, board.getAt(x, y)); moveHistory.add(move); Piece piece1 = board.getAt(x, y); if (piece1 != null) { board.removeAt(x, y); } piece.setCoordinatesX(x); piece.setCoordinatesY(y); } } }
[ "nguyenhuyen98pm@gmail.com" ]
nguyenhuyen98pm@gmail.com
3e360f0fe51ec99e7ccfa7f3fe1b14f0031c04fd
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/domain/ExchangeRate.java
c6bc04f8957662104f50f72c14d6e44373579713
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,293
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 转账兑换汇率的基本信息 * * @author auto create * @since 1.0, 2019-12-03 14:42:02 */ public class ExchangeRate extends AlipayObject { private static final long serialVersionUID = 5769625949447719917L; /** * 兑换汇率的基本币种。biz_scene是LOCAL场景下,该参数返回为空。 */ @ApiField("base_currency") private String baseCurrency; /** * 兑换汇率对应的兑换目标币种. LOCAL场景下为空 */ @ApiField("exchange_currency") private String exchangeCurrency; /** * 转账币种兑换结算币种的汇率。biz_scene是LOCAL场景下,该参数返回空。 */ @ApiField("rate") private Long rate; public String getBaseCurrency() { return this.baseCurrency; } public void setBaseCurrency(String baseCurrency) { this.baseCurrency = baseCurrency; } public String getExchangeCurrency() { return this.exchangeCurrency; } public void setExchangeCurrency(String exchangeCurrency) { this.exchangeCurrency = exchangeCurrency; } public Long getRate() { return this.rate; } public void setRate(Long rate) { this.rate = rate; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
4c315ea4eb306bb23df09bb3946bb879469e0955
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a026/A026601.java
83f3abe6aac37c602a67e9678d7666d3ac4b2d4e
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package irvine.oeis.a026; import irvine.math.z.Z; /** * A026601 <code>a(n) = n-th</code> number k such that <code>s(k) = 1</code>, where s <code>= A026600</code>. * @author Sean A. Irvine */ public class A026601 extends A026600 { private long mN = 0; @Override public Z next() { do { ++mN; } while (!Z.ONE.equals(super.next())); return Z.valueOf(mN); } }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
9fb9e8881d6bf42cefdd1a3d81130f01688b4c31
b280a34244a58fddd7e76bddb13bc25c83215010
/scmv6/center-task1/src/main/java/com/smate/center/task/dao/sns/psn/PsnScoreDetailDao.java
014cf4cf9b238bdbf05739c37c47d6a92c400fdc
[]
no_license
hzr958/myProjects
910d7b7473c33ef2754d79e67ced0245e987f522
d2e8f61b7b99a92ffe19209fcda3c2db37315422
refs/heads/master
2022-12-24T16:43:21.527071
2019-08-16T01:46:18
2019-08-16T01:46:18
202,512,072
2
3
null
2022-12-16T05:31:05
2019-08-15T09:21:04
Java
UTF-8
Java
false
false
1,816
java
package com.smate.center.task.dao.sns.psn; import java.util.List; import org.springframework.stereotype.Repository; import com.smate.center.task.exception.DaoException; import com.smate.center.task.psn.model.PsnScoreDetail; import com.smate.core.base.utils.data.SnsHibernateDao; /** * 人员信息完整度得分详情Dao. * * @author chenxiangrong * */ @Repository public class PsnScoreDetailDao extends SnsHibernateDao<PsnScoreDetail, Long> { /** * 获取某项得分记录. * * @param psnId * @param typeId * @return */ public PsnScoreDetail getPsnScoreDetailByType(Long psnId, int typeId) throws DaoException { String hql = "from PsnScoreDetail t where t.psnId=? and t.typeId=?"; return super.findUnique(hql, new Object[] {psnId, typeId}); } /** * 获取总得分. * * @param psnId * @return * @throws DaoException */ public int getPsnSumScore(Long psnId) throws DaoException { String hql = "select sum(t.scoreNum) from PsnScoreDetail t where t.psnId=?"; Object object = super.createQuery(hql, psnId).uniqueResult(); if (object != null) { return Integer.valueOf(object.toString()); } else { return 0; } } /** * 获取人员的评分详情. * * @param psnId * @return * @throws DaoException */ @SuppressWarnings("unchecked") public List<PsnScoreDetail> getPsnScoreDetailByPsn(Long psnId) throws DaoException { String hql = "from PsnScoreDetail t where t.psnId=?"; return super.createQuery(hql, psnId).list(); } /** * 删除指定人信息 人员合并 用 zk add */ public void delScoreDetailById(PsnScoreDetail psnScoreDetail) throws DaoException { super.createQuery("delete from PsnScoreDetail t where t.id=?", psnScoreDetail.getId()).executeUpdate(); } }
[ "zhiranhe@irissz.com" ]
zhiranhe@irissz.com
ac79dd8e9458b6bbdd46cd056ef8b15670a2c6a5
dd01522057d622e942cc7c9058cbca61377679aa
/hybris/bin/platform/bootstrap/gensrc/de/hybris/platform/commercewebservicescommons/dto/payment/PaymentRequestWsDTO.java
50633b4d8778f8120f77fd2a5963e12e20a9b8c3
[]
no_license
grunya404/bp-core-6.3
7d73db4db81015e4ae69eeffd43730f564e17679
9bc11bc514bd0c35d7757a9e949af89b84be634f
refs/heads/master
2021-05-19T11:32:39.663520
2017-09-01T11:36:21
2017-09-01T11:36:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,567
java
/* * ---------------------------------------------------------------- * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! * --- Generated at 25 Aug 2017 4:31:26 PM * ---------------------------------------------------------------- * * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the license agreement you entered into with SAP Hybris. */ package de.hybris.platform.commercewebservicescommons.dto.payment; import java.util.Map; public class PaymentRequestWsDTO implements java.io.Serializable { /** <i>Generated property</i> for <code>PaymentRequestWsDTO.postUrl</code> property defined at extension <code>acceleratorwebservicesaddon</code>. */ private String postUrl; /** <i>Generated property</i> for <code>PaymentRequestWsDTO.parameters</code> property defined at extension <code>acceleratorwebservicesaddon</code>. */ private Map<String, String> parameters; public PaymentRequestWsDTO() { // default constructor } public void setPostUrl(final String postUrl) { this.postUrl = postUrl; } public String getPostUrl() { return postUrl; } public void setParameters(final Map<String, String> parameters) { this.parameters = parameters; } public Map<String, String> getParameters() { return parameters; } }
[ "mashimbyek@gmail.com" ]
mashimbyek@gmail.com
cfa5098111452cd63bb0ef053de99ee0a4390645
94070d0696ed3825caf620b544bdf2a9d21ba1f9
/how-itf/src/main/java/com/hoau/how/module/itf/server/ws/omsorder/CancelOrder.java
9e3ee2eb7c9fb5baf2029ed045371d9c0d80da49
[]
no_license
jbzhang99/Howweb
d801a60635ed7a09ba0ff65fa8df16724ae031fc
ee256aef286369214f749791c23977637e06821c
refs/heads/master
2020-12-05T21:51:15.704406
2017-08-04T14:43:41
2017-08-04T14:43:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,693
java
package com.hoau.how.module.itf.server.ws.omsorder; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>anonymous complex type的 Java 类。 * * <p>以下模式片段指定包含在此类中的预期内容。 * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="in0" type="{http://model.customer.interfaces.sinotrans.com}CancelOrderReqModel"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "in0" }) @XmlRootElement(name = "cancelOrder", namespace = "http://services.customer.interfaces.sinotrans.com") public class CancelOrder { @XmlElement(namespace = "http://services.customer.interfaces.sinotrans.com", required = true, nillable = true) protected CancelOrderReqModel in0; /** * 获取in0属性的值。 * * @return * possible object is * {@link CancelOrderReqModel } * */ public CancelOrderReqModel getIn0() { return in0; } /** * 设置in0属性的值。 * * @param value * allowed object is * {@link CancelOrderReqModel } * */ public void setIn0(CancelOrderReqModel value) { this.in0 = value; } }
[ "xiao_c1025@163.com" ]
xiao_c1025@163.com
00cc0d437970f04b15a9047c5b8ce1cc8e39bc93
02443b7fa3a901aad1f8d97815aa9f50680afc74
/src/main/java/ml/socshared/auth/domain/request/ServiceTokenRequest.java
afd9c3c6128a3b136c33a6ddee54bc579ad8a945
[]
no_license
SocShared/auth-service
d6eae1246f816c3a8070fc0c56a2857bf9f4981c
1b35f73dfa84c92b55bacfe7340618131ba453a6
refs/heads/master
2022-11-08T13:11:01.393563
2020-06-25T11:20:47
2020-06-25T11:20:47
260,529,875
0
0
null
null
null
null
UTF-8
Java
false
false
297
java
package ml.socshared.auth.domain.request; import lombok.Getter; import lombok.Setter; import lombok.ToString; import java.util.UUID; @Getter @Setter @ToString public class ServiceTokenRequest { private UUID fromServiceId; private UUID toServiceId; private UUID toSecretService; }
[ "vladovchinnikov950@gmail.com" ]
vladovchinnikov950@gmail.com
5c49095a88f017e408b30c957d492b57b691675c
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
/app/src/main/java/org/json/alipay/JSONException.java
aa61561334021cdfce2fe167fc72d0664e62b99b
[]
no_license
rcoolboy/guilvN
3817397da465c34fcee82c0ca8c39f7292bcc7e1
c779a8e2e5fd458d62503dc1344aa2185101f0f0
refs/heads/master
2023-05-31T10:04:41.992499
2021-07-07T09:58:05
2021-07-07T09:58:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
342
java
package org.json.alipay; public class JSONException extends Exception { public Throwable cause; public JSONException(String str) { super(str); } public JSONException(Throwable th) { super(th.getMessage()); this.cause = th; } public Throwable getCause() { return this.cause; } }
[ "593746220@qq.com" ]
593746220@qq.com
e1f3784e32bfbe8790bddad378aa717529670a4d
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/65/org/apache/commons/math/MathRuntimeException_getArguments_162.java
252d714a62916267e533c6f4092a5fadbb6dc58d
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
936
java
org apach common math base common math uncheck except version revis date math runtim except mathruntimeexcept runtim except runtimeexcept argument build messag throwabl argument build messag throwabl object argument getargu argument clone
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
1cae6ca0405323db0920ec63e1c1a2f728808fce
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/hadoop/2018/8/XceiverServerGrpc.java
4dc232db7ba0dc42ad29e5a696ad1aff4ee4ae9f
[ "Apache-2.0" ]
permissive
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
4,111
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.ozone.container.common.transport.server; import com.google.common.base.Preconditions; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hdds.protocol.DatanodeDetails; import org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos .ContainerCommandRequestProto; import org.apache.hadoop.hdds.protocol.proto.HddsProtos; import org.apache.hadoop.ozone.OzoneConfigKeys; import org.apache.hadoop.ozone.container.common.interfaces.ContainerDispatcher; import org.apache.ratis.shaded.io.grpc.Server; import org.apache.ratis.shaded.io.grpc.ServerBuilder; import org.apache.ratis.shaded.io.grpc.netty.NettyServerBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.SocketAddress; /** * Creates a Grpc server endpoint that acts as the communication layer for * Ozone containers. */ public final class XceiverServerGrpc implements XceiverServerSpi { private static final Logger LOG = LoggerFactory.getLogger(XceiverServerGrpc.class); private int port; private Server server; private final ContainerDispatcher storageContainer; /** * Constructs a Grpc server class. * * @param conf - Configuration */ public XceiverServerGrpc(DatanodeDetails datanodeDetails, Configuration conf, ContainerDispatcher dispatcher) { Preconditions.checkNotNull(conf); this.port = conf.getInt(OzoneConfigKeys.DFS_CONTAINER_IPC_PORT, OzoneConfigKeys.DFS_CONTAINER_IPC_PORT_DEFAULT); // Get an available port on current node and // use that as the container port if (conf.getBoolean(OzoneConfigKeys.DFS_CONTAINER_IPC_RANDOM_PORT, OzoneConfigKeys.DFS_CONTAINER_IPC_RANDOM_PORT_DEFAULT)) { try (ServerSocket socket = new ServerSocket()) { socket.setReuseAddress(true); SocketAddress address = new InetSocketAddress(0); socket.bind(address); this.port = socket.getLocalPort(); LOG.info("Found a free port for the server : {}", this.port); } catch (IOException e) { LOG.error("Unable find a random free port for the server, " + "fallback to use default port {}", this.port, e); } } datanodeDetails.setPort( DatanodeDetails.newPort(DatanodeDetails.Port.Name.STANDALONE, port)); server = ((NettyServerBuilder) ServerBuilder.forPort(port)) .maxInboundMessageSize(OzoneConfigKeys.DFS_CONTAINER_CHUNK_MAX_SIZE) .addService(new GrpcXceiverService(dispatcher)) .build(); storageContainer = dispatcher; } @Override public int getIPCPort() { return this.port; } /** * Returns the Replication type supported by this end-point. * * @return enum -- {Stand_Alone, Ratis, Grpc, Chained} */ @Override public HddsProtos.ReplicationType getServerType() { return HddsProtos.ReplicationType.STAND_ALONE; } @Override public void start() throws IOException { server.start(); } @Override public void stop() { server.shutdown(); } @Override public void submitRequest(ContainerCommandRequestProto request, HddsProtos.PipelineID pipelineID) { storageContainer.dispatch(request); } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
ff97b4ca08f21b00edefd6320faac7951cfcaa15
14970ee11e71b839ba2c86e1ce65e344de28325c
/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/BPELAdaptingSelectionProvider.java
5b1a5462d815c9393ab4f1be274736ed506e5f37
[ "Apache-2.0", "EPL-1.0" ]
permissive
wso2/devstudio-tooling-bps
e300529639e22fd430612601d7d76b9a9bd56dd0
5a5d080d94bb30ac6a5fb404c2a6b989653cc78d
refs/heads/master
2023-06-28T18:29:45.578389
2021-01-04T06:46:48
2021-01-04T06:46:48
53,044,989
34
19
Apache-2.0
2021-01-04T06:46:49
2016-03-03T11:23:24
Java
UTF-8
Java
false
false
3,202
java
/******************************************************************************* * Copyright (c) 2005, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.bpel.ui; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.eclipse.bpel.common.ui.tray.AdaptingSelectionProvider; import org.eclipse.gef.EditPart; import org.eclipse.gef.EditPartViewer; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredSelection; /** * A version of AdaptingSelectionProvider with extra support for also using EditPart-based * selections, which are needed by some of our actions. (Basically some code copied from * MultiViewerSelectionProvider!) */ public class BPELAdaptingSelectionProvider extends AdaptingSelectionProvider { protected IStructuredSelection cachedEditPartSelection; /** * Brand new shiny BPELAdaptingSelectionProvider ... * @param viewer */ public BPELAdaptingSelectionProvider(EditPartViewer viewer) { super(viewer); } /** * Brand new shiny BPELAdaptingSelectionProvider ... */ public BPELAdaptingSelectionProvider() { super(); } /** * @see org.eclipse.bpel.common.ui.tray.MultiViewerSelectionProvider#setSelection(org.eclipse.jface.viewers.ISelection) */ @Override public void setSelection (ISelection selection) { if (selection instanceof IStructuredSelection == false) { return; } cachedSelection = calculateSelection((IStructuredSelection) selection); internalSetSelection(cachedSelection); cachedEditPartSelection = calculateEditPartSelection(); fireSelectionChanged(this, cachedSelection); } protected IStructuredSelection calculateEditPartSelection() { List<EditPart> result = new ArrayList<EditPart>(); Set<Object> modelObjectSet = new HashSet<Object>(); for(EditPartViewer v : viewers ) { List<EditPart> viewerParts = v.getSelectedEditParts(); // NOTE: filter out duplicate edit parts, so that we only return // one edit part per model object. for(EditPart ep : viewerParts) { Object model = ep.getModel(); if (modelObjectSet.add(model)) { result.add(ep); } } } if (result.isEmpty()) { return StructuredSelection.EMPTY; } return new StructuredSelection(result); } /** * This is for the benefit of our actions which require an EditPart-based selection. * @return the selection of edit parts. */ public IStructuredSelection getEditPartSelection() { if (cachedEditPartSelection == null) { cachedEditPartSelection = calculateEditPartSelection(); } return cachedEditPartSelection; } }
[ "mail.hasitha27@gmail.com" ]
mail.hasitha27@gmail.com
00505fe069026942fd9e6ac22158ee25fc911e18
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/13/13_60df25f7b89fa2740b7e9437807adfbf03a17c93/Config/13_60df25f7b89fa2740b7e9437807adfbf03a17c93_Config_t.java
2d0fe06eaebcbcc3747cb8ebb9508962bea00d4e
[]
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,214
java
package teamm.mods.virtious; public class Config { public static int virtiousBiomeID = 25; public static int canyoneBiomeID = 26; //Worldgen Blocks - under 256 public static int idDeepStone = 200; public static int idVirtianstone = 201; public static int idVirtianGrass = 202; public static int idVirtianSoil = 203; public static int iddeepStoneMossy = 204; public static int idvirtiousAcid = 205; //Blocks public static int idvirtiancobblestone = 2000; public static int idPortal = 2001; public static int idoreVIron = 2002; public static int idoreTak = 2003; public static int idoreBrazeum = 2004; public static int idoreAquieus = 2005; public static int idorePluthorium = 2006; public static int idoreIlluminous = 2007; public static int idoreDeepTak = 2008; public static int idoreDeepIron = 2009; public static int idoreDeepIlluminous = 2010; public static int idblockTak = 2011; public static int idblockNightwhisker = 2012; public static int idlogAmber = 2013; public static int idleavesAmber = 2014; public static int idsaplingAmber = 2015; public static int idlogVirtian = 2016; public static int idleavesVirtian = 2017; public static int idsaplingVirtian = 2018; public static int idplankAmber = 2019; public static int idplankVirtian = 2020; public static int idcanyonstone = 2021; //Items public static int idIngotBrazeum = 5000; public static int idShardAquieus = 5001; public static int idGemPluthorium = 5002; public static int idTak = 5003; public static int idGemIlluminous = 5004; public static int idamberwoodPickaxe = 5005; public static int idamberwoodAxe = 5006; public static int idamberwoodShovel = 5007; public static int idamberwoodHoe = 5008; public static int idamberwoodSword = 5009; public static int idvirtianwoodPickaxe = 5010; public static int idvirtianwoodAxe = 5011; public static int idvirtianwoodShovel = 5012; public static int idvirtianwoodHoe = 5013; public static int idvirtianwoodSword = 5014; public static int idvirtianstonePickaxe = 5015; public static int idvirtianstoneAxe = 5016; public static int idvirtianstoneShovel = 5017; public static int idvirtianstoneHoe = 5018; public static int idvirtianstoneSword = 5019; public static int iddeepstonePickaxe = 5020; public static int iddeepstoneAxe = 5021; public static int iddeepstoneShovel = 5022; public static int iddeepstoneHoe = 5023; public static int iddeepstoneSword = 5024; public static int idbrazeumPickaxe = 5025; public static int idbrazeumAxe = 5026; public static int idbrazeumShovel = 5027; public static int idbrazeumHoe = 5028; public static int idbrazeumSword = 5029; public static int idaquieusPickaxe = 5030; public static int idaquieusAxe = 5031; public static int idaquieusShovel = 5032; public static int idaquieusHoe = 5033; public static int idaquieusSword = 5034; public static int idpluthoriumPickaxe = 5035; public static int idpluthoriumAxe = 5036; public static int idpluthoriumShovel = 5037; public static int idpluthoriumHoe = 5038; public static int idpluthoriumSword = 5039; public static int idTeleporterWand = 5500; }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
2c6cb9c5193b999006cae17382e74c873446e4af
524c3487d7c6edf4cab0ed345237afb71d030d53
/dsf-fhir/dsf-fhir-server/src/main/java/org/highmed/dsf/fhir/history/user/PractitionerRoleHistoryUserFilter.java
40746057ad98f43f7263797a8a790d288d238e1f
[ "Apache-2.0" ]
permissive
highmed/highmed-dsf
2d5666c23ac38e6b3e0355032a10f77f21ca7e14
2448ee9719277ae7e720b38ae600f0056c773361
refs/heads/main
2023-07-09T20:23:42.392160
2023-06-21T18:21:33
2023-06-21T18:21:33
190,670,816
35
27
Apache-2.0
2023-09-14T19:36:35
2019-06-07T01:06:36
Java
UTF-8
Java
false
false
777
java
package org.highmed.dsf.fhir.history.user; import org.highmed.dsf.fhir.authentication.User; import org.highmed.dsf.fhir.search.parameters.user.PractitionerRoleUserFilter; import org.hl7.fhir.r4.model.PractitionerRole; import ca.uhn.fhir.model.api.annotation.ResourceDef; public class PractitionerRoleHistoryUserFilter extends PractitionerRoleUserFilter implements HistoryUserFilter { private static final String RESOURCE_TYPE = PractitionerRole.class.getAnnotation(ResourceDef.class).name(); public PractitionerRoleHistoryUserFilter(User user) { super(user, HistoryUserFilter.RESOURCE_TABLE, HistoryUserFilter.RESOURCE_ID_COLUMN); } @Override public String getFilterQuery() { return HistoryUserFilter.getFilterQuery(RESOURCE_TYPE, super.getFilterQuery()); } }
[ "hauke.hund@hs-heilbronn.de" ]
hauke.hund@hs-heilbronn.de
4d005f6c6eedd04d4d3a12d29323d9f31d6a1445
967502523508f5bb48fdaac93b33e4c4aca20a4b
/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/transform/NetworkBindingJsonUnmarshaller.java
2fe07ea204a768c812575931ba9061f43a1b5ef1
[ "Apache-2.0", "JSON" ]
permissive
hanjk1234/aws-sdk-java
3ac0d8a9bf6f7d9bf1bc5db8e73a441375df10c0
07da997c6b05ae068230401921860f5e81086c58
refs/heads/master
2021-01-17T18:25:34.913778
2015-10-23T03:20:07
2015-10-23T03:20:07
44,951,249
1
0
null
2015-10-26T06:53:25
2015-10-26T06:53:24
null
UTF-8
Java
false
false
3,555
java
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.ecs.model.transform; import java.util.Map; import java.util.Map.Entry; import com.amazonaws.services.ecs.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * NetworkBinding JSON Unmarshaller */ public class NetworkBindingJsonUnmarshaller implements Unmarshaller<NetworkBinding, JsonUnmarshallerContext> { public NetworkBinding unmarshall(JsonUnmarshallerContext context) throws Exception { NetworkBinding networkBinding = new NetworkBinding(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("bindIP", targetDepth)) { context.nextToken(); networkBinding.setBindIP(StringJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("containerPort", targetDepth)) { context.nextToken(); networkBinding.setContainerPort(IntegerJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("hostPort", targetDepth)) { context.nextToken(); networkBinding.setHostPort(IntegerJsonUnmarshaller .getInstance().unmarshall(context)); } if (context.testExpression("protocol", targetDepth)) { context.nextToken(); networkBinding.setProtocol(StringJsonUnmarshaller .getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals( currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return networkBinding; } private static NetworkBindingJsonUnmarshaller instance; public static NetworkBindingJsonUnmarshaller getInstance() { if (instance == null) instance = new NetworkBindingJsonUnmarshaller(); return instance; } }
[ "aws@amazon.com" ]
aws@amazon.com
cfc70675f3e28171f0378bc5a645c68d795aec2f
b498c311ef22e2c37b88600c996f05704be01e10
/LeetCode/L238_Product_of_Array_Except_Self.java
38eb50e0b7086efb5ec5601500a791ce9fa8023d
[]
no_license
soupcatfly/LeetCode
6f997f5bae42576150d9c6aae51e90dcd01b2418
4ae25f07cde24f9dff4ff5ae0a6d302ef09e8272
refs/heads/master
2021-01-02T08:15:54.027593
2019-08-13T09:35:02
2019-08-13T09:35:02
98,979,642
0
0
null
2017-08-01T08:43:33
2017-08-01T08:43:33
null
UTF-8
Java
false
false
384
java
package LeetCode; public class L238_Product_of_Array_Except_Self { public int[] productExceptSelf(int[] nums) { int[] rt = new int[nums.length]; rt[nums.length - 1] = 1; for (int i = nums.length - 2; i >= 0; i--) { rt[i] = rt[i + 1] * nums[i+1]; } int left = 1; for (int i = 0; i < nums.length; i++) { rt[i] *= left; left *= nums[i]; } return rt; } }
[ "15822882820@163.com" ]
15822882820@163.com
8e2838c85c91f4b2bc9a91f6b2b75cffb3732189
3cd8ad76778ddabfd62414b2bf044def955d0d88
/pw-new/ylb-zuul-service/src/main/java/com/ectrip/zuul/config/SwaggerConfig.java
f8e7b71c0c7e96b723666ef8eb5158a14dc88ba8
[]
no_license
dbc1024/demos
65f640eb6bbc5b6476645eeb7c42c28e7218f6cb
ebbe48de090af138f55e8a1923768328452f1d69
refs/heads/master
2020-03-30T19:08:35.871801
2019-05-08T03:14:59
2019-05-08T03:14:59
151,530,128
1
3
null
null
null
null
UTF-8
Java
false
false
1,452
java
package com.ectrip.zuul.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.service.ApiInfo; import springfox.documentation.service.Contact; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger.web.UiConfiguration; import springfox.documentation.swagger.web.UiConfigurationBuilder; import springfox.documentation.swagger2.annotations.EnableSwagger2; /** * * @author Administrator * */ @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()); } private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("分布式票务电商系统") .description("票务电商系统接口文档说明") .termsOfServiceUrl("http://localhost:8082") .contact(new Contact("vker", "", "**")) .version("1.0") .build(); } @Bean UiConfiguration uiConfig() { // (null, "list", "alpha", "schema", // UiConfiguration.Constants.DEFAULT_SUBMIT_METHODS, false, true, 60000L); return UiConfigurationBuilder.builder().build(); } }
[ "cy991587100@163.com" ]
cy991587100@163.com
a7a75dd9a22a84596c3afd121cfd4352fdaa4b3c
ff90aedaff2b3adab50e68b2f3eef3a74f3f2b0d
/src/com/google/android/gms/internal/ads/zzzl.java
6c82c7bd3c43d11adddedcf53e3187cb34ec9b3d
[]
no_license
rrabit42/Malware_Project_EWHA
cf81ab0d6cdc64cf0fb722e9427f7307da3689ab
3865c1c393a9873915ec07389afb799573d5d135
refs/heads/master
2020-11-24T06:42:17.435890
2019-12-16T20:48:04
2019-12-16T20:48:04
228,010,763
0
1
null
null
null
null
UTF-8
Java
false
false
2,734
java
package com.google.android.gms.internal.ads; import android.os.Bundle; import android.os.IBinder; import android.os.Parcel; import android.os.RemoteException; import com.google.android.gms.dynamic.IObjectWrapper; public final class zzzl extends zzej implements zzzj { zzzl(IBinder paramIBinder) { super(paramIBinder, "com.google.android.gms.ads.internal.mediation.client.rtb.IRtbAdapter"); } public final zzlo getVideoController() throws RemoteException { Parcel parcel = transactAndReadException(5, obtainAndWriteInterfaceToken()); zzlo zzlo = zzlp.zze(parcel.readStrongBinder()); parcel.recycle(); return zzlo; } public final void showInterstitial() throws RemoteException { transactAndReadExceptionReturnVoid(7, obtainAndWriteInterfaceToken()); } public final void zza(IObjectWrapper paramIObjectWrapper, String paramString, Bundle paramBundle, zzzm paramzzzm) throws RemoteException { Parcel parcel = obtainAndWriteInterfaceToken(); zzel.zza(parcel, paramIObjectWrapper); parcel.writeString(paramString); zzel.zza(parcel, paramBundle); zzel.zza(parcel, paramzzzm); transactAndReadExceptionReturnVoid(1, parcel); } public final void zza(byte[] paramArrayOfByte, String paramString, Bundle paramBundle, IObjectWrapper paramIObjectWrapper, zzzf paramzzzf, zzxt paramzzxt, zzjn paramzzjn) throws RemoteException { Parcel parcel = obtainAndWriteInterfaceToken(); parcel.writeByteArray(paramArrayOfByte); parcel.writeString(paramString); zzel.zza(parcel, paramBundle); zzel.zza(parcel, paramIObjectWrapper); zzel.zza(parcel, paramzzzf); zzel.zza(parcel, paramzzxt); zzel.zza(parcel, paramzzjn); transactAndReadExceptionReturnVoid(4, parcel); } public final void zza(byte[] paramArrayOfByte, String paramString, Bundle paramBundle, IObjectWrapper paramIObjectWrapper, zzzh paramzzzh, zzxt paramzzxt) throws RemoteException { Parcel parcel = obtainAndWriteInterfaceToken(); parcel.writeByteArray(paramArrayOfByte); parcel.writeString(paramString); zzel.zza(parcel, paramBundle); zzel.zza(parcel, paramIObjectWrapper); zzel.zza(parcel, paramzzzh); zzel.zza(parcel, paramzzxt); transactAndReadExceptionReturnVoid(6, parcel); } public final zzzt zznc() throws RemoteException { Parcel parcel = transactAndReadException(2, obtainAndWriteInterfaceToken()); zzzt zzzt = (zzzt)zzel.zza(parcel, zzzt.CREATOR); parcel.recycle(); return zzzt; } public final zzzt zznd() throws RemoteException { Parcel parcel = transactAndReadException(3, obtainAndWriteInterfaceToken()); zzzt zzzt = (zzzt)zzel.zza(parcel, zzzt.CREATOR); parcel.recycle(); return zzzt; } }
[ "gegiraffe@gmail.com" ]
gegiraffe@gmail.com
f384663ecc5dba284584c4576524429ec8b56aef
b2090456613ec9446691af056e0ce626c256dc75
/Aarry/src/com/vidvaan/multdimensionalarry/TwoDimensionalArry.java
05b56fa5aa814d86e480cb59d49da7ac09f75cee
[]
no_license
satya6264/CoreJava
0ed6b68ad62e383986669c21a1298c10186fbea1
0a8aeaf09e7298b1c357135b777f5286c699145f
refs/heads/main
2023-03-26T17:49:48.307386
2021-03-22T07:30:15
2021-03-22T07:30:15
350,233,320
0
0
null
null
null
null
UTF-8
Java
false
false
410
java
package com.vidvaan.multdimensionalarry; public class TwoDimensionalArry { public static void main(String[] args) { //int arr[][]=new int [2][2]; //arr[0][0]=1; //arr[0][1]=2; //arr[1][0]=3; //arr[1][1]=4; int arr[][]= {{1,2},{3,4}}; for (int i = 0; i < arr.length; i++) { for (int j = 0; j < arr.length; j++) { System.out.print(arr[i][j]+" "); } System.out.println(); } } }
[ "satya@LAPTOP-O9U0GDDV" ]
satya@LAPTOP-O9U0GDDV
a7dc4de65a727e2f252b406746145670415f9bf3
d62c759ebcb73121f42a221776d436e9368fdaa8
/providers/cloudservers-us/src/main/java/org/jclouds/rackspace/cloudservers/CloudServersUSPropertiesBuilder.java
51b4ad1b5b7376babca56dc2e53627f1763bdde5
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
gnodet/jclouds
0152a4e7d6d96ac4ec9fa9746729e3555626ecfe
87dd23551c4d9b727540d9bd333ffd9a1136e58a
refs/heads/master
2020-12-24T23:19:24.785844
2011-09-16T15:52:12
2011-09-16T15:52:12
2,399,075
1
0
null
null
null
null
UTF-8
Java
false
false
1,738
java
/** * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. jclouds licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.jclouds.rackspace.cloudservers; import static org.jclouds.Constants.PROPERTY_API_VERSION; import static org.jclouds.Constants.PROPERTY_ENDPOINT; import static org.jclouds.Constants.PROPERTY_ISO3166_CODES; import java.util.Properties; import org.jclouds.PropertiesBuilder; import org.jclouds.openstack.OpenStackAuthAsyncClient; /** * * @author Adrian Cole */ public class CloudServersUSPropertiesBuilder extends PropertiesBuilder { @Override protected Properties defaultProperties() { Properties properties = super.defaultProperties(); properties.setProperty(PROPERTY_ISO3166_CODES, "US-IL,US-TX"); properties.setProperty(PROPERTY_ENDPOINT, "https://auth.api.rackspacecloud.com"); properties.setProperty(PROPERTY_API_VERSION, OpenStackAuthAsyncClient.VERSION); return properties; } public CloudServersUSPropertiesBuilder(Properties properties) { super(properties); } }
[ "adrian@jclouds.org" ]
adrian@jclouds.org
1d30058e05608d7248364085336d110caa51a665
444b800c642d28169a3a44b80955234531659621
/PatternReview/src/comm/AbstractFatoryPattern.java
41113858bc6641a9f2a55260ddd7c1dd2b560b33
[]
no_license
supergirl1234/Factory
792c7342050ea778ff99de035a8ef0678deac6c7
c66c4b962a488e44d6a28db2f6c787b90d6bf2b1
refs/heads/master
2020-05-24T19:20:49.722153
2019-09-14T13:27:52
2019-09-14T13:27:52
187,432,077
0
0
null
null
null
null
UTF-8
Java
false
false
1,897
java
package comm; /*抽象工厂模式*/ /*多个业务,一个工厂也要实现这几个多个业务*/ import com.sun.xml.internal.ws.api.Component; import java.util.concurrent.ThreadPoolExecutor; interface Computer{ void buyComputer(); } class DELLComputer implements Computer{ @Override public void buyComputer() { System.out.println("戴尔笔记本"); } } class LevonComputer implements Computer{ @Override public void buyComputer() { System.out.println("联想笔记本"); } } interface Color{ void print(); } class YellowColor implements Color{ @Override public void print() { System.out.println("黄色"); } } class RedColor implements Color{ @Override public void print() { System.out.println("红色"); } } interface ComputerFactory{ Computer buy(); Color produce(); } class DellFactory implements ComputerFactory{ @Override public Computer buy() { return new DELLComputer(); } @Override public Color produce() { return new YellowColor(); } } class LevonFactory implements ComputerFactory{ @Override public Computer buy() { return new LevonComputer(); } @Override public Color produce() { return new RedColor(); } } public class AbstractFatoryPattern { /*业务:买电脑和生产颜色*/ public void buyComputer(Computer computer){ computer.buyComputer(); } public void selectColor(Color color){ color.print(); } public static void main(String[] args) { AbstractFatoryPattern client=new AbstractFatoryPattern(); ComputerFactory factory=new DellFactory(); Computer computer=factory.buy(); Color color=factory.produce(); client.buyComputer(computer); client.selectColor(color); } }
[ "2547462712@qq.com" ]
2547462712@qq.com
c802957e16b24665664f00c289dbf36a4cf1ba32
a6923e1e56cdbc8bc354cba3e4f699c5f132ae1a
/application/pms-p2p/src/main/java/com/fenlibao/pms/shiro/web/UserInfo.java
8f9b0c4167888e766d34d19802dfd46852be0f42
[]
no_license
mddonly/modules
851b8470069aca025ea63db4b79ad281e384216f
22dd100304e86a17bea733a8842a33123f892312
refs/heads/master
2020-03-28T03:26:51.960201
2018-05-11T02:24:37
2018-05-11T02:24:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
375
java
package com.fenlibao.pms.shiro.web; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; /** * Created by Bogle on 2016/2/2. */ public class UserInfo { public static String getUsername() { Subject subject = SecurityUtils.getSubject(); Object principal = subject.getPrincipal(); return principal.toString(); } }
[ "13632415004@163.com" ]
13632415004@163.com
2714e69b0f6c21326e7bc6d63a234f075174e2e7
ee4200e20d475c46846abc1d2cf764dcdb1f8f2b
/src/test/java/org/apache/ibatis/submitted/emptycollection/DaoTest.java
769e9df4c3c9b527549d96af7f4fc3b4e02907ce
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
yylstudy/mybatis-3.5.0-sourcescode
8ba9a09b7897ce90f2a03867101b7b65a4b55bb8
bb0ec45e4be31fc33a0e0c3ef151809a5fe401bd
refs/heads/master
2022-10-12T04:37:33.036096
2020-12-21T04:53:14
2020-12-21T04:53:14
143,408,367
0
0
Apache-2.0
2022-09-08T00:07:43
2018-08-03T09:34:12
Java
UTF-8
Java
false
false
3,730
java
/** * Copyright ${license.git.copyrightYears} 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.apache.ibatis.submitted.emptycollection; import java.io.Reader; import java.sql.Connection; import java.util.List; import org.apache.ibatis.io.Resources; import org.apache.ibatis.jdbc.ScriptRunner; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; public class DaoTest { private Connection conn; private Dao dao; private SqlSession sqlSession; @Before public void setUp() throws Exception { try (Reader reader = Resources.getResourceAsReader("org/apache/ibatis/submitted/emptycollection/mybatis-config.xml")) { SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader); sqlSession = sqlSessionFactory.openSession(); } conn = sqlSession.getConnection(); ScriptRunner runner = new ScriptRunner(conn); runner.setLogWriter(null); dao = sqlSession.getMapper(Dao.class); } @After public void tearDown() throws Exception { conn.close(); sqlSession.close(); } @Test public void testWithEmptyList() throws Exception { final List<TodoLists> actual = dao.selectWithEmptyList(); Assert.assertEquals(1, actual.size()); final List<TodoItem> todoItems = actual.get(0).getTodoItems(); Assert.assertEquals("expect " + todoItems + " to be empty", 0, todoItems.size()); } @Test public void testWithNonEmptyList() throws Exception { final List<TodoLists> actual = dao.selectWithNonEmptyList(); checkNonEmptyList(actual); } @Test public void testWithNonEmptyList_noCollectionId() throws Exception { final List<TodoLists> actual = dao.selectWithNonEmptyList_noCollectionId(); checkNonEmptyList(actual); } private void checkNonEmptyList(final List<TodoLists> actual) { // Assert.assertEquals("[List(1)=[a description(1), a 2nd description(2)], List(2)=[a description(1)]]", actual.toString()); Assert.assertEquals(2, actual.size()); Assert.assertEquals(2, actual.get(0).getTodoItems().size()); Assert.assertEquals(1, actual.get(0).getTodoItems().get(0).getOrder()); Assert.assertEquals("a description", actual.get(0).getTodoItems().get(0).getDescription().trim()); Assert.assertEquals(2, actual.get(0).getTodoItems().get(1).getOrder()); Assert.assertEquals("a 2nd description", actual.get(0).getTodoItems().get(1).getDescription().trim()); Assert.assertEquals(1, actual.get(1).getTodoItems().size()); Assert.assertEquals(1, actual.get(1).getTodoItems().get(0).getOrder()); Assert.assertEquals("a description", actual.get(0).getTodoItems().get(0).getDescription().trim()); // We should have gotten three item objects. The first item from the first list and the first item from // the second list have identical properties, but they should be distinct objects Assert.assertNotSame(actual.get(0).getTodoItems().get(0), actual.get(1).getTodoItems().get(0)); } }
[ "1594818954@qq.com" ]
1594818954@qq.com
76278172dc9081a1736bb9bc1a5ffdc7b88e1b37
62cb0acf78d786a957b0c61e33a692e3e4a259fd
/src/main/java/hu/akarnokd/rxjava2/internal/subscribers/nbp/NbpToNotificationSubscriber.java
58916ed4b4a3f96a222d9d8a178545956526863c
[ "Apache-2.0" ]
permissive
josenaves/rxjava2-backport
4ba34e62c0ee620cfc7fcf56a0cc91cfe4f12d81
9cac47e86a9b48b2f021d27e3d0031132b57711e
refs/heads/master
2020-12-24T12:06:01.695465
2016-08-24T13:48:52
2016-08-24T13:48:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,875
java
/** * Copyright 2015 David Karnok and Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See * the License for the specific language governing permissions and limitations under the License. */ package hu.akarnokd.rxjava2.internal.subscribers.nbp; import hu.akarnokd.rxjava2.*; import hu.akarnokd.rxjava2.NbpObservable.NbpSubscriber; import hu.akarnokd.rxjava2.disposables.Disposable; import hu.akarnokd.rxjava2.functions.Consumer; import hu.akarnokd.rxjava2.internal.subscriptions.SubscriptionHelper; public final class NbpToNotificationSubscriber<T> implements NbpSubscriber<T> { final Consumer<? super Try<Optional<Object>>> consumer; Disposable s; public NbpToNotificationSubscriber(Consumer<? super Try<Optional<Object>>> consumer) { this.consumer = consumer; } @Override public void onSubscribe(Disposable s) { if (SubscriptionHelper.validateDisposable(this.s, s)) { return; } this.s = s; } @Override public void onNext(T t) { if (t == null) { s.dispose(); onError(new NullPointerException()); } else { consumer.accept(Try.ofValue(Optional.<Object>of(t))); } } @Override public void onError(Throwable t) { consumer.accept(Try.<Optional<Object>>ofError(t)); } @Override public void onComplete() { consumer.accept(Notification.complete()); } }
[ "akarnokd@gmail.com" ]
akarnokd@gmail.com
d5fafe080b6feb094bfae569c3af1b8402c7f831
d15803d5b16adab18b0aa43d7dca0531703bac4a
/android/support/v4/app/NotificationCompatIceCreamSandwich.java
4246ea70dd170f62dd48649064df448af6e995ad
[]
no_license
kenuosec/Decompiled-Whatsapp
375c249abdf90241be3352aea38eb32a9ca513ba
652bec1376e6cd201d54262cc1d4e7637c6334ed
refs/heads/master
2021-12-08T15:09:13.929944
2016-03-23T06:04:08
2016-03-23T06:04:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,739
java
package android.support.v4.app; import android.app.Notification; import android.app.PendingIntent; import android.content.Context; import android.graphics.Bitmap; import android.widget.RemoteViews; class NotificationCompatIceCreamSandwich { public class Builder implements NotificationBuilderWithBuilderAccessor { private android.app.Notification.Builder b; public Notification build() { return this.b.getNotification(); } public android.app.Notification.Builder getBuilder() { return this.b; } public Builder(Context context, Notification notification, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, RemoteViews remoteViews, int i, PendingIntent pendingIntent, PendingIntent pendingIntent2, Bitmap bitmap, int i2, int i3, boolean z) { this.b = new android.app.Notification.Builder(context).setWhen(notification.when).setSmallIcon(notification.icon, notification.iconLevel).setContent(notification.contentView).setTicker(notification.tickerText, remoteViews).setSound(notification.sound, notification.audioStreamType).setVibrate(notification.vibrate).setLights(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).setOngoing((notification.flags & 2) != 0).setOnlyAlertOnce((notification.flags & 8) != 0).setAutoCancel((notification.flags & 16) != 0).setDefaults(notification.defaults).setContentTitle(charSequence).setContentText(charSequence2).setContentInfo(charSequence3).setContentIntent(pendingIntent).setDeleteIntent(notification.deleteIntent).setFullScreenIntent(pendingIntent2, (notification.flags & 128) != 0).setLargeIcon(bitmap).setNumber(i).setProgress(i2, i3, z); } } }
[ "gigalitelk@gmail.com" ]
gigalitelk@gmail.com
629198be4ce108c53fe3d3182fdaa0f036ef8387
e9f77cc80015bc81cea0ee4418e179b2112d808c
/common/lang/src/main/java/de/tweerlei/common5/util/FindReplace.java
2b5f180e5e9f50e039e861823fb2c79c057015d7
[ "Apache-2.0" ]
permissive
tweerlei/dbgrazer
2d3754596a51e293ed0a232d7b0128bf523789c2
2cec20e9730c14e6e6c18c274765647a369f7175
refs/heads/master
2023-08-08T22:28:11.633335
2023-07-26T13:05:30
2023-07-26T13:05:30
144,776,073
4
1
Apache-2.0
2023-03-27T14:00:05
2018-08-14T21:58:01
Java
UTF-8
Java
false
false
4,103
java
/* * Copyright 2018 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/ * * 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 de.tweerlei.common5.util; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Find and replace substrings * * @author Robert Wruck */ public abstract class FindReplace { private final Pattern pattern; /** * Constructor * @param pattern Pattern to match (null means no-op) */ public FindReplace(Pattern pattern) { this.pattern = pattern; } private String getMatch(Matcher m) { if (m.groupCount() > 0) return (m.group(1)); return (m.group()); } /** * Find the matching substring applying the pattern to the whole string * @param s String to match * @return Matched substring or null if no match */ public String findMatch(String s) { if (s == null) return (null); if (pattern == null) return (null); final Matcher m = pattern.matcher(s); if (m.matches()) return (getMatch(m)); return (null); } /** * Find the first matching substring * @param s String to match * @return Matched substring or null if no match */ public String findFirst(String s) { if (s == null) return (null); if (pattern == null) return (null); final Matcher m = pattern.matcher(s); if (m.find()) return (getMatch(m)); return (null); } /** * Find all matching substrings * @param s String to match * @return Matched substrings */ public List<String> findAll(String s) { if (s == null) return (Collections.emptyList()); if (pattern == null) return (Collections.emptyList()); final Matcher m = pattern.matcher(s); final List<String> ret = new LinkedList<String>(); while (m.find()) ret.add(getMatch(m)); return (ret); } /** * Replace the matching substring applying the pattern to the whole string * @param s String to match * @return Replaced String */ public String replace(String s) { if (s == null) return (null); if (pattern == null) return (null); final StringBuffer sb = new StringBuffer(); final Matcher m = pattern.matcher(s); if (m.matches()) m.appendReplacement(sb, getReplacement(getMatch(m), 0)); m.appendTail(sb); return (sb.toString()); } /** * Replace the first occurrence of the search terms with their respective replacements * @param s String * @return Replaced String */ public String replaceFirst(String s) { if (s == null) return (null); if (pattern == null) return (s); final StringBuffer sb = new StringBuffer(); final Matcher m = pattern.matcher(s); int i = 0; if (m.find()) m.appendReplacement(sb, getReplacement(getMatch(m), i++)); m.appendTail(sb); return (sb.toString()); } /** * Replace all occurrences of the search terms with their respective replacements * @param s String * @return Replaced String */ public String replaceAll(String s) { if (s == null) return (null); if (pattern == null) return (s); final StringBuffer sb = new StringBuffer(); final Matcher m = pattern.matcher(s); int i = 0; while (m.find()) m.appendReplacement(sb, getReplacement(getMatch(m), i++)); m.appendTail(sb); return (sb.toString()); } /** * Get a replacement String for a matched substring * @param match The matched substring * @param index The match index (starting at 0) * @return Replacement String */ protected abstract String getReplacement(String match, int index); }
[ "wruck@tweerlei.de" ]
wruck@tweerlei.de
f8e28fdd39a9229b50f35bdaa6a31ca24638a733
930c207e245c320b108e9699bbbb036260a36d6a
/BRICK-RDF4J/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/IChilled_Water_Pump_Lead_Lag.java
34d910ecb5112fe5bc38ed06ca006fe6af4617c1
[]
no_license
InnovationSE/BRICK-Generated-By-OLGA
24d278f543471e1ce622f5f45d9e305790181fff
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
refs/heads/master
2021-07-01T14:13:11.302860
2017-09-21T12:44:17
2017-09-21T12:44:17
104,251,784
1
0
null
null
null
null
UTF-8
Java
false
false
507
java
/** * This file is automatically generated by OLGA * @author OLGA * @version 1.0 */ package brickschema.org.schema._1_0_2.Brick; import java.util.ArrayList; import java.util.List; import org.eclipse.rdf4j.model.IRI; import org.eclipse.rdf4j.model.vocabulary.RDF; import brickschema.org.schema._1_0_2.Brick.IChilled_Water_Pump; import brickschema.org.schema._1_0_2.Brick.ILead_Lag; public interface IChilled_Water_Pump_Lead_Lag extends IChilled_Water_Pump, ILead_Lag { public IRI iri(); }
[ "Andre.Ponnouradjane@non.schneider-electric.com" ]
Andre.Ponnouradjane@non.schneider-electric.com
c7979fac2fec11b05a383bbbd56cae17797ed485
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-12919-4-8-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/query/xwql/internal/XWQLQueryExecutor_ESTest.java
32f1d3c556a1c0b75c785917ae872de2506b5cf3
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
570
java
/* * This file was automatically generated by EvoSuite * Thu Apr 09 09:06:11 UTC 2020 */ package org.xwiki.query.xwql.internal; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XWQLQueryExecutor_ESTest extends XWQLQueryExecutor_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
e20ffde1b0e2c543babe40712e044f7c85eb66f0
c1955ab594e9c6dc00b997874896b265edf1fa3c
/fstgen/src/de/ovgu/cide/fstgen/parsers/generated_javacc/JavaCCParserConstants.java
becf7f372afa7b8de1af04c4e55b0b722f573846
[]
no_license
joliebig/featurehouse
ec5a4da788349836cab0ab36a67f59e8c18fb0ec
81724157bc638524e72af5bb689cf939e6df8599
refs/heads/master
2021-01-17T07:45:57.696707
2017-03-25T13:08:30
2017-03-25T13:08:30
1,794,210
22
13
null
2017-03-25T13:08:31
2011-05-24T15:58:36
Java
UTF-8
Java
false
false
5,474
java
/* Generated By:JavaCC: Do not edit this line. JavaCCParserConstants.java */ package de.ovgu.cide.fstgen.parsers.generated_javacc; public interface JavaCCParserConstants { int EOF = 0; int _OPTIONS = 1; int _LOOKAHEAD = 2; int _IGNORE_CASE = 3; int _PARSER_BEGIN = 4; int _PARSER_END = 5; int _JAVACODE = 6; int _TOKEN = 7; int _SPECIAL_TOKEN = 8; int _MORE = 9; int _SKIP = 10; int _TOKEN_MGR_DECLS = 11; int _EOF = 12; int SINGLE_LINE_COMMENT = 24; int FORMAL_COMMENT = 25; int MULTI_LINE_COMMENT = 26; int ABSTRACT = 28; int ASSERT = 29; int BOOLEAN = 30; int BREAK = 31; int BYTE = 32; int CASE = 33; int CATCH = 34; int CHAR = 35; int CLASS = 36; int CONST = 37; int CONTINUE = 38; int _DEFAULT = 39; int DO = 40; int DOUBLE = 41; int ELSE = 42; int ENUM = 43; int EXTENDS = 44; int FALSE = 45; int FINAL = 46; int FINALLY = 47; int FLOAT = 48; int FOR = 49; int GOTO = 50; int IF = 51; int IMPLEMENTS = 52; int IMPORT = 53; int INSTANCEOF = 54; int INT = 55; int INTERFACE = 56; int LONG = 57; int NATIVE = 58; int NEW = 59; int NULL = 60; int PACKAGE = 61; int PRIVATE = 62; int PROTECTED = 63; int PUBLIC = 64; int RETURN = 65; int SHORT = 66; int STATIC = 67; int STRICTFP = 68; int SUPER = 69; int SWITCH = 70; int SYNCHRONIZED = 71; int THIS = 72; int THROW = 73; int THROWS = 74; int TRANSIENT = 75; int TRUE = 76; int TRY = 77; int VOID = 78; int VOLATILE = 79; int WHILE = 80; int INTEGER_LITERAL = 81; int DECIMAL_LITERAL = 82; int HEX_LITERAL = 83; int OCTAL_LITERAL = 84; int FLOATING_POINT_LITERAL = 85; int DECIMAL_FLOATING_POINT_LITERAL = 86; int DECIMAL_EXPONENT = 87; int HEXADECIMAL_FLOATING_POINT_LITERAL = 88; int HEXADECIMAL_EXPONENT = 89; int CHARACTER_LITERAL = 90; int STRING_LITERAL = 91; int LPAREN = 92; int RPAREN = 93; int LBRACE = 94; int RBRACE = 95; int LBRACKET = 96; int RBRACKET = 97; int SEMICOLON = 98; int COMMA = 99; int DOT = 100; int ASSIGN = 101; int LT = 102; int BANG = 103; int TILDE = 104; int HOOK = 105; int COLON = 106; int EQ = 107; int LE = 108; int GE = 109; int NE = 110; int SC_OR = 111; int SC_AND = 112; int INCR = 113; int DECR = 114; int PLUS = 115; int MINUS = 116; int STAR = 117; int SLASH = 118; int BIT_AND = 119; int BIT_OR = 120; int XOR = 121; int REM = 122; int PLUSASSIGN = 123; int MINUSASSIGN = 124; int STARASSIGN = 125; int SLASHASSIGN = 126; int ANDASSIGN = 127; int ORASSIGN = 128; int XORASSIGN = 129; int REMASSIGN = 130; int RUNSIGNEDSHIFT = 131; int RSIGNEDSHIFT = 132; int GT = 133; int IDENTIFIER = 134; int LETTER = 135; int PART_LETTER = 136; int DEFAULT = 0; int AFTER_EGEN = 1; int IN_SINGLE_LINE_COMMENT = 2; int IN_FORMAL_COMMENT = 3; int IN_MULTI_LINE_COMMENT = 4; String[] tokenImage = { "<EOF>", "\"options\"", "\"LOOKAHEAD\"", "\"IGNORE_CASE\"", "\"PARSER_BEGIN\"", "\"PARSER_END\"", "\"JAVACODE\"", "\"TOKEN\"", "\"SPECIAL_TOKEN\"", "\"MORE\"", "\"SKIP\"", "\"TOKEN_MGR_DECLS\"", "\"EOF\"", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"/*@egen*/\"", "<token of kind 19>", "\"//\"", "<token of kind 21>", "\"/*\"", "\"/*@bgen(jjtree\"", "<SINGLE_LINE_COMMENT>", "\"*/\"", "\"*/\"", "<token of kind 27>", "\"abstract\"", "\"assert\"", "\"boolean\"", "\"break\"", "\"byte\"", "\"case\"", "\"catch\"", "\"char\"", "\"class\"", "\"const\"", "\"continue\"", "\"default\"", "\"do\"", "\"double\"", "\"else\"", "\"enum\"", "\"extends\"", "\"false\"", "\"final\"", "\"finally\"", "\"float\"", "\"for\"", "\"goto\"", "\"if\"", "\"implements\"", "\"import\"", "\"instanceof\"", "\"int\"", "\"interface\"", "\"long\"", "\"native\"", "\"new\"", "\"null\"", "\"package\"", "\"private\"", "\"protected\"", "\"public\"", "\"return\"", "\"short\"", "\"static\"", "\"strictfp\"", "\"super\"", "\"switch\"", "\"synchronized\"", "\"this\"", "\"throw\"", "\"throws\"", "\"transient\"", "\"true\"", "\"try\"", "\"void\"", "\"volatile\"", "\"while\"", "<INTEGER_LITERAL>", "<DECIMAL_LITERAL>", "<HEX_LITERAL>", "<OCTAL_LITERAL>", "<FLOATING_POINT_LITERAL>", "<DECIMAL_FLOATING_POINT_LITERAL>", "<DECIMAL_EXPONENT>", "<HEXADECIMAL_FLOATING_POINT_LITERAL>", "<HEXADECIMAL_EXPONENT>", "<CHARACTER_LITERAL>", "<STRING_LITERAL>", "\"(\"", "\")\"", "\"{\"", "\"}\"", "\"[\"", "\"]\"", "\";\"", "\",\"", "\".\"", "\"=\"", "\"<\"", "\"!\"", "\"~\"", "\"?\"", "\":\"", "\"==\"", "\"<=\"", "\">=\"", "\"!=\"", "\"||\"", "\"&&\"", "\"++\"", "\"--\"", "\"+\"", "\"-\"", "\"*\"", "\"/\"", "\"&\"", "\"|\"", "\"^\"", "\"%\"", "\"+=\"", "\"-=\"", "\"*=\"", "\"/=\"", "\"&=\"", "\"|=\"", "\"^=\"", "\"%=\"", "\">>>\"", "\">>\"", "\">\"", "<IDENTIFIER>", "<LETTER>", "<PART_LETTER>", "\"#\"", "\"...\"", "\"<<=\"", "\">>=\"", "\">>>=\"", "\"<<\"", "\"@\"", }; }
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
14ea2bcac4ea66c4a18c8ded34e1103f963b51e0
f633a3e286512f48d7f997bd132db378be65a104
/src/org.xtuml.bp.debug.ui.test/src/org/xtuml/bp/debug/engine/VerifierCreationTransitionDebugTest.java
ad4265941dbc3b623dcd0ae74cf33792f335474a
[ "Apache-2.0" ]
permissive
yakashi/bridgepoint
d14a5d31bab762d33d0766e2a302cd533222feef
3301b74190286a23d4a7982fe1070d573e63b9bb
refs/heads/master
2021-01-18T10:19:28.177619
2016-03-21T13:33:29
2016-03-21T13:33:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,340
java
//===================================================================== // //File: $RCSfile: VerifierCreationTransitionDebugTest.java,v $ //Version: $Revision: 1.9 $ //Modified: $Date: 2013/05/10 04:28:38 $ // //(c) Copyright 2008-2014 by Mentor Graphics Corp. All rights reserved. // //===================================================================== // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations under // the License. //===================================================================== package org.xtuml.bp.debug.engine; import java.io.File; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Platform; import org.eclipse.debug.internal.ui.DebugUIPlugin; import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.ui.PlatformUI; import org.xtuml.bp.core.ComponentInstance_c; import org.xtuml.bp.core.Component_c; import org.xtuml.bp.core.CorePlugin; import org.xtuml.bp.core.CreationTransition_c; import org.xtuml.bp.core.Function_c; import org.xtuml.bp.core.Ooaofooa; import org.xtuml.bp.core.Package_c; import org.xtuml.bp.core.PackageableElement_c; import org.xtuml.bp.core.SystemModel_c; import org.xtuml.bp.core.common.BridgePointPreferencesStore; import org.xtuml.bp.core.common.ClassQueryInterface_c; import org.xtuml.bp.core.common.PersistableModelComponent; import org.xtuml.bp.core.ui.Selection; import org.xtuml.bp.core.ui.perspective.BridgePointPerspective; import org.xtuml.bp.debug.ui.launch.BPDebugUtils; import org.xtuml.bp.debug.ui.test.DebugUITestUtilities; import org.xtuml.bp.test.TestUtil; import org.xtuml.bp.test.common.BaseTest; import org.xtuml.bp.test.common.TestingUtilities; import org.xtuml.bp.ui.text.activity.ActivityEditor; public class VerifierCreationTransitionDebugTest extends BaseTest { private static String projectName = "VerifierTransitionActionTest"; private boolean initialized = false; public VerifierCreationTransitionDebugTest(String testName) throws Exception { super(null, testName); } @Override protected void setUp() throws Exception { super.setUp(); if (!initialized){ CorePlugin.disableParseAllOnResourceChange(); // set perspective switch dialog on launch DebugUIPlugin.getDefault().getPluginPreferences().setValue( IDebugUIConstants.PLUGIN_ID + ".switch_to_perspective", "always"); CorePlugin .getDefault() .getPluginPreferences() .setDefault( BridgePointPreferencesStore.ALLOW_IMPLICIT_COMPONENT_ADDRESSING, true); // initialize test model final IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(projectName); loadProject(projectName); m_sys = SystemModel_c.SystemModelInstance(Ooaofooa .getDefaultInstance(), new ClassQueryInterface_c() { public boolean evaluate(Object candidate) { return ((SystemModel_c) candidate).getName().equals( project.getName()); } }); PersistableModelComponent sys_comp = m_sys .getPersistableComponent(); sys_comp.loadComponentAndChildren(new NullProgressMonitor()); CorePlugin.enableParseAllOnResourceChange(); TestingUtilities.allowJobCompletion(); while (!ResourcesPlugin.getWorkspace().getRoot().isSynchronized( IProject.DEPTH_INFINITE)) { ResourcesPlugin.getWorkspace().getRoot().refreshLocal( IProject.DEPTH_INFINITE, new NullProgressMonitor()); while (PlatformUI.getWorkbench().getDisplay().readAndDispatch()) ; } Ooaofooa.setPersistEnabled(true); initialized = true; } } @Override protected void tearDown() throws Exception { DebugUITestUtilities.stopSession(m_sys, projectName); } public void testVerifierCreationTransitionBP(){ final String transName="CreationEvent"; final String result_txt="Verifier_creation_Transition_BP.result"; Component_c component = Component_c.getOneC_COnR8001(PackageableElement_c.getManyPE_PEsOnR8000(Package_c.getManyEP_PKGsOnR1401(m_sys)), new ClassQueryInterface_c() { public boolean evaluate(Object candidate) { return ((Component_c) candidate).getName().equals("Test_DeletionState"); } }); assertNotNull(component); // launch the domain DebugUITestUtilities.setLogActivityAndLaunchForElement(component, m_bp_tree.getControl().getMenu(), m_sys.getName()); openPerspectiveAndView("org.xtuml.bp.debug.ui.DebugPerspective",BridgePointPerspective.ID_MGC_BP_EXPLORER); // select creation transition to be tested CreationTransition_c Ctrans=CreationTransition_c.CreationTransitionInstance(component.getModelRoot(),new ClassQueryInterface_c(){ public boolean evaluate(Object candidate) { return ((CreationTransition_c)candidate).Get_name().contains(transName); } }); assertNotNull(Ctrans); Selection.getInstance().clear(); Selection.getInstance().addToSelection(Ctrans); // set a breakpoint at line 3 ActivityEditor editor = DebugUITestUtilities .openActivityEditorForSelectedElement(); DebugUITestUtilities.setBreakpointAtLine(editor, 4); // launch Test Function PackageableElement_c[] pes = PackageableElement_c.getManyPE_PEsOnR8000(Package_c.getManyEP_PKGsOnR8001(PackageableElement_c.getManyPE_PEsOnR8003(component))); Function_c testFunction = Function_c.getOneS_SYNCOnR8001(pes, new ClassQueryInterface_c() { public boolean evaluate( Object candidate) { return ((Function_c) candidate).getName().equals("TestFunction"); } }); assertNotNull(testFunction); openPerspectiveAndView("org.xtuml.bp.debug.ui.DebugPerspective",BridgePointPerspective.ID_MGC_BP_EXPLORER); Selection.getInstance().clear(); Selection.getInstance().addToSelection(testFunction); editor = DebugUITestUtilities.openActivityEditorForSelectedElement(); BPDebugUtils.executeElement(testFunction); BPDebugUtils.openSessionExplorerView(true); DebugUITestUtilities.waitForExecution(); ComponentInstance_c engine = ComponentInstance_c.getOneI_EXEOnR2955(component); assertNotNull(engine); // wait for the execution to complete DebugUITestUtilities.waitForBPThreads(m_sys); File expectedResults = new File( m_workspace_path + "expected_results/verifier/" + result_txt); String expected_results = TestUtil.getTextFileContents(expectedResults)+"\r\n"; if (!Platform.getOS().contains("win")) { expected_results = expected_results.replace("\r", ""); } // get the text representation of the debug tree String actual_results = DebugUITestUtilities .getConsoleText(expected_results); assertEquals(expected_results, actual_results); } }
[ "s.keith.brown@gmail.com" ]
s.keith.brown@gmail.com