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
e3afc2f220a98136b451441fffac3328e666983d
cdbdddac426bce27ad97401b779392327a6a77eb
/spring/mixed/PropertyEditorSupport/src/com/java/core/SIDEditor.java
163260ab4602fbbbd3f2163d6270acf92670773f
[]
no_license
dhirajn72/allmylocalstuff
87dc68dfe014f31f6c96e996d6b251ff4bda4de8
2f50ab2f3f6b37f71cd02cc253639c540006b933
refs/heads/master
2022-12-23T09:42:59.221342
2021-07-28T19:11:40
2021-07-28T19:11:40
97,965,789
1
1
null
2022-12-16T09:55:29
2017-07-21T16:08:29
Roff
UTF-8
Java
false
false
369
java
package com.java.core; import java.beans.PropertyEditorSupport; public class SIDEditor extends PropertyEditorSupport { @Override public void setAsText(String text) throws IllegalArgumentException { // text=B-001 String bid = text.substring(0, 2); String sid = text.substring(2); SID sid2 = new SID(bid, Integer.parseInt(sid)); this.setValue(sid2); } }
[ "dhirajn72@gmail.com" ]
dhirajn72@gmail.com
a287fbdd5294e9272ed4a913889ec727c912baa9
db499cdbff20dce3c0b202fde3c32023e9febe58
/app/src/main/java/in/wingstud/grocitoseller/Api/RequestCode.java
4ed33955c0039ebdc0cc581f19abd996d44d8181
[]
no_license
mukesh249/GrocitoSeller
c140028a9f2aab6664d4ad1a845bea2aaab5e6fd
072b99b213bd948358cd4f4d0feffac41869ee99
refs/heads/master
2020-12-28T01:45:09.705182
2020-02-04T06:42:13
2020-02-04T06:42:13
238,140,845
0
0
null
null
null
null
UTF-8
Java
false
false
4,455
java
package in.wingstud.grocitoseller.Api; /** * Created by suarebits on 3/12/15. */ public class RequestCode { public static final int CODE_Register = 1; public static final int CODE_Login = 2; public static final int CODE_OtpCheck = 3; public static final int CODE_ResendOtp = 4; public static final int CODE_ProfileById=5; public static final int CODE_Password_Reset = 6; public static final int CODE_VerifyForgotPasswordOtp = 7; public static final int CODE_GetOrderList = 8; public static final int CODE_NotificationList = 9; public static final int CODE_OrderDetailList = 10; public static final int CODE_State = 11; public static final int CODE_City=12; public static final int CODE_PaymentOverView=13; public static final int CODE_PaidPayment=14; public static final int CODE_PaidPaymentDetails = 15; public static final int CODE_PendPayment = 16; public static final int CODE_Notice = 17; public static final int CODE_Dashboard_data=18; public static final int CODE_Brand_list=19; public static final int CODE_Cat_list=20; public static final int CODE_SubCat_list=21; public static final int CODE_Color_list=22; public static final int CODE_In_Stock=23; public static final int CODE_Out_Stock=24; public static final int CODE_Delete_Product=25; public static final int CODE_Update_stock_status=26; public static final int CODE_Delovery_Pincode=27; public static final int CODE_ProfileUpdateStep3=28; public static final int CODE_NotifiCountUpdate= 29; public static final int CODE_ForgetPassword=30; public static final int CODE_DuplicateProductList =31; public static final int CODE_DeleteDupItem =32; public static final int CODE_OrderAssign =33; public static final int CODE_AddDuplicateProduct =34; public static final int CODE_SellerAddBrand=35; public static final int CODE_UserGetProductItem=36; public static final int CODE_SellerUpdateItemQty=37; public static final int CODE_SellerChangePassword=38; public static final int CODE_UpdateAdminProfile=39; public static final int CODE_UpdateLabourProfile=42; public static final int CODE_getProfileInfo=43; public static final int CODE_createJob=44; public static final int CODE_GetCustomerAllJobs=45; public static final int CODE_GetSingleJob=46; public static final int CODE_GetLabourAllJobs=47; public static final int CODE_CreateBid=48; public static final int CODE_EditBid=49; public static final int CODE_getAllBid=50; public static final int CODE_getSingleBid=51; public static final int CODE_acceptBid=52; public static final int CODE_rejectBid=53; public static final int CODE_GetAllGroups=100; public static final int CODE_GetAllrequest=101; public static final int CODE_MakeRequest = 102; public static final int CODE_GetAllSentrequest=103; public static final int CODE_AcceptRequest=104; public static final int CODE_RejectRequest=105; public static final int CODE_GetConfirmedRequests=106; public static final int CODE_RemoveFromGroupList = 107; public static final int CODE_AddMember = 108; public static final int CODE_GetGroupData=109; public static final int CODE_RemoveMember = 110; public static final int CODE_CancelRequest = 111; public static final int CODE_GetGroupList = 112; public static final int CODE_LeftGroupList = 113; public static final int CODE_GetMyLabourList = 114; public static final int CODE_addOwnMember = 115; public static final int CODE_removeOwnMember = 116; public static final int Code_archiveAcceptBids = 117; public static final int Code_archiveRejectBids = 118; //Constants public static String SP_CURRENT_LAT = "lat"; public static String SP_CURRENT_LONG = "lng"; public static String SP_NEW_LAT = "newLat"; public static String SP_NEW_LONG = "newLng"; public static String SP_DriverStatus = "driverStatus"; public static final String UserID = "userID"; public static final String userType = "user_type"; public static final String KEY_ANIM_TYPE="anim_type"; public static final String KEY_TITLE="anim_title"; public static final String LangId = "langid"; public static int AUTOPLACE_CODE=80; public enum TransitionType{ ExplodeJava,ExplodeXML,SlideJava,SlideXML,FadeJava,FadeXML; } }
[ "mukeshv249@gmail.com" ]
mukeshv249@gmail.com
98e043c88d0d814bc29d75cba458985d72f89bb9
5ffe1d028a3e95dbd836f8984f4d992853bf27aa
/src/main/java/com/naver/reservation/dao/ReservationUserCommentDao.java
e5b4c9792164a3bd902b820a4d96ed3efa55330c
[]
no_license
dhjs2001/news
9fef25e716d60d38fbd7ba273b8134898c669874
29f70353ee0dc2fd93b083730cc981ee3b3d7303
refs/heads/master
2023-08-19T09:22:46.878358
2021-10-14T19:17:11
2021-10-14T19:17:11
417,249,688
0
0
null
null
null
null
UTF-8
Java
false
false
2,172
java
package com.naver.reservation.dao; import static com.naver.reservation.dao.ReservationUserCommentDaoSqls.*; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.sql.DataSource; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import org.springframework.jdbc.core.namedparam.SqlParameterSource; import org.springframework.jdbc.core.simple.SimpleJdbcInsert; import org.springframework.stereotype.Repository; import com.naver.reservation.dto.ReservationUserComment; @Repository public class ReservationUserCommentDao { private NamedParameterJdbcTemplate jdbc; private SimpleJdbcInsert insertAction; private RowMapper<ReservationUserComment> rowMapper = BeanPropertyRowMapper.newInstance(ReservationUserComment.class); public ReservationUserCommentDao(DataSource dataSource) { this.jdbc = new NamedParameterJdbcTemplate(dataSource); this.insertAction = new SimpleJdbcInsert(dataSource).withTableName("product_price") .usingGeneratedKeyColumns("id"); } public List<ReservationUserComment> selectAll(Integer start, Integer limit) { Map<String, Integer> params = new HashMap<>(); params.put("start", start); params.put("limit", limit); return jdbc.query(SELECT, params, rowMapper); } public long insert(ReservationUserComment reservationUserComment) { SqlParameterSource params = new BeanPropertySqlParameterSource(reservationUserComment); return insertAction.executeAndReturnKey(params).longValue(); } public int update(ReservationUserComment reservationUserComment) { SqlParameterSource params = new BeanPropertySqlParameterSource(reservationUserComment); return jdbc.update(UPDATE, params); } public int deleteById(int id) { Map<String, ?> params = Collections.singletonMap("id", id); return jdbc.update(DELETE_BY_ID, params); } public int selectCount() { return jdbc.queryForObject(SELECT_COUNT, Collections.emptyMap(), Integer.class); } }
[ "you@example.com" ]
you@example.com
3320737c1f15e9fa97af074c9ef6a40e627d261e
00b6189dc6b7f22a6d34aeb7f05b3673ec01c394
/core/src/main/java/com/zy/core/common/StatusBarUtil.java
71c58afa8e97da61c06e92b5e30ec718e1378bea
[]
no_license
hahajing0000/baiwei6
fae69e1983d4b1a20661d782b5bc0a1e157fdc6b
0e143f87243f86bb1308d560b55f54b51199ac68
refs/heads/master
2022-11-12T14:05:25.653564
2020-07-07T04:02:04
2020-07-07T04:02:04
273,459,372
0
0
null
null
null
null
UTF-8
Java
false
false
5,820
java
package com.zy.core.common; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Build; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.widget.LinearLayout; import androidx.annotation.ColorInt; import androidx.annotation.IntRange; /** * @author:zhangyue * @date:2020/6/23 */ public class StatusBarUtil { private static final int FAKE_STATUS_BAR_VIEW_ID = 1001; /** * 设置状态栏全透明 * * @param activity 需要设置的activity */ public static void setTransparent(Activity activity) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) { return; } transparentStatusBar(activity); setRootView(activity); } /** * 使状态栏透明 */ @TargetApi(Build.VERSION_CODES.KITKAT) private static void transparentStatusBar(Activity activity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); //需要设置这个flag contentView才能延伸到状态栏 activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); //状态栏覆盖在contentView上面,设置透明使contentView的背景透出来 activity.getWindow().setStatusBarColor(Color.TRANSPARENT); } else { //让contentView延伸到状态栏并且设置状态栏颜色透明 activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); } } /** * 设置根布局参数 */ private static void setRootView(Activity activity) { ViewGroup parent = (ViewGroup) activity.findViewById(android.R.id.content); for (int i = 0, count = parent.getChildCount(); i < count; i++) { View childView = parent.getChildAt(i); if (childView instanceof ViewGroup) { childView.setFitsSystemWindows(true); ((ViewGroup) childView).setClipToPadding(true); } } } /** * 设置状态栏颜色 * * @param activity 需要设置的activity * @param color 状态栏颜色值 * @param statusBarAlpha 状态栏透明度 */ public static void setColor(Activity activity, @ColorInt int color, @IntRange(from = 0, to = 255) int statusBarAlpha) { //5.0以上版本直接设置状态栏颜色透明度 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); activity.getWindow().setStatusBarColor(calculateStatusColor(color, statusBarAlpha)); //4.4-5.0版本通过伪装一个状态栏来设置颜色和透明度 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); ViewGroup decorView = (ViewGroup) activity.getWindow().getDecorView(); View fakeStatusBarView = decorView.findViewById(FAKE_STATUS_BAR_VIEW_ID); if (fakeStatusBarView != null) { if (fakeStatusBarView.getVisibility() == View.GONE) { fakeStatusBarView.setVisibility(View.VISIBLE); } fakeStatusBarView.setBackgroundColor(calculateStatusColor(color, statusBarAlpha)); } else { decorView.addView(createStatusBarView(activity, color, statusBarAlpha)); } setRootView(activity); } } /** * 计算状态栏颜色 * * @param color color值 * @param alpha alpha值 * @return 最终的状态栏颜色 */ private static int calculateStatusColor(@ColorInt int color, int alpha) { if (alpha == 0) { return color; } float a = 1 - alpha / 255f; int red = color >> 16 & 0xff; int green = color >> 8 & 0xff; int blue = color & 0xff; red = (int) (red * a + 0.5); green = (int) (green * a + 0.5); blue = (int) (blue * a + 0.5); return 0xff << 24 | red << 16 | green << 8 | blue; } /** * 生成一个和状态栏大小相同的半透明矩形条 * * @param activity 需要设置的activity * @param color 状态栏颜色值 * @param alpha 透明值 * @return 状态栏矩形条 */ private static View createStatusBarView(Activity activity, @ColorInt int color, int alpha) { // 绘制一个和状态栏一样高的矩形 View statusBarView = new View(activity); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, getStatusBarHeight(activity)); statusBarView.setLayoutParams(params); statusBarView.setBackgroundColor(calculateStatusColor(color, alpha)); statusBarView.setId(FAKE_STATUS_BAR_VIEW_ID); return statusBarView; } /** * 获取状态栏高度 * * @param context context * @return 状态栏高度 */ public static int getStatusBarHeight(Context context) { // 获得状态栏高度 int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android"); return context.getResources().getDimensionPixelSize(resourceId); } }
[ "444511958@qq.com" ]
444511958@qq.com
43c686277d6cdbb4ceaadcd8475267bddfa2037c
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/28/28_a9eb876d51d534fbbd92584318248298f84e6867/PitfallPlayerListener/28_a9eb876d51d534fbbd92584318248298f84e6867_PitfallPlayerListener_t.java
44e2f26957416a07ea97ff19936a2a7bdd76a6d1
[]
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,443
java
package com.bukkit.jason.pitfall; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.player.PlayerListener; import org.bukkit.event.player.PlayerMoveEvent; /** * Handle events for all Player related events * * @author <Your Name> */ public class PitfallPlayerListener extends PlayerListener { private final Pitfall plugin; public PitfallPlayerListener(final Pitfall instance) { plugin = instance; } public void onPlayerMove(PlayerMoveEvent event) { final Player player = event.getPlayer(); final Block b = player.getWorld().getBlockAt(player.getLocation().getBlockX(), player.getLocation().getBlockY() - 2, player.getLocation().getBlockZ()); int botMaterial = b.getTypeId(); if (botMaterial == PitfallSettings.pitItem) { plugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin, new Runnable() { public void run() { try { destroy(player, b); } catch (Exception e) { } } }, 2l); } } //TODO Use better method, exception driven testing is BAAAAD private boolean isInteger( String input ) { try { Integer.parseInt( input ); return true; } catch( Exception e) { return false; } } private boolean inBlackList(int typeId) { for(int i=0;i<PitfallSettings.blackList.length;i++) { if(isInteger(PitfallSettings.blackList[i])&&Integer.parseInt(PitfallSettings.blackList[i])==typeId) { return true; } } return false; } public void destroy(Player player, final Block b) { if (b.getTypeId() != PitfallSettings.pitItem) return; final Block h = player.getWorld().getBlockAt(b.getLocation().getBlockX(), b.getLocation().getBlockY() + 1, b.getLocation().getBlockZ()); final int type = h.getTypeId(); if (!inBlackList(h.getTypeId()) ) { h.setTypeId(0); b.setTypeId(0); plugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin, new Runnable() { public void run() { try { h.setTypeId(type); b.setTypeId(PitfallSettings.pitItem); } catch (Exception e) { } } }, 60l); } destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX() - 1, b.getLocation().getBlockY(), b.getLocation().getBlockZ() - 1)); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX(), b.getLocation().getBlockY(), b.getLocation().getBlockZ() - 1)); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX() + 1, b.getLocation().getBlockY(), b.getLocation().getBlockZ() - 1)); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX() - 1, b.getLocation().getBlockY(), b.getLocation().getBlockZ())); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX() + 1, b.getLocation().getBlockY(), b.getLocation().getBlockZ())); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX() - 1, b.getLocation().getBlockY(), b.getLocation().getBlockZ() + 1)); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX(), b.getLocation().getBlockY(), b.getLocation().getBlockZ() + 1)); destroy(player, player.getWorld().getBlockAt(b.getLocation().getBlockX() + 1, b.getLocation().getBlockY(), b.getLocation().getBlockZ() + 1)); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
91051b68d68a865708da494a2376d188fd66821c
66a8a6c35d1c6067d2a123ef31d321de9c642330
/src/main/java/io/jboot/support/jwt/JwtManager.java
41569de1ba878167e77b7389967d7dc48b04e571
[ "Apache-2.0" ]
permissive
zhangliang0115/jboot
a8480f93761675fb973616c0f9a1fe77a8dc0ae5
579ab72a542e2d0326b3af160fb5076afede94c6
refs/heads/master
2020-05-18T04:45:35.815999
2019-05-14T00:36:11
2019-05-14T00:36:11
184,183,300
0
0
Apache-2.0
2019-05-14T00:36:13
2019-04-30T03:14:34
Java
UTF-8
Java
false
false
3,976
java
/** * Copyright (c) 2015-2019, Michael Yang 杨福海 (fuhai999@gmail.com). * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.jboot.support.jwt; import com.jfinal.json.FastJson; import io.jboot.Jboot; import io.jboot.exception.JbootException; import io.jboot.utils.StrUtil; import io.jsonwebtoken.*; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import javax.xml.bind.DatatypeConverter; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * @author Michael Yang 杨福海 (fuhai999@gmail.com) * @version V1.0 * @Package io.jboot.web.jwt */ public class JwtManager { private static final JwtManager me = new JwtManager(); public static JwtManager me() { return me; } private ThreadLocal<Map> jwtThreadLocal = new ThreadLocal<>(); public void holdJwts(Map map) { jwtThreadLocal.set(map); } public void releaseJwts() { jwtThreadLocal.remove(); } public <T> T getPara(String key) { Map map = jwtThreadLocal.get(); return map == null ? null : (T) map.get(key); } public Map getParas() { return jwtThreadLocal.get(); } public String getHttpHeaderName() { return getConfig().getHttpHeaderName(); } public Map parseJwtToken(String token) { SecretKey secretKey = generalKey(); try { Claims claims = Jwts.parser() .setSigningKey(secretKey) .parseClaimsJws(token).getBody(); String subject = claims.getSubject(); if (StrUtil.isBlank(subject)) { return null; } return FastJson.getJson().parse(subject, HashMap.class); } catch (SignatureException | MalformedJwtException e) { // don't trust the JWT! // jwt 签名错误或解析错误,可能是伪造的,不能相信 } catch (ExpiredJwtException e) { // jwt 已经过期 } catch (Throwable ex) { //其他错误 } return null; } public String createJwtToken(Map map) { if (!getConfig().isConfigOk()) { throw new JbootException("can not create jwt,please config jboot.web.jwt.secret in jboot.properties."); } SecretKey secretKey = generalKey(); SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.HS256; long nowMillis = System.currentTimeMillis(); Date now = new Date(nowMillis); map.put("isuuedAt", nowMillis); String subject = FastJson.getJson().toJson(map); JwtBuilder builder = Jwts.builder() .setIssuedAt(now) .setSubject(subject) .signWith(signatureAlgorithm, secretKey); if (getConfig().getValidityPeriod() > 0) { long expMillis = nowMillis + getConfig().getValidityPeriod(); builder.setExpiration(new Date(expMillis)); } return builder.compact(); } private SecretKey generalKey() { byte[] encodedKey = DatatypeConverter.parseBase64Binary(getConfig().getSecret()); SecretKey key = new SecretKeySpec(encodedKey, 0, encodedKey.length, "AES"); return key; } private JwtConfig config; public JwtConfig getConfig() { if (config == null) { config = Jboot.config(JwtConfig.class); } return config; } }
[ "fuhai999@gmail.com" ]
fuhai999@gmail.com
d7cff27a5b0fe9e0f3349ec923554858fade8ead
3fefdf39a7c3ce50fb15b8e19ac1298baa8bcd89
/src/main/java/com/rabin/facebook/service/SignUpService.java
ff50d6d5614a5e12fd9d1d3af6193719f8081e25
[]
no_license
rabij998/facebook
da48fe11c075dcfdf9a68883c3b0bd1d54d71e31
0900df27cc62dc24e56f6e998b0eb9d079583248
refs/heads/master
2020-12-05T15:36:00.833382
2020-01-06T18:38:11
2020-01-06T18:38:11
232,157,104
0
0
null
null
null
null
UTF-8
Java
false
false
488
java
package com.rabin.facebook.service; import org.springframework.stereotype.Service; import com.rabin.facebook.entity.SignUpEntity; import com.rabin.facebook.repository.SignUpRepository; @Service public class SignUpService { private SignUpRepository signUpRepository; public SignUpEntity getUserByEmail(String email) { return signUpRepository.findByEmail(email); } public SignUpEntity createUser(SignUpEntity signUpEntity) { return signUpRepository.save(signUpEntity); } }
[ "you@example.com" ]
you@example.com
853ae8bc6bd420e850a4dc99cab52a1348d84438
b5c4bcf54aeb2bcb4f6d8b389eb5894a35d34e97
/com/sun/enterprise/web/connector/grizzly/ssl/SSLAsyncStream.java
bfe1a5037b7fba7ea447005ccdccf40a24974439
[]
no_license
mulderbaba/webservices-osgi
d233daf266c12e102a6e7a2b795d8f43c0dbddfb
7090b58bd4cdf5fab4af14d54cb20bb45c074de2
refs/heads/master
2021-06-02T00:34:49.408686
2017-07-27T12:39:42
2017-07-27T12:39:42
98,534,028
2
2
null
2021-02-03T19:27:23
2017-07-27T12:37:43
Java
UTF-8
Java
false
false
4,160
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package com.sun.enterprise.web.connector.grizzly.ssl; import com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.util.logging.Level; import java.util.logging.Logger; import javax.net.ssl.SSLEngine; /** * This class add support for TLS|SSL to a <code>ByteBufferInputStream</code>. * * @author Jean-Francois Arcand */ public class SSLAsyncStream extends ByteBufferInputStream { /** * The SSLEngine to use for unwrapping bytes. */ private SSLEngine sslEngine; /** * The encrypted <code>ByteBuffer</code> */ private ByteBuffer inputBB; /** * Read and decrypt bytes from the underlying SSL connections. All * the SSLEngine operations are delegated to class <code>SSLUtils</code>. */ @Override protected int doRead(){ byteBuffer.compact(); int initialPosition = byteBuffer.position(); int byteRead = 0; while (byteBuffer.position() == initialPosition){ int count = SSLUtils.doRead(key,inputBB,sslEngine,readTimeout); if (count > 0) { byteRead += count; try{ byteBuffer = SSLUtils.unwrapAll(byteBuffer,inputBB,sslEngine); } catch (IOException ex){ Logger logger = SSLSelectorThread.logger(); if ( logger.isLoggable(Level.FINE) ) logger.log(Level.FINE,"SSLUtils.unwrapAll",ex); return -1; } } else if (count == -1 && byteRead == 0) { byteRead = -1; break; } else { break; } } byteBuffer.flip(); return byteRead; } public SSLEngine getSslEngine() { return sslEngine; } public void setSslEngine(SSLEngine sslEngine) { this.sslEngine = sslEngine; } public ByteBuffer getInputBB() { return inputBB; } public void setInputBB(ByteBuffer inputBB) { this.inputBB = inputBB; } }
[ "mert@t2.com.tr" ]
mert@t2.com.tr
bd4fdaa1fc42bf8e0db77a274deed98f66039838
8322e0590b194467ddf8bdca15098beaf3292f98
/src/main/java/net/viperfish/ai/search/deterministic/LocalSearch.java
e0b75dad66c5f7e0d15cd9e98a5c7ef5bc9e92b5
[]
no_license
shilongdai/AIAlgorithms
60a8552b64624a340d16ae0d667c4db539b228d0
cf59905125cb9697431f49991abb0f04ccca5a0c
refs/heads/master
2020-05-29T11:26:11.492356
2019-10-29T02:13:15
2019-10-29T02:13:15
189,116,203
1
0
null
null
null
null
UTF-8
Java
false
false
240
java
package net.viperfish.ai.search.deterministic; import net.viperfish.ai.search.State; public interface LocalSearch { State solve(Iterable<? extends State> initialStates, ObjectiveFunction objectiveFunction, GoalTester goalTester); }
[ "sdai@viperfish.net" ]
sdai@viperfish.net
181d10876444e90b1246793abbc8c654b2a4ac78
b647fa78fd6c4e46bcaf11ab21d9b880e0c83f24
/src/designPatterns/observer/sample/hard/Vacancies.java
64bc23d459d12c6ecf0e068d3b77689011c1a63c
[]
no_license
Garazd/DesignPatterns
88b8f15816dec1346122fe267ba28ceddadda9f8
0df55b69e5791e4a4b45f7b8cec7c0702b40da75
refs/heads/master
2021-01-17T13:43:07.664499
2016-06-24T19:36:34
2016-06-24T19:36:34
36,253,867
2
0
null
null
null
null
UTF-8
Java
false
false
1,295
java
package designPatterns.observer.sample.hard; import java.util.Collection; import java.util.LinkedList; import java.util.List; import java.util.Set; public class Vacancies { private List<Vacancy> list = new LinkedList<Vacancy>(); // метод добавления вакансии в список void add(Vacancy vacancy) { list.add(vacancy); } // а это новый метод копирования списка вакансий Collection<Vacancy> getCopy() { return new LinkedList<Vacancy>(list); } // метод перемещения вакансий в другой список void moveTo(Vacancies vacancies) { vacancies.list.addAll(list); list.clear(); } // метод фильтрации списка вакансий по категориям Vacancies filter(Set<String> technologies) { Vacancies result = new Vacancies(); for (Vacancy vacancy : list) { if (vacancy.check(technologies)) { result.add(vacancy); } } return result; } // а есть у нас вообще что-то? boolean isEmpty() { return list.isEmpty(); } }
[ "GarazdVZ@gmail.com" ]
GarazdVZ@gmail.com
bc97496497f403779f886e604c117a02a32f53a5
018c616e7b40a8fab36a00e0c78a219ef314243d
/src/main/java/com/frostwire/jlibtorrent/alerts/SocketType.java
7de27a2b9d14d4ead8917abfedee5adbec9b16e0
[ "MIT" ]
permissive
AndroidTorrent/frostwire-jlibtorrent
5726ec265a274ab9f14285b2a352c88865544279
98f269a4667477d00b2506c5a9a524cd750e583e
refs/heads/master
2021-01-20T05:10:34.216721
2017-04-26T13:17:48
2017-04-26T13:17:48
89,758,271
3
0
null
2017-04-29T02:15:42
2017-04-29T02:15:42
null
UTF-8
Java
false
false
1,127
java
package com.frostwire.jlibtorrent.alerts; import com.frostwire.jlibtorrent.swig.socket_type_t; /** * */ public enum SocketType { /** * */ TCP(socket_type_t.tcp.swigValue()), /** * */ TCP_SSL(socket_type_t.tcp_ssl.swigValue()), /** * */ UDP(socket_type_t.udp.swigValue()), /** * */ I2P(socket_type_t.i2p.swigValue()), /** * */ SOCKS5(socket_type_t.socks5.swigValue()), /** * */ UTP_SSL(socket_type_t.utp_ssl.swigValue()), /** * */ UNKNOWN(-1); SocketType(int swigValue) { this.swigValue = swigValue; } private final int swigValue; /** * @return */ public int swig() { return swigValue; } /** * @param swigValue * @return */ public static SocketType fromSwig(int swigValue) { SocketType[] enumValues = SocketType.class.getEnumConstants(); for (SocketType ev : enumValues) { if (ev.swig() == swigValue) { return ev; } } return UNKNOWN; } }
[ "aldenml@gmail.com" ]
aldenml@gmail.com
44af3865969c3ee6de7a029d4400c2167a3edbb0
79e2e3347aaaac76f771beebdf4a50bcb9804e9f
/app/src/main/java/com/windmillsteward/jukutech/base/baseadapter/util/MultiTypeDelegate.java
b32b722bea83290e83ad937d5bce2f044d96e26e
[]
no_license
inyuo/shunfengche
2b3d5ecda7703c8414ad483326a8c05998b4201d
a8c2668f43db962b9b0def531c3fe87cc1f0119d
refs/heads/master
2020-07-13T13:26:44.196536
2019-08-06T07:43:38
2019-08-06T07:43:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,457
java
package com.windmillsteward.jukutech.base.baseadapter.util; import android.support.annotation.LayoutRes; import android.util.SparseIntArray; import java.util.List; import static com.windmillsteward.jukutech.base.baseadapter.BaseMultiItemQuickAdapter.TYPE_NOT_FOUND; /** * help you to achieve multi type easily * <p> * Created by tysheng * Date: 2017/4/6 08:41. * Email: tyshengsx@gmail.com * <p> * <p> * more information: https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/968 */ public abstract class MultiTypeDelegate<T> { private static final int DEFAULT_VIEW_TYPE = -0xff; private SparseIntArray layouts; private boolean autoMode, selfMode; public MultiTypeDelegate(SparseIntArray layouts) { this.layouts = layouts; } public MultiTypeDelegate() { } public final int getDefItemViewType(List<T> data, int position) { T item = data.get(position); return item != null ? getItemType(item) : DEFAULT_VIEW_TYPE; } /** * get the item type from specific entity. * * @param t entity * @return item type */ protected abstract int getItemType(T t); public final int getLayoutId(int viewType) { return this.layouts.get(viewType, TYPE_NOT_FOUND); } private void addItemType(int type, @LayoutRes int layoutResId) { if (this.layouts == null) { this.layouts = new SparseIntArray(); } this.layouts.put(type, layoutResId); } /** * auto increase type vale, start from 0. * * @param layoutResIds layout id arrays * @return MultiTypeDelegate */ public MultiTypeDelegate registerItemTypeAutoIncrease(@LayoutRes int... layoutResIds) { autoMode = true; checkMode(selfMode); for (int i = 0; i < layoutResIds.length; i++) { addItemType(i, layoutResIds[i]); } return this; } /** * set your own type one by one. * * @param type type value * @param layoutResId layout id * @return MultiTypeDelegate */ public MultiTypeDelegate registerItemType(int type, @LayoutRes int layoutResId) { selfMode = true; checkMode(autoMode); addItemType(type, layoutResId); return this; } private void checkMode(boolean mode) { if (mode) { throw new RuntimeException("Don't mess two register mode"); } } }
[ "mxnzp_life@163.com" ]
mxnzp_life@163.com
37cd6b386f91d23cfe7743fc2d7165ec1f99b899
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project75/src/main/java/org/gradle/test/performance75_2/Production75_117.java
4532c9464ea03aeec77e95d9c92b2227778ef15d
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance75_2; public class Production75_117 extends org.gradle.test.performance16_2.Production16_117 { private final String property; public Production75_117() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
25814e84bfa32ef24e40d1feed72dcc45ff04df1
8dca26a7ec10ede4cec1ceaed606d870278a1ae5
/iot_spring2/src/main/java/com/iot/spring/vo/ColumnVO.java
9c1f537474e758b026d8e221cf81a80c8bb4ab84
[]
no_license
thingki/iot_spring2
61cdfca91cd649773dd7c9af8af92130c3bbd5a9
4e6deef1447d59c6319d6b1619ae8ef8fb81590c
refs/heads/master
2021-04-30T02:08:38.618617
2018-03-12T06:18:45
2018-03-12T06:18:45
121,494,975
0
0
null
null
null
null
UTF-8
Java
false
false
1,029
java
package com.iot.spring.vo; public class ColumnVO { private String id; private String columnName; private String dataType; private double maxLength; private String isNull; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getColumnName() { return columnName; } public void setColumnName(String columnName) { this.columnName = columnName; } public String getDataType() { return dataType; } public void setDataType(String dataType) { this.dataType = dataType; } public double getMaxLength() { return maxLength; } public void setMaxLength(double maxLength) { this.maxLength = maxLength; } public String getIsNull() { return isNull; } public void setIsNull(String isNull) { this.isNull = isNull; } @Override public String toString() { return "ColumnVO [id=" + id + ", columnName=" + columnName + ", dataType=" + dataType + ", maxLength=" + maxLength + ", isNull=" + isNull + "]"; } }
[ "DJA@DJA-PC" ]
DJA@DJA-PC
9c2bca7b27bb9056898c56c0c72d4b58115296f3
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13708-4-17-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/internal/event/AttachmentEventGeneratorListener_ESTest_scaffolding.java
24fa612822474176a4730da8fc7808fb14fdf5ad
[]
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
465
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Apr 05 21:23:57 UTC 2020 */ package com.xpn.xwiki.internal.event; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class AttachmentEventGeneratorListener_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
cdad2a2b72cddb30825175fae453ed2faeec9eb6
5449acb6bd43a68e1f31574e49fc718d024a5efa
/src/main/java/fossilsarcheology/server/compat/jei/culture/RecipeCultivate.java
6732d3a8feb3e7fe73b329503888af2d78f80465
[ "LicenseRef-scancode-unknown-license-reference", "CC-BY-4.0" ]
permissive
aglarcz/FossilsArcheologyRevival
5dd3c7c9235d5cd6b6de1c9d675f787eba436893
238dba19406667865371c736bf83ce6bdc9c85dc
refs/heads/1.7.10
2023-03-17T11:37:09.080394
2019-02-11T05:20:43
2019-02-11T05:20:43
65,147,323
0
0
null
2016-08-07T18:13:19
2016-08-07T18:13:19
null
UTF-8
Java
false
false
572
java
package fossilsarcheology.server.compat.jei.culture; import net.minecraft.item.ItemStack; public class RecipeCultivate { private ItemStack input; private ItemStack output; private ItemStack fuel; public RecipeCultivate(ItemStack input, ItemStack output, ItemStack fuel){ this.input = input; this.output = output; this.fuel = fuel; } public ItemStack getInput() { return input; } public ItemStack getOutput() { return output; } public ItemStack getFuel() { return fuel; } }
[ "alex.rowlands@cox.net" ]
alex.rowlands@cox.net
50a11b9146c99e2318a3c5f2a2e80c08e0aa9433
a6478b9ed0b37baf20f6ca254c899a94ad8930e4
/_src/Zomato/app/src/main/java/com/androcid/zomato/activity/collection/CollectionActivity.java
f1a6188e684c77a755d3aa16fe1756ba68890954
[ "MIT", "Apache-2.0" ]
permissive
paullewallencom/android-978-1-7864-6895-6
30f9e2f4d3633097da736715ae34b11d4a729a37
c1746f95678a1cff1a5d1462c467748648bbbff8
refs/heads/main
2023-02-07T01:03:52.768939
2020-12-28T20:37:59
2020-12-28T20:37:59
319,431,044
0
0
null
null
null
null
UTF-8
Java
false
false
2,515
java
package com.androcid.zomato.activity.collection; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import com.androcid.zomato.R; import com.androcid.zomato.activity.base.HomeBaseActivity; import com.androcid.zomato.view.fragment.collection.FollowingCollectionFragment; import com.androcid.zomato.view.fragment.collection.MyCollectionFragment; import com.androcid.zomato.view.fragment.collection.SavedCollectionFragment; import com.androcid.zomato.view.fragment.collection.SuggestedCollectionFragment; import com.androcid.zomato.view.pageradapter.ViewPagerAdapter; /** * */ public class CollectionActivity extends HomeBaseActivity { private static final String TAG = CollectionActivity.class.getSimpleName(); ViewPager viewPager; private Context context = CollectionActivity.this; public static Intent getCallIntent(Context context) { Intent intent = new Intent(context, CollectionActivity.class); return intent; } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_collection); viewPager = (ViewPager) findViewById(R.id.viewpager); setupViewPager(viewPager); TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs); tabLayout.setupWithViewPager(viewPager); tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() { @Override public void onTabSelected(TabLayout.Tab tab) { viewPager.setCurrentItem(tab.getPosition()); } @Override public void onTabUnselected(TabLayout.Tab tab) { } @Override public void onTabReselected(TabLayout.Tab tab) { } }); } private void setupViewPager(ViewPager viewPager) { ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager()); adapter.addFrag(new SuggestedCollectionFragment(), "HANDPICKED"); adapter.addFrag(new SavedCollectionFragment(), "SAVED"); adapter.addFrag(new FollowingCollectionFragment(), "FOLLOWING"); adapter.addFrag(new MyCollectionFragment(), "MINE"); viewPager.setAdapter(adapter); } @Override protected void onResume() { super.onResume(); initialiseBottomView(SCREEN_COLLECTION); } }
[ "paullewallencom@users.noreply.github.com" ]
paullewallencom@users.noreply.github.com
c6cc71e4205e87af316f168822d98bba7f4aa57b
62e6a51374722b8d873e08387ceaa9a76aec8c86
/zdal-test/src/test/java/com/alipay/zdal/test/ut/sqlparser/oracle/OracleSelectTest24.java
96b15d1122d1ac28e52033f7c73cc17e08df8b09
[]
no_license
shuxc/zdal
4a93d3ced06aee31d8841b709982fb2b222132d8
3bed2d4aa3efa5be3d19177a22b5825f98dbc4c4
refs/heads/master
2022-07-09T05:04:16.082510
2019-08-29T05:56:03
2019-08-29T05:56:03
205,068,306
0
0
null
2020-07-02T00:25:50
2019-08-29T02:58:05
Java
UTF-8
Java
false
false
2,680
java
package com.alipay.zdal.test.ut.sqlparser.oracle; import java.util.List; import org.junit.Test; import junit.framework.Assert; import com.alipay.zdal.parser.sql.ast.SQLStatement; import com.alipay.zdal.parser.sql.dialect.oracle.parser.OracleStatementParser; import com.alipay.zdal.parser.sql.dialect.oracle.visitor.OracleSchemaStatVisitor; import com.alipay.zdal.parser.sql.stat.TableStat; public class OracleSelectTest24 { @Test public void test_0() throws Exception { String sql = // "select /*+ no_parallel_index(t, \"HT_TASK_TRADE_HIS_GOR_IND \") dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring no_expand index_ffs(t, \"HT_TASK_TRADE_HIS_GOR_IND \") */ count(*) as nrw,count(distinct sys_op_lbid(196675,'L',t.rowid)) as nlb,count(distinct hextoraw(sys_op_descend( \"GMT_MODIFIED \")||sys_op_descend( \"OWNER \")||sys_op_descend( \"RECORD_TYPE \"))) as ndk,sys_op_countchg(substrb(t.rowid,1,15),1) as clf from \"ESCROW \". \"HT_TASK_TRADE_HISTORY \" sample block ( 34.6426417370,1) t where \"GMT_MODIFIED \" is not null or \"OWNER \" is not null or \"RECORD_TYPE \" is not null"; // OracleStatementParser parser = new OracleStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); SQLStatement statemen = statementList.get(0); Assert.assertEquals(1, statementList.size()); OracleSchemaStatVisitor visitor = new OracleSchemaStatVisitor(); statemen.accept(visitor); System.out.println("Tables : " + visitor.getTables()); System.out.println("fields : " + visitor.getColumns()); System.out.println("alias : " + visitor.getAliasMap()); System.out.println("conditions : " + visitor.getConditions()); System.out.println("orderBy : " + visitor.getOrderByColumns()); System.out.println("groupBy : " + visitor.getGroupByColumns()); System.out.println("variant : " + visitor.getVariants()); System.out.println("relationShip : " + visitor.getRelationships()); Assert.assertEquals(1, visitor.getTables().size()); Assert.assertTrue(visitor.getTables().containsKey( new TableStat.Name("ESCROW.HT_TASK_TRADE_HISTORY"))); Assert.assertEquals(5, visitor.getColumns().size()); Assert.assertTrue(visitor.getColumns().contains( new TableStat.Column("ESCROW.HT_TASK_TRADE_HISTORY", "*"))); // Assert.assertTrue(visitor.getColumns().contains(new TableStat.Column("pivot_table", "YEAR"))); // Assert.assertTrue(visitor.getColumns().contains(new TableStat.Column("pivot_table", "order_mode"))); } }
[ "shuxc_dev@163.com" ]
shuxc_dev@163.com
316282bbcef75310548cfbab42f206403e42c7eb
594b516e73ccaf35933f9f01e075cc9e80cab54b
/provider/src/main/java/com/vilderlee/provider/web/SystemEnviorment.java
6d2f7525f694273af50827dbc303b779107a1f9e
[]
no_license
vilderlee/dubbo-application
077fb4510d35b3333a3a215160236b34113bfec4
084ec18d755ffd9e34c86aeb7e93ef07d607ecfe
refs/heads/master
2022-06-25T13:14:22.737759
2019-11-24T05:35:19
2019-11-24T05:35:19
223,697,638
0
0
null
2022-06-17T02:39:18
2019-11-24T05:35:10
Java
UTF-8
Java
false
false
198
java
package com.vilderlee.provider.web; /** * 功能描述: * * @package com.vilderlee.provider.web * @auther vilderlee * @date 2019/11/23 7:50 下午 */ public final class SystemEnviorment { }
[ "1010434086@qq.com" ]
1010434086@qq.com
c0648945f2651a9399a474eb9dbbb793064609fd
cb484fd3f9767ff48af849cc8fa1511e787fe16c
/src/main/java/com/ternnetwork/baseframework/util/PropUtils.java
d3b29937c04fcd27f957d8a4f9d15691a2868cfa
[]
no_license
cnywb/ocms
ee84439390d7f5c2d6d83e09fc81ab6d48e0ca6a
31f65b0b1b14f2b709007705313cec259bf6b823
refs/heads/master
2020-04-08T02:26:24.952193
2018-11-24T13:20:48
2018-11-24T13:20:48
158,935,851
0
0
null
null
null
null
UTF-8
Java
false
false
1,959
java
package com.ternnetwork.baseframework.util; import java.io.IOException; import java.io.InputStream; import java.text.MessageFormat; import java.util.Properties; public class PropUtils { /** true if the Properties has been initialized. */ private static String DEFAULT_PATH = "imgScaling.properties"; private static Properties properties = null; private PropUtils() { } private static synchronized void initialize(String prop) { // We flag as initialized right away because if anything goes wrong // We still consider it initialized. TODO Is this OK? InputStream is = Thread.currentThread().getContextClassLoader() .getResourceAsStream(prop); if (is == null) { return; } properties = new Properties(); try { properties.load(is); } catch (IOException e) { throw new RuntimeException(e); }finally{ try{ if(is!=null) is.close(); }catch(Exception ex){ throw new RuntimeException(ex); } } } public static synchronized Properties getProperties(String prop) throws RuntimeException { initialize(prop); return properties; } public static String getFormatString(String value, Object[] params) { if (params != null) { MessageFormat mf = new MessageFormat(value); value = mf.format(params); } return value; } public static synchronized String getPropertyValue(String key){ Properties prop = getProperties(DEFAULT_PATH); return prop.getProperty(key); } public static synchronized String getPropertyValue(String fileName,String key){ Properties prop = getProperties(fileName); return prop.getProperty(key); } }
[ "cn_ywb@163.com" ]
cn_ywb@163.com
424560379f9744283ab92bd07ad25eac31338df4
c1bbb030862c00bd8f4cce851bca9919a3486da8
/androidWidget/src/com/kerkr/edu/textView/VerticalScrollTextView.java
0226c46acb030ba8b950e434b8ff7756be51c004
[]
no_license
caocf/androidBaseLib
19c8a2032d527b92e66fd7a3da55d0694854d282
4ec7398f113cf2bd3d2ace9032d825b6c3165cd9
refs/heads/master
2020-02-26T17:12:54.865258
2015-07-17T09:35:05
2015-07-17T09:35:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,833
java
package com.kerkr.edu.textView; import java.util.List; import android.content.Context; import android.graphics.Paint; import android.os.Handler; import android.util.AttributeSet; import android.util.TypedValue; import android.view.View; import android.view.animation.Animation; import android.view.animation.TranslateAnimation; import android.widget.TextView; import com.kerkr.edu.design.DensityUtil; import com.kerkr.edu.dto.UMengPush; import com.kerkr.edu.utill.CollectionUtils; import com.nineoldandroids.animation.Animator; import com.nineoldandroids.animation.ObjectAnimator; /** * @author xushilin * */ public class VerticalScrollTextView extends TextView { private static final int DY = 40; // 每一行的间隔 public int index = 0; public float mTouchHistoryY; // private Activity mActivity; float pixelSize = 0; Handler mHandler = new Handler(); private float mX; private Paint mPathPaint; private List<UMengPush> list; private int mY; private float middleY;// y轴中间 private Context mContext; private volatile boolean isRun = true; private ObjectAnimator animator; Runnable mUpdateResults = new Runnable() { public void run() { if (list == null) { setText("暂时没有通知公告"); isRun = false; } else { if (index<list.size ()&&list.get(index) != null && list.get(index).text != null) { excuteAnimation(list.get(index).text); } if (list.size() == 1) { isRun = false; } } } }; private Thread t; private int showNumber = 0; public VerticalScrollTextView(Context context) { super(context); mContext = context; // init(); } private synchronized void excuteAnimation(final String text) { animator=ObjectAnimator.ofFloat (VerticalScrollTextView.this, "translationY", 0, -getHeight ()); animator.setDuration (200); animator.removeAllListeners (); animator.addListener(new Animator.AnimatorListener() { @Override public void onAnimationStart(Animator animator) { } @Override public void onAnimationEnd(Animator animator) { setText (text); ObjectAnimator.ofFloat (VerticalScrollTextView.this, "translationY", getHeight (),0).setDuration(200).start (); } @Override public void onAnimationCancel(Animator animator) { } @Override public void onAnimationRepeat(Animator animator) { } }); animator.start(); } // private void init() { // setFocusable(true); // if(list==null||list.size ()==0){ // list=new ArrayList<UMengPush>(); // UMengPush sen=new UMengPush (0,"暂时没有通知公告"); // list.add(0, sen); // } // // // 高亮部分 当前歌词 // mPathPaint = new Paint(); // mPathPaint.setAntiAlias(true); // mPathPaint.setColor(getResources ().getColor (R.color._3f3f3f)); // setRawTextSize(16); //// mPathPaint.setTextSize(32); // mPathPaint.setTypeface(Typeface.SANS_SERIF); // } // protected void onDraw(Canvas canvas) { // super.onDraw(canvas); // canvas.drawColor(0xEFeffff); //// Paint p = mPaint; // Paint p2 = mPathPaint; //// p.setTextAlign(Paint.Align.CENTER); // if (index == -1) // return; // p2.setTextAlign(Paint.Align.CENTER); // // 先画当前行,之后再画他的前面和后面,这样就保持当前行在中间的位置 // if (list.get (index)!=null&&list.get(index).text!=null) // { // canvas.drawText(list.get(index).text, mX, middleY+pixelSize/2, p2); // } // //// float tempY = middleY; // // 画出本句之前的句子 //// for (int i = index - 1; i >= 0; i--) { //// tempY = tempY - DY; //// if (tempY < 0) { //// break; //// } //// canvas.drawText(list.get(i).getName(), mX, tempY, p); //// } //// tempY = middleY; //// // 画出本句之后的句子 //// for (int i = index + 1; i < list.size(); i++) { //// // 往下推移 //// tempY = tempY + DY; //// if (tempY > mY) { //// break; //// } //// canvas.drawText(list.get(i).getName(), mX, tempY, p); //// } // } // protected void onSizeChanged(int w, int h, int ow, int oh) { // super.onSizeChanged(w, h, ow, oh); // mX = w * 0.5f; // mY = h; // middleY = h * 0.5f; // } public VerticalScrollTextView(Context context, AttributeSet attr) { super(context, attr); mContext = context; // init(); } public VerticalScrollTextView(Context context, AttributeSet attr, int i) { super(context, attr, i); mContext = context; // init(); } public long updateIndex(int index) { if (index == -1 || list == null) return -1; if (index > list.size() - 1) { index = list.size() - 1; } if (index < 0) { index = 0; } this.index = index; return index; } public List<UMengPush> getList() { return list; } public void setList(List<UMengPush> list) { if (CollectionUtils.isValid(list)) { this.list = list; } } public void updateUI() { if (t == null) { t = new Thread(new updateThread()); t.start(); } isRun = true; } private void setRawTextSize(float size) { pixelSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, size, DensityUtil.getDeviceDisplay(mContext)); if (pixelSize != mPathPaint.getTextSize()) { mPathPaint.setTextSize(pixelSize); } } class updateThread implements Runnable { long time = 3000; // 开始 的时间,不能为零,否则前面几句歌词没有显示出来 public void run() { while (true) { long sleeptime = updateIndex(showNumber); mHandler.post(mUpdateResults); if (sleeptime == -1) return; try { Thread.sleep(time); showNumber++; if (showNumber >= getList().size()) showNumber = 0; } catch (InterruptedException e) { e.printStackTrace(); } } } } }
[ "ytjojo@163.com" ]
ytjojo@163.com
079e019459b11f2c5cf29cd93d0a2c07c9bcd922
ff3fea7bfe9f0b6d6ebb5ae4d8c85c2e878c6cf8
/fundamentals/src/Arrays/EqualArrays2.java
af18cf5e8a5ca461f5df47e3c557947792d8f1a3
[]
no_license
KrisBiserovKrumov/ProgramicBasic
704cf3dcbe366872edbe549b1be59dd5e96c605a
7ff4a714206c91e978054d286dc15b0367d4a5c9
refs/heads/master
2023-08-01T05:14:39.480605
2021-09-16T10:49:45
2021-09-16T10:49:45
407,126,411
0
0
null
null
null
null
UTF-8
Java
false
false
1,311
java
package Arrays; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class EqualArrays2 { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] firstLine = reader.readLine().split(" "); String[] secondLine = reader.readLine().split(" "); int[] firstlinee = new int[firstLine.length]; int[] secondlinee = new int[secondLine.length]; int sum = 0; boolean isDiferent = false; for (int i = 0; i < firstLine.length; i++) { firstlinee[i] = Integer.parseInt(firstLine[i]); } for (int i = 0; i < secondLine.length; i++) { secondlinee[i] = Integer.parseInt(secondLine[i]); } for (int i = 0; i < firstlinee.length; i++) { if (firstlinee[i] == secondlinee[i]){ sum += firstlinee[i]; }else { System.out.printf("Arrays not identical. Found difference at %d index", i); isDiferent = true; break; } } if (!isDiferent) { System.out.println("Arrays identical. Sum : " + sum); } } }
[ "79319583+KrisBiserovKrumov@users.noreply.github.com" ]
79319583+KrisBiserovKrumov@users.noreply.github.com
a5b0f7c4f468102b11160dc1595e75c21efdc33b
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/webview/ui/tools/game/e.java
9eae4d97c120a392ccd61c14c4343de3bd792d7d
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
2,811
java
package com.tencent.mm.plugin.webview.ui.tools.game; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.sdk.platformtools.ab; import com.tencent.mm.sdk.platformtools.bo; import java.util.Collections; import java.util.HashMap; import java.util.Map; public final class e { private static final Map<Integer, Map<Integer, Object>> uDt; static { AppMethodBeat.i(8701); uDt = new HashMap(); AppMethodBeat.o(8701); } public static String aI(Map<Integer, Object> paramMap) { AppMethodBeat.i(8700); if ((paramMap == null) || (paramMap.isEmpty())) { paramMap = ""; AppMethodBeat.o(8700); } while (true) { return paramMap; int i = ((Integer)Collections.max(paramMap.keySet())).intValue(); int j = ((Integer)Collections.min(paramMap.keySet())).intValue(); i = Math.min(i, 200); StringBuffer localStringBuffer = new StringBuffer(); while (j <= i) { Object localObject = paramMap.get(Integer.valueOf(j)); if (localObject != null) localStringBuffer.append(localObject); localStringBuffer.append(","); j++; } if (localStringBuffer.length() > 0) localStringBuffer.deleteCharAt(localStringBuffer.length() - 1); paramMap = localStringBuffer.toString(); AppMethodBeat.o(8700); } } public static void agf(String paramString) { AppMethodBeat.i(8699); if (bo.isNullOrNil(paramString)) AppMethodBeat.o(8699); while (true) { return; paramString = (Map)uDt.remove(Integer.valueOf(paramString.hashCode())); if ((paramString == null) || (paramString.isEmpty())) { AppMethodBeat.o(8699); } else { boolean bool = ((Boolean)paramString.remove(Integer.valueOf(e.b.uDE))).booleanValue(); paramString = aI(paramString); ab.i("MicroMsg.GameWebReport", "report web performance. isReportNow: %b, reportData: [%s]", new Object[] { Boolean.valueOf(bool), paramString }); h.pYm.a(16142, paramString, bool, false); AppMethodBeat.o(8699); } } } public static void x(String paramString, Map<Integer, Object> paramMap) { AppMethodBeat.i(8698); if (bo.isNullOrNil(paramString)) AppMethodBeat.o(8698); while (true) { return; uDt.put(Integer.valueOf(paramString.hashCode()), paramMap); AppMethodBeat.o(8698); } } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes7-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.webview.ui.tools.game.e * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
7910c1b607134daf12a95652bc8e8c5724e18102
d0536669bb37019e766766461032003ad045665b
/jdk1.4.2_src/javax/imageio/event/IIOWriteProgressListener.java
0c2bd2f86592e25056736d127c49cc01b5263785
[]
no_license
eagle518/jdk-source-code
c0d60f0762bce0221c7eeb1654aa1a53a3877313
91b771140de051fb843af246ab826dd6ff688fe3
refs/heads/master
2021-01-18T19:51:07.988541
2010-09-09T06:36:02
2010-09-09T06:36:02
38,047,470
11
23
null
null
null
null
UTF-8
Java
false
false
4,690
java
/* * @(#)IIOWriteProgressListener.java 1.17 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package javax.imageio.event; import java.util.EventListener; import javax.imageio.ImageWriter; /** * An interface used by <code>ImageWriter</code> implementations to notify * callers of their image writing methods of progress. * * @see javax.imageio.ImageWriter#write * * @version 0.5 */ public interface IIOWriteProgressListener extends EventListener { /** * Reports that an image write operation is beginning. All * <code>ImageWriter</code> implementations are required to call * this method exactly once when beginning an image write * operation. * * @param source the <code>ImageWriter</code> object calling this * method. * @param imageIndex the index of the image being written within * its containing input file or stream. */ void imageStarted(ImageWriter source, int imageIndex); /** * Reports the approximate degree of completion of the current * <code>write</code> call within the associated * <code>ImageWriter</code>. * * <p> The degree of completion is expressed as an index * indicating which image is being written, and a percentage * varying from <code>0.0F</code> to <code>100.0F</code> * indicating how much of the current image has been output. The * percentage should ideally be calculated in terms of the * remaining time to completion, but it is usually more practical * to use a more well-defined metric such as pixels decoded or * portion of input stream consumed. In any case, a sequence of * calls to this method during a given read operation should * supply a monotonically increasing sequence of percentage * values. It is not necessary to supply the exact values * <code>0</code> and <code>100</code>, as these may be inferred * by the callee from other methods. * * <p> Each particular <code>ImageWriter</code> implementation may * call this method at whatever frequency it desires. A rule of * thumb is to call it around each 5 percent mark. * * @param source the <code>ImageWriter</code> object calling this method. * @param percentageDone the approximate percentage of decoding that * has been completed. */ void imageProgress(ImageWriter source, float percentageDone); /** * Reports that the image write operation has completed. All * <code>ImageWriter</code> implementations are required to call * this method exactly once upon completion of each image write * operation. * * @param source the <code>ImageWriter</code> object calling this method. */ void imageComplete(ImageWriter source); /** * Reports that a thumbnail write operation is beginning. All * <code>ImageWriter</code> implementations are required to call * this method exactly once when beginning a thumbnail write * operation. * * @param source the <code>ImageWrite</code> object calling this method. * @param imageIndex the index of the image being written within its * containing input file or stream. * @param thumbnailIndex the index of the thumbnail being written. */ void thumbnailStarted(ImageWriter source, int imageIndex, int thumbnailIndex); /** * Reports the approximate degree of completion of the current * thumbnail write within the associated <code>ImageWriter</code>. * The semantics are identical to those of * <code>imageProgress</code>. * * @param source the <code>ImageWriter</code> object calling this * method. * @param percentageDone the approximate percentage of decoding that * has been completed. */ void thumbnailProgress(ImageWriter source, float percentageDone); /** * Reports that a thumbnail write operation has completed. All * <code>ImageWriter</code> implementations are required to call * this method exactly once upon completion of each thumbnail * write operation. * * @param source the <code>ImageWriter</code> object calling this * method. */ void thumbnailComplete(ImageWriter source); /** * Reports that a write has been aborted via the writer's * <code>abort</code> method. No further notifications will be * given. * * @param source the <code>ImageWriter</code> object calling this * method. */ void writeAborted(ImageWriter source); }
[ "kzhaicn@e8197d6f-d431-fb3f-3203-916d138821fd" ]
kzhaicn@e8197d6f-d431-fb3f-3203-916d138821fd
6f72ae3c4dec39fec81864bc8ef2fea9c8d9f629
8d2ecb3cba702d505c77318007b1a096ec6057a3
/aCis_gameserver/java/net/sf/l2j/gameserver/masteriopack/rankpvpsystem/RankPvpSystemPc.java
69f82b05b5e2db978f147c75c43e5cf3a2d3c410
[]
no_license
thevinou/ProjectL
b054ce30311f4a89c0ec93d4cbf86717b229cfaf
f0dfb9298b6ae1d0f00bd9b249120f90cbfc1c83
refs/heads/master
2016-09-05T17:25:29.161384
2015-01-30T08:52:57
2015-01-30T08:52:57
29,908,866
1
0
null
null
null
null
UTF-8
Java
false
false
2,353
java
package net.sf.l2j.gameserver.masteriopack.rankpvpsystem; import net.sf.l2j.gameserver.ThreadPoolManager; import net.sf.l2j.gameserver.model.actor.L2Character; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * Class used in L2PcInstance. Contains some system variables used in game. * From Killer side. * @author Masterio */ public class RankPvpSystemPc { private RankPvpSystemDeathStatus _deathStatus = null; private RankPvpSystemComboKill _comboKill = null; private L2PcInstance _target = null; public void runPvpTask(L2PcInstance player, L2Character target) { if(RankPvpSystemConfig.RANK_PVP_SYSTEM_ENABLED) { if(player != null && target != null && target instanceof L2PcInstance) { // set Victim handler for Killer //setTarget((L2PcInstance)target); // [not required] // set Killer handler for Victim ((L2PcInstance)target).getRankPvpSystemPc().setTarget(player); ThreadPoolManager.getInstance().executeTask(new RankPvpSystemPvpTask(player, (L2PcInstance)target)); } } } public class RankPvpSystemPvpTask implements Runnable { private L2PcInstance _killer = null; private L2PcInstance _victim = null; public RankPvpSystemPvpTask(L2PcInstance killer, L2PcInstance victim) { _killer = killer; _victim = victim; } @Override public void run() { RankPvpSystem rps = new RankPvpSystem(_killer, _victim); rps.doPvp(); } } public RankPvpSystemDeathStatus getDeathStatus() { return _deathStatus; } public boolean isDeathStatusActive() { if(_deathStatus == null) return false; return true; } public void setDeathStatus(RankPvpSystemDeathStatus deathStatus) { _deathStatus = deathStatus; } public RankPvpSystemComboKill getComboKill() { return _comboKill; } public boolean isComboKillActive() { if(_comboKill == null) return false; return true; } public void setComboKill(RankPvpSystemComboKill comboKill) { _comboKill = comboKill; } /** * The player's Target. * @return */ public L2PcInstance getTarget() { return _target; } /** * The player's Target. * @param target */ public void setTarget(L2PcInstance target) { _target = target; } }
[ "thevinou@gmail.com" ]
thevinou@gmail.com
12e7341224f9adde4916475c0ff831909974d565
6ede5ae9be30daf07df4f6eab34b034e228e1ae4
/Struts 2 Code/Lesson 6/struts2/src/com/shengsiyuan/i18n/I18NTest2.java
86808c5e15e7b4589fc4b4ef42f12a2be3e47202
[]
no_license
salingers/Struts
959b8329098b871a6f7c38f88e7344bfcc8d2ae0
8d176de383eef8179dbbc3809d9a25b0a279a836
refs/heads/master
2021-01-13T09:28:45.030419
2016-11-01T03:39:11
2016-11-01T03:41:08
72,090,138
0
0
null
null
null
null
UTF-8
Java
false
false
370
java
package com.shengsiyuan.i18n; import java.util.Locale; import java.util.ResourceBundle; public class I18NTest2 { public static void main(String[] args) { System.out.println(Locale.getDefault()); ResourceBundle bundle = ResourceBundle.getBundle("shengsiyuan", Locale.FRANCE); String value = bundle.getString("hello"); System.out.println(value); } }
[ "salingersms@msn.com" ]
salingersms@msn.com
a14e38b406509367bcaed194901f81102a42c3c2
e37de6db1d0f1ca70f48ffc5eafc6e43744bc980
/ba/fly-component-ss/src/main/java/com/flywet/platform/bi/component/ss/model/style/ICellStyle.java
5053edbe5d9c6e3741edca8e8d64b8134a6a9716
[]
no_license
cnopens/BA
8490e6e83210343a35bb1e5a6769209a16557e3f
ba58acf949af1249cc637ccf50702bb28462d8ad
refs/heads/master
2021-01-20T16:38:38.479034
2014-11-13T00:44:00
2014-11-13T00:44:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
293
java
package com.flywet.platform.bi.component.ss.model.style; import com.flywet.platform.bi.component.ss.model.ISpreadSheetMeta; public interface ICellStyle extends ISpreadSheetMeta { public ICellFontStyle getFont(); public ICellAlignStyle getAlign(); public ICellLinesStyle getLines(); }
[ "panbasten@126.com" ]
panbasten@126.com
648cbd94c83483c5fcddf5f53e0bab835da10da6
fb96cac5c9dd130d94aea33583107346a31a22ba
/cloudmall-third-party/src/main/java/com/hungwen/cloudmall/thirdparty/CloudmallThirdPartyApplication.java
b9b006dcb892e41601e9fc9ed3a37f41f82422b4
[]
no_license
hungwen0425/cloudmall
4caf9699eb8b2fb5977555a49f8acef9c16ccf5d
8a9f131fb27f60b8b44a51879e6bb9368810542d
refs/heads/master
2023-04-15T20:34:37.975606
2021-05-03T05:48:17
2021-05-03T05:48:17
290,043,457
0
0
null
null
null
null
UTF-8
Java
false
false
460
java
package com.hungwen.cloudmall.thirdparty; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; @EnableDiscoveryClient @SpringBootApplication public class CloudmallThirdPartyApplication { public static void main(String[] args) { SpringApplication.run(CloudmallThirdPartyApplication.class, args); } }
[ "hungwen.tseng@gmail.com" ]
hungwen.tseng@gmail.com
4b4424eb5f93ff0bfb59aeaff6808bb69fa144ab
1099429ef3e038f9001a628d1d38ccb8c78f6021
/app/src/main/java/com/example/pq/wificamerademo/constants/AppInfo.java
bc848b5790f6ee3f992af1f41c754550ab1b1c82
[]
no_license
yale8848/wifiCameraDemo
9333906776ba4dfcb34ff5468c041cc1925ae4eb
62e4ace5c8fcedae053acaf3e8f6ae3218af5d75
refs/heads/master
2021-09-23T18:04:27.993894
2018-09-26T08:34:49
2018-09-26T08:34:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package com.example.pq.wificamerademo.constants; /** * @author panqiang * @version 1.0 * @date 2018/8/4 13:10 * @description */ public class AppInfo { public static boolean disableAudio = false; public static boolean isSdCardExist; public static boolean autoDownloadAllow = true; public static final String DOWNLOAD_PATH = "/DCIM/wifiCameraDemo/"; }
[ "1126525692@qq.com" ]
1126525692@qq.com
ab2975d3626f979449f133297906f3688f3f799f
4bb83687710716d91b5da55054c04f430474ee52
/dsrc/sku.0/sys.server/compiled/game/script/systems/camping/template/camp_spit.java
767e22ad57effd69ac9c01e0c40f94f173df75e5
[]
no_license
geralex/SWG-NGE
0846566a44f4460c32d38078e0a1eb115a9b08b0
fa8ae0017f996e400fccc5ba3763e5bb1c8cdd1c
refs/heads/master
2020-04-06T11:18:36.110302
2018-03-19T15:42:32
2018-03-19T15:42:32
157,411,938
1
0
null
2018-11-13T16:35:01
2018-11-13T16:35:01
null
UTF-8
Java
false
false
3,891
java
package script.systems.camping.template; import script.*; import script.base_class.*; import script.combat_engine.*; import java.util.Arrays; import java.util.Hashtable; import java.util.Vector; import script.base_script; import script.library.camping; public class camp_spit extends script.base_script { public camp_spit() { } public static final String VAR_CHILDREN = "myChildren"; public static final String VAR_CAMP_LOGS = VAR_CHILDREN + ".logs"; public static final String VAR_CAMP_CAMPFIRE = VAR_CHILDREN + ".campfire"; public static final String TEMPLATE_LOGS_FRESH = "object/tangible/camp/campfire_logs_fresh.iff"; public static final String TEMPLATE_LOGS_BURNT = "object/tangible/camp/campfire_logs_burnt.iff"; public static final String TEMPLATE_LOGS_SMOLDERING = "object/tangible/camp/campfire_logs_smoldering.iff"; public static final String TEMPLATE_LOGS_ASH = "object/tangible/camp/campfire_logs_ash.iff"; public static final String TEMPLATE_CAMPFIRE = "object/static/particle/particle_campfire_style_1.iff"; public static final String TEMPLATE_CAMPFIRE_SMOLDER = "object/static/particle/particle_smoke.iff"; public int OnUnloadedFromMemory(obj_id self) throws InterruptedException { destroyChildren(self); return SCRIPT_CONTINUE; } public int handleSetStatus(obj_id self, dictionary params) throws InterruptedException { if ((params == null) || (params.isEmpty())) { return SCRIPT_CONTINUE; } int status = params.getInt(camping.DICT_NEW_STATUS); switch (status) { case camping.STATUS_NEW: setLogs(self, TEMPLATE_LOGS_FRESH); setFire(self, TEMPLATE_CAMPFIRE); break; case camping.STATUS_CREATION: break; case camping.STATUS_MAINTAIN: setLogs(self, TEMPLATE_LOGS_BURNT); setFire(self, TEMPLATE_CAMPFIRE); break; case camping.STATUS_ABANDONED: default: setLogs(self, TEMPLATE_LOGS_SMOLDERING); setFire(self, TEMPLATE_CAMPFIRE_SMOLDER); break; } return SCRIPT_CONTINUE; } public void setLogs(obj_id self, String tpf) throws InterruptedException { obj_id item = getObjIdObjVar(self, VAR_CAMP_LOGS); if ((item == null) || (item == obj_id.NULL_ID)) { } else { String itemTemplate = getTemplateName(item); if (itemTemplate.equals(tpf)) { return; } destroyObject(item); } location here = getLocation(self); item = createObject(tpf, here); setObjVar(self, VAR_CAMP_LOGS, item); } public void setFire(obj_id self, String tpf) throws InterruptedException { obj_id item = getObjIdObjVar(self, VAR_CAMP_CAMPFIRE); if ((item == null) || (item == obj_id.NULL_ID)) { } else { String itemTemplate = getTemplateName(item); if (itemTemplate.equals(tpf)) { return; } destroyObject(item); } location here = getLocation(self); item = createObject(tpf, here); setObjVar(self, VAR_CAMP_CAMPFIRE, item); } public void destroyChildren(obj_id self) throws InterruptedException { obj_id logs = getObjIdObjVar(self, VAR_CAMP_LOGS); if ((logs == null) || (logs == obj_id.NULL_ID)) { } else { destroyObject(logs); } obj_id campfire = getObjIdObjVar(self, VAR_CAMP_CAMPFIRE); if ((campfire == null) || (campfire == obj_id.NULL_ID)) { } else { destroyObject(campfire); } } }
[ "tmoflash@gmail.com" ]
tmoflash@gmail.com
980790d86f9c83d4c5d901ac59ec24b7bbd22c22
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
/services/dris/src/main/java/com/huaweicloud/sdk/dris/v1/model/EventReferencePath.java
c6755917a7ef1abfd5f18c26b182ae182e1e8682
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-java-v3
51b32a451fac321a0affe2176663fed8a9cd8042
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
refs/heads/master
2023-08-29T06:50:15.642693
2023-08-24T08:34:48
2023-08-24T08:34:48
262,207,545
91
57
NOASSERTION
2023-09-08T12:24:55
2020-05-08T02:27:00
Java
UTF-8
Java
false
false
3,318
java
package com.huaweicloud.sdk.dris.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; /** * EventReferencePath */ public class EventReferencePath { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "active_path") private List<EventLocation> activePath = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "path_radius") private Integer pathRadius; public EventReferencePath withActivePath(List<EventLocation> activePath) { this.activePath = activePath; return this; } public EventReferencePath addActivePathItem(EventLocation activePathItem) { if (this.activePath == null) { this.activePath = new ArrayList<>(); } this.activePath.add(activePathItem); return this; } public EventReferencePath withActivePath(Consumer<List<EventLocation>> activePathSetter) { if (this.activePath == null) { this.activePath = new ArrayList<>(); } activePathSetter.accept(this.activePath); return this; } /** * **参数说明**:激活路径。 * @return activePath */ public List<EventLocation> getActivePath() { return activePath; } public void setActivePath(List<EventLocation> activePath) { this.activePath = activePath; } public EventReferencePath withPathRadius(Integer pathRadius) { this.pathRadius = pathRadius; return this; } /** * **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 * minimum: 0 * maximum: 2147483647 * @return pathRadius */ public Integer getPathRadius() { return pathRadius; } public void setPathRadius(Integer pathRadius) { this.pathRadius = pathRadius; } @Override public boolean equals(java.lang.Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } EventReferencePath that = (EventReferencePath) obj; return Objects.equals(this.activePath, that.activePath) && Objects.equals(this.pathRadius, that.pathRadius); } @Override public int hashCode() { return Objects.hash(activePath, pathRadius); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventReferencePath {\n"); sb.append(" activePath: ").append(toIndentedString(activePath)).append("\n"); sb.append(" pathRadius: ").append(toIndentedString(pathRadius)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
7b6adfce6698c9c88c73ba0ff309fe4a3dfd7662
5bc3cc64638d9a2224661e983b09b9d1ac65b1ba
/fm-dynamic-compiler-core/src/main/java/com/fm/compiler/exceptions/InstanceCreateException.java
5ce4278bb381aee9674d4876f9a6b807db40e256
[]
no_license
XiaoMaoGuai/fm-dynamic-compiler
c205efe45e724ff5e84c6a4057472f8c5e98297c
57d82cd6491008de97ba6279bb54870339f230cf
refs/heads/master
2022-12-29T05:48:25.514403
2020-03-25T18:44:47
2020-03-25T18:44:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
343
java
package com.fm.compiler.exceptions; public class InstanceCreateException extends RuntimeException{ public InstanceCreateException(String msg){ super(msg); } public InstanceCreateException(String msg, Throwable t){ super(msg, t); } public InstanceCreateException(Throwable t){ super(t); } }
[ "qlichunyu@163.com" ]
qlichunyu@163.com
d653dbf81f677f28cc90d27ecdd7f0daa36b92ad
95905e33b8d275f9fe1e1d0ea06753436441de66
/InteliJ/SpringBoot/ioc/src/main/java/com/example/ioc/IocApplication.java
54a72b7a7b32661cda97d17ada1500f61bbafd39
[]
no_license
louis-25/TIL
3bdea4f58a76efbfad87a82e3ce9e68c72ca1001
33fcf58450725262334d52073c8f86c4d1a3e8c1
refs/heads/main
2023-06-03T19:51:41.396564
2021-06-19T09:27:42
2021-06-19T09:27:42
348,227,840
0
0
null
null
null
null
UTF-8
Java
false
false
737
java
package com.example.ioc; import org.apache.catalina.core.ApplicationContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class IocApplication { public static void main(String[] args) { SpringApplication.run(IocApplication.class, args); ApplicationContext context = ApplicationContextProvider.getContext(); Base64Encoder base64Encoder = context.getBean(Base64Encoder.class); Encoder encoder = new Encoder(base64Encoder); String url = "www.naver.com/books/it?page=10&size=20&name=spring-boot"; String result = encoder.encode(url); System.out.println(result); } }
[ "20151577@vision.hoseo.edu" ]
20151577@vision.hoseo.edu
3b59661fd9bc4f7417708ce7f8d66de73f660d4f
1c83f56ebeda5c76a92f2e7e819c4f2a630bc4cf
/camel-core/src/test/java/org/apache/camel/component/test/TestFileTest.java
c1d0ccac02a9d19ce3595e475543f21f43da4e6c
[ "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
valtoni/camel
a6a8c1244b4045b2ed47aa5f59b2495702e6c759
2563e716d5b348fc80219accbb8aa7b83d77bd68
refs/heads/master
2020-03-23T08:22:47.079621
2018-08-24T20:25:07
2018-08-24T20:25:07
141,323,246
1
0
Apache-2.0
2018-07-18T17:38:16
2018-07-17T17:39:38
Java
UTF-8
Java
false
false
1,757
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.camel.component.test; import org.apache.camel.ContextTestSupport; import org.apache.camel.builder.RouteBuilder; import org.junit.Ignore; public class TestFileTest extends ContextTestSupport { @Override public boolean isUseRouteBuilder() { return false; } @Override protected void setUp() throws Exception { deleteDirectory("target/testme"); super.setUp(); } @Ignore public void testFile() throws Exception { template.sendBody("file:target/testme", "Hello World"); context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:start") .to("test:file:target/testme?noop=true&timeout=1500"); } }); context.start(); template.sendBody("direct:start", "Hello World"); assertMockEndpointsSatisfied(); } }
[ "davsclaus@apache.org" ]
davsclaus@apache.org
c28bb246efbd1fad464cdfb4e91f4fb32946f721
a23fa133aa4959a5eba721bcab9f0a0d58d28306
/src/main/java/com/logistics/plan/config/Swagger2Config.java
b480a7b7c53bad6acd2ed28d8b87da9533d5ee9e
[]
no_license
a97659096/logistics_plan
1ca621b454f13f0544f1391b15f967a2f061d469
e0dcd8ffff3594aae7cd23f96ae381a785b63d0a
refs/heads/master
2023-03-14T06:13:22.387616
2021-02-23T06:18:33
2021-02-23T06:18:33
341,449,611
0
0
null
null
null
null
UTF-8
Java
false
false
1,557
java
package com.logistics.plan.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @Configuration @EnableSwagger2 public class Swagger2Config { @Bean public Docket createRestApi(){ return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .select() //为当前包下controller生成API文档 .apis(RequestHandlerSelectors.basePackage("com.logistics.plan.controller")) //为有@Api注解的Controller生成API文档 // .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) //为有@ApiOperation注解的方法生成API文档 // .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) .paths(PathSelectors.any()) .build(); } private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("SwaggerUI") .description("logistics-plan") .contact("tsh") .version("1.0") .build(); } }
[ "97659096@qq.com" ]
97659096@qq.com
fc1ff63e7df25f89bad231d32dd4216804c34e81
028cbe18b4e5c347f664c592cbc7f56729b74060
/external/modules/bean-validator/validation-api/1.1.0.Beta2/src/main/java/javax/validation/ValidationException.java
845cf8d5be43d672f481d909fa92768c06c71d5a
[ "Apache-2.0" ]
permissive
dmatej/Glassfish-SVN-Patched
8d355ff753b23a9a1bd9d7475fa4b2cfd3b40f9e
269e29ba90db6d9c38271f7acd2affcacf2416f1
refs/heads/master
2021-05-28T12:55:06.267463
2014-11-11T04:21:44
2014-11-11T04:21:44
23,610,469
1
0
null
null
null
null
UTF-8
Java
false
false
1,238
java
/* * JBoss, Home of Professional Open Source * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.validation; /** * Base exception of all "unexpected" problems. * * @author Emmanuel Bernard */ public class ValidationException extends RuntimeException { public ValidationException(String message) { super( message ); } public ValidationException() { super(); } public ValidationException(String message, Throwable cause) { super( message, cause ); } public ValidationException(Throwable cause) { super( cause ); } }
[ "mtaube@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5" ]
mtaube@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
fa7b26c5db05cfdb2995ec603f87174799df0f2e
16c3f1340cefb3299d290434a45483f9d428eea6
/translator/src/main/java/com/google/devtools/j2objc/ast/SwitchCase.java
f3b6b8fc13a1e181d15a7c14f94440b53ab37e0b
[ "Apache-2.0" ]
permissive
sarvex/j2objc
7696fa149ad90c3e3480b8ee6d0b717412ee0543
df6e0f95daff1e9f61990e42c83287bb453023f7
refs/heads/master
2023-05-25T17:22:59.361484
2023-05-01T06:40:52
2023-05-01T06:40:52
32,573,060
0
0
Apache-2.0
2023-05-01T06:40:53
2015-03-20T08:50:10
Java
UTF-8
Java
false
false
1,626
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.devtools.j2objc.ast; /** * Node type for a switch case statement. */ public class SwitchCase extends Statement { private boolean isDefault = false; private ChildLink<Expression> expression = ChildLink.create(Expression.class, this); public SwitchCase(org.eclipse.jdt.core.dom.SwitchCase jdtNode) { super(jdtNode); isDefault = jdtNode.isDefault(); expression.set((Expression) TreeConverter.convert(jdtNode.getExpression())); } public SwitchCase(SwitchCase other) { super(other); isDefault = other.isDefault(); expression.copyFrom(other.getExpression()); } @Override public Kind getKind() { return Kind.SWITCH_CASE; } public boolean isDefault() { return isDefault; } public Expression getExpression() { return expression.get(); } @Override protected void acceptInner(TreeVisitor visitor) { if (visitor.visit(this)) { expression.accept(visitor); } visitor.endVisit(this); } @Override public SwitchCase copy() { return new SwitchCase(this); } }
[ "tball@google.com" ]
tball@google.com
08104f7e7d15cb7846ec60f85c6f03d74d83e6fa
b2016b74acf02c0117128b505baac48338d825c9
/sophia.mmorpg/src/main/java/sophia/mmorpg/player/quest/QuestState.java
f5fde1b156cd8ad3687f6a1c0421c7589743994b
[]
no_license
atom-chen/server
979830e60778a3fba1740ea3afb2e38937e84cea
c44e12a3efe5435d55590c9c0fd9e26cec58ed65
refs/heads/master
2020-06-17T02:54:13.348191
2017-10-13T18:40:21
2017-10-13T18:40:21
195,772,502
0
1
null
2019-07-08T08:46:37
2019-07-08T08:46:37
null
UTF-8
Java
false
false
1,231
java
/** * Copyright 2013-2015 Sophia * * 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 sophia.mmorpg.player.quest; public final class QuestState { /** 任务不可见*/ public static final int UnvisiableQuestState = 1; /** 任务仅可见*/ public static final int VisiableQuestState = 2; /** 任务可接*/ public static final int AcceptableQuestState = 3; /** 任务已接,但未完成*/ public static final int AcceptedQuestState = 4; /** 任务已经可提交。但还没提交*/ public static final int SubmittableQuestState = 5; /** 任务已经完成。已经提交领取奖励*/ public static final int CompletedQuestState = 6; private QuestState() { } }
[ "hi@luanhailiang.cn" ]
hi@luanhailiang.cn
35019908c428ce27f55be11d116e1bf3b49114c5
255afee7036a29c5ea68c86b1dea2cf0d6f24c15
/jacklyn-common/src/main/java/com/tcdng/jacklyn/common/web/widgets/BaseDialogPanel.java
7bc9d8f1246319479e150aa713e5bcd127caa5fd
[ "Apache-2.0" ]
permissive
tcdng/jacklyn-codebase
2bb4a60ad7d12ead4d4b8d3c4c3963dcea69514d
4bc2253c18dbf45f56a73a930885f474e7b2682e
refs/heads/master
2022-06-29T01:18:34.508726
2022-06-19T07:30:24
2022-06-19T07:30:24
160,588,947
4
3
Apache-2.0
2022-06-19T07:30:24
2018-12-05T22:55:16
Java
UTF-8
Java
false
false
1,811
java
/* * Copyright 2018-2020 The Code Department * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.tcdng.jacklyn.common.web.widgets; import com.tcdng.jacklyn.shared.security.SecurityPrivilegeConstants; import com.tcdng.unify.core.UnifyException; import com.tcdng.unify.web.ui.widget.panel.AbstractDialogPanel; /** * Convenient base class for dialog panels in Jacklyn context. * * @author Lateef Ojulari * @since 1.0 */ public class BaseDialogPanel extends AbstractDialogPanel { /** * Checks if current user has application administrator view. * * @return a true value if current user has such privilege * @throws UnifyException * if an error occurs */ protected boolean isAppAdminView() throws UnifyException { return getViewDirective(SecurityPrivilegeConstants.APPLICATION_ADMIN).isVisible(); } /** * Checks if current user has hub administrator view. * * @return a true value if current user has such privilege * @throws UnifyException * if an error occurs */ protected boolean isHubAdminView() throws UnifyException { return getViewDirective(SecurityPrivilegeConstants.HUB_ADMIN).isVisible(); } }
[ "lateef.ojulari@tcdng.com" ]
lateef.ojulari@tcdng.com
2fdf7ce2c7c74aafa9ab04db960d88dc2b3b89de
05239ef46161e7f80527055e72541ab06355946d
/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/project1/org/apache/jsp/project1/board/pitemForm_jsp.java
5711875d7ec32958d831feb67cfc6cfb9151c1ee
[]
no_license
Shin-JungYeon/UI
c3670fd4bdba494f803b3b57f54f0cda47b86c68
6e06858a02aa52a6e31351a24c5cb74769ae89f7
refs/heads/master
2020-07-22T02:13:41.187759
2019-09-08T14:02:37
2019-09-08T14:02:37
207,044,233
0
0
null
null
null
null
UTF-8
Java
false
false
7,400
java
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/9.0.17 * Generated at: 2019-05-31 09:16:43 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.apache.jsp.project1.board; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class pitemForm_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent, org.apache.jasper.runtime.JspSourceImports { private static final javax.servlet.jsp.JspFactory _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants; private static final java.util.Set<java.lang.String> _jspx_imports_packages; private static final java.util.Set<java.lang.String> _jspx_imports_classes; static { _jspx_imports_packages = new java.util.HashSet<>(); _jspx_imports_packages.add("javax.servlet"); _jspx_imports_packages.add("javax.servlet.http"); _jspx_imports_packages.add("javax.servlet.jsp"); _jspx_imports_classes = null; } private volatile javax.el.ExpressionFactory _el_expressionfactory; private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager; public java.util.Map<java.lang.String,java.lang.Long> getDependants() { return _jspx_dependants; } public java.util.Set<java.lang.String> getPackageImports() { return _jspx_imports_packages; } public java.util.Set<java.lang.String> getClassImports() { return _jspx_imports_classes; } public javax.el.ExpressionFactory _jsp_getExpressionFactory() { if (_el_expressionfactory == null) { synchronized (this) { if (_el_expressionfactory == null) { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); } } } return _el_expressionfactory; } public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() { if (_jsp_instancemanager == null) { synchronized (this) { if (_jsp_instancemanager == null) { _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); } } } return _jsp_instancemanager; } public void _jspInit() { } public void _jspDestroy() { } public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { if (!javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { final java.lang.String _jspx_method = request.getMethod(); if ("OPTIONS".equals(_jspx_method)) { response.setHeader("Allow","GET, HEAD, POST, OPTIONS"); return; } if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method)) { response.setHeader("Allow","GET, HEAD, POST, OPTIONS"); response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSP들은 오직 GET, POST 또는 HEAD 메소드만을 허용합니다. Jasper는 OPTIONS 메소드 또한 허용합니다."); return; } } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=EUC-KR"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("<!DOCTYPE html>\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta charset=\"EUC-KR\">\r\n"); out.write("<title>포인트 상품 등록</title>\r\n"); out.write("<script type=\"text/javascript\">\r\n"); out.write("\tfunction passchk() {\r\n"); out.write("\t\tif(f.pass.value == \"\") {\r\n"); out.write("\t\t\talert(\"비밀번호를 입력하세요.\");\r\n"); out.write("\t\t\tf.pass.focus();\r\n"); out.write("\t\t\treturn false;\r\n"); out.write("\t\t} else {\r\n"); out.write("\t\t\treturn true;\r\n"); out.write("\t\t}\r\n"); out.write("\t}\r\n"); out.write("\tfunction win_upload() {\r\n"); out.write("\t\tvar op = \"width=500, height=150, left=50, top=150\";\r\n"); out.write("\t\topen(\"fileUploadForm.jsp\", \"\", op);\r\n"); out.write("\t}\r\n"); out.write("</script>\r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write("\t<div>\r\n"); out.write("\t\t<form action=\"pitemadd.do\" method=\"post\" name=\"f\">\r\n"); out.write("\t\t\t<input type=\"hidden\" name=\"picture\" value=\"\">\r\n"); out.write("\t\t\t<table>\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t<tr><td>상품 이미지</td>\r\n"); out.write("\t\t\t\t\t<td><img src=\"\" width=\"100\" height=\"120\" id=\"poster\"><br>\r\n"); out.write("\t\t\t\t\t\t<font size=\"1\"><a href=\"javascript:win_upload()\">[이미지 등록]</a></font></td>\r\n"); out.write("\t\t\t\t</tr>\r\n"); out.write("\t\t\t\t<tr><td>비밀번호</td><td><input type=\"password\" name=\"pass\" style=\"width: 300px;\"></td></tr>\r\n"); out.write("\t\t\t\t<tr>\r\n"); out.write("\t\t\t\t\t<td>상품 이름</td>\r\n"); out.write("\t\t\t\t\t<td><input type=\"text\" name=\"name\" style=\"width: 300px;\"></td>\r\n"); out.write("\t\t\t\t</tr>\r\n"); out.write("\t\t\t\t<tr>\r\n"); out.write("\t\t\t\t\t<td>상품 포인트</td>\r\n"); out.write("\t\t\t\t\t<td><input type=\"text\" name=\"point\" style=\"width: 300px;\"></td>\r\n"); out.write("\t\t\t\t</tr>\r\n"); out.write("\t\t\t\t<tr><td colspan=\"2\"><input type=\"submit\" value=\"상품등록\" onclick=\"return passchk()\"></td></tr>\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t</table>\r\n"); out.write("\t\t</form>\r\n"); out.write("\t</div>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "ssjy11@gmail.com" ]
ssjy11@gmail.com
f05f56f60ddb4ec6ffa57e6b5f59354b8d13e894
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2018/4/CheckerEngine.java
222e0bf5ca8a18b20cfef2d16ee8ca572f94f75b
[]
no_license
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
1,313
java
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 org.neo4j.consistency.checking; import org.neo4j.consistency.report.ConsistencyReport; import org.neo4j.consistency.store.RecordReference; import org.neo4j.kernel.impl.store.record.AbstractBaseRecord; public interface CheckerEngine<RECORD extends AbstractBaseRecord, REPORT extends ConsistencyReport> { <REFERRED extends AbstractBaseRecord> void comparativeCheck( RecordReference<REFERRED> other, ComparativeRecordChecker<RECORD, ? super REFERRED, REPORT> checker ); REPORT report(); }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
4ae9cabfd15530562bd29a32688ae8384a22efeb
e7565cd8276c3e2da6fa5c7229baf91563799bbd
/server/catgenome/src/main/java/com/epam/catgenome/app/TomcatConfigurerImpl.java
72e7384263336fc720041e550b111cb86454680e
[ "MIT" ]
permissive
epam/NGB
a89b12d24fd289a63d511c4bbd79cc6966ea910d
cb8fc7e95d1d0e064f4eb2b2f487f853c0234592
refs/heads/develop
2023-08-31T22:49:54.667420
2023-08-31T10:30:01
2023-08-31T10:30:01
72,222,405
153
61
MIT
2023-09-14T13:37:11
2016-10-28T16:07:22
JavaScript
UTF-8
Java
false
false
789
java
package com.epam.catgenome.app; import org.apache.catalina.webresources.StandardRoot; import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory; public class TomcatConfigurerImpl implements TomcatConfigurer { public TomcatConfigurerImpl() { // no op } @Override public void configure(TomcatEmbeddedServletContainerFactory tomcat, int cacheSize, int tomcatCacheSize) { tomcat.addContextCustomizers((context) -> { StandardRoot standardRoot = new StandardRoot(context); standardRoot.setCachingAllowed(true); standardRoot.setCacheMaxSize(cacheSize); standardRoot.setCacheTtl(tomcatCacheSize); context.setResources(standardRoot); }); } }
[ "aleksandr_sidoruk@epam.com" ]
aleksandr_sidoruk@epam.com
d82a06401ab4ab2cc9928a2e91b554155d508129
c8664fc194971e6e39ba8674b20d88ccfa7663b1
/com/tencent/mm/protocal/c/bjq.java
7c0340dfb5de18ef7392680c3ddb08f980f50320
[]
no_license
raochuan/wexin1120
b926bc8d4143c4b523ed43e265cd20ef0c89ad40
1eaa71e1e3e7c9f9b9f96db8de56db3dfc4fb4d3
refs/heads/master
2020-05-17T23:57:00.000696
2017-11-03T02:33:27
2017-11-03T02:33:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,540
java
package com.tencent.mm.protocal.c; import b.a.a.b; import com.tencent.gmtrace.GMTrace; import java.util.LinkedList; public final class bjq extends axc { public axs tJz; public String tvh; public int twU; public int twV; public int twW; public bjq() { GMTrace.i(3641058525184L, 27128); GMTrace.o(3641058525184L, 27128); } protected final int a(int paramInt, Object... paramVarArgs) { GMTrace.i(3641192742912L, 27129); if (paramInt == 0) { paramVarArgs = (b.a.a.c.a)paramVarArgs[0]; if (this.tJz == null) { throw new b("Not all required fields were included: Data"); } if (this.urE != null) { paramVarArgs.ff(1, this.urE.aWM()); this.urE.a(paramVarArgs); } if (this.tvh != null) { paramVarArgs.e(2, this.tvh); } paramVarArgs.fd(3, this.twU); paramVarArgs.fd(4, this.twV); paramVarArgs.fd(5, this.twW); if (this.tJz != null) { paramVarArgs.ff(6, this.tJz.aWM()); this.tJz.a(paramVarArgs); } GMTrace.o(3641192742912L, 27129); return 0; } int i; if (paramInt == 1) { paramInt = 0; if (this.urE != null) { paramInt = b.a.a.a.fc(1, this.urE.aWM()) + 0; } i = paramInt; if (this.tvh != null) { i = paramInt + b.a.a.b.b.a.f(2, this.tvh); } i = i + b.a.a.a.fa(3, this.twU) + b.a.a.a.fa(4, this.twV) + b.a.a.a.fa(5, this.twW); paramInt = i; if (this.tJz != null) { paramInt = i + b.a.a.a.fc(6, this.tJz.aWM()); } GMTrace.o(3641192742912L, 27129); return paramInt; } if (paramInt == 2) { paramVarArgs = new b.a.a.a.a((byte[])paramVarArgs[0], unknownTagHandler); for (paramInt = axc.a(paramVarArgs); paramInt > 0; paramInt = axc.a(paramVarArgs)) { if (!super.a(paramVarArgs, this, paramInt)) { paramVarArgs.cpJ(); } } if (this.tJz == null) { throw new b("Not all required fields were included: Data"); } GMTrace.o(3641192742912L, 27129); return 0; } if (paramInt == 3) { Object localObject1 = (b.a.a.a.a)paramVarArgs[0]; bjq localbjq = (bjq)paramVarArgs[1]; paramInt = ((Integer)paramVarArgs[2]).intValue(); Object localObject2; boolean bool; switch (paramInt) { default: GMTrace.o(3641192742912L, 27129); return -1; case 1: paramVarArgs = ((b.a.a.a.a)localObject1).FK(paramInt); i = paramVarArgs.size(); paramInt = 0; while (paramInt < i) { localObject2 = (byte[])paramVarArgs.get(paramInt); localObject1 = new en(); localObject2 = new b.a.a.a.a((byte[])localObject2, unknownTagHandler); for (bool = true; bool; bool = ((en)localObject1).a((b.a.a.a.a)localObject2, (com.tencent.mm.bl.a)localObject1, axc.a((b.a.a.a.a)localObject2))) {} localbjq.urE = ((en)localObject1); paramInt += 1; } GMTrace.o(3641192742912L, 27129); return 0; case 2: localbjq.tvh = ((b.a.a.a.a)localObject1).xSv.readString(); GMTrace.o(3641192742912L, 27129); return 0; case 3: localbjq.twU = ((b.a.a.a.a)localObject1).xSv.nm(); GMTrace.o(3641192742912L, 27129); return 0; case 4: localbjq.twV = ((b.a.a.a.a)localObject1).xSv.nm(); GMTrace.o(3641192742912L, 27129); return 0; case 5: localbjq.twW = ((b.a.a.a.a)localObject1).xSv.nm(); GMTrace.o(3641192742912L, 27129); return 0; } paramVarArgs = ((b.a.a.a.a)localObject1).FK(paramInt); i = paramVarArgs.size(); paramInt = 0; while (paramInt < i) { localObject2 = (byte[])paramVarArgs.get(paramInt); localObject1 = new axs(); localObject2 = new b.a.a.a.a((byte[])localObject2, unknownTagHandler); for (bool = true; bool; bool = ((axs)localObject1).a((b.a.a.a.a)localObject2, (com.tencent.mm.bl.a)localObject1, axc.a((b.a.a.a.a)localObject2))) {} localbjq.tJz = ((axs)localObject1); paramInt += 1; } GMTrace.o(3641192742912L, 27129); return 0; } GMTrace.o(3641192742912L, 27129); return -1; } } /* Location: /Users/xianghongyan/decompile/dex2jar/classes2-dex2jar.jar!/com/tencent/mm/protocal/c/bjq.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "15223790237@139.com" ]
15223790237@139.com
ca78496640cd5c3f307fc2a82c5fcc34de2d5695
c7df1bbee51cdfe6ee7727d738b64b77956590b6
/src/test/java/com/feilong/io/fileutil/ToByteArrayFilePathTest.java
403429d8e69a8bb794041d40f96be8a58491fbd7
[ "Apache-2.0" ]
permissive
ifeilong/feilong-io
b75d84352d21015f40be949eb9f5f8b0a68909a3
f7b3ef6f31a48b9fe46a6c340cfef733013e9d0c
refs/heads/master
2023-07-23T17:26:59.513889
2021-08-20T06:55:32
2021-08-20T06:55:32
58,818,596
3
2
null
null
null
null
UTF-8
Java
false
false
1,245
java
/* * Copyright (C) 2008 feilong * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.feilong.io.fileutil; import org.junit.Test; import com.feilong.io.FileUtil; /** * * @author <a href="http://feitianbenyue.iteye.com/">feilong</a> * @since 1.11.5 */ public class ToByteArrayFilePathTest{ @Test(expected = NullPointerException.class) public void testToByteArrayUtilNull(){ FileUtil.toByteArray((String) null); } @Test(expected = IllegalArgumentException.class) public void testToByteArrayUtilEmpty(){ FileUtil.toByteArray(""); } @Test(expected = IllegalArgumentException.class) public void testToByteArrayUtilBlank(){ FileUtil.toByteArray(" "); } }
[ "venusdrogon@163.com" ]
venusdrogon@163.com
c57bc34dea8564b1029a7076e87859fa2a654c0a
030f1ab40b168223766c7b92ab28a8bc23a226ec
/moduleBusinessLayerWS/src/be/naturalsciences/bmdc/ears/ontology/SimpleReasonerFactory.java
29d44da9a4d55fc6125f517611c5666716d41b2a
[ "BSD-3-Clause" ]
permissive
naturalsciences/ears
1a1a8eb2808a705a5fcbbaec51a722e9322a6619
637210049e709b77ff4baff98a7c7823a2a47d08
refs/heads/master
2023-04-30T13:11:44.211464
2023-04-25T12:01:08
2023-04-25T12:01:08
85,196,244
0
1
BSD-3-Clause
2022-09-01T22:52:32
2017-03-16T12:59:46
Java
UTF-8
Java
false
false
5,784
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 be.naturalsciences.bmdc.ears.ontology; import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.reasoner.*; import com.hp.hpl.jena.reasoner.rulesys.*; import com.hp.hpl.jena.vocabulary.OWL; import com.hp.hpl.jena.vocabulary.RDFS; import com.hp.hpl.jena.vocabulary.ReasonerVocabulary; /** * Read RDF XML from standard in; infer and write to standard out. */ class SimpleReasonerFactory implements ReasonerFactory { /** * Single global instance of this factory */ private static ReasonerFactory theInstance = new SimpleReasonerFactory(); /** * Static URI for this reasoner type */ public static final String URI = ""; /** * Cache of the capabilities description */ protected Model capabilities; /** * Return the single global instance of this factory */ public static ReasonerFactory theInstance() { return theInstance; } public static Reasoner getSimpleJenaReasoner() { // Create an empty model. //Model model = ModelFactory.createDefaultModel(); // Read the RDF/XML on standard in. //model.read(System.in, null); // Create a simple RDFS++ Reasoner. StringBuilder sb = new StringBuilder(); sb.append("[rdfs2: (?x ?p ?y), (?p rdfs:domain ?c) -> (?x rdf:type ?c)] "); sb.append("[rdfs3: (?x ?p ?y), (?p rdfs:range ?c) -> (?y rdf:type ?c)] "); sb.append("[rdfs6: (?a ?p ?b), (?p rdfs:subPropertyOf ?q) -> (?a ?q ?b)] "); sb.append("[rdfs5: (?x rdfs:subPropertyOf ?y), (?y rdfs:subPropertyOf ?z) -> (?x rdfs:subPropertyOf ?z)] "); sb.append("[rdfs9: (?x rdfs:subClassOf ?y), (?a rdf:type ?x) -> (?a rdf:type ?y)] "); sb.append("[rdfs11: (?x rdfs:subClassOf ?y), (?y rdfs:subClassOf ?z) -> (?x rdfs:subClassOf ?z)] "); sb.append("[owlinv: (?x ?p ?y), (?p owl:inverseOf ?q) -> (?y ?q ?x)] "); sb.append("[owlinv2: (?p owl:inverseOf ?q) -> (?q owl:inverseOf ?p)] "); //sb.append("[owlinv3: (?p ears2:isMemberOf ?q) -> (?q ears2:contains ?p)] "); //sb.append("[owlinv4: (?p ears2:withTool ?q) -> (?q ears2:involvedInEvent ?p)] "); sb.append("[owltra: (?x ?p ?y), (?y ?p ?z), (?p rdf:type owl:TransitiveProperty) -> (?x ?p ?z)] "); sb.append("[owlsam: (?x ?p ?y), (?x owl:sameAs ?z) -> (?z ?p ?y)] "); sb.append("[owlsam2: (?x owl:sameAs ?y) -> (?y owl:sameAs ?x)] "); /*OntModelSpec spec = OntModelSpec.OWL_DL_MEM_RULE_INF;*/ return new GenericRuleReasoner(Rule.parseRules(sb.toString())/*, spec.getReasonerFactory()*/); } public static InfModel createInfModel(Model model) { return ModelFactory.createInfModel(getSimpleJenaReasoner(), model); } @Override public Reasoner create(Resource rsrc) { return getSimpleJenaReasoner(); } @Override public Model getCapabilities() { if (capabilities == null) { capabilities = ModelFactory.createDefaultModel(); Resource base = capabilities.createResource(getURI()); base.addProperty(ReasonerVocabulary.nameP, "OWL BRule Reasoner") .addProperty(ReasonerVocabulary.descriptionP, "Experimental OWL reasoner.\n" + "Can separate tbox and abox data if desired to reuse tbox caching or mix them.") .addProperty(ReasonerVocabulary.supportsP, RDFS.subClassOf) .addProperty(ReasonerVocabulary.supportsP, RDFS.subPropertyOf) .addProperty(ReasonerVocabulary.supportsP, RDFS.member) .addProperty(ReasonerVocabulary.supportsP, RDFS.range) .addProperty(ReasonerVocabulary.supportsP, RDFS.domain) // TODO - add OWL elements supported .addProperty(ReasonerVocabulary.supportsP, ReasonerVocabulary.individualAsThingP) .addProperty(ReasonerVocabulary.supportsP, OWL.ObjectProperty) .addProperty(ReasonerVocabulary.supportsP, OWL.DatatypeProperty) .addProperty(ReasonerVocabulary.supportsP, OWL.FunctionalProperty) .addProperty(ReasonerVocabulary.supportsP, OWL.SymmetricProperty) .addProperty(ReasonerVocabulary.supportsP, OWL.TransitiveProperty) .addProperty(ReasonerVocabulary.supportsP, OWL.InverseFunctionalProperty) .addProperty(ReasonerVocabulary.supportsP, OWL.hasValue) .addProperty(ReasonerVocabulary.supportsP, OWL.intersectionOf) .addProperty(ReasonerVocabulary.supportsP, OWL.unionOf) // Only partial .addProperty(ReasonerVocabulary.supportsP, OWL.minCardinality) // Only partial .addProperty(ReasonerVocabulary.supportsP, OWL.maxCardinality) // Only partial .addProperty(ReasonerVocabulary.supportsP, OWL.cardinality) // Only partial .addProperty(ReasonerVocabulary.supportsP, OWL.someValuesFrom) // Only partial .addProperty(ReasonerVocabulary.supportsP, OWL.allValuesFrom) // Only partial .addProperty(ReasonerVocabulary.supportsP, OWL.sameAs) .addProperty(ReasonerVocabulary.supportsP, OWL.differentFrom) .addProperty(ReasonerVocabulary.supportsP, OWL.disjointWith) .addProperty(ReasonerVocabulary.versionP, "0.1"); } return capabilities; } @Override public String getURI() { return URI; } }
[ "tvandenberghe@naturalsciences.be" ]
tvandenberghe@naturalsciences.be
1e6f6012be0735406465cc4982490e5d7a9bcfbb
6cd2aa298878619567968721fc0bb441cbd88f05
/consigext/entity/Cet.java
52f50c3af1382f75f5769cabe9b2f1b1c5c4abf3
[]
no_license
vinvallado/codigos
1706ee9cfb8888500bd02429c03fdf665216b19f
eab9373d079d07a66ded4344cee2762d81447934
refs/heads/master
2020-03-27T14:03:59.302782
2018-08-30T15:02:10
2018-08-30T15:02:10
146,579,215
0
0
null
null
null
null
UTF-8
Java
false
false
1,761
java
package br.mil.fab.consigext.entity; import java.io.Serializable; import javax.persistence.*; import java.math.BigDecimal; /** * The persistent class for the T_CET database table. * */ @Entity @Table(name="T_CET") @NamedQuery(name="Cet.findAll", query="SELECT c FROM Cet c") @SequenceGenerator(name = "SQ_ID_CET", sequenceName = "SQ_ID_CET", allocationSize = 1) public class Cet implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name="ID_CET") @GeneratedValue(generator = "SQ_ID_CET", strategy = GenerationType.SEQUENCE) private Long id; @Column(name="CD_ANOMES") private long cdAnomes; @Column(name="NR_PARCELA") private long nrParcela; @Column(name="VL_CET") private BigDecimal vlCet; //bi-directional many-to-one association to ServicoConsig @ManyToOne @JoinColumn(name="ID_SERVICO_CONSIG") private ServicoConsig servicoConsig; public Cet() { } public Long getId() { return this.id; } public void setId(Long idCet) { this.id = idCet; } public long getCdAnomes() { return cdAnomes; } public void setCdAnomes(long cdAnomes) { this.cdAnomes = cdAnomes; } public long getNrParcela() { return nrParcela; } public void setNrParcela(long nrParcela) { this.nrParcela = nrParcela; } public ServicoConsig getServicoConsig() { return servicoConsig; } public void setServicoConsig(ServicoConsig servicoConsig) { this.servicoConsig = servicoConsig; } public BigDecimal getVlCet() { return this.vlCet; } public void setVlCet(BigDecimal vlCet) { this.vlCet = vlCet; } public ServicoConsig getTServicoConsig() { return this.servicoConsig; } public void setTServicoConsig(ServicoConsig TServicoConsig) { this.servicoConsig = TServicoConsig; } }
[ "thomevallado@gmail.com" ]
thomevallado@gmail.com
309d121fc5ca7c36ed8d563c924afb4fefb3cbc6
d24de9be4c3993d9dc726e9a3c74d9662c470226
/reverse/Rocketbank_All_3.12.4_source_from_JADX/sources/com/mikepenz/materialdrawer/holder/DimenHolder.java
94651f408974fe496e41f500f68d066ad27565ec
[]
no_license
MEJIOMAH17/rocketbank-api
b18808ee4a2fdddd8b3045cd16655b0d82e0b13b
fc4eb0cbb4a8f52277fdb09a3b26b4cceef6ff79
refs/heads/master
2022-07-17T20:24:29.721131
2019-07-26T18:55:21
2019-07-26T18:55:21
198,698,231
4
0
null
2022-06-20T22:43:15
2019-07-24T19:31:49
Smali
UTF-8
Java
false
false
147
java
package com.mikepenz.materialdrawer.holder; import android.support.v7.appcompat.C0219R.layout; public final class DimenHolder extends layout { }
[ "mekosichkin.ru" ]
mekosichkin.ru
0d759e6cfe1da2717b345c1cf282ac74e596fe3f
8c5e64d7000edf7a201179eeb1020c591d8fd0cd
/Minecraft/build/tmp/recompileMc/sources/net/minecraft/client/renderer/entity/layers/LayerElytra.java
f9dda423726dc9b418541262098a913eb7e535a6
[ "LGPL-2.0-or-later", "LGPL-2.1-only", "BSD-3-Clause", "MIT" ]
permissive
shaw-wong/Malmo
1f1bec86ff5b2c8038540d029a9d2288201e0f3a
2683891206e8ab7f015d5d0feb6b5a967f02c94f
refs/heads/master
2021-06-25T13:14:30.097602
2018-06-03T14:25:19
2018-06-03T14:25:19
125,961,215
1
0
MIT
2018-04-10T05:34:35
2018-03-20T04:35:00
Java
UTF-8
Java
false
false
3,541
java
package net.minecraft.client.renderer.entity.layers; import net.minecraft.client.entity.AbstractClientPlayer; import net.minecraft.client.model.ModelElytra; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.entity.RenderLivingBase; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EnumPlayerModelParts; import net.minecraft.init.Items; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class LayerElytra implements LayerRenderer<EntityLivingBase> { /** The basic Elytra texture. */ private static final ResourceLocation TEXTURE_ELYTRA = new ResourceLocation("textures/entity/elytra.png"); /** Instance of the player renderer. */ protected final RenderLivingBase<?> renderPlayer; /** The model used by the Elytra. */ private final ModelElytra modelElytra = new ModelElytra(); public LayerElytra(RenderLivingBase<?> p_i47185_1_) { this.renderPlayer = p_i47185_1_; } public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) { ItemStack itemstack = entitylivingbaseIn.getItemStackFromSlot(EntityEquipmentSlot.CHEST); if (itemstack.getItem() == Items.ELYTRA) { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); if (entitylivingbaseIn instanceof AbstractClientPlayer) { AbstractClientPlayer abstractclientplayer = (AbstractClientPlayer)entitylivingbaseIn; if (abstractclientplayer.isPlayerInfoSet() && abstractclientplayer.getLocationElytra() != null) { this.renderPlayer.bindTexture(abstractclientplayer.getLocationElytra()); } else if (abstractclientplayer.hasPlayerInfo() && abstractclientplayer.getLocationCape() != null && abstractclientplayer.isWearing(EnumPlayerModelParts.CAPE)) { this.renderPlayer.bindTexture(abstractclientplayer.getLocationCape()); } else { this.renderPlayer.bindTexture(TEXTURE_ELYTRA); } } else { this.renderPlayer.bindTexture(TEXTURE_ELYTRA); } GlStateManager.pushMatrix(); GlStateManager.translate(0.0F, 0.0F, 0.125F); this.modelElytra.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, entitylivingbaseIn); this.modelElytra.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale); if (itemstack.isItemEnchanted()) { LayerArmorBase.renderEnchantedGlint(this.renderPlayer, entitylivingbaseIn, this.modelElytra, limbSwing, limbSwingAmount, partialTicks, ageInTicks, netHeadYaw, headPitch, scale); } GlStateManager.disableBlend(); GlStateManager.popMatrix(); } } public boolean shouldCombineTextures() { return false; } }
[ "254664427@qq.com" ]
254664427@qq.com
9b54b3143950befe74b7a494369714774c6bf65d
efbfbad75813b92ba0cce0df492fe6c7cf41a8c6
/basic-properties/src/main/java/example/component/Example3Component.java
b660dbcf3111c74136fddc7942c47bcc0d9f7a44
[]
no_license
sergueik/springboot_study
d4636cd255cdaec07a22276393541a7dd9bb97c1
59c87d64d0d8d5e2eae6fe496b2a84425208fcfd
refs/heads/master
2023-09-01T14:04:34.285473
2023-08-31T22:29:09
2023-08-31T22:29:09
101,407,389
5
6
null
2023-03-04T00:57:19
2017-08-25T13:38:05
Java
UTF-8
Java
false
false
1,444
java
package example.component; import java.util.Properties; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class Example3Component { // private static Example3Component instance = new Example3Component(); private boolean debug = false; public void setDebug(boolean value) { debug = value; } private String derivedProperty1; private String derivedProperty2; public Example3Component() { } public Example3Component(@Autowired Properties properties) { // NOTE: derivedProperty1 = property1; } @Value("${example.Property1:property1 default value}") private String property1; @Value("${example.Property2:property2 default value}") private String property2; public String getProperty1() { return property1; } public String getDerivedProperty1() { return derivedProperty1; } public String getDerivedProperty2() { defineDerivedProperties(); return derivedProperty2; } public String getProperty2() { return property2; } private void defineDerivedProperties() { if (derivedProperty2 == null) { derivedProperty2 = property2; } // NOTE: also set in constructor, which is wrong // this code will lead to change of the response page between first and // subsequent invocations if (derivedProperty1 == null) { derivedProperty1 = property1; } } }
[ "kouzmine_serguei@yahoo.com" ]
kouzmine_serguei@yahoo.com
e1ca35d4e2e478fc7b75e63779f519416e6cbf5d
0429ec7192a11756b3f6b74cb49dc1ba7c548f60
/src/main/java/com/linkage/module/gtms/config/obj/ConfigOBJ.java
a502f15ec86c5ee7555b63fa2513a151eabd5eb0
[]
no_license
lichao20000/WEB
5c7730779280822619782825aae58506e8ba5237
5d2964387d66b9a00a54b90c09332e2792af6dae
refs/heads/master
2023-06-26T16:43:02.294375
2021-07-29T08:04:46
2021-07-29T08:04:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,936
java
package com.linkage.module.gtms.config.obj; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.linkage.commons.util.StringUtil; public class ConfigOBJ { private static Logger logger = LoggerFactory.getLogger(ConfigOBJ.class); private long task_id; private int service_id; private String query_sql; private String param; private int gw_type; private long add_time; private int task_status; private ConfigOBJ obj; public ConfigOBJ joinObj(Map<String,String> map) { obj=new ConfigOBJ(); obj.setTask_id(StringUtil.getLongValue(map,"task_id")); obj.setService_id(StringUtil.getIntValue(map,"service_id")); obj.setQuery_sql(StringUtil.getStringValue(map, "query_sql")); obj.setParam(StringUtil.getStringValue(map, "param")); obj.setGw_type(StringUtil.getIntValue(map, "gw_type")); obj.setAdd_time(StringUtil.getLongValue(map,"add_time")); obj.setTask_status(StringUtil.getIntValue(map, "task_status")); logger.warn("ConfigOBJ task_id:{}",obj.getTask_id()); return obj; } public long getTask_id() { return task_id; } public void setTask_id(long task_id) { this.task_id = task_id; } public int getService_id() { return service_id; } public void setService_id(int service_id) { this.service_id = service_id; } public String getQuery_sql() { return query_sql; } public void setQuery_sql(String query_sql) { this.query_sql = query_sql; } public String getParam() { return param; } public void setParam(String param) { this.param = param; } public int getGw_type() { return gw_type; } public void setGw_type(int gw_type) { this.gw_type = gw_type; } public long getAdd_time() { return add_time; } public void setAdd_time(long add_time) { this.add_time = add_time; } public int getTask_status() { return task_status; } public void setTask_status(int task_status) { this.task_status = task_status; } }
[ "di4zhibiao.126.com" ]
di4zhibiao.126.com
b200135a6a1fd23b6b8666b19ebf5eda8e6a6207
3d30a18febe46b5591fd869229edf5dba9597fcf
/src/main/java/calc/repo/calc/BalanceSubstResultNoteRepo.java
a817307f86a9f2728e2fc3b50a88cc6d35f1693b
[]
no_license
eugenenew80/blnCalc
1b8e23f73f933ab26eb83918c7a0da91cfa6ebce
0f9115d274aec49853241edf80cb8ccd07cfe243
refs/heads/master
2023-07-21T14:08:22.244805
2020-05-11T10:07:11
2020-05-11T10:07:11
127,637,883
0
0
null
2023-07-16T18:49:07
2018-04-01T14:42:56
Java
UTF-8
Java
false
false
391
java
package calc.repo.calc; import calc.entity.calc.bs.BalanceSubstResultNote; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface BalanceSubstResultNoteRepo extends JpaRepository<BalanceSubstResultNote, Long> { List<BalanceSubstResultNote> findAllByHeaderId(Long headerId); }
[ "eugenenew80@gmail.com" ]
eugenenew80@gmail.com
8a8ee13dddbdb2b3f2c526e861b49c99ce2110f2
e4aea93f2988e2cf1be4f96a39f6cc3328cbbd50
/src/com/flagleader/a/b/l.java
caa51b6852901852a5d40c5b04eb5589f8c0a8a2
[]
no_license
lannerate/ruleBuilder
18116282ae55e9d56e9eb45d483520f90db4a1a6
b5d87495990aa1988adf026366e92f7cbb579b19
refs/heads/master
2016-09-05T09:13:43.879603
2013-11-10T08:32:58
2013-11-10T08:32:58
14,231,127
0
1
null
null
null
null
UTF-8
Java
false
false
712
java
package com.flagleader.a.b; import com.flagleader.a.B; import com.flagleader.a.R; import com.flagleader.a.c.x; import com.flagleader.util.collection.DynamicIterator; import com.flagleader.util.collection.IIterator; class l extends x { l(h paramh, IIterator paramIIterator) { super(paramIIterator); } public IIterator a(Object paramObject) { if ((paramObject instanceof B)) { B localB = (B)paramObject; return localB.q() == null ? DynamicIterator.EmptyIterator() : localB.q().c(); } return null; } } /* Location: D:\Dev_tools\ruleEngine\rbuilder.jar * Qualified Name: com.flagleader.a.b.l * JD-Core Version: 0.6.0 */
[ "zhanghuizaizheli@hotmail.com" ]
zhanghuizaizheli@hotmail.com
891843b579800b0a12ec1e4ad4cf3ab7b7c5f112
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XCOMMONS-928-8-3-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/job/AbstractJob_ESTest_scaffolding.java
482fbbd300d2773390385d08be380e4c0307ed18
[]
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
429
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Tue Apr 07 16:30:29 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
a31facb5873f0a021975f3aa2333d4a2bbfaf3ac
9aca950475568296704a1282759bc080d45129f1
/src/net/minecraft/azr.java
129171f09590eb43ca345dcec11f25df292864bb
[]
no_license
jiangzhonghui/MinecraftServerDec
1ef67dc5a4f34abffeaf6a6253ef8a2fb6449957
ca2f62642a5629ebc3fa7ce356142e767be85e10
refs/heads/master
2021-01-22T16:13:27.101670
2014-11-09T10:15:49
2014-11-09T10:15:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,076
java
package net.minecraft; public enum azr implements IStringSerializable { a("DEFAULT", 0, 0, "red_sandstone", "default"), b("CHISELED", 1, 1, "chiseled_red_sandstone", "chiseled"), c("SMOOTH", 2, 2, "smooth_red_sandstone", "smooth"); private static final azr[] d = new azr[values().length]; private final int e; private final String f; private final String g; // $FF: synthetic field private static final azr[] h = new azr[] { a, b, c }; private azr(String var1, int var2, int var3, String var4, String var5) { this.e = var3; this.f = var4; this.g = var5; } public int a() { return this.e; } public String toString() { return this.f; } public static azr a(int var0) { if (var0 < 0 || var0 >= d.length) { var0 = 0; } return d[var0]; } public String l() { return this.f; } public String c() { return this.g; } static { azr[] var0 = values(); int var1 = var0.length; for (int var2 = 0; var2 < var1; ++var2) { azr var3 = var0[var2]; d[var3.a()] = var3; } } }
[ "Shev4ik.den@gmail.com" ]
Shev4ik.den@gmail.com
84686669c852f33bb8e47bfc75e0175e1e20bbc8
811e44a12484ba80aa534ff9e6561bd97241c82a
/StarBattle_GameDebug/src/com/starbattle/debug/server/SendClientsConnection.java
7307ccc9a7d5d8cf7af73387a723b542b6d2821a
[]
no_license
Seiseikatsu/dhbwStarbattle
41ba32502426c582e858609ad8b5b8e6a004a811
2d1e39d66213bf31112646e970979d9d51f5e5b4
refs/heads/master
2020-06-02T08:01:45.033812
2015-07-02T19:05:46
2015-07-02T19:05:46
24,839,183
2
3
null
null
null
null
UTF-8
Java
false
false
190
java
package com.starbattle.debug.server; public interface SendClientsConnection { public void sendToClients(Object object); public void sendToClient(String name, Object object); }
[ "roll2@web.de" ]
roll2@web.de
8a072efc531cbc688c8999309d7777d2d2add974
7aa02f902ad330c70b0b34ec2d4eb3454c7a3fc1
/p007b/p008a/p009a/ah.java
ed195d4bdea8b0a168e7dd4a57dc1c621ae28e78
[]
no_license
hisabimbola/andexpensecal
5e42c7e687296fae478dfd39abee45fae362bc5b
c47e6f0a1a6e24fe1377d35381b7e7e37f1730ee
refs/heads/master
2021-01-19T15:20:25.262893
2016-08-11T16:00:49
2016-08-11T16:00:49
100,962,347
1
0
null
2017-08-21T14:48:33
2017-08-21T14:48:33
null
UTF-8
Java
false
false
309
java
package p007b.p008a.p009a; /* renamed from: b.a.a.ah */ public final class ah { public static final ah f507a; public static final ah f508b; public static final ah f509c; static { f507a = new ah(); f508b = new ah(); f509c = new ah(); } private ah() { } }
[ "m.ravinther@yahoo.com" ]
m.ravinther@yahoo.com
bd00bb7a0cc7432ff8293b78e967b8022c9af3cc
7fa55e036b0064827dfd46072da20dab0407801f
/src/main/java/com/marcuschiu/example/customservletcontextinitializer/Application.java
720ec3dd740efd173b135435f735681bf6c3e447
[]
no_license
SpringBootMarcusChiu/application-context-custom-servlet-context-initializer
6a97cc47969bf313f794e07541d8660748e3783f
aa710a4f0fa51a6d892daf081082588111965f84
refs/heads/master
2021-07-23T14:29:28.023935
2020-10-22T04:30:59
2020-10-22T04:30:59
226,788,035
0
0
null
null
null
null
UTF-8
Java
false
false
470
java
package com.marcuschiu.example.customservletcontextinitializer; import com.marcuschiu.example.customservletcontextinitializer.servlet.CustomServletContextInitializer; import org.springframework.boot.SpringApplication; public class Application { public static void main(String[] args) { SpringApplication.run(CustomServletContextInitializer.class, args); // SpringApplication.run(new Class[] { CustomServletContextInitializer.class }, args); } }
[ "marcuschiu9@gmail.com" ]
marcuschiu9@gmail.com
48caf976b6eb6eb984da36451d00a3b38025166a
f42ff86f7bac5ff99e4be64d1c2536ffee345378
/src/main/java/tony/util/NestedInteger.java
47c6c8ef5d66b7bbf740e23b20e4724d4279a084
[]
no_license
tonybro233/leetcode-java-record
71c5cb565b71e0006386e20f1ac67698f6679c4e
7b861da5fa332999d415b2f31a95733959e78550
refs/heads/master
2023-03-09T21:22:45.840994
2022-12-13T15:12:19
2022-12-13T15:12:19
158,099,906
0
0
null
2020-10-14T08:32:45
2018-11-18T15:47:36
Java
UTF-8
Java
false
false
1,432
java
package tony.util; import java.util.ArrayList; import java.util.List; /** * NestedInteger for Leetcode problem: Flatten Nested List Iterator * ex: * [[1,1],2,[1,1]] * [1,[4,[6]]] * Related Problem: * #341 - Flatten Nested List Iterator * #385 - Mini Parser * */ public class NestedInteger { public Integer num = null; public List<NestedInteger> nums = null; public NestedInteger() { nums = new ArrayList<NestedInteger>(); } public NestedInteger(int num) { this.num = num; } public boolean isInteger() { return nums == null; } public Integer getInteger() { return num; } public List<NestedInteger> getList() { return nums; } public boolean add(NestedInteger n) { if (isInteger()) { return false; } else { nums.add(n); return true; } } /** Serialization */ @Override public String toString() { if (isInteger()) { return "" + num; } else { StringBuilder sb = new StringBuilder(); sb.append("["); for (NestedInteger ni : nums) { sb.append(ni.toString()); sb.append(","); } int len = sb.length(); sb.delete(len-1,len); sb.append("]"); return sb.toString(); } } }
[ "x2040052@126.com" ]
x2040052@126.com
fcb103f74d2165673db81c2a34434cec7e7af32f
aa4a2eff34e4e4b4db02cb6c3195cfe940e47c74
/app/src/main/java/com/android2ee/formation/inter/premierprojet/decxxdv/MainActivity.java
eb8e7cc205620d6d1315dbc02ab7371454e31c4e
[ "Apache-2.0" ]
permissive
MathiasSeguy-Android2EE/PremierProjetDecXxdv
ac48697bed26e35e6806cc7536fd610870dac391
5345394c544ad947beb715e41f489f5aa4e75040
refs/heads/master
2020-05-31T19:01:50.558850
2019-06-05T18:37:12
2019-06-05T18:37:12
190,448,910
1
0
null
null
null
null
UTF-8
Java
false
false
526
java
package com.android2ee.formation.inter.premierprojet.decxxdv; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { /*********************************************************** * Managing LifeCycle **********************************************************/ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }
[ "mathias.seguy@android2ee.com" ]
mathias.seguy@android2ee.com
1036a0df58612bb6751264807441c43c2a38a1ae
be71bc9c35464b19483876e3e1739a6f3e0fff1f
/Flynas/src/test/java/flynas/android/scripts/uat/routes/TC160_oneWayInternationalBusiness_RUH_KWI.java
2104f09a1b44c03f56924cc4d31323481840fee3
[]
no_license
E003901cigniti/Flynas_IOS
7d077dc67a7a3042e607b1ccfef554d929cfbe79
123e773deb7e02eb0b46e4d44bdc6f74ca4a7e52
refs/heads/master
2021-09-19T02:36:09.052168
2018-07-22T07:06:22
2018-07-22T07:06:22
111,407,173
0
0
null
null
null
null
UTF-8
Java
false
false
4,456
java
package flynas.android.scripts.uat.routes; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import com.ctaf.accelerators.TestEngine; import com.ctaf.support.ExcelReader; import com.ctaf.support.HtmlReportSupport; import com.ctaf.utilities.Reporter; import flynas.android.testObjects.BookingPageLocators; import flynas.android.workflows.BookingPageFlow; import flynas.android.workflows.Homepage; public class TC160_oneWayInternationalBusiness_RUH_KWI extends BookingPageFlow{ ExcelReader xls = new ExcelReader(configProps.getProperty("TestDataForAndroid"),"TestData"); @Test(dataProvider = "testData",groups={"Business"}) public void TC_160_oneWayInternationalBusiness_RUH_KWI(String tripType, String origin, String dest, String deptDate, String origin2,String departure2, String retdate,String Audalt,String Child,String infant, String promo, String strBookingClass, String FlightType,String totalpass,String namtionality,String Doctypr,String docNumber, String naSmiles,String Mobile,String email ,String SelectSeat,String paymenttype,String bookingtype, String charity,String Currency, String Description ) throws Throwable { try { TestEngine.testDescription.put(HtmlReportSupport.tc_name, Description); //Handlepopup(); String[] Credentials = pickCredentials("UserCredentials"); String username =Credentials[0]; String password =Credentials[1]; String depDate = pickDate(deptDate); Homepage homepage = new Homepage(); homepage.select_TittleMenu(); homepage.Click_login(); homepage.Login(username,password); homepage.select_Bookflights("registered"); inputBookingDetails(tripType, origin, dest, depDate, origin2, departure2, retdate,Audalt, Child, infant,promo,Currency); selectClass(strBookingClass, tripType); waitforElement(BookingPageLocators.title); scrollToText("Email Address*"); if(isElementDisplayedTemp(BookingPageLocators.continuebtn)==false) { scrollToElement(BookingPageLocators.continuebtn); } click(BookingPageLocators.continuebtn, "Continue"); Baggage(bookingtype, totalpass); click(BookingPageLocators.continuebtn, "Continue"); waitforElement(BookingPageLocators.seatSelecttionTittle); if(isElementDisplayedTemp(BookingPageLocators.seatSelecttionTittle)==true){ click(BookingPageLocators.continuebtn, "Continue"); }else{ System.out.println("No Seat is Available"); } payment(paymenttype,""); validate_ticketStatus(); String PNRnumber = getReferenceNumber(); System.out.println(PNRnumber); click(BookingPageLocators.tittleHome, "Home Img"); handleRatingRequest(); homepage.select_OnlineCheckIn("registered"); registeredUsrManageFlight(PNRnumber); performCheckin(); cntinueOnTravelDocument(); cntinueRandomSeatSelection(); confirmRandomSeatSelection(); validateCheckin(); Reporter.SuccessReport("TC160_oneWayInternationalBusiness_RUH_KWI", "Pass"); } catch (Exception e) { e.printStackTrace(); Reporter.failureReport("TC160_oneWayInternationalBusiness_RUH_KWI", "Failed"); } } @DataProvider(name="testData") public Object[][] createdata1() { return (Object[][]) new Object[][] { {xls.getCellValue("Trip Type", "Value"), xls.getCellValue("Origin", "Value36"), xls.getCellValue("Destination", "Value36"), xls.getCellValue("Departure Date", "Value"), "", "", xls.getCellValue("Return Date", "Value"), xls.getCellValue("Adults Count", "Value"), xls.getCellValue("Child Count", "Value"), xls.getCellValue("Infant Count", "Value"), xls.getCellValue("Promo", "Value"), xls.getCellValue("Booking Class", "Value3"), xls.getCellValue("Flight Type", "Value"), xls.getCellValue("Total Passenger", "Value"), xls.getCellValue("Nationality", "Value"), xls.getCellValue("Document Type", "Value"), xls.getCellValue("Doc Number", "Value"), xls.getCellValue("na Smiles", "Value"), xls.getCellValue("Mobile", "Value"), xls.getCellValue("Email Address", "Value"), xls.getCellValue("Select Seat", "Value"), xls.getCellValue("Payment Type", "Value2"), "", xls.getCellValue("Charity Donation", "Value"), xls.getCellValue("Currency", "Value"), "Validate oneWay International Business_RUH_KWI"}}; } }
[ "RahuRam.k_33723617+E003901cigniti@users.noreply.github.com" ]
RahuRam.k_33723617+E003901cigniti@users.noreply.github.com
7df607c2d8072f585c1a80e05e0f04bec8410e28
878189510f282ab7e01610e57b612a11c91a1766
/app/src/main/java/com/example/trekkersdenv2/treklocations.java
baca0f103068a72c00c132fff7ae2d83b9192b1e
[]
no_license
Sathiyanarayanan10/Trekker-sDenV2
750a248135d47b639922f293f5c6e7fdc4669cde
5ef7a4e6a6d76dc76867e462bfdb25653ae06c7f
refs/heads/master
2023-08-18T13:03:42.467582
2021-09-25T13:17:48
2021-09-25T13:17:48
403,320,004
1
0
null
null
null
null
UTF-8
Java
false
false
497
java
package com.example.trekkersdenv2; public class treklocations { private final String name; private final String state; private final String location; public treklocations(String name, String state,String location) { this.name = name; this.state = state; this.location = location; } public String getName(){ return name; } public String getState(){ return state; } public String getLocation() {return location;} }
[ "you@example.com" ]
you@example.com
4596e725ba06f5dabaf42ba3b3a0cd00efca019e
6b3f5e9539c5915d6cbce731363a6299975bf27b
/app/src/main/java/com/wangban/yzbbanban/test_contentprovider/MyContentProvider.java
d89fe6c021f432168a911a544d1cc5b89443915b
[]
no_license
yzbbanban/Test_contentProvider
14f28338677e16268aa3ade4cb325ac16f01dcad
6fe58c78e75abc9fd00a4f56662617f518f7a744
refs/heads/master
2021-01-20T18:28:10.873818
2016-07-29T13:31:26
2016-07-29T13:31:26
64,398,525
0
0
null
null
null
null
UTF-8
Java
false
false
3,186
java
package com.wangban.yzbbanban.test_contentprovider; import android.content.ContentProvider; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import android.net.Uri; import android.support.annotation.Nullable; /** * Created by YZBbanban on 16/7/29. */ public class MyContentProvider extends ContentProvider { public static final int TABLE1_DIR = 0; public static final int TABLE1_ITEM = 1; public static final int TABLE2_DIR = 2; public static final int TABLE2_ITEM = 3; private static UriMatcher uriMatcher; static { uriMatcher = new UriMatcher(UriMatcher.NO_MATCH); uriMatcher.addURI("com.wangban.yzbbanban.test_contentprovider", "table1", TABLE1_DIR); uriMatcher.addURI("com.wangban.yzbbanban.test_contentprovider", "table1/#", TABLE1_DIR); uriMatcher.addURI("com.wangban.yzbbanban.test_contentprovider", "table2", TABLE1_DIR); uriMatcher.addURI("com.wangban.yzbbanban.test_contentprovider", "table2/#", TABLE1_DIR); } @Override public boolean onCreate() { return false; } @Nullable @Override public Cursor query(Uri uri, String[] strings, String s, String[] strings1, String s1) { switch (uriMatcher.match(uri)) { case TABLE1_DIR: //查询table1表中所有的数据 break; case TABLE1_ITEM: //查询table1表中的单条数据 break; case TABLE2_DIR: //查询table2表中的所有数据 break; case TABLE2_ITEM: //查询table2表中的单条数据 break; } return null; } /** * 用于获取 Uri对象所对应的 MIME 类型 * * @param uri * @return */ @Nullable @Override public String getType(Uri uri) { switch (uriMatcher.match(uri)) { case TABLE1_DIR: return "vnd.android.cursor.dir/vnd.com.wangban.yzbbanban.test_contentprovider.table1"; case TABLE1_ITEM: return "vnd.android.cursor.item/vnd.com.wangban.yzbbanban.test_contentprovider.table1"; case TABLE2_DIR: return "vnd.android.cursor.dir/vnd.com.wangban.yzbbanban.test_contentprovider.table2"; case TABLE2_ITEM: return "vnd.android.cursor.item/vnd.com.wangban.yzbbanban.test_contentprovider.table2"; default: break; } return null; } @Nullable @Override public Uri insert(Uri uri, ContentValues contentValues) { switch (uriMatcher.match(uri)) { case TABLE1_DIR: break; case TABLE1_ITEM: break; case TABLE2_DIR: break; case TABLE2_ITEM: break; } return null; } @Override public int delete(Uri uri, String s, String[] strings) { return 0; } @Override public int update(Uri uri, ContentValues contentValues, String s, String[] strings) { return 0; } }
[ "yzbbanban@live.com" ]
yzbbanban@live.com
39ce13829f558615ece5b323c0567c897009e624
4e8d52f594b89fa356e8278265b5c17f22db1210
/WebServiceArtifacts/FlightAlertsV1SoapService/com/flightstats/alerts/api/v1/ByRouteDepartureResponse.java
3bc88f4a1781a50b8efc7f147becde509b19e5ba
[]
no_license
ouniali/WSantipatterns
dc2e5b653d943199872ea0e34bcc3be6ed74c82e
d406c67efd0baa95990d5ee6a6a9d48ef93c7d32
refs/heads/master
2021-01-10T05:22:19.631231
2015-05-26T06:27:52
2015-05-26T06:27:52
36,153,404
1
2
null
null
null
null
UTF-8
Java
false
false
1,518
java
package com.flightstats.alerts.api.v1; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for byRouteDepartureResponse complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="byRouteDepartureResponse"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="return" type="{http://v1.api.alerts.flightstats.com/}responseRoute" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "byRouteDepartureResponse", propOrder = { "_return" }) public class ByRouteDepartureResponse { @XmlElement(name = "return") protected ResponseRoute _return; /** * Gets the value of the return property. * * @return * possible object is * {@link ResponseRoute } * */ public ResponseRoute getReturn() { return _return; } /** * Sets the value of the return property. * * @param value * allowed object is * {@link ResponseRoute } * */ public void setReturn(ResponseRoute value) { this._return = value; } }
[ "ouni_ali@yahoo.fr" ]
ouni_ali@yahoo.fr
5bdfcbdde5dc7340ae7ac32bfb66fa1b3fff210d
7bee5d30bf02e4f6b1683cca5f8a7829d5561c73
/drools/drools-intro/src/main/java/com/ymmihw/libraries/drools/config/DroolsBeanFactory.java
b10060a691f4fd2979e949750e63daa877ed16a9
[]
no_license
ymmihw/libraries
1950e0d6168c269b081d01ebcb4260e9d5db934d
d5a3c05d9951a425bd5e634acf53dd5d3d9ab86b
refs/heads/master
2023-05-29T08:18:12.980386
2023-05-15T08:39:09
2023-05-15T08:39:09
133,004,801
4
1
null
2023-05-15T08:39:10
2018-05-11T07:24:26
Java
UTF-8
Java
false
false
1,495
java
package com.ymmihw.libraries.drools.config; import java.io.IOException; import java.util.Arrays; import java.util.List; import org.kie.api.KieServices; import org.kie.api.builder.KieBuilder; import org.kie.api.builder.KieFileSystem; import org.kie.api.builder.KieModule; import org.kie.api.runtime.KieContainer; import org.kie.api.runtime.KieSession; import org.kie.internal.io.ResourceFactory; public class DroolsBeanFactory { private static final String RULES_PATH = "com/ymmihw/libraries/drools/rules/"; private KieServices kieServices() { return KieServices.Factory.get(); } private List<String> ruleFiles() { return Arrays.asList("SuggestApplicant.drl", "Product_rules.xls"); } private KieFileSystem kieFileSystem() throws IOException { KieFileSystem kieFileSystem = kieServices().newKieFileSystem(); for (String file : ruleFiles()) { kieFileSystem.write(ResourceFactory.newClassPathResource(RULES_PATH + file, "UTF-8")); } return kieFileSystem; } private KieContainer kieContainer() throws IOException { KieBuilder kb = kieServices().newKieBuilder(kieFileSystem()); kb.buildAll(); KieModule kieModule = kb.getKieModule(); return kieServices().newKieContainer(kieModule.getReleaseId()); } public KieSession kieSession() { try { return kieContainer().newKieSession(); } catch (IOException e) { e.printStackTrace(); return null; } } }
[ "whimmy@126.com" ]
whimmy@126.com
3112bf8a1ed952082bad20aa9e7332dc237fe293
40ded5811fc9113d0f6657e7a19800ca562fcd00
/com/faw_qm/cappclients/conscapproute/util/CappRouteRB_en_US.java
f000b358bcf8bf7c16cb89459eb5d79e2ba42e0d
[]
no_license
jlcczzj/chengduCode
9ba3001654e02bd099e7f702e441d171b726549b
7de3580e5650e8674b9cf14583367bec82bd5801
refs/heads/master
2020-03-23T16:08:04.366204
2018-01-28T02:55:26
2018-01-28T02:55:26
null
0
0
null
null
null
null
GB18030
Java
false
false
6,053
java
/** * 生成程序 CappRouteRB_en_US.java 1.0 2004/02/19 * 版权归一汽启明公司所有 * 本程序属一汽启明公司的私有机要资料 * 未经本公司授权,不得非法传播和盗用 * 可在本公司授权范围内,使用本程序 * 保留所有权利 */ package com.faw_qm.cappclients.conscapproute.util; import java.util.ListResourceBundle; /** * <p> Title:工艺路线模块的资源类 </p> <p> Description: </p> <p> Copyright: Copyright (c) 2004 </p> <p> Company: 一汽启明 </p> * @author 刘明 * @version 1.0 */ public class CappRouteRB_en_US extends ListResourceBundle { /** * 构造资源类 * @roseuid 4031A6770159 */ public CappRouteRB_en_US() { } /** * 获得资源内容 * @return Object[][] 对象2维数组 * @roseuid 4031A6760325 */ protected Object[][] getContents() { return contents; } static final Object contents[][] = { //JButtons {"OkJButton", "确定"}, {"CancelJButton", "取消"}, {"SaveJButton", "保存"}, {"QuitJButton", "退出"}, {"addJButton", "添加"}, {"deleteJButton", "删除"}, {"searchTreeJButton", "搜索"}, {"upJButton", "上移"}, {"downJButton", "下移"}, {"browseJButton", "浏览"}, //JLabel {"checking in", "正在检入"}, {"describe", "注释"}, {"reviseTypeJLabel", "修订路线表"}, {"descriJLabel", "说明"}, //Titles {"exception", "异常信息"}, {"information", "提示"}, {"error", "错误"}, {"warning", "警告"}, {"notice", "通知"}, {"afreshAssignLifeCycle", "重新指定生命周期"}, {"afreshAssignProject", "重新指定工作组"}, {"findPartTitle", "搜索零部件"}, {"reviseTitle", "修订"}, {"checkInTitle", "检入工艺路线表"}, {"toolbar.icons", // "routeList_create,routeList_update,routeList_delete,Spacer,routeList_checkIn,routeList_checkOut,routeList_repeal,Spacer,routeList_view,public_search,Spacer,route_edit,Spacer,public_help" }, "routeList_create,routeList_update,routeList_delete,Spacer,routeList_checkIn,routeList_checkOut,routeList_repeal,Spacer,routeList_view,public_search,Spacer,route_edit"}, {"toolbar.text", // "创建,更新,删除,Spacer,检入,检出,撤消检出,Spacer,查看,搜索,Spacer,编辑路线,Spacer,帮助" }, "创建,更新,删除,Spacer,检入,检出,撤消检出,Spacer,查看,搜索,Spacer,编辑路线"}, {"routetoolbar.icons", // "route_create,route_update,route_delete,Spacer,public_refresh,public_clear,Spacer,route_view,route_selectPart,Spacer,public_help" }, "route_create,route_update,route_delete,Spacer,public_refresh,public_clear,Spacer,route_view,route_selectPart"}, {"routetoolbar.text", "创建,更新,删除,Spacer,刷新,清除,Spacer,查看,选择,Spacer,帮助"}, {"1", "缺乏必须的资源。"}, {"2", "*并没有发生任何更改。"}, {"3", "编号不能为空。"}, {"4", "名称不能为空。"}, {"5", "缺少必需的字段"}, {"6", "资料夹位置不能为空。"}, {"7", "资料夹路径无效"}, {"8", "所指定的资料夹不是您的个人资料夹"}, {"9", "正在保存..."}, {"10", "零部件*已存在,不可重复添加。"}, {"11", "“用于产品”项不能为空。"}, {"12", "是否保存新建路线表?"}, {"13", "是否保存更新路线表?"}, {"14", "指定的路径不存在或不可用。请确认您是否录入了正确的文件扩展名。"}, {"15", "文件已存在,请重新指定文件名。"}, {"16", "是否保存新建路线?"}, {"17", "是否保存更新路线?"}, {"20", "选择的对象类型错误。"}, {"21", "删除操作将无法恢复,是否继续?"}, {"22", "系统配置错误,请与系统管理员联系!"}, {"23", "必须指定资料夹位置,才能执行检入。请选择资料夹。"}, {"24", "检入*失败,因为主要内容的上载或存储过程中出现错误。"}, {"25", "*正处于非首次检入状态。请先检出它,再执行检入操作。"}, {"26", "您没有选择操作对象,无法执行当前操作。"}, {"27", "*已经被用户*检出。"}, {"28", "*已经被您检出。"}, {"29", "在初始化本地化资源时出错."}, {"30", "您确实要撤消检出*,并丢失所有变更吗?"}, {"31", "*已经被检出到资料夹*中!"}, {"32", "在搜索检出资料夹 * 时发生错误."}, {"33", "*已经被他人检出!"}, {"34", "检出*失败!"}, {"35", "您未获得修订*的许可,因为它尚未被检入。"}, {"36", "*已经被*检出,您确实要检入它吗?"}, {"37", "尚未指定存放当前对象的副本的资料夹。必须给定检出资料夹,才能检出。"}, {"38", "无法找到包含*的工作副本的资料夹,因为*没有被检出。"}, {"39", "不能删除*,因为它已经被检出!"}, {"40", "*需要检出到个人资料夹中才能修改,现在要检出吗?"}, {"41", "您尚未检出*,它当前正被*检出。"}, {"42", "您未获得检出*的许可,因为它尚未被检入。"}, {"43", "您尚未检出*。"}, {"44", "*已被*检出。您确实要撤销检出并丢弃所有变更吗?"}, {"45", "请选择欲编辑路线的零部件。"}, {"46", "当前没有可供选择的零部件。"}, {"47", "*是工作副本的原本,不允许修改!"}, {"48", "单位不能为空。"}, {"49", "零部件*的工艺路线已存在,不能创建新的工艺路线"}, {"50", "零部件*的工艺路线不存在,不能执行当前操作。"}, {"51", "是否退出工艺路线管理器?"}, {"55", "零部件*没有符合配置规范的版本,不可添加。"},}; }
[ "mario@Mario-PC" ]
mario@Mario-PC
d9d59b426a61eb8cb0da57321c9a0915a009a190
bbef8e109f6aecd4cd574221dd2741db49f2f0ab
/app/src/main/java/com/chequp/admin/model/WidthdrawModel.java
dc02f1220ce3d6795d7db2108867a09e4484a94b
[]
no_license
mukul2/ChecqupAdmin
8e5b3b8adfd7f7a86728d290cdb67b6416918606
20731159584b35bb3546bb8f325c35ae295f037a
refs/heads/master
2022-10-21T19:20:23.746042
2020-06-07T22:30:55
2020-06-07T22:30:55
270,192,460
0
0
null
null
null
null
UTF-8
Java
false
false
893
java
package com.chequp.admin.model; public class WidthdrawModel { Integer id; Integer amount; Integer status; String created_at; String bankinfo; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getAmount() { return amount; } public void setAmount(Integer amount) { this.amount = amount; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getCreated_at() { return created_at; } public void setCreated_at(String created_at) { this.created_at = created_at; } public String getBankinfo() { return bankinfo; } public void setBankinfo(String bankinfo) { this.bankinfo = bankinfo; } }
[ "saidur.shawon@gmail.com" ]
saidur.shawon@gmail.com
2c55ddd705f7f674f2e0271ac4764d31dbb678a7
55ebdc98f90bba37dd34f5020e9b2f55ab4f747b
/src/main/java/com/sybase365/mobiliser/web/cst/pages/customercare/alerts/EditContactPointPage.java
19b047a2ac2e0f0bf052cc437c11c94cc62f7e79
[]
no_license
chandusekhar/btpn_portal
aa482eef5a760a4a3a79dd044258014c145183f1
809b857bfe01cbcf2b966e85ebb8fc3bde02680e
refs/heads/master
2020-09-27T08:29:09.299858
2014-12-07T10:44:58
2014-12-07T10:45:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
961
java
package com.sybase365.mobiliser.web.cst.pages.customercare.alerts; import com.sybase365.mobiliser.util.alerts.contract.v5_0.beans.CustomerOtherIdentification; import com.sybase365.mobiliser.web.common.panels.alerts.EditContactPointPanel; import com.sybase365.mobiliser.web.cst.pages.customercare.CustomerCareMenuGroup; /** * @author Pavan Raya */ public class EditContactPointPage extends CustomerCareMenuGroup { private static final long serialVersionUID = 1L; private EditContactPointPanel editContactPointPanel; private CustomerOtherIdentification entry; public EditContactPointPage() { super(); } public EditContactPointPage(CustomerOtherIdentification entry) { this.entry = entry; editContactPointPanel = new EditContactPointPanel( "editContactPointPanel", this, entry); add(editContactPointPanel); } @Override protected Class<ContactPointsPage> getActiveMenu() { return ContactPointsPage.class; } }
[ "antrouzz@gmail.com" ]
antrouzz@gmail.com
872e8912052c88439db4c8e52cbbcc489173e84c
23f121744f4af73ef24ec0e48e52e3287ff40d68
/Iwinter3/src/org/iwinter/framework/reader/ClassPathXmlReader.java
37d523082570ed7f925564ae8c50b17ebaa3a855
[]
no_license
henry995821881/java
21bdeba164c021acd863fe7773f1a835ab50bc86
2eb1793deff2637b9f02c9fccd7a4e3962f77977
refs/heads/master
2020-04-06T06:56:17.037628
2016-09-05T02:16:55
2016-09-05T02:16:55
65,828,355
0
0
null
null
null
null
UTF-8
Java
false
false
1,133
java
package org.iwinter.framework.reader; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.SAXException; public class ClassPathXmlReader extends AbsXmlReader { @Override public Map<String, Object> read(List<String> paths) { Map<String, Object> beans = new HashMap<>(); List<File> files = new ArrayList<>(); for (String path : paths) { logger.debug("readxml:" + path); URL url = ClassPathXmlReader.class.getClassLoader().getResource(path); File file = new File(url.getPath()); if (file.exists()) { files.add(file); } } try { beans = handleXML(files); } catch (ParserConfigurationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SAXException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return beans; } }
[ "123456" ]
123456
e54a4a047f241475286689214cdec0ded4d19bdb
44ce1b0cad331ae26f14b3efd9a23c516d15357f
/coding-interview-guide/src/main/java/com/zouxxyy/C003.java
ac1b3d36e1fc6f01c5b0e0d810e8bf2a317a3ba2
[]
no_license
Zouxxyy/algorithm-learning
d35a7bec3f71abeb0445b0a58b424a926c49aa49
e93df51a97cb93ad67b0dbceb398f058dc7b9cf4
refs/heads/master
2022-03-28T19:39:40.779538
2022-03-20T09:24:21
2022-03-20T09:24:21
167,480,905
2
3
null
null
null
null
UTF-8
Java
false
false
1,799
java
package com.zouxxyy; import java.util.Scanner; /* 题目描述 给定排序数组arr和整数k,不重复打印arr中所有相加和为k的不降序二元组 例如, arr = [-8, -4, -3, 0, 1, 2, 4, 5, 8, 9], k = 10,打印结果为: 1, 9 2, 8 [要求] 时间复杂度为O(n),空间复杂度为O(1) 输入描述: 第一行有两个整数n, k 接下来一行有n个整数表示数组内的元素 输出描述: 输出若干行,每行两个整数表示答案 按二元组从小到大的顺序输出(二元组大小比较方式为每个依次比较二元组内每个数) */ /* 思路: 左右指针 + 去重 时间复杂度为O(n),空间复杂度为O(1) */ /** * @author zxy */ public class C003 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = scanner.nextInt(); } int left = 0, right = n - 1; StringBuilder builder = new StringBuilder(); while (left < right) { // 去重 if (left != 0 && arr[left] == arr[left - 1]) { left++; continue; } if (right != (n - 1) && arr[right] == arr[right + 1]) { right--; continue; } int sum = arr[left] + arr[right]; if (sum == k) { builder.append(arr[left]).append(' ').append(arr[right]).append('\n'); left++; right--; } else if (sum > k) { right--; } else { left++; } } System.out.println(builder.toString()); } }
[ "932089990@qq.com" ]
932089990@qq.com
7cf70fb4c53d77664edfd3e6ddfdcdbfa6b4e69d
d90895810ec04f169b1d1f48b75470bd08c220f5
/jbpm-nrp-vdml/src/main/java/org/jbpm/vdml/services/impl/model/meta/InputDelegation.java
4beadef7cf871654f7f514583106664710bb813c
[]
no_license
ifu-lobuntu/jbpm-nrp
58c965ac767ada990b5e3862390dd616647a0dfc
8db8bbbeab263f39c48d8b4691c867ec2fcc87ff
refs/heads/master
2021-01-19T00:01:43.319216
2016-08-07T07:33:05
2016-08-07T07:33:05
42,999,423
0
0
null
null
null
null
UTF-8
Java
false
false
596
java
package org.jbpm.vdml.services.impl.model.meta; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("InputDelegation") public class InputDelegation extends DirectedFlow { public InputDelegation() { } @Override public InputPort getSource() { return (InputPort) super.getSource(); } @Override public InputPort getTarget() { return (InputPort) super.getTarget(); } public InputDelegation(String uri, Collaboration owningCollaboration) { super(uri, owningCollaboration); } }
[ "ampieb@gmail.com" ]
ampieb@gmail.com
24d606317d6c294e9d87c27486d3e8e081ba5c37
f7e0a04d1e31d225cd4992ca926d0ce23d293087
/spring-test/src/main/java/org/springframework/test/context/junit4/statements/RunBeforeTestExecutionCallbacks.java
ef0470024e2abd58772904b76acedeeab14fabe2
[]
no_license
designer-framework/Spring-Framework
adfea060850613e7f2b751b74359ec2c74826fb5
93039bf6e702d814dd0591bdb1acd70da5b31909
refs/heads/master
2023-04-27T07:05:00.875434
2021-05-18T13:07:31
2021-05-18T13:07:31
360,019,495
0
0
null
null
null
null
UTF-8
Java
false
false
2,673
java
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.test.context.junit4.statements; import java.lang.reflect.Method; import org.junit.runners.model.Statement; import org.springframework.test.context.TestContextManager; /** * {@code RunBeforeTestExecutionCallbacks} is a custom JUnit {@link Statement} * which allows the <em>Spring TestContext Framework</em> to be plugged into the * JUnit 4 execution chain by calling {@link TestContextManager#beforeTestExecution * beforeTestExecution()} on the supplied {@link TestContextManager}. * * @author Sam Brannen * @since 5.0 * @see #evaluate() * @see RunAfterTestExecutionCallbacks */ public class RunBeforeTestExecutionCallbacks extends Statement { private final Statement next; private final Object testInstance; private final Method testMethod; private final TestContextManager testContextManager; /** * Construct a new {@code RunBeforeTestExecutionCallbacks} statement. * @param next the next {@code Statement} in the execution chain * @param testInstance the current test instance (never {@code null}) * @param testMethod the test method which is about to be executed on the * test instance * @param testContextManager the TestContextManager upon which to call * {@code beforeTestExecution()} */ public RunBeforeTestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager) { this.next = next; this.testInstance = testInstance; this.testMethod = testMethod; this.testContextManager = testContextManager; } /** * Invoke {@link TestContextManager#beforeTestExecution(Object, Method)} * and then evaluate the next {@link Statement} in the execution chain * (typically an instance of * {@link org.junit.internal.runners.statements.InvokeMethod InvokeMethod}). */ @Override public void evaluate() throws Throwable { this.testContextManager.beforeTestExecution(this.testInstance, this.testMethod); this.next.evaluate(); } }
[ "742743697@qq.com" ]
742743697@qq.com
103f8faa18249b96fe70a24f42a97c3b93a404c4
e7e497b20442a4220296dea1550091a457df5a38
/java_workplace/sns-xiaonei/renren-sns-wiki/trunk/renren-sns-wiki-web/src/main/java/com/renren/sns/wiki/controllers/WikiUserIndexController.java
7a008d33d8cb9666fd7da812c83658ccdd2f52f6
[]
no_license
gunner14/old_rr_code
cf17a2dedf8dfcdcf441d49139adaadc770c0eea
bb047dc88fa7243ded61d840af0f8bad22d68dee
refs/heads/master
2021-01-17T18:23:28.154228
2013-12-02T23:45:33
2013-12-02T23:45:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,377
java
package com.renren.sns.wiki.controllers; import java.util.Map; import net.paoding.rose.web.Invocation; import net.paoding.rose.web.annotation.Param; import net.paoding.rose.web.annotation.Path; import net.paoding.rose.web.annotation.rest.Get; import net.sf.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import com.renren.sns.wiki.constant.WikiConstant; import com.renren.sns.wiki.enums.InterestType; import com.renren.sns.wiki.interceptor.WikiHolder; import com.renren.sns.wiki.model.Wiki; import com.renren.sns.wiki.service.WikiUserService; import com.renren.sns.wiki.utils.remotelog.RemoteLogType; import com.renren.sns.wiki.utils.remotelog.annotation.RemoteLog; import com.xiaonei.commons.interceptors.access.HostHolder; import com.xiaonei.platform.core.model.User; /** * 用户相关的页面,包括follow wish do collect * * @author weiwei.wang@renren-inc.com since 2012-7-31 * */ @Path("/${wikiId:\\d+}/user") public class WikiUserIndexController extends BaseIndexController { @Autowired private HostHolder hostHolder; @Autowired private WikiHolder wikiHolder; @Autowired private WikiUserService wikiUserService; @Get("/${action:\\w+}") @RemoteLog(type = RemoteLogType.USER_DISPLAY, extras = { "action", "page" }) public String wikiUserIndex(Invocation inv, @Param("wikiId") int wikiId, @Param("action") String action, @Param("page") int curPage, @Param("size") int pageSize) { if (InterestType.getEnumByValue(action) == null && !"follow".equals(action)) { return "e:404"; } if (curPage < 0) { curPage = 0; } if (pageSize < 0 || pageSize > 100) { pageSize = WikiConstant.DEFAULT_FEED_PAGE_SIZE; } Wiki wiki = wikiHolder.getWiki(); User host = hostHolder.getUser(); wrapWikiIndexInvocation(inv, wiki, host, curPage, pageSize, "user"); //多少人操作,多少好友操作的数据 Map<String, Object> countInfoMap = wikiUserService.getCountInfoMap(wikiId, host, action); inv.addModel("countInfo", JSONObject.fromObject(countInfoMap).toString()); inv.addModel("wikiFeedType", "hot"); inv.addModel("action", action); return "wiki-index"; } }
[ "liyong19861014@gmail.com" ]
liyong19861014@gmail.com
b55ecd0411dce477ea4d85d6bd9def00563b801e
693d39be07cf6161bbd1d8c4911a95d68544db18
/app/src/main/java/net/suntrans/szxf/bean/Ameter3.java
a7b2ee55749932ef03d85983461edaef725a889f
[]
no_license
luping1994/SZXF
8235c824cf452895efc5ba4b3bd634525a607f79
bf80cc2a009e8f993adb1ec5e3523682ab480d2e
refs/heads/master
2020-03-07T17:44:50.148294
2018-05-04T09:56:31
2018-05-04T09:56:31
126,810,045
0
0
null
null
null
null
UTF-8
Java
false
false
561
java
package net.suntrans.szxf.bean; /** * Created by Looney on 2017/7/28. */ public class Ameter3 { public String name; public String value; public String nameCH; public String unit; public String field; public Ameter3(String name, String value, String nameCH,String field) { this.name = name; this.value = value; this.nameCH = nameCH; this.field = field; } public Ameter3() { } public Ameter3(String name, String value) { this.name = name; this.value = value; } }
[ "250384247@qq.com" ]
250384247@qq.com
d9a5ab8a947c7b4ffff213d684c7529cddf68d27
9fe800087ef8cc6e5b17fa00f944993b12696639
/batik-extension/src/main/java/org/apache/batik/extension/GraphicsExtensionElement.java
950928e355f68b327c528ab29e4582691de3b5a7
[ "Apache-2.0" ]
permissive
balabit-deps/balabit-os-7-batik
14b80a316321cbd2bc29b79a1754cc4099ce10a2
652608f9d210de2d918d6fb2146b84c0cc771842
refs/heads/master
2023-08-09T03:24:18.809678
2023-05-22T20:34:34
2023-05-27T08:21:21
158,242,898
0
0
Apache-2.0
2023-07-20T04:18:04
2018-11-19T15:03:51
Java
UTF-8
Java
false
false
7,943
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.batik.extension; import org.apache.batik.anim.dom.SVGLocatableSupport; import org.apache.batik.anim.dom.SVGOMAnimatedBoolean; import org.apache.batik.anim.dom.SVGOMAnimatedTransformList; import org.apache.batik.anim.dom.TraitInformation; import org.apache.batik.dom.AbstractDocument; import org.apache.batik.dom.svg.SVGTestsSupport; import org.apache.batik.dom.util.XMLSupport; import org.apache.batik.util.DoublyIndexedTable; import org.apache.batik.util.SVGTypes; import org.w3c.dom.svg.SVGAnimatedBoolean; import org.w3c.dom.svg.SVGAnimatedTransformList; import org.w3c.dom.svg.SVGElement; import org.w3c.dom.svg.SVGException; import org.w3c.dom.svg.SVGExternalResourcesRequired; import org.w3c.dom.svg.SVGLangSpace; import org.w3c.dom.svg.SVGLocatable; import org.w3c.dom.svg.SVGMatrix; import org.w3c.dom.svg.SVGRect; import org.w3c.dom.svg.SVGStringList; import org.w3c.dom.svg.SVGTests; import org.w3c.dom.svg.SVGTransformable; /** * An abstract base class for graphical extension elements. This class * inherits {@link org.w3c.dom.svg.SVGStylable} functionality from {@link * StylableExtensionElement} and implements {@link SVGLocatable}, * {@link SVGTransformable}, {@link SVGExternalResourcesRequired}, * {@link SVGLangSpace} and {@link SVGTests}. * * @author <a href="mailto:cam%40mcc%2eid%2eau">Cameron McCormack</a> * @version $Id: GraphicsExtensionElement.java 1808001 2017-09-11 09:51:29Z ssteiner $ */ public abstract class GraphicsExtensionElement extends StylableExtensionElement implements SVGTransformable { /** * Table mapping XML attribute names to TraitInformation objects. */ protected static DoublyIndexedTable xmlTraitInformation; static { DoublyIndexedTable t = new DoublyIndexedTable(StylableExtensionElement.xmlTraitInformation); t.put(null, SVG_TRANSFORM_ATTRIBUTE, new TraitInformation(true, SVGTypes.TYPE_TRANSFORM_LIST)); t.put(null, SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE, new TraitInformation(true, SVGTypes.TYPE_BOOLEAN)); t.put(null, SVG_REQUIRED_EXTENSIONS_ATTRIBUTE, new TraitInformation(false, SVGTypes.TYPE_URI_LIST)); t.put(null, SVG_REQUIRED_FEATURES_ATTRIBUTE, new TraitInformation(false, SVGTypes.TYPE_URI_LIST)); t.put(null, SVG_SYSTEM_LANGUAGE_ATTRIBUTE, new TraitInformation(false, SVGTypes.TYPE_LANG_LIST)); xmlTraitInformation = t; } /** * The 'transform' attribute value. */ protected SVGOMAnimatedTransformList transform = createLiveAnimatedTransformList(null, SVG_TRANSFORM_ATTRIBUTE, ""); /** * The 'externalResourcesRequired' attribute value. */ protected SVGOMAnimatedBoolean externalResourcesRequired = createLiveAnimatedBoolean (null, SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE, false); /** * Creates a new GraphicsExtensionElement object. */ protected GraphicsExtensionElement() { } /** * Creates a new GraphicsExtensionElement object. * @param name The element name, for validation purposes. * @param owner The owner document. */ protected GraphicsExtensionElement(String name, AbstractDocument owner) { super(name, owner); } // SVGLocatable support ///////////////////////////////////////////// /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGLocatable#getNearestViewportElement()}. */ public SVGElement getNearestViewportElement() { return SVGLocatableSupport.getNearestViewportElement(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGLocatable#getFarthestViewportElement()}. */ public SVGElement getFarthestViewportElement() { return SVGLocatableSupport.getFarthestViewportElement(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGLocatable#getBBox()}. */ public SVGRect getBBox() { return SVGLocatableSupport.getBBox(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGLocatable#getCTM()}. */ public SVGMatrix getCTM() { return SVGLocatableSupport.getCTM(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGLocatable#getScreenCTM()}. */ public SVGMatrix getScreenCTM() { return SVGLocatableSupport.getScreenCTM(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGLocatable#getTransformToElement(SVGElement)}. */ public SVGMatrix getTransformToElement(SVGElement element) throws SVGException { return SVGLocatableSupport.getTransformToElement(this, element); } // SVGTransformable support ////////////////////////////////////////////// /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGTransformable#getTransform()}. */ public SVGAnimatedTransformList getTransform() { return transform; } // SVGExternalResourcesRequired support ///////////////////////////// /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}. */ public SVGAnimatedBoolean getExternalResourcesRequired() { return externalResourcesRequired; } // SVGLangSpace support ////////////////////////////////////////////////// /** * <b>DOM</b>: Returns the xml:lang attribute value. */ public String getXMLlang() { return XMLSupport.getXMLLang(this); } /** * <b>DOM</b>: Sets the xml:lang attribute value. */ public void setXMLlang(String lang) { setAttributeNS(XML_NAMESPACE_URI, XML_LANG_QNAME, lang); } /** * <b>DOM</b>: Returns the xml:space attribute value. */ public String getXMLspace() { return XMLSupport.getXMLSpace(this); } /** * <b>DOM</b>: Sets the xml:space attribute value. */ public void setXMLspace(String space) { setAttributeNS(XML_NAMESPACE_URI, XML_SPACE_QNAME, space); } // SVGTests support /////////////////////////////////////////////////// /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGTests#getRequiredFeatures()}. */ public SVGStringList getRequiredFeatures() { return SVGTestsSupport.getRequiredFeatures(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGTests#getRequiredExtensions()}. */ public SVGStringList getRequiredExtensions() { return SVGTestsSupport.getRequiredExtensions(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGTests#getSystemLanguage()}. */ public SVGStringList getSystemLanguage() { return SVGTestsSupport.getSystemLanguage(this); } /** * <b>DOM</b>: Implements {@link * org.w3c.dom.svg.SVGTests#hasExtension(String)}. */ public boolean hasExtension(String extension) { return SVGTestsSupport.hasExtension(this, extension); } }
[ "testbot@balabit.com" ]
testbot@balabit.com
f375bd7f64b71f475acce6085a1cba443153ddb9
f839c1d021c92203b1eae013f013839fd673b711
/src/test/java/org/mox/spikes/domain/events/DomainEventPublisherThreadTestCase.java
98174df10647c317709363adcc0ae5562375f7c0
[]
no_license
mox601/ddd-spike
74aa9fb7bc53f96cbcdbbc4d62c571f08fcfea4c
492f02ff515942561c9b24fd48156114d5e275bf
refs/heads/master
2020-12-24T14:01:10.457257
2014-12-29T09:45:24
2014-12-29T09:45:24
22,499,406
2
0
null
null
null
null
UTF-8
Java
false
false
4,727
java
package org.mox.spikes.domain.events; import org.mox.spikes.domain.apis.DomainEvent; import org.mox.spikes.domain.customisation.Car; import org.mox.spikes.domain.customisation.CarId; import org.mox.spikes.domain.infrastructure.DomainEventPublisher; import org.mox.spikes.domain.infrastructure.DomainEventSubscriber; import org.mox.spikes.domain.registration.PlateId; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicLong; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; /** * @author Matteo Moci ( matteo (dot) moci (at) gmail (dot) com ) */ public class DomainEventPublisherThreadTestCase { private static final Logger LOGGER = LoggerFactory.getLogger( DomainEventPublisherThreadTestCase.class); private DomainEventPublisher publisher; private AtomicLong counter = new AtomicLong(0L); private List<DomainEvent> events; @BeforeClass public void setUp() throws Exception { final Runnable publisherInitializer = new Runnable() { @Override public void run() { publisher = DomainEventPublisher.getInstance(); publisher.reset(); } }; final ExecutorService executorService = Executors.newFixedThreadPool(1); executorService.submit(publisherInitializer); executorService.shutdownNow(); Thread.sleep(200); assertNotNull(this.publisher); } @BeforeMethod public void registerHandlerOnThisThread() { this.publisher = this.publisher.reset(); final LocalCustomisationEventsHandler handler = new LocalCustomisationEventsHandler(); handler.setCounter(this.counter); this.publisher.subscribe(handler); this.events = new ArrayList<DomainEvent>(); final AllEventsCollector logging = new AllEventsCollector(this.events); this.publisher.subscribe(logging); //reset counter this.counter.set(0L); } @Test public void publishingOnTheSameThreadWorks() throws Exception { final String id = "id-345"; final CarId carId = new CarId(id); final Car forum = new Car(carId); forum.removeAllTires(); forum.mountTiresOf(19); assertEquals(counter.longValue(), 1); assertEquals(this.events.size(), 1); assertNotNull(this.events.get(0).occurredOn()); assertEquals(((TireSizeChanged) this.events.get(0)).getPlateId(), new PlateId(carId.getId())); } @Test public void publishingOnDifferentThreadDoesntWork() throws Exception { final Runnable tireChanger = new Runnable() { @Override public void run() { final String id = "id-345"; final CarId carId = new CarId(id); final Car forum = new Car(carId); forum.removeAllTires(); forum.mountTiresOf(19); } }; final ExecutorService executorService = Executors.newFixedThreadPool(1); executorService.submit(tireChanger); executorService.shutdownNow(); Thread.sleep(200); assertEquals(counter.longValue(), 0); assertEquals(this.events.size(), 0); } private class AllEventsCollector implements DomainEventSubscriber<DomainEvent> { private final Class<DomainEvent> clazz; private final List<DomainEvent> events; public AllEventsCollector(final List<DomainEvent> events) { this.events = events; this.clazz = DomainEvent.class; } @Override public Class<DomainEvent> subscribedToEventType() { return this.clazz; } @Override public void handleEvent(final DomainEvent aDomainEvent) { this.events.add(aDomainEvent); } } private class LocalCustomisationEventsHandler implements DomainEventSubscriber<TireSizeChanged> { private AtomicLong counter; public void setCounter(AtomicLong counter) { this.counter = counter; } @Override public Class<TireSizeChanged> subscribedToEventType() { return TireSizeChanged.class; } @Override public void handleEvent(TireSizeChanged aDomainEvent) { this.counter.incrementAndGet(); } } }
[ "matteo.moci@gmail.com" ]
matteo.moci@gmail.com
c593131ba6aae5925fd012f2b037b8a7a1bf424f
42db8ca1afb6b9a695b67507414166164b9c26d8
/java/src/Lista3/L3Exercicio4.java
7c2d67114b1ee8057ef9ed41aaa02bad7257922a
[]
no_license
Andressaffs/turma16java
9ba990249f7f0536a659b13dbd335079679d81aa
c91f1ac67e8ddf8cc6db2590d762500e639076ee
refs/heads/main
2023-03-20T04:52:27.811805
2021-03-08T14:09:50
2021-03-08T14:09:50
329,985,454
0
0
null
null
null
null
ISO-8859-1
Java
false
false
817
java
package Lista3; import java.util.Scanner; public class L3Exercicio4 { public static void main (String args[]) { try (Scanner ler = new Scanner(System.in)) { int numero; System.out.println("Digite um número inteiro: "); numero= ler.nextInt(); if( (numero%2) == 0 && numero>0) { System.out.println("O número digitado é par e positivo"); } else if( (numero%2) == 0 && numero<0) { System.out.println("O número digitado é par e negativo"); } else if( (numero%2) == 1 && numero>0) { System.out.println("O número é impar e positivo"); } else if( (numero%2) == 1 && numero<0) { System.out.println("O número digitado é impar e negativo"); //problema } else if (numero == 0) { System.out.println("Zero é neutro."); } } } }
[ "you@example.com" ]
you@example.com
25384bea37bb66d3bd0c68bcbec304cfacf7c8c6
95a54e3f3617bf55883210f0b5753b896ad48549
/java_src/com/google/android/gms/tasks/zzc.java
eae449018c4a4829b0944d42e414b11b611b47e6
[]
no_license
aidyk/TagoApp
ffc5a8832fbf9f9819f7f8aa7af29149fbab9ea5
e31a528c8f931df42075fc8694754be146eddc34
refs/heads/master
2022-12-22T02:20:58.486140
2021-05-16T07:42:02
2021-05-16T07:42:02
325,695,453
3
1
null
2022-12-16T00:32:10
2020-12-31T02:34:45
Smali
UTF-8
Java
false
false
893
java
package com.google.android.gms.tasks; import android.support.annotation.NonNull; import java.util.concurrent.Executor; final class zzc<TResult, TContinuationResult> implements zzq<TResult> { private final Executor zzd; private final Continuation<TResult, TContinuationResult> zze; private final zzu<TContinuationResult> zzf; public zzc(@NonNull Executor executor, @NonNull Continuation<TResult, TContinuationResult> continuation, @NonNull zzu<TContinuationResult> zzu) { this.zzd = executor; this.zze = continuation; this.zzf = zzu; } @Override // com.google.android.gms.tasks.zzq public final void onComplete(@NonNull Task<TResult> task) { this.zzd.execute(new zzd(this, task)); } @Override // com.google.android.gms.tasks.zzq public final void cancel() { throw new UnsupportedOperationException(); } }
[ "ai@AIs-MacBook-Pro.local" ]
ai@AIs-MacBook-Pro.local
a54d9a2543b9d6aec14b611a00fc71caf3adce58
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/28/28_b6c4cb29872ad6e41879ce4640b92b1f688b1cb9/Laby/28_b6c4cb29872ad6e41879ce4640b92b1f688b1cb9_Laby_s.java
3e7f7e97ae6ddc908d6a64d706eb297561142b20
[]
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
5,047
java
package devhead.ru.jlaby; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.io.File; import java.io.FilenameFilter; import javax.swing.GroupLayout; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextArea; /** * jLaby according by laby * * @author Kuznetsov Andrey * */ public class Laby extends JFrame { private static final long serialVersionUID = 1L; final String PROGRAM_NAME = "Laby programming game (Swing version)"; final String DEVELOPER = "Andrey Kyznetsov"; final String EMAIL = "andreykyz@gmail.com"; final static String LEVEL_PATH = "data/levels"; final static String IMAGES_PATH = "data/tiles"; public Laby() { final JFrame frame = this; JPanel panel = new JPanel(); JMenuItem miExit = new JMenuItem("Exit"); miExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.exit(0); } }); JMenuItem miAbout = new JMenuItem("About"); miAbout.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(frame, DEVELOPER + "\n" + EMAIL, PROGRAM_NAME, JOptionPane.PLAIN_MESSAGE); } }); JMenu mFile = new JMenu("File"); mFile.setMnemonic(KeyEvent.VK_F); mFile.addSeparator(); mFile.add(miExit); JMenu mHelp = new JMenu("Help"); mHelp.setMnemonic(KeyEvent.VK_H); mHelp.add(miAbout); JMenuBar menuBar = new JMenuBar(); menuBar.add(mFile); menuBar.add(mHelp); setJMenuBar(menuBar); // setPreferredSize(new Dimension(DisplayWrapper.TABLE_WIDTH, // DisplayWrapper.TABLE_HEIGHT)); FilenameFilter filenamefilter = new FilenameFilter() { public boolean accept(File directory, String fileName) { return fileName.endsWith(".laby"); } }; File path = new File(Laby.LEVEL_PATH);// + Laby.class.getProtectionDomain().getCodeSource().getLocation().getPath()); JLabel languageLabel = new JLabel("Language:"); String[] language = {"C", "Python", "Java"}; JComboBox languageChooser = new JComboBox(language); JLabel levelLabel = new JLabel("Level:"); JComboBox levelChooser = new JComboBox(path.listFiles(filenamefilter)); // LevelMap levelMap = new LevelMap(); JLabel levelMap = new JLabel("field"); JLabel helpArea = new JLabel("<html><b>This is help</b><br>First line<br>Second line</html>"); JTextArea codeArea = new JTextArea(); /* Layouts*/ GroupLayout layout = new GroupLayout(panel); panel.setLayout(layout); layout.setAutoCreateGaps(true); layout.setAutoCreateContainerGaps(true); layout.setHorizontalGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(helpArea) .addComponent(levelMap)) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(languageLabel) .addComponent(levelLabel)) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(languageChooser) .addComponent(levelChooser)) ) .addComponent(codeArea)) ); layout.setVerticalGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(helpArea) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(languageLabel) .addComponent(languageChooser)) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(levelLabel) .addComponent(levelChooser)) )) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(levelMap) .addComponent(codeArea)) ); this.setContentPane(panel); pack(); setDefaultCloseOperation(EXIT_ON_CLOSE); } public static void main(String[] args) { new Laby().setVisible(true); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6e87ab6449dfb0ce3a8e29ca931a8b2c3a2dfa8a
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/26/26_f3ae8fc80c02ca9bc92547ac0f2c26d7352c1102/JFUSEAdapter/26_f3ae8fc80c02ca9bc92547ac0f2c26d7352c1102_JFUSEAdapter_t.java
939a6c8fa7dc2b3e5419ffeafb12a1ec65c76e5d
[]
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
2,588
java
package org.deepfs.jfuse; import org.catacombae.jfuse.JNILoader; import org.catacombae.jfuse.types.system.FileModeFlags; import org.catacombae.jfuse.util.FUSEUtil; /** * This class assembles all references to the external jfuse library. * * In order to keep BaseX independent from external libraries this class * assembles all calls to the Java FUSE bindings and provides default values. In * case jfuse.jar is removed from the build path this class and the actual FUSE * implementation should be the only classes to be modified or removed. In fact, * it is intended to just exclude DeepFSImpl from the build path and to toggle * the (un)commented code here. * * @author Alexander Holupirek <alex@holupirek.de> * */ public final class JFUSEAdapter implements FileModeFlags { /** Directory bit. */ private static final int DFS_S_IFDIR = 0040000; /** Regular file bit. */ private static final int DFS_S_IFREG = 0100000; /** File bit mask. */ private static final int DFS_S_IFMT = 0170000; /** Private utility constructor. */ private JFUSEAdapter() { throw new UnsupportedOperationException(); } /** * Check (and load) native Java FUSE bindings. * @return true in case of success. */ public static boolean loadJFUSELibrary() { try { JNILoader.ensureLoaded(); return true; } catch(final UnsatisfiedLinkError ex) { return false; } // return false; } /** * Get (native) user id or default value. * @return user id */ public static long getUID() { if(loadJFUSELibrary()) { return FUSEUtil.getProcessUid(); } return 0; } /** * Get (native) group id or default value. * @return group id */ public static long getGID() { if(loadJFUSELibrary()) { return FUSEUtil.getProcessGid(); } return 0; } /** * Returns directory bit. * * @return bitmask indicating a directory */ public static int getSIFDIR() { return loadJFUSELibrary() ? S_IFDIR : DFS_S_IFDIR; } /** * Returns regular file bit. * * @return bitmask indicating a directory */ public static int getSIFREG() { return loadJFUSELibrary() ? S_IFREG : DFS_S_IFREG; } /** * Test mode for regular file flag. * @param mode of file * @return true if mode is regular file */ public static boolean isReg(final int mode) { if (loadJFUSELibrary()) return (mode & S_IFMT) == S_IFREG; return (mode & DFS_S_IFMT) == DFS_S_IFREG; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
fde1a6f8dcc7af5c374caa43b4e697d8b6a16134
f4fc8a35108b1942d19f7bb978812c1f51bbdb9f
/src/mn/compassmate/protocol/JpKorjarProtocolDecoder.java
db3a9437cdf655cc048c558757a612f43063a274
[]
no_license
bilguun0428/compassmateTest
2bd4be5e8acd09cbe68ebf51487502d16fada192
e19910a024f84a0b6c1a3db53726bebd02de365b
refs/heads/master
2020-04-10T02:55:04.866035
2018-12-07T01:56:00
2018-12-07T01:56:00
160,755,793
0
0
null
null
null
null
UTF-8
Java
false
false
2,687
java
package mn.compassmate.protocol; import org.jboss.netty.channel.Channel; import mn.compassmate.BaseProtocolDecoder; import mn.compassmate.DeviceSession; import mn.compassmate.helper.Parser; import mn.compassmate.helper.PatternBuilder; import mn.compassmate.model.CellTower; import mn.compassmate.model.Network; import mn.compassmate.model.Position; import java.net.SocketAddress; import java.util.regex.Pattern; public class JpKorjarProtocolDecoder extends BaseProtocolDecoder { public JpKorjarProtocolDecoder(JpKorjarProtocol protocol) { super(protocol); } private static final Pattern PATTERN = new PatternBuilder() .text("KORJAR.PL,") .number("(d+),") // imei .number("(dd)(dd)(dd)") // date (yymmdd) .number("(dd)(dd)(dd),") // time (hhmmss) .number("(d+.d+)([NS]),") // latitude .number("(d+.d+)([EW]),") // longitude .number("(d+.d+),") // speed .number("(d+),") // course .number("[FL]:(d+.d+)V,") // battery .number("([01]) ") // valid .number("(d+) ") // mcc .number("(d+) ") // mnc .number("(x+) ") // lac .number("(x+),") // cid .compile(); @Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { Parser parser = new Parser(PATTERN, (String) msg); if (!parser.matches()) { return null; } Position position = new Position(); position.setProtocol(getProtocolName()); DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next()); if (deviceSession == null) { return null; } position.setDeviceId(deviceSession.getDeviceId()); position.setTime(parser.nextDateTime()); position.setLatitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_HEM)); position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_HEM)); position.setSpeed(parser.nextDouble(0)); position.setCourse(parser.nextDouble(0)); position.set(Position.KEY_BATTERY, parser.nextDouble(0)); position.setValid(parser.nextInt(0) == 1); position.setNetwork(new Network(CellTower.from( parser.nextInt(0), parser.nextInt(0), parser.nextHexInt(0), parser.nextHexInt(0)))); return position; } }
[ "bilguun.b@itzone.local" ]
bilguun.b@itzone.local
d8cc78301b47be04a3c07805eef5a61fc2e003bb
7c20e36b535f41f86b2e21367d687ea33d0cb329
/Capricornus/src/com/gopawpaw/erp/hibernate/s/SypsDet.java
0fd1fd0cbcc48d324b37e4bf7497d3c77f62612e
[]
no_license
fazoolmail89/gopawpaw
50c95b924039fa4da8f309e2a6b2ebe063d48159
b23ccffce768a3d58d7d71833f30b85186a50cc5
refs/heads/master
2016-09-08T02:00:37.052781
2014-05-14T11:46:18
2014-05-14T11:46:18
35,091,153
1
1
null
null
null
null
UTF-8
Java
false
false
1,362
java
package com.gopawpaw.erp.hibernate.s; import java.util.Date; /** * SypsDet entity. @author MyEclipse Persistence Tools */ public class SypsDet extends AbstractSypsDet implements java.io.Serializable { // Constructors /** default constructor */ public SypsDet() { } /** minimal constructor */ public SypsDet(SypsDetId id, Double oidSypsDet) { super(id, oidSypsDet); } /** full constructor */ public SypsDet(SypsDetId id, Boolean sypsTrigUpdt, String sypsModUserid, Date sypsModDate, String sypsUser1, String sypsUser2, String sypsChr01, String sypsChr02, Double sypsDec01, Double sypsDec02, Integer sypsInt01, Integer sypsInt02, Boolean sypsLog01, Boolean sypsLog02, Date sypsDte01, Date sypsDte02, String sypsQadc01, String sypsQadc02, String sypsQadc03, String sypsQadc04, Double sypsQadd01, Double sypsQadd02, Integer sypsQadi01, Integer sypsQadi02, Boolean sypsQadl01, Boolean sypsQadl02, Date sypsQadt01, Date sypsQadt02, Double oidSypsDet) { super(id, sypsTrigUpdt, sypsModUserid, sypsModDate, sypsUser1, sypsUser2, sypsChr01, sypsChr02, sypsDec01, sypsDec02, sypsInt01, sypsInt02, sypsLog01, sypsLog02, sypsDte01, sypsDte02, sypsQadc01, sypsQadc02, sypsQadc03, sypsQadc04, sypsQadd01, sypsQadd02, sypsQadi01, sypsQadi02, sypsQadl01, sypsQadl02, sypsQadt01, sypsQadt02, oidSypsDet); } }
[ "ahuaness@b3021582-c689-11de-ba9a-9db95b2bc6c5" ]
ahuaness@b3021582-c689-11de-ba9a-9db95b2bc6c5
fb495bd009f67c10e3e7b4e8a3124891df879697
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/8/8_64ee32ec12da6f26cb35dbd58629143c3e4a48a0/FormulaViewer/8_64ee32ec12da6f26cb35dbd58629143c3e4a48a0_FormulaViewer_s.java
ddf6ad2091f53e5ffe6bdbfa2d7b6437f203c3fe
[]
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,932
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.poi.hssf.dev; import java.io.FileInputStream; import java.util.List; import org.apache.poi.hssf.model.HSSFFormulaParser; import org.apache.poi.hssf.record.FormulaRecord; import org.apache.poi.hssf.record.Record; import org.apache.poi.hssf.record.RecordFactory; import org.apache.poi.hssf.record.formula.ExpPtg; import org.apache.poi.hssf.record.formula.FuncPtg; import org.apache.poi.hssf.record.formula.OperationPtg; import org.apache.poi.hssf.record.formula.Ptg; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.poifs.filesystem.POIFSFileSystem; /** * FormulaViewer - finds formulas in a BIFF8 file and attempts to read them/display * data from them. Only works if Formulas are enabled in "RecordFactory" * @author andy * @author Avik */ public class FormulaViewer { private String file; private boolean list=false; /** Creates new FormulaViewer */ public FormulaViewer() { } /** * Method run * * * @exception Exception * */ public void run() throws Exception { POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(file)); List records = RecordFactory .createRecords(fs.createDocumentInputStream("Workbook")); for (int k = 0; k < records.size(); k++) { Record record = ( Record ) records.get(k); if (record.getSid() == FormulaRecord.sid) { if (list) { listFormula((FormulaRecord) record); }else { parseFormulaRecord(( FormulaRecord ) record); } } } } private void listFormula(FormulaRecord record) { String sep="~"; Ptg[] tokens= record.getParsedExpression(); Ptg token; int numptgs = tokens.length; String numArg; token = tokens[numptgs-1]; if (token instanceof FuncPtg) { numArg = String.valueOf(numptgs-1); } else { numArg = String.valueOf(-1); } StringBuffer buf = new StringBuffer(); if (token instanceof ExpPtg) return; buf.append(((OperationPtg) token).toFormulaString()); buf.append(sep); switch (token.getPtgClass()) { case Ptg.CLASS_REF : buf.append("REF"); break; case Ptg.CLASS_VALUE : buf.append("VALUE"); break; case Ptg.CLASS_ARRAY : buf.append("ARRAY"); break; } buf.append(sep); if (numptgs>1) { token = tokens[numptgs-2]; switch (token.getPtgClass()) { case Ptg.CLASS_REF : buf.append("REF"); break; case Ptg.CLASS_VALUE : buf.append("VALUE"); break; case Ptg.CLASS_ARRAY : buf.append("ARRAY"); break; } }else { buf.append("VALUE"); } buf.append(sep); buf.append(numArg); System.out.println(buf.toString()); } /** * Method parseFormulaRecord * * * @param record * */ public void parseFormulaRecord(FormulaRecord record) { System.out.println("=============================="); System.out.print("row = " + record.getRow()); System.out.println(", col = " + record.getColumn()); System.out.println("value = " + record.getValue()); System.out.print("xf = " + record.getXFIndex()); System.out.print(", number of ptgs = " + record.getParsedExpression().length); System.out.println(", options = " + record.getOptions()); System.out.println("RPN List = "+formulaString(record)); System.out.println("Formula text = "+ composeFormula(record)); } private String formulaString(FormulaRecord record) { StringBuffer buf = new StringBuffer(); Ptg[] tokens = record.getParsedExpression(); for (int i = 0; i < tokens.length; i++) { Ptg token = tokens[i]; buf.append( token.toFormulaString()); switch (token.getPtgClass()) { case Ptg.CLASS_REF : buf.append("(R)"); break; case Ptg.CLASS_VALUE : buf.append("(V)"); break; case Ptg.CLASS_ARRAY : buf.append("(A)"); break; } buf.append(' '); } return buf.toString(); } private static String composeFormula(FormulaRecord record) { return HSSFFormulaParser.toFormulaString((HSSFWorkbook)null, record.getParsedExpression()); } /** * Method setFile * * * @param file * */ public void setFile(String file) { this.file = file; } public void setList(boolean list) { this.list=list; } /** * Method main * * pass me a filename and I'll try and parse the formulas from it * * @param args pass one argument with the filename or --help * */ public static void main(String args[]) { if ((args == null) || (args.length >2 ) || args[ 0 ].equals("--help")) { System.out.println( "FormulaViewer .8 proof that the devil lies in the details (or just in BIFF8 files in general)"); System.out.println("usage: Give me a big fat file name"); } else if (args[0].equals("--listFunctions")) { // undocumented attribute to research functions!~ try { FormulaViewer viewer = new FormulaViewer(); viewer.setFile(args[1]); viewer.setList(true); viewer.run(); } catch (Exception e) { System.out.println("Whoops!"); e.printStackTrace(); } } else { try { FormulaViewer viewer = new FormulaViewer(); viewer.setFile(args[ 0 ]); viewer.run(); } catch (Exception e) { System.out.println("Whoops!"); e.printStackTrace(); } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
399b0ac52a1f44796f5642a5cc1a83c5e3f47449
f28ddc4e516840ad1eebd6dab717338f0b24daca
/LeetCode Practice/Problem66_PlusOne.java
053ce0cafe5ba2d9aadf4856677530b436fb6e89
[]
no_license
Deepanshuchauhan123/The_Data_Structure-and-Algorithms--Java
3e808eae6e045db922ad51a2b5de0f5b6c61623e
81166929b28b0676b0897a10e05be11bbd22b52f
refs/heads/master
2023-05-10T07:02:38.699297
2021-06-08T09:27:04
2021-06-08T09:27:04
263,946,116
0
1
null
null
null
null
UTF-8
Java
false
false
770
java
public class Problem66_PlusOne{ public static void main(String[] args) { int arr[]=new int[]{9,9,9,9,9}; arr=plusOne(arr); for(int val:arr) System.out.print(val); } public static int[] plusOne(int[] digits) { int n = digits.length-1,carry,value; value=(digits[n]+1); digits[n]= value%10; carry=value/10; for(int i=n-1;i>=0 && carry>0;i--) { value=(digits[i]+carry); digits[i]= value%10; carry=value/10; } if(carry>0){ int arr[]=new int[n+2]; arr[0]=carry; for(int i=1;i<=n+1;i++) arr[i] = digits[i - 1]; return arr; } return digits; } }
[ "deepanshuchauhan7287@gmail.com" ]
deepanshuchauhan7287@gmail.com
ab61510ae4eededc87f2686ca5381a15ba072bff
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a306/A306603Test.java
c199a83e6d38239482295ffab1a777519bccc94a
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
195
java
package irvine.oeis.a306; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A306603Test extends AbstractSequenceTest { }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
cc88a20ba98bbd82c97929ce6e7b82f50773a13c
139960e2d7d55e71c15e6a63acb6609e142a2ace
/mobile_app1/module60/src/main/java/module60packageJava0/Foo85.java
ea75375eb6b6a64501a636a67aa5dd7682538a9c
[ "Apache-2.0" ]
permissive
uber-common/android-build-eval
448bfe141b6911ad8a99268378c75217d431766f
7723bfd0b9b1056892cef1fef02314b435b086f2
refs/heads/master
2023-02-18T22:25:15.121902
2023-02-06T19:35:34
2023-02-06T19:35:34
294,831,672
83
7
Apache-2.0
2021-09-24T08:55:30
2020-09-11T23:27:37
Java
UTF-8
Java
false
false
347
java
package module60packageJava0; import java.lang.Integer; public class Foo85 { Integer int0; Integer int1; public void foo0() { new module60packageJava0.Foo84().foo4(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } }
[ "oliviern@uber.com" ]
oliviern@uber.com
36f6ba7a9aa701c7a74e2db6ee9d4805bed4d022
79c6e0bddbead42db766bb22cb7315d9ce2d3b6f
/ProjectTest/src/main/java/DistributeDataBase/dataSource/client/util/ZConstants.java
8ee15fcefcca9b18646cb1aaff7fa916e4d368c2
[]
no_license
LUCKYZHOUSTAR/ProjectTest
6ac1b85c411e27b961b085b24b05f34d25819292
2d67dde598851dca4550fbd123134025405c0c25
refs/heads/master
2021-01-15T15:32:19.218585
2016-08-10T03:00:23
2016-08-10T03:00:23
54,181,033
0
0
null
null
null
null
UTF-8
Java
false
false
522
java
/** * */ package DistributeDataBase.dataSource.client.util; /** * @ClassName: ZConstants * @Description: * @author LUCKY * @date 2016年5月17日 下午7:51:40 * */ public class ZConstants { public static final String ERROR_CODE_DB_NOT_AVAILABLE = "100"; public static final String ERROR_CODE_CONNECTION_NOT_AVAILABLE = "101"; public static final String ERROR_CODE_CONNECTION_TIMEOUT = "102"; public static final int LOGGER_DELAY = 30; }
[ "LUCKY@ZHOU" ]
LUCKY@ZHOU
68f3a56f2ee2c4d53283e7677c11f5524d0b6fd9
259c101b7bbeef9efcc25134e7e21f037a7a4092
/DTSEmbed_LSC_solve_path/src/softtest/rules/gcc/rule/IIOEStateMachine.java
3cbc887e4492284aef56546d368f41f0268e68d0
[]
no_license
13001090108/dts-solve-path
a95c71c31d38afb2c55d85884b931f2938c1f75d
649b92eddcc76705bbb4926b33da00009303c04a
refs/heads/master
2020-04-16T23:17:21.340218
2019-01-24T09:34:50
2019-01-24T09:37:09
166,005,614
0
0
null
null
null
null
GB18030
Java
false
false
2,950
java
package softtest.rules.gcc.rule; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import softtest.ast.c.*; import softtest.config.c.Config; import softtest.fsm.c.FSMMachine; import softtest.fsm.c.FSMMachineInstance; import softtest.rules.c.StateMachineUtils; /** * @author LiuChang * 枚举元素的初始化不完整 * IncompleteInitialOfEnum */ public class IIOEStateMachine { public static List<FSMMachineInstance> createIIOEStateMachines(SimpleNode node, FSMMachine fsm){ List<FSMMachineInstance> list = new LinkedList<FSMMachineInstance>(); List<SimpleNode> evaluationResults = null; String xPath=".//EnumSpecifier/EnumeratorList"; evaluationResults = StateMachineUtils.getEvaluationResults(node, xPath); Iterator itr = evaluationResults.iterator(); while(itr.hasNext()){ SimpleNode enumList = (SimpleNode)itr.next(); int i = enumList.jjtGetNumChildren(); if (i == 0 ) continue; ASTEnumerator firstEnum = (ASTEnumerator)enumList.jjtGetChild(0); //第一个 if(firstEnum.jjtGetNumChildren() == 0) { addFSM(list,enumList,fsm); continue; } if(i <= 2) continue; ASTEnumerator secEnum =(ASTEnumerator)enumList.jjtGetChild(1); if(secEnum.jjtGetNumChildren() == 0){ for(int j = 2;j < i;j++){ ASTEnumerator enode =(ASTEnumerator)enumList.jjtGetChild(j); if(enode.jjtGetNumChildren() != 0){ addFSM(list,enumList,fsm); break; } } } else{ for(int j = 2;j < i;j++){ ASTEnumerator enode =(ASTEnumerator)enumList.jjtGetChild(j); if(enode.jjtGetNumChildren() == 0){ addFSM(list,enumList,fsm); break; } } } } return list; } private static void addFSM(List<FSMMachineInstance> list, SimpleNode node, FSMMachine fsm) { FSMMachineInstance fsminstance = fsm.creatInstance(); fsminstance.setRelatedASTNode(node); if (Config.DTS_LANGUAGE == Config.LANG_ENGLISH) { fsminstance.setDesp("IncompleteInitialOfEnum: The form of enum initiation is safe only in to circumstances,one is to initiate all the element,the other is to initiate the first one."); } else if (Config.DTS_LANGUAGE == Config.LANG_CHINESE){ fsminstance.setDesp("枚举元素的初始化不完整: 枚举类型的初始化只有两种形式是安全的。一是初始化所有的元素,二是只初始化第一个元素。"); } list.add(fsminstance); } }
[ "lishaochun@bupt.edu.cn" ]
lishaochun@bupt.edu.cn
5cc003161f616c17c7d856f82e8bf44653740057
c3b4cbce61aed64b1a038de6f0184cffaba07901
/Algorithms/cycle-sort/AllMissingNumbers.java
d5d4356801056ebb64cb7c57d76635dffcd6a042
[]
no_license
neerazz/FAANG
30a1041b501d5ab9d81a38da0f7b45f4cdef414f
d113f24a12c773083a412065e715e0b66e7e6324
refs/heads/master
2023-09-05T07:25:13.835752
2023-04-09T17:30:05
2023-04-09T17:30:05
193,811,440
1,657
460
null
2023-09-10T12:45:39
2019-06-26T01:59:00
Java
UTF-8
Java
false
false
749
java
import java.util.ArrayList; import java.util.List; /** * Created on: Jul 13, 2021 * Ref: https://www.educative.io/courses/grokking-the-coding-interview/Y52qNM0ljWK */ public class AllMissingNumbers { public static void main(String[] args) { } public static List<Integer> findNumbers(int[] nums) { List<Integer> missingNumbers = new ArrayList<>(); int len = nums.length; for (int i = 0; i < len; i++) { int cur = Math.abs(nums[i]) - 1; if (nums[cur] < 0) continue; nums[cur] *= -1; } for (int i = 0; i < len; i++) { if (nums[i] > 0) { missingNumbers.add(i + 1); } } return missingNumbers; } }
[ "43318996+neerazz@users.noreply.github.com" ]
43318996+neerazz@users.noreply.github.com
356d4b34601dc6f49aa81803d0776036ee193e59
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_328/Testnull_32747.java
2e89eeebee8095521fdb84c72bda309c8537f2fb
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_328; import static org.junit.Assert.*; public class Testnull_32747 { private final Productionnull_32747 production = new Productionnull_32747("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
849101a707e1eb052758a08000af33096e74f1c4
1cdd58bbfebf8491fc09c64f417f7ad69244a920
/src/com/design_patterns/strategy/improve/Duck.java
ee061f90161436edb94cb6dc72520f2831d18b6c
[]
no_license
yafengstark/JavaBook
cbe19bac29fbd6fbfbe6f23f432e4159de0100d7
3dd9f6254b85f552c24f6979c1192d32ebf3f09f
refs/heads/master
2020-05-22T14:25:12.562376
2020-01-20T00:07:35
2020-01-20T00:07:35
186,383,466
0
0
null
null
null
null
UTF-8
Java
false
false
696
java
package com.design_patterns.strategy.improve; public abstract class Duck { //属性, 策略接口 FlyBehavior flyBehavior; //其它属性<->策略接口 QuackBehavior quackBehavior; public Duck() { } public abstract void display();//显示鸭子信息 public void quack() { System.out.println("鸭子嘎嘎叫~~"); } public void swim() { System.out.println("鸭子会游泳~~"); } public void fly() { //改进 if(flyBehavior != null) { flyBehavior.fly(); } } public void setFlyBehavior(FlyBehavior flyBehavior) { this.flyBehavior = flyBehavior; } public void setQuackBehavior(QuackBehavior quackBehavior) { this.quackBehavior = quackBehavior; } }
[ "fengfeng043@gmail.com" ]
fengfeng043@gmail.com
00e3f90a1d2a642f55842d3c90fd1175a9a41f12
a11ba1b53c0e1e978b5f4f55a38b4ff5b13d5e36
/ui/src/main/java/org/apache/hop/ui/hopui/HopUiPlugin.java
d0a581412342955ce2d97dc3b8510b7cb99bc768
[ "Apache-2.0" ]
permissive
lipengyu/hop
157747f4da6d909a935b4510e01644935333fef9
8afe35f0705f44d78b5c33c1ba3699f657f8b9dc
refs/heads/master
2020-09-12T06:31:58.176011
2019-11-11T21:17:59
2019-11-11T21:17:59
222,341,727
1
0
Apache-2.0
2019-11-18T01:50:19
2019-11-18T01:50:18
null
UTF-8
Java
false
false
1,720
java
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ package org.apache.hop.ui.hopui; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Xul-based Spoon plugin. Implementations can modify the look of Spoon, register a SpoonLifecycleListener and add a * SpoonPerspective. * * @author nbaker * */ @Documented @Retention( RetentionPolicy.RUNTIME ) @Target( ElementType.TYPE ) public @interface HopUiPlugin { String id(); String name() default ""; String description() default ""; String image(); String version() default ""; int category() default -1; String categoryDescription() default ""; String i18nPackageName() default ""; String classLoaderGroup() default ""; }
[ "mattcasters@gmail.com" ]
mattcasters@gmail.com
f0ed1a684fd42d597b9bb518252e0c89937a34b1
c164d8f1a6068b871372bae8262609fd279d774c
/src/main/java/edu/uiowa/slis/VIVOISF/BFO_0000004/BFO_0000004NameCurrencyAR.java
4a2bbf27ccacf0ad6243f993f0815ffeb8b03be8
[ "Apache-2.0" ]
permissive
eichmann/VIVOISF
ad0a299df177d303ec851ff2453cbcbd7cae1ef8
e80cd8b74915974fac7ebae8e5e7be8615355262
refs/heads/master
2020-03-19T03:44:27.662527
2018-06-03T22:44:58
2018-06-03T22:44:58
135,757,275
0
1
null
null
null
null
UTF-8
Java
false
false
1,010
java
package edu.uiowa.slis.VIVOISF.BFO_0000004; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; @SuppressWarnings("serial") public class BFO_0000004NameCurrencyAR extends edu.uiowa.slis.VIVOISF.TagLibSupport { static BFO_0000004NameCurrencyAR currentInstance = null; private static final Log log = LogFactory.getLog(BFO_0000004NameCurrencyAR.class); // non-functional property public int doStartTag() throws JspException { try { BFO_0000004NameCurrencyARIterator theBFO_0000004 = (BFO_0000004NameCurrencyARIterator)findAncestorWithClass(this, BFO_0000004NameCurrencyARIterator.class); pageContext.getOut().print(theBFO_0000004.getNameCurrencyAR()); } catch (Exception e) { log.error("Can't find enclosing BFO_0000004 for nameCurrencyAR tag ", e); throw new JspTagException("Error: Can't find enclosing BFO_0000004 for nameCurrencyAR tag "); } return SKIP_BODY; } }
[ "david-eichmann@uiowa.edu" ]
david-eichmann@uiowa.edu
bf9dbef5e8a1d595b1bd81b9b3ab94527ab1cd8b
d90bc68346a2a786b01266e577dd23b0ff3387f2
/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUStack.java
28be5d8774d5cf5eb26b19e71b9b952c585c0da2
[]
no_license
flesire/jnode.mirror
aa2930923e998e7fbd9a48564c40edadfddb8cc7
2fae7f6b392a8ace3840e09635d3cc0105e4f335
refs/heads/master
2021-01-23T03:48:46.788908
2013-09-06T14:23:31
2013-09-06T14:23:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,533
java
/* * $Id: FPUStack.java 5956 2013-02-17 20:50:10Z lsantha $ * * Copyright (C) 2003-2013 JNode.org * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; If not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ package org.jnode.vm.x86.compiler.l1a; import org.jnode.assembler.x86.X86Register; import org.jnode.assembler.x86.X86Register.FPU; import org.jnode.vm.bytecode.StackException; /** * @author Ewout Prangsma (epr@users.sourceforge.net) */ final class FPUStack extends ItemStack { private static final FPU[] REGS = {X86Register.ST0, X86Register.ST1, X86Register.ST2, X86Register.ST3, X86Register.ST4, X86Register.ST5, X86Register.ST6, X86Register.ST7}; /** * Initialize this instance. */ FPUStack() { super(Item.Kind.FPUSTACK, REGS.length); } /** * Gets the FPU register that contains the given item. * * @param item * @return * @see org.jnode.assembler.x86.X86Register#ST1 */ final FPU getRegister(Item item) { for (int i = 0; i < tos; i++) { if (stack[tos - (i + 1)] == item) { return REGS[i]; } } throw new StackException("Item not found on FPU stack"); } /** * Gets the item that is contained in the given register. * * @param fpuReg * @return */ final Item getItem(FPU fpuReg) { final int idx = tos - (fpuReg.getNr() + 1); return stack[idx]; } /** * Swap the top of the stack (ST0) with the given FPU reg. * * @param fpuReg */ final void fxch(FPU fpuReg) { final int idx1 = tos - 1; final int idx2 = tos - (fpuReg.getNr() + 1); final Item tmp = stack[idx1]; stack[idx1] = stack[idx2]; stack[idx2] = tmp; } }
[ "galatnm@gmail.com" ]
galatnm@gmail.com
4391078fcf31aab4605dcabd111ba76ea8c43019
eac0b43bd7bf55f9c59c6867cc52706f5a8b9c1c
/FQ/src/main/java/learn/spring/aop/MyAopInvoke.java
1b80d5b7094a08be2efccf26da5906dfe85c68b5
[]
no_license
fengqing90/Learn
b017fa9d40cb0592ee63f77f620a8a8f39f046b9
396f48eddb5b78a4fdb880d46ea1f2b109b707e4
refs/heads/master
2022-11-22T01:44:05.803929
2021-08-04T03:57:26
2021-08-04T03:57:26
144,801,377
0
3
null
2022-11-16T06:59:58
2018-08-15T03:29:15
Java
UTF-8
Java
false
false
1,470
java
package learn.spring.aop; import java.util.List; /** * TODO * * @author fengqing * @date 2021/6/23 14:35 */ public class MyAopInvoke implements AopInvoke { public MyAopInvoke(List<AopInvoke> invokeList) { this.invokeList = invokeList; } private final List<AopInvoke> invokeList; private int currentInterceptorIndex = -1; public Object proceed() throws Throwable { if (this.currentInterceptorIndex == this.invokeList.size() - 1) { return getObject(); } return this.invokeList.get(++this.currentInterceptorIndex).invoke(this); } private String getObject() { System.out.println("执行获取值:getObject() "); return "Object"; } } interface AopInvoke { default Object invoke(AopInvoke aopInvoke) throws Throwable { return null; } default Object proceed() throws Throwable { return null; } } class BeforeAopInvoke implements AopInvoke { @Override public Object invoke(AopInvoke aopInvoke) throws Throwable { System.out.println("BeforeAopInvoke..."); return aopInvoke.proceed(); } } class AfterAopInvoke implements AopInvoke { @Override public Object invoke(AopInvoke aopInvoke) throws Throwable { Object proceed; try { proceed = aopInvoke.proceed(); } finally { System.out.println("AfterAopInvoke..."); } return proceed; } }
[ "fengqing@youxin.com" ]
fengqing@youxin.com
847024c939e3d43db35f7086962d134bda9d224d
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/87/org/apache/commons/math/ode/nonstiff/DormandPrince54Integrator_DormandPrince54Integrator_104.java
bebd0f59a2729883ace530a925ede2155485ee44
[]
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
1,291
java
org apach common math od nonstiff dormand princ integr ordinari differenti equat integr embed rung kutta integr order local extrapol mode solut comput high order formula stepsiz control automat step initi continu output method function evalu step fsal evalu step evalu step avoid cost function evalu step method publish whithout continu output ad shampin articl pre famili embed rung kutta formula dormand princ journal comput appli mathemat volum pre version revis date dormand prince54 integr dormandprince54integr simpl constructor build order dormand princ integr step bound param min step minstep minim step posit backward integr step smaller param max step maxstep maxim step posit backward integr param scal absolut toler scalabsolutetoler allow absolut error param scal rel toler scalrelativetoler allow rel error dormand prince54 integr dormandprince54integr min step minstep max step maxstep scal absolut toler scalabsolutetoler scal rel toler scalrelativetoler method staticc statica staticb dormand prince54 step interpol dormandprince54stepinterpol min step minstep max step maxstep scal absolut toler scalabsolutetoler scal rel toler scalrelativetoler
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
df6ed60fd4e9d757277c31d23e8803bb08fff83c
0c0556e9b9574caac15a3b3c4b6f2f4982245f3c
/app/src/main/java/opay/com/oupaypay/utils/scanner/FlashlightManager.java
a31a5c06d9c87131bcbeba64f88d504df8ee809d
[]
no_license
wuyinlei/OuPayPay
de1bfaa812037e3ff4c0239070855e9708e511af
b956e2b5ecca731ac2365790407ea27364d27d03
refs/heads/master
2021-08-27T21:23:02.706558
2017-12-10T11:02:59
2017-12-10T11:02:59
111,794,613
0
4
null
2017-11-28T07:21:32
2017-11-23T10:15:53
Java
UTF-8
Java
false
false
5,194
java
/* * Copyright (C) 2010 ZXing 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 opay.com.oupaypay.utils.scanner; import android.os.IBinder; import android.util.Log; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * This class is used to activate the weak light on some camera phones (not flash) * in order to illuminate surfaces for scanning. There is no official way to do this, * but, classes which allow access to this function still exist on some devices. * This therefore proceeds through a great deal of reflection. * <p> * See <a href="http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/"> * http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/</a> and * <a href="http://code.google.com/p/droidled/source/browse/trunk/src/com/droidled/demo/DroidLED.java"> * http://code.google.com/p/droidled/source/browse/trunk/src/com/droidled/demo/DroidLED.java</a>. * Thanks to Ryan Alford for pointing out the availability of this class. */ final class FlashlightManager { private static final String TAG = FlashlightManager.class.getSimpleName(); private static final Object iHardwareService; private static final Method setFlashEnabledMethod; static { iHardwareService = getHardwareService(); setFlashEnabledMethod = getSetFlashEnabledMethod(iHardwareService); if (iHardwareService == null) { Log.v(TAG, "This device does supports control of a flashlight"); } else { Log.v(TAG, "This device does not support control of a flashlight"); } } private FlashlightManager() { } static void enableFlashlight() { setFlashlight(false); } static void disableFlashlight() { setFlashlight(false); } private static Object getHardwareService() { Class<?> serviceManagerClass = maybeForName("android.os.ServiceManager"); if (serviceManagerClass == null) { return null; } Method getServiceMethod = maybeGetMethod(serviceManagerClass, "getService", String.class); if (getServiceMethod == null) { return null; } Object hardwareService = invoke(getServiceMethod, null, "hardware"); if (hardwareService == null) { return null; } Class<?> iHardwareServiceStubClass = maybeForName("android.os.IHardwareService$Stub"); if (iHardwareServiceStubClass == null) { return null; } Method asInterfaceMethod = maybeGetMethod(iHardwareServiceStubClass, "asInterface", IBinder.class); if (asInterfaceMethod == null) { return null; } return invoke(asInterfaceMethod, null, hardwareService); } private static Method getSetFlashEnabledMethod(Object iHardwareService) { if (iHardwareService == null) { return null; } Class<?> proxyClass = iHardwareService.getClass(); return maybeGetMethod(proxyClass, "setFlashlightEnabled", boolean.class); } private static Class<?> maybeForName(String name) { try { return Class.forName(name); } catch (ClassNotFoundException cnfe) { // OK return null; } catch (RuntimeException re) { Log.w(TAG, "Unexpected error while finding class " + name, re); return null; } } private static Method maybeGetMethod(Class<?> clazz, String name, Class<?>... argClasses) { try { return clazz.getMethod(name, argClasses); } catch (NoSuchMethodException nsme) { // OK return null; } catch (RuntimeException re) { Log.w(TAG, "Unexpected error while finding method " + name, re); return null; } } private static Object invoke(Method method, Object instance, Object... args) { try { return method.invoke(instance, args); } catch (IllegalAccessException e) { Log.w(TAG, "Unexpected error while invoking " + method, e); return null; } catch (InvocationTargetException e) { Log.w(TAG, "Unexpected error while invoking " + method, e.getCause()); return null; } catch (RuntimeException re) { Log.w(TAG, "Unexpected error while invoking " + method, re); return null; } } private static void setFlashlight(boolean active) { if (iHardwareService != null) { invoke(setFlashEnabledMethod, iHardwareService, active); } } }
[ "power1118wu@gmail.com" ]
power1118wu@gmail.com
3cf369aae773379817e0fac86df4e160facec1a6
5308297e063c59a065a025711ae62b0b7b015886
/SDK/src/com/skyworth/tvos/context/menu/MenuNodeFactory.java
3266350e680a8bb7980d6fd82c3cf70dcd89c95c
[]
no_license
bibiRe/AppStore
77ddde3261cabe9294ffb74714c00febd0ec7268
06f5e05050ad01753fd9e6a9f6ec251474e3c6f1
refs/heads/master
2020-12-29T01:54:54.175750
2014-02-12T07:30:44
2014-02-12T07:30:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,966
java
/** * Copyright (C) 2012 The SkyTvOS Project * * Version Date Author * ───────────────────────────────────── * 2013-6-2 xingkong207 * */ package com.skyworth.tvos.context.menu; import com.skyworth.framework.SkyData; import com.skyworth.tvos.context.menu.MenuConstants.Keys; import com.skyworth.tvos.context.menu.node.BaseMenuNode; import com.skyworth.tvos.context.menu.node.SystemComponentNode; import com.skyworth.tvos.context.menu.node.SystemMenuNode; import com.skyworth.tvos.context.menu.node.UserMenuNode; import com.skyworth.tvos.context.menu.node.BaseMenuNode.SystemMenuNodeType; import com.skyworth.ui.skydata.UIData; /** * @ClassName MenuNodeFactory * @Description TODO (write something) * @author wei li * @date 2013-6-2 * @version TODO (write something) */ public class MenuNodeFactory { public static BaseMenuNode getMenuNode(SkyData data){ if (data == null) return null; SkyData skydata = data; UIData uidata = null; if (skydata.getString(Keys.TYPE.toString()) == null) { return null; } String typeStr = skydata.getString(Keys.TYPE.toString()); SystemMenuNodeType type = SystemMenuNodeType.valueOf(typeStr); if(SystemMenuNodeType.TYPE_SYSTEM_MENU_NODE.equals(type)){ SystemMenuNode node = new SystemMenuNode(data); node.deSerialize(); return node; }else if(SystemMenuNodeType.TYPE_USER_MENU_NODE.equals(type)){ UserMenuNode node = new UserMenuNode(data); node.deSerialize(); return node; }else if(SystemMenuNodeType.TYPE_SYSTEM_COMPONENT_NODE.equals(type)){ SystemComponentNode node = new SystemComponentNode(data); node.deSerialize(); return node; } return null; } }
[ "haotie1990@gmail.com" ]
haotie1990@gmail.com
405de5d7948c4643029c312e8857d78e3bb71130
e35bd41d70a38105a8fd5a35464b0292659a70d9
/registry-ws-client/src/main/java/org/gbif/registry/ws/client/NetworkWsClient.java
d837e93789a6ea3d5b48fdf54060b25b93b4e0e9
[ "Apache-2.0" ]
permissive
MattBlissett/registry
0c42d5b886fa6094cc8f8fd90a21050907afe3fa
63aafec68d7bd53b5c692113098d64cefc01ead4
refs/heads/master
2021-02-05T16:29:57.550181
2020-02-28T16:11:31
2020-02-28T16:11:31
243,803,209
0
0
Apache-2.0
2020-02-28T16:12:03
2020-02-28T16:12:02
null
UTF-8
Java
false
false
2,033
java
/* * Copyright 2013 Global Biodiversity Information Facility (GBIF) * 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.gbif.registry.ws.client; import org.gbif.api.model.common.paging.Pageable; import org.gbif.api.model.common.paging.PagingResponse; import org.gbif.api.model.registry.Dataset; import org.gbif.api.model.registry.Network; import org.gbif.api.service.registry.NetworkService; import org.gbif.registry.ws.client.guice.RegistryWs; import java.util.UUID; import javax.annotation.Nullable; import com.google.inject.Inject; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.filter.ClientFilter; /** * Client-side implementation to the NetworkService. */ public class NetworkWsClient extends BaseNetworkEntityClient<Network> implements NetworkService { @Inject public NetworkWsClient(@RegistryWs WebResource resource, @Nullable ClientFilter authFilter) { super(Network.class, resource.path("network"), authFilter, GenericTypes.PAGING_NETWORK); } @Override public PagingResponse<Dataset> listConstituents(UUID networkKey, @Nullable Pageable page) { return get(GenericTypes.PAGING_DATASET, page, networkKey.toString(), "constituents"); } @Override public void addConstituent(UUID networkKey, UUID datasetKey) { post("", networkKey.toString(), "constituents", datasetKey.toString()); } @Override public void removeConstituent(UUID networkKey, UUID datasetKey) { delete(networkKey.toString(), "constituents", datasetKey.toString()); } }
[ "mdoering@gbif.org" ]
mdoering@gbif.org
afa41a08eae5ce53b2995d183a358c5d627b3efd
d2d0d5d88319042071a4aae9d55a1c6e5a50cd67
/legacy/spring-annotation/spring-annotation-example/src/main/java/com/paralun/app/example3/FileMain.java
c471e7ba5aeeee12ce1f66f3bf301a6a7b70482a
[]
no_license
paralun/belajar-spring-framework
b78106e6eaf6cd7fb81af3575cc526fa1645721a
182a7afde528e52d6f827ed9f92f3ebc88f05122
refs/heads/master
2023-02-09T04:56:46.703886
2023-01-29T13:54:29
2023-01-29T13:54:29
74,141,057
0
1
null
null
null
null
UTF-8
Java
false
false
542
java
/* * Copyright (c) 2016 | James Kusmambang * Source : https://github.com/paralun */ package com.paralun.app.example3; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class FileMain { public static void main(String[] args) { ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig3.class); FileBean file = ctx.getBean(FileBean.class); //file.printData(); file.printData2(); } }
[ "kusmambang@gmail.com" ]
kusmambang@gmail.com
0fe784861f0351e47353140e9960f8be7eac777b
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/mapstruct/learning/6570/AnnotatedConstructor.java
7c8945d9bfa631764354961a23237a8200f17702
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,698
java
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.internal.model; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import org.mapstruct.ap.internal.model.common.ModelElement; import org.mapstruct.ap.internal.model.common.Type; /** * Represents a constructor that is used for constructor injection. * * @author Kevin Grüneberg */ public class AnnotatedConstructor extends ModelElement implements Constructor { private String name; private final List<AnnotationMapperReference> mapperReferences; private final List<Annotation> annotations; private final NoArgumentConstructor noArgumentConstructor; private final Set<SupportingConstructorFragment> fragments; public static AnnotatedConstructor forComponentModels(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, Constructor constructor, boolean includeNoArgConstructor) { NoArgumentConstructor noArgumentConstructor = null; if ( constructor instanceof NoArgumentConstructor ) { noArgumentConstructor = (NoArgumentConstructor) constructor; } NoArgumentConstructor noArgConstructorToInBecluded = null; Set<SupportingConstructorFragment> fragmentsToBeIncluded = Collections.emptySet(); if ( includeNoArgConstructor ) { if ( noArgumentConstructor != null ) { noArgConstructorToInBecluded = noArgumentConstructor; } else { noArgConstructorToInBecluded = new NoArgumentConstructor( name, fragmentsToBeIncluded ); } } else if ( noArgumentConstructor != null ) { fragmentsToBeIncluded = noArgumentConstructor.getFragments(); } return new AnnotatedConstructor( name, mapperReferences, annotations, noArgConstructorToInBecluded, fragmentsToBeIncluded ); } private AnnotatedConstructor(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, NoArgumentConstructor noArgumentConstructor, Set<SupportingConstructorFragment> fragments) { this.name = name; this.mapperReferences = mapperReferences; this.annotations = annotations; this.noArgumentConstructor = noArgumentConstructor; this.fragments = fragments; } @Override public Set<Type> getImportTypes() { Set<Type> types = new HashSet<>(); for ( MapperReference mapperReference : mapperReferences ) { types.addAll( mapperReference.getImportTypes() ); } for ( Annotation annotation : annotations ) { types.addAll( annotation.getImportTypes() ); } return types; } @Override public String getName() { return name; } public List<AnnotationMapperReference> getMapperReferences() { return mapperReferences; } public List<Annotation> getAnnotations() { return annotations; } public NoArgumentConstructor getNoArgumentConstructor() { return noArgumentConstructor; } public Set<SupportingConstructorFragment> getFragments() { return fragments; } }
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com