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
765759d7421dcd90623fc94aa8dfd43cff2a42af
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
/src/chosun/ciis/se/sal/ds/SE_SAL_2610_LDataSet.java
2d5baf8da30cf675b0c0f3b6d49a7aac8ce5ff5b
[]
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
5,267
java
/*************************************************************************************************** * 파일명 : .java * 기능 : 독자우대-구독신청 * 작성일자 : 2007-05-22 * 작성자 : 김대섭 ***************************************************************************************************/ /*************************************************************************************************** * 수정내역 : * 수정자 : * 수정일자 : * 백업 : ***************************************************************************************************/ package chosun.ciis.se.sal.ds; import java.sql.*; import java.util.*; import somo.framework.db.*; import somo.framework.util.*; import chosun.ciis.se.sal.dm.*; import chosun.ciis.se.sal.rec.*; /** * */ public class SE_SAL_2610_LDataSet extends somo.framework.db.BaseDataSet implements java.io.Serializable{ public ArrayList curlist = new ArrayList(); public String errcode; public String errmsg; public String clos_yn; public String fix_msg; public String fix_dt; public String issu_dt_cnt; public SE_SAL_2610_LDataSet(){} public SE_SAL_2610_LDataSet(String errcode, String errmsg, String clos_yn, String fix_msg, String fix_dt, String issu_dt_cnt){ this.errcode = errcode; this.errmsg = errmsg; this.clos_yn = clos_yn; this.fix_msg = fix_msg; this.fix_dt = fix_dt; this.issu_dt_cnt = issu_dt_cnt; } public void setErrcode(String errcode){ this.errcode = errcode; } public void setErrmsg(String errmsg){ this.errmsg = errmsg; } public void setClos_yn(String clos_yn){ this.clos_yn = clos_yn; } public void setFix_msg(String fix_msg){ this.fix_msg = fix_msg; } public void setFix_dt(String fix_dt){ this.fix_dt = fix_dt; } public void setIssu_dt_cnt(String issu_dt_cnt){ this.issu_dt_cnt = issu_dt_cnt; } public String getErrcode(){ return this.errcode; } public String getErrmsg(){ return this.errmsg; } public String getClos_yn(){ return this.clos_yn; } public String getFix_msg(){ return this.fix_msg; } public String getFix_dt(){ return this.fix_dt; } public String getIssu_dt_cnt(){ return this.issu_dt_cnt; } public void getValues(CallableStatement cstmt) throws SQLException{ this.errcode = Util.checkString(cstmt.getString(1)); this.errmsg = Util.checkString(cstmt.getString(2)); if(!"".equals(this.errcode)){ return; } ResultSet rset0 = (ResultSet) cstmt.getObject(9); while(rset0.next()){ SE_SAL_2610_LCURLISTRecord rec = new SE_SAL_2610_LCURLISTRecord(); rec.yymm = Util.checkString(rset0.getString("yymm")); rec.dept_nm = Util.checkString(rset0.getString("dept_nm")); rec.part_nm = Util.checkString(rset0.getString("part_nm")); rec.area_nm = Util.checkString(rset0.getString("area_nm")); rec.area_cd = Util.checkString(rset0.getString("area_cd")); rec.bo_cd = Util.checkString(rset0.getString("bo_cd")); rec.bo_seq = Util.checkString(rset0.getString("bo_seq")); rec.bo_nm = Util.checkString(rset0.getString("bo_nm")); rec.bo_head_nm = Util.checkString(rset0.getString("bo_head_nm")); rec.sum = Util.checkString(rset0.getString("sum")); rec.bal = Util.checkString(rset0.getString("bal")); this.curlist.add(rec); } this.clos_yn = Util.checkString(cstmt.getString(10)); this.fix_msg = Util.checkString(cstmt.getString(11)); this.fix_dt = Util.checkString(cstmt.getString(12)); this.issu_dt_cnt = Util.checkString(cstmt.getString(13)); } }/*---------------------------------------------------------------------------------------------------- Web Tier에서 DataSet 객체 관련 코드 작성시 사용하십시오. <% SE_SAL_2610_LDataSet ds = (SE_SAL_2610_LDataSet)request.getAttribute("ds"); %> Web Tier에서 Record 객체 관련 코드 작성시 사용하십시오. <% for(int i=0; i<ds.curlist.size(); i++){ SE_SAL_2610_LCURLISTRecord curlistRec = (SE_SAL_2610_LCURLISTRecord)ds.curlist.get(i);%> HTML 코드들.... <%}%> ----------------------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------------------- Web Tier에서 DataSet 객체의 <%= %> 작성시 사용하십시오. <%= ds.getErrcode()%> <%= ds.getErrmsg()%> <%= ds.getCurlist()%> <%= ds.getClos_yn()%> <%= ds.getFix_msg()%> <%= ds.getFix_dt()%> <%= ds.getIssu_dt_cnt()%> ----------------------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------------------- Web Tier에서 Record 객체의 <%= %> 작성시 사용하십시오. <%= curlistRec.yymm%> <%= curlistRec.dept_nm%> <%= curlistRec.part_nm%> <%= curlistRec.area_nm%> <%= curlistRec.area_cd%> <%= curlistRec.bo_cd%> <%= curlistRec.bo_seq%> <%= curlistRec.bo_nm%> <%= curlistRec.bo_head_nm%> <%= curlistRec.sum%> <%= curlistRec.bal%> ----------------------------------------------------------------------------------------------------*/ /* 작성시간 : Wed Aug 01 15:19:08 KST 2012 */
[ "DLCOM000@172.16.30.11" ]
DLCOM000@172.16.30.11
0f94e0a427a0fb51fd52c6db2b79e51e16494359
0721305fd9b1c643a7687b6382dccc56a82a2dad
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/p214e/p234h/p235e/C7625j.java
ea86176a9796f786e0d871c35b04fe1a93b9221d
[]
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
6,454
java
package p214e.p234h.p235e; import android.content.Context; import android.content.res.Resources; import android.graphics.Typeface; import android.os.CancellationSignal; import android.util.Log; import androidx.core.content.res.FontResourcesParserCompat.C0546a; import androidx.core.content.res.FontResourcesParserCompat.C0547b; import androidx.core.provider.C0575b.C0581f; import java.io.Closeable; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Field; import java.util.concurrent.ConcurrentHashMap; /* renamed from: e.h.e.j */ class C7625j { /* renamed from: a */ private ConcurrentHashMap<Long, C0546a> f19209a = new ConcurrentHashMap<>(); /* renamed from: e.h.e.j$a */ class C7626a implements C7628c<C0581f> { C7626a(C7625j jVar) { } /* renamed from: a */ public int mo19745b(C0581f fVar) { return fVar.mo3199d(); } /* renamed from: b */ public boolean mo19744a(C0581f fVar) { return fVar.mo3200e(); } } /* renamed from: e.h.e.j$b */ class C7627b implements C7628c<C0547b> { C7627b(C7625j jVar) { } /* renamed from: a */ public int mo19745b(C0547b bVar) { return bVar.mo3087e(); } /* renamed from: b */ public boolean mo19744a(C0547b bVar) { return bVar.mo3088f(); } } /* renamed from: e.h.e.j$c */ private interface C7628c<T> { /* renamed from: a */ boolean mo19744a(T t); /* renamed from: b */ int mo19745b(T t); } C7625j() { } /* renamed from: a */ private static <T> T m18556a(T[] tArr, int i, C7628c<T> cVar) { int i2 = (i & 1) == 0 ? 400 : 700; boolean z = (i & 2) != 0; T t = null; int i3 = Integer.MAX_VALUE; for (T t2 : tArr) { int abs = (Math.abs(cVar.mo19745b(t2) - i2) * 2) + (cVar.mo19744a(t2) == z ? 0 : 1); if (t == null || i3 > abs) { t = t2; i3 = abs; } } return t; } /* renamed from: b */ private static long m18558b(Typeface typeface) { String str = "Could not retrieve font from family."; String str2 = "TypefaceCompatBaseImpl"; if (typeface == null) { return 0; } try { Field declaredField = Typeface.class.getDeclaredField("native_instance"); declaredField.setAccessible(true); return ((Number) declaredField.get(typeface)).longValue(); } catch (NoSuchFieldException e) { Log.e(str2, str, e); return 0; } catch (IllegalAccessException e2) { Log.e(str2, str, e2); return 0; } } /* access modifiers changed from: protected */ /* renamed from: a */ public C0581f mo19741a(C0581f[] fVarArr, int i) { return (C0581f) m18556a(fVarArr, i, new C7626a(this)); } /* access modifiers changed from: protected */ /* renamed from: a */ public Typeface mo19740a(Context context, InputStream inputStream) { File a = C7629k.m18575a(context); if (a == null) { return null; } try { if (!C7629k.m18581a(a, inputStream)) { return null; } Typeface createFromFile = Typeface.createFromFile(a.getPath()); a.delete(); return createFromFile; } catch (RuntimeException unused) { return null; } finally { a.delete(); } } /* renamed from: a */ public Typeface mo19729a(Context context, CancellationSignal cancellationSignal, C0581f[] fVarArr, int i) { InputStream inputStream; InputStream inputStream2 = null; if (fVarArr.length < 1) { return null; } try { inputStream = context.getContentResolver().openInputStream(mo19741a(fVarArr, i).mo3198c()); try { Typeface a = mo19740a(context, inputStream); C7629k.m18579a((Closeable) inputStream); return a; } catch (IOException unused) { C7629k.m18579a((Closeable) inputStream); return null; } catch (Throwable th) { th = th; inputStream2 = inputStream; C7629k.m18579a((Closeable) inputStream2); throw th; } } catch (IOException unused2) { inputStream = null; C7629k.m18579a((Closeable) inputStream); return null; } catch (Throwable th2) { th = th2; C7629k.m18579a((Closeable) inputStream2); throw th; } } /* renamed from: a */ private C0547b m18555a(C0546a aVar, int i) { return (C0547b) m18556a(aVar.mo3082a(), i, new C7627b(this)); } /* renamed from: a */ public Typeface mo19730a(Context context, C0546a aVar, Resources resources, int i) { C0547b a = m18555a(aVar, i); if (a == null) { return null; } Typeface a2 = C7619d.m18511a(context, resources, a.mo3084b(), a.mo3083a(), i); m18557a(a2, aVar); return a2; } /* renamed from: a */ public Typeface mo19731a(Context context, Resources resources, int i, String str, int i2) { File a = C7629k.m18575a(context); if (a == null) { return null; } try { if (!C7629k.m18580a(a, resources, i)) { return null; } Typeface createFromFile = Typeface.createFromFile(a.getPath()); a.delete(); return createFromFile; } catch (RuntimeException unused) { return null; } finally { a.delete(); } } /* access modifiers changed from: 0000 */ /* renamed from: a */ public C0546a mo19742a(Typeface typeface) { long b = m18558b(typeface); if (b == 0) { return null; } return (C0546a) this.f19209a.get(Long.valueOf(b)); } /* renamed from: a */ private void m18557a(Typeface typeface, C0546a aVar) { long b = m18558b(typeface); if (b != 0) { this.f19209a.put(Long.valueOf(b), aVar); } } }
[ "developer@appzoc.com" ]
developer@appzoc.com
805d7b28f7c7281107de07ea72e7fb87f4d1d9be
c8eea055d28a8db91f17dacce95a63a25409a875
/liferay/liferay/work/com.liferay.asset.taglib-3.0.12/org/apache/jsp/asset_005fcategories_005fselector/init_jsp.java
5a88258d65156537d6f3d1875c6ff212a1b8eadc
[ "MIT" ]
permissive
victorlaerte/liferay-forms-demo
0c539560800c4832fd685b6c9181e1343afa6eae
9d3010ce7ea9b1ff9e4c3d46aaf481f0945744a7
refs/heads/master
2020-04-05T13:56:15.042923
2018-11-09T19:28:41
2018-11-09T19:28:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,823
java
package org.apache.jsp.asset_005fcategories_005fselector; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import com.liferay.asset.kernel.model.AssetVocabulary; import com.liferay.petra.string.StringPool; import com.liferay.portal.kernel.model.Group; import com.liferay.portal.kernel.service.GroupLocalServiceUtil; import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.HtmlUtil; import com.liferay.portal.kernel.util.ListUtil; import com.liferay.portal.kernel.util.PortalUtil; import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil; import com.liferay.portal.kernel.util.Validator; import java.util.List; import javax.portlet.PortletURL; public final class init_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List<String> _jspx_dependants; private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_liferay$1theme_defineObjects_nobody; private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; public java.util.List<String> getDependants() { return _jspx_dependants; } public void _jspInit() { _jspx_tagPool_liferay$1theme_defineObjects_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); } public void _jspDestroy() { _jspx_tagPool_liferay$1theme_defineObjects_nobody.release(); } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); // liferay-theme:defineObjects com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay$1theme_defineObjects_0 = (com.liferay.taglib.theme.DefineObjectsTag) _jspx_tagPool_liferay$1theme_defineObjects_nobody.get(com.liferay.taglib.theme.DefineObjectsTag.class); _jspx_th_liferay$1theme_defineObjects_0.setPageContext(_jspx_page_context); _jspx_th_liferay$1theme_defineObjects_0.setParent(null); int _jspx_eval_liferay$1theme_defineObjects_0 = _jspx_th_liferay$1theme_defineObjects_0.doStartTag(); if (_jspx_th_liferay$1theme_defineObjects_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _jspx_tagPool_liferay$1theme_defineObjects_nobody.reuse(_jspx_th_liferay$1theme_defineObjects_0); return; } _jspx_tagPool_liferay$1theme_defineObjects_nobody.reuse(_jspx_th_liferay$1theme_defineObjects_0); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "paulo.cruz@liferay.com" ]
paulo.cruz@liferay.com
58f6c7d41c3b92e225b24b1ed3951c3569a4999d
556c3751f0b608a7d34f0cc9e1be7f6c84660c9c
/modules/lpc/source/java/runtime/us/terebi/util/listener/ListenerManager.java
4357f8a5803854f45045b7113804d406420b679d
[ "Apache-2.0" ]
permissive
tvernum/terebi
b187dc70a412733a81f31dfcccdb4c2c75b0bb5a
1a4e77a16f50040f173dd6b69d9b919f7627eb4d
refs/heads/master
2021-01-02T09:32:50.701832
2019-08-21T01:58:27
2019-08-21T01:58:27
7,537,314
2
0
null
null
null
null
UTF-8
Java
false
false
1,810
java
/* ------------------------------------------------------------------------ * Copyright 2010 Tim Vernum * ------------------------------------------------------------------------ * 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 us.terebi.util.listener; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.HashSet; import java.util.Set; /** * */ public class ListenerManager<T> implements InvocationHandler { private final Set<T> _listeners; private final T _proxy; public ListenerManager(Class<T> type) { _listeners = new HashSet<T>(); _proxy = type.cast(Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, this)); } public T dispatch() { return _proxy; } public void addListener(T listener) { _listeners.add(listener); } public void removeListener(T listener) { _listeners.remove(listener); } public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { for (T listener : _listeners) { method.invoke(listener, args); } return null; } }
[ "tim@adjective.org" ]
tim@adjective.org
5a870840324be9bf7a3d368f6e66784506b40bca
48e013de4833035fb34b30b02f0903f4ce4ceed7
/aura-impl/src/main/java/org/auraframework/impl/design/DesignLayoutDefImpl.java
940b645bb9d8fc8449d8ee5dc848655b3c8c8f47
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-mx4j", "W3C", "CC-BY-4.0", "SAX-PD", "MPL-2.0", "WTFPL", "CDDL-1.0", "MIT" ]
permissive
nagyist/forcedotcom-aura
064609732afa4bc7551eec9972218dc9f1a30fd8
779ffdcc715565d3b961becd28aa163d289557aa
refs/heads/master
2022-12-21T13:31:26.447628
2022-02-12T08:35:12
2022-02-12T08:35:12
27,166,886
0
0
Apache-2.0
2022-12-16T22:49:11
2014-11-26T08:29:51
JavaScript
UTF-8
Java
false
false
2,805
java
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.auraframework.impl.design; import com.google.common.collect.Sets; import org.auraframework.def.design.DesignLayoutDef; import org.auraframework.def.design.DesignSectionDef; import org.auraframework.impl.system.BaseXmlElementImpl; import org.auraframework.impl.util.AuraUtil; import org.auraframework.throwable.quickfix.InvalidDefinitionException; import org.auraframework.throwable.quickfix.QuickFixException; import java.util.LinkedHashSet; import java.util.Set; public class DesignLayoutDefImpl extends BaseXmlElementImpl implements DesignLayoutDef { private static final long serialVersionUID = -6058393181603727999L; private final Set<DesignSectionDef> sections; private final String name; protected DesignLayoutDefImpl(Builder builder) { super(builder); sections = builder.sections; name = builder.name; } @Override public Set<DesignSectionDef> getSections() { return AuraUtil.immutableSet(sections); } @Override public String getName() { return name; } @Override public void validateDefinition() throws QuickFixException { super.validateDefinition(); for (DesignSectionDef section : sections) { section.validateDefinition(); } } public static class Builder extends BaseBuilderImpl { private LinkedHashSet<DesignSectionDef> sections = Sets.newLinkedHashSet(); //Default name for a layout is an empty string private String name = ""; public Builder() { super(DesignLayoutDef.class); } public void addSection(DesignSectionDef section) { if (sections.contains(section)) { setParseError(new InvalidDefinitionException( String.format("Section with name <%s> already defined", section.getName()), getLocation())); } else { sections.add(section); } } public void setName(String name) { this.name = name; } public DesignLayoutDefImpl build() throws QuickFixException { return new DesignLayoutDefImpl(this); } } }
[ "byao@salesforce.com" ]
byao@salesforce.com
46a03b87f01082c728d9de6127c5e39cc1f75a51
0b6ad04039d90915e47a6724dce1dd9dd9603be4
/minebd/src/main/java/io/minebox/nbd/SystemdUtil.java
67c55caa18ef62136cae9f3ed61022c2ebbfdd07
[ "Apache-2.0" ]
permissive
MineboxOS/tools
41689e4efc74e1b177834d1af2a1cb6d7ae2be76
1bcfdc5dc7e5897230d672474e8aa1b6a761fb58
refs/heads/master
2021-03-22T03:57:04.802318
2017-10-27T01:53:41
2017-10-27T01:53:41
107,527,138
4
0
null
null
null
null
UTF-8
Java
false
false
1,709
java
/* * Copyright 2017 Minebox IT Services GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * Various tools around backups, mostly to get info about them. */ package io.minebox.nbd; import info.faljse.SDNotify.SDNotify; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class SystemdUtil { private static final boolean hasEnv; private final static Logger LOGGER = LoggerFactory.getLogger(SystemdUtil.class); static { final String notifySocket = System.getenv().get("NOTIFY_SOCKET"); hasEnv = !(notifySocket == null || notifySocket.length() == 0); if (!hasEnv) { LOGGER.info("we appear to run outside systemd"); } else { LOGGER.info("we appear to run inside systemd"); } } void sendStopping() { LOGGER.info("sendStopping"); if (hasEnv) { SDNotify.sendStopping(); } } void sendError(int errno) { LOGGER.info("sendErrno {}", errno); if (hasEnv) { SDNotify.sendErrno(errno); } } void sendNotify() { LOGGER.info("sendNotify"); if (hasEnv) { SDNotify.sendNotify(); } } }
[ "andreas@petersson.at" ]
andreas@petersson.at
1c2826d8cae209edf31dd354036cd662cbd2931a
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/5/5_3a2a8f5e0ac5307a7a1a669dc11e4a8adb92c9fd/PDFViewerPanel/5_3a2a8f5e0ac5307a7a1a669dc11e4a8adb92c9fd_PDFViewerPanel_s.java
3b86954927d0564e08465ecf95abad177c64e58f
[]
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,053
java
/* * PDFViewerPanel.java * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. * */ package org.rstudio.studio.client.pdfviewer.ui; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.BodyElement; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Style; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; import org.rstudio.core.client.dom.DomUtils; import org.rstudio.core.client.dom.WindowEx; import org.rstudio.studio.client.pdfviewer.PDFViewerPresenter; import org.rstudio.studio.client.pdfviewer.events.InitCompleteEvent; import org.rstudio.studio.client.pdfviewer.pdfjs.PDFView; import org.rstudio.studio.client.pdfviewer.pdfjs.PdfJs; public class PDFViewerPanel extends Composite implements PDFViewerPresenter.Display { interface Binder extends UiBinder<Widget, PDFViewerPanel> {} @Inject public PDFViewerPanel() { initWidget(GWT.<Binder>create(Binder.class).createAndBindUi(this)); Document.get().getBody().getStyle().setMarginLeft(200, Style.Unit.PX); } @Override public PDFViewerToolbarDisplay getToolbarDisplay() { return toolbar_; } @Override public void toggleThumbnails() { BodyElement body = Document.get().getBody(); if (body.getClassName().contains("nosidebar")) body.removeClassName("nosidebar"); else body.addClassName("nosidebar"); } @Override public void updateSelectedPage(int pageNumber) { if (selectedPageLabel_ != null) selectedPageLabel_.removeAttribute("selected"); selectedPageLabel_ = Document.get().getElementById("thumbnailLabel" + pageNumber); if (selectedPageLabel_ != null) { selectedPageLabel_.setAttribute("selected", "selected"); Element scroller = Document.get().getElementById("sidebarScrollView"); Element page = Document.get().getElementById("thumbnailContainer" + pageNumber); DomUtils.ensureVisibleVert(scroller, page, 30); } } @Override protected void onLoad() { super.onLoad(); if (!once_) { once_ = true; PdfJs.load(new Command() { @Override public void execute() { loaded_ = true; if (initialUrl_ != null) open(initialUrl_); fireEvent(new InitCompleteEvent()); } }); } } @Override public void setURL(String url) { PDFView.setLoadingVisible(true); if (loaded_) open(url); else initialUrl_ = url; } @Override public HandlerRegistration addInitCompleteHandler( InitCompleteEvent.Handler handler) { return addHandler(handler, InitCompleteEvent.TYPE); } @Override public void closeWindow() { WindowEx.get().close(); } private native void open(String url) /*-{ $wnd.PDFView.open(url, 0); }-*/; private boolean loaded_; private String initialUrl_; private boolean once_; @UiField PDFViewerToolbar toolbar_; private Element selectedPageLabel_; }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
76bafdf7a03d7ffd5653c8cd33fcef5038a8a7e8
acc82eb4d161af40b4d70a51b18c5e4604790d41
/src/main/java/org/lastaflute/di/core/factory/dixml/taghandler/DestroyMethodTagHandler.java
c5556e5f987bbd9596f5c3e49e2ffd2ef5a5e40a
[ "Apache-2.0" ]
permissive
lastaflute/lasta-di
8f3735feabb55be7e76e361b185940961def158d
eb3f835bcb4cde21179e338ef47c6427135fd2ee
refs/heads/develop
2022-05-27T16:26:16.034639
2022-05-07T10:01:51
2022-05-07T10:01:51
34,904,614
8
6
Apache-2.0
2022-05-07T10:06:12
2015-05-01T13:42:14
Java
UTF-8
Java
false
false
1,771
java
/* * Copyright 2015-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.lastaflute.di.core.factory.dixml.taghandler; import org.lastaflute.di.core.ComponentDef; import org.lastaflute.di.core.meta.DestroyMethodDef; import org.lastaflute.di.core.meta.impl.DestroyMethodDefImpl; import org.lastaflute.di.helper.xml.TagHandlerContext; import org.xml.sax.Attributes; /** * @author modified by jflute (originated in Seasar) */ public class DestroyMethodTagHandler extends MethodTagHandler { private static final long serialVersionUID = 1L; @Override public void start(TagHandlerContext context, Attributes attributes) { String name = attributes.getValue("name"); context.push(createDestroyMethodDef(name)); } @Override public void end(TagHandlerContext context, String body) { DestroyMethodDef methodDef = (DestroyMethodDef) context.pop(); processExpression(methodDef, body, "preDestroy", context); ComponentDef componentDef = (ComponentDef) context.peek(); componentDef.addDestroyMethodDef(methodDef); } protected DestroyMethodDefImpl createDestroyMethodDef(String name) { return new DestroyMethodDefImpl(name); } }
[ "dbflute@gmail.com" ]
dbflute@gmail.com
fd158ad3950e590a431a305b1830c0bc15eb63fb
e89d45f9e6831afc054468cc7a6ec675867cd3d7
/src/main/java/com/microsoft/graph/requests/extensions/IAccessPackageReferenceRequestBuilder.java
42d129b22d993d421c21f24e0665d1b268d91488
[ "MIT" ]
permissive
isabella232/msgraph-beta-sdk-java
67d3b9251317f04a465042d273fe533ef1ace13e
7d2b929d5c99c01ec1af1a251f4bf5876ca95ed8
refs/heads/dev
2023-03-12T05:44:24.349020
2020-11-19T15:51:17
2020-11-19T15:51:17
318,158,544
0
0
MIT
2021-02-23T20:48:09
2020-12-03T10:37:46
null
UTF-8
Java
false
false
2,040
java
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.AccessPackage; import com.microsoft.graph.requests.extensions.IAccessPackageAssignmentPolicyCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAccessPackageAssignmentPolicyRequestBuilder; import com.microsoft.graph.requests.extensions.IAccessPackageResourceRoleScopeCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAccessPackageResourceRoleScopeRequestBuilder; import com.microsoft.graph.requests.extensions.IAccessPackageCatalogRequestBuilder; import java.util.Arrays; import java.util.EnumSet; import com.microsoft.graph.models.extensions.AccessPackage; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** * The interface for the Access Package Reference Request Builder. */ public interface IAccessPackageReferenceRequestBuilder extends IRequestBuilder { /** * Creates the request * * @param requestOptions the options for this request * @return the IAccessPackageReferenceRequest instance */ IAccessPackageReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); /** * Creates the request with specific options instead of the existing options * * @param requestOptions the options for this request * @return the IAccessPackageReferenceRequest instance */ IAccessPackageReferenceRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions); }
[ "GraphTooling@service.microsoft.com" ]
GraphTooling@service.microsoft.com
e6e3a97549cd6e1f33875e422e48fed7747d992b
ddcdede5b660fb7803da72e7f166f1683d0d6c6b
/src/test/java/hu/paninform/startmedsol/service/dto/SpecialistsAdviceDTOTest.java
b17293f2ff1522c3b2224edd9ffd002440d59218
[]
no_license
pmarkotan/startmedsol-prototype
62c7cc9c151166e2489531e02f5fa0430be53074
90996b4cd308928f8e91b5d9538d648e717f9473
refs/heads/master
2022-12-16T06:22:23.798231
2020-09-18T07:47:46
2020-09-18T07:47:46
292,579,811
0
0
null
2020-09-18T07:47:47
2020-09-03T13:34:49
Java
UTF-8
Java
false
false
1,035
java
package hu.paninform.startmedsol.service.dto; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import hu.paninform.startmedsol.web.rest.TestUtil; public class SpecialistsAdviceDTOTest { @Test public void dtoEqualsVerifier() throws Exception { TestUtil.equalsVerifier(SpecialistsAdviceDTO.class); SpecialistsAdviceDTO specialistsAdviceDTO1 = new SpecialistsAdviceDTO(); specialistsAdviceDTO1.setId(1L); SpecialistsAdviceDTO specialistsAdviceDTO2 = new SpecialistsAdviceDTO(); assertThat(specialistsAdviceDTO1).isNotEqualTo(specialistsAdviceDTO2); specialistsAdviceDTO2.setId(specialistsAdviceDTO1.getId()); assertThat(specialistsAdviceDTO1).isEqualTo(specialistsAdviceDTO2); specialistsAdviceDTO2.setId(2L); assertThat(specialistsAdviceDTO1).isNotEqualTo(specialistsAdviceDTO2); specialistsAdviceDTO1.setId(null); assertThat(specialistsAdviceDTO1).isNotEqualTo(specialistsAdviceDTO2); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
e07c90ef483cbfddad94f0d6868b451dd5fd5ebe
7a2c91813117a8d949571521510895ee53daad49
/src/main/java/com/alipay/api/response/AlipayInsSceneProductSignConfirmResponse.java
ba5546e0c0136054aa61b1461e19cc9eeaacacd0
[ "Apache-2.0" ]
permissive
dut3062796s/alipay-sdk-java-all
eb5afb5b570fb0deb40d8c960b85a01d13506568
559180f4c370f7fcfef67a1c559768d11475c745
refs/heads/master
2020-07-03T21:00:06.124387
2019-06-23T01:13:43
2019-06-23T01:13:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
686
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.ins.scene.product.sign.confirm response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class AlipayInsSceneProductSignConfirmResponse extends AlipayResponse { private static final long serialVersionUID = 5231616599226568873L; /** * 支付宝代扣协议ID */ @ApiField("agreement_no") private String agreementNo; public void setAgreementNo(String agreementNo) { this.agreementNo = agreementNo; } public String getAgreementNo( ) { return this.agreementNo; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
fe3d40600e0bdfa6db02921e427c0d62be8ac778
9208ba403c8902b1374444a895ef2438a029ed5c
/sources/javax/servlet/MultipartConfigElement.java
9459259760187e96d713c5f04e193b8a4ccd48de
[]
no_license
MewX/kantv-decompiled-v3.1.2
3e68b7046cebd8810e4f852601b1ee6a60d050a8
d70dfaedf66cdde267d99ad22d0089505a355aa1
refs/heads/main
2023-02-27T05:32:32.517948
2021-02-02T13:38:05
2021-02-02T13:44:31
335,299,807
0
0
null
null
null
null
UTF-8
Java
false
false
1,447
java
package javax.servlet; import javax.servlet.annotation.MultipartConfig; public class MultipartConfigElement { private int fileSizeThreshold; private String location; private long maxFileSize; private long maxRequestSize; public MultipartConfigElement(String str) { if (str == null) { this.location = ""; } else { this.location = str; } this.maxFileSize = -1; this.maxRequestSize = -1; this.fileSizeThreshold = 0; } public MultipartConfigElement(String str, long j, long j2, int i) { if (str == null) { this.location = ""; } else { this.location = str; } this.maxFileSize = j; this.maxRequestSize = j2; this.fileSizeThreshold = i; } public MultipartConfigElement(MultipartConfig multipartConfig) { this.location = multipartConfig.location(); this.fileSizeThreshold = multipartConfig.fileSizeThreshold(); this.maxFileSize = multipartConfig.maxFileSize(); this.maxRequestSize = multipartConfig.maxRequestSize(); } public String getLocation() { return this.location; } public long getMaxFileSize() { return this.maxFileSize; } public long getMaxRequestSize() { return this.maxRequestSize; } public int getFileSizeThreshold() { return this.fileSizeThreshold; } }
[ "xiayuanzhong@gmail.com" ]
xiayuanzhong@gmail.com
941a102217acc466cfd51f6ead36dbb9b09c01f4
bf07fbce8898cfbe273afc0f96190b85da54a499
/slipstream/src/main/java/slipstream/replicator/extractor/mysql/StopLogEvent.java
d6980774b39a8a619ae652757a18c2ed506ad83b
[]
no_license
sand-stone/dataswitch
700426898b54df450c45063486eed1bd634acd97
d161e66fca2fa4b1ebecf08b94f0e454ac635ebc
refs/heads/master
2020-05-22T02:45:52.161556
2017-02-25T02:23:47
2017-02-25T02:23:47
62,422,612
0
1
null
null
null
null
UTF-8
Java
false
false
1,369
java
/** * VMware Continuent Tungsten Replicator * Copyright (C) 2015 VMware, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Initial developer(s): Seppo Jaakola * Contributor(s): Stephane Giron */ package slipstream.replicator.extractor.mysql; import slipstream.replicator.ReplicatorException; /** * @author <a href="mailto:seppo.jaakola@continuent.com">Seppo Jaakola</a> * @author <a href="mailto:stephane.giron@continuent.com">Stephane Giron</a> * @version 1.0 */ public class StopLogEvent extends LogEvent { public StopLogEvent(byte[] buffer, int eventLength, FormatDescriptionLogEvent descriptionEvent, String currentPosition) throws ReplicatorException { super(buffer, descriptionEvent, MysqlBinlog.STOP_EVENT); this.startPosition = currentPosition; } }
[ "sand.m.stone@gmail.com" ]
sand.m.stone@gmail.com
d62f93db29c3a4248ab5b92b6dfcfd58e4e8d56c
6a8ad5fcf0a3face6d2e7be0892354f4a42d095a
/src/main/java/hu/akarnokd/rxjava/EmitterTest.java
99de17c24acddfdb51af43e7c0588ab0d2d52e2e
[ "Apache-2.0" ]
permissive
akarnokd/akarnokd-misc
3b5b80aa8f90c2607ee53413c9d49480b7d386c6
29d653f31b9383f9515366dfb336880825d42354
refs/heads/master
2023-08-25T22:23:22.636674
2023-08-24T05:05:35
2023-08-24T05:05:35
44,962,046
58
17
Apache-2.0
2023-09-04T04:31:02
2015-10-26T10:41:21
Java
UTF-8
Java
false
false
876
java
package hu.akarnokd.rxjava; import rx.*; import rx.schedulers.Schedulers; public final class EmitterTest { private EmitterTest() { } public static void main(String[] args) { Observable<Integer> obs = Observable.create(emitter -> { for (int i = 1; i < 1000; i++) { if (i % 5 == 0) { sleep(300L); } emitter.onNext(i); } emitter.onCompleted(); }, Emitter.BackpressureMode.LATEST); obs.subscribeOn(Schedulers.computation()) .observeOn(Schedulers.computation()) .toBlocking() .subscribe(value -> System.out.println("Received " + value)); // Why does this get stuck at "Received 128" // sleep(10000L); } private static void sleep(long duration) { try { Thread.sleep(duration); } catch (InterruptedException e) { throw new RuntimeException(e); } } }
[ "akarnokd@gmail.com" ]
akarnokd@gmail.com
da83d708df659d8d5e03405b119ad9572515fd54
40421f70a7ffb3ce582cf8cd5691078b9f9e85ff
/src/test/resources/relationships/testcase/src/main/java/mx/infotec/dads/archetype/service/MailService.java
ad6ff84992898b9ad0532264de8f6d280efe2881
[]
no_license
kukulkan-project/kukulkan-generator-angularjs
2ff2ac1cbcf7cc1f8884f45d2c702ac8e9a74ebb
3fd83e0b4bb00a96be67189898bb8c7521c25c58
refs/heads/master
2021-05-05T20:30:17.410846
2019-01-07T19:53:38
2019-01-07T19:53:38
115,369,869
1
1
null
null
null
null
UTF-8
Java
false
false
3,897
java
package mx.infotec.dads.archetype.service; import mx.infotec.dads.archetype.domain.User; import io.github.jhipster.config.JHipsterProperties; import org.apache.commons.lang3.CharEncoding; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.MessageSource; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.mail.javamail.MimeMessageHelper; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import org.thymeleaf.context.Context; import org.thymeleaf.spring4.SpringTemplateEngine; import javax.mail.internet.MimeMessage; import java.util.Locale; /** * Service for sending emails. * <p> * We use the @Async annotation to send emails asynchronously. */ @Service public class MailService { private final Logger log = LoggerFactory.getLogger(MailService.class); private static final String USER = "user"; private static final String BASE_URL = "baseUrl"; private final JHipsterProperties jHipsterProperties; private final JavaMailSender javaMailSender; private final MessageSource messageSource; private final SpringTemplateEngine templateEngine; public MailService(JHipsterProperties jHipsterProperties, JavaMailSender javaMailSender, MessageSource messageSource, SpringTemplateEngine templateEngine) { this.jHipsterProperties = jHipsterProperties; this.javaMailSender = javaMailSender; this.messageSource = messageSource; this.templateEngine = templateEngine; } @Async public void sendEmail(String to, String subject, String content, boolean isMultipart, boolean isHtml) { log.debug("Send email[multipart '{}' and html '{}'] to '{}' with subject '{}' and content={}", isMultipart, isHtml, to, subject, content); // Prepare message using a Spring helper MimeMessage mimeMessage = javaMailSender.createMimeMessage(); try { MimeMessageHelper message = new MimeMessageHelper(mimeMessage, isMultipart, CharEncoding.UTF_8); message.setTo(to); message.setFrom(jHipsterProperties.getMail().getFrom()); message.setSubject(subject); message.setText(content, isHtml); javaMailSender.send(mimeMessage); log.debug("Sent email to User '{}'", to); } catch (Exception e) { if (log.isDebugEnabled()) { log.warn("Email could not be sent to user '{}'", to, e); } else { log.warn("Email could not be sent to user '{}': {}", to, e.getMessage()); } } } @Async public void sendEmailFromTemplate(User user, String templateName, String titleKey) { Locale locale = Locale.forLanguageTag(user.getLangKey()); Context context = new Context(locale); context.setVariable(USER, user); context.setVariable(BASE_URL, jHipsterProperties.getMail().getBaseUrl()); String content = templateEngine.process(templateName, context); String subject = messageSource.getMessage(titleKey, null, locale); sendEmail(user.getEmail(), subject, content, false, true); } @Async public void sendActivationEmail(User user) { log.debug("Sending activation email to '{}'", user.getEmail()); sendEmailFromTemplate(user, "activationEmail", "email.activation.title"); } @Async public void sendCreationEmail(User user) { log.debug("Sending creation email to '{}'", user.getEmail()); sendEmailFromTemplate(user, "creationEmail", "email.activation.title"); } @Async public void sendPasswordResetMail(User user) { log.debug("Sending password reset email to '{}'", user.getEmail()); sendEmailFromTemplate(user, "passwordResetEmail", "email.reset.title"); } }
[ "robertovillarejo@outlook.com" ]
robertovillarejo@outlook.com
8c5a26f141e5c63119c73e9a242bb0b1ba1618ba
d3f921b9e488b1d7e2fa86d01a2e6855219b1d05
/fdv.authentication/src/main/java/de/gematik/ti/epa/fdv/authentication/exceptions/AuthenticateException.java
840d525335f4ffffa5804e2767d803aec40667a6
[ "Apache-2.0" ]
permissive
gematik/ref-ePA-FdV-Modul
d50e244d781702b95a9a31dc4efee09765546d79
2c6aba13f01c4fb959424342a5fa8ce1660ffad4
refs/heads/master
2022-01-19T20:31:23.703274
2022-01-07T07:24:03
2022-01-07T07:24:03
239,501,237
2
1
null
null
null
null
UTF-8
Java
false
false
421
java
package de.gematik.ti.epa.fdv.authentication.exceptions; /** * Special exception on handling with authentication * */ public class AuthenticateException extends RuntimeException { private static final long serialVersionUID = -6852755085833726801L; public AuthenticateException(final String error) { super(error); } public AuthenticateException(final Exception e) { super(e); } }
[ "referenzimplementierung@gematik.de" ]
referenzimplementierung@gematik.de
e3d99c78c19ff1ff1d49eaa4ae2ef061297c004d
cca87c4ade972a682c9bf0663ffdf21232c9b857
/com/tencent/mm/pluginsdk/wallet/g.java
eafd1f0259a99ff620de0631f63362ff3285fefd
[]
no_license
ZoranLi/wechat_reversing
b246d43f7c2d7beb00a339e2f825fcb127e0d1a1
36b10ef49d2c75d69e3c8fdd5b1ea3baa2bba49a
refs/heads/master
2021-07-05T01:17:20.533427
2017-09-25T09:07:33
2017-09-25T09:07:33
104,726,592
12
1
null
null
null
null
UTF-8
Java
false
false
284
java
package com.tencent.mm.pluginsdk.wallet; import android.content.Context; import com.tencent.mm.y.k; public interface g { void a(Context context, a aVar, String str); void a(a aVar, String str, int i); void clear(); boolean d(int i, int i2, String str, k kVar); }
[ "lizhangliao@xiaohongchun.com" ]
lizhangliao@xiaohongchun.com
03c1b1824db46f80579d02867a7ed1ccd3489d20
763eb544482870fc2bfea59cd87ceebbc3600a39
/src/main/java/cn/amos/boot/exception/UserException.java
c47ed4baf00d78be423150727b0e84c60c7ace18
[]
no_license
apple006/boot-single
0282ead0ffada12d8d4bfa569983c9a3e6766121
5f83e8de6a6c947e9f717253d88a42502b95d479
refs/heads/master
2021-05-08T14:14:21.434037
2018-01-23T13:53:28
2018-01-23T13:53:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
417
java
package cn.amos.boot.exception; /** * PROJECT: first * DATE: 2017/12/31 * * @author DaoyuanWang */ public class UserException extends RuntimeException { private static final long serialVersionUID = -1038130369512449415L; /** * 错误信息 */ private String msg; public UserException(String msg) { super(msg); } public String getMsg() { return msg; } }
[ "1833063210@qq.com" ]
1833063210@qq.com
15d4cb96f5b53ce3ee2631ecbd7295e8f37e6ce0
4a51b04557720c200227aac7415c27d5fdbacd5b
/src/main/java/com/jstarcraft/recommendation/evaluator/rating/MPEEvaluator.java
dcd82a8d34b7a83ab4ff1a41dda596520b2295ac
[ "Apache-2.0" ]
permissive
sjsdfg/jstarcraft-recommendation-1.0
dc1e709f11e5d07b49a55f680f1070852fcc3d81
2f4f16e58c587fb0ad05871b2c43044027739272
refs/heads/master
2020-05-15T15:12:15.448309
2019-04-20T05:11:56
2019-04-20T05:11:56
182,365,813
1
0
Apache-2.0
2019-04-20T05:47:18
2019-04-20T05:47:17
null
UTF-8
Java
false
false
950
java
package com.jstarcraft.recommendation.evaluator.rating; import java.util.Collection; import java.util.Iterator; import java.util.List; import com.jstarcraft.core.utility.KeyValue; import com.jstarcraft.recommendation.evaluator.RatingEvaluator; /** * 平均相对误差评估器 * * <pre> * MPE = Mean Prediction Error * </pre> * * @author Birdy */ public class MPEEvaluator extends RatingEvaluator { private float mpe; public MPEEvaluator(float mpe) { this.mpe = mpe; } @Override protected float measure(Collection<Float> checkCollection, List<KeyValue<Integer, Float>> recommendList) { float value = 0F; Iterator<Float> iterator = checkCollection.iterator(); for (KeyValue<Integer, Float> keyValue : recommendList) { float score = iterator.next(); float estimate = keyValue.getValue(); if (Math.abs(score - estimate) > mpe) { value++; } } return value; } }
[ "Birdy@DESKTOP-0JF93DF" ]
Birdy@DESKTOP-0JF93DF
c7847558bfd69c5f92c9f7c4ef423aa1f9512046
0387c5473495a0c0d9542f208a6c6f827d4747cd
/corelibrary/src/main/java/com/axway/ats/core/validation/types/TypeEmailAddress.java
6c246ecfa02c98ba53f32a47cc88f12bb784d471
[ "Apache-2.0" ]
permissive
radokostadinov/ats-framework
fd1c02dc5776bfa1dfc66400d357a05c19581c24
78b154de004aa61fee5769b7cdaaa03945a9b37d
refs/heads/master
2021-05-07T07:38:00.646735
2017-11-01T13:32:04
2017-11-01T13:33:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,540
java
/* * Copyright 2017 Axway Software * * 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.axway.ats.core.validation.types; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import com.axway.ats.core.validation.ValidationType; import com.axway.ats.core.validation.exceptions.TypeException; /** * The {@link TypeEmailAddress} class introduces the validation * functionality for validating email addresses. * * TODO : rewrite implementation so that email addresses are * validated with the help of regular expressions? * * Created on : Oct 11, 2007 */ public class TypeEmailAddress extends TypeString { private static final String ERROR_MESSAGE_INVALID_EMAIL = "Argument is not a valid EMAIL address. "; /** Constructor */ protected TypeEmailAddress( String paramName, Object val, Object[] args ) { super( paramName, val, args ); } /** * Performs a type-specific validation for the given * {@link ValidationType} */ @Override public void validate() throws TypeException { try { super.validate(); } catch( TypeException e ) { throw new TypeException( ERROR_MESSAGE_INVALID_EMAIL + e.getMessage(), this.parameterName, e ); } try { String email = ( String ) this.value; // Note that the JavaMail's implementation of email address validation is // somewhat limited. The Javadoc says "The current implementation checks many, // but not all, syntax rules.". For example, the address a@ is correctly // flagged as invalid, but the address "a"@ is considered // valid by JavaMail, even though it is not valid according to RFC 822. new InternetAddress( email, true ); } catch( AddressException ae ) { throw new TypeException( ERROR_MESSAGE_INVALID_EMAIL, this.parameterName, ae ); } } }
[ "rslavchev@axway.com" ]
rslavchev@axway.com
2a8ebd9b897a61806de9039743e5a6138cb84bb5
358588de52a2ad83dc30418b0b022ba121d060db
/src/main/java/com/victormeng/leetcode/island_perimeter/Solution2.java
018beefe46ed5060c83881d10d28d614416c02f1
[ "MIT" ]
permissive
victormeng24/LeetCode-Java
c53e852ea47049328397e4896319edd0ce0cf48a
16bc2802e89d5c9d6450d598f0f41a7f6261d7b6
refs/heads/master
2023-08-05T02:33:18.990663
2021-02-04T13:31:48
2021-02-04T13:31:48
327,479,246
0
0
null
null
null
null
UTF-8
Java
false
false
547
java
/** * Leetcode - island_perimeter */ package com.victormeng.leetcode.island_perimeter; import java.util.*; import com.ciaoshen.leetcode.util.*; /** * log instance is defined in Solution interface * this is how slf4j will work in this class: * ============================================= * if (log.isDebugEnabled()) { * log.debug("a + b = {}", sum); * } * ============================================= */ class Solution2 implements Solution { public int islandPerimeter(int[][] grid) { return 0; } }
[ "victormeng24@gmail.com" ]
victormeng24@gmail.com
0dabb6d5bef071f8769c940bd88514c416fd028a
daed78503c8fdcfb0ad06002c3ac58d8a82e8718
/intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/resource/idea/completion/AbstractLocationProviderTestLanguageCompletionContributor.java
80331e2ea869e88097d5b8e05569eae4dd81b8b9
[ "LicenseRef-scancode-generic-cla" ]
no_license
knutwannheden/xtext
d85e145a33a5c5cf267576c3afa0938d9ffac862
4ba27914b8a65062f5f82ba2c80fc4233253c359
refs/heads/master
2021-01-17T22:14:56.783054
2015-07-15T07:46:23
2015-07-15T07:46:23
2,587,823
2
0
null
null
null
null
UTF-8
Java
false
false
420
java
package org.eclipse.xtext.resource.idea.completion; import org.eclipse.xtext.idea.lang.AbstractXtextLanguage; import org.eclipse.xtext.common.idea.completion.TerminalsCompletionContributor; public class AbstractLocationProviderTestLanguageCompletionContributor extends TerminalsCompletionContributor { public AbstractLocationProviderTestLanguageCompletionContributor(AbstractXtextLanguage lang) { super(lang); } }
[ "anton.kosyakov@itemis.de" ]
anton.kosyakov@itemis.de
439018ad3d8467a1e02f8700e9f791e0a482b2d6
8980782c811965902419ca459a5cdb525c171e42
/frame-jwt-support/src/main/java/com/lvmoney/jwt/utils/JwtUtil.java
27289af65ad78147df32a0b172096b0a5c86874f
[]
no_license
magicyork/frame
c0b21dae259c6e21459faf3373b87bc2c618e2a9
fd09e0edec7abfdd4e02ae50c0d538db05d50ca9
refs/heads/master
2020-07-07T18:38:06.976917
2019-08-05T03:43:53
2019-08-05T03:43:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,119
java
/** * 描述: * 包名:com.lvmoney.jwt.utils * 版本信息: 版本1.0 * 日期:2019年1月4日 下午2:30:43 * Copyright xxxx科技有限公司 */ package com.lvmoney.jwt.utils; import com.auth0.jwt.JWT; import com.auth0.jwt.algorithms.Algorithm; import com.lvmoney.jwt.vo.UserVo; import java.time.Instant; /** * @describe: * @author: lvmoney /xxxx科技有限公司 * @version:v1.0 2019年1月4日 下午2:30:43 */ public class JwtUtil { public static String getToken(UserVo user) { String token = ""; Long millisecond = Instant.now().toEpochMilli(); token = JWT.create().withAudience(user.getUserId() + millisecond).sign(Algorithm.HMAC256(user.getPassword())); return token; } public static void main(String[] args) { UserVo userVo = new UserVo(); userVo.setUserId("1234567"); userVo.setPassword("1234121"); userVo.setUsername("test"); String token = getToken(userVo); System.out.println(token); String userId = JWT.decode(token).getAudience().get(0); System.out.println(userId); } }
[ "xmangl1990728" ]
xmangl1990728
0bb07f742a8b0c7b73c0912f713c0a67dc9f3994
20396fe68bd2c631fb9b5f6893bf14a13b0c7c16
/part04-Part04_25.PrintingASpecifiedFile/src/main/java/PrintingASpecifiedFile.java
9d51d409614fb85f4a1b7ee44caf632734ccec9f
[]
no_license
banthony79/Mooc
abe63d606984ccb5fc227a91274c389899868340
5edd40e9086fceb8f342e161827be0fbfa1f7718
refs/heads/master
2023-01-21T08:35:25.062603
2020-11-13T01:58:50
2020-11-13T01:58:50
300,126,309
0
0
null
null
null
null
UTF-8
Java
false
false
713
java
import java.nio.file.Paths; import java.util.Scanner; public class PrintingASpecifiedFile { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Which file should have its contents printed?"); String fileChoice = scanner.nextLine(); try (Scanner fileScanner = new Scanner(Paths.get(fileChoice))) { while(fileScanner.hasNextLine()) { String words = fileScanner.nextLine(); System.out.println(words); } } catch (Exception e) { System.out.println("Error: " + e.getMessage()); } } }
[ "blooyeng@gmail.com" ]
blooyeng@gmail.com
5161881276f01ca3cb431e4cb52adefe405f40c9
770bce6cafccef590c6ecbe989b7075d4d81f2bd
/config/bundle/src/main/java/io/helidon/config/bundle/package-info.java
04bb5ffcdff7b6edd43d99ba387381340d22edda
[ "CC-PDDC", "BSD-3-Clause", "CC0-1.0", "LGPL-2.1-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
kumar-dhanagopal/helidon
b6cf2c768f23f4e6d30fb45b2a71a8381028723d
a52d082939216e85cd6bebe8417a926e86d1f9db
refs/heads/master
2020-04-10T02:20:18.733034
2018-12-05T23:48:22
2018-12-05T23:48:22
160,741,876
1
0
Apache-2.0
2018-12-06T23:01:06
2018-12-06T22:45:23
Java
UTF-8
Java
false
false
877
java
/* * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * 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. */ /** * "all in one" Bundle module. * <p> * Config Bundle is placed in {@code io.helidon.config.bundle} Java 9 module. * Maven coordinates are {@code io.helidon.config:helidon-config-bundle}. */ package io.helidon.config.bundle;
[ "robot@helidon.io" ]
robot@helidon.io
d0936723fe453be2ac8ca50343a447f42bea9c78
340244f649995da96ea7b079c78a31b6302c4504
/branches/org.openebiz.core.api/src/org/openebiz/core/common/cbc/DateType.java
f3f49a4e36892361c7156605d4194bcc903fc7a9
[]
no_license
BackupTheBerlios/openebiz-svn
6be3506ba0f5068a69459e6f093917699af50708
f83946dab9371d17ffbc0ec43fe157e4544d97fe
refs/heads/master
2020-04-18T01:46:26.607391
2009-03-08T17:23:20
2009-03-08T17:23:20
40,749,474
0
1
null
null
null
null
UTF-8
Java
false
false
1,605
java
/******************************************************************************* * Copyright (c) 2006 Open E-Biz - http://www.openebiz.org * Licensed Material - Property of Open E-Biz. All rights reserved. * * Contributors: * Open E-Biz - initial API and implementation *******************************************************************************/ package org.openebiz.core.common.cbc; import java.util.Date; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Date Type</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.openebiz.core.common.cbc.DateType#getValue <em>Value</em>}</li> * </ul> * </p> * */ public interface DateType { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ String copyright = "Open E-Biz - http://www.openebiz.org"; //$NON-NLS-1$ /** * Returns the value of the '<em><b>Value</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Value</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Value</em>' attribute. * @see #setValue(Date) */ Date getValue(); /** * Sets the value of the '{@link org.openebiz.core.common.cbc.DateType#getValue <em>Value</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Value</em>' attribute. * @see #getValue() */ void setValue(Date value); } // DateType
[ "wukunlun@3b9d58ea-9e0c-0410-94fd-f833e57fda8f" ]
wukunlun@3b9d58ea-9e0c-0410-94fd-f833e57fda8f
632b38ebee0cf598c3bb6da91257026cfe67f77e
b272ea8c0f5f0fac08d85f507dcb347b1e1f1341
/famous-common/src/main/java/LockstepProto/S2CReconnectOrBuilder.java
455f7bb5538791a919f30dcf5c978d8dde061bd9
[ "MIT" ]
permissive
xuepomh/Almost-Famous
d45fec1eb1513e255c26e9a51b499066273b99e9
ebe944c8e21697ef71d4fdef0ba3ff332f6de452
refs/heads/master
2020-07-27T08:37:42.514212
2020-06-15T05:36:49
2020-06-15T05:36:49
209,032,567
0
0
MIT
2020-06-15T05:36:50
2019-09-17T11:11:29
null
UTF-8
Java
false
true
350
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: NetMessage.proto package LockstepProto; public interface S2CReconnectOrBuilder extends // @@protoc_insertion_point(interface_extends:LockstepProto.S2CReconnect) com.google.protobuf.MessageOrBuilder { /** * <code>uint32 state = 1;</code> */ int getState(); }
[ "noseparte@aliyun.com" ]
noseparte@aliyun.com
e648ae5df781ee1e6bf591f7b4a97b31721754a1
e02b70a4621b698699345d5cd23a5815b872807e
/src/main/java/idv/heimlich/CleanJob/common/evn/IEVNConfig.java
78cd1ae176213d36e0ab4ab00f69091e1af4c8af
[]
no_license
HeimlichLin/CleanJob
e88e05b121066c0589400f96174377380a70140d
ebc0791227a3fc522ce3a84f865b8e7ab0fdf986
refs/heads/main
2023-08-05T09:56:17.766762
2021-10-01T07:23:10
2021-10-01T07:23:10
412,369,208
0
0
null
null
null
null
UTF-8
Java
false
false
370
java
package idv.heimlich.CleanJob.common.evn; /** * 環境設定檔案介面 */ public interface IEVNConfig { public String getDriverClass(); /** * 對應IP * * @return */ public String getConnectionIP(); /** * 使用者帳號 * * @return */ public String getUserName(); /** * 密碼 * * @return */ public String getPassword(); }
[ "jerry.lin@tradevan.com.tw" ]
jerry.lin@tradevan.com.tw
d76b6a71989ac303c0a1c5d1026155e16c956d8a
034416becb36f4a9922053daf5f1175349a2843f
/mmall-oms/mmall-oms-api/src/main/java/com/xyl/mmall/oms/enums/BociTime.java
1d27578f3d77e3413519b42290ad2ae144ab55c9
[]
no_license
timgle/utilcode
40ee8d05e96ac324f452fccb412e07b4465e5345
a8c81c90ec1965d45589dd7be8d2c8b0991a6b6a
refs/heads/master
2021-05-09T22:39:11.417003
2016-03-20T14:30:52
2016-03-20T14:30:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
994
java
package com.xyl.mmall.oms.enums; import com.netease.print.daojar.meta.base.AbstractEnumInterface; /** * * @author hzliujie * 2014年10月24日 上午11:19:40 */ public enum BociTime implements AbstractEnumInterface<BociTime> { FIRST_BATCH(12, "一批次"),SECOND_BATCH(14, "二批次"),THIRD_BATCH(16, "三批次"); /** * 值 */ private final int value; /** * 描述 */ private final String desc; /** * 构造函数 */ private BociTime(int v, String d) { value = v; desc = d; } /** * @see com.netease.print.daojar.meta.base.AbstractEnumInterface#getIntValue() */ @Override public int getIntValue() { return value; } public String getDesc() { return desc; } /** * @see com.netease.print.daojar.meta.base.AbstractEnumInterface#genEnumByIntValue(int) */ @Override public BociTime genEnumByIntValue(int intValue) { for (BociTime item : BociTime.values()) { if (item.value == intValue) return item; } return FIRST_BATCH; } }
[ "jack_lhp@163.com" ]
jack_lhp@163.com
48b2b4673af1270d8a550b8696c8432a09c616d8
cfa41c7823a89d859f9df34921a58d7b23a798ae
/src/nahon/comm/exl2/xlsTable_W.java
4ffc220ced5f3de7d51dcc10b36c4108ba671713
[]
no_license
chejf1983/commonbean
108614f876ac119f40dc6b2889c93224c3f8998a
366b45a25e0443e933b236b965457f9e3ff33cd9
refs/heads/master
2021-07-13T00:05:26.275705
2021-07-05T11:41:33
2021-07-05T11:41:33
243,401,213
0
0
null
null
null
null
UTF-8
Java
false
false
1,737
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package nahon.comm.exl2; import static nahon.comm.exl2.XlsConfig.Table_Split; /** * * @author chejf */ public class xlsTable_W { public int start_c = 0; public int start_r = 0; int length = 0; public final String table_names[]; private final XlsSheetWriter sheet_wirter; xlsTable_W(XlsSheetWriter writer, int start_c, int start_r, String t_name, long row_num, String... column_names) throws Exception { //初始化起点坐标 this.start_c = start_c; this.start_r = start_r; //初始化sheet_wirter this.sheet_wirter = writer; //初始化名字宽度,宽度加上表名称 table_names = new String[1 + column_names.length]; table_names[0] = Table_Split + t_name + Table_Split + row_num + Table_Split + table_names.length + Table_Split; for (int i = 0; i < column_names.length; i++) { table_names[i + 1] = column_names[i]; } } //添加行 public void WriterLine(Object... values) throws Exception { //检查表头和内容宽度是否一致 if (values.length + 1 != this.table_names.length) { throw new Exception("表格宽度与名称不一致"); } length++; Object[] pars = new Object[values.length + 1]; pars[0] = length; System.arraycopy(values, 0, pars, 1, values.length); this.sheet_wirter.AddLine(pars); } //结束表格操作 public void Finish() throws Exception { this.sheet_wirter.FinishTabel(); } }
[ "21575602@qq.com" ]
21575602@qq.com
89ace513d9978afdac3f90a33f33cc8310bec6a6
57ec6499cc81e67095202e2fbc21f48a10e8ab55
/kandoura-mobile-master/app/src/main/java/com/example/tailor/kandoraexpress/order/accepted/AcceptedTab.java
f27ec6eecf3ac55f7c77879ff21860a7a4ce12fa
[]
no_license
karthikeyan1495/kandoura
5a88b02a9840c332acd2308d6ff5b5ed9b4d1845
cfeed2b2e8655d9a49f5439c9129f71fd99ba045
refs/heads/master
2020-04-09T02:21:38.189251
2018-12-01T11:35:05
2018-12-01T11:35:05
159,937,939
0
0
null
null
null
null
UTF-8
Java
false
false
1,529
java
package com.example.tailor.kandoraexpress.order.accepted; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.tailor.kandoraexpress.R; import com.example.tailor.kandoraexpress.databinding.FragmentAcceptedtabBinding; import com.example.tailor.kandoraexpress.order.Inprogress.viewmodal.InProgrssTabVm; import com.example.tailor.kandoraexpress.order.accepted.viewnodal.AcceptedTabVm; import com.example.tailor.kandoraexpress.order.modal.OrderList; public class AcceptedTab extends Fragment { FragmentAcceptedtabBinding binding; OrderList orderList; AcceptedTabVm acceptedTabVm; public AcceptedTab() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { bindView(inflater, container); return binding.getRoot(); } private void bindView(LayoutInflater inflater, ViewGroup container) { binding= DataBindingUtil.inflate(inflater, R.layout.fragment_acceptedtab, container, false); orderList=new OrderList(); acceptedTabVm=new AcceptedTabVm(getActivity(),orderList,binding); binding.setAcceptedtabVm(acceptedTabVm); } }
[ "you@example.com" ]
you@example.com
413552a4aaf7fe2cd4e5c86d0ebced7725e8f935
277bf3a0d3587808141942d0f0d42882e7b3cd8f
/ProjectSourceCode /Apache Commons Math v3.5/src/test/java/org/apache/commons/math3/Retry.java
044e3ac509529b5279347aedd2851f90491269ec
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
yashgolwala/Software_Measurement_Team_M
d1b13389651dacbc8f735dc87a7d0992829c8909
3d2aef4c0711b7a02155a42ca6b08bb6c2693d4c
refs/heads/master
2020-06-11T11:19:32.815146
2019-06-26T03:45:15
2019-06-26T03:45:15
193,592,231
0
0
Unlicense
2019-06-25T16:17:29
2019-06-24T22:57:31
HTML
UTF-8
Java
false
false
129
java
version https://git-lfs.github.com/spec/v1 oid sha256:eb81935b878acec50e6634f492585ed35523badcadeb17f1c7686f84e649c27b size 1041
[ "golwalayash@gmail.com" ]
golwalayash@gmail.com
95b7f7650922dc17f045283f8a64d4b75542381e
869109d3328a3b1847d9f3fcafd341da116414d8
/JVM/src/com/ntuzy/juc_01/MyObject.java
4257bd3078e240ba56846939863da2cbb0157cb8
[]
no_license
1606884098/JVM
58f690e21183e9cdca3f61c64b8caf6e9adba79e
2552450e3a81d1a1bc77806d2712f0cfdf5adb5c
refs/heads/master
2020-12-03T23:29:07.410599
2019-12-30T07:10:24
2019-12-30T07:10:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
811
java
package com.ntuzy.juc_01; /** * @Author IamZY * @create 2019/12/28 15:36 */ public class MyObject { public static void main(String[] args){ MyObject myObject = new MyObject(); System.out.println(myObject.getClass().getClassLoader().getParent().getParent()); // null bootstrap System.out.println(myObject.getClass().getClassLoader().getParent()); // ext System.out.println(myObject.getClass().getClassLoader()); // Launcher$AppClassLoader System.out.println("----------------------------------------------------"); Object o = new Object(); System.out.println(o.getClass().getClassLoader()); // null jdk自带 bootstrap // Thread.State new runnable blocked waiting timed_waiting terminal } }
[ "562018301@qq.com" ]
562018301@qq.com
5d0b3ef7e8e4e3733579462a3865f9bf376a2485
93d8ccc15527708951ece0696867729351fe3082
/src/main/java/yyl/demo/mapper/RoleMapper.java
6f898c2907f464c1f6fb9cfeaf835b83c5a585a4
[ "Apache-2.0" ]
permissive
Relucent/boot-web-demo
a38d061de17dcd4c380377d32d1c84a207d0e7ab
8beabaa5988b282412b141612bd4a8f95ab71eaf
refs/heads/master
2023-06-28T05:25:22.657265
2023-03-30T06:40:00
2023-03-30T06:40:00
185,334,191
0
0
Apache-2.0
2023-06-14T22:47:19
2019-05-07T06:22:25
Java
UTF-8
Java
false
false
3,467
java
package yyl.demo.mapper; import java.util.List; import javax.annotation.Nullable; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.annotations.Mapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import yyl.demo.common.enums.IntBoolEnum; import yyl.demo.entity.RoleEntity; import yyl.demo.model.qo.RoleQO; import yyl.demo.model.ro.RoleInfoRO; /** * 系统角色_Mapper接口 * @author _yyl */ @Mapper public interface RoleMapper extends BaseMapper<RoleEntity> { // ==============================MapperMethods==================================== /** * 查询用户的角色 * @param userId 用户ID * @return 角色信息列表 */ List<RoleInfoRO> findRoleInfoByUserId(String userId); // ==============================DefaultMethods=================================== /** * 查询全部角色 * @return 角色列表 */ default List<RoleEntity> findAll() { LambdaQueryWrapper<RoleEntity> lqw = Wrappers.lambdaQuery(); lqw.eq(RoleEntity::getDeleted, IntBoolEnum.N.value()); return selectList(lqw); } /** * 根据名称查询角色 * @param name 角色名称 * @return 角色 */ default RoleEntity getByName(String name) { LambdaQueryWrapper<RoleEntity> lqw = Wrappers.lambdaQuery(); lqw.eq(RoleEntity::getName, name); lqw.eq(RoleEntity::getDeleted, IntBoolEnum.N.value()); lqw.last("limit 1"); return selectOne(lqw); } /** * 根据条件查询角色 * @param qo 查询条件 * @return 角色列表 */ default List<RoleEntity> findByCriteria(RoleQO qo) { LambdaQueryWrapper<RoleEntity> lqw = Wrappers.lambdaQuery(); String keyword = qo.getKeyword(); if (StringUtils.isNotEmpty(keyword)) { lqw.and(w -> w.likeLeft(RoleEntity::getName, keyword)// .or().likeLeft(RoleEntity::getCode, keyword)); } lqw.eq(RoleEntity::getDeleted, IntBoolEnum.N.value()); lqw.orderByAsc(RoleEntity::getCode); return selectList(lqw); } /** * 验证是否存在相同编码 * @param code 编码 * @param id 排除的ID(可选) * @return 是否存在相同名称 */ default boolean existsByCodeAndNeId(String code, @Nullable String id) { LambdaQueryWrapper<RoleEntity> lqw = Wrappers.lambdaQuery(); lqw.ne(StringUtils.isNotEmpty(id), RoleEntity::getId, id); lqw.eq(StringUtils.isNotEmpty(code), RoleEntity::getCode, code); lqw.eq(RoleEntity::getDeleted, IntBoolEnum.N.value()); return selectCount(lqw) != 0; } /** * 验证是否存在相同名称 * @param name 名称 * @param id 排除的ID(可选) * @return 是否存在相同名称 */ default boolean existsByNameAndNeId(String name, @Nullable String id) { LambdaQueryWrapper<RoleEntity> lqw = Wrappers.lambdaQuery(); lqw.ne(StringUtils.isNotEmpty(id), RoleEntity::getId, id); lqw.eq(StringUtils.isNotEmpty(name), RoleEntity::getName, name); lqw.eq(RoleEntity::getDeleted, IntBoolEnum.N.value()); return selectCount(lqw) != 0; } }
[ "relucent@163.com" ]
relucent@163.com
d073a1238c42e81abfbaa2488ad04ae9c49ae501
bcd546155fb4a21f61fb75da09e1602a7f8ae687
/app/src/main/java/jagoclient/gui/MyMenu.java
f9566c9368676fb01000e72819b6149eec265b08
[]
no_license
sakachin2/Ajagot1w
c4f42d949cd1744aa2fe15636c34e443eb99966d
33817fbcb2f3efb8cb0640bed75ce6741c71fdd6
refs/heads/master
2021-06-20T04:13:34.762091
2017-08-15T07:32:41
2017-08-15T07:32:41
100,338,373
0
0
null
null
null
null
UTF-8
Java
false
false
280
java
package jagoclient.gui; //import java.awt.*; import com.Ajagoc.awt.Menu; import jagoclient.Global; /** A menu with a specified font. */ public class MyMenu extends Menu { public MyMenu (String l) { super(l); setFont(Global.SansSerif); } }
[ "sakachin2@yahoo.co.jp" ]
sakachin2@yahoo.co.jp
bf63858ade1cef07df9a836d4f73c8bb2c89ae6f
0f77c5ec508d6e8b558f726980067d1058e350d7
/1_39_120042/com/ankamagames/wakfu/client/ui/protocol/frame/runners/guild/GuildCreateRankRunner.java
496ba201bb6ef7dcde740a9c0e80ff4d4f2a9053
[]
no_license
nightwolf93/Wakxy-Core-Decompiled
aa589ebb92197bf48e6576026648956f93b8bf7f
2967f8f8fba89018f63b36e3978fc62908aa4d4d
refs/heads/master
2016-09-05T11:07:45.145928
2014-12-30T16:21:30
2014-12-30T16:21:30
29,250,176
5
5
null
2015-01-14T15:17:02
2015-01-14T15:17:02
null
UTF-8
Java
false
false
484
java
package com.ankamagames.wakfu.client.ui.protocol.frame.runners.guild; import com.ankamagames.framework.kernel.core.common.message.*; import com.ankamagames.wakfu.client.core.game.group.guild.*; public class GuildCreateRankRunner implements MessageRunner { @Override public boolean run(final Message message) { WakfuGuildView.getInstance().createNewRank(); return false; } @Override public int getProtocolId() { return 18211; } }
[ "totomakers@hotmail.fr" ]
totomakers@hotmail.fr
5819980cc6919a29f533212cfa61d097bc83720a
bd2139703c556050403c10857bde66f688cd9ee6
/panama-foreign/97/webrev.01/test/jdk/java/foreign/TestVarArgs.java
4a410252c533d6c7d347cd17ddcf187c5d1a3a73
[]
no_license
isabella232/cr-archive
d03427e6fbc708403dd5882d36371e1b660ec1ac
8a3c9ddcfacb32d1a65d7ca084921478362ec2d1
refs/heads/master
2023-02-01T17:33:44.383410
2020-12-17T13:47:48
2020-12-17T13:47:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,594
java
/* * Copyright (c) 2019, 2020, 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. * * 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. * */ /* * @test * @modules jdk.incubator.foreign/jdk.incubator.foreign.unsafe * jdk.incubator.foreign/jdk.internal.foreign * jdk.incubator.foreign/jdk.internal.foreign.abi * java.base/sun.security.action * @run testng/othervm -Djdk.incubator.foreign.Foreign=permit TestVarArgs */ import jdk.incubator.foreign.Foreign; import jdk.incubator.foreign.FunctionDescriptor; import jdk.incubator.foreign.LibraryLookup; import jdk.incubator.foreign.MemoryAddress; import jdk.incubator.foreign.MemoryLayout; import jdk.incubator.foreign.MemoryLayouts; import jdk.incubator.foreign.MemorySegment; import jdk.incubator.foreign.SystemABI; import jdk.incubator.foreign.ValueLayout; import jdk.internal.foreign.MemoryAddressImpl; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodType; import java.lang.invoke.VarHandle; import java.util.ArrayList; import java.util.List; import static jdk.incubator.foreign.MemoryLayout.PathElement.*; import static jdk.incubator.foreign.SystemABI.*; import static org.testng.Assert.assertEquals; public class TestVarArgs extends NativeTestHelper { static final MemoryLayout ML_CallInfo = MemoryLayout.ofStruct( C_POINTER.withName("writeback"), // writeback C_POINTER.withName("argIDs")); // arg ids static final VarHandle VH_CallInfo_writeback = ML_CallInfo.varHandle(long.class, groupElement("writeback")); static final VarHandle VH_CallInfo_argIDs = ML_CallInfo.varHandle(long.class, groupElement("argIDs")); static final VarHandle VH_IntArray = MemoryLayout.ofSequence(C_INT).varHandle(int.class, sequenceElement()); static final SystemABI abi = Foreign.getInstance().getSystemABI(); static final MemoryAddress varargsAddr; static { try { varargsAddr = LibraryLookup.ofLibrary(MethodHandles.lookup(), "VarArgs").lookup("varargs"); } catch (NoSuchMethodException e) { throw new BootstrapMethodError(e); } } static final int WRITEBACK_BYTES_PER_ARG = 8; @Test(dataProvider = "args") public void testVarArgs(List<VarArg> args) throws Throwable { try (MemorySegment writeBack = MemorySegment.allocateNative(args.size() * WRITEBACK_BYTES_PER_ARG); MemorySegment callInfo = MemorySegment.allocateNative(ML_CallInfo); MemorySegment argIDs = MemorySegment.allocateNative(MemoryLayout.ofSequence(args.size(), C_INT))) { MemoryAddress callInfoPtr = callInfo.baseAddress(); VH_CallInfo_writeback.set(callInfoPtr, writeBack.baseAddress().toRawLongValue()); VH_CallInfo_argIDs.set(callInfoPtr, argIDs.baseAddress().toRawLongValue()); for (int i = 0; i < args.size(); i++) { VH_IntArray.set(argIDs.baseAddress(), (long) i, args.get(i).id.ordinal()); } List<MemoryLayout> argLayouts = new ArrayList<>(); argLayouts.add(C_POINTER); // call info argLayouts.add(C_INT); // size args.forEach(a -> argLayouts.add(asVarArg(a.layout))); FunctionDescriptor desc = FunctionDescriptor.ofVoid(argLayouts.toArray(MemoryLayout[]::new)); List<Class<?>> carriers = new ArrayList<>(); carriers.add(MemoryAddress.class); // call info carriers.add(int.class); // size args.forEach(a -> carriers.add(a.carrier)); MethodType mt = MethodType.methodType(void.class, carriers); MethodHandle downcallHandle = abi.downcallHandle(varargsAddr, mt, desc); List<Object> argValues = new ArrayList<>(); argValues.add(callInfoPtr); // call info argValues.add(args.size()); // size args.forEach(a -> argValues.add(a.value)); downcallHandle.invokeWithArguments(argValues); for (int i = 0; i < args.size(); i++) { VarArg a = args.get(i); MemoryAddress writtenPtr = writeBack.baseAddress().addOffset(i * WRITEBACK_BYTES_PER_ARG); Object written = a.vh.get(writtenPtr); assertEquals(written, a.value); } } } @DataProvider public static Object[][] args() { return new Object[][] { new Object[] { List.of(VarArg.intArg(5), VarArg.intArg(10), VarArg.intArg(15)) }, new Object[] { List.of(VarArg.doubleArg(5), VarArg.doubleArg(10), VarArg.doubleArg(15)) }, new Object[] { List.of(VarArg.intArg(5), VarArg.doubleArg(10), VarArg.intArg(15)) }, }; } private static final class VarArg { final NativeType id; final Object value; final ValueLayout layout; final Class<?> carrier; final VarHandle vh; private VarArg(NativeType id, ValueLayout layout, Class<?> carrier, Object value) { this.id = id; this.value = value; this.layout = layout; this.carrier = carrier; this.vh = layout.varHandle(carrier); } static VarArg intArg(int value) { return new VarArg(VarArg.NativeType.INT, C_INT, int.class, value); } static VarArg doubleArg(double value) { return new VarArg(VarArg.NativeType.DOUBLE, C_DOUBLE, double.class, value); } enum NativeType { INT, DOUBLE } } }
[ "robin.westberg@oracle.com" ]
robin.westberg@oracle.com
13cac9be0972ac1cd73027d8b689d1c5b1598486
c94f888541c0c430331110818ed7f3d6b27b788a
/fairopennet/java/src/main/java/com/antgroup/antchain/openapi/fairopennet/models/StartTestRequest.java
402b4083df950868e4581e8978d47f6831c96e41
[ "Apache-2.0", "MIT" ]
permissive
alipay/antchain-openapi-prod-sdk
48534eb78878bd708a0c05f2fe280ba9c41d09ad
5269b1f55f1fc19cf0584dc3ceea821d3f8f8632
refs/heads/master
2023-09-03T07:12:04.166131
2023-09-01T08:56:15
2023-09-01T08:56:15
275,521,177
9
10
MIT
2021-03-25T02:35:20
2020-06-28T06:22:14
PHP
UTF-8
Java
false
false
1,523
java
// This file is auto-generated, don't edit it. Thanks. package com.antgroup.antchain.openapi.fairopennet.models; import com.aliyun.tea.*; public class StartTestRequest extends TeaModel { // OAuth模式下的授权token @NameInMap("auth_token") public String authToken; @NameInMap("product_instance_id") public String productInstanceId; // TestApi入参 @NameInMap("data") @Validation(required = true) public TestStruct data; // 额外字段 @NameInMap("extra") public String extra; public static StartTestRequest build(java.util.Map<String, ?> map) throws Exception { StartTestRequest self = new StartTestRequest(); return TeaModel.build(map, self); } public StartTestRequest setAuthToken(String authToken) { this.authToken = authToken; return this; } public String getAuthToken() { return this.authToken; } public StartTestRequest setProductInstanceId(String productInstanceId) { this.productInstanceId = productInstanceId; return this; } public String getProductInstanceId() { return this.productInstanceId; } public StartTestRequest setData(TestStruct data) { this.data = data; return this; } public TestStruct getData() { return this.data; } public StartTestRequest setExtra(String extra) { this.extra = extra; return this; } public String getExtra() { return this.extra; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
93b79fd9c8b172ffb32cd327fd0a749b27a783fd
0b2bd27c57b2e75cb5f39b0b6e44dddca14b5aba
/org.schema/src/main/java/org/schema/ExerciseGym.java
5fec2648fef9bf88add045f170da1748f627384d
[ "Apache-2.0" ]
permissive
Eduworks/ec
f6f9cff86bd52ab01e94da01060fd6668fe59715
e06ce19773b2d7a24a1c1d8f65852e9a99388b45
refs/heads/master
2023-04-27T06:06:47.571800
2020-12-11T14:41:54
2020-12-11T14:41:54
103,451,933
1
2
Apache-2.0
2023-04-19T03:53:14
2017-09-13T21:18:39
JavaScript
UTF-8
Java
false
false
423
java
package org.schema; /** * Schema.org/ExerciseGym * A gym. * * @author schema.org * @class ExerciseGym * @module org.schema * @extends SportsActivityLocation */ public class ExerciseGym extends SportsActivityLocation { /** * Constructor, automatically sets @context and @type. * * @constructor */ public ExerciseGym() { context = "http://schema.org/"; type = "ExerciseGym"; } }
[ "fritz.ray@eduworks.com" ]
fritz.ray@eduworks.com
ccbd713be5c25aaad4c1b20e00de05cf2ad9d0d3
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/28/28_652b3c0187bc4172ef55697bbef3df6ea4859538/FileCopier/28_652b3c0187bc4172ef55697bbef3df6ea4859538_FileCopier_t.java
25735456685abcbbfc9a986f5308249c93063cdf
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,190
java
/******************************************************************************* * Copyright (c) 2006-2010 * Software Technology Group, Dresden University of Technology * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Software Technology Group - TU Dresden, Germany * - initial API and implementation ******************************************************************************/ package org.emftext.sdk.codegen.creators; import java.io.File; import java.io.IOException; import java.io.InputStream; import org.emftext.sdk.EMFTextSDKPlugin; import org.emftext.sdk.IPluginDescriptor; import org.emftext.sdk.codegen.GenerationProblem; import org.emftext.sdk.codegen.IArtifactCreator; import org.emftext.sdk.codegen.IContext; import org.emftext.sdk.util.StreamUtil; /** * Copies files. */ public class FileCopier<ContextType extends IContext<ContextType>> implements IArtifactCreator<ContextType> { private InputStream inputStream; private File targetFile; private boolean override; public FileCopier(InputStream inputStream, File targetFile, boolean override) { this.inputStream = inputStream; this.targetFile = targetFile; this.override = override; } public void createArtifacts(IPluginDescriptor plugin, ContextType context) { if (!override && targetFile.exists()) { return; } try { StreamUtil.storeContentIfChanged(targetFile, inputStream); } catch (IOException e) { addError(context, e); } catch (NullPointerException e) { addError(context, e); } } private void addError(ContextType context, Exception e) { context.getProblemCollector().addProblem(new GenerationProblem("Exception while copying " + targetFile.getName() + ".", null, GenerationProblem.Severity.ERROR, e)); EMFTextSDKPlugin.logError("Error while copying " + targetFile.getName() + ".", e); } public String getArtifactTypeDescription() { return targetFile.getName(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6cc286723a902bd0663dc6bda361bcd8cecaefeb
8f362e22b0bd0a3e1294df90e13791c6bceb1bef
/src/uk/dangrew/dinosaurs/game/model/water/Water.java
74892eb7e3bf782a17427b0d04319b64aab89476
[ "Apache-2.0" ]
permissive
DanGrew/Dinosaurs
829d1fd6371b617f3a58356d8aab10fb9e141650
e21ff4519ed97ae85bf2c4845150e591525d9d1e
refs/heads/main
2023-02-24T20:39:23.880864
2021-01-25T17:56:07
2021-01-25T17:56:07
328,762,490
0
0
null
null
null
null
UTF-8
Java
false
false
2,757
java
package uk.dangrew.dinosaurs.game.model.water; import java.util.Collection; import java.util.LinkedHashMap; import java.util.Map; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; import uk.dangrew.dinosaurs.game.actions.consumption.DrinkActionGenerator; import uk.dangrew.dinosaurs.game.actions.mechanism.ActionGenerator; import uk.dangrew.dinosaurs.game.collision.CollisionDetector; import uk.dangrew.dinosaurs.game.collision.WaterCollisionDetector; import uk.dangrew.dinosaurs.game.storage.Asset; import uk.dangrew.dinosaurs.game.world.WorldLocation; import uk.dangrew.kode.concept.Concept; import uk.dangrew.kode.concept.Properties; /** * An individual body of water spanning multiple world locations. */ public class Water implements Asset { private final CollisionDetector collisionDetector; private final ActionGenerator actionGenerator; private final Properties properties; private final Map<WorldLocation, WaterLocationProperties> waterLocationProperties; private final ObjectProperty<Integer> waterAvailable; public Water(String name) { this(name, name); } public Water(String id, String name) { this(new Properties(id, name)); } Water(Properties properties){ this.properties = properties; this.waterLocationProperties = new LinkedHashMap<>(); this.waterAvailable = new SimpleObjectProperty<>(0); this.collisionDetector = new WaterCollisionDetector(this); this.actionGenerator = new DrinkActionGenerator(this); } @Override public Properties properties() { return properties; } @Override public Concept duplicate() { throw new UnsupportedOperationException(); } @Override public CollisionDetector getCollisionDetector() { return collisionDetector; } @Override public ActionGenerator getActionGenerator() { return actionGenerator; } public Collection<WorldLocation> getCoverage() { return waterLocationProperties.keySet(); } public void cover(WorldLocation worldLocation){ cover(worldLocation, new WaterLocationProperties()); } public void cover(WorldLocation worldLocation, WaterLocationProperties locationProperties){ waterLocationProperties.put(worldLocation, locationProperties); waterAvailable.set(waterLocationProperties.size() * 100); } public void remove(WorldLocation worldLocation){ waterLocationProperties.remove(worldLocation); } public WaterLocationProperties getLocationPropertiesFor(WorldLocation worldLocation){ return waterLocationProperties.get(worldLocation); } public ObjectProperty<Integer> waterAvailable() { return waterAvailable; } }
[ "danielanthonygrew@gmail.com" ]
danielanthonygrew@gmail.com
dd6c142774fe6ed7d1ef0563815f5d6130fe9146
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/test/com/vaadin/tests/components/grid/GridValueProvider.java
b5da55123bf1f64ca497c15fa15bec92065aefec
[]
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
2,038
java
package com.vaadin.tests.components.grid; import com.vaadin.data.provider.DataProvider; import com.vaadin.data.provider.ListDataProvider; import com.vaadin.tests.data.bean.Person; import com.vaadin.tests.data.bean.Sex; import com.vaadin.ui.Grid; import com.vaadin.ui.Grid.Column; import java.util.List; import java.util.stream.Collectors; import org.junit.Assert; import org.junit.Test; public class GridValueProvider { @Test public void getExplicitValueProvider() { Grid<Person> grid = new Grid(); Column<Person, String> col = grid.addColumn(( person) -> ((person.getFirstName()) + " ") + (person.getLastName())); Person person = new Person("first", "last", "email", 123, Sex.UNKNOWN, null); Assert.assertEquals("first last", col.getValueProvider().apply(person)); } @Test public void getBeanColumnValueProvider() { Grid<Person> grid = new Grid(Person.class); Column<Person, String> col = ((Column<Person, String>) (grid.getColumn("email"))); Person person = new Person("first", "last", "eeemaaail", 123, Sex.UNKNOWN, null); Assert.assertEquals("eeemaaail", col.getValueProvider().apply(person)); } @Test public void reuseValueProviderForFilter() { Grid<Person> grid = new Grid(Person.class); Column<Person, String> col = ((Column<Person, String>) (grid.getColumn("email"))); Person lowerCasePerson = new Person("first", "last", "email", 123, Sex.UNKNOWN, null); Person upperCasePerson = new Person("FIRST", "LAST", "EMAIL", 123, Sex.UNKNOWN, null); ListDataProvider<Person> persons = DataProvider.ofItems(lowerCasePerson, upperCasePerson); persons.addFilter(col.getValueProvider(), ( value) -> value.toUpperCase(Locale.ROOT).equals(value)); List<Person> queryPersons = persons.fetch(new com.vaadin.data.provider.Query()).collect(Collectors.toList()); Assert.assertEquals(1, queryPersons.size()); Assert.assertSame(upperCasePerson, queryPersons.get(0)); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
fff5ac4e0052e447089eb84b3e9a6bba3f90a1ee
0308ca5b152a082c1a206a1a136fd45e79b48143
/usvao/VAO/projects/sedlib/tags/sedlib-beta1/src/main/java/cfa/vo/sedlib/TextParam.java
58ce948052c485b106859ae74f17aceb98eba24b
[]
no_license
Schwarzam/usvirtualobservatory
b609bf21a09c187b70e311a4c857516284049c31
53fe6c14cc9312d048326acfa25377e3eac59858
refs/heads/master
2022-03-28T23:38:58.847018
2019-11-27T16:05:47
2019-11-27T16:05:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
515
java
package cfa.vo.sedlib; /** * <p>Java class for textParam complex type. * * */ public class TextParam extends Param { public TextParam () {} public TextParam (String value, String name, String ucd) { super (value, name, ucd); } public TextParam (String value, String name, String ucd, String id) { super (value, name, ucd, id); } public TextParam (String value) { super (value); } public TextParam (TextParam param) { super (param); } }
[ "usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5" ]
usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5
addbe0bfcaf0b819b1542c67141f43f430613037
22b1f967750c313d8a2e6fc255fd3bca9f13c290
/TwoPointers/607_TwoSumIIIDataStructureDesign.java
ca8802b6848de87ea3d565d9609b2403388a2d9d
[ "MIT" ]
permissive
robin-qu/Leetcode
333e997f1779fe41cbd4b0e057631454c1f37d13
9178287a7cc8fac7adb0e9bfd8d4771cd151d4a6
refs/heads/master
2021-06-24T18:49:25.879307
2021-01-21T05:28:20
2021-01-21T05:28:20
178,751,405
0
0
null
null
null
null
UTF-8
Java
false
false
854
java
public class TwoSum { /** * @param number: An integer * @return: nothing */ private Map<Integer, Integer> map; public TwoSum() { map = new HashMap<Integer, Integer>(); } public void add(int number) { if (!map.containsKey(number)) { map.put(number, 0); } map.put(number, map.get(number) + 1); } /** * @param value: An integer * @return: Find if there exists any pair of numbers which sum is equal to the value. */ public boolean find(int value) { for (int num : map.keySet()) { map.put(num, map.get(num) - 1); if (map.containsKey(value - num) && map.get(value - num) > 0) { return true; } map.put(num, map.get(num) + 1); } return false; } }
[ "hongbinqu9@gmail.com" ]
hongbinqu9@gmail.com
86e0a44d976db7a80d0cbfd0b67a98d781df446d
9f43271bb462e2da0e9afac724b4df9127a36dc4
/gdx-mod/src/main/java/com/badlogic/gdx/graphics/g3d/model/NodeAnimation.java
9d823aa7f6c3d2ed3000572fcfb3c4dd7c9be123
[]
no_license
HoldYourWaffle/Geem
cd111a03a3157b16a86eb007fb1055f05e8a9923
3395346fbe9e224ded016a31fc7f72222646ec50
refs/heads/master
2018-10-30T02:52:13.876075
2018-08-23T11:20:33
2018-08-23T11:20:33
145,842,225
0
0
null
null
null
null
UTF-8
Java
false
false
1,769
java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.graphics.g3d.model; import com.badlogic.gdx.graphics.g3d.Model; import com.badlogic.gdx.math.Quaternion; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.utils.Array; /** * A NodeAnimation defines keyframes for a {@link Node} in a {@link Model}. The * keyframes are given as a translation vector, a rotation quaternion and a * scale vector. Keyframes are interpolated linearly for now. Keytimes are given * in seconds. * * @author badlogic, Xoppa */ public class NodeAnimation { /** the Node affected by this animation **/ public Node node; /** * the translation keyframes if any (might be null), sorted by time ascending **/ public Array<NodeKeyframe<Vector3>> translation = null; /** the rotation keyframes if any (might be null), sorted by time ascending **/ public Array<NodeKeyframe<Quaternion>> rotation = null; /** the scaling keyframes if any (might be null), sorted by time ascending **/ public Array<NodeKeyframe<Vector3>> scaling = null; }
[ "ravivanrooijen@live.nl" ]
ravivanrooijen@live.nl
ff05caf4b47accff9fa82d0eebe281e99b0bc8f2
3054eab9f6ed308eef6b34bdbf7f2d333e51639c
/src/com/op/service/pointService/impl/PointServiceImgDeputyServiceImpl.java
91a89c0932a8f652abb61801e588c642c570c73d
[]
no_license
luotianwen/opManage
df0aafb894ce0843e2508e8512db462c0074b42f
1b553a7895463cbf4a4a7b514b32389de1a0514e
refs/heads/master
2021-06-26T03:56:40.850857
2017-09-09T14:59:35
2017-09-09T14:59:35
102,962,576
0
1
null
null
null
null
UTF-8
Java
false
false
593
java
package com.op.service.pointService.impl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.op.dao.BaseDao; import com.op.service.pointService.PointServiceImgDeputyService; /** * 地点服务图片(副)(pointServiceImgDeputy)接口实现类 * @author Win Zhong * @version Revision: 1.00 * Date: 2016-06-21 14:44:04 */ @Service("pointServiceImgDeputyServiceImpl") public class PointServiceImgDeputyServiceImpl implements PointServiceImgDeputyService{ @Resource(name = "baseDaoImpl") private BaseDao dao; }
[ "tw l" ]
tw l
32bc7408dab57b48e70a004ce73fd53e31936e46
2dc6df4b755e64527a163b2980ae9b2e37350558
/src/main/java/com/mazentop/modules/emp/service/ProBrandService.java
89b9bd7e822f433206a2b803e5ab56e526a570ff
[ "0BSD" ]
permissive
chanwaikit/fulin-test
bcc25bfb860a631666b945d191ac9d0ebc5a22eb
e31ef03596b724ba48d72ca8021492e6f251ec20
refs/heads/master
2023-06-27T12:34:51.533534
2021-07-26T03:32:37
2021-07-26T03:32:37
389,497,650
0
0
null
null
null
null
UTF-8
Java
false
false
2,385
java
package com.mazentop.modules.emp.service; import com.mazentop.entity.EmpEmployeeInfo; import com.mazentop.entity.ProBrand; import com.mazentop.entity.SysCompany; import com.mazentop.model.Status; import com.mazentop.modules.emp.commond.ProBrandCommond; import com.mztframework.commons.Utils; import com.mztframework.dao.annotation.Order; import com.mztframework.dao.jdbc.Db; import com.mztframework.dao.page.Page; import com.mztframework.data.R; import com.mztframework.data.Result; import com.mztframework.jwt.security.Subject; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import java.util.List; import java.util.Objects; /** * @author: wangzy * @date: 2020/3/12 * @description: */ @Service public class ProBrandService { public List<ProBrand> findProBrands() { return ProBrand.me().setIsEnable(Status.YES).setOrderByFields(Order.desc(ProBrand.F_ADD_TIME)).find(); } public Page findProBrandList(ProBrandCommond commond) { commond.setOrderBy(" add_time desc"); List<ProBrand> proBrands = ProBrand.me().find(commond); if(!proBrands.isEmpty()){ proBrands.forEach(brand->{ EmpEmployeeInfo curEmployee = EmpEmployeeInfo.me().setId(brand.getAddUserId()).get(); if(!Objects.isNull(curEmployee)){ brand.addExten("addUserName",curEmployee.getEmployeeName()); } }); } return new Page<>(proBrands,commond); } /** * 新增/修改品牌 * @param proBrand * @return */ public R doProBrandAddOrUpdate(ProBrand proBrand) { // 获取当前用户信息 String curUserId = Subject.id(); EmpEmployeeInfo curEmployee = EmpEmployeeInfo.me().setId(curUserId).get(); if (Objects.isNull(curEmployee)){ R.error("当前用户失效"); } if(StringUtils.isBlank(proBrand.getId())){ proBrand.setAddTime(Utils.currentTimeSecond()).setAddUserId(curUserId).insert(); }else { proBrand.update(); } return R.ok(); } public R doDeleteProBrand(List<String> ids) { Db.tx(() -> { for (String id : ids) { ProBrand.me().setId(id).delete(); } return true; }); return R.ok(); } }
[ "674445354@qq.com" ]
674445354@qq.com
187d914f83dcf76e38e1d577b8a682a44ad0e770
885e2667ceb32b82fa18bd5808ac315143003aa1
/AtCoder/ABC/ABC219/B/Main.java
cb998ee6325d47742a21962a73fed73a33cc012f
[]
no_license
T45K/kyopuro
f804b1c73c8c1404ffcc5e2070ad518495abf4e7
74df98c0b83be246fdcc8846fec5cbfdcf29e6bc
refs/heads/master
2023-06-29T14:14:49.033389
2023-06-11T14:14:32
2023-06-11T14:14:32
154,971,544
2
0
null
2020-07-25T14:14:24
2018-10-27T14:08:20
Java
UTF-8
Java
false
false
1,450
java
package AtCoder.ABC.ABC219.B; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; import java.util.stream.Collectors; import java.util.stream.IntStream; public class Main { public static void main(final String[] args) { final FastScanner scanner = new FastScanner(System.in); final String s1 = scanner.next(); final String s2 = scanner.next(); final String s3 = scanner.next(); final String[] s = {s1, s2, s3}; final String t = scanner.next(); final String answer = IntStream.range(0, t.length()) .map(i -> t.charAt(i) - '1') .mapToObj(i -> s[i]) .collect(Collectors.joining()); System.out.println(answer); } private static class FastScanner { private final BufferedReader reader; private StringTokenizer tokenizer; FastScanner(final InputStream in) { reader = new BufferedReader(new InputStreamReader(in)); } String next() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (final IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } } }
[ "tasktas9@gmail.com" ]
tasktas9@gmail.com
cc0e40efaae5e328283193ad2f782d276ab5ce90
9d6a88f159f47c0763b06ff0f6f67c67789b27ca
/src/edu/nju/cs/inform/core/relation/info/CallRelationList.java
5916d1b48c3fce69a9579c15145df533228ee473
[]
no_license
RatYoung/generate-change-group
2ef242e3af95572a946534529f77d24b98ac94c2
6f237d91768bf4bc386bdfe8efdbdacd77669c63
refs/heads/master
2020-04-17T17:05:04.805332
2019-05-04T12:53:41
2019-05-04T12:53:41
166,769,148
0
0
null
null
null
null
UTF-8
Java
false
false
236
java
package edu.nju.cs.inform.core.relation.info; import java.io.Serializable; import java.util.ArrayList; /** * Created by niejia on 15/2/25. */ public class CallRelationList extends ArrayList<CallRelation> implements Serializable { }
[ "yhrnju@qq.com" ]
yhrnju@qq.com
74de5467df13c17e85d5575e24dc6dd916b037cd
083d1781eab539d58b774d572d9ad458c5b38d5d
/cuckoo_video_line/cuckoo_video_line_android_2_5/bogo/src/main/java/com/eliaovideo/videoline/widget/FullScreenVideoView.java
6157353d2a0d2960530e4634323ed20ed0c8b36a
[]
no_license
zhubinsheng/cuckoo_video_line
90c5f4dbaa466e181814d771f4193055c8e78cc6
7eb0470adb63d846b276df11352b2d57a1dfef77
refs/heads/master
2022-02-16T22:13:06.514406
2019-08-03T01:47:26
2019-08-03T01:47:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
826
java
package com.eliaovideo.videoline.widget; import android.content.Context; import android.util.AttributeSet; import android.widget.VideoView; /** * Created by weipeng on 2017/5/2. */ public class FullScreenVideoView extends VideoView { public FullScreenVideoView(Context context) { super(context); } public FullScreenVideoView(Context context, AttributeSet attrs) { super(context,attrs); } public FullScreenVideoView(Context context, AttributeSet attrs, int defStyle) { super(context,attrs,defStyle); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int width = getDefaultSize(0, widthMeasureSpec); int height = getDefaultSize(0, heightMeasureSpec); setMeasuredDimension(width , height); } }
[ "807124011@qq.com" ]
807124011@qq.com
e8aa9456d1e13b837dc488c26ece61d353e41bc2
13cd681721fa81d9c94971c7dd5543ee105e65fc
/src/main/java/de/ellpeck/tfb/recipes/VesselRecipe.java
3e7107a3397402e92dc3075a397e3f4e364e33ee
[ "MIT" ]
permissive
Ellpeck/TerraFirmaBottom
21ad69d99ddc9da6999a66a3df93ce7ef05ab16d
27cb6e2717e77048ae2c8987fa9b96a6db3f658e
refs/heads/master
2020-08-08T05:45:14.141920
2019-10-15T18:59:52
2019-10-15T18:59:52
213,739,381
1
0
null
null
null
null
UTF-8
Java
false
false
2,168
java
package de.ellpeck.tfb.recipes; import de.ellpeck.rockbottom.api.item.ItemInstance; import de.ellpeck.rockbottom.api.util.Counter; import de.ellpeck.tfb.TFB; import de.ellpeck.tfb.items.ItemVessel; import de.ellpeck.tfb.items.Items; import de.ellpeck.tfb.ores.IOreItem; import de.ellpeck.tfb.ores.MetalType; import java.util.HashMap; public class VesselRecipe extends PitKilnRecipe { public VesselRecipe() { super(TFB.createRes("vessel_smelting"), null, null); REGISTRY.register(this.name, this); } @Override public boolean matches(ItemInstance input) { return input.getItem() == Items.VESSEL; } @Override public ItemInstance getOutput(ItemInstance input) { var inventory = ItemVessel.loadInventory(input); var amounts = new HashMap<MetalType, Counter>(); for (var instance : inventory.items) { if (instance == null) continue; var item = instance.getItem(); if (!(item instanceof IOreItem)) return input; var ore = (IOreItem) item; var counter = amounts.computeIfAbsent(ore.getType(instance), type -> new Counter(0)); counter.add(ore.getAmount(instance)); } var success = false; if (amounts.size() == 1) { var entry = amounts.entrySet().iterator().next(); inventory.metal = entry.getKey(); inventory.metalAmount = entry.getValue().get(); success = true; } else { var total = amounts.values().stream().mapToInt(Counter::get).sum(); for (var recipe : AlloyRecipe.REGISTRY.values()) { if (!recipe.matches(amounts, total)) continue; inventory.metal = recipe.output; inventory.metalAmount = total; success = true; break; } } if (success) { for (var i = 0; i < inventory.items.getSlotAmount(); i++) inventory.items.set(i, null); ItemVessel.saveInventory(inventory, input); } return input; } }
[ "megamaximal@gmail.com" ]
megamaximal@gmail.com
ff989c9a2a0854378b0af06c61e5e400adefe09e
8063c2ea7920df9b18def06b729f5b00db53b0fa
/Tiger_Google/android-framework-google/src/main/java/com/mn/tiger/thirdparty/google/GoogleGeoCodeResult.java
32940ad10c4831bf3835d2a875ed80cb532821e3
[]
no_license
SmallTigerBrother/TigerFrameworkForAS
9060ebefd3fcc6939f9f57ae0fa291b28f181400
258d1e0e6a00e49615793a503aa92cbd1770c787
refs/heads/2.0.0
2021-04-15T10:06:32.175391
2018-11-21T08:08:30
2018-11-21T08:08:30
39,196,409
7
3
null
2018-06-12T05:48:42
2015-07-16T12:48:16
Java
UTF-8
Java
false
false
522
java
package com.mn.tiger.thirdparty.google; public class GoogleGeoCodeResult { public static final String STATUS_OK = "OK"; private String status; private GoogleAddressResult[] results; public GoogleAddressResult[] getResults() { return results; } public void setResults(GoogleAddressResult[] results) { this.results = results; } public boolean isStatusOK() { return STATUS_OK.equals(status); } @Override public String toString() { return "[results=" + results + ", status=" + status + "]"; } }
[ "664674103@qq.com" ]
664674103@qq.com
a8b48cccde08e9c87cf451dad8f6eb2c6e855f92
bb2f3c0d834beb50341e9d03b3b96c24438a88ac
/milton2/milton-server-ce/src/main/java/io/milton/ldap/LdapPropertyMapper.java
491f2fb3530dfccf4a87449962977c68a2a49f8d
[ "BSD-2-Clause", "Apache-2.0", "AGPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
skoulouzis/lobcder
3e004d3e896fe9e600da931d8fb82c72a746c491
23bf0cc9c78f506193bb9ba9f6543e5f5597ae4d
refs/heads/dev
2022-02-22T20:56:32.472320
2022-02-08T10:07:01
2022-02-08T10:07:01
26,593,878
7
3
Apache-2.0
2022-02-08T10:07:02
2014-11-13T15:23:44
Java
UTF-8
Java
false
false
5,309
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 io.milton.ldap; import io.milton.common.LogUtils; import io.milton.http.exceptions.BadRequestException; import io.milton.http.exceptions.NotAuthorizedException; import io.milton.http.values.ValueAndType; import io.milton.http.webdav.PropFindPropertyBuilder; import io.milton.resource.PropFindableResource; import io.milton.resource.Resource; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import javax.xml.namespace.QName; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author brad */ public class LdapPropertyMapper { private static final Logger log = LoggerFactory.getLogger(SimpleLdapFilter.class); private final PropFindPropertyBuilder propertyBuilder; private final Map<QName, String> mapQNameDavToLdap = new ConcurrentHashMap<QName, String>(); private final Map<String, QName> mapQNameLdapToDav = new ConcurrentHashMap< String, QName>(); private final Map<String, String> mapLocalNameDavToLdap = new ConcurrentHashMap<String, String>(); private final Map<String, String> mapLocalNameLdapToDav = new ConcurrentHashMap< String, String>(); private String ldapNameSpace = "ldap"; public LdapPropertyMapper(PropFindPropertyBuilder propertyBuilder) { this.propertyBuilder = propertyBuilder; addLocalNameMapping("name", "uid"); addLocalNameMapping("surName", "surname"); addLocalNameMapping("surName", "sn"); addLocalNameMapping("commonName", "cn"); addLocalNameMapping("country", "c"); addLocalNameMapping("friendlyCountryName", "co"); addLocalNameMapping("givenName", "gn"); addLocalNameMapping("givenName", "givenname"); addLocalNameMapping("organizationName", "o"); addLocalNameMapping("commonName", "nsaimid"); } private void addLocalNameMapping(String davName, String ldapName) { mapLocalNameDavToLdap.put(davName, ldapName); mapLocalNameLdapToDav.put(ldapName, davName); } public ValueAndType getProperty(QName field, Resource resource) throws NotAuthorizedException, BadRequestException { ValueAndType vt = propertyBuilder.getProperty(field, resource); return vt; } public QName mapToDavProp(String s) { QName q = mapQNameLdapToDav.get(s); if (q != null) { return q; } else { String mappedLocalName = mapLocalNameLdapToDav.get(s); if( mappedLocalName != null ) { return new QName(ldapNameSpace, mappedLocalName); } return new QName(ldapNameSpace, s); } } public String mapToLdapProp(QName p) { String q = mapQNameDavToLdap.get(p); if (q != null) { return q; } else { String mappedLocalName = mapLocalNameDavToLdap.get(p.getLocalPart()); if( mappedLocalName != null ) { return mappedLocalName; } return p.getLocalPart(); } } public String getLdapPropertyValue(String prop, Resource resource) throws BadRequestException { QName qn = mapToDavProp(prop); ValueAndType vt; try { vt = getProperty(qn, resource); } catch (NotAuthorizedException ex) { log.trace("property access not authorised"); vt = null; } Object propValue; if (vt != null && vt.getValue() != null) { propValue = vt.getValue(); return propValue.toString(); } LogUtils.trace(log, "getLdapPropertyValue: property not found: ldap property: ", prop, " - dav prop: ", qn, "resource: ", resource.getClass()); return null; } public Set<LdapMappedProp> mapProperties(boolean returnAllAttributes, Set<String> returningAttributes, PropFindableResource res) throws NotAuthorizedException, BadRequestException { if (returnAllAttributes) { Set<QName> davProps = propertyBuilder.findAllProps(res); Set<LdapMappedProp> mapped = new HashSet<LdapMappedProp>(); for (QName p : davProps) { String ldapProp = mapToLdapProp(p); LdapMappedProp ldapMappedProp = new LdapMappedProp(ldapProp, p); mapped.add(ldapMappedProp); } return mapped; } else { Set<LdapMappedProp> mapped = new HashSet<LdapMappedProp>(); for (String s : returningAttributes) { QName qn = mapToDavProp(s); LdapMappedProp ldapMappedProp = new LdapMappedProp(s, qn); mapped.add(ldapMappedProp); } return mapped; } } public class LdapMappedProp { String ldapName; QName mappedName; public LdapMappedProp(String ldapName, QName mappedName) { this.ldapName = ldapName; this.mappedName = mappedName; } } }
[ "sS.Koulouzis@uva.nl" ]
sS.Koulouzis@uva.nl
515587d800a20d23d9d6ace776caf9f2355c95e1
6d01d0b0ed45a318ca3f4eb1baa215cbe458139e
/programprocessor/experiment-dataset/TrainingData/51CTO-java120022/java120022/MR/517/src/com/zzk/SetParagraphAlignment.java
2382ec3a0b619b3e1a509ca3cf531438016f9925
[]
no_license
yangyixiaof/gitcrawler
83444de5de1e0e0eb1cb2f1e2f39309f10b52eb5
f07f0525bcb33c054820cf27e9ff73aa591ed3e0
refs/heads/master
2022-09-16T20:07:56.380308
2020-04-12T17:03:02
2020-04-12T17:03:02
46,218,938
0
1
null
2022-09-01T22:36:18
2015-11-15T13:36:48
Java
GB18030
Java
false
false
1,468
java
package com.zzk; import java.io.FileNotFoundException; import java.io.FileOutputStream; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Element; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; public class SetParagraphAlignment { public static void main(String[] args){ Document document = new Document();// 创建文档对象 try { PdfWriter.getInstance(document, new FileOutputStream("c:\\Java.pdf"));// 关联文档对象与输出流 document.open();// 打开文档 Paragraph paragraph1 = new Paragraph("www.mingrosoft.com");// 创建段落并添加内容 paragraph1.setAlignment(Element.ALIGN_LEFT); // 左对齐 document.add(new Paragraph(paragraph1)); // 向文档添加段落 Paragraph paragraph2 = new Paragraph("www.mingribook.com");// 创建段落并添加内容 paragraph2.setAlignment(Element.ALIGN_RIGHT);// 右对齐 document.add(new Paragraph(paragraph2)); // 向文档添加段落 Paragraph paragraph3 = new Paragraph("www.mingribccd.com"); // 创建段落并添加内容 paragraph3.setAlignment(Element.ALIGN_CENTER);// 居中对齐 document.add(new Paragraph(paragraph3)); // 向文档添加段落 document.close();// 关闭文档 } catch (FileNotFoundException e) { e.printStackTrace(); } catch (DocumentException e) { e.printStackTrace(); } } }
[ "yyx@ubuntu" ]
yyx@ubuntu
7816b7ed9562487709bce7bfd52241de7e4a3c75
d6920bff5730bf8823315e15b0858c68a91db544
/android/ftsafe_0.7.04_source_from_jdcore/gnu/mapping/Procedure3.java
d13cde353a4348a92cbfb7dcb83d20a01cea2933
[]
no_license
AppWerft/Ti.FeitianSmartcardReader
f862f9a2a01e1d2f71e09794aa8ff5e28264e458
48657e262044be3ae8b395065d814e169bd8ad7d
refs/heads/master
2020-05-09T10:54:56.278195
2020-03-17T08:04:07
2020-03-17T08:04:07
181,058,540
2
0
null
null
null
null
UTF-8
Java
false
false
900
java
package gnu.mapping; public abstract class Procedure3 extends Procedure { public Procedure3() {} public Procedure3(String n) { super(n); } public int numArgs() { return 12291; } public Object apply0() { throw new WrongArguments(this, 0); } public Object apply1(Object arg1) { throw new WrongArguments(this, 1); } public Object apply2(Object arg1, Object arg2) { throw new WrongArguments(this, 2); } public abstract Object apply3(Object paramObject1, Object paramObject2, Object paramObject3) throws Throwable; public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) { throw new WrongArguments(this, 4); } public Object applyN(Object[] args) throws Throwable { if (args.length != 3) throw new WrongArguments(this, args.length); return apply3(args[0], args[1], args[2]); } }
[ "“rs@hamburger-appwerft.de“" ]
“rs@hamburger-appwerft.de“
43d74c749098c31fc94adc5dd06a2d2500701385
37fd724cc7f04a8d7e7d0ba4bd8b208d0ba0abf1
/trunk/sqltoy-orm/src/main/java/org/sagacity/sqltoy/model/DataSetResult.java
0cdb12d6b247ec0bad018361e2b88c73cdfcfab0
[ "Apache-2.0" ]
permissive
740202157/sagacity-sqltoy
7733b88980ae685e0d3526ad250aebbdd9252baa
b187461e4fb8968ed7c00f8589a90de496279b4a
refs/heads/master
2023-01-14T10:09:21.306227
2020-11-19T06:30:18
2020-11-19T06:30:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,171
java
/** * */ package org.sagacity.sqltoy.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.sagacity.sqltoy.utils.CollectionUtil; /** * @project sagacity-sqltoy4.0 * @description 提供一个基础的数据集对象模型 * @author chenrenfei <a href="mailto:zhongxuchen@gmail.com">联系作者</a> * @version id:DataSetResult.java,Revision:v1.0,Date:2016年3月8日 */ @SuppressWarnings("rawtypes") public class DataSetResult<T> implements Serializable { private static final long serialVersionUID = -2125295102578360914L; /** * 标题的名称 */ private String[] labelNames; /** * 标题类别 */ private String[] labelTypes; /** * 结果记录信息,默认为空集合 */ private List<T> rows; /** * 总记录数量 */ private Long recordCount = 0L; /** * @return the labelNames */ public String[] getLabelNames() { return labelNames; } /** * @param labelNames the labelNames to set */ public void setLabelNames(String[] labelNames) { this.labelNames = labelNames; } /** * @return the labelTypes */ public String[] getLabelTypes() { return labelTypes; } /** * @param labelTypes the labelTypes to set */ public void setLabelTypes(String[] labelTypes) { this.labelTypes = labelTypes; } /** * @return the rows */ public List<T> getRows() { if (this.rows == null) { return new ArrayList<T>(); } return this.rows; } /** * @param rows the rows to set */ public void setRows(List<T> rows) { this.rows = rows; } /** * @todo 返回含标题的结果集 * @return */ @SuppressWarnings("unchecked") public List getLabelRows() { List result = new ArrayList(); result.add(CollectionUtil.arrayToList(labelNames)); if (this.getRows() != null) { result.addAll(this.getRows()); } return result; } /** * @return the totalCount */ public Long getRecordCount() { if (recordCount == null) { return Long.valueOf(getRows().size()); } return recordCount; } /** * @param totalCount the totalCount to set */ public void setRecordCount(Long recordCount) { this.recordCount = recordCount; } }
[ "102309713@qq.com" ]
102309713@qq.com
188393d3b089763468f42199449ba94842d8f78b
98a081161c3ec4e8c04f8bc7c945ecbc6df4c5ec
/src/main/java/com/vn/osp/modelview/Authority.java
ec8c72bbf052d73796d3b93b96da3031140a39a1
[]
no_license
TieuTruc14/uchi_v3_tccc
853b5544bd4e718827167ce778c5bc619ec8b5ba
57b75f7b3a84fe58fa61f28b54090fd10ed25248
refs/heads/master
2020-03-27T08:42:24.977110
2018-08-27T10:03:03
2018-08-27T10:03:03
146,279,809
0
0
null
null
null
null
UTF-8
Java
false
false
3,336
java
package com.vn.osp.modelview; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; public class Authority { private String code; private String name; private Long entry_user_id; private String entry_user_name; private String entry_date_time; private Long update_user_id; private String update_user_name; private String update_date_time; private Long type; public Authority() { } @JsonCreator public Authority(@JsonProperty(value = "id", required = false) final String code, @JsonProperty(value = "name", required = false) final String name, @JsonProperty(value = "entry_user_id", required = false) final Long entry_user_id, @JsonProperty(value = "entry_user_name", required = false) final String entry_user_name, @JsonProperty(value = "entry_date_time", required = false) final String entry_date_time, @JsonProperty(value = "update_user_id", required = false) final Long update_user_id, @JsonProperty(value = "update_user_name", required = false) final String update_user_name, @JsonProperty(value = "update_date_time", required = false) final String update_date_time, @JsonProperty(value = "type", required = false) final Long type) { this.code = code; this.name = name; this.entry_user_id = entry_user_id; this.entry_user_name = entry_user_name; this.entry_date_time = entry_date_time; this.update_user_id = update_user_id; this.update_user_name = update_user_name; this.update_date_time = update_date_time; this.type = type; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getEntry_user_id() { return entry_user_id; } public void setEntry_user_id(Long entry_user_id) { this.entry_user_id = entry_user_id; } public String getEntry_user_name() { return entry_user_name; } public void setEntry_user_name(String entry_user_name) { this.entry_user_name = entry_user_name; } public Long getUpdate_user_id() { return update_user_id; } public void setUpdate_user_id(Long update_user_id) { this.update_user_id = update_user_id; } public String getUpdate_user_name() { return update_user_name; } public void setUpdate_user_name(String update_user_name) { this.update_user_name = update_user_name; } public String getEntry_date_time() { return entry_date_time; } public void setEntry_date_time(String entry_date_time) { this.entry_date_time = entry_date_time; } public String getUpdate_date_time() { return update_date_time; } public void setUpdate_date_time(String update_date_time) { this.update_date_time = update_date_time; } public Long getType() { return type; } public void setType(Long type) { this.type = type; } }
[ "manh.phamtien142@gmail.com" ]
manh.phamtien142@gmail.com
f5507168970d411b790ad78e9a63b284a2a922ee
85cfc652459ca2f015aa8c8dc55240721632cee0
/bin/platform/bootstrap/gensrc/de/hybris/platform/solrfacetsearch/enums/IndexerOperationValues.java
8369757918f15a54a9fc3b48535cf1f90017ce23
[]
no_license
varshadhamal/Hybris-test
43e5479b9909e41e6276dfde6b4f4ff1cdae9b0e
a29c6090680110ab733e2077772c9c477d497df6
refs/heads/master
2020-03-18T06:31:01.940494
2018-05-22T11:58:12
2018-05-22T11:58:12
134,400,503
0
1
null
null
null
null
UTF-8
Java
false
false
1,993
java
/* * * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the license agreement you entered into with SAP Hybris. * */ package de.hybris.platform.solrfacetsearch.enums; import de.hybris.platform.core.HybrisEnumValue; /** * Generated enum IndexerOperationValues declared at extension solrfacetsearch. */ @SuppressWarnings("PMD") public enum IndexerOperationValues implements HybrisEnumValue { /** * Generated enum value for IndexerOperationValues.full declared at extension solrfacetsearch. */ FULL("full"), /** * Generated enum value for IndexerOperationValues.update declared at extension solrfacetsearch. */ UPDATE("update"), /** * Generated enum value for IndexerOperationValues.delete declared at extension solrfacetsearch. */ DELETE("delete"), /** * Generated enum value for IndexerOperationValues.partial_update declared at extension solrfacetsearch. */ PARTIAL_UPDATE("partial_update"); /**<i>Generated model type code constant.</i>*/ public final static String _TYPECODE = "IndexerOperationValues"; /**<i>Generated simple class name constant.</i>*/ public final static String SIMPLE_CLASSNAME = "IndexerOperationValues"; /** The code of this enum.*/ private final String code; /** * Creates a new enum value for this enum type. * * @param code the enum value code */ private IndexerOperationValues(final String code) { this.code = code.intern(); } /** * Gets the code of this enum value. * * @return code of value */ @Override public String getCode() { return this.code; } /** * Gets the type this enum value belongs to. * * @return code of type */ @Override public String getType() { return SIMPLE_CLASSNAME; } }
[ "varsha.d.saste@accenture.com" ]
varsha.d.saste@accenture.com
865b73963b57f98652db326a74d297c7791b23de
d4c3659ac9ddb5e3c0010b326f3bcc7e33ce0bed
/ren-automation-ui/src/main/java/com/exigen/ren/main/modules/policy/common/actions/certificate/ProcedureCodeSearchAction.java
2b4673f0a6c0d0473ff3ef64e04f4bdf0795233b
[]
no_license
NandiniDR29/regression-test
cbfdae60e8b462cf32485afb3df0d9504200d0e1
c4acbc3488195217f9d6a780130d2e5dfe01d6e5
refs/heads/master
2023-07-03T14:35:40.673146
2021-08-11T07:03:13
2021-08-11T07:03:13
369,527,619
0
0
null
null
null
null
UTF-8
Java
false
false
897
java
package com.exigen.ren.main.modules.policy.common.actions.certificate; import com.exigen.ren.common.Action; import com.exigen.ren.common.Tab; import com.exigen.ren.common.Workspace; import com.exigen.ren.common.pages.Page; import com.exigen.ren.main.enums.ActionConstants; import com.exigen.ren.main.modules.policy.common.tabs.certificate.ProcedureCodeSearchTab; public class ProcedureCodeSearchAction implements Action{ @Override public String getName() { return ActionConstants.ProductAction.PROCEDURE_CODE_SEARCH; } private Workspace workspace = new Workspace.Builder() .registerTab(ProcedureCodeSearchTab.class) .build(); @Override public Workspace getWorkspace() { return workspace; } public Action exit() { Tab.buttonCancel.click(); Page.dialogConfirmation.confirm(); return this; } }
[ "Nramachandra@previseit.com" ]
Nramachandra@previseit.com
5c3af22b10c901d9a94fdb97092005326d1f1572
c4ca391ff5dc34b3552e5cbe31c55f6d16cfab21
/external/demo/src/main/java/com/sf/demo/list/ListIndexActivity.java
8876b7d055cc647bb50cc7e3a26b7c3b571f474d
[]
no_license
JacksonNing/SofarMusic
3ab31b32a198b0bf40bee5652c63d8275a1f4b78
1f1e74fb4145d92b81883214203811182833d631
refs/heads/master
2020-05-16T22:11:40.842638
2018-12-20T12:52:26
2018-12-20T12:52:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,770
java
package com.sf.demo.list; import android.content.Intent; import com.sf.base.UIRootActivity; import com.sf.demo.R; import com.sf.demo.list.drag.MenuEditActivity; import com.sf.demo.list.expand.ExpandListActivity; import com.sf.demo.list.page.PageGridActivity; import com.sf.demo.list.refresh.LoadMoreActivity; import com.sf.demo.list.slide.MessageListActivity; import com.sf.demo.list.sort.BankListActivity; import com.sf.widget.flowlayout.FlowTagList; /** * Created by sufan on 17/6/26. */ public class ListIndexActivity extends UIRootActivity { private FlowTagList tag_fl; private String[] mTags={"排序查询列表","滑动删除列表","拖拽排序列表","分页菜单","折叠列表","上拉加载更多"}; @Override protected int getLayoutId() { return R.layout.activity_demo_show; } @Override protected void initTitle() { head_title.setText("列表样式集合"); } @Override public void initView() { tag_fl = (FlowTagList) findViewById(R.id.tag_fl); dynamicAddView(tag_fl, "tagColor", R.color.themeColor); } @Override public void initData() { tag_fl.setTags(mTags); } @Override public void initEvent() { tag_fl.setOnTagClickListener(new FlowTagList.OnTagClickListener() { @Override public void OnTagClick(String text, int position) { for (int i = 0; i < mTags.length; i++) { if (i == position) { tag_fl.setChecked(true, position); } else { tag_fl.setChecked(false, i); } } tag_fl.notifyAllTag(); doTag(text,position); } }); } private void doTag(String text,int position){ if("排序查询列表".equals(text)){ Intent sort=new Intent(this, BankListActivity.class); startActivity(sort); }else if("滑动删除列表".equals(text)){ Intent slide=new Intent(this, MessageListActivity.class); startActivity(slide); }else if("拖拽排序列表".equals(text)){ Intent drag=new Intent(this, MenuEditActivity.class); startActivity(drag); }else if("分页菜单".equals(text)){ Intent page=new Intent(this, PageGridActivity.class); startActivity(page); }else if("折叠列表".equals(text)){ Intent expand=new Intent(this, ExpandListActivity.class); startActivity(expand); }else if("上拉加载更多".equals(text)){ Intent loadMore=new Intent(this, LoadMoreActivity.class); startActivity(loadMore); } } }
[ "sofarsogood001@163.com" ]
sofarsogood001@163.com
1f09c8e9cbd3fdd40d94e3c0f21270028601cec1
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/6/6_48c345773fd12602e2ea7073d04a6ca27c974d2a/RCDPlugin/6_48c345773fd12602e2ea7073d04a6ca27c974d2a_RCDPlugin_t.java
b23b4c6f65b508dbdcb75006228dca450d9b997d
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
6,217
java
package me.hwei.bukkit.redstoneClockDetector; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.TreeMap; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.event.Event; import org.bukkit.event.Listener; import org.bukkit.event.Event.Priority; import org.bukkit.event.block.BlockRedstoneEvent; import org.bukkit.permissions.Permission; import org.bukkit.plugin.EventExecutor; import org.bukkit.plugin.java.JavaPlugin; public class RCDPlugin extends JavaPlugin implements CommandExecutor, Listener, EventExecutor { @Override public void onDisable() { this.getServer().getLogger().info(this.prefex_normal + "Disabled."); } @Override public void onEnable() { String pluginName = this.getDescription().getName(); this.prefex_normal = "[" + pluginName + "] "; this.prefex_color = "[" + ChatColor.YELLOW + pluginName + ChatColor.WHITE + "] "; this.getServer().getLogger().info(this.prefex_normal + "Enabled."); this.getCommand("rcd").setExecutor(this); this.permission = this.getDescription().getPermissions().get(0); this.getServer().getPluginManager().registerEvent(Event.Type.REDSTONE_CHANGE, this, this, Priority.Normal, this); } @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(sender instanceof Player) { this.player = (Player)sender; this.sender = null; } else { this.player = null; this.sender = sender; } if(!sender.hasPermission(this.permission)) { this.sendMessage("You don't have permissions."); return true; } if(this.taskId != -1) { this.sendMessage("Someone is using this. Try after " + this.waitingSeconds + " seconds."); return true; } this.waitingSeconds = 5; if(args.length >= 1) { try { int input = Integer.parseInt(args[0]); if(input > 0) { this.waitingSeconds = input; } } catch (NumberFormatException e) { } if(args.length == 2) { Player player = this.getServer().getPlayer(args[1]); if(player == null) { this.sendMessage("Can not find player: " + args[1] + " ."); return true; } if(this.sender == null) { this.sender = this.player; } this.player = player; } else if(args.length > 2) { this.sendMessage("Too many arguments."); return true; } } if(this.player == null) { this.sendMessage("Need to specify a player to teleport."); return true; } this.playerName = this.player.getName(); this.redstoneActivityCount = 0; this.redstoneActivityTable.clear(); this.taskId = this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { class ValueComparator implements Comparator { Map base; public ValueComparator(Map base) { this.base = base; } public int compare(Object a, Object b) { if((Integer)base.get(a) < (Integer)base.get(b)) { return 1; } else if((Integer)base.get(a) == (Integer)base.get(b)) { return 0; } else { return -1; } } } public void run() { player = getServer().getPlayer(playerName); if(player == null) { sendMessage("Player " + playerName + " dose not exists any more."); getServer().getScheduler().cancelTask(taskId); redstoneActivityTable.clear(); taskId = -1; return; } if(waitingSeconds == 0) { getServer().getScheduler().cancelTask(taskId); if(redstoneActivityTable.size() == 0) { sendMessage("No redstone activities found."); return; } ValueComparator bvc = new ValueComparator(redstoneActivityTable); TreeMap<Location, Integer> sortedMap = new TreeMap(bvc); sortedMap.putAll(redstoneActivityTable); Location l = sortedMap.keySet().iterator().next(); int acitvityCount = redstoneActivityTable.get(l); sendMessage("Teleporting " + playerName + " to x: " + l.getBlockX() + ", y: " + l.getBlockY() + ", z: " + l.getBlockZ() + " (Redstone activity count: " + acitvityCount + ")..."); player.teleport(l); redstoneActivityTable.clear(); taskId = -1; return; } sendMessage("Teleport " + playerName + " after " + waitingSeconds + " seconds. " + "(Overall redstone activity count: " + redstoneActivityCount + " )"); --waitingSeconds; } }, 0L, 20L); return false; } @Override public void execute(Listener listener, Event event) { if(this.taskId == -1) { return; } BlockRedstoneEvent e = null; if(event instanceof BlockRedstoneEvent) { e = (BlockRedstoneEvent)event; } else { return; } Location loc = e.getBlock().getLocation(); ++this.redstoneActivityCount; int count = 1; if(this.redstoneActivityTable.containsKey(loc)) { count += this.redstoneActivityTable.get(loc); } this.redstoneActivityTable.put(loc, count); } protected void sendMessage(String msg) { if(this.player != null) { this.player.sendMessage(this.prefex_color + msg); } if(this.sender != null) { if(this.sender instanceof Player) { this.sender.sendMessage(this.prefex_color + msg); } else { this.sender.sendMessage(this.prefex_normal + msg); } } } protected HashMap<Location, Integer> redstoneActivityTable = new HashMap<Location, Integer>(); protected int redstoneActivityCount = 0; protected int waitingSeconds = -1; protected CommandSender sender = null; protected Player player = null; protected String playerName = ""; protected int taskId = -1; protected String prefex_normal = ""; protected String prefex_color = ""; protected Permission permission = null; }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
02788f12aa7a5b63335a2a2a8871d55276428f91
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-ddoscoo/src/main/java/com/aliyuncs/ddoscoo/transform/v20200101/DescribeDDosEventAttackTypeResponseUnmarshaller.java
2831bdd7bc63e111c0a9bc96121a42604985ad2b
[ "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
1,895
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.ddoscoo.transform.v20200101; import java.util.ArrayList; import java.util.List; import com.aliyuncs.ddoscoo.model.v20200101.DescribeDDosEventAttackTypeResponse; import com.aliyuncs.ddoscoo.model.v20200101.DescribeDDosEventAttackTypeResponse.EventAttackType; import com.aliyuncs.transform.UnmarshallerContext; public class DescribeDDosEventAttackTypeResponseUnmarshaller { public static DescribeDDosEventAttackTypeResponse unmarshall(DescribeDDosEventAttackTypeResponse describeDDosEventAttackTypeResponse, UnmarshallerContext _ctx) { describeDDosEventAttackTypeResponse.setRequestId(_ctx.stringValue("DescribeDDosEventAttackTypeResponse.RequestId")); List<EventAttackType> attackTypes = new ArrayList<EventAttackType>(); for (int i = 0; i < _ctx.lengthValue("DescribeDDosEventAttackTypeResponse.AttackTypes.Length"); i++) { EventAttackType eventAttackType = new EventAttackType(); eventAttackType.setInPkts(_ctx.longValue("DescribeDDosEventAttackTypeResponse.AttackTypes["+ i +"].InPkts")); eventAttackType.setAttackType(_ctx.stringValue("DescribeDDosEventAttackTypeResponse.AttackTypes["+ i +"].AttackType")); attackTypes.add(eventAttackType); } describeDDosEventAttackTypeResponse.setAttackTypes(attackTypes); return describeDDosEventAttackTypeResponse; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
9cb6d519bc92f0115e95f92bc8bac9306047782c
5e218b07061acd559a4340ca018f3cc6032e5b25
/src/demo/command/base/EventRepository.java
d28537ab9acbb05c03af0c071f3987c438a4d475
[ "Apache-2.0" ]
permissive
jdepend/event-and-oo
503b4b34d67a7c294e006ede8cb4424f2eece927
518d7fa87fc97f44104a17f85270d07d6b049941
refs/heads/master
2021-01-10T19:19:06.732477
2014-05-05T07:22:48
2014-05-05T07:22:48
19,446,884
1
2
null
null
null
null
UTF-8
Java
false
false
3,488
java
package demo.command.base; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Timer; import java.util.TimerTask; import java.util.Vector; import demo.infrastructure.DateUtil; import demo.infrastructure.Identifyer; import demo.infrastructure.LogUtil; public class EventRepository { private List<Event> eventList = new Vector<Event>(); private Timer clearOldEventTimer; private final long keepDate = 7 * 24 * 3600 * 1000; private final int maxEventCount = 5000; private MongoDBTemplate mongoDBTemplate = new MongoDBTemplate(); public static final String Event = "Event"; public static final String EventTeam = "Team"; public EventRepository() { this.clearOldEventTimer = new Timer(); this.clearOldEventTimer.schedule(new ClearEventHandler(), 1000, 2000); } public List<Event> getEvents(Date start, List<Class<? extends Event>> types) { if (this.eventList.size() > 0) { Date end = this.eventList.get(0).getCreateTime(); if (start.compareTo(end) < 0) { this.load(start, end, types); } } List<Event> rtnEvents = new ArrayList<Event>(); for (Event event : eventList) { if (types.contains(event.getClass()) && event.getCreateTime().compareTo(start) > 0) { rtnEvents.add(event); } } return rtnEvents; } public void save(Event event) { eventList.add(event); event.save(); LogUtil.print(event + " saved."); } private void load(Date start, Date end, List<Class<? extends Event>> types) { Map<String, EventTeam> eventTeams = this.loadEventTeams(start, end); Map<String, Event> events = this.loadEvents(start, end, types); for (Event event : events.values()) { event.load(eventTeams, events); this.eventList.add(event); } } private Map<String, EventTeam> loadEventTeams(Date start, Date end) { Map<String, EventTeam> eventTeams = new HashMap<String, EventTeam>(); for (Identifyer identifyer : mongoDBTemplate.loadEventTeams(start, end)) { eventTeams.put(identifyer.getId(), (EventTeam) identifyer); } return eventTeams; } private Map<String, Event> loadEvents(Date start, Date end, List<Class<? extends Event>> types) { Map<String, Event> events = new LinkedHashMap<String, Event>(); for (Identifyer identifyer : mongoDBTemplate.loadEvents(start, end, types)) { events.put(identifyer.getId(), (Event) identifyer); } return events; } public void destory() { this.clearOldEventTimer.cancel(); } class ClearEventHandler extends TimerTask { @Override public void run() { clearWithCount(); clearWithDate(); } private void clearWithCount() { if (eventList.size() > maxEventCount) { Iterator<Event> it = eventList.iterator(); int i = 0; int end = eventList.size() - maxEventCount; while (i < end) { it.next(); it.remove(); i++; } } } private void clearWithDate() { Date clearDate = new Date(DateUtil.getSysDate().getTime() - keepDate); Iterator<Event> it = eventList.iterator(); Event event; boolean stop = false; while (it.hasNext() && !stop) { event = it.next(); if (event.getCreateTime().compareTo(clearDate) < 0) { it.remove(); } else { stop = true; } } } } }
[ "wangdg@neusoft.com" ]
wangdg@neusoft.com
bf35245a7cb7f7180ca1511b1eee4d02c8f11f84
8246da9a0ea49ef6e70bfb6bc05148fb6134ed89
/dianping2/src/main/java/com/dianping/map/basic/MapBasicFragment.java
982fae8834e15bc92f2d02302667a6f41737b181
[]
no_license
hezhongqiang/Dianping
2708824e30339e1abfb85e028bd27778e26adb56
b1a4641be06857fcf65466ce04f3de6b0b6f05ef
refs/heads/master
2020-05-29T08:48:38.251791
2016-01-13T08:09:05
2016-01-13T08:09:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,875
java
package com.dianping.map.basic; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.widget.Toast; import com.dianping.base.widget.NovaFragment; import com.dianping.locationservice.LocationService; import com.dianping.map.utils.ThirdpartyMapUtils; import com.dianping.model.Location; import com.dianping.v1.R.drawable; import com.tencent.tencentmap.mapsdk.maps.MapView; import com.tencent.tencentmap.mapsdk.maps.TencentMap; import com.tencent.tencentmap.mapsdk.maps.UiSettings; import com.tencent.tencentmap.mapsdk.maps.model.BitmapDescriptorFactory; import com.tencent.tencentmap.mapsdk.maps.model.CameraPosition; import com.tencent.tencentmap.mapsdk.maps.model.LatLng; import com.tencent.tencentmap.mapsdk.maps.model.Marker; import com.tencent.tencentmap.mapsdk.maps.model.MarkerOptions; public abstract class MapBasicFragment extends NovaFragment implements SensorEventListener { private boolean mIsLoaded; private long mLastSensorChangeTime = 0L; private TencentMap mMap; private MapView mMapView; private Marker mMyPosition; private SensorManager mSensorManager; private Marker mStartPosition; private void initMapAndLocClient() { this.mMap = this.mMapView.getMap(); this.mMap.setMyLocationEnabled(true); this.mMap.getUiSettings().setZoomControlsEnabled(false); this.mMap.setOnMapLoadedCallback(new MapBasicFragment.1(this)); setUpMap(); } private float normalizeDegree(float paramFloat) { return (720.0F + paramFloat) % 360.0F; } protected TencentMap getBasicMap() { return this.mMap; } protected MapView getBasicMapView() { return this.mMapView; } protected LatLng getMapCenter() { return getBasicMap().getCameraPosition().target; } protected LatLng getMyPosition() { if (locationService().hasLocation()) { Location localLocation = location(); if (localLocation != null) return new LatLng(localLocation.offsetLatitude(), localLocation.offsetLongitude()); } return null; } protected Marker getMyPositionMarker() { return this.mMyPosition; } protected LatLng gotoMyLocation() { Object localObject = locationService(); if (((LocationService)localObject).status() == 1) Toast.makeText(getActivity(), "正在定位,请稍候...", 1).show(); do { return null; if (((LocationService)localObject).status() != -1) continue; Toast.makeText(getActivity(), "暂时无法定位,请检查您手机的系统定位开关是否打开", 1).show(); return null; } while (((LocationService)localObject).status() != 2); localObject = getMyPosition(); ThirdpartyMapUtils.moveToLatLng(getBasicMap(), (LatLng)localObject, true); return (LatLng)localObject; } protected boolean isLoaded() { return this.mIsLoaded; } public void onAccuracyChanged(Sensor paramSensor, int paramInt) { } public void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); this.mSensorManager = ((SensorManager)getActivity().getSystemService("sensor")); } public void onDestroy() { if (this.mMapView != null) this.mMapView.onDestroy(); this.mMapView = null; super.onDestroy(); } public void onPause() { this.mSensorManager.unregisterListener(this); if (this.mMapView != null) this.mMapView.onPause(); super.onPause(); } public void onResume() { super.onResume(); if (this.mMapView != null) { initMapAndLocClient(); this.mMapView.onResume(); } this.mSensorManager.registerListener(this, this.mSensorManager.getDefaultSensor(3), 1); } public void onSensorChanged(SensorEvent paramSensorEvent) { if (getMyPositionMarker() != null) { long l = System.currentTimeMillis(); if (l - this.mLastSensorChangeTime > 1000L) { this.mLastSensorChangeTime = l; if (paramSensorEvent.accuracy <= 1) break label71; getMyPositionMarker().setIcon(BitmapDescriptorFactory.fromResource(R.drawable.map_location_self)); getMyPositionMarker().setRotateAngle(normalizeDegree(paramSensorEvent.values[0] * -1.0F)); } } return; label71: getMyPositionMarker().setIcon(BitmapDescriptorFactory.fromResource(R.drawable.map_my_location_circle)); } protected void setBasicMap(TencentMap paramTencentMap) { this.mMap = paramTencentMap; } protected void setBasicMapView(MapView paramMapView) { this.mMapView = paramMapView; } protected abstract void setUpMap(); protected double stringLatLng(String paramString) { return Double.valueOf(paramString).doubleValue(); } protected void updateMyLocationMarker() { LatLng localLatLng = getMyPosition(); if (localLatLng == null) return; if (this.mMyPosition != null) this.mMyPosition.setPosition(localLatLng); while (true) { localLatLng = new LatLng(localLatLng.latitude + 2.E-005D, localLatLng.longitude); if (this.mStartPosition == null) break; this.mStartPosition.setPosition(localLatLng); return; this.mMyPosition = this.mMap.addMarker(new MarkerOptions().position(localLatLng).anchor(0.5F, 0.5F).icon(BitmapDescriptorFactory.fromResource(R.drawable.map_my_location_circle))); } this.mStartPosition = this.mMap.addMarker(new MarkerOptions().position(localLatLng).anchor(0.5F, 0.5F).icon(BitmapDescriptorFactory.fromResource(R.drawable.map_start))); } } /* Location: C:\Users\xuetong\Desktop\dazhongdianping7.9.6\ProjectSrc\classes-dex2jar.jar * Qualified Name: com.dianping.map.basic.MapBasicFragment * JD-Core Version: 0.6.0 */
[ "xuetong@dkhs.com" ]
xuetong@dkhs.com
ad4e117fddb7b9ae105f4846bb26d1d7dae10223
13aad2320e7a9682c9a98f76d1a3524843398ee5
/gs-spring-boot-hutool/src/main/java/com/example/demo/bridge/makemoney/House.java
5fa31ac03008bfbaea2f141b0c969e8cc7de0195
[]
no_license
tomlxq/best-practice
035bcc8a42006bc1f7678e8f09d17e0b90a7a942
26f716a86c7e46f08dbbb42a01ce6b355ec1024c
refs/heads/master
2023-07-03T19:23:40.477296
2023-06-28T22:25:06
2023-06-28T22:25:06
57,468,405
28
20
null
2022-12-16T07:58:36
2016-05-01T01:01:28
CSS
UTF-8
Java
false
false
339
java
package com.example.demo.bridge.makemoney; /** * 功能描述 * * @author TomLuo * @date 2019/10/25 */ public class House implements Product { @Override public void produce() { System.out.println("开始盖公寓"); } @Override public void sell() { System.out.println("公寓卖钱了"); } }
[ "21429503@qq.com" ]
21429503@qq.com
7f7dd55d505f2eb48eaa6f8e21d3a1f83d5c9692
1a283757330c2a6c15c4dff319c1746c666c7f4e
/org.smeup.sys.il.flow/src/org/smeup/sys/il/flow/QAnnotation.java
618bb1c68e212d6121fd358b72062b8c23eecd11
[]
no_license
smeup/asup
b1aba55f13ab950901abab343ceb4f159b27a2d4
e7f79af4a1d1e753803175b34364062c77ba8c3b
refs/heads/master
2021-04-12T03:59:41.611091
2017-07-11T17:35:04
2017-07-11T17:35:04
37,124,794
4
3
null
null
null
null
UTF-8
Java
false
false
692
java
/** * Copyright (c) 2012, 2016 Sme.UP and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.smeup.sys.il.flow; import org.smeup.sys.il.core.meta.QFacet; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Annotation</b></em>'. * <!-- end-user-doc --> * * * @see org.smeup.sys.il.flow.QIntegratedLanguageFlowPackage#getAnnotation() * @model abstract="true" * @generated */ public interface QAnnotation extends QFacet { } // QAnnotation
[ "mattiarocchi@gmail.com" ]
mattiarocchi@gmail.com
5ac3413b76e67165b68a96ae05a16ac498aa28e3
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v2-release_source_from_JADX/sources/com/reactnativecommunity/netinfo/AmazonFireDeviceConnectivityPoller.java
2b14e4fed72160c1958e295b2f9e655dc839c1c6
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
4,527
java
package com.reactnativecommunity.netinfo; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Build; import android.os.Handler; public class AmazonFireDeviceConnectivityPoller { private static final String ACTION_CONNECTIVITY_CHECK = "com.amazon.tv.networkmonitor.CONNECTIVITY_CHECK"; private static final String ACTION_INTERNET_DOWN = "com.amazon.tv.networkmonitor.INTERNET_DOWN"; private static final String ACTION_INTERNET_UP = "com.amazon.tv.networkmonitor.INTERNET_UP"; private static final long POLLING_INTERVAL_MS = 10000; /* access modifiers changed from: private */ public final ConnectivityChangedCallback callback; /* access modifiers changed from: private */ public final Runnable checker = new PollerTask(); /* access modifiers changed from: private */ public final Context context; /* access modifiers changed from: private */ public Handler handler; /* access modifiers changed from: private */ public boolean pollerRunning = false; private final Receiver receiver = new Receiver(); public interface ConnectivityChangedCallback { void onAmazonFireDeviceConnectivityChanged(boolean z); } AmazonFireDeviceConnectivityPoller(Context context2, ConnectivityChangedCallback connectivityChangedCallback) { this.context = context2; this.callback = connectivityChangedCallback; } public void register() { if (isFireOsDevice()) { registerReceiver(); startPoller(); } } public void unregister() { if (isFireOsDevice()) { stopPoller(); unregisterReceiver(); } } private boolean isFireOsDevice() { return Build.MANUFACTURER.equals("Amazon") && (Build.MODEL.startsWith("AF") || Build.MODEL.startsWith("KF")); } private void registerReceiver() { if (!this.receiver.registered) { IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(ACTION_INTERNET_DOWN); intentFilter.addAction(ACTION_INTERNET_UP); this.context.registerReceiver(this.receiver, intentFilter); this.receiver.registered = true; } } private void startPoller() { if (!this.pollerRunning) { Handler handler2 = new Handler(); this.handler = handler2; this.pollerRunning = true; handler2.post(this.checker); } } private void unregisterReceiver() { if (this.receiver.registered) { this.context.unregisterReceiver(this.receiver); this.receiver.registered = false; } } private void stopPoller() { if (this.pollerRunning) { this.pollerRunning = false; this.handler.removeCallbacksAndMessages((Object) null); this.handler = null; } } private class Receiver extends BroadcastReceiver { private Boolean lastIsConnected; boolean registered; private Receiver() { this.registered = false; } public void onReceive(Context context, Intent intent) { boolean z; String action = intent == null ? null : intent.getAction(); if (AmazonFireDeviceConnectivityPoller.ACTION_INTERNET_DOWN.equals(action)) { z = false; } else if (AmazonFireDeviceConnectivityPoller.ACTION_INTERNET_UP.equals(action)) { z = true; } else { return; } Boolean bool = this.lastIsConnected; if (bool == null || bool.booleanValue() != z) { this.lastIsConnected = Boolean.valueOf(z); AmazonFireDeviceConnectivityPoller.this.callback.onAmazonFireDeviceConnectivityChanged(z); } } } private class PollerTask implements Runnable { private PollerTask() { } public void run() { if (AmazonFireDeviceConnectivityPoller.this.pollerRunning) { AmazonFireDeviceConnectivityPoller.this.context.sendBroadcast(new Intent(AmazonFireDeviceConnectivityPoller.ACTION_CONNECTIVITY_CHECK)); AmazonFireDeviceConnectivityPoller.this.handler.postDelayed(AmazonFireDeviceConnectivityPoller.this.checker, AmazonFireDeviceConnectivityPoller.POLLING_INTERVAL_MS); } } } }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
b62e0f1f428b731edcf045cde61e98d11f9fde33
ac5afca1ac2105490451bbe3602f3108ce495795
/41-boot-small/41-boot-small-server/src/main/java/com/myimooc/boot/small/server/mapper/AreaMapper.java
7535c6587e171c6937967b7bde0fc669a68ad6e4
[]
no_license
hongleixia/study-imooc
098b026092df3414a7bfa07b4baaa85ea7e79a93
c7cbaeaaba7cf99611c12bdae7ac8a5c11b1613b
refs/heads/master
2021-05-09T01:16:47.704913
2020-04-02T01:32:52
2020-04-02T01:32:52
119,794,327
1
0
null
2020-04-02T01:38:42
2018-02-01T06:36:43
Java
UTF-8
Java
false
false
970
java
package com.myimooc.boot.small.server.mapper; import com.myimooc.boot.small.server.po.Area; import org.springframework.stereotype.Repository; import java.util.List; /** * <br> * 标题: 区域表 DAO<br> * 描述: tb_area 表 DAO<br> * * @author zc * @date 2018/04/17 */ @Repository public interface AreaMapper { /** * 批量查询 * * @return 区域集合 */ List<Area> listAll(); /** * 详情查询 * * @param areaId 区域ID * @return 区域信息 */ Area findById(Integer areaId); /** * 创建区域 * * @param area 区域 PO * @return 影响记录数 */ Integer create(Area area); /** * 修改区域 * * @param area 区域 PO * @return 影响记录数 */ Integer update(Area area); /** * 删除区域 * * @param areaId 区域ID * @return 影响记录数 */ Integer delete(Integer areaId); }
[ "zccoder@aliyun.com" ]
zccoder@aliyun.com
51e124d1b564c2b8c842996a2415847a5961427c
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Spring/Spring5658.java
c5d9d1b95e144dafd900ac233b287fc7b16fe5f0
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
417
java
@Override public TypedValue getValueInternal(ExpressionState expressionState) throws EvaluationException { if (this.constant != null) { return this.constant; } else { List<Object> returnValue = new ArrayList<>(); int childCount = getChildCount(); for (int c = 0; c < childCount; c++) { returnValue.add(getChild(c).getValue(expressionState)); } return new TypedValue(returnValue); } }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
84a1fc133f28e1f91b3f17ca639eedf0452736b4
a1a51aad102f9f82647bb4624940bf1fd0486def
/engines/dyn4j/sandbox/org/dyn4j/sandbox/panels/ConvexShapePanel.java
014546f5410926cdaf0b6cbb1d0789172d09cde3
[]
no_license
Madzi/featurea
337c187b19c69e82956a4b8d711eb40dbbf07f7a
4ee44d5910617c1233a77e0787d85717ee5347a0
refs/heads/master
2020-12-11T05:58:44.584623
2016-07-25T20:54:07
2016-07-25T20:54:07
64,206,389
0
1
null
2016-07-26T09:00:15
2016-07-26T09:00:15
null
UTF-8
Java
false
false
2,278
java
/* * Copyright (c) 2010-2016 William Bittle http://www.dyn4j.org/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of conditions * and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions * and the following disclaimer in the documentation and/or other materials provided with the * distribution. * * Neither the name of dyn4j nor the names of its contributors may be used to endorse or * promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.dyn4j.sandbox.panels; import javax.swing.JPanel; import org.dyn4j.geometry.Convex; /** * Abstract panel used to configure a shape. * @author William Bittle * @version 1.0.0 * @since 1.0.0 */ public abstract class ConvexShapePanel extends JPanel implements InputPanel { /** The version id */ private static final long serialVersionUID = -2123887648523056197L; /** * Returns the currently configured shape. * <p> * If nothing has been set, the default shape is returned. * @return Convex */ public abstract Convex getShape(); /** * Returns the default shape for the panel. * @return Convex */ public abstract Convex getDefaultShape(); }
[ "kolesnikovichdn@gmail.com" ]
kolesnikovichdn@gmail.com
cc833fc2de634509dbccb115a89a0b4b2a4786e2
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/2.2.2/code/base/ui-eclipse/src/org/terracotta/dso/views/BootJarView.java
3a912a87a329d7204073448242c44ab25f37eafe
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
1,457
java
/* * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved. */ package org.terracotta.dso.views; import org.eclipse.core.resources.IFile; import org.eclipse.swt.SWT; import org.eclipse.swt.awt.SWT_AWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.part.ViewPart; import java.awt.BorderLayout; import java.awt.Frame; import java.awt.Panel; import javax.swing.JRootPane; import javax.swing.SwingUtilities; public class BootJarView extends ViewPart { private BootJarPanel m_bootJarPanel; public BootJarView() { super(); } public void createPartControl(Composite parent) { final IFile bootJarFile = BootJarPanel.getBootJarFile(); final Composite composite = new Composite(parent, SWT.NO_BACKGROUND|SWT.EMBEDDED); final Frame frame = SWT_AWT.new_Frame(composite); try { SwingUtilities.invokeAndWait(new Runnable() { public void run() { JRootPane rootPane = new JRootPane(); Panel root = new Panel(new BorderLayout()); frame.add(root); root.add(rootPane); m_bootJarPanel = new BootJarPanel(bootJarFile); rootPane.getContentPane().add(m_bootJarPanel); m_bootJarPanel.setVisible(true); } }); } catch(Exception e) { e.printStackTrace(); } } public void setFocus() { /**/ } }
[ "jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
jvoegele@7fc7bbf3-cf45-46d4-be06-341739edd864
8d414240fb222d526ea100c7a7c000caf12047a3
c08a77e1550344aac2038230fefb5c2f5856156e
/eventuate-tram-sagas-testing-support/src/main/java/io/eventuate/tram/sagas/testing/SagaParticipantChannels.java
ff13f419422690a3d8c3af8c8a32b632c86b851a
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
eventuate-tram/eventuate-tram-sagas
cf3a5e42302d9ee2d7a4ac4d908ee50e3a0ec924
33747676a54a3ecde6b9747d6ed7db3c74f383e2
refs/heads/master
2023-08-25T17:13:30.112535
2023-08-23T10:12:40
2023-08-23T10:12:40
107,930,307
956
227
NOASSERTION
2023-05-08T15:40:38
2017-10-23T04:01:49
Java
UTF-8
Java
false
false
375
java
package io.eventuate.tram.sagas.testing; import java.util.Arrays; import java.util.HashSet; import java.util.Set; public class SagaParticipantChannels { private Set<String> channels; public SagaParticipantChannels(String... channels) { this.channels = new HashSet<>(Arrays.asList(channels)); } public Set<String> getChannels() { return channels; } }
[ "chris@chrisrichardson.net" ]
chris@chrisrichardson.net
e62dfb49180bd2daccbbd8bb0b8d480b98a8bbed
4312a71c36d8a233de2741f51a2a9d28443cd95b
/RawExperiments/DB/Math 3.4RC3/AstorMain-Math 3.4RC3/src/variant-359/org/apache/commons/math/optimization/linear/AbstractLinearOptimizer.java
08e33ac197f0fe15b620cf0b557a46d8ac36703d
[]
no_license
SajjadZaidi/AutoRepair
5c7aa7a689747c143cafd267db64f1e365de4d98
e21eb9384197bae4d9b23af93df73b6e46bb749a
refs/heads/master
2021-05-07T00:07:06.345617
2017-12-02T18:48:14
2017-12-02T18:48:14
112,858,432
0
0
null
null
null
null
UTF-8
Java
false
false
2,490
java
package org.apache.commons.math.optimization.linear; public abstract class AbstractLinearOptimizer implements org.apache.commons.math.optimization.linear.LinearOptimizer { public static final int DEFAULT_MAX_ITERATIONS = 100; private int maxIterations; private int iterations; protected org.apache.commons.math.optimization.linear.LinearObjectiveFunction f; protected java.util.Collection<org.apache.commons.math.optimization.linear.LinearConstraint> constraints; protected org.apache.commons.math.optimization.GoalType goalType; protected boolean restrictToNonNegative; protected AbstractLinearOptimizer() { setMaxIterations(org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.DEFAULT_MAX_ITERATIONS); } public void setMaxIterations(int maxIterations) { org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.this.maxIterations = maxIterations; } public int getMaxIterations() { return maxIterations; } public int getIterations() { return iterations; } protected void incrementIterationsCounter() throws org.apache.commons.math.optimization.OptimizationException { if ((++(iterations)) > (maxIterations)) { throw new org.apache.commons.math.optimization.OptimizationException(new org.apache.commons.math.MaxIterationsExceededException(maxIterations)); } } public org.apache.commons.math.optimization.RealPointValuePair optimize(final org.apache.commons.math.optimization.linear.LinearObjectiveFunction f, final java.util.Collection constraints, final org.apache.commons.math.optimization.GoalType goalType, final boolean restrictToNonNegative) throws org.apache.commons.math.optimization.OptimizationException { org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.this.f = f; org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.this.constraints = constraints; org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.this.goalType = goalType; int[] centroid = new int[getPoint().length]; org.apache.commons.math.optimization.linear.AbstractLinearOptimizer.this.restrictToNonNegative = restrictToNonNegative; iterations = 0; return doOptimize(); } protected abstract org.apache.commons.math.optimization.RealPointValuePair doOptimize() throws org.apache.commons.math.optimization.OptimizationException; }
[ "sajjad.syed@ucalgary.ca" ]
sajjad.syed@ucalgary.ca
a19e859e7343b978e1643afc5bd3ef0f78c314e3
d24de9be4c3993d9dc726e9a3c74d9662c470226
/reverse/Rocketbank_All_3.12.4_source_from_JADX/sources/ru/rocketbank/r2d2/root/feed/FeedPresenter$setLoader$1.java
7be85d589ad91cb15bb2e5f476d7913f8ea48be2
[]
no_license
MEJIOMAH17/rocketbank-api
b18808ee4a2fdddd8b3045cd16655b0d82e0b13b
fc4eb0cbb4a8f52277fdb09a3b26b4cceef6ff79
refs/heads/master
2022-07-17T20:24:29.721131
2019-07-26T18:55:21
2019-07-26T18:55:21
198,698,231
4
0
null
2022-06-20T22:43:15
2019-07-24T19:31:49
Smali
UTF-8
Java
false
false
1,699
java
package ru.rocketbank.r2d2.root.feed; import android.util.Log; import kotlin.jvm.internal.Intrinsics; import ru.rocketbank.core.manager.AnalyticsManager; import ru.rocketbank.core.model.AbstractOperation; import ru.rocketbank.core.network.model.FeedItem; import rx.Subscriber; /* compiled from: FeedPresenter.kt */ public final class FeedPresenter$setLoader$1 extends Subscriber<FeedItem> { final /* synthetic */ FeedPresenter this$0; public final void onCompleted() { } FeedPresenter$setLoader$1(FeedPresenter feedPresenter) { this.this$0 = feedPresenter; } public final void onError(Throwable th) { Intrinsics.checkParameterIsNotNull(th, "e"); Log.e(this.this$0.TAG, "Change failed", th); AnalyticsManager.logException(th); } public final void onNext(FeedItem feedItem) { Intrinsics.checkParameterIsNotNull(feedItem, "feedItem"); if (!(this.this$0.getFeedAdapter() == null || feedItem.getOperation() == null)) { AbstractOperation operation = feedItem.getOperation(); if (operation == null) { Intrinsics.throwNpe(); } FeedAdapter feedAdapter; if (operation.isVisible()) { feedAdapter = this.this$0.getFeedAdapter(); if (feedAdapter == null) { Intrinsics.throwNpe(); } feedAdapter.changeItem(feedItem); return; } feedAdapter = this.this$0.getFeedAdapter(); if (feedAdapter == null) { Intrinsics.throwNpe(); } feedAdapter.removeItem(feedItem); } } }
[ "mekosichkin.ru" ]
mekosichkin.ru
4c22859926820bb0d6ca4129a9a5c80762e384ca
74b67c72395362645cbe365a5e28ec94254dc53e
/project/src/COOK72/ProbD.java
704ebbed5e517dc546201ecf6e723cf609d5e139
[]
no_license
ankurverma1994/Competitive-Programming
59671da28b908e5015865059cd261428da018163
9366532f64537e04dfba1768edf7dc59bc0bb1a1
refs/heads/master
2020-03-28T07:33:52.426331
2018-10-13T09:19:00
2018-10-13T09:19:00
147,909,843
0
0
null
null
null
null
UTF-8
Java
false
false
4,236
java
package COOK72; /** * Created by ankurverma1994 * My code is awesome! */ import java.io.*; import java.util.*; import java.math.*; class ProbD { final int mod = (int) 1e9 + 7; final double eps = 1e-6; final double pi = Math.PI; final long inf = Long.MAX_VALUE / 2; //------------> Solution starts here!! @SuppressWarnings("Main Logic") void solve() { for (int tc = ii(); tc > 0; tc--) { } } //------------> Solution ends here!! InputStream obj; PrintWriter out; String check = ""; public static void main(String[] args) throws IOException { new Thread(null, new Runnable() { public void run() { try { new ProbD().main1(); } catch (IOException e) { e.printStackTrace(); } catch (StackOverflowError e) { System.out.println("RTE"); } } }, "1", 1 << 26).start(); } void main1() throws IOException { out = new PrintWriter(System.out); obj = check.isEmpty() ? System.in : new ByteArrayInputStream(check.getBytes()); // obj=check.isEmpty() ? new FileInputStream("/home/ankurverma1994/input.txt") : new ByteArrayInputStream(check.getBytes()); solve(); out.flush(); out.close(); } byte inbuffer[] = new byte[1024]; int lenbuffer = 0, ptrbuffer = 0; int readByte() { if (lenbuffer == -1) throw new InputMismatchException(); if (ptrbuffer >= lenbuffer) { ptrbuffer = 0; try { lenbuffer = obj.read(inbuffer); } catch (IOException e) { throw new InputMismatchException(); } } if (lenbuffer <= 0) return -1; return inbuffer[ptrbuffer++]; } String is() { int b = skip(); StringBuilder sb = new StringBuilder(); while (!(isSpaceChar(b))) // when nextLine, (isSpaceChar(b) && b!=' ') { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } int ii() { int num = 0, b; boolean minus = false; while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; if (b == '-') { minus = true; b = readByte(); } while (true) { if (b >= '0' && b <= '9') { num = num * 10 + (b - '0'); } else { return minus ? -num : num; } b = readByte(); } } long il() { long num = 0; int b; boolean minus = false; while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; if (b == '-') { minus = true; b = readByte(); } while (true) { if (b >= '0' && b <= '9') { num = num * 10 + (b - '0'); } else { return minus ? -num : num; } b = readByte(); } } boolean isSpaceChar(int c) { return (!(c >= 33 && c <= 126)); } int skip() { int b; while ((b = readByte()) != -1 && isSpaceChar(b)) ; return b; } float nf() { return Float.parseFloat(is()); } double id() { return Double.parseDouble(is()); } char ic() { return (char) skip(); } int[] iia(int n) { int a[] = new int[n]; for (int i = 0; i < n; i++) a[i] = ii(); return a; } long[] ila(int n) { long a[] = new long[n]; for (int i = 0; i < n; i++) a[i] = il(); return a; } String[] isa(int n) { String a[] = new String[n]; for (int i = 0; i < n; i++) a[i] = is(); return a; } double[][] idm(int n, int m) { double a[][] = new double[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) a[i][j] = id(); return a; } int[][] iim(int n, int m) { int a[][] = new int[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) a[i][j] = ii(); return a; } }
[ "ankurverma1994@gmail.com" ]
ankurverma1994@gmail.com
4dc832a72c2cb402a8fac4caf78639c6e53c10f4
549bf4abc47f0e7a51b4cafb624567f898bf4896
/org/shaded/apache/http/impl/cookie/CookieSpecBase.java
b3f56834913fbe359abcf116d04a7616168becc7
[ "Apache-2.0", "MIT" ]
permissive
junpengwang/fire-source
154672546641304083460d5584cafa0692e9ecd0
5fe4885ba22628a4a0706c781db5efb54a25adaa
refs/heads/master
2020-12-24T18:13:54.821338
2016-05-19T06:00:03
2016-05-19T06:00:03
59,177,886
0
0
null
null
null
null
UTF-8
Java
false
false
4,578
java
/* */ package org.shaded.apache.http.impl.cookie; /* */ /* */ import java.util.ArrayList; /* */ import java.util.List; /* */ import java.util.Locale; /* */ import org.shaded.apache.http.HeaderElement; /* */ import org.shaded.apache.http.NameValuePair; /* */ import org.shaded.apache.http.annotation.NotThreadSafe; /* */ import org.shaded.apache.http.cookie.Cookie; /* */ import org.shaded.apache.http.cookie.CookieAttributeHandler; /* */ import org.shaded.apache.http.cookie.CookieOrigin; /* */ import org.shaded.apache.http.cookie.MalformedCookieException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ @NotThreadSafe /* */ public abstract class CookieSpecBase /* */ extends AbstractCookieSpec /* */ { /* */ protected static String getDefaultPath(CookieOrigin origin) /* */ { /* 53 */ String defaultPath = origin.getPath(); /* 54 */ int lastSlashIndex = defaultPath.lastIndexOf('/'); /* 55 */ if (lastSlashIndex >= 0) { /* 56 */ if (lastSlashIndex == 0) /* */ { /* 58 */ lastSlashIndex = 1; /* */ } /* 60 */ defaultPath = defaultPath.substring(0, lastSlashIndex); /* */ } /* 62 */ return defaultPath; /* */ } /* */ /* */ protected static String getDefaultDomain(CookieOrigin origin) { /* 66 */ return origin.getHost(); /* */ } /* */ /* */ protected List<Cookie> parse(HeaderElement[] elems, CookieOrigin origin) throws MalformedCookieException /* */ { /* 71 */ List<Cookie> cookies = new ArrayList(elems.length); /* 72 */ for (HeaderElement headerelement : elems) { /* 73 */ String name = headerelement.getName(); /* 74 */ String value = headerelement.getValue(); /* 75 */ if ((name == null) || (name.length() == 0)) { /* 76 */ throw new MalformedCookieException("Cookie name may not be empty"); /* */ } /* */ /* 79 */ BasicClientCookie cookie = new BasicClientCookie(name, value); /* 80 */ cookie.setPath(getDefaultPath(origin)); /* 81 */ cookie.setDomain(getDefaultDomain(origin)); /* */ /* */ /* 84 */ NameValuePair[] attribs = headerelement.getParameters(); /* 85 */ for (int j = attribs.length - 1; j >= 0; j--) { /* 86 */ NameValuePair attrib = attribs[j]; /* 87 */ String s = attrib.getName().toLowerCase(Locale.ENGLISH); /* */ /* 89 */ cookie.setAttribute(s, attrib.getValue()); /* */ /* 91 */ CookieAttributeHandler handler = findAttribHandler(s); /* 92 */ if (handler != null) { /* 93 */ handler.parse(cookie, attrib.getValue()); /* */ } /* */ } /* 96 */ cookies.add(cookie); /* */ } /* 98 */ return cookies; /* */ } /* */ /* */ public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException /* */ { /* 103 */ if (cookie == null) { /* 104 */ throw new IllegalArgumentException("Cookie may not be null"); /* */ } /* 106 */ if (origin == null) { /* 107 */ throw new IllegalArgumentException("Cookie origin may not be null"); /* */ } /* 109 */ for (CookieAttributeHandler handler : getAttribHandlers()) { /* 110 */ handler.validate(cookie, origin); /* */ } /* */ } /* */ /* */ public boolean match(Cookie cookie, CookieOrigin origin) { /* 115 */ if (cookie == null) { /* 116 */ throw new IllegalArgumentException("Cookie may not be null"); /* */ } /* 118 */ if (origin == null) { /* 119 */ throw new IllegalArgumentException("Cookie origin may not be null"); /* */ } /* 121 */ for (CookieAttributeHandler handler : getAttribHandlers()) { /* 122 */ if (!handler.match(cookie, origin)) { /* 123 */ return false; /* */ } /* */ } /* 126 */ return true; /* */ } /* */ } /* Location: /Users/junpengwang/Documents/FireJar/firebase-client-android-2.3.1.jar!/org/shaded/apache/http/impl/cookie/CookieSpecBase.class * Java compiler version: 5 (49.0) * JD-Core Version: 0.7.1 */
[ "wangjunpeng@wilddog.com" ]
wangjunpeng@wilddog.com
544c8bad511180b7d8a35314da13ff08d6789f0f
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_f0cf3ac888a03f22ec304958f0962580e4ded063/TownState/2_f0cf3ac888a03f22ec304958f0962580e4ded063_TownState_t.java
fe8e91c6ba5a8a9c0974ae9d272aaa7d4b02d98e
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,809
java
package states; import java.util.ArrayList; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.StateBasedGame; import org.newdawn.slick.tiled.TiledMap; import core.MainGame; import weapons.Bear; import weapons.Sword; import weapons.Weapon; import dudes.Knight; import dudes.Monster; public class TownState extends AreaState { public TownState(int stateID) { super(stateID); } public void init(GameContainer container, StateBasedGame game) throws SlickException { super.init(container, game); bgImage = new TiledMap("Assets/World/Map2.tmx"); areaLength = 200; // note: players are initialized ONLY in the first area players[0].init(0); players[1].init(1); ArrayList<Monster> group_1 = new ArrayList<Monster>(); Knight g1_knight1 = new Knight(container.getWidth(), container.getHeight() - 80); Knight g1_knight2 = new Knight(container.getWidth(), container.getHeight() - 160); Knight g1_knight3 = new Knight(container.getWidth(), container.getHeight() - 240); g1_knight1.init(); g1_knight2.init(); g1_knight3.init(); group_1.add(g1_knight1); group_1.add(g1_knight2); group_1.add(g1_knight3); ArrayList<Monster> group_2 = new ArrayList<Monster>(); Knight g2_knight1 = new Knight(container.getWidth(), container.getHeight() - 80); Knight g2_knight2 = new Knight(container.getWidth(), container.getHeight() - 160); Knight g2_knight3 = new Knight(container.getWidth(), container.getHeight() - 240); g2_knight1.init(); g2_knight2.init(); g2_knight3.init(); group_2.add(g2_knight1); group_2.add(g2_knight2); group_2.add(g2_knight3); ArrayList<Monster> group_3 = new ArrayList<Monster>(); Knight g3_knight1 = new Knight(container.getWidth(), container.getHeight() - 80); Knight g3_knight2 = new Knight(container.getWidth(), container.getHeight() - 160); Knight g3_knight3 = new Knight(container.getWidth(), container.getHeight() - 240); g3_knight1.init(); g3_knight2.init(); g3_knight3.init(); group_3.add(g3_knight1); group_3.add(g3_knight2); group_3.add(g3_knight3); monsters.add(group_1); monsters.add(group_2); monsters.add(group_3); battleStops = new int[3]; battleStops[0] = 1000; battleStops[1] = 2000; battleStops[2] = 3000; } @Override public ArrayList<Weapon> makeInitItems() throws SlickException { ArrayList<Weapon> o = new ArrayList<Weapon>(); Weapon k1 = new Sword(1200f, MainGame.GAME_HEIGHT - 100); Weapon k2 = new Bear(1300f, MainGame.GAME_HEIGHT - 100); k1.createGroundSprite(); k2.createGroundSprite(); o.add(k1); o.add(k2); return o; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
0b943ddf57467d8bc4e38f29b7b9ddc5a46e4931
925ac6b8c9035e1c7c43440229df07ef1bf43b38
/src/dark/api/al/coding/args/ArgumentData.java
9af9c5aa1fc2f41558e56f48f15e5565d7a5148e
[]
no_license
Hisirious/Assembly-Line
7aa74b04246cffc19884d78941e29f12a4847816
672b8a93f82ffa7e9c96305ae0aff067e6d243f0
refs/heads/master
2020-12-25T20:42:32.876458
2013-12-10T12:03:08
2013-12-10T12:03:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,679
java
package dark.api.al.coding.args; import net.minecraft.nbt.NBTTagCompound; import dark.api.save.ISaveObj; import dark.api.save.NBTFileHelper; /** Used to store arguments in a way that can be easier to read, limit, and understand * * @author DarkGuardsman */ public class ArgumentData implements ISaveObj { protected String name; protected Object currentValue; protected final Object defaultValue; public ArgumentData(String name, Object defaultValue) { this.name = name; this.defaultValue = defaultValue; this.currentValue = defaultValue; } /** Sets the value * * @return true if the value was accepted */ public boolean setData(Object object) { if (this.isValid(object)) { this.currentValue = object; return true; } return false; } /** Gets the value of the stored data */ public Object getData() { return this.currentValue; } public String getName() { return this.name; } public boolean isValid(Object object) { return object != null; } /** Is this argument valid. */ public boolean isValid() { return true; } /** Used by things like a gui to give a warning such as limits of data this can accept */ public String warning() { return ""; } @Override public void save(NBTTagCompound nbt) { NBTFileHelper.saveObject(nbt, "ObjectData", this.currentValue); } @Override public void load(NBTTagCompound nbt) { this.currentValue = NBTFileHelper.loadObject(nbt, "ObjectData"); } }
[ "rseifert.phone@gmail.com" ]
rseifert.phone@gmail.com
161339ed246ec30b50a4679f9708c1951f0798ba
23f42b163c0a58ad61c38498befa1219f53a2c10
/src/main/java/weldstartup/e/AppScopedBean4174.java
bb86c22023573f9c7a48ec9896404872d5cc446b
[]
no_license
99sono/wls-jsf-2-2-12-jersey-weldstartup-bottleneck
9637d2f14a1053159c6fc3c5898a91057a65db9d
b81697634cceca79f1b9a999002a1a02c70b8648
refs/heads/master
2021-05-15T17:54:39.040635
2017-10-24T07:27:23
2017-10-24T07:27:23
107,673,776
0
0
null
null
null
null
UTF-8
Java
false
false
1,630
java
package weldstartup.e; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import javax.annotation.Resource; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.spi.BeanManager; import javax.inject.Inject; import javax.transaction.TransactionSynchronizationRegistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import weldstartup.nondynamicclasses.AppScopedNonDynamicBean; import weldstartup.nondynamicclasses.DependentScopedNonDynamicBean; import weldstartup.nondynamicclasses.RequestScopedNonDynamicBean; /** * A dynamically created CDI bean meant to demonstrate meant to demonstrate that the WeldStartup performance on weblogic * is really under-performing. * */ @ApplicationScoped // appScopedName will be turned into a name like AppScopedBean0001 public class AppScopedBean4174 { private static final Logger LOGGER = LoggerFactory.getLogger(AppScopedBean4174.class); @Inject AppScopedNonDynamicBean appScopedNonDynamicBean; @Inject DependentScopedNonDynamicBean rependentScopedNonDynamicBean; @Inject RequestScopedNonDynamicBean requestScopedNonDynamicBean; @Inject BeanManager beanManager; @Resource TransactionSynchronizationRegistry tsr; @PostConstruct public void postConstruct() { LOGGER.info("Post construct method invoked. AppScopedBean4174"); } @PreDestroy public void preDestroy() { LOGGER.info("Pre-destroy method invoked. AppScopedBean4174"); } public void dummyLogic() { LOGGER.info("Dummy logic invoked. AppScopedBean4174"); } }
[ "99sono@users.noreply.github.com" ]
99sono@users.noreply.github.com
e867889f87b1e31ba772ede354e9b9434fe9b8cb
828b5327357d0fb4cb8f3b4472f392f3b8b10328
/flink-runtime/src/main/java/org/apache/flink/runtime/shuffle/ShuffleServiceFactory.java
21ebebd4153cf0b87321bd6323db3dd9da9fee64
[ "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "ISC", "MIT-0", "GPL-2.0-only", "BSD-2-Clause-Views", "OFL-1.1", "Apache-2.0", "LicenseRef-scancode-jdom", "GCC-exception-3.1", "MPL-2.0", "CC-PDDC", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "LicenseRef-scancode-public-domain", "LGPL-2.1-only", "BSD-2-Clause", "CDDL-1.1", "CDDL-1.0", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause", "MIT", "EPL-1.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-free-unknown", "CC0-1.0", "Classpath-exception-2.0", "CC-BY-2.5" ]
permissive
Romance-Zhang/flink_tpc_ds_game
7e82d801ebd268d2c41c8e207a994700ed7d28c7
8202f33bed962b35c81c641a05de548cfef6025f
refs/heads/master
2022-11-06T13:24:44.451821
2019-09-27T09:22:29
2019-09-27T09:22:29
211,280,838
0
1
Apache-2.0
2022-10-06T07:11:45
2019-09-27T09:11:11
Java
UTF-8
Java
false
false
2,186
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.flink.runtime.shuffle; import org.apache.flink.configuration.Configuration; import org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter; import org.apache.flink.runtime.io.network.partition.consumer.InputGate; /** * Interface for shuffle service factory implementations. * * <p>This component is a light-weight factory for {@link ShuffleMaster} and {@link ShuffleEnvironment}. * * @param <SD> partition shuffle descriptor used for producer/consumer deployment and their data exchange. * @param <P> type of provided result partition writers * @param <G> type of provided input gates */ public interface ShuffleServiceFactory<SD extends ShuffleDescriptor, P extends ResultPartitionWriter, G extends InputGate> { /** * Factory method to create a specific {@link ShuffleMaster} implementation. * * @param configuration Flink configuration * @return shuffle manager implementation */ ShuffleMaster<SD> createShuffleMaster(Configuration configuration); /** * Factory method to create a specific local {@link ShuffleEnvironment} implementation. * * @param shuffleEnvironmentContext local context * @return local shuffle service environment implementation */ ShuffleEnvironment<P, G> createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext); }
[ "1003761104@qq.com" ]
1003761104@qq.com
48960dad56ec01a6c7f2e9cdad4e1864da78d07b
f12b5e4b5a3defb517390d32ccb5bd8ee45b3bf0
/cherry/src/main/java/com/youi/core/spring/ServletContextHolder.java
c7ce92663f5fcf34ae7ccc0ca90870c1f135d880
[]
no_license
qq57694878/code
bbea5866b93c1c3a9a1e3f3593ad0d594d8aa177
24703f5da3cfb8fc82a3bccdece7798f178c3b99
refs/heads/master
2020-12-02T08:08:47.434437
2017-07-10T13:41:26
2017-07-10T13:41:30
96,774,251
0
0
null
null
null
null
UTF-8
Java
false
false
972
java
package com.youi.core.spring; import org.springframework.context.ApplicationContext; import javax.servlet.ServletContext; /** * 保存ApplicationContext的单例. */ public class ServletContextHolder { /** instance. */ private static ServletContextHolder instance = new ServletContextHolder(); /** ApplicationContext. */ private ServletContext servletContext; /** * get ApplicationContext. * * @return ApplicationContext */ public ServletContext getServletContext() { return servletContext; } /** * set ApplicationContext. * * @param servletContext * ApplicationContext */ public void setServletContext(ServletContext servletContext) { this.servletContext = servletContext; } /** * get instance. * * @return ApplicationContextHolder */ public static ServletContextHolder getInstance() { return instance; } }
[ "57694878@qq.com" ]
57694878@qq.com
99d510835b85f273fdf9969bdefbcfabf4a65f3f
afb479b816bd964c21f9b21a1036ef2f5cea6ade
/spring学习/spring/spring_day03/spring_day03/day03_eesy_01account/src/main/java/com/itheima/utils/ConnectionUtils.java
46d9dcc57430676816980dbcc8b9831e6b1df086
[]
no_license
lovepli/spring_demo
7482d9a6a38178665f4482d5de498c2e8ebab1fd
690a3625c0c13f19c7d67581483a6766aabbbfec
refs/heads/master
2022-12-20T19:06:43.918830
2019-12-02T01:50:10
2019-12-02T01:50:10
224,965,378
0
0
null
2022-12-15T23:45:26
2019-11-30T05:39:56
Java
UTF-8
Java
false
false
1,253
java
package com.itheima.utils; import javax.sql.DataSource; import java.sql.Connection; /** * 连接的工具类,它用于从数据源中获取一个连接,并且实现和线程的绑定 */ public class ConnectionUtils { private ThreadLocal<Connection> tl = new ThreadLocal<Connection>(); private DataSource dataSource; //set方法注入 public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } /** * 获取当前线程上的连接 * @return */ public Connection getThreadConnection() { try{ //1.先从ThreadLocal上获取 Connection conn = tl.get(); //2.判断当前线程上是否有连接 if (conn == null) { //3.从数据源中获取一个连接,并且存入ThreadLocal中 conn = dataSource.getConnection(); tl.set(conn); } //4.返回当前线程上的连接 return conn; }catch (Exception e){ throw new RuntimeException(e); } } /** * 把连接和线程解绑 */ public void removeConnection(){ tl.remove(); } }
[ "1171205514@qq.com" ]
1171205514@qq.com
77617473d1389eaec5d0e8205b3d14b34bb5f3d2
73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10
/broken/experimental/pal/net/tinyos/script/PrimitivePanel.java
358cab3b5c493c7eba5b97d1c1506ab5af281c9b
[]
no_license
x3ro/tinyos-legacy
101d19f9e639f5a9d59d3edd4ed04b1f53221e63
cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a
refs/heads/master
2021-01-16T19:20:21.744228
2015-06-30T20:23:05
2015-06-30T20:23:05
38,358,728
0
1
null
null
null
null
UTF-8
Java
false
false
4,159
java
/* tab:4 * "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice, the following * two paragraphs and the author appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." * * Copyright (c) 2002-2003 Intel Corporation * All rights reserved. * * This file is distributed under the terms in the attached INTEL-LICENSE * file. If you do not find these files, copies can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, * 94704. Attention: Intel License Inquiry. */ /* Authors: Phil Levis <pal@cs.berkeley.edu> * Date: Sep 26 2003 * Desc: Main window for VM builder * */ /** * @author Phil Levis <pal@cs.berkeley.edu> */ package net.tinyos.script; import java.awt.*; import java.awt.event.*; import java.awt.font.*; import java.io.*; import java.net.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.event.*; import net.tinyos.message.*; import net.tinyos.packet.*; import net.tinyos.script.tree.*; import net.tinyos.util.*; public class PrimitivePanel extends JPanel { private JPanel labelPanel; private JPanel listPanel; private PrimitiveInfoPanel infoPanel; public PrimitivePanel() { super(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JLabel label = new JLabel("Primitives"); label.setFont(TinyLook.boldFont()); label.setAlignmentX(LEFT_ALIGNMENT); labelPanel = new JPanel(); labelPanel.add(label); labelPanel.setBorder(new EtchedBorder()); infoPanel = makeInfoPanel(); infoPanel.setBorder(new EtchedBorder()); listPanel = makeListPanel(); listPanel.setBorder(new EtchedBorder()); add(labelPanel); add(listPanel); add(infoPanel); } private JPanel makeListPanel() { Vector elements = new Vector(); Enumeration enum = PrimitiveSet.primitiveNames(); while (enum.hasMoreElements()) { elements.add(PrimitiveSet.getPrimitive((String)enum.nextElement())); } JList list = new JList(elements); list.setFixedCellHeight(12); list.setFixedCellWidth(180); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setCellRenderer(new PrimitiveCellRenderer()); list.addListSelectionListener(new PrimitiveSelectionListener(infoPanel)); JScrollPane pane = new JScrollPane(list); pane.setSize(new Dimension(200, 240)); pane.setPreferredSize(new Dimension(200, 240)); JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); panel.add(pane); panel.setAlignmentY((float)1.0); return panel; } private PrimitiveInfoPanel makeInfoPanel() { return new PrimitiveInfoPanel(); } private class PrimitiveSelectionListener implements ListSelectionListener { private PrimitiveInfoPanel panel; public PrimitiveSelectionListener(PrimitiveInfoPanel p) { panel = p; } public void valueChanged(ListSelectionEvent e) { JList list = (JList)e.getSource(); Primitive primitive = (Primitive)list.getSelectedValue(); panel.setPrimitive(primitive); } } public static void main(String[] args) { JFrame frame = new JFrame(); PrimitivePanel p = new PrimitivePanel(); frame.getContentPane().add(p); frame.pack(); frame.setVisible(true); } }
[ "lucas@x3ro.de" ]
lucas@x3ro.de
b684bf11699794a7346bd662e4097d88898ab30d
f909ec612f17254be491c3ef9cdc1f0b186e8daf
/java_plugin/jun_designpattern/src/main/test/designpatterns/结构型模式/适配器模式/接口的适配器模式/Sourceable.java
f6ca980ad0701016ab7e6cf8932411ffebee3e67
[]
no_license
kingking888/jun_java_plugin
8853f845f242ce51aaf01dc996ed88784395fd83
f57e31fa496d488fc96b7e9bab3c245f90db5f21
refs/heads/master
2023-06-04T19:30:29.554726
2021-06-24T17:19:55
2021-06-24T17:19:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
174
java
package designpatterns.结构型模式.适配器模式.接口的适配器模式; public interface Sourceable { public void method1(); public void method2(); }
[ "wujun728@hotmail.com" ]
wujun728@hotmail.com
9fc119b1a0969744b27296d0d7e3f352d1235fbb
417b0e3d2628a417047a7a70f28277471d90299f
/proxies/com/microsoft/bingads/v11/customermanagement/FindAccountsOrCustomersInfoResponse.java
79381d6cc34aa7de1d5cd02e36beb4da296d946d
[ "MIT" ]
permissive
jpatton14/BingAds-Java-SDK
30e330a5d950bf9def0c211ebc5ec677d8e5fb57
b928a53db1396b7e9c302d3eba3f3cc5ff7aa9de
refs/heads/master
2021-07-07T08:28:17.011387
2017-10-03T14:44:43
2017-10-03T14:44:43
105,914,216
0
0
null
2017-10-05T16:33:39
2017-10-05T16:33:39
null
UTF-8
Java
false
false
1,947
java
package com.microsoft.bingads.v11.customermanagement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="AccountInfoWithCustomerData" type="{https://bingads.microsoft.com/Customer/v11/Entities}ArrayOfAccountInfoWithCustomerData" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "accountInfoWithCustomerData" }) @XmlRootElement(name = "FindAccountsOrCustomersInfoResponse") public class FindAccountsOrCustomersInfoResponse { @XmlElement(name = "AccountInfoWithCustomerData", nillable = true) protected ArrayOfAccountInfoWithCustomerData accountInfoWithCustomerData; /** * Gets the value of the accountInfoWithCustomerData property. * * @return * possible object is * {@link ArrayOfAccountInfoWithCustomerData } * */ public ArrayOfAccountInfoWithCustomerData getAccountInfoWithCustomerData() { return accountInfoWithCustomerData; } /** * Sets the value of the accountInfoWithCustomerData property. * * @param value * allowed object is * {@link ArrayOfAccountInfoWithCustomerData } * */ public void setAccountInfoWithCustomerData(ArrayOfAccountInfoWithCustomerData value) { this.accountInfoWithCustomerData = value; } }
[ "baliu@microsoft.com" ]
baliu@microsoft.com
8c7236b6477134b991326b4ecfb15446dc05642a
f5aacd77191465d923ad982adaf32460737f94d2
/smxknife/smxknife-msb/smxknife-msb-sysio/src/main/java/com/smxknife/msb/sysio/sean/io/test/rpc/transport/ServerDecode.java
1f392c0772c93a24674c907058e251bdb85a00a4
[]
no_license
smxknife/smxknife
a0a87b5624aaa2bf3c82b05f2180a79bcbc65170
f6f3ed40bb998d9aea8cba4936ccfa738e4a35b9
refs/heads/master
2023-03-15T03:43:16.570846
2022-04-05T06:07:47
2022-04-05T06:07:47
122,691,839
1
0
null
2023-03-08T17:25:34
2018-02-24T01:46:19
Java
UTF-8
Java
false
false
2,314
java
package com.smxknife.msb.sysio.sean.io.test.rpc.transport; import com.smxknife.msb.sysio.sean.io.test.util.Config; import com.smxknife.msb.sysio.sean.io.test.util.Packmsg; import com.smxknife.msb.sysio.sean.io.test.rpc.protocol.MyContent; import com.smxknife.msb.sysio.sean.io.test.rpc.protocol.Myheader; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageDecoder; import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; import java.util.List; /** * @author: 马士兵教育 * @create: 2020-08-16 18:22 */ public class ServerDecode extends ByteToMessageDecoder { //父类里一定有channelread{ 前老的拼buf decode();剩余留存 ;对out遍历 } -> bytebuf //因为你偷懒,自己能不能实现! @Override protected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> out) throws Exception { while(buf.readableBytes() >= Config.headerSize) { byte[] bytes = new byte[Config.headerSize]; buf.getBytes(buf.readerIndex(),bytes); //从哪里读取,读多少,但是readindex不变 ByteArrayInputStream in = new ByteArrayInputStream(bytes); ObjectInputStream oin = new ObjectInputStream(in); Myheader header = (Myheader) oin.readObject(); //DECODE在2个方向都使用 //通信的协议 if(buf.readableBytes() >= header.getDataLen()){ //处理指针 buf.readBytes(Config.headerSize); //移动指针到body开始的位置 byte[] data = new byte[(int)header.getDataLen()]; buf.readBytes(data); ByteArrayInputStream din = new ByteArrayInputStream(data); ObjectInputStream doin = new ObjectInputStream(din); if(header.getFlag() == 0x14141414){ MyContent content = (MyContent) doin.readObject(); out.add(new Packmsg(header,content)); }else if(header.getFlag() == 0x14141424){ MyContent content = (MyContent) doin.readObject(); out.add(new Packmsg(header,content)); } }else{ break; } } } }
[ "2323937771@qq.com" ]
2323937771@qq.com
c3cc7a536778340759cfdc40c2e1bc72e1ee35ac
6500848c3661afda83a024f9792bc6e2e8e8a14e
/gp_JADX/com/google/android/finsky/instantapps/statussync/C3551e.java
80800f20c0a014fb17da131eefc65884d18360e0
[]
no_license
enaawy/gproject
fd71d3adb3784d12c52daf4eecd4b2cb5c81a032
91cb88559c60ac741d4418658d0416f26722e789
refs/heads/master
2021-09-03T03:49:37.813805
2018-01-05T09:35:06
2018-01-05T09:35:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
881
java
package com.google.android.finsky.instantapps.statussync; import android.os.ConditionVariable; import com.google.android.gms.common.api.C3381y; import com.google.android.gms.common.api.C4980w; import com.google.android.gms.instantapps.C5265d; import java.util.concurrent.atomic.AtomicReference; final class C3551e extends C3381y { public final /* synthetic */ AtomicReference f17816a; public final /* synthetic */ ConditionVariable f17817b; C3551e(AtomicReference atomicReference, ConditionVariable conditionVariable) { this.f17816a = atomicReference; this.f17817b = conditionVariable; } public final void mo3501a() { this.f17816a.set(null); this.f17817b.open(); } public final /* synthetic */ void mo3502b(C4980w c4980w) { this.f17816a.set(((C5265d) c4980w).mo4691a()); this.f17817b.open(); } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
f80ee1aaae4e0f89df1b3e1c5c65b9189a8dfc3b
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2015/12/LocalVariable.java
4ff77e96d53ecbfb31eef176ae50a3e4dd7daccc
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
1,302
java
/* * Copyright (c) 2002-2015 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.codegen; public class LocalVariable extends Expression { private final TypeReference type; private final String name; LocalVariable( TypeReference type, String name ) { this.type = type; this.name = name; } public TypeReference type() { return type; } public String name() { return name; } @Override public void accept( ExpressionVisitor visitor ) { visitor.load( type, name ); } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
1c9f52edefdd4a21b3071140ca6b32757b316aa3
d71fc6f733e494f35f1ea855f25c5e830efea632
/extension/core/fabric3-channel-impl/src/main/java/org/fabric3/channel/generator/ChannelResourceReferenceGenerator.java
c0d3d65bfd3146f06c8dbc0e490d13006661bd28
[ "Apache-2.0" ]
permissive
carecon/fabric3-core
d92ba6aa847386ee491d16f7802619ee1f65f493
14a6c6cd5d7d3cabf92e670ac89432a5f522c518
refs/heads/master
2020-04-02T19:54:51.148466
2018-12-06T19:56:50
2018-12-06T19:56:50
154,750,871
0
0
null
2018-10-25T23:39:54
2018-10-25T23:39:54
null
UTF-8
Java
false
false
1,528
java
/* * Fabric3 * Copyright (c) 2009-2015 Metaform Systems * * 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. * Portions originally based on Apache Tuscany 2007 * licensed under the Apache 2.0 license. */ package org.fabric3.channel.generator; import org.fabric3.api.annotation.wire.Key; import org.fabric3.channel.model.ChannelResourceReference; import org.fabric3.channel.provision.ChannelContextWireTarget; import org.fabric3.spi.domain.generator.ResourceReferenceGenerator; import org.fabric3.spi.model.instance.LogicalResourceReference; import org.oasisopen.sca.annotation.EagerInit; /** * */ @EagerInit @Key("org.fabric3.channel.model.ChannelResourceReference") public class ChannelResourceReferenceGenerator implements ResourceReferenceGenerator<ChannelResourceReference> { public ChannelContextWireTarget generateWireTarget(LogicalResourceReference<ChannelResourceReference> resourceReference) { return new ChannelContextWireTarget(resourceReference.getDefinition().getChannelName()); } }
[ "jim.marino@gmail.com" ]
jim.marino@gmail.com
cc631fee4ef7bf9e3ab1a19c2e2a91a76e6ac677
22c3cadea15ac7a095945a11fa749cecb4955363
/springxml/src/main/java/com/itmayiedu/service/Main.java
4bfd0087b7a24b2fdb3cf36017cd78780a0a7e4c
[]
no_license
Jrg199287/Spring-Batch
6839c7086549cefe665aef963c6271d27872c956
20144b4498b3819f383a023273b1863e64927120
refs/heads/master
2022-12-21T21:07:45.413799
2019-07-18T08:08:37
2019-07-18T08:08:37
197,541,227
1
0
null
2022-12-16T00:53:16
2019-07-18T08:03:47
Java
UTF-8
Java
false
false
564
java
package com.itmayiedu.service; import org.springframework.context.support.ClassPathXmlApplicationContext; @SuppressWarnings("resource") public class Main { public static void main(String[] args) { //1.读取springxml配置 ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext( "applicationContext.xml"); //2.获取bean对象 UserEntity userEntity = (UserEntity) classPathXmlApplicationContext.getBean("user1"); System.out.println(userEntity.getUserId()+"----"+userEntity.getUserName()); } }
[ "j15264259878@163.com" ]
j15264259878@163.com
8edb365971b3ccdea498e73551b87a7a071132cd
79e0bbc805fd5cac566b5eba884acd6d7aaad680
/JPRO/Newf2/conferenceFXWeb/src/main/java/com/example/utils/CategoriesModel.java
3e203716e578f9b63b7c2f6e1cb4a1542fc3057e
[]
no_license
softwareengineerhub/javafx
51671c6cc4f467619574aee66ac7b963f217fa39
1a52159abb72ba048b58902bd21dbb9beaf3b857
refs/heads/master
2021-06-15T21:43:59.494145
2021-03-28T18:14:27
2021-03-28T18:14:27
154,052,828
0
1
null
null
null
null
UTF-8
Java
false
false
881
java
package com.example.utils; public class CategoriesModel { private String ch; private String chMeta; private String eng; private String ru; public CategoriesModel() { } public CategoriesModel(String ch, String chMeta, String eng, String ru) { this.ch = ch; this.chMeta = chMeta; this.eng = eng; this.ru = ru; } public String getCh() { return ch; } public void setCh(String ch) { this.ch = ch; } public String getChMeta() { return chMeta; } public void setChMeta(String chMeta) { this.chMeta = chMeta; } public String getEng() { return eng; } public void setEng(String eng) { this.eng = eng; } public String getRu() { return ru; } public void setRu(String ru) { this.ru = ru; } }
[ "denis.prokopiuk@yahoo.com" ]
denis.prokopiuk@yahoo.com
c0349365762c23823617ff26731b4faef8fbdb01
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/zhihu/android/morph/extension/parser/$$Lambda$ShopWindowParser$JH7YTZjLdwdXmGLBeWbdCj9KJy4.java
8c58c3cf6fbe9c2d25f0a9f6fc218669a79e0072
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
822
java
package com.zhihu.android.morph.extension.parser; import p2189io.reactivex.p2209c.AbstractC31735g; /* renamed from: com.zhihu.android.morph.extension.parser.-$$Lambda$ShopWindowParser$JH7YTZjLdwdXmGLBeWbdCj9KJy4 reason: invalid class name */ /* compiled from: lambda */ public final /* synthetic */ class $$Lambda$ShopWindowParser$JH7YTZjLdwdXmGLBeWbdCj9KJy4 implements AbstractC31735g { public static final /* synthetic */ $$Lambda$ShopWindowParser$JH7YTZjLdwdXmGLBeWbdCj9KJy4 INSTANCE = new $$Lambda$ShopWindowParser$JH7YTZjLdwdXmGLBeWbdCj9KJy4(); private /* synthetic */ $$Lambda$ShopWindowParser$JH7YTZjLdwdXmGLBeWbdCj9KJy4() { } @Override // p2189io.reactivex.p2209c.AbstractC31735g public final void accept(Object obj) { ShopWindowParser.lambda$bindViews$1((Throwable) obj); } }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
e5802285243940c54c70b9c2feaaf8ecd46aea6a
af2b3ba0c64f3b4c9d2059f73e79d4c377a0b5d1
/java基础/day1701_异常/src/tarena/day1701/UsernameNotFoundException.java
86e75a81cb13c3629d1e11e32aadf73ac08bbb32
[]
no_license
xuelang201201/Android
495b411a3bcdf70969ff01cf8fcb7ee8ea5abfd8
0829c4904193c07cb41048543defae83f6c5a226
refs/heads/master
2022-05-06T09:09:48.921737
2020-04-22T08:41:15
2020-04-22T08:41:15
257,838,791
0
0
null
null
null
null
UTF-8
Java
false
false
581
java
package tarena.day1701; public class UsernameNotFoundException extends Exception { public UsernameNotFoundException() { super(); } public UsernameNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } public UsernameNotFoundException(String message, Throwable cause) { super(message, cause); } public UsernameNotFoundException(String message) { super(message); } public UsernameNotFoundException(Throwable cause) { super(cause); } }
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
68ada08f0dec7c33e08b48260615497a55178fd2
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/16/16_833f678b98cd4740dce486fcaccf74c1508e5271/FileDiffLabelProvider/16_833f678b98cd4740dce486fcaccf74c1508e5271_FileDiffLabelProvider_s.java
81e4bc9f2700709c77f8a65770f6dcd6e9441233
[]
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,991
java
/******************************************************************************* * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ package org.eclipse.egit.ui.internal.history; import org.eclipse.egit.ui.UIIcons; import org.eclipse.jface.viewers.BaseLabelProvider; import org.eclipse.jface.viewers.ITableLabelProvider; import org.eclipse.swt.graphics.Image; import org.eclipse.ui.ISharedImages; import org.eclipse.ui.PlatformUI; class FileDiffLabelProvider extends BaseLabelProvider implements ITableLabelProvider { private Image ADD = UIIcons.ELCL16_ADD.createImage(); private Image COPY = PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_TOOL_COPY); private Image DELETE = PlatformUI.getWorkbench().getSharedImages() .getImage(ISharedImages.IMG_ETOOL_DELETE); private Image DEFAULT = PlatformUI.getWorkbench().getSharedImages() .getImage(ISharedImages.IMG_OBJ_FILE); public String getColumnText(final Object element, final int columnIndex) { if (columnIndex == 1) { final FileDiff c = (FileDiff) element; return c.getPath(); } return null; } public Image getColumnImage(final Object element, final int columnIndex) { if (columnIndex == 0) { final FileDiff c = (FileDiff) element; switch (c.getChange()) { case ADD: return ADD; case COPY: return COPY; case DELETE: return DELETE; case RENAME: // fall through case MODIFY: return DEFAULT; } } return null; } @Override public void dispose() { ADD.dispose(); // DELETE is shared, don't dispose super.dispose(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
89c5b2c964858295c1bff20a02813d3c19fee9ad
d55b044ce60c06d69325b4634ddb1a46eedc6e1e
/valley/src/main/java/com/hn/d/valley/bean/LoginUserInfo.java
b3f0467741063eb399fa85c6a1acc9adb00eff28
[]
no_license
AppSecAI-TEST/UIView2
dc40b8554fe130a3e08bc15a0282f3d4ae046e8a
b6e4f10e4e51206c9d76954fa27e185362738495
refs/heads/master
2021-01-16T11:41:44.850053
2017-08-11T06:13:09
2017-08-11T06:13:09
100,001,170
0
0
null
2017-08-11T06:53:18
2017-08-11T06:53:18
null
UTF-8
Java
false
false
1,499
java
package com.hn.d.valley.bean; import android.os.Parcel; import android.os.Parcelable; /** * Copyright (C) 2016,深圳市红鸟网络科技股份有限公司 All rights reserved. * 项目名称: * 类的描述: * 创建人员:Robi * 创建时间:2016/12/15 12:25 * 修改人员:Robi * 修改时间:2016/12/15 12:25 * 修改备注: * Version: 1.0.0 */ public class LoginUserInfo implements Parcelable { public static final Creator<LoginUserInfo> CREATOR = new Creator<LoginUserInfo>() { @Override public LoginUserInfo createFromParcel(Parcel source) { return new LoginUserInfo(source); } @Override public LoginUserInfo[] newArray(int size) { return new LoginUserInfo[size]; } }; public String phone; public String pwd; public String icoUrl; public LoginUserInfo(String phone, String pwd, String icoUrl) { this.phone = phone; this.pwd = pwd; this.icoUrl = icoUrl; } protected LoginUserInfo(Parcel in) { this.phone = in.readString(); this.pwd = in.readString(); this.icoUrl = in.readString(); } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.phone); dest.writeString(this.pwd); dest.writeString(this.icoUrl); } }
[ "angcyo@126.com" ]
angcyo@126.com
96e407e9695151f16a9dee9c3a1cd90267794bc8
45e40c967cd659ce95640de153b9a79524eabd5a
/module/01.web/src/com/realart/interfaces/ArtInterface.java
019907a8b2d2d1b29a18cf6ee7d62902a90d9ef8
[]
no_license
GuanXianghui/realart
a3409c2b5d5e681ae7cb1f3f59dc9decbc62ee4c
2271846462d4c395dc137c27c4e6c5ae707249f3
refs/heads/master
2021-01-10T20:19:31.649259
2014-07-13T16:27:52
2014-07-13T16:27:52
20,245,513
0
2
null
null
null
null
GB18030
Java
false
false
517
java
package com.realart.interfaces; /** * 艺术品实体基础接口 * * @author Gxx * @module oa * @datetime 14-3-29 13:16 */ public interface ArtInterface extends BaseInterface { /** * 状态 0 待审核 1 审核通过 2 审核失败 */ public static final int NEED_CHECK = 0; public static final int NORMAL = 1; public static final int CHECK_FAILED = 2; /** * 默认位置位图 默认0000000000 */ public static final String DEFAULT_LOCATION_BIT = "0000000000"; }
[ "419066357@163.com" ]
419066357@163.com
93bce2ada09e045b281533b2c35a9e666afcb8fb
449cff34c3a3ad2be71c5260fb333859d58d2e86
/open-metadata-implementation/frameworks/open-discovery-framework/src/main/java/org/odpi/openmetadata/frameworks/discovery/properties/DiscoveryServiceProperties.java
c7d6bded32fcad21afae17fa1ec7cfd62cf4f2f9
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
cong78/egeria
9f93733360cbfb085a1e5c69616d6646d5139b4f
686762a9bb8ea8969a6d65329b26388e6ee13558
refs/heads/master
2021-07-25T03:43:32.014784
2020-08-05T06:23:01
2020-08-05T06:23:01
170,706,355
1
0
Apache-2.0
2019-02-14T14:42:43
2019-02-14T14:42:43
null
UTF-8
Java
false
false
4,181
java
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.frameworks.discovery.properties; import com.fasterxml.jackson.annotation.*; import org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset; import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection; import java.util.Objects; import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY; /** * DiscoveryServiceProperties contains the definition of a discovery service. * This definition can be associated with multiple discovery engines. */ @JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class") @JsonSubTypes( { @JsonSubTypes.Type(value = RegisteredDiscoveryService.class, name = "RegisteredDiscoveryService") }) public class DiscoveryServiceProperties extends Asset { private static final long serialVersionUID = 1L; private Connection connection = null; /** * Default constructor */ public DiscoveryServiceProperties() { super(); } /** * Copy/clone constructor * * @param template object to copy */ public DiscoveryServiceProperties(DiscoveryServiceProperties template) { super(template); if (template != null) { connection = template.getConnection(); } } /** * Return the connection used to create a instance of this discovery service. * * @return Connection object */ public Connection getConnection() { return connection; } /** * Set up the connection used to create a instance of this discovery service. * * @param connection connection object */ public void setConnection(Connection connection) { this.connection = connection; } /** * Standard toString method. * * @return print out of variables in a JSON-style */ @Override public String toString() { return "DiscoveryServiceProperties{" + "connection=" + connection + ", displayName='" + displayName + '\'' + ", shortDescription='" + shortDescription + '\'' + ", description='" + description + '\'' + ", owner='" + owner + '\'' + ", ownerType=" + ownerType + ", zoneMembership=" + zoneMembership + ", qualifiedName='" + qualifiedName + '\'' + ", additionalProperties=" + additionalProperties + ", meanings=" + meanings + ", type=" + type + ", guid='" + guid + '\'' + ", url='" + url + '\'' + ", classifications=" + classifications + ", extendedProperties=" + extendedProperties + '}'; } /** * Compare the values of the supplied object with those stored in the current object. * * @param objectToCompare supplied object * @return boolean result of comparison */ @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } DiscoveryServiceProperties that = (DiscoveryServiceProperties) objectToCompare; return Objects.equals(getConnection(), that.getConnection()); } /** * Create a hash code for this element type. * * @return int hash code */ @Override public int hashCode() { return Objects.hash(super.hashCode(), getConnection()); } }
[ "mandy_chessell@uk.ibm.com" ]
mandy_chessell@uk.ibm.com
71f2975beb4f5f9e31b1c246324c927f3a23895c
67fadb5277f2c22067c64f277ccfe611c0e2625b
/drr/patches/D_correct/Lang16/patch1-Lang-16-SimFix/patch1Lang16_simfix/target/0/11/evosuite-tests/org/apache/commons/lang3/math/NumberUtils_ESTest_scaffolding.java
119bc9f954d7390deaf003f2479b1124a3e2c7ae
[]
no_license
SophieHYe/DiffTGen
6e08cfba78b19f3e0aee559a54fbca8ad387bbe6
c34b08ab3793183e03fb7dea23e44b2c22b40f50
refs/heads/master
2021-10-23T22:23:44.223906
2019-03-20T11:20:02
2019-03-20T11:20:02
139,418,074
0
0
null
2018-07-02T09:03:48
2018-07-02T09:03:48
null
UTF-8
Java
false
false
6,723
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Mar 10 16:05:07 GMT 2019 */ package org.apache.commons.lang3.math; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.junit.AfterClass; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class NumberUtils_ESTest_scaffolding { @org.junit.Rule public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(4000); private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.lang3.math.NumberUtils"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @AfterClass public static void clearEvoSuiteFramework(){ Sandbox.resetDefaultSecurityManager(); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); setSystemProperties(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public void setSystemProperties() { java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.specification.version", "1.8"); java.lang.System.setProperty("java.home", "/usr/lib/jvm/java-8-openjdk-amd64/jre"); java.lang.System.setProperty("user.dir", "/home/wasp/Desktop/ICSE18/DiffTGen/drr/patches/D_correct/Lang16/patch1-Lang-16-SimFix/patch1Lang16_simfix/target/0/11"); java.lang.System.setProperty("java.io.tmpdir", "/tmp"); java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit"); java.lang.System.setProperty("file.encoding", "UTF-8"); java.lang.System.setProperty("file.separator", "/"); java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment"); java.lang.System.setProperty("java.awt.headless", "true"); java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob"); java.lang.System.setProperty("java.class.path", "/tmp/EvoSuite_pathingJar8367646522033106354.jar"); java.lang.System.setProperty("java.class.version", "52.0"); java.lang.System.setProperty("java.endorsed.dirs", "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed"); java.lang.System.setProperty("java.ext.dirs", "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext"); java.lang.System.setProperty("java.library.path", "lib"); java.lang.System.setProperty("java.runtime.name", "OpenJDK Runtime Environment"); java.lang.System.setProperty("java.runtime.version", "1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12"); java.lang.System.setProperty("java.specification.name", "Java Platform API Specification"); java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/"); java.lang.System.setProperty("java.version", "1.8.0_191"); java.lang.System.setProperty("java.vm.info", "mixed mode"); java.lang.System.setProperty("java.vm.name", "OpenJDK 64-Bit Server VM"); java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification"); java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.vm.specification.version", "1.8"); java.lang.System.setProperty("java.vm.version", "25.191-b12"); java.lang.System.setProperty("line.separator", "\n"); java.lang.System.setProperty("os.arch", "amd64"); java.lang.System.setProperty("os.name", "Linux"); java.lang.System.setProperty("os.version", "4.15.0-43-generic"); java.lang.System.setProperty("path.separator", ":"); java.lang.System.setProperty("user.country", "US"); java.lang.System.setProperty("user.home", "/home/wasp"); java.lang.System.setProperty("user.language", "en"); java.lang.System.setProperty("user.name", "wasp"); java.lang.System.setProperty("user.timezone", "Europe/Stockholm"); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(NumberUtils_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.lang3.math.NumberUtils", "org.apache.commons.lang3.StringUtils" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(NumberUtils_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "org.apache.commons.lang3.math.NumberUtils", "org.apache.commons.lang3.StringUtils" ); } }
[ "he_ye_90s@hotmail.com" ]
he_ye_90s@hotmail.com
9ada125cae88b3bc26cf1183d4bed50f24edc746
f6d3a2bfc6afe3d06509a41f53e0c8ce534965db
/neo4j/src/test/java/com/buschmais/cdo/neo4j/test/embedded/query/composite/A.java
1725fcc0cfada81a0503bbee6314ca1ae871ac81
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
tbaum/cdo-neo4j
bfcd7ae1414dbd318ffcbe2d97ed30604603b38d
cdb8fc0674db3a6100c39bf7720796965f0fd395
refs/heads/master
2021-01-22T01:55:27.658067
2013-12-29T11:48:38
2013-12-29T11:48:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
280
java
package com.buschmais.cdo.neo4j.test.embedded.query.composite; import com.buschmais.cdo.neo4j.api.annotation.Indexed; import com.buschmais.cdo.neo4j.api.annotation.Label; @Label("A") public interface A { @Indexed String getValue(); void setValue(String value); }
[ "dirk.mahler@buschmais.com" ]
dirk.mahler@buschmais.com
b1f5640944829dcd8a6d77de42b59242f3492b0e
af059b4249e68780b09217840772b2b16932f371
/ddl-basic/src/main/java/com/ddl/basic/domain/query/MobileQuery.java
58b191c18befdd4e39e3eff9db962199bb60370d
[ "Apache-2.0" ]
permissive
double-qiu/ddl
c452e09d0245de8f3bc3c9119438601f1bf4549a
3d5d235fe28de8e5222d690228974cee7c1e0cd5
refs/heads/master
2020-03-31T20:20:29.301203
2018-10-11T05:35:14
2018-10-11T05:35:14
152,535,743
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package com.ddl.basic.domain.query; public class MobileQuery { private String url; private String phone; private String key; public MobileQuery() { super(); } public MobileQuery(String url, String phone, String key) { super(); this.url = url; this.phone = phone; this.key = key; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getDtype() { return "json"; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } }
[ "934590736@qq.com" ]
934590736@qq.com