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
1548fdfee7d3734720218a9afcbb390ba08c6cc7
d97d4fdfe851f3a83704768df621119f96da871f
/generated/com/guidewire/_generated/entity/ContactAutoSyncWorkItemInternal.java
e31b1d8b7108577ae76e2d07436b60ae5df1acf1
[]
no_license
sudhakar52621/abconfig
14fdc6ccc7c7d1b94e32d3eaf8c9d67c24f9edaf
e7e26997d4998d8ce48c3e11a6d8231a74c2dec3
refs/heads/master
2023-08-15T09:25:52.826615
2021-10-22T06:55:59
2021-10-22T06:55:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,025
java
package com.guidewire._generated.entity; @javax.annotation.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "ContactAutoSyncWorkItem.eti;ContactAutoSyncWorkItem.eix;ContactAutoSyncWorkItem.etx") @java.lang.SuppressWarnings(value = {"deprecation", "unchecked"}) public interface ContactAutoSyncWorkItemInternal extends com.guidewire._generated.entity.KeyableBeanInternal, com.guidewire._generated.entity.WorkItemInternal, com.guidewire._generated.entity.EventAwareInternal { /** * * @deprecated Please use the constant defined on the entity class instead. */ @java.lang.Deprecated java.lang.String CONTACTAUTOSYNCFAILED_EVENT = "ContactAutoSyncFailed"; /** * * @deprecated Please use the constant defined on the entity class instead. */ @java.lang.Deprecated java.lang.String CONTACTAUTOSYNCWORKITEMADDED_EVENT = "ContactAutoSyncWorkItemAdded"; /** * * @deprecated Please use the constant defined on the entity class instead. */ @java.lang.Deprecated java.lang.String CONTACTAUTOSYNCWORKITEMCHANGED_EVENT = "ContactAutoSyncWorkItemChanged"; /** * * @deprecated Please use the constant defined on the entity class instead. */ @java.lang.Deprecated java.lang.String CONTACTAUTOSYNCWORKITEMREMOVED_EVENT = "ContactAutoSyncWorkItemRemoved"; /** * Gets the value of the AddressBookUID field. * Represents the AddressBookUID to be synced. */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getAddressBookUID(); /** * Gets the value of the MaxContactRef field. * The upper bound for the ID value in the Contact table for this work item */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.Long getMaxContactRef(); /** * Gets the value of the MinContactRef field. * The lower bound for the ID value in the Contact table for this work item */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.Long getMinContactRef(); /** * Gets the value of the NewAddressBookUID field. * Represents the AddressBookUID to replace the contact AddressBookUID with */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.String getNewAddressBookUID(); /** * Gets the value of the Skip field. * Should work item be skipped */ @gw.internal.gosu.parser.ExtendedProperty public java.lang.Boolean isSkip(); /** * Sets the value of the AddressBookUID field. */ public void setAddressBookUID(java.lang.String value); /** * Sets the value of the MaxContactRef field. */ public void setMaxContactRef(java.lang.Long value); /** * Sets the value of the MinContactRef field. */ public void setMinContactRef(java.lang.Long value); /** * Sets the value of the NewAddressBookUID field. */ public void setNewAddressBookUID(java.lang.String value); /** * Sets the value of the Skip field. */ public void setSkip(java.lang.Boolean value); }
[ "ssunkireddy@attuneinsurance.com" ]
ssunkireddy@attuneinsurance.com
4acfd0586fa23dda19d9025307fa67eac4af6f5f
8bd4b9d52c4e5ce6cd2690cf0bb8e9cecb6991af
/05/src/StackObjTest.java
0f430998d2d2be36195eed6dbc0cee715f9d730f
[]
no_license
Programovanie4/Kod
be0c21241c6d735aa172badefc780fe3d69b99e5
6bd8ca18c04b6c4264ff2a64a0161d58cde5b916
refs/heads/main
2023-05-27T02:08:47.070453
2023-05-05T06:50:06
2023-05-05T06:50:06
50,527,388
1
4
null
null
null
null
UTF-8
Java
false
false
434
java
import static org.junit.Assert.*; import org.junit.Test; public class StackObjTest { @Test public void testStack() { final int SIZE = 99; StackObj st = new StackObj(SIZE); assertTrue(st.isEmpty()); for(int i=0; i<SIZE; i++) st.push(i); assertTrue(!st.isEmpty()); for(int i=SIZE-1; i>=0; i--) { assertTrue((Integer)st.top() == i); st.pop(); } assertTrue(st.isEmpty()); } }
[ "peter.borovansky@microstep-mis.com" ]
peter.borovansky@microstep-mis.com
25987c0da78fa85bd79b904de75fb09a49b70ca7
3c0844c81057d2ea743d7d42d22923e54b0f1619
/src/leetCode/binaryTreeWithRecursion/deleteNodeInABST450/Solution.java
cad0545550fe39eada2302c8076a8389d55fdd2a
[]
no_license
gcczuis/DataStructureAndAlgorithm
75ce455479e3cfc764f8dbe2ccbe2edbc83d3dbb
37270dc236f904228f74072ec947270e0bac292f
refs/heads/master
2020-03-28T15:28:57.747085
2019-07-12T12:49:47
2019-07-12T12:49:47
148,598,337
1
0
null
null
null
null
UTF-8
Java
false
false
1,093
java
package leetCode.binaryTreeWithRecursion.deleteNodeInABST450; /** * {@author: gcc} * {@Date: 2019/6/20 20:38} */ public class Solution { public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } public TreeNode deleteNode(TreeNode root, int key) { if(root == null){ return null; } if(key < root.val){ root.left = deleteNode(root.left, key); }else if(key > root.val){ root.right = deleteNode(root.right, key); }else{ if(root.left == null){ return root.right; }else if(root.right == null){ return root.left; } TreeNode minNode = findMin(root.right); root.val = minNode.val; root.right = deleteNode(root.right, root.val); } return root; } private TreeNode findMin(TreeNode node){ while(node.left != null){ node = node.left; } return node; } }
[ "gcc950226@outlook.com" ]
gcc950226@outlook.com
3c57724ce41e38db536a218c8da0d81502f17ee4
0721305fd9b1c643a7687b6382dccc56a82a2dad
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/app/zenly/locator/p135r/p137b1/C5143d.java
4588053bca49ced969c4becabd57ed1c854943ea
[]
no_license
a2en/Zenly_re
09c635ad886c8285f70a8292ae4f74167a4ad620
f87af0c2dd0bc14fd772c69d5bc70cd8aa727516
refs/heads/master
2020-12-13T17:07:11.442473
2020-01-17T04:32:44
2020-01-17T04:32:44
234,470,083
1
0
null
null
null
null
UTF-8
Java
false
false
1,633
java
package app.zenly.locator.p135r.p137b1; import app.zenly.locator.core.invitations.C2545e0; import java.util.List; import kotlin.jvm.internal.C12932j; import p213co.znly.models.UserProto$User; /* renamed from: app.zenly.locator.r.b1.d */ public final class C5143d { /* renamed from: a */ private final UserProto$User f13341a; /* renamed from: b */ private final List<C5139b> f13342b; /* renamed from: c */ private final List<C5139b> f13343c; /* renamed from: d */ private final List<C5139b> f13344d; /* renamed from: e */ private final List<C2545e0> f13345e; public C5143d(UserProto$User userProto$User, List<C5139b> list, List<C5139b> list2, List<C5139b> list3, List<? extends C2545e0> list4) { C12932j.m33818b(list, "alreadyList"); C12932j.m33818b(list2, "suggestedList"); C12932j.m33818b(list3, "contactList"); C12932j.m33818b(list4, "sharingOptions"); this.f13341a = userProto$User; this.f13342b = list; this.f13343c = list2; this.f13344d = list3; this.f13345e = list4; } /* renamed from: a */ public final List<C5139b> mo12490a() { return this.f13342b; } /* renamed from: b */ public final List<C5139b> mo12491b() { return this.f13344d; } /* renamed from: c */ public final UserProto$User mo12492c() { return this.f13341a; } /* renamed from: d */ public final List<C2545e0> mo12493d() { return this.f13345e; } /* renamed from: e */ public final List<C5139b> mo12494e() { return this.f13343c; } }
[ "developer@appzoc.com" ]
developer@appzoc.com
9c166d156d03573c76a0f7553ed7f9043efe6c6b
9c2cad4005d23b6f11f3b10df6d24a1414ec8b6c
/ocular/src/main/java/org/rivierarobotics/sharpeyes/MatchLayoutEditActivity.java
70b0c3fb71d65788e982442ed049f00b45db0f14
[ "MIT" ]
permissive
Team5818/SharpEyes
b3c6c843dcab185bb9063154638298b4d1b45655
ef541bee540f0d58ef05d96b186b416a37d0a8b1
refs/heads/master
2021-09-09T05:20:38.018801
2018-03-12T00:46:59
2018-03-12T00:46:59
105,069,988
0
0
null
null
null
null
UTF-8
Java
false
false
1,292
java
package org.rivierarobotics.sharpeyes; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; import org.rivierarobotics.sharpeyes.adapters.InflatedGame; import static com.google.common.base.Preconditions.checkNotNull; public class MatchLayoutEditActivity extends AppCompatActivity implements SurfaceHolder.Callback { private SurfaceView uxArea; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_match_layout_edit); uxArea = findViewById(R.id.ux_area); InflatedGame inflGame = getIntent().getParcelableExtra("game"); checkNotNull(inflGame, "oh no, i'm missing my game"); uxArea.getHolder().addCallback(this); } @Override public void surfaceCreated(SurfaceHolder holder) { Log.i("match-edit", "Surface Created"); } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Log.i("match-edit", "Surface Changed"); } @Override public void surfaceDestroyed(SurfaceHolder holder) { Log.i("match-edit", "Surface Destroyed"); } }
[ "ket1999@gmail.com" ]
ket1999@gmail.com
d79f5151c34adb659cc74b7970e450d9987b1aca
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/23/23_30d7a0070bd9fec5d572db7cd36a9411839c2b7d/StaticAnalyzerHelper/23_30d7a0070bd9fec5d572db7cd36a9411839c2b7d_StaticAnalyzerHelper_t.java
730af5e33988dd38f6839730972636161d0518d7
[]
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,930
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.jrubyparser.util; import java.util.ArrayList; import java.util.List; import org.jrubyparser.SourcePosition; import org.jrubyparser.ast.ArgsCatNode; import org.jrubyparser.ast.ArgsPushNode; import org.jrubyparser.ast.ListNode; import org.jrubyparser.ast.MultipleAsgnNode; import org.jrubyparser.ast.Node; import org.jrubyparser.ast.NodeType; import org.jrubyparser.ast.ToAryNode; /** * Separate logic from AST for calculating static relationships in Ruby. */ public class StaticAnalyzerHelper { private static ListNode EMPTY = new ListNode(new SourcePosition()); private static short PRE = 0; private static short SPLAT = 1; private static short POST = 2; // FIXME: This feels really icky.. public static List<NodePair> calculateStaticAssignments(MultipleAsgnNode masgn, Node values) { List<NodePair> assignments = new ArrayList<NodePair>(); Node[] rhs = flattenRHSValues(values); ListNode rhsPre = (ListNode) rhs[PRE]; int rhsPreSize = rhsPre.size(); int handled = 0; if (masgn.getPreCount() > 0) { for (int i = 0; i < masgn.getPreCount(); i++) { assignments.add(new NodePair(masgn.getPre().get(i), i < rhsPreSize ? rhsPre.get(i) : null)); handled++; } } if (masgn.getRest() != null) { ListNode rhsPost = (ListNode) rhs[POST]; int rhsPostSize = rhsPost.size(); if (rhs[SPLAT] != null) { if (rhsPostSize == masgn.getPostCount()) { if (handled == rhsPreSize) assignments.add(new NodePair(masgn.getRest(), rhs[SPLAT])); for (int i = 0; i < rhsPostSize; i++) { assignments.add(new NodePair(masgn.getPost().get(i), rhsPost.get(i))); } } else if (rhsPostSize <= masgn.getPostCount()) { assignments.add(new NodePair(masgn.getRest(), null)); int pivot = masgn.getPostCount() - rhsPostSize; for (int i = 0; i < masgn.getPostCount(); i++) { assignments.add(new NodePair(masgn.getPost().get(i), i >= pivot ? rhsPost.get(i-pivot) : null)); } } else { assignments.add(new NodePair(masgn.getRest(), null)); int pivot = rhsPostSize - masgn.getPostCount(); for (int i = 0; i < masgn.getPostCount(); i++) { assignments.add(new NodePair(masgn.getPost().get(i), rhsPost.get(i+pivot))); } } } else if (handled <= rhsPreSize) { // leftover right hand elements (!*rhs, !rhspost) int leftOver = rhsPreSize - handled; // We only care when we discover rest arg on lhs since even those this is syntactically broken // (extra args and no rest or post) we don't care. We just figure out what is reasonable. if (masgn.getRest() != null) { // *lhs, ?lhspost int postSize = masgn.getPostCount(); if (leftOver > postSize) { ListNode list = new ListNode(rhsPre.get(handled).getPosition()); for (int i = 0; i < leftOver - postSize; i++) { list.add(rhsPre.get(handled + i)); } handled += leftOver - postSize; assignments.add(new NodePair(masgn.getRest(), list)); for (int i = 0; i < postSize; i++) { assignments.add(new NodePair(masgn.getPost().get(i), rhsPre.get(handled + i))); } } else if (leftOver == postSize) { // I cannot find case where handled is zero but I have seen it occur in netbeans so I am doing what seems appropriate for that case SourcePosition pos = handled == 0 ? (postSize == 0 ? masgn.getPosition().makeEmptyPositionAfterThis() : rhsPre.get(0).getPosition().makeEmptyPositionBeforeThis()) : rhsPre.get(handled-1).getPosition(); assignments.add(new NodePair(masgn.getRest(), new ListNode(pos))); for (int i = 0; i < postSize; i++) { assignments.add(new NodePair(masgn.getPost().get(i), rhsPre.get(handled + i))); } } } } else { // no left over elements and but left over lhs ones (!*rhs, !rhspost) assignments.add(new NodePair(masgn.getRest(), null)); int postSize = masgn.getPostCount(); for (int i = 0; i < postSize; i++) { assignments.add(new NodePair(masgn.getPost().get(i), null)); } } } return assignments; } /** * There are four possible conditions: * 1. rhs: [b, c] - ListNode * 2. rhs: [*b, c] - ArgsPush(b, c) * 3. rhs: [c, *b] - ArgsCat(c, b) * 4. rhs: [c, *b, d] - ArgsPush(ArgsCat(c, b), d) * * For cases 2 and 3 we can additionally return the rhs splat as a single value if * the argscat or argspush will end up completely being assigned into a rest of the lhs. * These four cases can have any number of pre or post nodes (these examples only use one * for simplicity). This method really just flattens the tree into pre, rest, and post. * Now in actuality these three values will not neccesarily fit into the lhs in the same * fashion. */ public static Node[] flattenRHSValues(Node rhs) { // FIXME: Identify what this is? if (rhs == null) return new Node[0]; // 1.8-only logic if (rhs.getNodeType() == NodeType.TOARYNODE) rhs = ((ToAryNode) rhs).getValue(); Node[] values = new Node[3]; if (rhs instanceof ArgsPushNode) { ArgsPushNode push = (ArgsPushNode) rhs; if (push.getFirstNode() instanceof ArgsCatNode) { ArgsCatNode cat = (ArgsCatNode) push.getFirstNode(); values[0] = asList(cat.getFirst()); // pre values[1] = cat.getSecond(); // splat values[2] = asList(push.getSecondNode()); // post } else { values[1] = push.getFirstNode(); // splat values[2] = asList(push.getSecondNode()); // post; } } else if (rhs instanceof ArgsCatNode) { ArgsCatNode cat = (ArgsCatNode) rhs; values[0] = asList(cat.getFirst()); values[1] = cat.getSecond(); } else { // LISTNODE values[0] = asList(rhs); } if (values[0] == null) values[0] = EMPTY; if (values[2] == null) values[2] = EMPTY; return values; } private static ListNode asList(Node node) { // FIXME: This needs an actual position if (node == null) return new ListNode(null); return !(node instanceof ListNode) ? new ListNode(node.getPosition(), node) : (ListNode) node; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
7e5c7178069e00ef2c034ac96804c2d75736241b
63c449138a661dfdf579b6f2f1c35cc517e04b21
/app/src/main/java/com/yiyue/store/module/im/redpacket/RedPacketSendView.java
1cb290c45c36c642a7e7d9660287c2aa44e531b2
[]
no_license
wuqiuyun/yy_merchant
dd3d915e1fc1e6ac89d77f0081d804cb8a839a11
778412b3faef9e69c2314f4931e581fb79eabec3
refs/heads/master
2020-04-15T01:28:42.483837
2019-01-06T05:24:24
2019-01-06T05:24:24
164,277,872
1
0
null
null
null
null
UTF-8
Java
false
false
467
java
package com.yiyue.store.module.im.redpacket; import com.yiyue.store.base.mvp.IBaseView; import com.yiyue.store.model.vo.bean.CashInfoBean; import com.yiyue.store.model.vo.result.RedBagSendResult; /** * Created by zhangzz on 2018/11/6. */ public interface RedPacketSendView extends IBaseView { void requestSuccess(RedBagSendResult redBagSendResult); void checkPasswordSuccess(); //获取钱包余额 void onGetCashInfoSuccess(CashInfoBean bean); }
[ "wuqiuyun_9629@163.com" ]
wuqiuyun_9629@163.com
710004b503be459628bafa74df8053750c2042e3
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/com/example/broadcasttest2/ExampleUnitTest.java
baf730671cf35b39b1803604820b41518707e8e6
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
322
java
package com.example.broadcasttest2; import org.junit.Assert; import org.junit.Test; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { Assert.assertEquals(4, (2 + 2)); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
71ec6d30328ba70a686ce4fe1c9b1030f2cfb77a
36c07ec33b9a8471fccd5f4625ff47160d8cf78a
/src/main/java/me/chanjar/weixin/api/WxConsts.java
317806fad7608cb0d146147387d006aa42cbc6b3
[ "Apache-2.0" ]
permissive
mawei1908/weixin-java-tools
23a977571a74db1c792d74879704ca09783ffb76
45084194bb72bde0c77d78c86ea98dd0aa4e753b
refs/heads/master
2020-04-01T13:44:53.942934
2014-10-20T01:50:38
2014-10-20T01:50:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,410
java
package me.chanjar.weixin.api; import java.util.HashMap; import java.util.Map; public class WxConsts { /////////////////////// // 微信推送过来的消息的类型,和发送给微信xml格式消息的消息类型 /////////////////////// public static final String XML_MSG_TEXT = "text"; public static final String XML_MSG_IMAGE = "image"; public static final String XML_MSG_VOICE = "voice"; public static final String XML_MSG_VIDEO = "video"; public static final String XML_MSG_NEWS = "news"; public static final String XML_MSG_MUSIC = "music"; public static final String XML_MSG_LOCATION = "location"; public static final String XML_MSG_LINK = "link"; public static final String XML_MSG_EVENT = "event"; public static final String XML_TRANSFER_CUSTOMER_SERVICE = "transfer_customer_service"; /////////////////////// // 客服消息的消息类型 /////////////////////// public static final String CUSTOM_MSG_TEXT = "text"; public static final String CUSTOM_MSG_IMAGE = "image"; public static final String CUSTOM_MSG_VOICE = "voice"; public static final String CUSTOM_MSG_VIDEO = "video"; public static final String CUSTOM_MSG_MUSIC = "music"; public static final String CUSTOM_MSG_NEWS = "news"; /////////////////////// // 群发消息的消息类型 /////////////////////// public static final String MASS_MSG_NEWS = "mpnews"; public static final String MASS_MSG_TEXT = "text"; public static final String MASS_MSG_VOICE = "voice"; public static final String MASS_MSG_IMAGE = "image"; public static final String MASS_MSG_VIDEO = "mpvideo"; /////////////////////// // 群发消息后微信端推送给服务器的反馈消息 /////////////////////// public static final String MASS_ST_SUCCESS = "send success"; public static final String MASS_ST_FAIL = "send fail"; public static final String MASS_ST_涉嫌广告 = "err(10001)"; public static final String MASS_ST_涉嫌政治 = "err(20001)"; public static final String MASS_ST_涉嫌社会 = "err(20004)"; public static final String MASS_ST_涉嫌色情 = "err(20002)"; public static final String MASS_ST_涉嫌违法犯罪 = "err(20006)"; public static final String MASS_ST_涉嫌欺诈 = "err(20008)"; public static final String MASS_ST_涉嫌版权 = "err(20013)"; public static final String MASS_ST_涉嫌互推_互相宣传 = "err(22000)"; public static final String MASS_ST_涉嫌其他 = "err(21000)"; /** * 群发反馈消息代码所对应的文字描述 */ public static final Map<String, String> MASS_ST_2_DESC = new HashMap<String, String>(); static { MASS_ST_2_DESC.put(MASS_ST_SUCCESS, "发送成功"); MASS_ST_2_DESC.put(MASS_ST_FAIL, "发送失败"); MASS_ST_2_DESC.put(MASS_ST_涉嫌广告, "涉嫌广告"); MASS_ST_2_DESC.put(MASS_ST_涉嫌政治, "涉嫌政治"); MASS_ST_2_DESC.put(MASS_ST_涉嫌社会, "涉嫌社会"); MASS_ST_2_DESC.put(MASS_ST_涉嫌色情, "涉嫌色情"); MASS_ST_2_DESC.put(MASS_ST_涉嫌违法犯罪, "涉嫌违法犯罪"); MASS_ST_2_DESC.put(MASS_ST_涉嫌欺诈, "涉嫌欺诈"); MASS_ST_2_DESC.put(MASS_ST_涉嫌版权, "涉嫌版权"); MASS_ST_2_DESC.put(MASS_ST_涉嫌互推_互相宣传, "涉嫌互推_互相宣传"); MASS_ST_2_DESC.put(MASS_ST_涉嫌其他, "涉嫌其他"); } /////////////////////// // 微信端推送过来的事件类型 /////////////////////// public static final String EVT_SUBSCRIBE = "subscribe"; public static final String EVT_UNSUBSCRIBE = "unsubscribe"; public static final String EVT_SCAN = "SCAN"; public static final String EVT_LOCATION = "LOCATION"; public static final String EVT_CLICK = "LOCATION"; public static final String EVT_VIEW = "VIEW"; public static final String EVT_MASS_SEND_JOB_FINISH = "MASSSENDJOBFINISH"; /////////////////////// // 上传多媒体文件的类型 /////////////////////// public static final String MEDIA_IMAGE = "image"; public static final String MEDIA_VOICE = "voice"; public static final String MEDIA_VIDEO = "video"; public static final String MEDIA_THUMB = "thumb"; /////////////////////// // 文件类型 /////////////////////// public static final String FILE_JPG = "jpeg"; public static final String FILE_MP3 = "mp3"; public static final String FILE_ARM = "arm"; public static final String FILE_MP4 = "mp4"; }
[ "chanjarster@gmail.com" ]
chanjarster@gmail.com
52b77a7ebc2e95266d258ec121778d6f36a3e49b
132a7d3c8816635e414ddfb752246d2a46bff772
/core/src/main/java/com/alibaba/alink/params/udf/HasPythonVersion.java
d190a526f1dc141a43a39a9bb7e6fe8cc35ab2b1
[ "Apache-2.0" ]
permissive
jackiehff/Alink
8a04f0bb97d79745aa227da28d12a8c900d603cb
c3a3886a55cbcdaa5a1057ce501ccfd2ade2c6b4
refs/heads/master
2023-03-20T20:27:28.455375
2022-11-08T08:14:04
2022-11-08T08:14:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
761
java
package com.alibaba.alink.params.udf; import org.apache.flink.ml.api.misc.param.ParamInfo; import org.apache.flink.ml.api.misc.param.ParamInfoFactory; import org.apache.flink.ml.api.misc.param.WithParams; /** * @author dota.zk * @date 25/03/2021 */ public interface HasPythonVersion<T> extends WithParams<T> { ParamInfo<String> PYTHON_VERSION = ParamInfoFactory .createParamInfo("pythonVersion", String.class) .setDescription("the version of python, example 3.6, 3.7, 3.8") .setOptional() .setHasDefaultValue("3.7") .build(); default T sePythonVersion(String version) { return set(PYTHON_VERSION, version); } default String getPythonVersion() { return get(PYTHON_VERSION); } }
[ "shaomeng.wang.w@gmail.com" ]
shaomeng.wang.w@gmail.com
58724c2f04523c251443863224f36d9622d21e4f
24a2accb69be9bed4a8df65dc6be9bc5a0b5aeab
/Leetcode/src/leetcode/weeklycontest/problems/WeeklyContest238.java
d7a3c7141087b6d076ecc130f11fc7bc2f79fdb0
[]
no_license
hardikkhanna/LeetCode
5aa76d47f1ca45890db08f64eb03853d4cbd6175
a8da2b66ac5a924a6f453b0a58df7c89621b33b5
refs/heads/master
2023-05-29T20:52:28.091201
2021-06-17T17:35:57
2021-06-17T17:35:57
325,298,406
0
0
null
null
null
null
UTF-8
Java
false
false
1,946
java
/** * */ package leetcode.weeklycontest.problems; import java.util.Arrays; import java.util.Scanner; import leetcode.array.problems.ScannerInput; /** * @author Hardik * * Date : 25-Apr-2021 Time : 8:46:39 am */ public class WeeklyContest238 extends ScannerInput { /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int ans = longestBeautifulSubstring(str); System.out.println(ans); int[] nums = get1DArray(); int k = sc.nextInt(); ans = maxFrequency(nums, k); System.out.println(ans); sc.close(); } /** * @param nums * @param k * @return */ private static int maxFrequency(int[] nums, int k) { if (nums == null || nums.length == 0) return 0; int[] dp = new int[nums.length]; Arrays.fill(dp, 1); Arrays.sort(nums); for (int i = 1; i < nums.length; i++) { int diff = nums[i] - nums[i - 1]; int prevCount = dp[i - 1]; if (diff <= k) { k -= diff; if (dp[i] * dp[i - 1] <= k) { dp[i] = dp[i] + dp[i - 1]; } } } return 0; } /** * @param str * @return */ private static int longestBeautifulSubstring(String str) { // check for base case if (str == null || str.length() < 5) return 0; String vowelString = "aeiou"; int count = 5; int subCount = 0; int max = 0; for (int i = 0; i < str.length(); i++) { count = 5; subCount = 0; if (str.charAt(i) == 'a') { count--; while (++i < str.length() && (vowelString.indexOf(str.charAt(i)) - vowelString.indexOf(str.charAt(i - 1)) == 1 || vowelString.indexOf(str.charAt(i)) - vowelString.indexOf(str.charAt(i - 1)) == 0)) { if (vowelString.indexOf(str.charAt(i)) - vowelString.indexOf(str.charAt(i - 1)) == 1) count--; subCount++; } if (count == 0 && max < subCount) { max = subCount + 1; } else { i -= 1; } } } return max; } }
[ "khannahardik007@gmail.com" ]
khannahardik007@gmail.com
c0bdfcb2c56ba851add6729c2e72526f8d0bb752
7dbf332379340de830d14c8b2d2c7f469ac33226
/EAD-JPQL/08-JPA-Mapeamento-Avancado/src/br/com/fiap/entity/Consulta.java
cc20e0d169ce8916f2744b9d76c6b19c44321bc6
[]
no_license
paulosthiven25/EAD-EnterpriseAplicationDeveloment
2c9e1ecb159c25d3a7e242ff2d47e8ce5da9797e
69500e76e489d2b5936c6f505bd60ddf515e77db
refs/heads/master
2022-12-03T15:30:42.651121
2019-07-15T13:29:06
2019-07-15T13:29:06
183,053,712
0
0
null
2022-11-24T09:17:24
2019-04-23T16:22:19
JavaScript
UTF-8
Java
false
false
2,037
java
package br.com.fiap.entity; import java.util.Calendar; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.IdClass; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @Entity @Table(name="T_CONSULTA") @IdClass(ConsultaPK.class) public class Consulta { @Id @Column(name="cd_consulta") @GeneratedValue(generator="consulta",strategy=GenerationType.SEQUENCE) @SequenceGenerator(name="consulta",sequenceName="SQ_T_CONSULTA",allocationSize=1) private int codigo; @Id @ManyToOne(cascade=CascadeType.PERSIST) @JoinColumn(name="nr_crm") private Medico medico; @Id @ManyToOne(cascade=CascadeType.PERSIST) @JoinColumn(name="cd_paciente") private Paciente paciente; @Temporal(TemporalType.TIMESTAMP) @Column(name="dt_consulta") private Calendar data; @Column(name="ds_consulta") private String descricao; public Consulta(Medico medico, Paciente paciente, Calendar data, String descricao) { super(); this.medico = medico; this.paciente = paciente; this.data = data; this.descricao = descricao; } public Consulta() { super(); } public int getCodigo() { return codigo; } public void setCodigo(int codigo) { this.codigo = codigo; } public Medico getMedico() { return medico; } public void setMedico(Medico medico) { this.medico = medico; } public Paciente getPaciente() { return paciente; } public void setPaciente(Paciente paciente) { this.paciente = paciente; } public Calendar getData() { return data; } public void setData(Calendar data) { this.data = data; } public String getDescricao() { return descricao; } public void setDescricao(String descricao) { this.descricao = descricao; } }
[ "logonrmlocal@fiap.com.br" ]
logonrmlocal@fiap.com.br
a954ed100a835c8acc03d17d1ef94cab94495436
76bc4db3057c819b31129c05f748ddc862e61d6a
/src/main/java/designpattern/creational/singleton/EnumSingleton.java
07add16bc631b7cd967482072ca530f42bd491ba
[]
no_license
vinkrish/DataStructure-Algorithm-Snippets_Java
14527a111db47a71c09e0cc15f2f32c02dcb4bbd
03b831ccf064d2b3d2d557900cde018c505f4607
refs/heads/master
2023-04-13T22:19:13.851743
2022-11-19T20:22:46
2022-11-19T20:22:46
127,406,513
0
0
null
2023-03-31T14:57:52
2018-03-30T09:00:28
Java
UTF-8
Java
false
false
393
java
package designpattern.creational.singleton; /* * To overcome problem with reflection, * Joshua Bloch suggests to use enum as java ensures any enum value is instantiated only once in a Java program. * * drawback is that enum type is inflexible (doesn't allow lazy initialization) */ public enum EnumSingleton { INSTANCE; public static void doSomething() { // do something } }
[ "vinaykrishna1989@gmail.com" ]
vinaykrishna1989@gmail.com
321329da510b8329a9b3307173b9c0a1b5b7d89b
4c93abaddb0f88c44b968c6f94853d53b7c90011
/norconex-jef/src/test/java/com/norconex/jef/jobs/watcher/LoopProcessKiller.java
309ecad2724719cd0da541e13672ded3e13b2ae3
[]
no_license
fethi/jef
b55239906fc74fc34696ed791b14d0b99aed34b9
fbc000965940e860de9e0c060d7cfc72290cc5ba
refs/heads/master
2021-01-22T00:28:51.227163
2013-06-05T16:55:42
2013-06-05T16:55:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
770
java
package com.norconex.jef.jobs.watcher; import com.norconex.commons.lang.io.IStreamListener; public class LoopProcessKiller implements IStreamListener { private int loopCount; private final Process process; private boolean killed; public LoopProcessKiller(final Process process) { super(); this.process = process; } @Override public void lineStreamed(String type, String line) { if (line.indexOf("Help!!") != -1) { loopCount++; } if (loopCount > 10) { process.destroy(); killed = true; } } /** * Gets the . * @return */ public boolean isKilled() { return killed; } }
[ "pascal.essiembre@norconex.com" ]
pascal.essiembre@norconex.com
ca850babd9ec6ce36fb9de0f17df3b23937a211a
c03fe8aea86ec4066f1499dbbf061beb5d388ab4
/src/edgruberman/bukkit/simplelocks/Aliaser.java
6b7b6cba5ff193b38f9cd2b5966e8db8060f491f
[]
no_license
EdGruberman/SimpleLocks
14b3eb3201de48d4b616504c9e967701f684a14c
98aaecb631012771fa33c1e1d8ac48e1c64a7d45
refs/heads/master
2020-12-24T13:52:37.556312
2013-10-17T06:18:31
2013-10-17T06:18:31
1,689,725
0
0
null
null
null
null
UTF-8
Java
false
false
3,286
java
package edgruberman.bukkit.simplelocks; import java.util.Map; import java.util.TreeMap; import java.util.logging.Level; import java.util.logging.Logger; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import edgruberman.bukkit.simplelocks.util.BufferedYamlConfiguration; public class Aliaser implements Listener { private static final int MAXIMUM_TRIES = 100; private final Logger logger; private final BufferedYamlConfiguration repository; private final int length; private final String prefix; private final Map<String, String> nameToAlias = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); // player name, alias private final Map<String, String> aliasToName = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); // alias, player name Aliaser(final Logger logger, final BufferedYamlConfiguration repository, final int length, final String prefix) { this.logger = logger; this.repository = repository; this.length = length; this.prefix = prefix; for (final String name : repository.getKeys(false)) { final String alias = repository.getString(name); this.nameToAlias.put(name, alias); this.aliasToName.put(alias, name); } } public String getAlias(final String name) { return this.nameToAlias.get(name); } public String alias(final String name) { final String result = this.nameToAlias.get(name); return ( result != null ? result : name ); } public String getName(final String alias) { return this.aliasToName.get(alias); } public String name(final String alias) { final String result = this.aliasToName.get(alias); return ( result != null ? result : alias ); } @EventHandler(ignoreCancelled = true) public void onPlayerLogin(final PlayerJoinEvent join) { if (join.getPlayer().getName().length() <= this.length) return; if (this.nameToAlias.containsKey(join.getPlayer().getName())) return; String alias = this.prefix + join.getPlayer().getName(); alias = alias.substring(0, Math.min(alias.length(), this.length)); // append number when conflict if (this.nameToAlias.containsValue(alias)) { String found = null; for (int i = 1; i < Aliaser.MAXIMUM_TRIES; i++) { final String numbered = alias.substring(0, Math.min(alias.length(), this.length - String.valueOf(i).length())) + String.valueOf(i); if (!this.nameToAlias.containsValue(numbered)) { found = numbered; break; } } if (found == null) throw new IllegalStateException("Unable to find available alias for " + join.getPlayer().getName()); alias = found; } this.nameToAlias.put(join.getPlayer().getName(), alias); this.aliasToName.put(alias, join.getPlayer().getName()); this.repository.set(join.getPlayer().getName(), alias); this.repository.queueSave(); this.logger.log(Level.FINER, "Created {0} alias for {1}", new Object[]{ alias, join.getPlayer().getName() }); } }
[ "ed@rjump.com" ]
ed@rjump.com
6d7d1c9fd8d2138d5c8786820d142cbd6f55ee29
106c492fbe4b421ef3ec63e8938d0fa3a617784e
/module/src/main/java/com/liux/module/itemMenuBean/LeftItemMenu.java
ad25d7c7ae75678b831fd557a788bca245421df5
[]
no_license
liuxin1234/EasyReadingAndroidMVP
1eebbc3c1e24b6ae385653e9e279966bf057f372
80cc34981a530ec6943e92a57e5608f925eefa11
refs/heads/master
2020-03-23T09:01:50.106039
2019-12-20T01:14:20
2019-12-20T01:14:20
141,362,839
0
0
null
null
null
null
UTF-8
Java
false
false
1,123
java
package com.liux.module.itemMenuBean; /** * 当前类注释:左侧功能菜单 item实体类 * ProjectName:App36Kr * Author:<a href="http://www.cniao5.com">菜鸟窝</a> * Description: * 菜鸟窝是一个只专注做Android开发技能的在线学习平台,课程以实战项目为主,对课程与服务”吹毛求疵”般的要求, * 打造极致课程,是菜鸟窝不变的承诺 */ public class LeftItemMenu { private int leftIcon; private String title; public LeftItemMenu() { } public LeftItemMenu(int leftIcon, String title) { this.leftIcon = leftIcon; this.title = title; } public int getLeftIcon() { return leftIcon; } public void setLeftIcon(int leftIcon) { this.leftIcon = leftIcon; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } @Override public String toString() { return "LeftItemMenu{" + "leftIcon=" + leftIcon + ", title='" + title + '\'' + '}'; } }
[ "750954283@qq.com" ]
750954283@qq.com
ec80cb7e3ca4ad8cdcb9b7a8d6fcac583ea4e1bb
8d9c809a138f29aa3806ecca2f1a90d0e57fff86
/Pattern_Adapter/src/edu/hebeu/extend/HandlerAdapter.java
4e1b21a803d00e5776903ad41029dc6bdddf47e2
[]
no_license
Tyong1365137828/stu-java
e9fe76586749e06e41f55edab0001d2c245fccfd
39b452da284e0a80520359bf2dcf655c2c3d72fb
refs/heads/main
2023-04-06T11:25:18.794632
2021-04-25T07:05:14
2021-04-25T07:05:14
353,631,034
0
0
null
null
null
null
GB18030
Java
false
false
942
java
package edu.hebeu.extend; ///定义一个Adapter接口 public interface HandlerAdapter { public boolean supports(Object handler); public void handle(Object handler); } //多种适配器类 class SimpleHandlerAdapter implements HandlerAdapter { public void handle(Object handler) { ((SimpleController) handler).doSimplerHandler(); } public boolean supports(Object handler) { return (handler instanceof SimpleController); } } class HttpHandlerAdapter implements HandlerAdapter { public void handle(Object handler) { ((HttpController) handler).doHttpHandler(); } public boolean supports(Object handler) { return (handler instanceof HttpController); } } class AnnotationHandlerAdapter implements HandlerAdapter { public void handle(Object handler) { ((AnnotationController) handler).doAnnotationHandler(); } public boolean supports(Object handler) { return (handler instanceof AnnotationController); } }
[ "1365137828@qq.com" ]
1365137828@qq.com
0c83490d24b135a6ffaa1bcebf6a1b6fd32a57df
ea2c63e72df392e207b7fca85954f7bba6d95e90
/src/test/java/com/github/fabriciofx/cactoos/jdbc/agenda/SqlContact.java
01761325d7bef9712a81b5f8c2a465d0b367195b
[ "MIT" ]
permissive
smallcreep/cactoos-jdbc
ddc6caf616c01e9a0b13cdafb78d9f6c72f41fdf
341e20eace41d4dbb539c27a434efe3366f0c3ac
refs/heads/master
2020-04-01T22:57:42.344057
2018-10-18T04:17:36
2018-10-18T04:17:36
153,734,824
0
0
MIT
2018-10-19T06:13:03
2018-10-19T06:13:03
null
UTF-8
Java
false
false
3,836
java
/* * The MIT License (MIT) * * Copyright (C) 2018 Fabrício Barros Cabral * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.github.fabriciofx.cactoos.jdbc.agenda; import com.github.fabriciofx.cactoos.jdbc.Result; import com.github.fabriciofx.cactoos.jdbc.Session; import com.github.fabriciofx.cactoos.jdbc.query.SimpleQuery; import com.github.fabriciofx.cactoos.jdbc.query.param.TextParam; import com.github.fabriciofx.cactoos.jdbc.query.param.UuidParam; import com.github.fabriciofx.cactoos.jdbc.result.ResultAsValues; import com.github.fabriciofx.cactoos.jdbc.stmt.Select; import com.github.fabriciofx.cactoos.jdbc.stmt.Update; import java.util.List; import java.util.UUID; /** * Contact for SQL. * * <p>There is no thread-safety guarantee. * * @since 0.1 */ public final class SqlContact implements Contact { /** * Session. */ private final Session session; /** * Contact's ID. */ private final UUID id; /** * Ctor. * @param sssn A Session * @param id A Contact's ID */ public SqlContact(final Session sssn, final UUID id) { this.session = sssn; this.id = id; } @Override public String name() throws Exception { final Result<List<String>> names = new ResultAsValues<>( new Select( this.session, new SimpleQuery( "SELECT name FROM contact WHERE id = :id", new UuidParam("id", this.id) ) ) ); return names.value().get(0); } @Override public Phones phones() throws Exception { return new SqlPhones(this.session, this.id); } @Override public void delete() throws Exception { new Update( this.session, new SimpleQuery( "DELETE FROM contact WHERE id = :id", new UuidParam("id", this.id) ) ).result(); } @Override public void rename(final String name) throws Exception { new Update( this.session, new SimpleQuery( "UPDATE contact SET name = :name WHERE id = :id", new TextParam("name", name), new UuidParam("id", this.id) ) ).result(); } @Override public String asString() throws Exception { final StringBuilder strb = new StringBuilder(); strb.append(String.format("Name: %s\n", this.name())); for (final Phone phone : this.phones()) { strb.append( String.format( "Phone: %s (%s)\n", phone.number(), phone.carrier() ) ); } return strb.toString(); } }
[ "fabriciofx@gmail.com" ]
fabriciofx@gmail.com
8bfb90f08efcc23e0437f6e215ef38b43bd6783d
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
/src/chosun/ciis/is/agr/rec/IS_AGR_1000_MCURLIST1Record.java
0149cdf281e1ecf7eeaf432436fb05948f36f37c
[]
no_license
nosmoon/misdevteam
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
1829d5bd489eb6dd307ca244f0e183a31a1de773
refs/heads/master
2020-04-15T15:57:05.480056
2019-01-10T01:12:01
2019-01-10T01:12:01
164,812,547
1
0
null
null
null
null
UHC
Java
false
false
1,723
java
/*************************************************************************************************** * 파일명 : .java * 기능 : 독자우대-구독신청 * 작성일자 : 2007-05-22 * 작성자 : 김대섭 ***************************************************************************************************/ /*************************************************************************************************** * 수정내역 : * 수정자 : * 수정일자 : * 백업 : ***************************************************************************************************/ package chosun.ciis.is.agr.rec; import java.sql.*; import chosun.ciis.is.agr.dm.*; import chosun.ciis.is.agr.ds.*; /** * */ public class IS_AGR_1000_MCURLIST1Record extends java.lang.Object implements java.io.Serializable{ public String cd; public String cdnm; public String cd_abrv_nm; public String cdnm_cd; public String cdabrvnm_cd; public IS_AGR_1000_MCURLIST1Record(){} public void setCd(String cd){ this.cd = cd; } public void setCdnm(String cdnm){ this.cdnm = cdnm; } public void setCd_abrv_nm(String cd_abrv_nm){ this.cd_abrv_nm = cd_abrv_nm; } public void setCdnm_cd(String cdnm_cd){ this.cdnm_cd = cdnm_cd; } public void setCdabrvnm_cd(String cdabrvnm_cd){ this.cdabrvnm_cd = cdabrvnm_cd; } public String getCd(){ return this.cd; } public String getCdnm(){ return this.cdnm; } public String getCd_abrv_nm(){ return this.cd_abrv_nm; } public String getCdnm_cd(){ return this.cdnm_cd; } public String getCdabrvnm_cd(){ return this.cdabrvnm_cd; } } /* 작성시간 : Thu May 03 10:09:01 KST 2012 */
[ "DLCOM000@172.16.30.11" ]
DLCOM000@172.16.30.11
78673bf350610a3e05ae7211a7a90026b017b4b7
db2cd2a4803e546d35d5df2a75b7deb09ffadc01
/nemo-tfl-common/src/main/java/com/novacroft/nemo/tfl/common/transfer/single_sign_on/SingleSignOnAddressTypeDTO.java
5bd687f250252708d7cbd57d6429cfe153a63e37
[]
no_license
balamurugan678/nemo
66d0d6f7062e340ca8c559346e163565c2628814
1319daafa5dc25409ae1a1872b1ba9b14e5a297e
refs/heads/master
2021-01-19T17:47:22.002884
2015-06-18T12:03:43
2015-06-18T12:03:43
37,656,983
0
1
null
null
null
null
UTF-8
Java
false
false
485
java
package com.novacroft.nemo.tfl.common.transfer.single_sign_on; public class SingleSignOnAddressTypeDTO { private String description; private Long id; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } }
[ "balamurugan678@yahoo.co.in" ]
balamurugan678@yahoo.co.in
2da4eb7ccc77ebbacf03bed8798f373fbd293207
aa23a6cae1b07406df6d7536eed85b98fb367c8b
/Java_021_Application/src/com/callor/app/ListEx_01.java
1ca5d2343b79a798c4e9d9a66ed67c54b8050659
[]
no_license
ioo1332/Biz_403_2021_03_Java
e2703deef801830ad7c9005179bea2e8ebcb5674
3438940d190498d5b3cb901e44f002a1ecf5830c
refs/heads/master
2023-06-23T18:18:49.109098
2021-07-26T08:44:00
2021-07-26T08:44:00
348,207,352
0
0
null
null
null
null
UTF-8
Java
false
false
1,658
java
package com.callor.app; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Random; public class ListEx_01 { public static void main(String[] args) { Random rnd = new Random(); List<Integer> intList = new ArrayList<Integer>(); for (int i = 0; i < 10; i++) { int num = rnd.nextInt(100) + 1; intList.add(num); } for (Integer n : intList) { System.out.println(n + "\t"); } /* * collections 클래스는 list와 같은 데이터들을 관리하는 클래스의 * 부모클래스 collections.sort (리스트데이터) * return값을 사용하는것이 아니고 매개변수로 전달된값 자체를 변형한다 */ Collections.sort(intList); for (Integer n : intList) { System.out.println(n + "\t"); } // 일반적인 method는 매개변수로 전달받은 데이터를 변경하지 못한다 String strNation="Republic of Korea"; strNation.replace("Korea", "대한민국"); System.out.println(); System.out.println(strNation); /* intNum1, intNum2의 변수 를 add()method 에게 파라메터로 전달하였다 * add()method는 내부코드에서 매개변수의 값을 임의로 변경했다 * 하지만 그 변경이 add()method가 끝난 후에는 원래 intNum1 intNum2에 영향을 미치지않음 * */ int intNum1=50; int intNum2=30; add(intNum1,intNum2); System.out.println(intNum1); // ?? intNum1과 intNum2의 값은? } /* 매개변수로 선언한 num1,num2의 값을 * method에서 변경하는 코드 */ public static void add(int num1, int num2) { num1=100; num2=200; } }
[ "ioo168400@gmail.com" ]
ioo168400@gmail.com
1058c553cae9af905d97d8c0d7b39ee7ea340d6f
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/glide/2015/4/ResourceCacheKeyTest.java
12ec0d4f825e12f0530173633577acf2c271e73f
[]
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
3,767
java
package com.bumptech.glide.load.engine; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import com.bumptech.glide.load.Key; import com.bumptech.glide.load.Options; import com.bumptech.glide.load.Transformation; import com.bumptech.glide.signature.StringSignature; import com.bumptech.glide.tests.KeyAssertions; import com.bumptech.glide.tests.Util; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; @RunWith(JUnit4.class) public class ResourceCacheKeyTest { private Factory factory; @Before public void setUp() { factory = new Factory(); } @Test public void testIdenticalWithSameArguments() throws UnsupportedEncodingException, NoSuchAlgorithmException { KeyAssertions.assertSame(factory.build(), factory.build()); } @Test public void testDifferIfSourceKeyDiffers() throws UnsupportedEncodingException, NoSuchAlgorithmException { mutateAndAssertDifferent(new FactoryMutation() { @Override public void mutate(Factory factory) { factory.sourceKey = new StringSignature("secondKey"); } }); } @Test public void testDiffersIfSignatureDiffers() { mutateAndAssertDifferent(new FactoryMutation() { @Override public void mutate(Factory factory) { factory.signature = new StringSignature("secondSignature"); } }); } @Test public void testDiffersIfWidthDiffers() { mutateAndAssertDifferent(new FactoryMutation() { @Override public void mutate(Factory factory) { factory.width = factory.width * 2; } }); } @Test public void testDiffersIfHeightDiffers() { mutateAndAssertDifferent(new FactoryMutation() { @Override public void mutate(Factory factory) { factory.height = factory.height * 2; } }); } @Test public void tesDiffersIfTransformationDiffers() { mutateAndAssertDifferent(new FactoryMutation() { @Override public void mutate(Factory factory) { factory.transformation = mock(Transformation.class); doAnswer(new Util.WriteDigest("otherTransformation")).when(factory.transformation) .updateDiskCacheKey(any(MessageDigest.class)); } }); } @Test public void testDiffersIfResourceDiffers() { mutateAndAssertDifferent(new FactoryMutation() { @Override public void mutate(Factory factory) { factory.resourceClass = Integer.class; } }); } interface FactoryMutation { void mutate(Factory factory); } private void mutateAndAssertDifferent(FactoryMutation mutation) { ResourceCacheKey original = factory.build(); mutation.mutate(factory); ResourceCacheKey mutated = factory.build(); try { KeyAssertions.assertDifferent(original, mutated); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } } static class Factory { Key sourceKey = new StringSignature("sourceKey"); Key signature = new StringSignature("signature"); int width = 100; int height = 100; Transformation<?> transformation = mock(Transformation.class); Class<?> resourceClass = Object.class; Options options = new Options(); Factory() { doAnswer(new Util.WriteDigest("transformation")).when(transformation) .updateDiskCacheKey(any(MessageDigest.class)); } ResourceCacheKey build() { return new ResourceCacheKey(sourceKey, signature, width, height, transformation, resourceClass, options); } } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
2e8c89413948bc00c5e4321d9f8cb266076154cf
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/25/25_e2495f9223169bca2ba9658e8f2f195161658614/CompositionHandler/25_e2495f9223169bca2ba9658e8f2f195161658614_CompositionHandler_s.java
06e2496cfab8a630c06c30719458dbb82d6116cf
[]
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
4,816
java
/** * Licensed under the Common Development and Distribution License, * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.sun.com/cddl/ * * 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.sun.facelets.tag.ui; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import javax.el.ELException; import javax.el.VariableMapper; import javax.faces.FacesException; import javax.faces.component.UIComponent; import com.sun.facelets.FaceletContext; import com.sun.facelets.FaceletException; import com.sun.facelets.FaceletHandler; import com.sun.facelets.TemplateClient; import com.sun.facelets.el.VariableMapperWrapper; import com.sun.facelets.tag.TagAttribute; import com.sun.facelets.tag.TagConfig; import com.sun.facelets.tag.TagHandler; /** * @author Jacob Hookom * @version $Id: CompositionHandler.java,v 1.12 2007/08/09 16:54:44 rlubke Exp $ */ public final class CompositionHandler extends TagHandler implements TemplateClient { private final Logger log = Logger.getLogger("facelets.tag.ui.composition"); public final static String Name = "composition"; protected final TagAttribute template; protected final Map handlers; protected final ParamHandler[] params; /** * @param config */ public CompositionHandler(TagConfig config) { super(config); this.template = this.getAttribute("template"); if (this.template != null) { this.handlers = new HashMap(); Iterator itr = this.findNextByType(DefineHandler.class); DefineHandler d = null; while (itr.hasNext()) { d = (DefineHandler) itr.next(); this.handlers.put(d.getName(), d); if (log.isLoggable(Level.FINE)) { log.fine(tag + " found Define[" + d.getName() + "]"); } } List paramC = new ArrayList(); itr = this.findNextByType(ParamHandler.class); while (itr.hasNext()) { paramC.add(itr.next()); } if (paramC.size() > 0) { this.params = new ParamHandler[paramC.size()]; for (int i = 0; i < this.params.length; i++) { this.params[i] = (ParamHandler) paramC.get(i); } } else { this.params = null; } } else { this.params = null; this.handlers = null; } } /* * (non-Javadoc) * * @see com.sun.facelets.FaceletHandler#apply(com.sun.facelets.FaceletContext, * javax.faces.component.UIComponent) */ public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { if (this.template != null) { VariableMapper orig = ctx.getVariableMapper(); if (this.params != null) { VariableMapper vm = new VariableMapperWrapper(orig); ctx.setVariableMapper(vm); for (int i = 0; i < this.params.length; i++) { this.params[i].apply(ctx, parent); } } ctx.extendClient(this); try { ctx.includeFacelet(parent, this.template.getValue(ctx)); } finally { ctx.popClient(this); ctx.setVariableMapper(orig); } } else { this.nextHandler.apply(ctx, parent); } } public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, ELException { if (name != null) { if (this.handlers == null) { return false; } DefineHandler handler = (DefineHandler) this.handlers.get(name); if (handler != null) { handler.applyDefinition(ctx, parent); return true; } else { return false; } } else { this.nextHandler.apply(ctx, parent); return true; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
ea09665edb16fe2259c27eee5337e98c0465d165
aeb9fa943ac739d4ea0d75806504dce6b8a90e19
/Autotest_UI_Android_APP/src/com/monleylu/olbb/common/ElementUtil.java
1a0e8887110c4cc4f96db454ede53195691c2be1
[]
no_license
monleylu/Automation_UI_Android_APP
18b8d22654d1437c228fcaf59de35abdf04d5e75
a1dafd2d4e50872fb358093a029d8665b82759e3
refs/heads/master
2021-01-23T05:19:17.529422
2017-11-25T16:09:43
2017-11-25T16:09:43
92,966,010
0
0
null
null
null
null
UTF-8
Java
false
false
4,642
java
/** * 对元素的操作,如是否存在等 */ package com.monleylu.olbb.common; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.android.AndroidDriver; import io.appium.java_client.android.AndroidElement; import org.openqa.selenium.By; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; public class ElementUtil { /** * 判断元素是否存在 * @param by 定位参数 * @param timeoutSec 等待时间 * @return 如果存在,返回true,否则返回false * */ public static boolean isExist(AndroidDriver<AndroidElement> driver,By by ,int timeoutSec){ try { new WebDriverWait(driver, timeoutSec).until(ExpectedConditions.visibilityOfElementLocated(by)); return true; } catch (Exception e) { // TODO: handle exception return false; } } /** * 判断元素中子元素是否存在 * @param driver 驱动实例 * @param element 父元素 * @param childLocator 子元素识别标识 * @param timeoutSec 等待时间 * @return */ public static boolean isExist(AndroidDriver<AndroidElement> driver,MobileElement element,By childLocator ,int timeoutSec){ try { new WebDriverWait(driver, timeoutSec).until(ExpectedConditions.visibilityOfNestedElementsLocatedBy(element, childLocator)); return true; } catch (Exception e) { // TODO: handle exception return false; } } /** * 判断元素是否存在,使用系统默认的查询等待时间 * @param by 元素定位标示 * @return 找到元素返回true,否则返回false */ public static boolean isExist(AndroidDriver<AndroidElement> driver,By by) { try { driver.findElement(by); return true; } catch (Exception e) { // TODO: handle exception return false; } } /** * 指定时间内,期望指定元素可见,可见不仅指元素存在Dom树中,并且具有大小 * @param driver 实例 * @param by 元素定位标识 * @param timeToWaitInSec 等待时间,单位秒 * @return 元素可见返回true, */ public static boolean isVisibility(AndroidDriver<AndroidElement> driver,By by ,int timeToWaitInSec) { WebDriverWait webDriverWait = new WebDriverWait(driver, timeToWaitInSec); try { webDriverWait.until(ExpectedConditions.visibilityOfElementLocated(by)); return Boolean.TRUE; } catch (Exception e) { // TODO: handle exception return Boolean.FALSE; } } /** * 指定时间期望指定元素不可见,不可见包括元素肉眼不可见或者DOM树中不可见 * @param driver * @param by * @param timeToWaitInSec * @return 当元素不可见或者DOM树中不存在返回true */ public static boolean isInVisibility(AppiumDriver<AndroidElement> driver,By by ,int timeToWaitInSec) { WebDriverWait webDriverWait = new WebDriverWait(driver, timeToWaitInSec); try { webDriverWait.until(ExpectedConditions.invisibilityOfElementLocated(by)); return true; } catch (Exception e) { // TODO: handle exception return false; } } /** * 判断元素上的字符是否包含指定的待匹配字符串 * @param driver 进程实例 * @param by 待匹配元素 * @param textToMatch 待被包含匹配的字符串 * @param timeToWaitInSec 等待时间 * @return 如果元素字符串包含待匹配字符串则返回true,其他返回false */ public static boolean isTextPresent(AppiumDriver<AndroidElement> driver,By by ,String textToMatch , int timeToWaitInSec) { WebDriverWait webDriverWait = new WebDriverWait(driver, timeToWaitInSec); try { webDriverWait.until(ExpectedConditions.textToBePresentInElementLocated(by, textToMatch)); return true; } catch (Exception e) { // TODO: handle exception return false; } } /** * 判断元素是否可点击 * @param driver 进程实例 * @param by 元素定位标示 * @param timeToWaitInSec 等待时间 * @return 可点击返回true,否则返回false */ public static boolean isClickable(AppiumDriver<AndroidElement> driver,By by ,int timeToWaitInSec) { WebDriverWait webDriverWait = new WebDriverWait(driver, timeToWaitInSec); try { webDriverWait.until(ExpectedConditions.elementToBeClickable(by)); return true; } catch (Exception e) { // TODO: handle exception //e.printStackTrace(); return false; } } }
[ "mac@macdeMacBook-Pro.local" ]
mac@macdeMacBook-Pro.local
8ec41e95ec724c5b5ab99bca616968b692c4279f
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/mockito/src/org/mockito/exceptions/Pluralizer.java
8fdad3906f7df822eff5f8ca3f0eef0fa54eb390
[ "MIT" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Java
false
false
590
java
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.exceptions; @Deprecated /** * @Deprecated. This class has been moved to internal packages because it was never meant to be public. * If you need it for extending Mockito please let us know. You can still use {@link org.mockito.internal.reporting.Pluralizer}. * However, the package clearly states that the class in a part of a public API so it can change. */ public class Pluralizer extends org.mockito.internal.reporting.Pluralizer {}
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
729217c74fdcce0e131152ecb537da1a3e510e72
65f2c6a6ca38bec048d60ba58be515a1401acb3d
/ale.xtext/src-gen/ale/xtext/ale/BooleanOrOperation.java
f3760d3a79db517ef53321aebedeffa446aa7fe9
[]
no_license
manuelleduc/ale-compiler
59abbddab431cc224da7254ea1cc84c27d1a6667
8d6e04c0358be2f3fce6c83c3ea2ea1fb4fa8127
refs/heads/master
2021-01-19T04:12:47.739361
2017-07-19T15:30:35
2017-07-19T15:30:35
87,356,808
0
2
null
null
null
null
UTF-8
Java
false
false
2,346
java
/** * generated by Xtext 2.10.0 */ package ale.xtext.ale; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Boolean Or Operation</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link ale.xtext.ale.BooleanOrOperation#getLeft <em>Left</em>}</li> * <li>{@link ale.xtext.ale.BooleanOrOperation#getRight <em>Right</em>}</li> * </ul> * * @see ale.xtext.ale.AlePackage#getBooleanOrOperation() * @model * @generated */ public interface BooleanOrOperation extends Expression { /** * Returns the value of the '<em><b>Left</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Left</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Left</em>' containment reference. * @see #setLeft(Expression) * @see ale.xtext.ale.AlePackage#getBooleanOrOperation_Left() * @model containment="true" * @generated */ Expression getLeft(); /** * Sets the value of the '{@link ale.xtext.ale.BooleanOrOperation#getLeft <em>Left</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Left</em>' containment reference. * @see #getLeft() * @generated */ void setLeft(Expression value); /** * Returns the value of the '<em><b>Right</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Right</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Right</em>' containment reference. * @see #setRight(Expression) * @see ale.xtext.ale.AlePackage#getBooleanOrOperation_Right() * @model containment="true" * @generated */ Expression getRight(); /** * Sets the value of the '{@link ale.xtext.ale.BooleanOrOperation#getRight <em>Right</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Right</em>' containment reference. * @see #getRight() * @generated */ void setRight(Expression value); } // BooleanOrOperation
[ "manuel.leduc@inria.fr" ]
manuel.leduc@inria.fr
063838280b8aac132319b596444f78e1cb506995
7af928921898828426b7af6eff4dd9b7e4252817
/platforms/android-28/android-stubs-src/file/java/util/logging/ConsoleHandler.java
bc4726e654feea36a12e7534379b1ba00e9febb8
[]
no_license
Davidxiahao/RAPID
40c546a739a818a6562d0c9bce5df9f1a462d92b
e99f46155a2f3e6b84324ba75ecd22a278ba7167
refs/heads/master
2023-06-27T13:09:02.418736
2020-03-06T01:38:16
2020-03-06T01:38:16
239,509,129
0
0
null
null
null
null
UTF-8
Java
false
false
3,927
java
/* * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package java.util.logging; /** * This <tt>Handler</tt> publishes log records to <tt>System.err</tt>. * By default the <tt>SimpleFormatter</tt> is used to generate brief summaries. * <p> * <b>Configuration:</b> * By default each <tt>ConsoleHandler</tt> is initialized using the following * <tt>LogManager</tt> configuration properties where {@code <handler-name>} * refers to the fully-qualified class name of the handler. * If properties are not defined * (or have invalid values) then the specified default values are used. * <ul> * <li> &lt;handler-name&gt;.level * specifies the default level for the <tt>Handler</tt> * (defaults to <tt>Level.INFO</tt>). </li> * <li> &lt;handler-name&gt;.filter * specifies the name of a <tt>Filter</tt> class to use * (defaults to no <tt>Filter</tt>). </li> * <li> &lt;handler-name&gt;.formatter * specifies the name of a <tt>Formatter</tt> class to use * (defaults to <tt>java.util.logging.SimpleFormatter</tt>). </li> * <li> &lt;handler-name&gt;.encoding * the name of the character set encoding to use (defaults to * the default platform encoding). </li> * </ul> * <p> * For example, the properties for {@code ConsoleHandler} would be: * <ul> * <li> java.util.logging.ConsoleHandler.level=INFO </li> * <li> java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter </li> * </ul> * <p> * For a custom handler, e.g. com.foo.MyHandler, the properties would be: * <ul> * <li> com.foo.MyHandler.level=INFO </li> * <li> com.foo.MyHandler.formatter=java.util.logging.SimpleFormatter </li> * </ul> * <p> * @since 1.4 */ @SuppressWarnings({"unchecked", "deprecation", "all"}) public class ConsoleHandler extends java.util.logging.StreamHandler { /** * Create a <tt>ConsoleHandler</tt> for <tt>System.err</tt>. * <p> * The <tt>ConsoleHandler</tt> is configured based on * <tt>LogManager</tt> properties (or their default values). * */ public ConsoleHandler() { throw new RuntimeException("Stub!"); } /** * Publish a <tt>LogRecord</tt>. * <p> * The logging request was made initially to a <tt>Logger</tt> object, * which initialized the <tt>LogRecord</tt> and forwarded it here. * <p> * @param record description of the log event. A null record is * silently ignored and is not published */ public void publish(java.util.logging.LogRecord record) { throw new RuntimeException("Stub!"); } /** * Override <tt>StreamHandler.close</tt> to do a flush but not * to close the output stream. That is, we do <b>not</b> * close <tt>System.err</tt>. */ public void close() { throw new RuntimeException("Stub!"); } }
[ "davidxiahao@gmail.com" ]
davidxiahao@gmail.com
2180a250be210f1ff21bd909070007739a62f512
1945a74b11ce3a6c6067642d88c0c59d9863b43c
/app/src/main/java/com/example/logonrm/androidrestapp/API/model/Android.java
fcf688bdb4157937bf5072467756679b8243ff07
[]
no_license
aledebarba/AndroidRestApp
31a11ad8cdb2c418044ae1ecf8032b9eb88fd413
6703b6ffbca871ba030cca5976305be25add24f7
refs/heads/master
2021-01-13T07:11:53.535791
2017-06-22T01:40:53
2017-06-22T01:40:53
95,061,595
0
0
null
null
null
null
UTF-8
Java
false
false
743
java
package com.example.logonrm.androidrestapp.API.model; public class Android { private String versao; private String nome; private String api; private String urlImagem; public String getVersao() { return versao; } public void setVersao(String versao) { this.versao = versao; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getApi() { return api; } public void setApi(String api) { this.api = api; } public String getUrlImagem() { return urlImagem; } public void setUrlImagem(String urlImagem) { this.urlImagem = urlImagem; } }
[ "logonrm@fiap.com.br" ]
logonrm@fiap.com.br
390a710b67c1057b6b072f354af9314f3bfafe88
f7a25da32609d722b7ac9220bf4694aa0476f7b2
/net/minecraft/util/datafix/fixes/EntityZombieVillagerTypeFix.java
3b5d88102aa46d184a93c0db7f780133544765e1
[]
no_license
basaigh/temp
89e673227e951a7c282c50cce72236bdce4870dd
1c3091333f4edb2be6d986faaa026826b05008ab
refs/heads/master
2023-05-04T22:27:28.259481
2021-05-31T17:15:09
2021-05-31T17:15:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,519
java
package net.minecraft.util.datafix.fixes; import com.mojang.datafixers.DSL; import com.mojang.datafixers.Typed; import com.mojang.datafixers.Dynamic; import com.mojang.datafixers.schemas.Schema; import java.util.Random; public class EntityZombieVillagerTypeFix extends NamedEntityFix { private static final Random RANDOM; public EntityZombieVillagerTypeFix(final Schema schema, final boolean boolean2) { super(schema, boolean2, "EntityZombieVillagerTypeFix", References.ENTITY, "Zombie"); } public Dynamic<?> fixTag(Dynamic<?> dynamic) { if (dynamic.get("IsVillager").asBoolean(false)) { if (!dynamic.get("ZombieType").get().isPresent()) { int integer3 = this.getVillagerProfession(dynamic.get("VillagerProfession").asInt(-1)); if (integer3 == -1) { integer3 = this.getVillagerProfession(EntityZombieVillagerTypeFix.RANDOM.nextInt(6)); } dynamic = dynamic.set("ZombieType", dynamic.createInt(integer3)); } dynamic = dynamic.remove("IsVillager"); } return dynamic; } private int getVillagerProfession(final int integer) { if (integer < 0 || integer >= 6) { return -1; } return integer; } @Override protected Typed<?> fix(final Typed<?> typed) { return typed.update(DSL.remainderFinder(), this::fixTag); } static { RANDOM = new Random(); } }
[ "mark70326511@gmail.com" ]
mark70326511@gmail.com
2bd8d647991f4a08a1a236f5acdbdafef9455f23
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/plugins/kotlin/idea/tests/testData/refactoring/changeSignature/AddParameterFromFunctionWithReceiverBefore.java
a764d258ceb3050902ed90e059931982597b9c3e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Java
false
false
207
java
public class OdinImpl extends Odin { @Override public void justFun<caret>(@NotNull String s) {} void test() { new OdinImpl().justFun("text"); new Odin().justFun("text"); } }
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
a3e1bd10c946c98d0fe58822f95ac9b2d73484f8
ab0f2c6a8759d2faad9de5b5cd01a81fffb8442b
/newsee-generator/template/src/main/java/${basepackage_dir}/${subpackage_dir}/vo/${controllerName}Vo.java
70255b8c111a9c543bef0d2cfc7d5f6af1122ce0
[]
no_license
un-knower/ns
2e96eaed33a8cde70dbf5914764a2c61841858c9
a4b05880b4de1587f62d7af05d1d46e9e0cd27e7
refs/heads/master
2020-04-11T11:30:31.954717
2018-08-10T09:01:32
2018-08-10T09:01:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,236
java
<#include "/macro.include"/> <#include "/java_copyright.include"> package ${basepackage}.${subpackage}.vo; import java.io.Serializable; import java.util.Date; import io.swagger.annotations.ApiModelProperty; /** * ${controllerName}Vo * @version 1.0 * @author */ public class ${controllerName}Vo implements Serializable { private static final long serialVersionUID = 1L; <#list voColumns as column> /** ${column.columnAlias} */ @ApiModelProperty(value = "${column.columnAlias}") private ${column.simpleJavaType} ${column.columnNameLower}; </#list> <#list voColumns as column> public void set${column.columnName}(${column.simpleJavaType} ${column.columnNameLower}) { this.${column.columnNameLower} = ${column.columnNameLower}; } public ${column.simpleJavaType} get${column.columnName}() { return ${column.columnNameLower}; } </#list> } <#macro generateJavaColumns> <#list voColumns as column> <@generateBycondition column.sqlName> public void set${column.columnName}(${column.simpleJavaType} value) { this.${column.columnNameLower} = value; } public ${column.simpleJavaType} get${column.columnName}() { return this.${column.columnNameLower}; } </@generateBycondition> </#list> </#macro>
[ "1493562758@qq.com" ]
1493562758@qq.com
13bfee838f4d53a7c5b62ade075a56b009958f7f
4e5d61b632c452dafbfbe2bf47cfb1247877c729
/Java Repository/Spring MVC/src/_13/audit/controller/ProductController.java
a15f9da55b4d48de1902207f6df6d8024c02faf0
[]
no_license
tugcankoparan/Java-EE-Spring-Framework
520c943d472afe6266ddf15ed91dd3120c1768c0
ca565dfd29287b33d61acfe477d6980ad69c0866
refs/heads/master
2020-03-30T11:16:10.432834
2018-10-18T17:19:46
2018-10-18T17:19:46
151,164,255
0
1
null
null
null
null
UTF-8
Java
false
false
1,922
java
package _13.audit.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.MatrixVariable; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; import _13.audit.service.ProductService; @Controller @RequestMapping("/products") public class ProductController { @Autowired private ProductService productService; @RequestMapping public String list(Model model) { model.addAttribute("products", productService.getAllProducts()); return "13.audit.view/productList"; } @RequestMapping("/all") public ModelAndView listAllProducts() { ModelAndView modelAndView = new ModelAndView(); modelAndView.addObject("products", productService.getAllProducts()); modelAndView.setViewName("13.audit.view//productList"); return modelAndView; } @RequestMapping("/category/{productCategory}") public String listProductsByCategory(@PathVariable("productCategory") String productCategory, Model model) { model.addAttribute("products", productService.getProductsByCategory(productCategory)); return "13.audit.view/productList"; } @RequestMapping("/product") public String getProductById(@RequestParam(required = false, name = "id") String productId, Model model) { model.addAttribute("product", productService.getProductById(productId)); return "13.audit.view/productDetail"; } @RequestMapping("/brand/{brands}") public String listProductsByBrands(@MatrixVariable(pathVar = "brands") List<String> brands, Model model) { model.addAttribute("products", productService.getProductsByBrands(brands)); return "13.audit.view/productList"; } }
[ "tugcankoparan10@gmail.com" ]
tugcankoparan10@gmail.com
2beaa0751eb6668492aafcbe6420299f24799e81
135f85e9989cd11548f96e4668dd4acb55db41ac
/BipIDE/src/com/dc/bip/ide/gef/model/LineConnectionModel.java
0ca96090bd65aad4155ee18a9e529ba26dae662a
[]
no_license
zcdyx88/SmartBipIDE3
de7dd6821df0ccdd4bed0f5a345c301066ff4346
b8b8c7a46a8c66ab77ff2c4c0d7d082dc34978fc
refs/heads/master
2021-01-11T04:15:19.347831
2016-10-21T03:50:57
2016-10-21T03:50:57
71,221,613
0
0
null
null
null
null
UTF-8
Java
false
false
693
java
package com.dc.bip.ide.gef.model; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; public class LineConnectionModel extends AbstractConnectionModel implements Externalizable{ /** * */ private static final long serialVersionUID = 1L; public LineConnectionModel() { } @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(getSource()); out.writeObject(getTarget()); } @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { setSource((IConnectionNode)in.readObject()); setTarget((IConnectionNode)in.readObject()); } }
[ "you@example.com" ]
you@example.com
654f9ed524a5ba156454e773cc3bae25616fba1a
a6e2cd9ea01bdc5cfe58acce25627786fdfe76e9
/src/main/java/com/alipay/api/domain/AlipayOpenMiniShopActivityCancelModel.java
11b6e84d7facfa0d658e5079df3541b8b3ce8dba
[ "Apache-2.0" ]
permissive
cc-shifo/alipay-sdk-java-all
38b23cf946b73768981fdeee792e3dae568da48c
938d6850e63160e867d35317a4a00ed7ba078257
refs/heads/master
2022-12-22T14:06:26.961978
2020-09-23T04:00:10
2020-09-23T04:00:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
642
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 门店活动下架 * * @author auto create * @since 1.0, 2018-10-25 16:02:34 */ public class AlipayOpenMiniShopActivityCancelModel extends AlipayObject { private static final long serialVersionUID = 6178671579337325141L; /** * 业务处理流水号,调用活动创建接口时返回 */ @ApiField("out_biz_id") private String outBizId; public String getOutBizId() { return this.outBizId; } public void setOutBizId(String outBizId) { this.outBizId = outBizId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
851c45d41f58cf370985c9bede1457375e37f01f
ac82c09fd704b2288cef8342bde6d66f200eeb0d
/projects/OG-Financial/src/main/java/com/opengamma/financial/rest/AbstractRestfulJmsResultPublisher.java
e3202c3d6e1322bab7864bb55ec7415b984a4e2f
[ "Apache-2.0" ]
permissive
cobaltblueocean/OG-Platform
88f1a6a94f76d7f589fb8fbacb3f26502835d7bb
9b78891139503d8c6aecdeadc4d583b23a0cc0f2
refs/heads/master
2021-08-26T00:44:27.315546
2018-02-23T20:12:08
2018-02-23T20:12:08
241,467,299
0
2
Apache-2.0
2021-08-02T17:20:41
2020-02-18T21:05:35
Java
UTF-8
Java
false
false
4,350
java
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.rest; import java.util.concurrent.ExecutorService; import javax.jms.JMSException; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.core.Response; import org.fudgemsg.FudgeMsg; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.threeten.bp.Instant; import com.opengamma.transport.jaxrs.FudgeRest; import com.opengamma.util.rest.AbstractDataResource; /** * Base class for a RESTful resource which uses a REST+JMS pattern to publish streaming results. * <p> * Provides heartbeat listening and control of the JMS stream. */ public abstract class AbstractRestfulJmsResultPublisher extends AbstractDataResource { private static final Logger s_logger = LoggerFactory.getLogger(AbstractRestfulJmsResultPublisher.class); //CSOFF: just constants public static final String PATH_HEARTBEAT = "heartbeat"; public static final String PATH_START_JMS_RESULT_STREAM = "startJmsResultStream"; public static final String PATH_STOP_JMS_RESULT_STREAM = "stopJmsResultStream"; public static final String DESTINATION_FIELD = "destination"; //CSON: just constants private final AbstractJmsResultPublisher _resultPublisher; private final ExecutorService _executor; private volatile Instant _lastAccessed = Instant.now(); protected AbstractRestfulJmsResultPublisher(AbstractJmsResultPublisher resultPublisher, ExecutorService executor) { _resultPublisher = resultPublisher; _executor = executor; } //------------------------------------------------------------------------- /** * Tests whether the underlying resource has been terminated. * * @return true if the underlying resource has been terminated, false otherwise */ protected abstract boolean isTerminated(); /** * Called to indicate that the publisher's consumer has failed to provide heartbeats, and the resource is no longer * required. Releases the underlying resource, stopping publication of results. */ protected abstract void expire(); //------------------------------------------------------------------------- protected void startPublishingResults(String destination) throws Exception { getResultPublisher().startPublishingResults(destination); } protected void stopPublishingResults() throws JMSException { getResultPublisher().stopPublishingResults(); } //------------------------------------------------------------------------- @POST @Path(PATH_HEARTBEAT) public Response heartbeat() { updateLastAccessed(); return responseOk(); } public Instant getLastAccessed() { return _lastAccessed; } protected void updateLastAccessed() { _lastAccessed = Instant.now(); } //------------------------------------------------------------------------- @POST @Path(PATH_START_JMS_RESULT_STREAM) @Consumes(FudgeRest.MEDIA) public Response startResultStream(final FudgeMsg msg) { updateLastAccessed(); if (getResultPublisher() == null) { throw new UnsupportedOperationException("JMS not configured on server"); } final String destination = msg.getString(DESTINATION_FIELD); _executor.execute(new Runnable() { @Override public void run() { try { startPublishingResults(destination); } catch (Exception e) { s_logger.error("Error starting result publisher", e); } } }); return responseOk(destination); } @POST @Path(PATH_STOP_JMS_RESULT_STREAM) public Response stopResultStream() { updateLastAccessed(); if (getResultPublisher() == null) { throw new UnsupportedOperationException("JMS not configured on server"); } _executor.execute(new Runnable() { @Override public void run() { try { stopPublishingResults(); } catch (Exception e) { s_logger.error("Error stopping result publisher", e); } } }); return responseOk(); } //------------------------------------------------------------------------- private AbstractJmsResultPublisher getResultPublisher() { return _resultPublisher; } }
[ "cobaltblue.ocean@gmail.com" ]
cobaltblue.ocean@gmail.com
02ac3d054f6a4cf18f4e7913548a0af3bffc87f9
9ccb632efc5767fd570d912d2c3f3cf7bcbc7943
/03JavaAdvanced/02MultidimentionalArrays/A07FindTheRealQueen2.java
e7bd9624debd785850d4738f13898f13f9027eee
[]
no_license
CrystallizedSnowflakes/Java-SoftUni
59203e45589bd2c77c0e95ec40246f3a672f1ba5
753b132649c2b94d29e727db0d8753be52cf3133
refs/heads/main
2023-07-11T01:29:42.474682
2021-08-23T16:41:27
2021-08-23T16:41:27
321,304,125
0
0
null
null
null
null
UTF-8
Java
false
false
4,151
java
package bg.softuni.javaadvanced; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class A07FindTheRealQueen2 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); char[][] matrix = new char[8][8]; char validQueen; // read matrix for (int row = 0; row < matrix.length; row++) { String line = scanner.nextLine(); char[] charsArr = line.replaceAll("\\s+", "").toCharArray(); matrix[row] = charsArr; } List<int[]> indexes = new ArrayList<>(); // [4][3] // print matrix for (int row = 0; row < matrix.length; row++) { for (int col = 0; col < matrix[row].length; col++) { if (matrix[row][col] == 'q'){ boolean isTheQueen = true; // left row int l1Col = col - 1; while (l1Col >= 0){ if (matrix[row][l1Col] == 'q'){ isTheQueen = false; break; } l1Col--; } // right row int r1Col = col + 1; while (r1Col < matrix.length){ if (matrix[row][r1Col] == 'q'){ isTheQueen = false; break; } r1Col++; } // up col for (int row1 = row - 1; row1 >= 0; row1--) { if(matrix[row1][col] == 'q'){ isTheQueen = false; break; } } // down col for (int row1 = row + 1; row1 < matrix.length; row1++) { if(matrix[row1][col] == 'q'){ isTheQueen = false; break; } } //diagonal left up int d1Row = row - 1; int d1Col = col - 1; while (d1Row >= 0 && d1Col >= 0){ if (matrix[d1Row][d1Col] == 'q'){ isTheQueen = false; break; } d1Row--; d1Col--; } //diagonal left down int d2Row = row + 1; int d2Col = col - 1; while (d2Row < matrix.length && d2Col >= 0){ if (matrix[d2Row][d2Col] == 'q'){ isTheQueen = false; break; } d2Row++; d2Col--; } //diagonal right up int d3Row = row - 1; int d3Col = col + 1; while (d3Row >= 0 && d3Col < matrix.length){ if (matrix[d3Row][d3Col] == 'q'){ isTheQueen = false; break; } d3Row--; d3Col++; } //diagonal right down int d4Row = row + 1; int d4Col = col + 1; while (d4Row < matrix.length && d4Col < matrix.length){ if (matrix[d4Row][d4Col] == 'q'){ isTheQueen = false; break; } d4Row++; d4Col++; } if (isTheQueen) { indexes.add(new int[]{row, col}); } } } } for (int[] index : indexes) { System.out.print(index[0] + " " + index[1]); } } }
[ "nadezhda.georgieva2@gmail.com" ]
nadezhda.georgieva2@gmail.com
3ef4ad3a7e2a7d53893f3da7fd3a7ce728159f00
6dadbbc9d435b832d4676c8433670d69b7b75f67
/MentoAPI/src/main/java/net/skhu/mentoring/service/interfaces/ScheduleService.java
e6fd237a6ece16715cc72502c69b88a0799a582f
[]
no_license
MotivationMentoringSeason2/SM_Mentoring_Server
b9cbb5e4a94c1e72dac564d4a5593150ca0c72b9
18c62f89576a4596544d21826120ff14bc0550b4
refs/heads/master
2020-03-27T08:39:35.070983
2018-10-20T10:33:24
2018-10-20T10:33:24
146,274,321
0
1
null
2018-10-09T17:12:11
2018-08-27T09:12:07
Java
UTF-8
Java
false
false
1,059
java
package net.skhu.mentoring.service.interfaces; import net.skhu.mentoring.model.ConfirmModel; import net.skhu.mentoring.model.ScheduleModel; import net.skhu.mentoring.vo.ScheduleBriefVO; import net.skhu.mentoring.vo.TotalActivityVO; import org.springframework.http.ResponseEntity; import java.util.List; public interface ScheduleService { TotalActivityVO fetchMentoringActivityByTeamId(final Long teamId); List<ScheduleBriefVO> fetchBriefListByTeamId(final Long teamId); ScheduleModel fetchScheduleModelById(final Long scheduleId); ResponseEntity<String> createScheduleByModelAndTeamId(final ScheduleModel scheduleModel, final Long teamId); ResponseEntity<String> updateScheduleByModelAndTeamId(final ScheduleModel scheduleModel, final Long teamId, final Long scheduleId); ResponseEntity<String> updateAdminMessageAndStatus(final Long scheduleId, final ConfirmModel confirmModel); ResponseEntity<String> deleteScheduleByIdList(final List<Long> scheduleIds); ResponseEntity<String> deleteScheduleByTeam(final Long teamId); }
[ "tails5555@naver.com" ]
tails5555@naver.com
ef928f5d0f500e7ea4f747717114e5a5ad2159ee
fe0c1c4744d72332a54ac84d55d78f83bc5beb69
/BasicLib/src/main/java/com/zjclugger/basiclib/Log.java
728217c5293cb35af48a53af8625c9a213f3ed05
[ "Apache-2.0" ]
permissive
zjclugger/ComponentApp
0c0ddd359b7d3c2a970eb5dea4d68c1a20016819
25a6dfcc3c87c23ab03836e935ac4cf8d34f8ac6
refs/heads/master
2022-11-11T22:47:03.063175
2020-06-30T09:03:08
2020-06-30T09:03:08
276,047,372
0
0
null
null
null
null
UTF-8
Java
false
false
2,548
java
package com.zjclugger.basiclib; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.orhanobut.logger.LogAdapter; import com.orhanobut.logger.Logger; import com.orhanobut.logger.Printer; public final class Log { public static Printer t(@Nullable String tag) { return Logger.t(tag); } public static void addLogAdapter(@NonNull LogAdapter adapter) { Logger.addLogAdapter(adapter); } public static void log(int priority, @Nullable String tag, @Nullable String message, @Nullable Throwable throwable) { Logger.log(priority, tag, message, throwable); } public static void d(@NonNull String message, @Nullable Object... args) { Logger.d(message, args); } public static void d(@Nullable Object object) { Logger.d(object); } public static void e(@NonNull String message, @Nullable Object... args) { Logger.e(message, args); } public static void e(@Nullable Throwable throwable, @NonNull String message, @Nullable Object... args) { Logger.e(throwable, message, args); } public static void i(@NonNull String message, @Nullable Object... args) { Logger.i(message, args); } public static void v(@NonNull String message, @Nullable Object... args) { Logger.v(message, args); } public static void w(@NonNull String message, @Nullable Object... args) { Logger.w(message, args); } public static void wtf(@NonNull String message, @Nullable Object... args) { Logger.wtf(message, args); } public static void json(@Nullable String json) { Logger.json(json); } public static void xml(@Nullable String xml) { Logger.xml(xml); } public static void D(@Nullable String tag, @NonNull String message, @Nullable Object... args) { Logger.t(tag).d(message, args); } public static void I(@Nullable String tag, @NonNull String message, @Nullable Object... args) { Logger.t(tag).i(message, args); } public static void E(@Nullable String tag, @NonNull String message, @Nullable Object... args) { Logger.t(tag).e(message, args); } public static void W(@Nullable String tag, @NonNull String message, @Nullable Object... args) { Logger.t(tag).w(message, args); } public static void V(@Nullable String tag, @NonNull String message, @Nullable Object... args) { Logger.t(tag).v(message, args); } }
[ "zjclugger@126.com" ]
zjclugger@126.com
cdbdabe50b5321c3ceae0f2436d7d98dce39b41e
6db0b9398aee839154557ac209d2d665cca64ce1
/src/com/wang/so/love/android/app/view/fragment/MessageFragment.java
96cea84ec2e6cf86c6db472e75c8f4f20138c59a
[]
no_license
hejiawang/SoLoveAndroidApp
ab4449741abb0d4b021dd41571c046981db6d95a
b797e834a7dfbd7a205a35c88d2cbb6e34e3da78
refs/heads/master
2020-06-16T16:37:15.447442
2016-12-09T13:50:04
2016-12-09T13:50:04
75,082,960
0
0
null
null
null
null
UTF-8
Java
false
false
537
java
package com.wang.so.love.android.app.view.fragment; import com.wang.so.love.android.app.view.R; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class MessageFragment extends Fragment { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View messageLayout = inflater.inflate(R.layout.choice_layout, container, false); return messageLayout; } }
[ "952327407@qq.com" ]
952327407@qq.com
7dea4b894b098bf987fbfaed59c459ba0cd20aa5
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XCOMMONS-928-2-29-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/repository/internal/installed/DefaultInstalledExtensionRepository_ESTest.java
551a57383eb0ad9a38839b37038b24b35f88dbd2
[]
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
626
java
/* * This file was automatically generated by EvoSuite * Tue Apr 07 17:17:08 UTC 2020 */ package org.xwiki.extension.repository.internal.installed; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class DefaultInstalledExtensionRepository_ESTest extends DefaultInstalledExtensionRepository_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
6d6471afd0cc5fc549d023a5e36383f00947ee72
b2dff579a42b1c49e87171ac3c6bd0824f5777d0
/SymmetricDS/symmetric-core/src/main/java/org/jumpmind/symmetric/transport/IConcurrentConnectionManager.java
d71d636673172c1d1a6494752ec90c2c915894fc
[ "Apache-2.0" ]
permissive
hawkwang/BeyondMDM
d03870742ba070b50ef1e9e9b0f1e37af5d6000c
588726dfa221bc9f3de7df7a2afa5bee0e213fbd
refs/heads/master
2023-01-24T21:09:23.057957
2019-06-20T09:31:52
2019-06-20T09:31:52
192,829,181
4
7
Apache-2.0
2023-01-04T02:34:55
2019-06-20T01:43:46
Java
UTF-8
Java
false
false
2,882
java
/** * Licensed to JumpMind Inc under one or more contributor * license agreements. See the NOTICE file distributed * with this work for additional information regarding * copyright ownership. JumpMind Inc licenses this file * to you under the GNU General Public License, version 3.0 (GPLv3) * (the "License"); you may not use this file except in compliance * with the License. * * You should have received a copy of the GNU General Public License, * version 3.0 (GPLv3) along with this library; if not, see * <http://www.gnu.org/licenses/>. * * 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.jumpmind.symmetric.transport; import java.util.Date; import java.util.Map; import org.jumpmind.symmetric.transport.ConcurrentConnectionManager.NodeConnectionStatistics; import org.jumpmind.symmetric.transport.ConcurrentConnectionManager.Reservation; public interface IConcurrentConnectionManager { public static enum ReservationType { /** * A hard reservation is one that is expected to be released. It does * not have a timeout. */ HARD, /** * A soft reservation is one that will time out eventually. */ SOFT }; /** * @param nodeId * @param reservationRequest * if true then hold onto reservation for the time it * typically takes for a node to reconnect after the initial * request. Otherwise, we know that the node has actually * connected for activity. * @return true if the connection has been reserved and the node is meant to * proceed with its current operation. */ public boolean reserveConnection(String nodeId, String poolId, ReservationType reservationRequest); public boolean reserveConnection(String nodeId, String channelId, String poolId, ReservationType reservationRequest); public boolean releaseConnection(String nodeId, String poolId); public boolean releaseConnection(String nodeId, String channelId, String poolId); public int getReservationCount(String poolId); public Map<String, Map<String, NodeConnectionStatistics>> getNodeConnectionStatisticsByPoolByNodeId(); public Map<String, Map<String, Reservation>> getActiveReservationsByNodeByPool(); public void addToWhitelist(String nodeId); public String[] getWhiteList(); public void removeFromWhiteList(String nodeId); public Map<String, Date> getPullReservationsByNodeId(); public Map<String, Date> getPushReservationsByNodeId(); }
[ "1075876205@qq.com" ]
1075876205@qq.com
2ccb7911fc87735498c1991f2e58f848efc208bb
14a2525a553c8b7dfee3bd43cf91ca1b63cedb87
/cj.netos.rc.wybank.program/src/cj/netos/rc/wybank/mapper/WithdrawLedgerMapper.java
fd6f5047209d865daa9ace2b17cabe728da116b2
[]
no_license
carocean/cj.netos.rc.wybank
56078ccee1f750905549d13ea3db62d9fda05f51
ec9c1d42af7db4bfad8dbe58b052388a20e3b0d9
refs/heads/master
2022-07-29T02:45:09.500194
2020-05-19T03:25:57
2020-05-19T03:25:57
264,565,202
0
0
null
null
null
null
UTF-8
Java
false
false
1,826
java
package cj.netos.rc.wybank.mapper; import cj.netos.rc.wybank.model.WithdrawLedger; import cj.netos.rc.wybank.model.WithdrawLedgerExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface WithdrawLedgerMapper { /** * @mbg.generated generated automatically, do not modify! */ long countByExample(WithdrawLedgerExample example); /** * @mbg.generated generated automatically, do not modify! */ int deleteByExample(WithdrawLedgerExample example); /** * @mbg.generated generated automatically, do not modify! */ int deleteByPrimaryKey(String sn); /** * @mbg.generated generated automatically, do not modify! */ int insert(WithdrawLedger record); /** * @mbg.generated generated automatically, do not modify! */ int insertSelective(WithdrawLedger record); /** * @mbg.generated generated automatically, do not modify! */ List<WithdrawLedger> selectByExample(WithdrawLedgerExample example); /** * @mbg.generated generated automatically, do not modify! */ WithdrawLedger selectByPrimaryKey(String sn); /** * @mbg.generated generated automatically, do not modify! */ int updateByExampleSelective(@Param("record") WithdrawLedger record, @Param("example") WithdrawLedgerExample example); /** * @mbg.generated generated automatically, do not modify! */ int updateByExample(@Param("record") WithdrawLedger record, @Param("example") WithdrawLedgerExample example); /** * @mbg.generated generated automatically, do not modify! */ int updateByPrimaryKeySelective(WithdrawLedger record); /** * @mbg.generated generated automatically, do not modify! */ int updateByPrimaryKey(WithdrawLedger record); }
[ "cj@ss.com" ]
cj@ss.com
824add919c900c32cca973679ff3330061cbd62d
8430cd0a92af431fa85e92a7c5ea20b8efda949f
/Java-OOP Advance/InterfacesAndAbstraction-Exercises/src/Pr8MilitaryElite/modules/SpecialisedSoldier.java
5b62b3002a69f2e4af00e6e23de028f825b4ab65
[]
no_license
Joret0/Exercises-with-Java
9a93e39236b88bb55335e6cff62d2e774f78b054
a1b2f64aafdf8ce8b28fb20f31aa5e37b9643652
refs/heads/master
2021-09-16T04:28:49.605116
2018-06-16T14:32:52
2018-06-16T14:32:52
71,498,826
0
0
null
null
null
null
UTF-8
Java
false
false
892
java
package Pr8MilitaryElite.modules; import Pr8MilitaryElite.interfaces.Job; import Pr8MilitaryElite.interfaces.SpecialisedSoldierImpl; public abstract class SpecialisedSoldier extends Private implements SpecialisedSoldierImpl{ private String corps; public SpecialisedSoldier(String id, String firstName, String lastName, double salary, String corps) { super(id, firstName, lastName, salary); this.setCorps(corps); } public void setCorps(String corps) { if (!corps.equals("Airforces") && !corps.equals("Marines")) { throw new IllegalArgumentException("invalid corps"); } this.corps = corps; } @Override public double getSalary() { return super.getSalary(); } @Override public String getCorps() { return this.corps; } @Override public void addJob(Job job) { } }
[ "georgi_stalev@abv.bg" ]
georgi_stalev@abv.bg
2b2d14aae7bef38c7eb797c172b5e61ce4992e0d
ffeb675ae2e2308cad121e2eda5f432561322274
/app/src/main/java/com/spade/mazda/ui/services/model/Location.java
735b0339b8d14acc1a6bd057df7b186f8fa69928
[]
no_license
ddopik/ProjectMz
6c6cb32395be3d0b10c01f1937c0a3bc65d5eb2b
90d8c79893e0eb71ebe9ab98aaf4268ee2159937
refs/heads/master
2020-03-20T22:35:07.892559
2019-01-15T00:02:51
2019-01-15T00:02:51
137,805,803
0
0
null
null
null
null
UTF-8
Java
false
false
1,499
java
package com.spade.mazda.ui.services.model; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Location implements Parcelable { @SerializedName("id") @Expose private Integer id; @SerializedName("name") @Expose private String name; public final static Creator<Location> CREATOR = new Creator<Location>() { @SuppressWarnings({ "unchecked" }) public Location createFromParcel(Parcel in) { return new Location(in); } public Location[] newArray(int size) { return (new Location[size]); } }; protected Location(Parcel in) { this.id = ((Integer) in.readValue((Integer.class.getClassLoader()))); this.name = ((String) in.readValue((String.class.getClassLoader()))); } public Location() { } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void writeToParcel(Parcel dest, int flags) { dest.writeValue(id); dest.writeValue(name); } public int describeContents() { return 0; } }
[ "ddopik.01@gmail.com" ]
ddopik.01@gmail.com
63be3755c79ee9035354fea7df7314127463dc3e
ed4d0b3045a0d67fc66334c3ebca107b28954b10
/apm-sniffer/apm-sdk-plugin/kafka-v1-plugin/src/main/java/org/apache/skywalking/apm/plugin/kafka/v1/CallbackInterceptor.java
3d3f38e9a4c8ac510367750b8d1197b619b22cc2
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
zouyx/incubator-skywalking
c3b4165e9a68858dd434336fce1a4e71abf1d688
14db2ede7f36a93c1342c403f6daa96b55946caa
refs/heads/master
2023-06-21T11:09:59.814420
2019-03-15T11:24:28
2019-03-15T11:24:28
175,841,823
2
0
Apache-2.0
2019-03-15T15:05:01
2019-03-15T15:05:00
null
UTF-8
Java
false
false
2,579
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.skywalking.apm.plugin.kafka.v1; import java.lang.reflect.Method; import org.apache.skywalking.apm.agent.core.context.ContextManager; import org.apache.skywalking.apm.agent.core.context.ContextSnapshot; import org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult; public class CallbackInterceptor implements InstanceMethodsAroundInterceptor { @Override public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, MethodInterceptResult result) throws Throwable { AbstractSpan abstractSpan = ContextManager.createLocalSpan("Producer/Callback"); //Get the SnapshotContext ContextSnapshot contextSnapshot = (ContextSnapshot)objInst.getSkyWalkingDynamicField(); ContextManager.continued(contextSnapshot); } @Override public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable { Exception exceptions = (Exception)allArguments[1]; if (exceptions != null) { ContextManager.activeSpan().errorOccurred().log(exceptions); } ContextManager.stopSpan(); return ret; } @Override public void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t) { ContextManager.activeSpan().errorOccurred().log(t); } }
[ "nzt48.xin@gmail.com" ]
nzt48.xin@gmail.com
72423a7517a9e977926e4ba184f3daed85b12ce3
35016cb55dcbebef7393c8751ec3d2c9b260d5f6
/gg/src/main/java/com/don/controller/FileDownloadController.java
d25f76f6a1a02548aabfc72bba6543d30b938964
[]
no_license
chaosssliu/practice
6a5f13448d113260b9b08c42e132a4a3808c043d
da091688dfeb125fed06e031195ab76d9707e54e
refs/heads/master
2022-06-24T14:20:38.213285
2022-06-10T21:40:50
2022-06-10T21:40:50
96,723,079
0
0
null
null
null
null
UTF-8
Java
false
false
1,561
java
package com.don.controller; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.FileCopyUtils; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import com.don.model.FileInfo; import com.don.service.FileInfoService; @RestController public class FileDownloadController { @Autowired FileInfoService fileService; @RequestMapping(value = "/file/{id}", method = RequestMethod.GET) public String uploadFileHandler(@PathVariable("id") Integer id, HttpServletResponse response) { FileInfo fileinfo = fileService.getFileInfoById(id); if (fileinfo == null) { return "File record not found)"; } String path = fileinfo.getPath(); File file = new File(path); if (file.exists()) { try { InputStream is = new FileInputStream(path); response.addHeader("Content-disposition", "attachment;filename=" + fileinfo.getName()); response.setContentType("application/octet-stream"); FileCopyUtils.copy(is, response.getOutputStream()); return "File will be downloaded shortly"; } catch (IOException e) { e.printStackTrace(); return "IO Exception occured on server"; } } return "File in record but does not exist"; } }
[ "liushashiwr@gmail.com" ]
liushashiwr@gmail.com
8f1fa8c432c5befe2380d3032f7893c23f87f633
e9fcc52371d9c94d30fcdb5f850c3623a29d73e8
/xueqiao_admin_web/java/src/main/java/com/longsheng/xueqiao/admin/bean/company/LocalCompanyGroupSpecInfo.java
0f38217c13bf6a387c176dc0bb26450a4baa14f2
[]
no_license
xueqiao-codes/xueqiao-portal
ebbcffc2b4226224d0265c9f498167567c7f83a9
dcef080c22f51fa827d29be88a2dd2dd604c56b3
refs/heads/main
2023-04-15T21:09:35.417625
2021-04-25T12:48:06
2021-04-25T12:48:06
361,424,886
0
1
null
null
null
null
UTF-8
Java
false
false
2,017
java
package com.longsheng.xueqiao.admin.bean.company; public class LocalCompanyGroupSpecInfo { private int companyId; private int groupId; private String groupName; private String hostingServiceStatus; private String serviceType; private String specName; private String expiredTimestamp; private String releaseTimestamp; private String operateDescription; public int getCompanyId() { return companyId; } public void setCompanyId(int companyId) { this.companyId = companyId; } public int getGroupId() { return groupId; } public void setGroupId(int groupId) { this.groupId = groupId; } public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; } public String getHostingServiceStatus() { return hostingServiceStatus; } public void setHostingServiceStatus(String hostingServiceStatus) { this.hostingServiceStatus = hostingServiceStatus; } public String getServiceType() { return serviceType; } public void setServiceType(String serviceType) { this.serviceType = serviceType; } public String getSpecName() { return specName; } public void setSpecName(String specName) { this.specName = specName; } public String getExpiredTimestamp() { return expiredTimestamp; } public void setExpiredTimestamp(String expiredTimestamp) { this.expiredTimestamp = expiredTimestamp; } public String getReleaseTimestamp() { return releaseTimestamp; } public void setReleaseTimestamp(String releaseTimestamp) { this.releaseTimestamp = releaseTimestamp; } public String getOperateDescription() { return operateDescription; } public void setOperateDescription(String operateDescription) { this.operateDescription = operateDescription; } }
[ "wangli@authine.com" ]
wangli@authine.com
bc188dbb4772a4e0af8b0649f29e88a46c49a7d6
92237641f61e9b35ff6af6294153a75074757bec
/SPRING/Emp_Spring_BootStrap_Tiles_Mybatis_2Team_RestController/src/main/java/bit/or/eesotto/controller/EmpController.java
655f1dc87d84cdaf82230f62369125d046329f6a
[]
no_license
taepd/study
8ded115765c4f804813e255d9272b727bf41ec80
846d3f2a5a4100225b750f00f992a640e9287d9c
refs/heads/master
2023-03-08T13:56:57.366577
2022-05-08T15:24:35
2022-05-08T15:24:35
245,838,600
0
1
null
2023-03-05T23:54:41
2020-03-08T15:25:15
JavaScript
UTF-8
Java
false
false
7,916
java
package bit.or.eesotto.controller; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.multipart.commons.CommonsMultipartFile; import dao.Empdao; import dto.Emp; import net.sf.json.JSONObject; import dto.Admin; @Controller public class EmpController { private SqlSession sqlsession; @Autowired public void setSqlsession(SqlSession sqlsession) { this.sqlsession = sqlsession; } // 관리자 로그인 @RequestMapping("AdminLogin.emp") public String adminLogin(String userid, String pwd, HttpSession session, Model model) { Admin admin = null; Empdao empdao = sqlsession.getMapper(Empdao.class); admin = empdao.getAdmin(userid); String msg = ""; String url = ""; if (admin != null && userid.equals(admin.getUserid()) && pwd.equals(admin.getPwd())) { session.setAttribute("userid", userid); msg = "로그인 성공"; url = "EmpList.emp"; } else { msg = "로그인 실패"; url = "./authentication-login.html"; } // request.setAttribute("msg", msg); // request.setAttribute("url", url); model.addAttribute("msg", msg); model.addAttribute("url", url); return "redirect"; // "noticeDetail.jsp"; } @RequestMapping("AdminLogout.emp") public String adminLogout(HttpSession session, Model model) { session.invalidate(); String msg = "로그아웃 되었습니다."; String url = "./authentication-login.html"; model.addAttribute("msg", msg); model.addAttribute("url", url); return "redirect"; } // EmpList 전체 리스트 호출 @RequestMapping("EmpList.emp") public String empList(String cp, String ps, Model model) { // List 페이지 처음 호출 ... if (ps == null || ps.trim().equals("")) { // default 값 설정 ps = "5"; // 5개씩 } if (cp == null || cp.trim().equals("")) { // default 값 설정 cp = "1"; // 1번째 페이지 보겠다 } int pagesize = Integer.parseInt(ps); int cpage = Integer.parseInt(cp); int pagecount = 0; System.out.println("pagesize" + pagesize); System.out.println("cpage" + cpage); // DAO 데이터 받아오기 List<Emp> emplist = null; // mapper 를 통한 인터페이스 연결 Empdao empdao = sqlsession.getMapper(Empdao.class); int totalempcount = empdao.getEmpCount(); // emplist = empdao.getEmpList(cpage, pagesize); // 23건 % 5 if (totalempcount % pagesize == 0) { pagecount = totalempcount / pagesize; // 20 << 100/5 } else { pagecount = (totalempcount / pagesize) + 1; } model.addAttribute("cpage", cpage); model.addAttribute("pagesize", pagesize); model.addAttribute("emplist", emplist); // view까지 전달 (forward) model.addAttribute("pagecount", pagecount); model.addAttribute("totalempcount", totalempcount); return "EmpList"; } // EmpList 상세보기 @RequestMapping("EmpDetail.emp") public String empDetail(String empno, Model model, String cp, String ps) { Emp emp = null; Empdao empdao = sqlsession.getMapper(Empdao.class); emp = empdao.getDetail(Integer.parseInt(empno)); model.addAttribute("cpage", cp); model.addAttribute("pagesize", ps); model.addAttribute("emp", emp); return "EmpDetail"; } // Insert 사원 등록 화면 @RequestMapping(value = "EmpInsert.emp", method = RequestMethod.GET) public String empInsert() { return "EmpInsert"; } // Insert 사원 등록 처리 @RequestMapping(value = "EmpInsert.emp", method = RequestMethod.POST) public String empInsert(Emp emp, HttpServletRequest request, Model model) throws IOException { System.out.println("insert 테스트"); List<CommonsMultipartFile> files = emp.getFiles(); List<String> filenames = new ArrayList<String>(); // 파일명관리 if (files != null && files.size() > 0) { // 최소 1개의 업로드가 있다면 for (CommonsMultipartFile multifile : files) { String filename = multifile.getOriginalFilename(); String path = request.getServletContext().getRealPath("/upload"); String fpath = path + "\\" + filename; if (!filename.equals("")) { // 실 파일 업로드 FileOutputStream fs = new FileOutputStream(fpath); fs.write(multifile.getBytes()); fs.close(); } filenames.add(filename); // 파일명을 별도 관리 (DB insert) } } // DB 파일명 저장 emp.setImg(filenames.get(0)); Empdao empdao = sqlsession.getMapper(Empdao.class); int result = 0; result = empdao.insertEmp(emp); String msg = ""; String url = ""; if (result > 0) { msg = "등록성공"; url = "EmpList.emp"; } else { msg = "등록실패"; url = "EmpInsert.emp"; } model.addAttribute("msg", msg); model.addAttribute("url", url); return "redirect"; } // Update 사원 수정 화면 @RequestMapping(value = "EmpUpdate.emp", method = RequestMethod.GET) public String empUpdate(String empno, Model model, String cp, String ps) { Emp emp = null; Empdao empdao = sqlsession.getMapper(Empdao.class); emp = empdao.getDetail(Integer.parseInt(empno)); model.addAttribute("cpage", cp); model.addAttribute("pagesize", ps); model.addAttribute("emp", emp); return "EmpUpdate"; } // Update 사원 수정 처리 @RequestMapping(value = "EmpUpdate.emp", method = RequestMethod.POST) public String empUpdate(Emp emp, HttpServletRequest request, Model model, String cp, String ps) throws IOException { System.out.println("insert 테스트"); List<CommonsMultipartFile> files = emp.getFiles(); List<String> filenames = new ArrayList<String>(); // 파일명관리 if (files != null && files.size() > 0) { // 최소 1개의 업로드가 있다면 for (CommonsMultipartFile multifile : files) { String filename = multifile.getOriginalFilename(); String path = request.getServletContext().getRealPath("/upload"); String fpath = path + "\\" + filename; if (!filename.equals("")) { // 실 파일 업로드 FileOutputStream fs = new FileOutputStream(fpath); fs.write(multifile.getBytes()); fs.close(); } filenames.add(filename); // 파일명을 별도 관리 (DB insert) } } // DB 파일명 저장 emp.setImg(filenames.get(0)); Empdao empdao = sqlsession.getMapper(Empdao.class); int result = 0; result = empdao.updateEmp(emp); String msg = ""; String url = ""; if (result > 0) { msg = "수정 성공"; url = "EmpList.emp"; } else { msg = "수정 실패"; url = "EmpUpdate.emp"; } model.addAttribute("cp", cp); model.addAttribute("ps", ps); model.addAttribute("msg", msg); model.addAttribute("url", url); return "redirect"; } // 사원 정보 삭제 @RequestMapping("EmpDelete.emp") public String empDelete(String empno, String cp, String ps, Model model) throws ClassNotFoundException, SQLException { int result = 0; Empdao empdao = sqlsession.getMapper(Empdao.class); result = empdao.deleteEmp(Integer.parseInt(empno)); String msg = ""; String url = ""; if (result > 0) { msg = "삭제 성공"; url = "EmpList.emp"; } else { msg = "삭제 실패"; url = "EmpDetail.emp?empno=" + empno; } model.addAttribute("msg", msg); model.addAttribute("url", url); return "redirect"; } }
[ "taepd1@gmail.com" ]
taepd1@gmail.com
ae154f184004418df93e66d6c47f70adcd99ebf2
774b50fe5091754f23ef556c07a4d1aab56efe27
/oag/src/main/java/org/oagis/model/v101/CancelPickListType.java
af0d667a19774fb30879c71d9ed61b5d47f14b29
[]
no_license
otw1248/thirdpartiess
daa297c2f44adb1ffb6530f88eceab6b7f37b109
4cbc4501443d807121656e47014d70277ff30abc
refs/heads/master
2022-12-07T17:10:17.320160
2022-11-28T10:56:19
2022-11-28T10:56:19
33,661,485
0
0
null
null
null
null
UTF-8
Java
false
false
1,994
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.04.09 at 04:08:08 PM CST // package org.oagis.model.v101; 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 CancelPickListType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="CancelPickListType"> * &lt;complexContent> * &lt;extension base="{http://www.openapplications.org/oagis/10}BusinessObjectDocumentType"> * &lt;sequence> * &lt;element name="DataArea" type="{http://www.openapplications.org/oagis/10}CancelPickListDataAreaType"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CancelPickListType", propOrder = { "dataArea" }) public class CancelPickListType extends BusinessObjectDocumentType { @XmlElement(name = "DataArea", required = true) protected CancelPickListDataAreaType dataArea; /** * Gets the value of the dataArea property. * * @return * possible object is * {@link CancelPickListDataAreaType } * */ public CancelPickListDataAreaType getDataArea() { return dataArea; } /** * Sets the value of the dataArea property. * * @param value * allowed object is * {@link CancelPickListDataAreaType } * */ public void setDataArea(CancelPickListDataAreaType value) { this.dataArea = value; } }
[ "otw1248@otw1248.com" ]
otw1248@otw1248.com
fb1541d27427a503486574c6c7f1a40fd937db08
e66493e0796701257b1979711c4260fa2da935a2
/jsf2-primefaces-spring/src/main/generated-java/com/jaxio/dao/support/OrderBy.java
fdcb2d0d9b9fff340b9c5be421dc0fc82151241e
[]
no_license
huangbaihua001/generated-projects
bb0dab62eec19acd1ee7d36aa95a1ad6f9db6156
529d8787f62fc7eb0c106ee86475f6ae644d42b5
refs/heads/master
2021-01-18T06:52:30.076624
2012-12-31T13:56:13
2012-12-31T13:56:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,107
java
/* * (c) Copyright 2005-2012 JAXIO, http://www.jaxio.com * Source code generated by Celerio, a Jaxio product * Want to use Celerio within your company? email us at info@jaxio.com * Follow us on twitter: @springfuse * Template pack-backend-jpa:src/main/java/project/dao/support/OrderBy.p.vm.java */ package com.jaxio.dao.support; import java.io.Serializable; import javax.persistence.metamodel.SingularAttribute; import org.apache.commons.lang.Validate; import static com.jaxio.dao.support.OrderByDirection.ASC; import static com.jaxio.dao.support.OrderByDirection.DESC; import com.jaxio.domain.Identifiable; /** * Holder class for search ordering used by the {@link SearchParameters}. * When used with {@link NamedQueryUtil}, you pass column name. For other usage, pass the property name. */ public class OrderBy implements Serializable { private static final long serialVersionUID = 1L; private String columnOrProperty; private OrderByDirection direction = ASC; public OrderBy(String columnOrProperty, OrderByDirection direction) { Validate.notNull(columnOrProperty); Validate.notNull(direction); this.columnOrProperty = columnOrProperty; this.direction = direction; } public OrderBy(String columnOrProperty) { this(columnOrProperty, ASC); } public OrderBy(SingularAttribute<? extends Identifiable<? extends Serializable>, ? extends Serializable> attribute, OrderByDirection direction) { Validate.notNull(attribute); Validate.notNull(direction); this.columnOrProperty = attribute.getName(); this.direction = direction; } public OrderBy(SingularAttribute<? extends Identifiable<? extends Serializable>, ? extends Serializable> attribute) { this(attribute, ASC); } public String getColumn() { return columnOrProperty; } public String getProperty() { return columnOrProperty; } public OrderByDirection getDirection() { return direction; } public boolean isOrderDesc() { return DESC == direction; } }
[ "nromanetti@jaxio.com" ]
nromanetti@jaxio.com
bfb4047e7a540ead8d38677806ee9ac5879c1f8b
2cb5f2a8bdd8aa994ea331df6a020990bc8dda05
/dataset/src/main/java/edu/mbl/jif/imaging/mmtiff/ImageCache.java
f697319720e528978aac20272001786fd95e6033
[]
no_license
Java-Instrumentation-Framework/jif-mmx
fc439a4ef6868cdcec9ffb0041f152399882a94b
0f684a28e3e49b128895e4334314d12bccfeca5b
refs/heads/master
2021-01-16T01:01:46.025770
2014-06-02T23:19:31
2014-06-02T23:19:31
14,503,346
0
1
null
null
null
null
UTF-8
Java
false
false
4,862
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.mbl.jif.imaging.mmtiff; import java.awt.Color; import java.util.Set; import org.json.JSONObject; /** * An interface, implemented by MMImageCache. See also TaggedImageStorage. * The ImageCache is expected to use another TaggedImageStorage for actual * storage. It contains various helper functions for interrogating the * stored data set. */ public interface ImageCache extends TaggedImageStorage { /* * Adds the provided cache listener. The listener will be notified * whenever an image is added or finished() has been called. */ void addImageCacheListener(ImageCacheListener l); /* * Get a list of keys that are not identical for every TaggedImage. * The Set returns changes over time as new images are loaded * or received. */ Set<String> getChangingKeys(); /* * Gets the overal comment string for this data set. */ String getComment(); /* * Gets a list of image cache listeners. */ ImageCacheListener[] getImageCacheListeners(); /* * Returns the image tags for the last received image. */ JSONObject getLastImageTags(); /* * Removes an imageCacheListener so that it will no longer be notified * of relevant events. */ void removeImageCacheListener(ImageCacheListener l); /* * Save a new copy of a TaggedImage data set, stored in a TaggedImageStorage * object. The new data set will be used by this cache in the future. */ void saveAs(TaggedImageStorage newImageFileManager); /* * Save a new copy of a TaggedImage data set, stored in a TaggedImageStorage * object. The data set will be use by this cache in the future if * moveToNewStorage is true. */ void saveAs(TaggedImageStorage newImageFileManager, boolean moveToNewStorage); /* * Set the data set's comment string for this image cache. */ void setComment(String text); /* * Set the comment string for an individual image. The image is specified * by indices given in tags. */ void setImageComment(String comment, JSONObject tags); /* * Returns the image comment for a particular image. The image is specified * by indices given in tags. */ String getImageComment(JSONObject tags); /* * Store the display settings for a particular channel. * @channelIndex - The channel index for which settings are being specified * @min - The minimum display intensity value (shown as black) * @max - The maximum display intensity value (shown as full-intensity color) * @gamma - The gamma value (curvature of the value-to-display curve) * @histMax - The prefered maximum value at which the histogram is displayed. * @displayMode - Composite, Color, or Grayscale */ public void storeChannelDisplaySettings(int channelIndex, int min, int max, double gamma, int histMax, int displayMode); /* * Returns a JSONObject with channel settings for the channel whose index * is the argument. */ public JSONObject getChannelSetting(int channel); /* * Returns the bit depth of all images in the image cache. */ public int getBitDepth(); //public int getChannelBitDepth(int channelIndex); /* * Returns the display mode used by the CompositeImage (composite, color, or grayscale) */ public int getDisplayMode(); /* * Returns the preferred display color for a channel, specified by channelIndex. */ public Color getChannelColor(int channelIndex); /* * Sets the preferred display color for a channel * @channel - The channel index * @rgb - A 6-byteinteger specifying the color: e.g., 0xFFFFFF is white. */ public void setChannelColor(int channel, int rgb); /* * Returns the name of a channel specified by channelIndex. */ public String getChannelName(int channelIndex); /* * Gets the minimum intensity value for a channel display (typically shown * as black). */ public int getChannelMin(int channelIndex); /* * Gets the maximum intensity value for a channel display (typically shown * as full intensity color). */ public int getChannelMax(int channelIndex) ; /* * Returns the gamma for the channel display. */ public double getChannelGamma(int channelIndex); /* * Returns the preferred maximum value for the channel's histogram. */ public int getChannelHistogramMax(int channelIndex); /* * Returns the number of channels in the ImageCache. More channels * may appear if more images are received with new channel indices. */ public int getNumChannels(); /* * Returns the pixel type for images in this image cache. */ public String getPixelType(); }
[ "gharris@mbl.edu" ]
gharris@mbl.edu
4fb82b4e82dd86f8b98b8d86f42744c89b8bde8c
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/digits/313d572e1f050451c688b97510efa105685fa275a8442f9119ce9b3f85f46e234cdf03593568e19798aed6b79c66f45c97be937d09b6ff9544f0f59162538575/000/mutations/409/digits_313d572e_000.java
96471e23700503feeac2fbf4cf2ce07624d0f3ea
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,751
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class digits_313d572e_000 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { digits_313d572e_000 mainClass = new digits_313d572e_000 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj given = new IntObj (), digit10 = new IntObj (), digit9 = new IntObj (), digit8 = new IntObj (), digit7 = new IntObj (), digit6 = new IntObj (), digit5 = new IntObj (), digit4 = new IntObj (), digit3 = new IntObj (), digit2 = new IntObj (), digit1 = new IntObj (); output += (String.format ("\nEnter an interger > ")); given.value = scanner.nextInt (); if (given.value >= 1 && (given.value) >= 100000000) { digit10.value = given.value % 10; output += (String.format ("\n%d\nThat's all, have a nice day!\n", digit10.value)); } if (given.value >= 10 && given.value < 100) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; output += (String.format ("\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value)); } if (given.value >= 100 && given.value < 1000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; output += (String.format ("\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value)); } if (given.value >= 1000 && given.value < 10000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value)); } if (given.value >= 10000 && given.value < 100000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; digit6.value = (given.value / 10000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value, digit6.value)); } if (given.value >= 100000 && given.value < 1000000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; digit6.value = (given.value / 10000) % 10; digit5.value = (given.value / 100000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value, digit6.value, digit5.value)); } if (given.value >= 1000000 && given.value < 10000000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; digit6.value = (given.value / 10000) % 10; digit5.value = (given.value / 100000) % 10; digit4.value = (given.value / 1000000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value, digit6.value, digit5.value, digit4.value)); } if (given.value >= 10000000 && given.value < 100000000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; digit6.value = (given.value / 10000) % 10; digit5.value = (given.value / 100000) % 10; digit4.value = (given.value / 1000000) % 10; digit3.value = (given.value / 10000000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value, digit6.value, digit5.value, digit4.value, digit3.value)); } if (given.value >= 100000000 && given.value < 1000000000) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; digit6.value = (given.value / 10000) % 10; digit5.value = (given.value / 100000) % 10; digit4.value = (given.value / 1000000) % 10; digit3.value = (given.value / 10000000) % 10; digit2.value = (given.value / 100000000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value, digit6.value, digit5.value, digit4.value, digit3.value, digit2.value)); } if (given.value >= 1000000000 && given.value < 10000000000L) { digit10.value = given.value % 10; digit9.value = (given.value / 10) % 10; digit8.value = (given.value / 100) % 10; digit7.value = (given.value / 1000) % 10; digit6.value = (given.value / 10000) % 10; digit5.value = (given.value / 100000) % 10; digit4.value = (given.value / 1000000) % 10; digit3.value = (given.value / 10000000) % 10; digit2.value = (given.value / 100000000) % 10; digit1.value = (given.value / 1000000000) % 10; output += (String.format ("\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\nThat's all, have a nice day!\n", digit10.value, digit9.value, digit8.value, digit7.value, digit6.value, digit5.value, digit4.value, digit3.value, digit2.value, digit1.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
9e39907770720c98fe9ced9cd0645f72e90931c5
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/59/org/apache/commons/math/util/FastMath_expint_1107.java
43687e9cc1ff3662e167556acf6a4cd09ce2aa60
[]
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
4,142
java
org apach common math util faster accur portabl altern strict math strictmath version revis date fast math fastmath comput exp integ extend precis param integ exponenti request param result placehold put result extend precis exp standard precis equal result result expint result split 7182818284590452353602874713526625 7182818284590452353602874713526625l 71827697753906250000 85091998273542816811e doubl bit doubl longbitstodoubl 0x4005bf0800000000 0x4005bf0800000000l doubl bit doubl longbitstodoubl 0x3ed458a2bb4a9b00 0x3ed458a2bb4a9b00l 718281828459045 4456468917292502 4456468917292502e split quad mult quadmult quad mult quadmult result result result resplit result
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
2671c8bfe7be7fdb72e0cf3bf719ef636ec2a9a1
3b6117c0ff791066a669e74404b4db6a5fb56340
/星河/com.agdress.api/src/main/java/com/agdress/entity/vo/ActivityResultVo.java
3e5b0eb61fd2284ec70ab24aea2c623c06742a05
[]
no_license
wofxuan/yunjing
a7316565081bfda0360e769633d43cae5e3c5613
1909facbc5f90ca20591eda39f713301fa1c6787
refs/heads/master
2021-07-16T12:56:11.494760
2017-10-24T03:51:52
2017-10-24T03:51:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,318
java
package com.agdress.entity.vo; /** * Created by Administrator on 2017/8/28. * Description: *_* */ public class ActivityResultVo { private long activityId; private String summary; private String imageUrl; private String linkUrl; private String linkTitle; private String linkRemarks; public long getActivityId() { return activityId; } public void setActivityId(long activityId) { this.activityId = activityId; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getImageUrl() { return imageUrl; } public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; } public String getLinkUrl() { return linkUrl; } public void setLinkUrl(String linkUrl) { this.linkUrl = linkUrl; } public String getLinkTitle() { return linkTitle; } public void setLinkTitle(String linkTitle) { this.linkTitle = linkTitle; } public String getLinkRemarks() { return linkRemarks; } public void setLinkRemarks(String linkRemarks) { this.linkRemarks = linkRemarks; } }
[ "“" ]
7e0b3f968a84c8765bbf4c678d8eedeefc0bfce1
741e1d2992877d2aeb5384ff1a98fe83810e20ec
/Binary Tree Level Order Traversal II/Binary Tree Level Order Traversal II.java
40929af330abb24c23f69c9f6f1995eadaaed1d2
[]
no_license
hugithub/LeetCode
60825388dcc19893d741686d486b6796e939bf03
6f0e5ef777febae1f94a438dc9162e6530183ae0
refs/heads/master
2020-04-30T04:18:00.002512
2014-05-07T04:47:47
2014-05-07T04:47:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,708
java
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { public ArrayList<ArrayList<Integer>> levelOrderBottom(TreeNode root) { ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>(); if (root == null) return result; Stack<ArrayList<Integer>> buffer = new Stack<ArrayList<Integer>>(); Queue<TreeNode> currentLevel = new LinkedList<TreeNode>(); Queue<TreeNode> nextLevel = new LinkedList<TreeNode>(); ArrayList<Integer> row = new ArrayList<Integer>(); currentLevel.add(root); while (!currentLevel.isEmpty()) { TreeNode currentNode = currentLevel.poll(); row.add(currentNode.val); if (currentNode.left != null) nextLevel.add(currentNode.left); if (currentNode.right != null) nextLevel.add(currentNode.right); if (currentLevel.isEmpty()) { buffer.push(row); row = new ArrayList<Integer>(); currentLevel = nextLevel; nextLevel = new LinkedList<TreeNode>(); } } while (!buffer.empty()) result.add(buffer.pop()); return result; } } class Solution2 { public ArrayList<ArrayList<Integer>> levelOrderBottom(TreeNode root) { ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>(); dfs(root, 0, result); Collections.reverse(result); return result; } private void dfs(TreeNode root, int level, ArrayList<ArrayList<Integer>> result) { if (root == null) return; if (level > result.size() - 1) result.add(new ArrayList<Integer>()); result.get(level).add(root.val); dfs(root.left, level + 1, result); dfs(root.right, level + 1, result); } }
[ "jijex@yahoo.com" ]
jijex@yahoo.com
e41fbbd3a029364d8c3fd660586fb64745c82a81
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/31/31_bef34e4f88e04b1c2171ef969f1d4b0c5050e3da/DontImportJavaLangRuleTest/31_bef34e4f88e04b1c2171ef969f1d4b0c5050e3da_DontImportJavaLangRuleTest_t.java
394aa823413e66df5253129bdfe1b1235163c848
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,942
java
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package test.net.sourceforge.pmd.rules.imports; import net.sourceforge.pmd.PMD; import net.sourceforge.pmd.Rule; import net.sourceforge.pmd.RuleSetNotFoundException; import net.sourceforge.pmd.Report; import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst; import test.net.sourceforge.pmd.testframework.TestDescriptor; public class DontImportJavaLangRuleTest extends SimpleAggregatorTst { private Rule rule; public void setUp() throws RuleSetNotFoundException { rule = findRule("imports", "DontImportJavaLang"); } public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "import java.lang.String", 1, rule), new TestDescriptor(TEST2, "import java.lang.*", 1, rule), new TestDescriptor(TEST3, "import java.lang.ref/reflect/annotation/instrument/management", 0, rule) }); } public void testStaticImportsAreOK() throws Throwable { Report rpt = new Report(); runTestFromString15(TEST4, rule, rpt); assertEquals(0, rpt.size()); } private static final String TEST1 = "import java.lang.String;" + PMD.EOL + "public class Foo {}"; private static final String TEST2 = "import java.lang.*;" + PMD.EOL + "public class Foo {}"; private static final String TEST3 = "import java.lang.ref.*;" + PMD.EOL + "import java.lang.reflect.*;" + PMD.EOL + "import java.lang.annotation.*;" + PMD.EOL + "import java.lang.instrument.*;" + PMD.EOL + "import java.lang.management.*;" + PMD.EOL + "public class Foo {}"; private static final String TEST4 = "import static java.lang.*;" + PMD.EOL + "public class Foo {}"; }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
c238b30d881bf6c4a8edf95f2d840013c6a53048
f369814ddc07bb41bcde4f165815126e69dd4a71
/api/applib/src/main/adoc/modules/applib-classes/examples/spec/package-info.java
063eda074fa069fec2b47a19a21697d26d648ee2
[ "Apache-2.0" ]
permissive
fengluandll/isis
700f617fe21f1b5f4fb00ac32494198b3d20ad3a
e6959c8b64f73b9ea839d269fcf33e5d4e215d95
refs/heads/master
2022-10-01T16:54:33.391687
2020-06-12T06:54:12
2020-06-12T06:54:12
271,823,856
1
0
NOASSERTION
2020-06-12T14:56:41
2020-06-12T14:56:40
null
UTF-8
Java
false
false
1,811
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. */ /** * This package defines a {@link org.apache.isis.applib.spec.Specification} * interface (and various implementations), used by the * {@link org.apache.isis.applib.annotation.MustSatisfy} annotation to * declare valid values for properties or parameters. * * <p> * This is an implementation of the DDD &quot;Specification&quot;, allowing * validatation that might otherwise be repeated for both properties and * parameters (in the <tt>validateXxx()</tt> methods to be factored out. * * <p> * That said, there is still some repetition in that the {@link org.apache.isis.applib.annotation.MustSatisfy} * annotation must be applied in all appropriate cases. If it is the case that * the validation rules would apply <i>every</i> case, then it is generally * preferable to implement a {@link org.apache.isis.applib.annotation.Value} type * through the {@link org.apache.isis.applib.adapters.ValueSemanticsProvider} * interface. */ package org.apache.isis.applib.spec;
[ "dan@haywood-associates.co.uk" ]
dan@haywood-associates.co.uk
f8dba94fd2b180ba297247ac7dd0fd3fbac94fdf
ebdcaff90c72bf9bb7871574b25602ec22e45c35
/modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v201805/CdnConfigurationServiceInterface.java
160905d104e0dbe6d2d55f99fe461d7c3de56544
[ "Apache-2.0" ]
permissive
ColleenKeegan/googleads-java-lib
3c25ea93740b3abceb52bb0534aff66388d8abd1
3d38daadf66e5d9c3db220559f099fd5c5b19e70
refs/heads/master
2023-04-06T16:16:51.690975
2018-11-15T20:50:26
2018-11-15T20:50:26
158,986,306
1
0
Apache-2.0
2023-04-04T01:42:56
2018-11-25T00:56:39
Java
UTF-8
Java
false
false
3,431
java
// Copyright 2018 Google LLC // // 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. /** * CdnConfigurationServiceInterface.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.admanager.axis.v201805; public interface CdnConfigurationServiceInterface extends java.rmi.Remote { /** * Creates new {@link CdnConfiguration} objects. */ public com.google.api.ads.admanager.axis.v201805.CdnConfiguration[] createCdnConfigurations(com.google.api.ads.admanager.axis.v201805.CdnConfiguration[] cdnConfigurations) throws java.rmi.RemoteException, com.google.api.ads.admanager.axis.v201805.ApiException; /** * Gets a {@link CdnConfigurationPage} of {@link CdnConfiguration} * objects that satisfy the given * {@link Statement#query}. Currently only CDN Configurations * of type {@link * CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT} will be returned. * The following fields are * supported for filtering: * * <table> * <tr> * <th scope="col">PQL Property</th> <th scope="col">Object Property</th> * </tr> * <tr> * <td>{@code id}</td> * <td>{@link CdnConfiguration#id}</td> * </tr> * <tr> * <td>{@code name}</td> * <td>{@link CdnConfiguration#name}</td> * </tr> * </table> */ public com.google.api.ads.admanager.axis.v201805.CdnConfigurationPage getCdnConfigurationsByStatement(com.google.api.ads.admanager.axis.v201805.Statement statement) throws java.rmi.RemoteException, com.google.api.ads.admanager.axis.v201805.ApiException; /** * Performs actions on {@link CdnConfiguration} objects that match * the given {@link * Statement#query}. * * * @param cdnConfigurationAction the action to perform * * @param filterStatement a Publisher Query Language statement used to * filter a set of live stream * events * * @return the result of the action performed */ public com.google.api.ads.admanager.axis.v201805.UpdateResult performCdnConfigurationAction(com.google.api.ads.admanager.axis.v201805.CdnConfigurationAction cdnConfigurationAction, com.google.api.ads.admanager.axis.v201805.Statement filterStatement) throws java.rmi.RemoteException, com.google.api.ads.admanager.axis.v201805.ApiException; /** * Updates the specified {@link CdnConfiguration} objects. */ public com.google.api.ads.admanager.axis.v201805.CdnConfiguration[] updateCdnConfigurations(com.google.api.ads.admanager.axis.v201805.CdnConfiguration[] cdnConfigurations) throws java.rmi.RemoteException, com.google.api.ads.admanager.axis.v201805.ApiException; }
[ "api.cseeley@gmail.com" ]
api.cseeley@gmail.com
2685402b687cbfcc36cd71576639996dce389d6d
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
/src/testcases/CWE369_Divide_by_Zero/s01/CWE369_Divide_by_Zero__float_Environment_modulo_54c.java
2cb95f463fee63346f3d92e91710b9045b5cc1bb
[]
no_license
bqcuong/Juliet-Test-Case
31e9c89c27bf54a07b7ba547eddd029287b2e191
e770f1c3969be76fdba5d7760e036f9ba060957d
refs/heads/master
2020-07-17T14:51:49.610703
2019-09-03T16:22:58
2019-09-03T16:22:58
206,039,578
1
2
null
null
null
null
UTF-8
Java
false
false
1,411
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__float_Environment_modulo_54c.java Label Definition File: CWE369_Divide_by_Zero__float.label.xml Template File: sources-sinks-54c.tmpl.java */ /* * @description * CWE: 369 Divide by zero * BadSource: Environment Read data from an environment variable * GoodSource: A hardcoded non-zero number (two) * Sinks: modulo * GoodSink: Check for zero before modulo * BadSink : Modulo by a value that may be zero * Flow Variant: 54 Data flow: data passed as an argument from one method through three others to a fifth; all five functions are in different classes in the same package * * */ package testcases.CWE369_Divide_by_Zero.s01; import testcasesupport.*; public class CWE369_Divide_by_Zero__float_Environment_modulo_54c { public void badSink(float data ) throws Throwable { (new CWE369_Divide_by_Zero__float_Environment_modulo_54d()).badSink(data ); } /* goodG2B() - use goodsource and badsink */ public void goodG2BSink(float data ) throws Throwable { (new CWE369_Divide_by_Zero__float_Environment_modulo_54d()).goodG2BSink(data ); } /* goodB2G() - use badsource and goodsink */ public void goodB2GSink(float data ) throws Throwable { (new CWE369_Divide_by_Zero__float_Environment_modulo_54d()).goodB2GSink(data ); } }
[ "bqcuong2212@gmail.com" ]
bqcuong2212@gmail.com
a5c4f0f1bf37ac06c67ea008a2b1b9ee27ce3b81
2955a84548a6c294d084ea45d8f3d368ea27dde6
/tongzijunjl/src/main/java/com/lib/http/HttpStringResult.java
a87f514813b99794374e01e65e029f4dfc911760
[]
no_license
HuaZhongAndroid/HanShanJl
82d6443f86358c77e42a298f01cce0cfc0cf82d8
f5c0d0f06c3f040895b1f79efd7a98568e01a4bd
refs/heads/master
2020-03-18T23:34:25.132048
2019-01-03T10:05:54
2019-01-03T10:05:54
135,411,426
0
0
null
null
null
null
UTF-8
Java
false
false
544
java
package com.lib.http; import java.io.Serializable; /** * Http返回结果 * */ public class HttpStringResult implements Serializable{ private static final long serialVersionUID = -3499016800119861019L; public String result; /** * HTTP状态码 */ public int resCode = -1; public String msg; public void setErrorMsg(String msg){ this.msg = msg; } public void setResult(String xml) { //<xml> </xml> //this.result = Html.fromHtml(xml).toString(); this.result = xml; } public String getResult(){ return result; } }
[ "376368673@qq.com" ]
376368673@qq.com
2ab4a273634c14b20df71d0c22723a4cb8b7bc7e
09be72f1c3639f8f809b1e169970acc96f289bd7
/src/feinno-common/src/feinno-common/src/test/java/test/com/feinno/runtime/bytecode/TestClassFile.java
8db8be99833f4db5f5c307c3cba0d40d23dfdecf
[]
no_license
philiahe/angel
ffdfbad0a1ac29280bad209e2cd662654cd7fe81
18eac04bd61144fb882c8581719d4eb86b5a8923
refs/heads/master
2020-04-12T13:59:46.454878
2015-01-20T07:10:56
2015-01-20T07:10:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,288
java
package test.com.feinno.runtime.bytecode; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.JarURLConnection; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; import org.junit.Test; import com.feinno.runtime.bytecode.type.ClassFile; import com.feinno.runtime.bytecode.type.InvalidByteCodeException; import com.feinno.runtime.bytecode.type.MethodInfo; import com.feinno.runtime.bytecode.util.InstructionUtil; /** * * <b>描述: </b>这是一个用于保证ClassFile正确性的测试用例,它将当前工程中全部的类及类中的方法区指令字段解析一遍 * <p> * <b>功能: </b>这是一个用于保证ClassFile正确性的测试用例 * <p> * <b>用法: </b> * <p> * * @author Lv.Mingwei * */ public class TestClassFile { /** * @param args */ public static void main(String[] args) throws Exception { new TestClassFile().test1(); } @Test public void test1() throws Exception { analyzePackage("com"); analyzePackage("org"); analyzePackage("net"); } public static void analyzePackage(String packageName) throws IOException, InvalidByteCodeException { if (packageName == null) { return; } packageName = packageName.replaceAll("\\.", "/"); if (!packageName.endsWith("/")) { packageName += "/"; } try { Enumeration<URL> enumeration = Thread.currentThread().getContextClassLoader().getResources(packageName); while (enumeration.hasMoreElements()) { URL url = (URL) enumeration.nextElement(); String protocol = url.getProtocol(); if (protocol.equals("jar")) { analyzeJAR(url); } else { analyzeFile(url, packageName); } } } catch (Exception e) { throw new RuntimeException("loadPackage", e); } } /** * 处理jar中的class * * @param url * @throws IOException */ private static void analyzeJAR(URL url) throws ClassNotFoundException, IOException, InvalidByteCodeException { JarURLConnection con = (JarURLConnection) url.openConnection(); JarFile file = con.getJarFile(); Enumeration<?> enumeration = file.entries(); while (enumeration.hasMoreElements()) { JarEntry element = (JarEntry) enumeration.nextElement(); String entryName = element.getName(); if (entryName != null && entryName.endsWith(".class")) { analyzeClass(entryName); } } } /** * 处理文件目录中的class * * @param url * @throws URISyntaxException */ private static void analyzeFile(URL url, String packageName) throws ClassNotFoundException, URISyntaxException, IOException, InvalidByteCodeException, MalformedURLException { File file = new File(new URI(url.toExternalForm())); File[] files = file.listFiles(); for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) { analyzeFile(files[i].toURI().toURL(), packageName + files[i].getName() + "/"); } else { String entryName = packageName + files[i].getName(); if (entryName != null && entryName.endsWith(".class")) { analyzeClass(entryName); } } } } private static void analyzeClass(String path) throws IOException, InvalidByteCodeException { path = path.startsWith("/") ? path : "/" + path; InputStream input = TestClassFile.class.getResourceAsStream(path); analyzeClass(input); } public static void analyzeClass(File file) throws IOException, InvalidByteCodeException { InputStream input = new FileInputStream(file); analyzeClass(input); } public static void analyzeClass(InputStream input) throws IOException, InvalidByteCodeException { byte[] buffer = toBytes(input); ClassFile classFile = null; try { classFile = ClassFile.valueOf(buffer); } catch (Exception e) { e.printStackTrace(); } if (classFile != null) { analyzeMethod(classFile); } } private static int counter = 0; public static void analyzeMethod(ClassFile classFile) { System.out.println("正在解析第"+(counter++)+"个Class : "+classFile.getConstant_pool()[classFile.getThis_class()]); classFile.toString(); classFile.toByteArray(); for (MethodInfo method : classFile.getMethods()) { if (method.getCodeAttribute() != null) { InstructionUtil.toInstructionString(classFile, method.getCodeAttribute().getCodes()); } else { // 可能为接口,因此没有方法区 // System.out.println("CodeAttribute is null."); } } } public static byte[] toBytes(InputStream input) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); int len = 0; byte[] b = new byte[1024]; while ((len = input.read(b, 0, b.length)) != -1) { baos.write(b, 0, len); } byte[] buffer = baos.toByteArray(); return buffer; } public static void writeByteToFile(String path, byte[] buffer) throws Exception { FileOutputStream fos = new FileOutputStream(path); fos.write(buffer); fos.close(); } }
[ "honghao@feinno.com" ]
honghao@feinno.com
7cbdec56670bf0b4772a8e8039985db9c9f2bcc3
745b525c360a2b15b8d73841b36c1e8d6cdc9b03
/jun_java_plugins/jun_javase/src/main/java/com/jun/plugin/javase/object/Test7.java
8c7c3bd5b5601c4a430be8e42f2dfc920ee61559
[]
no_license
wujun728/jun_java_plugin
1f3025204ef5da5ad74f8892adead7ee03f3fe4c
e031bc451c817c6d665707852308fc3b31f47cb2
refs/heads/master
2023-09-04T08:23:52.095971
2023-08-18T06:54:29
2023-08-18T06:54:29
62,047,478
117
42
null
2023-08-21T16:02:15
2016-06-27T10:23:58
Java
UTF-8
Java
false
false
567
java
package com.jun.plugin.javase.object; public class Test7 { public static void main(String[] args) { Outer3 o1=new Outer3(); o1.method(); } } abstract class Demo22{ abstract void show(); } class Outer3{ void method(){ /*new Demo22(){ void show(){ System.out.println("122"); } void show1(){ System.out.println("222"); } }.show();�������*/ /*Demo22 d1=new Demo22(){ void show(){ System.out.println("22"); } void show1(){ System.out.println("11"); } }; d1.show();�������*/ } }
[ "wujun728@163.com" ]
wujun728@163.com
99796771c091b5fbdc619f8ca0cbb285e19a2b48
4004e5d493e6672426d6fb490e1e4dba8b451025
/src/main/java/io/lettuce/core/event/metrics/CommandLatencyEvent.java
c68612bf15447f68c2293087f4dc47f748f33a67
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
omer-cilingir/lettuce-core
d02b83fe7a9d98e7c1e6fcdd93fcae81a3aed7c7
a1476caecd86438b0853a38049668433c4375cc2
refs/heads/main
2022-12-20T05:25:45.746200
2020-10-06T13:26:06
2020-10-06T13:26:06
301,725,989
1
0
Apache-2.0
2020-10-06T12:54:26
2020-10-06T12:54:25
null
UTF-8
Java
false
false
1,654
java
/* * Copyright 2011-2020 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 io.lettuce.core.event.metrics; import java.util.Map; import io.lettuce.core.event.Event; import io.lettuce.core.metrics.CommandLatencyId; import io.lettuce.core.metrics.CommandMetrics; /** * Event that transports command latency metrics. This event carries latencies for multiple commands and connections. * * @author Mark Paluch */ public class CommandLatencyEvent implements Event { private Map<CommandLatencyId, CommandMetrics> latencies; public CommandLatencyEvent(Map<CommandLatencyId, CommandMetrics> latencies) { this.latencies = latencies; } /** * Returns the latencies mapped between {@link CommandLatencyId connection/command} and the {@link CommandMetrics metrics}. * * @return the latency map. */ public Map<CommandLatencyId, CommandMetrics> getLatencies() { return latencies; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(latencies); return sb.toString(); } }
[ "mpaluch@paluch.biz" ]
mpaluch@paluch.biz
e6c00adf82fa63d85b4dd72465e81d6cb76ddb13
930c207e245c320b108e9699bbbb036260a36d6a
/BRICK-Jackson-JsonLd/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/IHeat_Exchanger_Discharge_Water_Temperature.java
dcf33751d6e664548d7ca289c0c9ba9a58103ac5
[]
no_license
InnovationSE/BRICK-Generated-By-OLGA
24d278f543471e1ce622f5f45d9e305790181fff
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
refs/heads/master
2021-07-01T14:13:11.302860
2017-09-21T12:44:17
2017-09-21T12:44:17
104,251,784
1
0
null
null
null
null
UTF-8
Java
false
false
1,152
java
/** * This file is automatically generated by OLGA * @author OLGA * @version 1.0 */ package brickschema.org.schema._1_0_2.Brick; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldId; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldProperty; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldType; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldLink; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldPropertyType; import brick.jsonld.util.RefId; import brickschema.org.schema._1_0_2.Brick.IWater_Discharge_Temperature; import brickschema.org.schema._1_0_2.Brick.IDischarge_Water_Temperature; public interface IHeat_Exchanger_Discharge_Water_Temperature extends IWater_Discharge_Temperature, IDischarge_Water_Temperature { /** * @return RefId */ @JsonIgnore public RefId getRefId(); }
[ "Andre.Ponnouradjane@non.schneider-electric.com" ]
Andre.Ponnouradjane@non.schneider-electric.com
e49950f6e6ab575e61fa64c5aa947d18424f0df8
c1db30540d24ab71ed52c1b94663682b8dde1c08
/src/thread/Task/PoolTest.java
68806909a3d02eab419105b65b9a98b241153b76
[]
no_license
tianshiaimili/Z_MyJavaTest
ed08b5b86a360e1d7cea29ee968a18dcf1f7862f
c1cf82c05a91c534994af3c38c9a8dda8cde66f8
refs/heads/master
2021-01-23T02:53:38.123064
2015-06-15T16:23:08
2015-06-15T16:23:08
28,023,187
1
0
null
null
null
null
UTF-8
Java
false
false
557
java
package thread.Task; /** * 测试线程池 */ public class PoolTest { public static void main(String[] args) { //线程池中的线程数 int numThreads = 3; // 生成线程池 MyThreadPool threadPool = new MyThreadPool(numThreads); // 任务数 int numTasks = 10; // 运行任务 for (int i=0; i<numTasks; i++) { threadPool.performTask(new MyTask(i)); } // 关闭线程池并等待所有任务完成 threadPool.join(); } }
[ "huyue52099" ]
huyue52099
3e3952789470889736b5c2099130e249087cfc8f
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/dcdn-20180115/src/main/java/com/aliyun/dcdn20180115/models/DescribeDcdnWafPolicyResponseBody.java
04ce04bd006cf26a5bad362a678646152ea21415
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
5,866
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dcdn20180115.models; import com.aliyun.tea.*; public class DescribeDcdnWafPolicyResponseBody extends TeaModel { /** * <p>The information about the protection policy.</p> */ @NameInMap("Policy") public DescribeDcdnWafPolicyResponseBodyPolicy policy; /** * <p>The ID of the request.</p> */ @NameInMap("RequestId") public String requestId; public static DescribeDcdnWafPolicyResponseBody build(java.util.Map<String, ?> map) throws Exception { DescribeDcdnWafPolicyResponseBody self = new DescribeDcdnWafPolicyResponseBody(); return TeaModel.build(map, self); } public DescribeDcdnWafPolicyResponseBody setPolicy(DescribeDcdnWafPolicyResponseBodyPolicy policy) { this.policy = policy; return this; } public DescribeDcdnWafPolicyResponseBodyPolicy getPolicy() { return this.policy; } public DescribeDcdnWafPolicyResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public static class DescribeDcdnWafPolicyResponseBodyPolicy extends TeaModel { /** * <p>The type of the protection policy. Valid values:</p> * <br> * <p>* waf_group: basic web protection</p> * <p>* custom_acl: custom protection</p> * <p>* whitelist: whitelist</p> */ @NameInMap("DefenseScene") public String defenseScene; /** * <p>The number of domain names that use the protection policy.</p> */ @NameInMap("DomainCount") public Integer domainCount; /** * <p>The time when the protection policy was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> */ @NameInMap("GmtModified") public String gmtModified; /** * <p>The ID of the protection policy.</p> */ @NameInMap("PolicyId") public Long policyId; /** * <p>The name of the protection policy.</p> */ @NameInMap("PolicyName") public String policyName; /** * <p>The status of the protection policy. Valid values:</p> * <br> * <p>* on</p> * <p>* off</p> */ @NameInMap("PolicyStatus") public String policyStatus; /** * <p>Indicates whether the current policy is the default policy. Valid values:</p> * <br> * <p>* default</p> * <p>* custom</p> */ @NameInMap("PolicyType") public String policyType; /** * <p>The protection rule configurations that are defined in the protection policy. The configurations only support bot management. For more information, see [Configure protection rules](~~423350~~).</p> */ @NameInMap("RuleConfigs") public String ruleConfigs; /** * <p>The number of protection rules in the protection policy.</p> */ @NameInMap("RuleCount") public Long ruleCount; public static DescribeDcdnWafPolicyResponseBodyPolicy build(java.util.Map<String, ?> map) throws Exception { DescribeDcdnWafPolicyResponseBodyPolicy self = new DescribeDcdnWafPolicyResponseBodyPolicy(); return TeaModel.build(map, self); } public DescribeDcdnWafPolicyResponseBodyPolicy setDefenseScene(String defenseScene) { this.defenseScene = defenseScene; return this; } public String getDefenseScene() { return this.defenseScene; } public DescribeDcdnWafPolicyResponseBodyPolicy setDomainCount(Integer domainCount) { this.domainCount = domainCount; return this; } public Integer getDomainCount() { return this.domainCount; } public DescribeDcdnWafPolicyResponseBodyPolicy setGmtModified(String gmtModified) { this.gmtModified = gmtModified; return this; } public String getGmtModified() { return this.gmtModified; } public DescribeDcdnWafPolicyResponseBodyPolicy setPolicyId(Long policyId) { this.policyId = policyId; return this; } public Long getPolicyId() { return this.policyId; } public DescribeDcdnWafPolicyResponseBodyPolicy setPolicyName(String policyName) { this.policyName = policyName; return this; } public String getPolicyName() { return this.policyName; } public DescribeDcdnWafPolicyResponseBodyPolicy setPolicyStatus(String policyStatus) { this.policyStatus = policyStatus; return this; } public String getPolicyStatus() { return this.policyStatus; } public DescribeDcdnWafPolicyResponseBodyPolicy setPolicyType(String policyType) { this.policyType = policyType; return this; } public String getPolicyType() { return this.policyType; } public DescribeDcdnWafPolicyResponseBodyPolicy setRuleConfigs(String ruleConfigs) { this.ruleConfigs = ruleConfigs; return this; } public String getRuleConfigs() { return this.ruleConfigs; } public DescribeDcdnWafPolicyResponseBodyPolicy setRuleCount(Long ruleCount) { this.ruleCount = ruleCount; return this; } public Long getRuleCount() { return this.ruleCount; } } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
7c86c07d320eabfb217dc81c5d9297ed0b3d8de9
dd90264bbfb79700d1d32effc207b555c29f3bcf
/spring-cloud-contract-example/spring-cloud-contract-test-demo/microservice-consumer/src/test/java/com/ebsco/consumer/example/service/EmployeeConsumerServiceTest.java
87217665a6be4094ef766336eccc22a33bac3a44
[]
no_license
tomzhang/other_workplace
8cead3feda7e9f067412da8252d83da56a000b51
9b5beaf4ed3586e6037bd84968c6a407a8635e16
refs/heads/master
2020-04-22T22:18:23.913665
2019-01-26T03:36:19
2019-01-26T03:36:19
170,703,419
1
0
null
2019-02-14T14:23:21
2019-02-14T14:23:20
null
UTF-8
Java
false
false
1,203
java
package com.ebsco.consumer.example.service; import com.ebsco.consumer.example.MicroServiceApplication; import com.ebsco.consumer.example.model.Response; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.cloud.contract.stubrunner.spring.AutoConfigureStubRunner; import org.springframework.test.context.junit4.SpringRunner; /** * Created by aganapathy on 12/12/17. */ @RunWith(SpringRunner.class) @SpringBootTest(classes = MicroServiceApplication.class) @AutoConfigureStubRunner(ids = "com.ebsco.producer.example:microservice-producer:+:stubs:8082", workOffline = false) public class EmployeeConsumerServiceTest { @Autowired EmployeeConsumerService employeeService; @Test public void testGetEmployeeDetails() throws Exception { //Given Response response = employeeService.getEmployeeDetails(); String expectedResponse = "Employee{name='ARUN', id=1}"; // then: String message = response.getMessage(); // and: assert(expectedResponse.equalsIgnoreCase(message)); } }
[ "Pj879227577" ]
Pj879227577
642bc3852c12fc3655828b7f2e23b2fcb333b1c5
ac86344b59661f1fe6dc87fa0534ebfa2299388b
/errai-security/errai-security-client/src/main/java/org/jboss/errai/security/client/local/interceptors/LoginInterceptor.java
dc9b57d3f3bf1741642098d3928164edc2dac267
[]
no_license
dultsch/errai
6e5787c32373f455870c6d71e8b40468d697984f
c3108451fed115809fb77acc2ef782912bf1c2e4
refs/heads/master
2020-12-27T15:20:38.322977
2014-02-19T19:39:21
2014-02-19T19:39:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,516
java
package org.jboss.errai.security.client.local.interceptors; import org.jboss.errai.common.client.api.RemoteCallback; import org.jboss.errai.common.client.api.interceptor.InterceptsRemoteCall; import org.jboss.errai.common.client.api.interceptor.RemoteCallContext; import org.jboss.errai.common.client.api.interceptor.RemoteCallInterceptor; import org.jboss.errai.common.client.util.CreationalCallback; import org.jboss.errai.ioc.client.container.IOC; import org.jboss.errai.security.client.local.identity.ActiveUserProvider; import org.jboss.errai.security.shared.AuthenticationService; import org.jboss.errai.security.shared.User; @InterceptsRemoteCall({ AuthenticationService.class }) public class LoginInterceptor implements RemoteCallInterceptor<RemoteCallContext> { @Override public void aroundInvoke(final RemoteCallContext context) { if (context.getMethodName().equals("login")) { context.proceed(new RemoteCallback<User>() { @Override public void callback(final User response) { if (response != null) { IOC.getAsyncBeanManager().lookupBean(ActiveUserProvider.class) .getInstance(new CreationalCallback<ActiveUserProvider>() { @Override public void callback(final ActiveUserProvider provider) { provider.setActiveUser(response); } }); } } }); } else { context.proceed(); } } }
[ "mbarkley@redhat.com" ]
mbarkley@redhat.com
206a0e58ec2e6fa4a9fc8ba3909550c7a45e5dab
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Chart/5/org/jfree/chart/axis/DateAxis_getTimeline_430.java
af5654957c7474bb62bb9848d11601ef030c4e56
[]
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
2,382
java
org jfree chart axi base ax displai date find easier understand axi work bear mind displai measur integ data integ millisecond midnight jan displai tick label millisecond valu convert back date code date format dateformat code instanc creat link org jfree chart axi timelin suppli constructor creat axi domain valu creat date axi work dai date axi dateaxi axi valueaxi cloneabl serializ return underli timelin axi timelin timelin timelin gettimelin timelin
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
725bdc766edb1075b3ba3a3b07b08b3d6c46eed3
fea4c2fb250ba1c90bc9e17ebbe089a6de318771
/sources/com/bumptech/glide/load/data/LocalUriFetcher.java
7457c03e47dcfe75216eadf16765e8e8275478dd
[]
no_license
revanthstrakz/vx
d7234ea9c8ff36d9e62dfd23218181a830db810f
7e8cef0f0da9830246d3362341725b8e3c25e0fa
refs/heads/master
2022-11-13T11:16:21.849058
2020-06-27T20:39:20
2020-06-27T20:39:20
275,443,477
1
2
null
null
null
null
UTF-8
Java
false
false
1,795
java
package com.bumptech.glide.load.data; import android.content.ContentResolver; import android.net.Uri; import android.support.annotation.NonNull; import android.util.Log; import com.bumptech.glide.Priority; import com.bumptech.glide.load.DataSource; import com.bumptech.glide.load.data.DataFetcher.DataCallback; import java.io.FileNotFoundException; import java.io.IOException; public abstract class LocalUriFetcher<T> implements DataFetcher<T> { private static final String TAG = "LocalUriFetcher"; private final ContentResolver contentResolver; private T data; private final Uri uri; public void cancel() { } /* access modifiers changed from: protected */ public abstract void close(T t) throws IOException; /* access modifiers changed from: protected */ public abstract T loadResource(Uri uri2, ContentResolver contentResolver2) throws FileNotFoundException; public LocalUriFetcher(ContentResolver contentResolver2, Uri uri2) { this.contentResolver = contentResolver2; this.uri = uri2; } public final void loadData(@NonNull Priority priority, @NonNull DataCallback<? super T> dataCallback) { try { this.data = loadResource(this.uri, this.contentResolver); dataCallback.onDataReady(this.data); } catch (FileNotFoundException e) { if (Log.isLoggable(TAG, 3)) { Log.d(TAG, "Failed to open Uri", e); } dataCallback.onLoadFailed(e); } } public void cleanup() { if (this.data != null) { try { close(this.data); } catch (IOException unused) { } } } @NonNull public DataSource getDataSource() { return DataSource.LOCAL; } }
[ "dr.revanthstrakz@gmail.com" ]
dr.revanthstrakz@gmail.com
f94747505e4d35b872be8a132a711dfffd3f96bd
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/orientechnologies--orientdb/b558331e3c9e1e714d2f3ada95745ddde2e9adff/after/LuceneFacetTest.java
6b928a6e5dbfdda7894560cd9bd4e446bd19a900
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
4,125
java
/* * * * Copyright 2014 Orient Technologies. * * * * 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.orientechnologies.lucene.test; import com.orientechnologies.orient.core.metadata.schema.OClass; import com.orientechnologies.orient.core.metadata.schema.OSchema; import com.orientechnologies.orient.core.metadata.schema.OType; import com.orientechnologies.orient.core.record.impl.ODocument; import com.orientechnologies.orient.core.sql.OCommandSQL; import com.orientechnologies.orient.core.sql.query.OSQLSynchQuery; import org.junit.Assert; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import java.util.List; /** * Created by Enrico Risa on 22/04/15. */ public class LuceneFacetTest extends BaseLuceneTest { @Before public void init() { OSchema schema = db.getMetadata().getSchema(); OClass oClass = schema.createClass("Item"); oClass.createProperty("name", OType.STRING); oClass.createProperty("category", OType.STRING); db.command(new OCommandSQL( "create index Item.name_category on Item (name,category) FULLTEXT ENGINE LUCENE METADATA { 'facetFields' : ['category']}")) .execute(); ODocument doc = new ODocument("Item"); doc.field("name", "Pioneer"); doc.field("category", "Electronic/HiFi"); db.save(doc); doc = new ODocument("Item"); doc.field("name", "Hitachi"); doc.field("category", "Electronic/HiFi"); db.save(doc); doc = new ODocument("Item"); doc.field("name", "Philips"); doc.field("category", "Electronic/HiFi"); db.save(doc); doc = new ODocument("Item"); doc.field("name", "HP"); doc.field("category", "Electronic/Computer"); db.save(doc); db.commit(); } @Test @Ignore public void baseFacetTest() { List<ODocument> result = db .command(new OSQLSynchQuery<ODocument>("select *,$facet from Item where name lucene '(name:P*)' limit 1 ")).execute(); Assert.assertEquals(result.size(), 1); List<ODocument> facets = result.get(0).field("$facet"); Assert.assertEquals(facets.size(), 1); ODocument facet = facets.get(0); Assert.assertEquals(facet.<Object>field("childCount"), 1); Assert.assertEquals(facet.<Object>field("value"), 2); Assert.assertEquals(facet.field("dim"), "category"); List<ODocument> labelsValues = facet.field("labelsValue"); Assert.assertEquals(labelsValues.size(), 1); ODocument labelValues = labelsValues.get(0); Assert.assertEquals(labelValues.<Object>field("value"), 2); Assert.assertEquals(labelValues.field("label"), "Electronic"); result = db.command(new OSQLSynchQuery<ODocument>( "select *,$facet from Item where name lucene { 'q' : 'H*', 'drillDown' : 'category:Electronic' } limit 1 ")).execute(); Assert.assertEquals(result.size(), 1); facets = result.get(0).field("$facet"); Assert.assertEquals(facets.size(), 1); facet = facets.get(0); Assert.assertEquals(facet.<Object>field("childCount"), 2); Assert.assertEquals(facet.<Object>field("value"), 2); Assert.assertEquals(facet.field("dim"), "category"); labelsValues = facet.field("labelsValue"); Assert.assertEquals(labelsValues.size(), 2); labelValues = labelsValues.get(0); Assert.assertEquals(labelValues.<Object>field("value"), 1); Assert.assertEquals(labelValues.field("label"), "HiFi"); labelValues = labelsValues.get(1); Assert.assertEquals(labelValues.<Object>field("value"), 1); Assert.assertEquals(labelValues.field("label"), "Computer"); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
5e03ef809f57f6d2e2b405039e884cb254f9286a
63e36d35f51bea83017ec712179302a62608333e
/framework/android/media/IMediaHTTPConnection.java
7c7ba3bb5605dc40cb4caa45906c39e2a9e53fc4
[]
no_license
hiepgaf/oneplus_blobs_decompiled
672aa002fa670bdcba8fdf34113bc4b8e85f8294
e1ab1f2dd111f905ff1eee18b6a072606c01c518
refs/heads/master
2021-06-26T11:24:21.954070
2017-08-26T12:45:56
2017-08-26T12:45:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,879
java
package android.media; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; public abstract interface IMediaHTTPConnection extends IInterface { public abstract IBinder connect(String paramString1, String paramString2) throws RemoteException; public abstract void disconnect() throws RemoteException; public abstract String getMIMEType() throws RemoteException; public abstract long getSize() throws RemoteException; public abstract String getUri() throws RemoteException; public abstract int readAt(long paramLong, int paramInt) throws RemoteException; public static abstract class Stub extends Binder implements IMediaHTTPConnection { private static final String DESCRIPTOR = "android.media.IMediaHTTPConnection"; static final int TRANSACTION_connect = 1; static final int TRANSACTION_disconnect = 2; static final int TRANSACTION_getMIMEType = 5; static final int TRANSACTION_getSize = 4; static final int TRANSACTION_getUri = 6; static final int TRANSACTION_readAt = 3; public Stub() { attachInterface(this, "android.media.IMediaHTTPConnection"); } public static IMediaHTTPConnection asInterface(IBinder paramIBinder) { if (paramIBinder == null) { return null; } IInterface localIInterface = paramIBinder.queryLocalInterface("android.media.IMediaHTTPConnection"); if ((localIInterface != null) && ((localIInterface instanceof IMediaHTTPConnection))) { return (IMediaHTTPConnection)localIInterface; } return new Proxy(paramIBinder); } public IBinder asBinder() { return this; } public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) throws RemoteException { switch (paramInt1) { default: return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2); case 1598968902: paramParcel2.writeString("android.media.IMediaHTTPConnection"); return true; case 1: paramParcel1.enforceInterface("android.media.IMediaHTTPConnection"); paramParcel1 = connect(paramParcel1.readString(), paramParcel1.readString()); paramParcel2.writeNoException(); paramParcel2.writeStrongBinder(paramParcel1); return true; case 2: paramParcel1.enforceInterface("android.media.IMediaHTTPConnection"); disconnect(); paramParcel2.writeNoException(); return true; case 3: paramParcel1.enforceInterface("android.media.IMediaHTTPConnection"); paramInt1 = readAt(paramParcel1.readLong(), paramParcel1.readInt()); paramParcel2.writeNoException(); paramParcel2.writeInt(paramInt1); return true; case 4: paramParcel1.enforceInterface("android.media.IMediaHTTPConnection"); long l = getSize(); paramParcel2.writeNoException(); paramParcel2.writeLong(l); return true; case 5: paramParcel1.enforceInterface("android.media.IMediaHTTPConnection"); paramParcel1 = getMIMEType(); paramParcel2.writeNoException(); paramParcel2.writeString(paramParcel1); return true; } paramParcel1.enforceInterface("android.media.IMediaHTTPConnection"); paramParcel1 = getUri(); paramParcel2.writeNoException(); paramParcel2.writeString(paramParcel1); return true; } private static class Proxy implements IMediaHTTPConnection { private IBinder mRemote; Proxy(IBinder paramIBinder) { this.mRemote = paramIBinder; } public IBinder asBinder() { return this.mRemote; } public IBinder connect(String paramString1, String paramString2) throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("android.media.IMediaHTTPConnection"); localParcel1.writeString(paramString1); localParcel1.writeString(paramString2); this.mRemote.transact(1, localParcel1, localParcel2, 0); localParcel2.readException(); paramString1 = localParcel2.readStrongBinder(); return paramString1; } finally { localParcel2.recycle(); localParcel1.recycle(); } } public void disconnect() throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("android.media.IMediaHTTPConnection"); this.mRemote.transact(2, localParcel1, localParcel2, 0); localParcel2.readException(); return; } finally { localParcel2.recycle(); localParcel1.recycle(); } } public String getInterfaceDescriptor() { return "android.media.IMediaHTTPConnection"; } public String getMIMEType() throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("android.media.IMediaHTTPConnection"); this.mRemote.transact(5, localParcel1, localParcel2, 0); localParcel2.readException(); String str = localParcel2.readString(); return str; } finally { localParcel2.recycle(); localParcel1.recycle(); } } public long getSize() throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("android.media.IMediaHTTPConnection"); this.mRemote.transact(4, localParcel1, localParcel2, 0); localParcel2.readException(); long l = localParcel2.readLong(); return l; } finally { localParcel2.recycle(); localParcel1.recycle(); } } public String getUri() throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("android.media.IMediaHTTPConnection"); this.mRemote.transact(6, localParcel1, localParcel2, 0); localParcel2.readException(); String str = localParcel2.readString(); return str; } finally { localParcel2.recycle(); localParcel1.recycle(); } } public int readAt(long paramLong, int paramInt) throws RemoteException { Parcel localParcel1 = Parcel.obtain(); Parcel localParcel2 = Parcel.obtain(); try { localParcel1.writeInterfaceToken("android.media.IMediaHTTPConnection"); localParcel1.writeLong(paramLong); localParcel1.writeInt(paramInt); this.mRemote.transact(3, localParcel1, localParcel2, 0); localParcel2.readException(); paramInt = localParcel2.readInt(); return paramInt; } finally { localParcel2.recycle(); localParcel1.recycle(); } } } } } /* Location: /Users/joshua/Desktop/system_framework/classes-dex2jar.jar!/android/media/IMediaHTTPConnection.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "joshuous@gmail.com" ]
joshuous@gmail.com
50948f31b7ffbe4b4542723ff7602bed4e058aee
6832918e1b21bafdc9c9037cdfbcfe5838abddc4
/jdk_8_maven/cs/rest-gui/ocvn/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/charts/Annotation.java
a018507249be7bea668ac24b6618bf4ed67b6b41
[ "Apache-2.0", "GPL-1.0-or-later", "LGPL-2.0-or-later", "MIT" ]
permissive
EMResearch/EMB
200c5693fb169d5f5462d9ebaf5b61c46d6f9ac9
092c92f7b44d6265f240bcf6b1c21b8a5cba0c7f
refs/heads/master
2023-09-04T01:46:13.465229
2023-04-12T12:09:44
2023-04-12T12:09:44
94,008,854
25
14
Apache-2.0
2023-09-13T11:23:37
2017-06-11T14:13:22
Java
UTF-8
Java
false
false
1,557
java
package org.devgateway.toolkit.forms.wicket.components.charts; import java.io.Serializable; /** * @author idobre * @since 4/21/17 */ public class Annotation implements Serializable { private final Font font; private final Boolean showarrow; private final String text; private final Double x; private final Double y; public Annotation(final AnnotationBuilder annotationBuilder) { this.font = annotationBuilder.font; this.showarrow = annotationBuilder.showarrow; this.text = annotationBuilder.text; this.x = annotationBuilder.x; this.y = annotationBuilder.y; } public static class AnnotationBuilder { private Font font; private Boolean showarrow; private String text; private Double x; private Double y; public AnnotationBuilder setFont(final Font font) { this.font = font; return this; } public AnnotationBuilder setShowarrow(final Boolean showarrow) { this.showarrow = showarrow; return this; } public AnnotationBuilder setText(final String text) { this.text = text; return this; } public AnnotationBuilder setX(final Double x) { this.x = x; return this; } public AnnotationBuilder setY(final Double y) { this.y = y; return this; } public Annotation build() { return new Annotation(this); } } }
[ "arcuri82@gmail.com" ]
arcuri82@gmail.com
bca426fdd870cd32d3d97be7a35a8f0be2ccac65
13cbb329807224bd736ff0ac38fd731eb6739389
/javax/security/auth/callback/LanguageCallback.java
814cc874237ea57594eebf05680ea4da11c2f434
[]
no_license
ZhipingLi/rt-source
5e2537ed5f25d9ba9a0f8009ff8eeca33930564c
1a70a036a07b2c6b8a2aac6f71964192c89aae3c
refs/heads/master
2023-07-14T15:00:33.100256
2021-09-01T04:49:04
2021-09-01T04:49:04
401,933,858
0
0
null
null
null
null
UTF-8
Java
false
false
590
java
package javax.security.auth.callback; import java.io.Serializable; import java.util.Locale; public class LanguageCallback implements Callback, Serializable { private static final long serialVersionUID = 2019050433478903213L; private Locale locale; public void setLocale(Locale paramLocale) { this.locale = paramLocale; } public Locale getLocale() { return this.locale; } } /* Location: D:\software\jd-gui\jd-gui-windows-1.6.3\rt.jar!\javax\security\auth\callback\LanguageCallback.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.0.7 */
[ "michael__lee@yeah.net" ]
michael__lee@yeah.net
2c93e146336aea5a836a6c52cf7b640b2a4a915a
6ec435e22eb45bc23aaa6ac1078c7081a911923b
/src/main/java/ru/maklas/mengine/AngleNormalizer.java
40f03836f631e4e8ed1107f5de79943d34d01ea9
[]
no_license
maklas/MEngine
b3785fafd11fe2dbaa0bd016d81928907718f15e
e25de0e21daf325f55d99d92605bddab858558eb
refs/heads/master
2022-05-17T07:12:38.155880
2022-04-19T15:45:27
2022-04-19T15:45:27
121,391,116
1
0
null
null
null
null
UTF-8
Java
false
false
152
java
package ru.maklas.mengine; /** Filters Entity's angle to meet requirements **/ public interface AngleNormalizer { float normalize(float angle); }
[ "maklas-a@yandex.ru" ]
maklas-a@yandex.ru
0ce32af45ec2ce4f72320ae80244f4da3b72a2a8
e7411762b76a391ccbe1b960d64f8ca194209adf
/openapi-generator-utils/icespellmint/icespellmint-openapigen-java-resteasy/src/main/java/fr/jmini/openapi/openapitools/resteasy/StringUtil.java
1795b4f92f1bc650ac691be01034f6b4bedabd1b
[ "Apache-2.0" ]
permissive
jmini/openapi-experiments
fe3e5c6a855716f9fc83f26638a3b5327183698f
941b125777977c52c1f1e7abd59f4fdf5863e5cb
refs/heads/master
2022-12-25T14:18:00.172453
2020-01-06T20:52:47
2020-01-06T20:52:47
121,434,627
1
1
Apache-2.0
2022-12-15T23:23:47
2018-02-13T20:45:45
Java
UTF-8
Java
false
false
1,562
java
/* * OpenAPI Ice Spell Mint API * Test Spec for a \"Simple Client\" * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package fr.jmini.openapi.openapitools.resteasy; public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). * * @param array The array * @param value The value to search * @return true if the array contains the value */ public static boolean containsIgnoreCase(String[] array, String value) { for (String str : array) { if (value == null && str == null) { return true; } if (value != null && value.equalsIgnoreCase(str)) { return true; } } return false; } /** * Join an array of strings with the given separator. * <p> * Note: This might be replaced by utility method from commons-lang or guava someday * if one of those libraries is added as dependency. * </p> * * @param array The array of strings * @param separator The separator * @return the resulting string */ public static String join(String[] array, String separator) { int len = array.length; if (len == 0) { return ""; } StringBuilder out = new StringBuilder(); out.append(array[0]); for (int i = 1; i < len; i++) { out.append(separator).append(array[i]); } return out.toString(); } }
[ "dev@jmini.fr" ]
dev@jmini.fr
39535d72be394f660a7187eed0ba8e8755a5c009
2bc2eadc9b0f70d6d1286ef474902466988a880f
/tags/mule-1.1/mule/src/java/org/mule/management/mbeans/RouterStatsMBean.java
58c9d8797bd7fad9d9603cd4e0ae3cbb4592319f
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-symphonysoft" ]
permissive
OrgSmells/codehaus-mule-git
085434a4b7781a5def2b9b4e37396081eaeba394
f8584627c7acb13efdf3276396015439ea6a0721
refs/heads/master
2022-12-24T07:33:30.190368
2020-02-27T19:10:29
2020-02-27T19:10:29
243,593,543
0
0
null
2022-12-15T23:30:00
2020-02-27T18:56:48
null
UTF-8
Java
false
false
751
java
/* * $Header$ * $Revision$ * $Date$ * ------------------------------------------------------------------------------------------------------ * * Copyright (c) SymphonySoft Limited. All rights reserved. * http://www.symphonysoft.com * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.mule.management.mbeans; import java.util.Map; /** * <code>RouterStatsMBean</code> TODO * * @author Guillaume Nodet * @version $Revision$ */ public interface RouterStatsMBean { int getCaughtMessages(); int getNotRouted(); int getTotalReceived(); int getTotalRouted(); Map getRouted(); }
[ "(no author)@bf997673-6b11-0410-b953-e057580c5b09" ]
(no author)@bf997673-6b11-0410-b953-e057580c5b09
cab9ec474acd0ff216a7130847958daed67b9111
d4fb527864fee6caa489a6cecbfd868a70746a03
/First_Edition/src/chapter_9/item_49/DisplayQueue.java
2f12f92970554a2aa8515fc377f02fc79f0f00f1
[]
no_license
ildar66/java-book-Effective_Java
a9642ecc15afd12750acbd95ed58020e7994da37
250eb584ebc8b3c185513891cafbe362193cf04b
refs/heads/master
2020-06-13T02:51:53.439000
2017-02-07T07:22:48
2017-02-07T07:22:48
75,460,803
0
0
null
null
null
null
UTF-8
Java
false
false
398
java
package chapter_9.item_49; /** * For example, the following subclass prints out each work item, * printing no more than one item per second, no matter how frequently items are enqueued:. */ class DisplayQueue extends WorkQueue { protected void processItem(Object workItem) throws InterruptedException { System.out.println(workItem); Thread.sleep(1000); } }
[ "ildar66@inbox.ru" ]
ildar66@inbox.ru
fb51cb3312070b73f3285b647f9e09a6be3519c0
4d2f1b01d59f7a78e5439a303b7088555eac2ea4
/pro27B/yc27805servlet/src/com/yc/MyServlet.java
a89459713d43244c2e5bc5a59d492c70800a1c40
[]
no_license
kingdas/lesson2
7e74f4794c60b3539184976f6bc28363af877d21
6f1fd67042838b4106a881bde633f51221abdbda
refs/heads/master
2020-04-08T01:53:19.775866
2018-12-01T04:21:30
2018-12-01T04:21:30
158,912,689
0
0
null
null
null
null
UTF-8
Java
false
false
981
java
package com.yc; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.catalina.connector.Request; @WebServlet("/ms") public class MyServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("xxx"); } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Override protected void service(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { System.out.println(arg0.getMethod()); // super.service(arg0, arg1); if ("GET".equals(arg0.getMethod())) { doGet(arg0, arg1); } System.out.println("***"); } }
[ "das_jin@163.com" ]
das_jin@163.com
f9be1b425b4305343918822c9a6efc28e76f6588
83e81c25b1f74f88ed0f723afc5d3f83e7d05da8
/tools/powermodel/src/com/android/powermodel/component/VideoProfile.java
8545f03553c2a4c18ae2b80856f348250011c128
[ "Apache-2.0", "LicenseRef-scancode-unicode" ]
permissive
Ankits-lab/frameworks_base
8a63f39a79965c87a84e80550926327dcafb40b7
150a9240e5a11cd5ebc9bb0832ce30e9c23f376a
refs/heads/main
2023-02-06T03:57:44.893590
2020-11-14T09:13:40
2020-11-14T09:13:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
893
java
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.powermodel.component; import java.util.Arrays; import com.android.powermodel.ComponentProfile; import com.android.powermodel.ParseException; public class VideoProfile extends ComponentProfile { public float onMa; }
[ "keneankit01@gmail.com" ]
keneankit01@gmail.com
404c6e52ad3fd3c34af0dd2569a95d99c4187471
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/17/17_05cf8e33bd87adf938fe33abd99b3a7a7837e16b/WordCropper/17_05cf8e33bd87adf938fe33abd99b3a7a7837e16b_WordCropper_s.java
7b80090366a271a7e6fb0b917d49a52072362e1a
[]
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,629
java
import java.awt.Image; import java.awt.Transparency; import java.awt.color.ColorSpace; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.ComponentColorModel; import java.awt.image.DataBuffer; import java.awt.image.DataBufferByte; import java.awt.image.DataBufferUShort; import java.awt.image.Raster; import java.awt.image.SampleModel; import java.awt.image.WritableRaster; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.LinkedList; import java.util.Queue; import java.util.Vector; import java.util.regex.Pattern; import javax.imageio.ImageIO; public class WordCropper { public static void main(String[] args) { System.out.println("Working Directory = " + System.getProperty("user.dir")); String cwd = System.getProperty("user.dir"); File actual = new File(cwd + File.separator + "image.png"); try { BufferedImage BI = ImageIO.read(actual); int[][] data = convertTo2DWithoutUsingGetRGB(BI); final int height = data.length; final int width = data[0].length; int[][] used = new int[height][width]; int i,j,x,y; Queue<Point> q = new LinkedList<Point>(); int maxX, maxY,minX, minY, ind=0; for(j=0;j<height;j++) for(i=0;i<width;i++) if(used[j][i] == 0) { x = i; y = j; maxX = minX = x; maxY = minY = y; Point p = new Point(x, y); q.add(p); while(!q.isEmpty()) { p = q.poll(); if(p.x < minX){ minX = p.x; } if(p.y < minY){ minY = p.y; } if(p.x > maxX){ maxX = p.x; } if(p.y > maxY){ maxY = p.y; } used[p.y][p.x] = 1; if(p.y < height-1 && data[p.y+1][p.x] == 0 && used[p.y+1][p.x] == 0) { q.add(new Point(p.x, p.y+1)); used[p.y-1][p.x] = 1; } if( p.y > 0 && data[p.y-1][p.x] == 0 && used[p.y-1][p.x] == 0) { q.add(new Point(p.x, p.y-1)); used[p.y-1][p.x] = 1; } if(p.x < width-1 && data[p.y][p.x+1] == 0 && used[p.y][p.x+1] == 0) { q.add(new Point(p.x+1, p.y)); used[p.y][p.x+1] = 1; } if(p.x > 0 && data[p.y][p.x-1] == 0 && used[p.y][p.x-1] == 0) { q.add(new Point(p.x-1, p.y)); used[p.y][p.x-1] = 1; } } int[][] new_data = copy_rectangle(minY, maxY+1, minX, maxX+1, data); if(new_data == null) continue; File outputImageFile = new File(cwd + File.separator + "res"+minY+"x"+minX+".png"); BufferedImage res = getGrayscale(new_data); Image resized = res.getScaledInstance(29, 29, Image.SCALE_SMOOTH); BufferedImage resizedBI= new BufferedImage(29,29, BufferedImage.TYPE_BYTE_GRAY); resizedBI.getGraphics().drawImage(resized, 0, 0, null); ImageIO.write(resizedBI, "png", outputImageFile); ind++; } } catch (IOException e) { e.printStackTrace(); } } public static BufferedImage getGrayscale(int[][] bytes) { final int width = bytes[0].length; final int height = bytes.length; byte[] pixels = new byte[width * height]; int i,j; for (j = 0; j < height; j++) for(i = 0; i < width; i++) { pixels[j * width + i] = (byte)bytes[j][i]; } ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY); int[] nBits = { 8 }; ColorModel cm = new ComponentColorModel(cs, nBits, false, true, Transparency.OPAQUE, DataBuffer.TYPE_BYTE); SampleModel sm = cm.createCompatibleSampleModel(width, height); DataBufferByte db = new DataBufferByte(pixels, width * height); WritableRaster raster = Raster.createWritableRaster(sm, db, null); BufferedImage result = new BufferedImage(cm, raster, false, null); return result; } private static int[][] convertTo2DWithoutUsingGetRGB(BufferedImage image) { //byte[] pixels = ((DataBufferByte) image.getRaster().getDataBuffer()).getData(); final int width = image.getWidth(); final int height = image.getHeight(); int[] pixels = new int[width*height]; image.getRGB(0, 0, width, height, pixels, 0, width); int[][] result = new int[height][width]; int red, green, blue, pixel, row, col; for (pixel = 0, row = 0, col = 0; pixel < pixels.length; pixel ++) { red = (pixels[pixel] & 0xFF); green = (pixels[pixel] & 0xFF00)>>8; blue = (pixels[pixel] & 0xFF0000)>>16; // result[row][col] = green; result[row][col] = (red + green + blue)/3; // result[row][col] = Math.round(( 0.299 * red + 0.587 * green + 0.114 * blue)); col++; if (col == width) { col = 0; row++; if(row >= height) { return result; } } } return result; } public static int[][] copy_rectangle(int y1, int y2, int x1, int x2, int[][] data) { int i,j,f; for(i=y1; i<y2; i++) { f = 0; for(j=x1; j<x2; j++)f = f + (data[i][j] == 0 ? 1 : 0); if(f == 0){ y1++; } else break; } for(i=y2-1; i>=y1; i--) { f = 0; for(j=x1; j<x2; j++) f = f + (data[i][j] == 0 ? 1 : 0); if(f == 0){ y2--; } else break; } if(y2-y1 < 10) return null; if(x2-x1 < 10) return null; int[][] res = new int[y2-y1][x2-x1]; for(i=y1; i<y2; i++) { for(j=x1; j<x2; j++) { res[i-y1][j-x1]=data[i][j]; } } return res; } } class Point { public int x,y; Point(int x, int y) { this.x = x; this.y = y; } public String toString() { return x + " " + y; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
b04c01e9dccb669117dab48050102534ee55197e
34f8d4ba30242a7045c689768c3472b7af80909c
/jdk-12/src/jdk.internal.vm.compiler/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/framemap/FrameMapBuilder.java
7eb9ae618a641160364c8d6a97937cd375804436
[ "Apache-2.0" ]
permissive
lovelycheng/JDK
5b4cc07546f0dbfad15c46d427cae06ef282ef79
19a6c71e52f3ecd74e4a66be5d0d552ce7175531
refs/heads/master
2023-04-08T11:36:22.073953
2022-09-04T01:53:09
2022-09-04T01:53:09
227,544,567
0
0
null
2019-12-12T07:18:30
2019-12-12T07:18:29
null
UTF-8
Java
false
false
2,733
java
/* * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * */ package org.graalvm.compiler.lir.framemap; import java.util.BitSet; import java.util.List; import org.graalvm.compiler.lir.VirtualStackSlot; import org.graalvm.compiler.lir.gen.LIRGenerationResult; import jdk.vm.ci.code.CallingConvention; import jdk.vm.ci.code.CodeCacheProvider; import jdk.vm.ci.code.RegisterConfig; import jdk.vm.ci.meta.ValueKind; /** * A {@link FrameMapBuilder} is used to collect all information necessary to * {@linkplain #buildFrameMap create} a {@link FrameMap}. */ public abstract class FrameMapBuilder { /** * Reserves a spill slot in the frame of the method being compiled. The returned slot is aligned * on its natural alignment, i.e., an 8-byte spill slot is aligned at an 8-byte boundary, unless * overridden by a subclass. * * @param kind The kind of the spill slot to be reserved. * @return A spill slot denoting the reserved memory area. */ public abstract VirtualStackSlot allocateSpillSlot(ValueKind<?> kind); /** * Reserves a number of contiguous slots in the frame of the method being compiled. If the * requested number of slots is 0, this method returns {@code null}. * * @param slots the number of slots to reserve * @param objects specifies the indexes of the object pointer slots. The caller is responsible * for guaranteeing that each such object pointer slot is initialized before any * instruction that uses a reference map. Without this guarantee, the garbage * collector could see garbage object values. * @param outObjectStackSlots if non-null, the object pointer slots allocated are added to this * list * @return the first reserved stack slot (i.e., at the lowest address) */ public abstract VirtualStackSlot allocateStackSlots(int slots, BitSet objects, List<VirtualStackSlot> outObjectStackSlots); public abstract RegisterConfig getRegisterConfig(); public abstract CodeCacheProvider getCodeCache(); /** * Informs the frame map that the compiled code calls a particular method, which may need stack * space for outgoing arguments. * * @param cc The calling convention for the called method. */ public abstract void callsMethod(CallingConvention cc); /** * Creates a {@linkplain FrameMap} based on the information collected by this * {@linkplain FrameMapBuilder}. */ public abstract FrameMap buildFrameMap(LIRGenerationResult result); }
[ "zeng255@163.com" ]
zeng255@163.com
bef57d1303bc508aa8242148b0d3adc4fe59eb5e
0ea271177f5c42920ac53cd7f01f053dba5c14e4
/5.3.5/sources/com/google/android/gms/internal/zzcnr.java
33750fd6b47856f20050030734b108055ed1fa5a
[]
no_license
alireza-ebrahimi/telegram-talaeii
367a81a77f9bc447e729b2ca339f9512a4c2860e
68a67e6f104ab8a0888e63c605e8bbad12c4a20e
refs/heads/master
2020-03-21T13:44:29.008002
2018-12-09T10:30:29
2018-12-09T10:30:29
138,622,926
12
1
null
null
null
null
UTF-8
Java
false
false
5,320
java
package com.google.android.gms.internal; import java.io.IOException; public final class zzcnr extends zzflm<zzcnr> { private static volatile zzcnr[] zzjss; public Integer zzjst; public zzcnv[] zzjsu; public zzcns[] zzjsv; public zzcnr() { this.zzjst = null; this.zzjsu = zzcnv.zzbcv(); this.zzjsv = zzcns.zzbct(); this.zzpvl = null; this.zzpnr = -1; } public static zzcnr[] zzbcs() { if (zzjss == null) { synchronized (zzflq.zzpvt) { if (zzjss == null) { zzjss = new zzcnr[0]; } } } return zzjss; } public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof zzcnr)) { return false; } zzcnr zzcnr = (zzcnr) obj; if (this.zzjst == null) { if (zzcnr.zzjst != null) { return false; } } else if (!this.zzjst.equals(zzcnr.zzjst)) { return false; } return !zzflq.equals(this.zzjsu, zzcnr.zzjsu) ? false : !zzflq.equals(this.zzjsv, zzcnr.zzjsv) ? false : (this.zzpvl == null || this.zzpvl.isEmpty()) ? zzcnr.zzpvl == null || zzcnr.zzpvl.isEmpty() : this.zzpvl.equals(zzcnr.zzpvl); } public final int hashCode() { int i = 0; int hashCode = ((((((this.zzjst == null ? 0 : this.zzjst.hashCode()) + ((getClass().getName().hashCode() + 527) * 31)) * 31) + zzflq.hashCode(this.zzjsu)) * 31) + zzflq.hashCode(this.zzjsv)) * 31; if (!(this.zzpvl == null || this.zzpvl.isEmpty())) { i = this.zzpvl.hashCode(); } return hashCode + i; } public final /* synthetic */ zzfls zza(zzflj zzflj) throws IOException { while (true) { int zzcxx = zzflj.zzcxx(); int zzb; Object obj; switch (zzcxx) { case 0: break; case 8: this.zzjst = Integer.valueOf(zzflj.zzcym()); continue; case 18: zzb = zzflv.zzb(zzflj, 18); zzcxx = this.zzjsu == null ? 0 : this.zzjsu.length; obj = new zzcnv[(zzb + zzcxx)]; if (zzcxx != 0) { System.arraycopy(this.zzjsu, 0, obj, 0, zzcxx); } while (zzcxx < obj.length - 1) { obj[zzcxx] = new zzcnv(); zzflj.zza(obj[zzcxx]); zzflj.zzcxx(); zzcxx++; } obj[zzcxx] = new zzcnv(); zzflj.zza(obj[zzcxx]); this.zzjsu = obj; continue; case 26: zzb = zzflv.zzb(zzflj, 26); zzcxx = this.zzjsv == null ? 0 : this.zzjsv.length; obj = new zzcns[(zzb + zzcxx)]; if (zzcxx != 0) { System.arraycopy(this.zzjsv, 0, obj, 0, zzcxx); } while (zzcxx < obj.length - 1) { obj[zzcxx] = new zzcns(); zzflj.zza(obj[zzcxx]); zzflj.zzcxx(); zzcxx++; } obj[zzcxx] = new zzcns(); zzflj.zza(obj[zzcxx]); this.zzjsv = obj; continue; default: if (!super.zza(zzflj, zzcxx)) { break; } continue; } return this; } } public final void zza(zzflk zzflk) throws IOException { int i = 0; if (this.zzjst != null) { zzflk.zzad(1, this.zzjst.intValue()); } if (this.zzjsu != null && this.zzjsu.length > 0) { for (zzfls zzfls : this.zzjsu) { if (zzfls != null) { zzflk.zza(2, zzfls); } } } if (this.zzjsv != null && this.zzjsv.length > 0) { while (i < this.zzjsv.length) { zzfls zzfls2 = this.zzjsv[i]; if (zzfls2 != null) { zzflk.zza(3, zzfls2); } i++; } } super.zza(zzflk); } protected final int zzq() { int i = 0; int zzq = super.zzq(); if (this.zzjst != null) { zzq += zzflk.zzag(1, this.zzjst.intValue()); } if (this.zzjsu != null && this.zzjsu.length > 0) { int i2 = zzq; for (zzfls zzfls : this.zzjsu) { if (zzfls != null) { i2 += zzflk.zzb(2, zzfls); } } zzq = i2; } if (this.zzjsv != null && this.zzjsv.length > 0) { while (i < this.zzjsv.length) { zzfls zzfls2 = this.zzjsv[i]; if (zzfls2 != null) { zzq += zzflk.zzb(3, zzfls2); } i++; } } return zzq; } }
[ "alireza.ebrahimi2006@gmail.com" ]
alireza.ebrahimi2006@gmail.com
7281afb583461df72716956be956d5507e7040e1
bf8a03c42406cab500aaae562a7a514204af9c44
/src/main/java/pw/cdmi/om/protocol/cim/core/CIM_ConcreteComponent.java
1577f98eab66d65d20069a7ff22ef774640c6750
[ "Apache-2.0" ]
permissive
byte4sec/cdmi-core-monitor
701457e9f1bd4cc6a0e1fd66bfeb7ea3a44a8af8
e5c2f82aa0200d65a28383cab3ebbb38971adbf1
refs/heads/master
2021-10-09T16:52:45.309438
2017-05-01T09:15:08
2017-05-01T09:15:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
192
java
package pw.cdmi.om.protocol.cim.core; public class CIM_ConcreteComponent extends CIM_Component{ private CIM_ManagedElement GroupComponent; private CIM_ManagedElement PartComponent; }
[ "wuwei@jmapi.cn" ]
wuwei@jmapi.cn
de90b5ac80c371d75b2d9a8f2e595739a7b5c39b
38287b8e62016230551840c9d4c8fbd4e473f420
/mallcore/src/main/java/com/hxqc/mall/launch/view/InputPhoneVerificationCode.java
9699c70e9483fecde3313c063d5ae7fe52652df8
[]
no_license
isliulin/Mall3
f950f87376b9573ee196b762eb1833d8b5c145d8
b27f73feb17e93cb6fd0d4991fd99c1037dd0427
refs/heads/master
2023-03-15T23:24:33.795603
2017-02-16T07:03:58
2017-02-16T07:03:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,838
java
package com.hxqc.mall.launch.view; import android.content.Context; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import com.hxqc.mall.core.R; import com.hxqc.mall.core.views.materialedittext.MaterialEditText; /** * 说明:手机号输入栏 和 获取验证码 * * author:廖贵龙 * since: 2017年1月3日 14:42:45 * Copyright:恒信汽车电子商务有限公司 */ public class InputPhoneVerificationCode extends RelativeLayout { public MaterialEditText mPhoneNumberView;//手机号 ImageView mClearView;//清空手机号栏 ImageView mPhoneNumberIconView;//手机号图标 CountdownButton mGetIdentifyingCodeView;//发送验证码按钮 public InputPhoneVerificationCode(Context context) { super(context); } public InputPhoneVerificationCode(final Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater inflater = LayoutInflater.from(context); inflater.inflate(R.layout.view_input_phone_verification_code, this); mPhoneNumberView = (MaterialEditText) findViewById(R.id.phone_number); mPhoneNumberIconView = (ImageView) findViewById(R.id.phone_number_icon); mGetIdentifyingCodeView= (CountdownButton) findViewById(R.id.get_identifying_code); mClearView = (ImageView) findViewById(R.id.clear); // if (context instanceof LoginActivity) { // mClearView.setVisibility(GONE); // } else { // // } mClearView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { mPhoneNumberView.setText(""); } }); mPhoneNumberView.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { if (TextUtils.isEmpty(mPhoneNumberView.getText())) { mClearView.setVisibility(INVISIBLE); } else { // if (!(context instanceof LoginActivity)) { mClearView.setVisibility(VISIBLE); // } } mPhoneNumberIconView.setImageResource(R.drawable.ic_form_input_phone_selected); } else { mClearView.setVisibility(INVISIBLE); mPhoneNumberIconView.setImageResource(R.drawable.ic_form_input_phone_normal); } } }); mPhoneNumberView.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { if (!TextUtils.isEmpty(mPhoneNumberView.getText()) && mPhoneNumberView.hasFocus()) { // if (!(context instanceof LoginActivity)) { mClearView.setVisibility(VISIBLE); // } } else { mClearView.setVisibility(INVISIBLE); } } @Override public void afterTextChanged(Editable s) { } }); } public CountdownButton getCountdownButton() { return mGetIdentifyingCodeView; } public void setGetIdentifyingCodeViewText(String text){ mGetIdentifyingCodeView.setText(text); } public String getPhoneNumber() { return mPhoneNumberView.getText().toString().trim(); } }
[ "1239251224@qq.com" ]
1239251224@qq.com
360ff2114a0a9049b5ded0b9691e1542d610f289
f8bfd08b69508143cae43fe32f7237d2efadfb31
/CHPEV_DEV_RPT/src/main/java/com/ailk/bi/marketing/dao/impl/PackageDaoImpl.java
55d598b25f9606c2823287b4309ace66d37cbea9
[]
no_license
qq85609655/BIReport
540dedefe76e2127a1ad4ce16455aa8dfb8480a5
769568a13e709064a32094f9996a49f3edb7cc59
refs/heads/master
2021-05-27T06:56:29.683749
2013-03-31T09:03:04
2013-03-31T09:03:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,563
java
package com.ailk.bi.marketing.dao.impl; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Property; import org.hibernate.criterion.Restrictions; import org.springframework.stereotype.Repository; import com.ailk.bi.base.dao.BaseDAO; import com.ailk.bi.marketing.dao.IPackageDao; import com.ailk.bi.marketing.entity.PackageInfo; @Repository public class PackageDaoImpl extends BaseDAO<PackageInfo, Integer> implements IPackageDao { public boolean delect(String ids) { int count = 0; try { Session session = super.getSession(); String HSQL = "DELETE PackageInfo WHERE packageId IN (" + ids + ")"; count = session.createQuery(HSQL).executeUpdate(); System.out.println("删除条数:" + count); session.flush(); } catch (Exception e) { e.printStackTrace(); System.out.println("批量删除出现问题"); } if (count > 0) { return true; } else { return false; } } public List<PackageInfo> getAll(PackageInfo entity, int count) { Session session = getSession(); Criteria criter = session.createCriteria(PackageInfo.class,"PackageInfo"); if(null == entity && count == 0){ return super.findAll(); }else { if(count>0){ criter.setMaxResults(count); } // 对套餐名称进行模糊查询 String packageName = "%"; if (null != entity.getPackageName()) { packageName = "%" + entity.getPackageName() + "%"; criter.add(Restrictions.like("PackageInfo.packageName",packageName)); } if (entity.getPackageType() != -999) { criter.add(Restrictions.eq("PackageInfo.packageType",entity.getPackageType())); } if (entity.getState() != -999) { criter.add(Restrictions.eq("PackageInfo.state",entity.getState())); } criter.addOrder(Property.forName("PackageInfo.createDate").desc()); @SuppressWarnings("unchecked") List<PackageInfo> results = criter.list(); session.flush(); return results; } } public List<PackageInfo> getAllSonPackage(String ids) { Session session = getSession(); Criteria criter = session.createCriteria(PackageInfo.class,"PackageInfo"); String[] values = ids.split(","); Integer[] parentPackageIdArr = new Integer[values.length]; for(int i=0;i<values.length;i++){ parentPackageIdArr[i] = Integer.parseInt(values[i]); } criter.add(Restrictions.in("PackageInfo.parentPackageId", parentPackageIdArr)); @SuppressWarnings("unchecked") List<PackageInfo> results = criter.list(); session.flush(); return results; } }
[ "xiaofeng.dou@gmail.com" ]
xiaofeng.dou@gmail.com
1d8c1c32fb76e0aefda74f795342cbe6bc85a3d2
3f87df2a878de64eccdcac22bb09b8944ba06fd4
/java/spring/unofficial/udemy/Full Stack Project Spring Boot 2.0 ReactJS Redux/backend/src/main/java/com/workshop/java/spring/unoficial/udemy/react/backend/domain/ProjectTask.java
dea3b1353d7fcb75abd70c80a093126d985cd357
[]
no_license
juncevich/workshop
621d1262a616ea4664198338b712898af9e61a76
fbaeecfb399be65a315c60d0aa24ecae4067918d
refs/heads/master
2023-04-30T14:53:43.154005
2023-04-15T17:26:53
2023-04-15T17:26:53
78,441,425
0
0
null
2023-03-28T20:52:35
2017-01-09T15:27:29
JavaScript
UTF-8
Java
false
false
1,163
java
package com.workshop.java.spring.unoficial.udemy.react.backend.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import javax.persistence.*; import javax.validation.constraints.NotBlank; import java.util.Date; @Entity @Data public class ProjectTask { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(updatable = false, unique = true) private String projectSequence; @NotBlank(message = "Please include a project summary") private String summary; private String acceptanceCriteria; private String status; private Integer priority; private Date dueDate; private Date createdAt; private Date updatedAt; @Column(updatable = false) private String projectIdentifier; @ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.REFRESH) @JoinColumn(name = "backlog_id", updatable = false, nullable = false) @JsonIgnore private Backlog backlog; @PrePersist protected void onCreate() { this.createdAt = new Date(); } @PreUpdate protected void onUpdate() { this.updatedAt = new Date(); } }
[ "a.juncevich@gmail.com" ]
a.juncevich@gmail.com
6bad139c1d39f8a56b0145d89c6367a29761cf45
1446665395f616ac96de34aceb48d4aa6ff49f93
/main/src/main/java/com/myylook/main/activity/SearchActivity.java
daed9de86346812902a110f1d96112212394be9e
[]
no_license
838245284/livedemo
c459c68cefa35cce4c11217f05f5bddb0db424d3
1031e7530a7ea3ad94c7ba644c63a74f65881ae5
refs/heads/develop
2023-06-08T18:40:24.103366
2021-06-25T14:53:37
2021-06-25T14:53:37
376,277,522
0
0
null
2021-06-25T14:53:38
2021-06-12T11:51:09
Java
UTF-8
Java
false
false
7,534
java
package com.myylook.main.activity; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.Message; import android.support.v7.widget.LinearLayoutManager; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; import android.widget.TextView; import com.alibaba.fastjson.JSON; import com.myylook.common.Constants; import com.myylook.common.activity.AbsActivity; import com.myylook.common.adapter.RefreshAdapter; import com.myylook.common.custom.CommonRefreshView; import com.myylook.common.event.FollowEvent; import com.myylook.common.http.HttpCallback; import com.myylook.common.interfaces.OnItemClickListener; import com.myylook.common.utils.RouteUtil; import com.myylook.common.utils.ToastUtil; import com.myylook.main.R; import com.myylook.main.adapter.SearchAdapter; import com.myylook.live.bean.SearchUserBean; import com.myylook.main.http.MainHttpConsts; import com.myylook.main.http.MainHttpUtil; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import java.lang.ref.WeakReference; import java.util.Arrays; import java.util.List; /** * Created by cxf on 2018/10/25. */ public class SearchActivity extends AbsActivity implements OnItemClickListener<SearchUserBean>, View.OnClickListener { private EditText mEditText; private CommonRefreshView mRefreshView; private SearchAdapter mSearchAdapter; private InputMethodManager imm; private String mKey; private MyHandler mHandler; private View mBtnClear; public static void forward(Context context) { context.startActivity(new Intent(context, SearchActivity.class)); } @Override protected int getLayoutId() { return R.layout.activity_search; } @Override protected void main() { imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mBtnClear = findViewById(R.id.btn_clear); mBtnClear.setOnClickListener(this); mEditText = (EditText) findViewById(R.id.edit); mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH) { search(); return true; } return false; } }); mEditText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { MainHttpUtil.cancel(MainHttpConsts.SEARCH); if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); } if (!TextUtils.isEmpty(s)) { if (mHandler != null) { mHandler.sendEmptyMessageDelayed(0, 500); } if (mBtnClear != null && mBtnClear.getVisibility() != View.VISIBLE) { mBtnClear.setVisibility(View.VISIBLE); } } else { mKey = null; if (mSearchAdapter != null) { mSearchAdapter.clearData(); } if (mBtnClear != null && mBtnClear.getVisibility() == View.VISIBLE) { mBtnClear.setVisibility(View.INVISIBLE); } } } @Override public void afterTextChanged(Editable s) { } }); mRefreshView = findViewById(R.id.refreshView); mRefreshView.setEmptyLayoutId(R.layout.view_no_data_search_2); mRefreshView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false)); mRefreshView.setDataHelper(new CommonRefreshView.DataHelper<SearchUserBean>() { @Override public RefreshAdapter<SearchUserBean> getAdapter() { if (mSearchAdapter == null) { mSearchAdapter = new SearchAdapter(mContext, Constants.FOLLOW_FROM_SEARCH); mSearchAdapter.setOnItemClickListener(SearchActivity.this); } return mSearchAdapter; } @Override public void loadData(int p, HttpCallback callback) { if (!TextUtils.isEmpty(mKey)) { MainHttpUtil.search(mKey, p, callback); } } @Override public List<SearchUserBean> processData(String[] info) { return JSON.parseArray(Arrays.toString(info), SearchUserBean.class); } @Override public void onRefreshSuccess(List<SearchUserBean> list, int listCount) { } @Override public void onRefreshFailure() { } @Override public void onLoadMoreSuccess(List<SearchUserBean> loadItemList, int loadItemCount) { } @Override public void onLoadMoreFailure() { } }); mHandler = new MyHandler(this); EventBus.getDefault().register(this); } private void search() { String key = mEditText.getText().toString().trim(); if (TextUtils.isEmpty(key)) { ToastUtil.show(R.string.content_empty); return; } MainHttpUtil.cancel(MainHttpConsts.SEARCH); if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); } mKey = key; mRefreshView.initData(); } @Override protected void onDestroy() { EventBus.getDefault().unregister(this); MainHttpUtil.cancel(MainHttpConsts.SEARCH); if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); mHandler.release(); } mHandler = null; super.onDestroy(); } @Subscribe(threadMode = ThreadMode.MAIN) public void onFollowEvent(FollowEvent e) { if (mSearchAdapter != null) { mSearchAdapter.updateItem(e.getToUid(), e.getIsAttention()); } } @Override public void onItemClick(SearchUserBean bean, int position) { if (imm != null && mEditText != null) { imm.hideSoftInputFromWindow(mEditText.getWindowToken(), 0); RouteUtil.forwardUserHome(mContext, bean.getId()); } } @Override public void onClick(View v) { if (mEditText != null) { mEditText.setText(null); } } private static class MyHandler extends Handler { private SearchActivity mActivity; public MyHandler(SearchActivity activity) { mActivity = new WeakReference<>(activity).get(); } @Override public void handleMessage(Message msg) { if (mActivity != null) { mActivity.search(); } } public void release() { mActivity = null; } } }
[ "838245284@qq.com" ]
838245284@qq.com
8c2d54fc1112228866f614d96b02bec8f15a5809
379392993a89ede4a49b38a1f0e57dacbe17ec7d
/com/google/android/gms/maps/StreetViewPanoramaView.java
59fdf4a0b9bf4971381e1bb30778b3053871ffd1
[]
no_license
mdali602/DTC
d5c6463d4cf67877dbba43e7d50a112410dccda3
5a91a20a0fe92d010d5ee7084470fdf8af5dafb5
refs/heads/master
2021-05-12T02:06:40.493406
2018-01-15T18:06:00
2018-01-15T18:06:00
117,578,063
0
1
null
null
null
null
UTF-8
Java
false
false
8,181
java
package com.google.android.gms.maps; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.os.RemoteException; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import com.google.android.gms.common.GooglePlayServicesNotAvailableException; import com.google.android.gms.common.internal.zzac; import com.google.android.gms.dynamic.zzd; import com.google.android.gms.dynamic.zze; import com.google.android.gms.maps.internal.IStreetViewPanoramaDelegate; import com.google.android.gms.maps.internal.IStreetViewPanoramaViewDelegate; import com.google.android.gms.maps.internal.StreetViewLifecycleDelegate; import com.google.android.gms.maps.internal.zzah; import com.google.android.gms.maps.internal.zzai; import com.google.android.gms.maps.model.RuntimeRemoteException; import java.util.ArrayList; import java.util.List; public class StreetViewPanoramaView extends FrameLayout { private final zzb zzboU; static class zzb extends com.google.android.gms.dynamic.zza<zza> { private final Context mContext; private final ViewGroup zzboB; private final List<OnStreetViewPanoramaReadyCallback> zzboM = new ArrayList(); private final StreetViewPanoramaOptions zzboX; protected zze<zza> zzbov; zzb(ViewGroup viewGroup, Context context, StreetViewPanoramaOptions streetViewPanoramaOptions) { this.zzboB = viewGroup; this.mContext = context; this.zzboX = streetViewPanoramaOptions; } public void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback onStreetViewPanoramaReadyCallback) { if (zzBM() != null) { ((zza) zzBM()).getStreetViewPanoramaAsync(onStreetViewPanoramaReadyCallback); } else { this.zzboM.add(onStreetViewPanoramaReadyCallback); } } public void zzJy() { if (this.zzbov != null && zzBM() == null) { try { this.zzbov.zza(new zza(this.zzboB, zzai.zzbI(this.mContext).zza(zzd.zzA(this.mContext), this.zzboX))); for (OnStreetViewPanoramaReadyCallback streetViewPanoramaAsync : this.zzboM) { ((zza) zzBM()).getStreetViewPanoramaAsync(streetViewPanoramaAsync); } this.zzboM.clear(); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } catch (GooglePlayServicesNotAvailableException e2) { } } } protected void zza(zze<zza> com_google_android_gms_dynamic_zze_com_google_android_gms_maps_StreetViewPanoramaView_zza) { this.zzbov = com_google_android_gms_dynamic_zze_com_google_android_gms_maps_StreetViewPanoramaView_zza; zzJy(); } } static class zza implements StreetViewLifecycleDelegate { private final IStreetViewPanoramaViewDelegate zzboV; private View zzboW; private final ViewGroup zzboy; public zza(ViewGroup viewGroup, IStreetViewPanoramaViewDelegate iStreetViewPanoramaViewDelegate) { this.zzboV = (IStreetViewPanoramaViewDelegate) zzac.zzw(iStreetViewPanoramaViewDelegate); this.zzboy = (ViewGroup) zzac.zzw(viewGroup); } public void getStreetViewPanoramaAsync(final OnStreetViewPanoramaReadyCallback onStreetViewPanoramaReadyCallback) { try { this.zzboV.getStreetViewPanoramaAsync(new com.google.android.gms.maps.internal.zzaf.zza(this) { public void zza(IStreetViewPanoramaDelegate iStreetViewPanoramaDelegate) throws RemoteException { onStreetViewPanoramaReadyCallback.onStreetViewPanoramaReady(new StreetViewPanorama(iStreetViewPanoramaDelegate)); } }); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public void onCreate(Bundle bundle) { try { Bundle bundle2 = new Bundle(); zzah.zzd(bundle, bundle2); this.zzboV.onCreate(bundle2); zzah.zzd(bundle2, bundle); this.zzboW = (View) zzd.zzF(this.zzboV.getView()); this.zzboy.removeAllViews(); this.zzboy.addView(this.zzboW); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { throw new UnsupportedOperationException("onCreateView not allowed on StreetViewPanoramaViewDelegate"); } public void onDestroy() { try { this.zzboV.onDestroy(); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public void onDestroyView() { throw new UnsupportedOperationException("onDestroyView not allowed on StreetViewPanoramaViewDelegate"); } public void onInflate(Activity activity, Bundle bundle, Bundle bundle2) { throw new UnsupportedOperationException("onInflate not allowed on StreetViewPanoramaViewDelegate"); } public void onLowMemory() { try { this.zzboV.onLowMemory(); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public void onPause() { try { this.zzboV.onPause(); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public void onResume() { try { this.zzboV.onResume(); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public void onSaveInstanceState(Bundle bundle) { try { Bundle bundle2 = new Bundle(); zzah.zzd(bundle, bundle2); this.zzboV.onSaveInstanceState(bundle2); zzah.zzd(bundle2, bundle); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public void onStart() { } public void onStop() { } } public StreetViewPanoramaView(Context context) { super(context); this.zzboU = new zzb(this, context, null); } public StreetViewPanoramaView(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.zzboU = new zzb(this, context, null); } public StreetViewPanoramaView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); this.zzboU = new zzb(this, context, null); } public StreetViewPanoramaView(Context context, StreetViewPanoramaOptions streetViewPanoramaOptions) { super(context); this.zzboU = new zzb(this, context, streetViewPanoramaOptions); } public void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback onStreetViewPanoramaReadyCallback) { zzac.zzdj("getStreetViewPanoramaAsync() must be called on the main thread"); this.zzboU.getStreetViewPanoramaAsync(onStreetViewPanoramaReadyCallback); } public final void onCreate(Bundle bundle) { this.zzboU.onCreate(bundle); if (this.zzboU.zzBM() == null) { com.google.android.gms.dynamic.zza.zzb((FrameLayout) this); } } public final void onDestroy() { this.zzboU.onDestroy(); } public final void onLowMemory() { this.zzboU.onLowMemory(); } public final void onPause() { this.zzboU.onPause(); } public final void onResume() { this.zzboU.onResume(); } public final void onSaveInstanceState(Bundle bundle) { this.zzboU.onSaveInstanceState(bundle); } }
[ "mohd.ali@xotiv.com" ]
mohd.ali@xotiv.com
0f950afb869c3c345c8be4ece9a9e6fb99a2d24a
9821426ca32b707134eee8dbda9ef4ce64a97045
/MiuiSystemUI/umi/systemui/controls/ui/ControlsUiControllerImpl$createMenu$1.java
54d14f1c1ae395c41d1cd5c9a79f26e40742b2c3
[]
no_license
mooseIre/arsc_compare
a28af8205cc75647b3f6e8c1b3310ca2b2140725
3df667d4e4d4924e11cbcfd9df29346a3c259e32
refs/heads/master
2023-06-21T13:30:23.511293
2021-08-12T15:13:08
2021-08-12T15:13:08
277,633,842
3
3
null
null
null
null
UTF-8
Java
false
false
1,555
java
package com.android.systemui.controls.ui; import android.view.View; import android.widget.ImageView; import com.android.systemui.globalactions.GlobalActionsPopupMenu; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Ref$ObjectRef; import org.jetbrains.annotations.NotNull; /* compiled from: ControlsUiControllerImpl.kt */ public final class ControlsUiControllerImpl$createMenu$1 implements View.OnClickListener { final /* synthetic */ Ref$ObjectRef $adapter; final /* synthetic */ ImageView $anchor; final /* synthetic */ ControlsUiControllerImpl this$0; ControlsUiControllerImpl$createMenu$1(ControlsUiControllerImpl controlsUiControllerImpl, ImageView imageView, Ref$ObjectRef ref$ObjectRef) { this.this$0 = controlsUiControllerImpl; this.$anchor = imageView; this.$adapter = ref$ObjectRef; } public void onClick(@NotNull View view) { Intrinsics.checkParameterIsNotNull(view, "v"); ControlsUiControllerImpl controlsUiControllerImpl = this.this$0; GlobalActionsPopupMenu globalActionsPopupMenu = new GlobalActionsPopupMenu(this.this$0.popupThemedContext, false); globalActionsPopupMenu.setAnchorView(this.$anchor); globalActionsPopupMenu.setAdapter(this.$adapter.element); globalActionsPopupMenu.setOnItemClickListener(new ControlsUiControllerImpl$createMenu$1$onClick$$inlined$apply$lambda$1(globalActionsPopupMenu, this)); globalActionsPopupMenu.show(); controlsUiControllerImpl.popup = globalActionsPopupMenu; } }
[ "viiplycn@gmail.com" ]
viiplycn@gmail.com
8c74c78b9e6cc1cfd1b6c8ff870386fa47ba171b
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-elasticsearch/src/main/java/com/aliyuncs/elasticsearch/model/v20170613/ListEcsInstancesRequest.java
0144e351e8fd88330671c2e12de3eed0784c0d91
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
2,903
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.aliyuncs.elasticsearch.model.v20170613; import com.aliyuncs.RoaAcsRequest; import com.aliyuncs.http.MethodType; import com.aliyuncs.elasticsearch.Endpoint; /** * @author auto create * @version */ public class ListEcsInstancesRequest extends RoaAcsRequest<ListEcsInstancesResponse> { private String ecsInstanceName; private String ecsInstanceIds; private Integer size; private String vpcId; private Integer page; private String tags; public ListEcsInstancesRequest() { super("elasticsearch", "2017-06-13", "ListEcsInstances", "elasticsearch"); setUriPattern("/openapi/ecs"); setMethod(MethodType.GET); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); } catch (Exception e) {} } public String getEcsInstanceName() { return this.ecsInstanceName; } public void setEcsInstanceName(String ecsInstanceName) { this.ecsInstanceName = ecsInstanceName; if(ecsInstanceName != null){ putQueryParameter("ecsInstanceName", ecsInstanceName); } } public String getEcsInstanceIds() { return this.ecsInstanceIds; } public void setEcsInstanceIds(String ecsInstanceIds) { this.ecsInstanceIds = ecsInstanceIds; if(ecsInstanceIds != null){ putQueryParameter("ecsInstanceIds", ecsInstanceIds); } } public Integer getSize() { return this.size; } public void setSize(Integer size) { this.size = size; if(size != null){ putQueryParameter("size", size.toString()); } } public String getVpcId() { return this.vpcId; } public void setVpcId(String vpcId) { this.vpcId = vpcId; if(vpcId != null){ putQueryParameter("vpcId", vpcId); } } public Integer getPage() { return this.page; } public void setPage(Integer page) { this.page = page; if(page != null){ putQueryParameter("page", page.toString()); } } public String getTags() { return this.tags; } public void setTags(String tags) { this.tags = tags; if(tags != null){ putQueryParameter("tags", tags); } } @Override public Class<ListEcsInstancesResponse> getResponseClass() { return ListEcsInstancesResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
60352e18bad7067a49485276111a46c5c7485998
f563d5aedb3441a9ff872eeb4d561dfa78ecfb9c
/src/headfirst23/abstractfactory/Icar_factory.java
e5cac911158e6aec3e3f9ace2ba1714963deaa55
[]
no_license
nevenchen/headfirst
b1e72fd976cf8b0a52b8c8e8b89ba546e0f9a771
d7ec8272af10226f24de0a84ce598df281503b87
refs/heads/master
2021-01-25T03:49:36.487684
2019-04-24T01:37:32
2019-04-24T01:37:32
7,239,898
0
0
null
null
null
null
UTF-8
Java
false
false
160
java
package headfirst23.abstractfactory; public interface Icar_factory { public Icar_interface create_threeW_car(); public Icar_interface create_audi_car(); }
[ "neven.chen@hotmail.com" ]
neven.chen@hotmail.com
01fafcf960f9ba87a95b6dba5c64d791c4cad479
b118400aa656dbd406254dc2b4ff379190b604fd
/opencloud-bpm/opencloud-bpm-client/src/main/java/com/github/lyd/bpm/client/constants/TaskOperateType.java
bb22f937fd36eae58b8234ac14c94731c247940d
[ "MIT" ]
permissive
xiongweijie/open-cloud
058eb73df57d52590cf9d66e550fc557065ffda2
80a51fb9614468e840f114dc120fafb99cbf553c
refs/heads/master
2020-05-16T09:53:32.643486
2019-04-22T10:09:25
2019-04-22T10:09:25
182,964,847
2
0
null
2019-04-23T08:01:04
2019-04-23T08:01:03
null
UTF-8
Java
false
false
461
java
package com.github.lyd.bpm.client.constants; /** * 流程操作类型 * * @author: liuyadu * @date: 2019/4/4 13:25 * @description: */ public enum TaskOperateType { /** * 任务审批 */ TASK_APPROVAL, /** * 任务退回 */ TASK_RETREAT, /** * 流程暂停/挂起 */ RPOCESS_PAUSE, /** * 流程恢复 */ PROCESS_RESUME, /** * 流程关闭/终止 */ PROCESS_CLOSE }
[ "515608851@qq.com" ]
515608851@qq.com
582e624689d62eca204734b8758e2b4f67eec8f8
3035f134e78a44979f7b24afd23a58bc4396f63c
/dubbo-common/src/main/java/com/zml/common/entity/BaseEntity.java
57c5e97dc478c337c831a5738876f59f89aa4248
[]
no_license
15701266382/dubbo-common-parent
898e72b292de036bd4a0decf0882c347bc635633
b2188ffbfb28389ebc0b42f66800d8f64829b32b
refs/heads/master
2020-04-05T04:41:00.016714
2017-07-11T05:34:36
2017-07-11T05:34:36
81,925,022
0
0
null
2017-02-14T08:52:43
2017-02-14T08:52:43
null
UTF-8
Java
false
false
1,099
java
package com.zml.common.entity; import java.io.Serializable; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonFormat; /** * * 实体公共类 * @author zhaomingliang * @date 2016年11月11日 */ public class BaseEntity implements Serializable { /** * */ private static final long serialVersionUID = -1612599078907464818L; private Long id; // 主键id private Long version = 0L; // 数据版本号-乐观锁 //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date createDate = new Date(); // 创建日期 public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getVersion() { return version; } public void setVersion(Long version) { this.version = version; } public Date getCreateDate() { return createDate; } public void setCreateDate(Date createDate) { this.createDate = createDate; } }
[ "zhaoml529@163.com" ]
zhaoml529@163.com
9cdb51fc6d750ed5320f060a59f821ee7a93af32
dbde38010aee32c5d04e58feca47c0d30abe34f5
/subprojects/opennaef.api/src/main/java/voss/nms/inventory/util/NameUtil.java
bdbb3ef2ac38e74a0db41703c40bd9f3c4ab77dc
[ "Apache-2.0" ]
permissive
openNaEF/openNaEF
c2c8d5645b499aae36d90205dbc91421f4d0bd7b
c88f0e17adc8d3f266787846911787f9b8aa3b0d
refs/heads/master
2020-12-30T15:41:09.806501
2017-05-22T22:37:24
2017-05-22T22:38:36
91,155,672
13
0
null
null
null
null
UTF-8
Java
false
false
705
java
package voss.nms.inventory.util; import naef.dto.PortDto; import voss.core.server.util.DtoUtil; import voss.core.server.util.Util; import voss.nms.inventory.constants.PortType; import voss.nms.inventory.database.MPLSNMS_ATTR; public class NameUtil extends voss.core.server.util.NameUtil { public static String getPortTypeName(PortDto port) { String portTypeName = DtoUtil.getStringOrNull(port, MPLSNMS_ATTR.PORT_TYPE); if (Util.stringToNull(portTypeName) != null) { return portTypeName; } PortType type = PortType.getByType(port.getObjectTypeName()); if (type != null) { return type.getCaption(); } return "-"; } }
[ "t.yamazaki@ttscweb.jp" ]
t.yamazaki@ttscweb.jp
34dafb28a1be47d79b24673c012dec459015faa2
47d504003d3a93f44f03bd3d7910abade36ca36e
/java-experiments/src/main/java/com/experiment05/Test.java
17f7650722152f38046c93bee586665fb083b5d6
[]
no_license
0iq2333/java-course
bab29c420c4d5b6064c1dcb65a5794317705149e
0476c54d52bf8be3e1e30608d4c45f6756128179
refs/heads/master
2023-04-20T22:51:38.893528
2021-04-29T15:22:05
2021-04-29T15:22:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,401
java
package com.experiment05; import com.experiment05.entity.Student; import com.experiment05.entity.Teacher; import com.experiment05.resource.DatabaseUtils; import java.util.List; import java.util.Optional; public class Test { public static void main(String[] args) { // System.out.println(getCourseName(DatabaseUtils.getStudents(),8888)); // printCollegeName(DatabaseUtils.getStudents(), 201001, 1002); } /** * 基于给定学生集合,学生编号,实现获取学生的导师的所在学院名称。 * 任何一项不存在或失败,返回 未知学院 * 结合collection stream findFirst()方法实现 * 可直接通过一条方法链实现 * @param students * @param sNumber * @return */ private static String getCollegeName(List<Student> students, int sNumber) { return null; } /** * 实现在给定学生集合中查询指定编号学生,如果学生导师编号为指定编号,打印显式导师所在学院名称。 * 任何一项不存在或失败,打印显式 未知学院 * 结合collection stream findFirst()方法实现 * 可直接通过一条方法链实现 * @param students * @param sNumber,学生编号 * @param tNumber,教师编号 */ private static void printCollegeName(List<Student> students, int sNumber, int tNumber) { } }
[ "bwang0629@gmail.com" ]
bwang0629@gmail.com
e3ab51838df14e37414627bd22881eaafe6fbb58
6ac1f64c7ad8c2cf9935f90ac9dc3d941d5764f8
/app/src/main/java/com/cinderellavip/bean/net/life/LiftCategoryItem.java
602d4ec48677036f9f972e56eed89d4767317928
[]
no_license
sengeiou/cinderell
e8595b1c3b3afa0735017c556e575f7a2a00298c
095b9a07ba2f472af5c0665db35bd4d57ff36402
refs/heads/master
2023-03-13T10:29:45.266563
2021-03-02T01:06:21
2021-03-02T01:06:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
268
java
package com.cinderellavip.bean.net.life; import java.util.List; public class LiftCategoryItem { public boolean isCheck; public String name; public String icon; public int id; public int superior; public List<LiftCategoryItem> data; }
[ "835683840@qq.com" ]
835683840@qq.com
f3bccfe4605c3052c884dd3e1cd64364a753033e
a6933231ae1fa947c099bd3b67956b4359ccd54d
/app/src/main/java/com/cndatacom/qmhz/activity/ProxyActivity.java
ad70d648f5634d57ad8d203a1665d815d07683ee
[]
no_license
gaudiwen/QiMeng
8b004d4ad7c98ed20f0cf131e5cb39792af38f76
708b90843c57f7f9d29555dbe414684bbb641178
refs/heads/master
2020-05-20T09:33:00.054226
2019-07-23T09:40:24
2019-07-23T09:40:24
185,502,871
0
0
null
null
null
null
UTF-8
Java
false
false
1,507
java
package com.cndatacom.qmhz.activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.ContentFrameLayout; import android.view.KeyEvent; import com.cndatacom.qmhz.R; import com.cndatacom.qmhz.delegates.BaseDelegate; import com.cndatacom.qmhz.delegates.LaucherDelegate; import com.cndatacom.qmhz.delegates.MainDelegate; import com.cndatacom.qmhz.delegates.PlaneDelegate; import com.cndatacom.qmhz.utils.ToastUtil; import butterknife.ButterKnife; import me.yokeyword.fragmentation.SupportActivity; import me.yokeyword.fragmentation.SupportFragment; public abstract class ProxyActivity extends SupportActivity { public abstract PlaneDelegate setRootDelegate(); public abstract void init(); @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); ButterKnife.bind(this); if(setRootDelegate()!=null){ initContainer(savedInstanceState); } } private void initContainer(Bundle savedInstanceState) { ContentFrameLayout container = new ContentFrameLayout(this); container.setId(R.id.delegate_container); setContentView(container); if(savedInstanceState == null){ loadRootFragment(R.id.delegate_container,setRootDelegate()); } init(); } @Override protected void onDestroy() { super.onDestroy(); System.gc(); System.runFinalization(); } }
[ "you@example.com" ]
you@example.com
e9e1dd163ef71f9fdc5962eeee5e7a587581b44b
322ac84614bd8d011c79b03d96214d4ceabcf086
/src/main/java/com/oseasy/cms/modules/cms/service/LinkService.java
23e022dad360c9a6209e8b1434fd0ba5375006e3
[]
no_license
SchuckBeta/cxcy
f2f953c074be5ab8ab8aeac533ade6600135d759
ed4ceee397fae9d470fb93579bbf6af631965eaa
refs/heads/master
2022-12-25T14:53:58.066476
2019-09-20T12:28:55
2019-09-20T12:28:55
209,783,634
1
0
null
2022-12-16T07:46:52
2019-09-20T12:18:07
Java
UTF-8
Java
false
false
2,045
java
/** * */ package com.oseasy.cms.modules.cms.service; import java.util.Date; import java.util.List; import org.apache.commons.lang3.time.DateUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.google.common.collect.Lists; import com.oseasy.cms.modules.cms.dao.LinkDao; import com.oseasy.cms.modules.cms.entity.Link; import com.oseasy.com.pcore.common.persistence.Page; import com.oseasy.com.pcore.common.service.CrudService; import com.oseasy.com.rediserver.common.utils.CacheUtils; import com.oseasy.util.common.utils.StringUtil; /** * 链接Service */ @Service @Transactional(readOnly = true) public class LinkService extends CrudService<LinkDao, Link> { @Transactional(readOnly = false) public Page<Link> findPage(Page<Link> page, Link link, boolean isDataScopeFilter) { // 更新过期的权重,间隔为“6”个小时 Date updateExpiredWeightDate = (Date)CacheUtils.get("updateExpiredWeightDateByLink"); if (updateExpiredWeightDate == null || (updateExpiredWeightDate != null && updateExpiredWeightDate.getTime() < new Date().getTime())) { dao.updateExpiredWeight(link); CacheUtils.put("updateExpiredWeightDateByLink", DateUtils.addHours(new Date(), 6)); } link.getSqlMap().put("dsf", dataScopeFilter(link.getCurrentUser(), "o", "u")); return super.findPage(page, link); } @Transactional(readOnly = false) public void delete(Link link, Boolean isRe) { //dao.updateDelFlag(id, isRe!=null&&isRe?Link.DEL_FLAG_NORMAL:Link.DEL_FLAG_DELETE); link.setDelFlag(isRe!=null&&isRe?Link.DEL_FLAG_NORMAL:Link.DEL_FLAG_DELETE); dao.delete(link); } /** * 通过编号获取内容标题 */ public List<Object[]> findByIds(String ids) { List<Object[]> list = Lists.newArrayList(); String[] idss = StringUtil.split(ids,","); if (idss.length>0) { List<Link> l = dao.findByIdIn(idss); for (Link e : l) { list.add(new Object[]{e.getId(),StringUtil.abbr(e.getTitle(),50)}); } } return list; } }
[ "chenhao@os-easy.com" ]
chenhao@os-easy.com
020d66e76e2d9baf80200477db1f3f442c559d7f
ff7493dd215975c799e09854838dd2d38d458b65
/type/src/main/java/io/github/zero88/qwe/sql/type/SyncAudit.java
878680ba7acd3f8e6e3b840118d3323f71fd6a08
[ "Apache-2.0" ]
permissive
play-iot/qwe-sql
6d81266dda235d33dc8195115ffd49db7d4fdf5c
c7f781ee15ca06e7552abe2acd90b4987cc13ae3
refs/heads/main
2023-04-30T06:41:36.655797
2021-02-20T12:17:54
2021-02-20T12:17:54
321,714,744
0
0
Apache-2.0
2021-05-28T06:17:55
2020-12-15T15:49:40
Java
UTF-8
Java
false
false
2,916
java
package io.github.zero88.qwe.sql.type; import java.time.OffsetDateTime; import io.github.zero88.qwe.dto.JsonData; import io.github.zero88.qwe.event.Status; import io.github.zero88.utils.DateTimes; import io.github.zero88.utils.Strings; import io.vertx.core.json.JsonObject; import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.NonNull; import lombok.ToString; @Getter @NoArgsConstructor(access = AccessLevel.PACKAGE) @AllArgsConstructor(access = AccessLevel.PACKAGE) @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) @ToString public final class SyncAudit implements JsonData { private OffsetDateTime lastSuccessTime; private JsonObject lastSuccessMessage; private OffsetDateTime syncedTime; private Status status; private JsonObject data; private String by; public static SyncAudit unknown() { return new SyncAudit(null, null, null, Status.UNDEFINED, new JsonObject().put("error", "Unknown sync audit information"), null); } public static SyncAudit notYetSynced(String message) { return new SyncAudit(null, null, null, Status.INITIAL, new JsonObject().put("message", Strings.fallback(message, "Not yet synced")), null); } public static SyncAudit notYetSynced(@NonNull SyncAudit prevSync, String message) { OffsetDateTime lastSuccess = Status.SUCCESS == prevSync.status ? prevSync.syncedTime : prevSync.lastSuccessTime; JsonObject lastSuccessMsg = Status.SUCCESS == prevSync.status ? prevSync.data : prevSync.lastSuccessMessage; return new SyncAudit(lastSuccess, lastSuccessMsg, null, Status.INITIAL, new JsonObject().put("message", Strings.fallback(message, "Not yet synced")), null); } public static SyncAudit success(@NonNull SyncAudit prevSync, @NonNull JsonObject response, @NonNull String by) { OffsetDateTime lastSuccess = Status.SUCCESS == prevSync.status ? prevSync.syncedTime : prevSync.lastSuccessTime; JsonObject lastSuccessMsg = Status.SUCCESS == prevSync.status ? prevSync.data : prevSync.lastSuccessMessage; return new SyncAudit(lastSuccess, lastSuccessMsg, DateTimes.now(), Status.SUCCESS, response, by); } public static SyncAudit error(@NonNull SyncAudit prevSync, @NonNull JsonObject error, @NonNull String by) { OffsetDateTime lastSuccess = Status.SUCCESS == prevSync.status ? prevSync.syncedTime : prevSync.lastSuccessTime; JsonObject lastSuccessMsg = Status.SUCCESS == prevSync.status ? prevSync.data : prevSync.lastSuccessMessage; return new SyncAudit(lastSuccess, lastSuccessMsg, DateTimes.now(), Status.FAILED, error, by); } }
[ "sontt246@gmail.com" ]
sontt246@gmail.com